
*, 
*::before, 
*::after { 
  box-sizing: border-box; 
}

html { scroll-behavior: smooth; }

body { 
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased; 
  text-rendering: optimizeLegibility; 
}

::selection { background: rgba(79,70,229,.18); }

/* ── Gradient text ── */
.text-gradient {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 52%, #06B6D4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1.5rem;
    border-radius: .75rem;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 52%, #06B6D4 100%);
    color: #fff;
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(79,70,229,.65);
    transition: transform .2s, box-shadow .2s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px -12px rgba(79,70,229,.7);
    color: #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1.5rem;
    border-radius: .75rem;
    background: #fff;
    color: #0F172A;
    border: 1px solid #E2E8F0;
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
    transition: transform .2s, border-color .2s;
}
.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #C7CEDB;
    color: #0F172A;
}

/* ── Sticky header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    background: rgba(250,250,250,.72);
    border-bottom: 1px solid #ECEFF4;
}

/* ── Header nav dropdown ── */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 14px;
    transform: translateX(-50%) translateY(4px);
    min-width: 240px;
    background: #fff;
    border: 1px solid #E9EDF3;
    border-radius: 14px;
    box-shadow: 0 26px 56px -28px rgba(15,23,42,.32);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 70;
}

/* Невидимый "мостик" над dropdown — чтобы курсор мог пройти
   от ссылки до панели, не закрыв меню по пути (там 14px зазора). */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-dropdown__link {
    padding: 9px 12px;
    border-radius: 9px;
    transition: background .2s ease, color .2s ease;
}
.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
    background: #F1F3F8;
    color: #4F46E5;
}

.nav-chevron {
    color: #94A3B8;
    transition: transform .25s ease, color .25s ease;
}
.nav-has-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
    color: #4F46E5;
}

@media (prefers-reduced-motion: reduce) {
    .nav-dropdown,
    .nav-chevron {
        transition: none;
    }
}

/* ── Section eyebrow pill ── */
.section-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #4F46E5;
}
.section-pill::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #06B6D4);
    flex-shrink: 0;
}


.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

/* ── Hero scroll indicator ── */
.hero-scroll {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    opacity: .85;
    transition: opacity .3s ease;
}
.hero-scroll:hover { opacity: 1; }

.hero-scroll__pill {
    width: 24px;
    height: 38px;
    border-radius: 14px;
    border: 1.5px solid #C7CEDB;
    position: relative;
    transition: border-color .3s ease;
}
.hero-scroll:hover .hero-scroll__pill { border-color: #4F46E5; }

.hero-scroll__dot {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 4px;
    height: 8px;
    border-radius: 50px;
    background: linear-gradient(180deg, #4F46E5, #06B6D4);
    transform: translateX(-50%);
    animation: heroScrollDot 1.8s cubic-bezier(.45,0,.25,1) infinite;
}

.hero-scroll__text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94A3B8;
    white-space: nowrap;
    transition: color .3s ease;
}
.hero-scroll:hover .hero-scroll__text { color: #4F46E5; }

@keyframes heroScrollDot {
    0%   { top: 7px;  opacity: 0; }
    20%  { opacity: 1; }
    70%  { opacity: 1; }
    100% { top: 21px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll__dot { animation: none; top: 12px; }
}

/* ── Scroll-reveal (progressive enhancement) ── */
@supports (animation-timeline: view()) {
    .reveal {
        animation: revealUp .85s cubic-bezier(.16,.84,.44,1) both;
        animation-timeline: view();
        animation-range: entry 0% entry 48%;
    }
}
@keyframes revealUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
}

/* ── Results metrics: divider between items ── */
.results-metric--divider {
    position: relative;
}

/* ── Ecosystem diagram ── */
.eco-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .5625rem;
    padding: .5625rem .875rem .5625rem .5625rem;
    border-radius: .8125rem;
    background: #fff;
    border: 1px solid #E9EDF3;
    box-shadow: 0 8px 22px -12px rgba(15,23,42,.28);
    font-weight: 700;
    font-size: .84375rem;
    color: #0F172A;
    white-space: nowrap;
    transition: transform .25s, box-shadow .25s;
    cursor: default;
    z-index: 4;
    transform: translate(-50%, -50%);
}
.eco-node:hover {
    transform: translate(-50%, -50%) scale(1.07);
    box-shadow: 0 16px 32px -10px rgba(79,70,229,.5);
}
.eco-badge {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(79,70,229,.14), rgba(6,182,212,.14));
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6875rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── SVG dash animation ── */
@keyframes dashmove { to { stroke-dashoffset: -28; } }
.dash-anim { animation: dashmove 2.6s linear infinite; }

/* ── Pulse rings ── */
@keyframes pulseRing {
    0%   { transform: translate(-50%, -50%) scale(.7); opacity: .55; }
    70%  { opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
}
.pulse-ring {
    position: absolute; left: 50%; top: 50%;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.22), transparent 70%);
    animation: pulseRing 3.4s ease-out infinite;
}
.pulse-ring-2 {
    animation-delay: 1.7s;
    background: radial-gradient(circle, rgba(6,182,212,.18), transparent 70%);
}

/* ── Float animations ── */
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
.float-a { animation: floatA 6s ease-in-out infinite; }
.float-b { animation: floatB 7s ease-in-out infinite; }

/* ── Service cards ── */

.svc-row {
    min-height: 430px;
}

.svc-card {
    position: relative;
    flex: 1 1 0%;
    min-width: 0;
    background: #FBFCFE;
    border: 1px solid #E9EDF3;
    border-radius: 1.25rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    transition: flex .5s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s, background .35s;
}

@media (hover: hover) and (pointer: fine) {
    .svc-card {
        transition: flex .5s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s, background .35s, transform .15s ease-out;
    }
}

.svc-card h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

.svc-card:hover,
.svc-card:focus-visible {
    box-shadow: 0 26px 56px -28px rgba(15,23,42,.32);
    border-color: #D5DBE7;
    background: #fff;
}

.svc-card.active {
    flex: 2.7 1 0%;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 52%, #06B6D4 100%);
    border-color: transparent;
    box-shadow: 0 30px 60px -22px rgba(79,70,229,.5);
}

.svc-card.active h3 { color: #fff !important; }
.svc-card.active p { color: rgba(255,255,255,.88) !important; }
.svc-card.active .svc-num { color: rgba(255,255,255,.6) !important; }
.svc-card.active .svc-detail {
    max-height: 320px;
    opacity: 1;
    border-top-color: rgba(255,255,255,.22) !important;
}
.svc-card.active .svc-detail .flex {
    color: #fff !important;
}
.svc-card.active .svc-check-icon {
    background: rgba(255,255,255,.18) !important;
    color: #fff !important;
}

.svc-num { color: #94A3B8; transition: color .3s; }

.svc-detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.4,0,.2,1), opacity .4s;
}

.svc-hint {
    transition: opacity .3s ease, color .3s;
}
.svc-card.active .svc-hint {
    opacity: 0;
    pointer-events: none;
}

.svc-chev {
    display: none;
    position: absolute;
    top: 26px;
    right: 24px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    align-items: center;
    justify-content: center;
    color: #4F46E5;
    background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(6,182,212,.12));
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.svc-card.active .svc-chev {
    transform: rotate(180deg);
    background: rgba(255,255,255,.18) !important;
    color: #fff !important;
}

/* ── Service cards: scroll reveal (staggered) ── */
.svc-reveal {
    opacity: 0;
    transform: translateY(28px) scale(.97);
    transition: opacity .6s cubic-bezier(.16,.84,.44,1), transform .6s cubic-bezier(.16,.84,.44,1);
}
.svc-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .svc-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Services flow chain ── */
.flow-chain {
    position: relative;
}

.flow-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px 8px 11px;
    border-radius: 9px;
    background: #F1F3F8;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    transition: background .4s ease, border-color .4s ease, color .4s ease, transform .3s ease, box-shadow .3s ease;
}

.flow-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #CBD5E1;
    flex: none;
    transition: background .4s ease, box-shadow .4s ease;
}

.flow-arrow {
    color: #CBD5E1;
    flex: none;
    transition: color .4s ease;
}

.flow-pill--end {
    padding: 8px 14px;
    border-color: rgba(79,70,229,.25);
    color: #4F46E5;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(6,182,212,.12));
}

/* Состояние во время авто-цикла "бегущей" подсветки */
.flow-pill.is-active {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 52%, #06B6D4 100%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -14px rgba(79,70,229,.55);
}
.flow-pill.is-active .flow-pill__dot {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,.35);
}
.flow-arrow.is-active {
    color: #4F46E5;
}

@media (prefers-reduced-motion: reduce) {
    .flow-pill,
    .flow-pill__dot,
    .flow-arrow {
        transition: none;
    }
}

/* ── Automation steps ── */
.auto-step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-radius: .875rem;
    background: #fff;
    cursor: pointer;
    transition: box-shadow .3s, transform .3s, border-color .3s;
    border: 1px solid #E9EDF3;
}

@media (hover: hover) and (pointer: fine) {
    .auto-step:hover { transform: translateX(4px); }
}

.auto-step .flex-1 {
    min-width: 0;
}
.auto-step .flex-1 > div:first-child,
.auto-step .flex-1 > div:last-child {
    overflow-wrap: break-word;
}

.auto-tag {
    font-size: clamp(11px, 1.2vw, 12.5px);
    padding: 5px 12px;
    line-height: 1.35;
    text-align: center;
    max-width: 100%;
}

.auto-title {
    overflow-wrap: break-word;
    hyphens: auto;
}

.auto-step-chev {
    display: none;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    transition: transform .3s ease, color .3s ease;
}

.auto-step:hover { transform: translateX(4px); }
.auto-step.active {
    border-color: transparent;
    box-shadow: 0 0 0 2px #4F46E5, 0 18px 40px -18px rgba(79,70,229,.42);
}
.auto-step.active .auto-step-chev { color: #4F46E5; }

/* ── FAQ accordion ── */
.faq-answer {
    overflow: hidden;
    transition: max-height .42s cubic-bezier(.4,0,.2,1), opacity .35s;
}

.faq-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s cubic-bezier(.16,.84,.44,1), transform .5s cubic-bezier(.16,.84,.44,1);
}
.faq-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .faq-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Hover lift (cards) ── */
.hover-lift { transition: transform .3s, box-shadow .3s, border-color .3s; }
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -32px rgba(15,23,42,.32);
    border-color: #D5DBE7;
}


/* ── Process step ── */
.process-row {
    position: relative;
}

.process-card {
    transition: background .3s ease;
}
.process-card:hover {
    background: rgba(255,255,255,.06);
}

.process-card--border-r {
    border-right: 1px solid rgba(255,255,255,.16);
}

/* Номер — капсула на полупрозрачном белом, как в Results-метриках */
.process-num {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    letter-spacing: .01em;
    transition: background .3s ease;
}
.process-card:hover .process-num {
    background: rgba(255,255,255,.28);
}

/* ── Process card: "вылетает" снизу через маску ── */
.process-card-reveal {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: translateY(26px);
    transition:
        opacity .6s cubic-bezier(.16,.84,.44,1),
        clip-path .75s cubic-bezier(.16,.84,.44,1),
        transform .75s cubic-bezier(.16,.84,.44,1);
}
.process-card-reveal.is-in {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .process-card-reveal { opacity: 1; clip-path: none; transform: none; transition: none; }
}


/* ── FAQ filter pills ── */
.faq-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 9999px;
    background: #F1F3F8;
    border: 1px solid #E9EDF3;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.faq-filter-pill:hover {
    border-color: #C7CEDB;
}
.faq-filter-pill.is-active {
    background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(6,182,212,.12));
    border-color: rgba(79,70,229,.25);
    color: #4F46E5;
}

/* ── Contact info links ── */
.contact-link {
    padding: 6px 8px;
    margin: -6px -8px;
    border-radius: 10px;
    transition: background .2s ease;
}
.contact-link:hover {
    background: #F8FAFC;
}
.contact-link:hover .text-\[15px\] {
    color: #4F46E5;
}

.contact-link:hover .contact-link__value {
    color: #4F46E5;
}

/* ── Contact form success state ── */
#form-success.is-visible {
    display: flex;
}

/* ── Why Ainala ── */
.why-card {
    border: 1.5px solid #E9EDF3;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.why-card:hover {
    border-color: #C7CEDB;
    box-shadow: 0 20px 40px -24px rgba(15,23,42,.22);
    transform: translateY(-3px);
}

.why-card__num {
    background: linear-gradient(135deg, #4F46E5, #6366F1 60%, #06B6D4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.why-num-old {
    display: inline-block;
    color: #94A3B8;
    text-decoration-color: #CBD5E1;
}

/* ── Final CTA: breathing gradient background ── */
.cta-final {
    background-size: 180% 180%;
    animation: ctaGradientBreath 10s ease-in-out infinite;
}
@keyframes ctaGradientBreath {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ── Final CTA: magnetic primary button ── */
.cta-magnetic {
    transition: transform .25s cubic-bezier(.34,1.4,.4,1);
}

/* ── CTA: trust checklist staggered reveal ── */
.cta-trust-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .45s ease, transform .45s ease;
}
.cta-trust-item.is-in {
    opacity: 1;
    transform: none;
}

/* ── Final CTA: subtle pulse ring around primary button ── */
.cta-pulse {
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 1.5px solid rgba(255,255,255,.5);
    opacity: 0;
    pointer-events: none;
}
.cta-final.is-in .cta-pulse {
    animation: ctaPulseRing 2.6s ease-out .8s infinite;
}
@keyframes ctaPulseRing {
    0%   { transform: scale(1);    opacity: .6; }
    100% { transform: scale(1.15); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cta-final { animation: none; }
    .cta-magnetic { transition: none; }
    .cta-trust-item { opacity: 1; transform: none; transition: none; }
    .cta-pulse { animation: none !important; }
}


/* ── Input / textarea / select focus ── */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4F46E5 !important;
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

@media (min-width: 1280px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    }
}

/* ── Responsive breakpoints ── */
@media (max-width: 1279px) {
    .article-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 1023px) {
    .auto-step-chev { display: flex; }
    .auto-step.active .auto-step-chev { transform: rotate(90deg); }
    .auto-grid  { grid-template-columns: 1fr !important; }
    .auto-panel {
        position: static !important;
        margin-top: 4px;
        scroll-margin-top: 90px;
    }
    .faq-grid   { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .faq-side   { position: static !important; }
}
@media (max-width: 920px) {
    .hero-grid    { grid-template-columns: 1fr !important; gap: 2.75rem !important; }
    .why-grid     { grid-template-columns: 1fr !important; gap: 2.25rem !important; }
    .contact-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
    .process-row  { grid-template-columns: repeat(2,1fr) !important; gap: 2.5rem 1.375rem !important; }
    .process-line { display: none !important; }
    .faq-archive-grid { grid-template-columns: 1fr !important; }
    .faq-sidebar { position: static !important; }
}

@media (min-width: 861px) {
    .results-metric--divider::before {
        content: '';
        position: absolute;
        left: 0;
        top: 8px;
        bottom: 8px;
        width: 1px;
        background: rgba(255,255,255,.22);
    }
}

@media (max-width: 860px) {

    .results-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 !important;
    }
    .results-metric--divider::before { display: none; }
    .results-metric {
        padding: 0 24px 24px !important;
        border-right: 1px solid rgba(255,255,255,.22);
        border-bottom: 1px solid rgba(255,255,255,.22);
    }
    .results-metric:nth-child(-n+2) { padding-top: 0 !important; }
    .results-metric:nth-child(n+3) {
        padding-top: 24px !important;
        padding-bottom: 0 !important;
        border-bottom: none;
    }
    .results-metric:nth-child(2n) { border-right: none; }

    .site-nav   { display: none !important; }
    .mobile-btn { display: inline-flex !important; }
    .svc-row  { flex-direction: column !important; min-height: 0; }
    .svc-card { flex: none !important; }
    .svc-card .flex-1 { display: none; }
    .svc-hint { display: none !important; }
    .svc-chev { display: flex; }
    .footer-grid{ grid-template-columns: 1fr 1fr !important; gap: 2rem !important; }
}
@media (max-width: 720px) {
    .why-pillars { grid-template-columns: 1fr !important; }
}

@media (min-width: 640px) {
    .results-metric--divider::before {
        content: '';
        position: absolute;
        left: 0;
        top: 8px;
        bottom: 8px;
        width: 1px;
        background: rgba(255,255,255,.22);
    }
}

@media (max-width: 560px) {
    .results-grid {
        grid-template-columns: 1fr !important;
    }
    .results-metric {
        align-items: center !important;
        text-align: center !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,.22) !important;
        padding: 0 0 22px !important;
    }
    .results-metric:first-child { padding-top: 0 !important; }
    .results-metric:not(:first-child) { padding-top: 22px !important; }
    .results-metric:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    .results-metric > div {
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }
    .process-card--border-r { border-right: none !important; }
    .process-row .grid { grid-template-columns: 1fr !important; }
    .process-card.md\:border-r { border-right: none !important; }

    .why-pillars   { grid-template-columns: 1fr !important; }
    .footer-grid   { grid-template-columns: 1fr !important; }
    .form-row      { grid-template-columns: 1fr !important; }
    .hero-head-cta { display: none !important; }
    .hero-scroll {bottom: 5px;}
    .hero-scroll__track {height: 42px;}
}



/* ── Mobile: floating TOC button (справа, фиксировано) ── */
.toc-fab {
    display: none; /* включается через JS в flex, когда TOC реально нужен */
    position: fixed;
    right: 18px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #E2E8F0;
    box-shadow: 0 14px 30px -12px rgba(15,23,42,.28);
    cursor: pointer;
    z-index: 40;
    transition: transform .2s ease, box-shadow .2s ease;
}
.toc-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(79,70,229,.3);
}

/* ── Desktop: collapsible TOC ── */
.toc-desktop-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 0 12px 0;
}
.toc-desktop-toggle__icon {
    transition: transform .3s ease;
    flex-shrink: 0;
}
.toc-desktop-toggle.is-collapsed .toc-desktop-toggle__icon {
    transform: rotate(-90deg);
}

.toc-desktop-panel {
    overflow: hidden;
    max-height: calc(100vh - 260px);
    transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
    opacity: 1;
}
.toc-desktop-panel.is-collapsed {
    max-height: 0;
    opacity: 0;
}

.toc-scroll {
    overflow-y: auto;
    padding-right: 4px;
}
.toc-scroll::-webkit-scrollbar { width: 5px; }
.toc-scroll::-webkit-scrollbar-track { background: transparent; }
.toc-scroll::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 10px; }
.toc-scroll::-webkit-scrollbar-thumb:hover { background: #C7CEDB; }

/* ── TOC links ── */
.toc-link {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: background .2s, color .2s;
    line-height: 1.4;
}
.toc-link:hover { background: #F1F3F8; color: #0F172A; }
.toc-link.is-active {
    background: linear-gradient(135deg, rgba(79,70,229,.1), rgba(6,182,212,.1));
    color: #4F46E5;
}
.toc-link--sub {
    padding-left: 22px;
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
}

/* ── Mobile drawer (без изменений) ── */
.toc-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .45);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 90;
}
.toc-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.toc-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(340px, 86vw);
    background: #fff;
    box-shadow: -20px 0 50px -20px rgba(15,23,42,.35);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 91;
    display: flex;
    flex-direction: column;
}
.toc-drawer.is-open { transform: translateX(0); }

.toc-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #ECEFF4;
    flex-shrink: 0;
}
.toc-drawer__close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: #F1F3F8;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.toc-drawer__close:hover { background: #E2E8F0; }

.toc-drawer__body {
    padding: 18px 16px;
    overflow-y: auto;
    flex: 1;
}

/* ── Share buttons ── */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid #ECEFF4;
    flex-wrap: wrap;
}

.share-buttons__label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94A3B8;
}

.share-buttons__list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #F1F3F8;
    border: 1px solid #E9EDF3;
    color: #64748B;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn--telegram:hover {
    background: #E8F4FD;
    border-color: #B8DFF7;
    color: #0088CC;
}

.share-btn--whatsapp:hover {
    background: #E7F9EF;
    border-color: #BCEED2;
    color: #25D366;
}

.share-btn--vk:hover {
    background: #EAF2FE;
    border-color: #C3DAFB;
    color: #0077FF;
}

.share-btn--copy:hover,
.share-btn--native:hover {
    background: rgba(79, 70, 229, .08);
    border-color: rgba(79, 70, 229, .25);
    color: #4F46E5;
}

.share-btn--copy.is-copied {
    background: rgba(13, 148, 136, .1);
    border-color: rgba(13, 148, 136, .3);
    color: #0D9488;
}



/* ── HTML Sitemap (Rank Math shortcode) ── */
.html-sitemap .rank-math-html-sitemap ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: .5em;
}
 
.html-sitemap .rank-math-html-sitemap li {
    padding-left: 0;
}
.html-sitemap .rank-math-html-sitemap li::before {
    display: none;
}
 
.html-sitemap .rank-math-html-sitemap a {
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    color: #334155;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.html-sitemap .rank-math-html-sitemap a:hover {
    color: #4F46E5;
    border-color: rgba(79,70,229,.35);
}
 
.html-sitemap .rank-math-html-sitemap > ul > li {
    margin-top: 2.2em;
}
.html-sitemap .rank-math-html-sitemap > ul > li:first-child {
    margin-top: 0;
}
.html-sitemap .rank-math-html-sitemap > ul > li > a,
.html-sitemap .rank-math-html-sitemap > ul > li > span {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.01em;
    border-bottom: none;
}
 
.html-sitemap .rank-math-html-sitemap ul ul {
    margin-top: .6em;
    padding-left: 1.4em;
    border-left: 2px solid #ECEFF4;
}