/* Первый экран Code.ak */

/* Глобальное выделение для всего сайта */
::selection {
    background-color: color-mix(in srgb, var(--accent) 45%, transparent);
    color: var(--text-primary);
}

/* Для Firefox*/
::-moz-selection {
    background-color: color-mix(in srgb, var(--accent) 45%, transparent);
    color: var(--text-primary);
}
#hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(7rem, 11vh, 9rem) 0 clamp(4rem, 8vh, 6rem);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

#hero::before {
    inset: 0;
    width: auto;
    height: auto;
    z-index: -2;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, transparent 4%, #000 34%, transparent 96%);
    mix-blend-mode: normal;
    filter: none;
}

[data-theme="light"] #hero::before {
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
    filter: none;
    mix-blend-mode: normal;
}

#hero .hero-wrapper {
    width: 100%;
    max-width: 1460px;
    margin: 0 auto;
    padding-inline: clamp(1.5rem, 5vw, 4.5rem);
    display: flex;
    justify-content: center;
}

#hero .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(500px, 0.92fr);
    gap: clamp(1rem, 3vw, 3.25rem);
    align-items: center;
    width: 100%;
}

#hero .hero-content {
    display: flex;
    flex-direction: column;
    max-width: 690px;
    padding: 0;
    animation: none;
}

#hero .hero-content h1 {
    max-width: 14ch;
    margin: 0 0 1.4rem;
    font-size: clamp(3rem, 4.15vw, 4.35rem);
    line-height: 1.03;
    font-weight: 700;
    letter-spacing: -0.052em;
    text-wrap: balance;
}

#hero .hero-content h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero .hero-description {
    max-width: 59ch;
    margin: 0 0 2rem;
    font-size: clamp(1.02rem, 1.25vw, 1.17rem);
    line-height: 1.68;
    text-wrap: pretty;
}

#hero .hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

#hero .hero-buttons .btn {
    min-height: 3.35rem;
}

#hero .hero-buttons .btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

#hero .hero-buttons .btn:active {
    scale: 0.96;
}

#hero .hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 640 / 380;
}

#hero .ui-layer {
    position: absolute;
    border-radius: 16px;
    pointer-events: none;
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease, filter 0.4s ease;
}

#hero .layer-back-1 {
    width: 340px; /* Сделали фоновые карточки крупнее */
    height: 220px;
    background: color-mix(in srgb, var(--bg-card) 25%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
    transform: translate(-90px, -55px) rotate(-5deg); /* Раздвинули шире, убирая кашу */
    z-index: -1;
    opacity: 0.35;
    padding: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

#hero .layer-back-2 {
    width: 220px;
    height: 280px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--bg-card) 50%, transparent), transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
    transform: translate(140px, 45px) rotate(6deg); /* Раздвинули в другую сторону */
    z-index: -2;
    opacity: 0.25;
    padding: 20px;
    display: flex;
    align-items: flex-end;
}

#hero .mock-code {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: monospace;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: left;
    line-height: 1.4;
    opacity: 0.7;
}

#hero .mock-code span:nth-child(2) {
    padding-left: 12px;
    color: var(--accent);
}

#hero .mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    height: 100px;
}

#hero .mock-chart .bar {
    flex: 1;
    background: linear-gradient(to top, color-mix(in srgb, var(--accent) 30%, transparent), var(--accent));
    border-radius: 4px;
    opacity: 0.5;
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

#cardGlitchCanvas {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 pointer-events: none;
 display: block;
}

#hero .hero-visual::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 25%, transparent), transparent 65%);
    filter: blur(60px);
    -webkit-filter: blur(60px);
    z-index: -3;
    pointer-events: none;
}

#hero .hero-visual:hover .layer-back-1 {
    transform: translate(-50px, -25px) rotate(-2deg);
    opacity: 0.65;
}

#hero .hero-visual:hover .layer-back-2 {
    transform: translate(95px, 15px) rotate(4deg);
    opacity: 0.5;
}

#hero .hero-visual:hover .mock-chart .bar {
    transform: scaleY(1.15);
}

#hero .floating-card {
    width: 100% !important;
    height: 100% !important;
    max-width: 640px !important;
    min-height: 380px !important;
    position: relative;
    display: flex !important;
}

.card-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: opacity 0.15s ease;
}

#hero .card-icon {
    width: 4.5rem;
    height: 4.5rem;
    color: #ffffff;
    background: var(--gradient-1);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 35%, transparent);
}

#hero .card-icon svg {
    width: 32px;
    height: 32px;
}

#hero .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

#hero .card-text {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 32ch;
}

#hero .floating-card.is-glitching .card-content-wrapper {
    opacity: 0;
}

#cardGlitchCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
}

#hero .floating-card.is-glitching #cardGlitchCanvas {
    display: block;
}

#hero .card-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatMain {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes codeakVisualEnter {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes codeakHeroEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    #hero .hero-content > * {
        opacity: 0;
        animation: codeakHeroEnter 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    #hero .hero-content > :nth-child(2) { animation-delay: 0.08s; }
    #hero .hero-content > :nth-child(3) { animation-delay: 0.16s; }
}

@media (max-width: 1300px) {
    section#hero {
        padding-top: clamp(6.5rem, 10vh, 8rem);
    }

    #hero .hero-grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(440px, 0.88fr);
        gap: 0.75rem;
        text-align: left;
    }

    #hero .hero-content {
        align-items: flex-start;
        max-width: 640px;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    #hero .hero-content h1,
    #hero .hero-description {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    #hero .hero-content h1 {
        font-size: clamp(2.8rem, 4.2vw, 3.45rem);
    }

    #hero .hero-description {
        max-width: 55ch;
        font-size: 1.02rem;
    }

    #hero .hero-buttons {
        justify-content: flex-start;
        width: 100%;
    }

    #hero .hero-visual {
        height: 520px;
    }

  #hero .floating-card {
    width: 100% !important;
    max-width: 460px !important;
    min-height: auto !important;
    aspect-ratio: 640 / 380;
  }
  #cardGlitchCanvas {
    width: 100% !important;
    height: auto !important;
  }

    #hero .card-3 {
        left: 15%;
        scale: 1.08;
    }
    
      #hero .layer-back-1 {
    width: 260px; /* Уменьшаем ширину */
    height: 170px; /* Уменьшаем высоту */
    transform: translate(-50px, -40px) rotate(-4deg); /* Прижимаем ближе к центру */
    padding: 12px;
  }
  #hero .mock-code {
    font-size: 9px; /* Сжимаем моноширинный код */
    gap: 4px;
  }

  #hero .layer-back-2 {
    width: 170px;
    height: 210px;
    transform: translate(90px, 30px) rotate(4deg); /* Прижимаем ближе к центру */
    padding: 14px;
  }
  #hero .mock-chart {
    height: 70px; /* Делаем график чуть ниже */
    gap: 8px;
  }

  /* Корректируем ховер-эффекты для этого разрешения */
  #hero .hero-visual:hover .layer-back-1 {
    transform: translate(-30px, -20px) rotate(-2deg);
  }
  #hero .hero-visual:hover .layer-back-2 {
    transform: translate(65px, 15px) rotate(2deg);
  }
}

@media (max-width: 1080px) {
      #hero .floating-card {
        max-width: 540px !important;
        margin: 0 auto;
    }

    #hero .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    #hero .hero-content {
        align-items: center;
        max-width: 760px;
        margin-inline: auto;
        text-align: center;
    }

    #hero .hero-content h1,
    #hero .hero-description {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    #hero .hero-content h1 {
        max-width: 16ch;
        font-size: clamp(2.65rem, 6vw, 3.6rem);
    }

    #hero .hero-description {
        max-width: 62ch;
    }

    #hero .hero-buttons {
        justify-content: center;
    }

    #hero .hero-visual {
        width: min(100%, 720px);
        height: 390px;
        margin-inline: auto;
    }

    #hero .card-1 { top: 2%; left: 2%; }
    #hero .card-2 { top: 4%; right: 2%; }
    #hero .card-3 { top: 36%; left: 34%; }
    #hero .card-4 { right: 4%; bottom: 3%; }
    #hero .card-5 { bottom: 4%; left: 3%; }
}

@media (max-width: 600px) {
    section#hero {
        min-height: 100svh;
        padding: 5.7rem 0 2.75rem;
    }

    #hero .hero-wrapper {
        padding-inline: 1rem;
    }

    #hero .hero-grid {
        gap: 0.7rem;
    }

    #hero .hero-content {
        padding: 0;
    }

    #hero .hero-content h1 {
        max-width: 17ch;
        margin-bottom: 1rem;
        font-size: clamp(1.95rem, 9vw, 2.35rem);
        line-height: 1.08;
        letter-spacing: -0.042em;
    }

    #hero .hero-description {
        max-width: 38ch;
        margin-bottom: 1.35rem;
        font-size: 0.96rem;
        line-height: 1.55;
    }

    #hero .hero-buttons {
        flex-direction: column;
        gap: 0.7rem;
        margin-bottom: 0;
    }

    #hero .hero-buttons .btn {
        width: min(100%, 22rem);
        min-height: 3rem;
        padding: 0.78rem 1rem;
        font-size: 0.92rem;
    }

    #hero .hero-visual {
        width: 100%;
        height: 285px;
    }

    #hero .hero-visual::before {
        width: 88%;
    }

  #hero .floating-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: 640 / 380;
  }
    #cardGlitchCanvas {
    width: 100% !important;
    height: auto !important;
  }

    #hero .card-2,
    #hero .card-4 {
        display: none;
    }

    #hero .card-1 {
        top: 8%;
        left: 0;
    }

    #hero .card-3 {
        top: 31%;
        left: auto;
        right: 2%;
        scale: 1.02;
    }

    #hero .card-5 {
        left: 11%;
        bottom: 1%;
    }

    #hero .card-icon {
        width: 2.2rem;
        height: 2.2rem;
        margin-bottom: 0.55rem;
        border-radius: 9px;
    }

    #hero .card-icon svg {
        width: 20px;
        height: 20px;
    }

    #hero .card-title {
        font-size: 0.8rem;
    }

    #hero .card-text {
        font-size: 0.68rem;
        line-height: 1.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    #hero .hero-content > *,
    #hero .hero-visual,
    #hero .floating-card {
        opacity: 1;
        animation: none;
        filter: none;
        transform: none;
        transition-duration: 0.01ms;
    }
}

        .btn span {
            margin-left: 0.5rem;
            display: inline-block;
        }
        
        /* Контейнер для боковой навигации по секциям (точки) */
        .nav-dots {
            position: fixed;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* Точка в боковой навигации */
        .nav-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: 2px solid var(--accent);
            background: transparent;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .nav-dot::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 100%;
            height: 100%;
            background: var(--accent);
            border-radius: 50%;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .nav-dot:hover::before {
            transform: translate(-50%, -50%) scale(1.5);
            opacity: 0.5;
        }

        .nav-dot.active {
            background: var(--accent);
            box-shadow: 0 0 15px var(--accent-glow);
        }

        .nav-dot.active::before {
            transform: translate(-50%, -50%) scale(1);
        }

        .nav-dot-tooltip {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%) translateX(10px);
            background: var(--bg-card);
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.8rem;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--border);
            color: var(--text-primary);
        }

        .nav-dot:hover .nav-dot-tooltip {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
        }
        /* Секция возможностей */
        .features {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            padding: 0;
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
            padding: 0 5%;
        }

        .section-header h2 {
            font-size: 2.3rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .section-header p {
            color: var(--text-secondary);
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Интерактивные форматы Code.ak */
        #features-list .container {
            max-width: 1460px;
        }

        #features-list .features-interactive {
            width: 100%;
        }

        #features-list .features-grid {
            display: grid;
            grid-template-columns: minmax(390px, 1.1fr) repeat(2, minmax(250px, 1fr));
            grid-template-rows: repeat(2, 278px);
            gap: 1.1rem;
            min-width: 0;
        }

        #features-list .features-grid::before {
            content: '';
            grid-column: 1;
            grid-row: 1 / 3;
            z-index: 0;
            background: transparent;
            border: 2px solid var(--accent);
            border-radius: 18px;
            box-shadow: 0 12px 24px var(--shadow);
        }

        #features-list .feature-option {
            display: contents;
        }

        #features-list .feature-option:nth-child(1) .feature-card {
            grid-column: 2;
            grid-row: 1;
        }

        #features-list .feature-option:nth-child(2) .feature-card {
            grid-column: 3;
            grid-row: 1;
        }

        #features-list .feature-option:nth-child(3) .feature-card {
            grid-column: 2;
            grid-row: 2;
        }

        #features-list .feature-option:nth-child(4) .feature-card {
            grid-column: 3;
            grid-row: 2;
        }

        #features-list .feature-card {
            width: 100%;
            min-width: 0;
            min-height: 278px;
            padding: 1.35rem 1.1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            gap: 0.95rem;
            color: var(--text-primary);
            font: inherit;
            text-align: center;
            appearance: none;
            cursor: pointer;
            background: transparent;
            border: 1px solid color-mix(in srgb, var(--border) 78%, var(--accent) 22%);
            border-radius: 18px;
            opacity: 0;
            transform: translateY(30px);
            transition-property: opacity, transform, border-color, box-shadow, background-color;
            transition-duration: 0.45s, 0.35s, 0.3s, 0.35s, 0.3s;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        }

        #features-list .feature-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        #features-list .feature-card:hover {
            transform: translateY(-8px);
            border-color: color-mix(in srgb, var(--accent) 70%, var(--border) 30%);
            box-shadow: 0 20px 40px var(--shadow);
        }

        #features-list .feature-card.active,
        #features-list .feature-card.active:hover {
            transform: translateY(0);
            border-color: color-mix(in srgb, var(--accent) 80%, var(--border) 20%);
            background: color-mix(in srgb, var(--bg-card) 25%, var(--bg-primary) 18%);
            box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 14px 26px var(--shadow);
        }

        #features-list .feature-card:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 3px;
        }

        #features-list .feature-icon {
            width: 56px;
            height: 56px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            color: var(--text-primary);
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            border-radius: 12px;
            transition-property: color, background-color, border-color, box-shadow, transform;
            transition-duration: 0.35s;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        }

        #features-list .feature-icon svg {
            width: 24px;
            height: 24px;
            display: block;
        }

        #features-list .feature-card:hover .feature-icon,
        #features-list .feature-card.active .feature-icon {
            color: #ffffff;
            background: var(--gradient-1);
            border-color: transparent;
            box-shadow: 0 8px 18px var(--accent-glow);
        }

        #features-list .feature-card:hover .feature-icon {
            transform: none;
        }

        #features-list .feature-card-copy {
            display: grid;
            justify-items: center;
            gap: 0.75rem;
        }

        #features-list .feature-card-title {
            color: var(--text-primary);
            font-size: 1.08rem;
            font-weight: 700;
            line-height: 1.3;
            letter-spacing: -0.015em;
            text-wrap: balance;
        }

        #features-list .feature-card-summary {
            max-width: 30ch;
            color: var(--text-secondary);
            font-size: 0.88rem;
            line-height: 1.45;
            text-wrap: pretty;
        }

        #features-list .feature-detail-content {
            grid-column: 1;
            grid-row: 1 / 3;
            min-width: 0;
            min-height: 574px;
            z-index: 1;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: none;
            transition-property: opacity, transform, visibility;
            transition-duration: 0.24s, 0.28s, 0s;
            transition-delay: 0s, 0s, 0.28s;
            transition-timing-function: ease, cubic-bezier(0.4, 0, 0.2, 1), linear;
        }

        #features-list .feature-detail-content.is-active {
            z-index: 2;
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
            transition-delay: 0.08s, 0.08s, 0s;
        }

        #features-list .feature-detail-inner {
            width: 100%;
            height: 100%;
            min-height: 574px;
            padding: 1.35rem;
            display: flex;
            flex-direction: column;
            background: color-mix(in srgb, var(--bg-card) 25%, var(--bg-primary) 18%);
            border: 1px solid color-mix(in srgb, var(--accent) 80%, var(--border) 20%);
            border-radius: 18px;
        }

        #features-list .feature-detail-visual {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.95rem;
        }

        #features-list .feature-detail-icon {
            width: 44px;
            height: 44px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            color: #fff;
            background: var(--gradient-1);
            border-radius: 12px;
            box-shadow: 0 8px 18px var(--accent-glow);
        }

        #features-list .feature-detail-icon svg {
            width: 20px;
            height: 20px;
        }

        #features-list .feature-detail-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.33rem 0.7rem;
            color: var(--text-muted);
            font-size: 0.72rem;
            line-height: 1;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            border: 1px solid var(--border-light);
            border-radius: 999px;
        }

        #features-list .feature-detail-label {
            margin-bottom: 0.4rem;
            color: var(--text-muted);
            font-size: 0.7rem;
            line-height: 1.2;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        #features-list .feature-detail-content h3 {
            margin-top: 1.35rem;
            margin-bottom: 1.1rem;
            color: var(--text-primary);
            font-size: 1.38rem;
            line-height: 1.25;
            letter-spacing: -0.01em;
            text-wrap: balance;
        }

        #features-list .feature-detail-content p:not(.feature-detail-label) {
            margin-bottom: 1.45rem;
            color: var(--text-secondary);
            font-size: 0.92rem;
            line-height: 1.62;
            text-wrap: pretty;
        }

        #features-list .feature-detail-content ul {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            gap: 0.45rem;
            margin: auto 0 0.9rem;
            padding: 0;
            list-style: none;
        }

        #features-list .feature-detail-content li {
            position: relative;
            padding-left: 1.15rem;
            color: var(--text-primary);
            font-size: 0.86rem;
            line-height: 1.45;
        }

        #features-list .feature-detail-content li::before {
            content: '';
            position: absolute;
            top: 0.52em;
            left: 0;
            width: 0.42rem;
            height: 0.42rem;
            background: var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

        #features-list .feature-detail-link {
            width: 100%;
            min-height: 3rem;
            height: 3rem;
            margin-top: auto;
            justify-content: center;
            white-space: nowrap;
        }

        /* Результат и контроль качества */
        #standards {
            padding-block: clamp(6.5rem, 10vw, 8rem);
            scroll-margin-top: 5rem;
            isolation: isolate;
            overflow: hidden;
        }

        .outcomes {
            width: 100%;
            background: transparent;
            padding: 0;
        }

        #standards .container {
            max-width: 1320px;
        }

        #standards .outcomes-header {
            max-width: 760px;
            margin-inline: auto;
            margin-bottom: clamp(3.5rem, 6vw, 5rem);
        }

        .outcomes-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
            gap: clamp(3rem, 6vw, 6rem);
            align-items: start;
        }

        .outcomes-panel {
            min-width: 0;
        }

        .outcomes-kicker {
            margin-bottom: 0.7rem;
            color: var(--accent);
            font-size: 0.75rem;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .outcomes-panel > h3 {
            max-width: 22ch;
            margin-bottom: 2rem;
            color: var(--text-primary);
            font-size: clamp(1.45rem, 2.4vw, 2rem);
            line-height: 1.18;
            letter-spacing: -0.035em;
            text-wrap: balance;
        }

        .deliverables-list,
        .quality-flow {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .deliverables-list {
            border-top: 1px solid var(--border);
        }

        .deliverable-item {
            display: grid;
            grid-template-columns: 3.25rem minmax(0, 1fr);
            gap: 1.1rem;
            align-items: start;
            padding-block: 1.3rem;
            border-bottom: 1px solid var(--border);
            transition: border-color 0.25s ease, transform 0.25s ease;
        }

        .deliverable-index {
            padding-top: 0.12rem;
            color: var(--text-muted);
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            transition: color 0.25s ease;
        }

        .deliverable-item h4,
        .quality-flow h4 {
            margin-bottom: 0.42rem;
            color: var(--text-primary);
            font-size: 1.08rem;
            line-height: 1.3;
            letter-spacing: -0.02em;
        }

        .deliverable-item p,
        .quality-flow p {
            max-width: 52ch;
            color: var(--text-secondary);
            font-size: 0.92rem;
            line-height: 1.58;
            text-wrap: pretty;
        }

        .deliverable-item:hover {
            border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
            transform: translateX(3px);
        }

        .deliverable-item:hover .deliverable-index {
            color: var(--accent);
        }

        .outcomes-quality {
            padding-inline-start: clamp(2.5rem, 4vw, 4rem);
            border-inline-start: 1px solid var(--border);
        }

        .quality-flow li {
            position: relative;
            padding-block-end: 1.8rem;
            padding-inline-start: 2rem;
        }

        .quality-flow li::before {
            content: '';
            position: absolute;
            inset-block-start: 0.42rem;
            inset-inline-start: 0;
            width: 0.48rem;
            height: 0.48rem;
            background: var(--accent);
            border-radius: 2px;
            box-shadow: 0 0 0 4px var(--accent-glow);
        }

        .quality-flow li::after {
            content: '';
            position: absolute;
            inset-block: 1.15rem -0.15rem;
            inset-inline-start: 0.21rem;
            width: 1px;
            background: var(--border);
        }

        .quality-flow li:last-child {
            padding-bottom: 0;
        }

        .quality-flow li:last-child::after {
            display: none;
        }

        @keyframes outcomeReveal {
            from {
                opacity: 0;
                transform: translateY(18px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @supports (animation-timeline: view()) {
            .outcome-reveal {
                animation: outcomeReveal linear both;
                animation-timeline: view();
                animation-range: entry 0% entry 100%;
            }
        }

        /* Рабочее пространство проекта */
        #pricing {
            padding-block: clamp(6.5rem, 10vw, 8rem);
            scroll-margin-top: 5rem;
            isolation: isolate;
            overflow: hidden;
        }

        #pricing .workspace-section {
            max-width: 1320px;
        }

        #pricing .workspace-header {
            max-width: 780px;
            margin-inline: auto;
            margin-bottom: clamp(3.5rem, 6vw, 5rem);
        }

        .workspace-scene {
            position: relative;
            overflow: hidden;
            background: transparent;
            border: 1px solid color-mix(in srgb, var(--border) 78%, var(--accent) 22%);
            border-radius: 24px;
        }

        .workspace-rail,
        .workspace-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
            padding: 1.35rem clamp(1.5rem, 3vw, 2.5rem);
        }

        .workspace-rail {
            border-bottom: 1px solid var(--border);
        }

        .workspace-eyebrow {
            margin-bottom: 0.25rem;
            color: var(--accent);
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .workspace-rail h3 {
            color: var(--text-primary);
            font-size: clamp(1.15rem, 2vw, 1.45rem);
            line-height: 1.2;
            letter-spacing: -0.025em;
        }

        .workspace-rail-label {
            display: inline-flex;
            align-items: center;
            min-height: 2rem;
            padding-inline: 0.8rem;
            color: var(--text-secondary);
            font-size: 0.74rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            border: 1px solid var(--border);
            border-radius: 999px;
        }

        .workspace-flow {
            position: relative;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .workspace-layer {
            position: relative;
            min-width: 0;
            min-height: 260px;
            padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
            transition-property: background-color;
            transition-duration: 0.2s;
            transition-timing-function: ease-out;
        }

        .workspace-layer + .workspace-layer {
            border-inline-start: 1px solid var(--border);
        }

        .workspace-layer::before {
            content: '';
            position: absolute;
            inset-block-start: 0;
            inset-inline: clamp(1.5rem, 3vw, 2.5rem);
            height: 2px;
            background: var(--accent);
            opacity: 0;
            transform: scaleX(0.25);
            transform-origin: left;
            transition-property: opacity, transform;
            transition-duration: 0.22s;
            transition-timing-function: ease-out;
        }

        .workspace-layer:hover {
            background: color-mix(in srgb, var(--bg-card) 45%, var(--bg-primary) 18%);
        }

        .workspace-layer:hover::before {
            opacity: 1;
            transform: scaleX(1);
        }

        .workspace-layer-index {
            display: block;
            margin-bottom: clamp(2.5rem, 5vw, 4rem);
            color: var(--accent);
            font-size: 0.76rem;
            font-weight: 700;
            letter-spacing: 0.08em;
        }

        .workspace-layer-label {
            margin-bottom: 0.55rem;
            color: var(--text-muted);
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: 0.09em;
            text-transform: uppercase;
        }

        .workspace-layer h4 {
            margin-bottom: 0.8rem;
            color: var(--text-primary);
            font-size: clamp(1.35rem, 2.5vw, 1.8rem);
            line-height: 1.15;
            letter-spacing: -0.035em;
        }

        .workspace-layer-copy > p:last-child {
            max-width: 34ch;
            color: var(--text-secondary);
            font-size: 0.92rem;
            line-height: 1.62;
            text-wrap: pretty;
        }

        .workspace-footer {
            border-top: 1px solid var(--border);
        }

        .workspace-footer p {
            max-width: 46ch;
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.55;
        }

        .workspace-login {
            min-width: 11rem;
            justify-content: center;
            flex: 0 0 auto;
        }

        @keyframes workspaceAssemble {
            from {
                opacity: 0;
                transform: translateY(18px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @supports (animation-timeline: view()) {
            .workspace-reveal {
                animation: workspaceAssemble linear both;
                animation-timeline: view();
                animation-range: entry 0% entry 100%;
            }
        }

        /* Проекты и Code.ak в цифрах */
        #projects {
            padding-block: clamp(6.5rem, 10vw, 8rem);
            scroll-margin-top: 5rem;
            overflow: hidden;
        }

        #projects .projects-section {
            max-width: 1320px;
        }

        #projects .projects-header {
            max-width: 720px;
            margin-inline: auto;
            margin-bottom: clamp(3.5rem, 6vw, 5rem);
        }

        .projects-stats {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            max-width: 1040px;
            margin: 0 auto clamp(4.5rem, 8vw, 7rem);
        }

        .projects-stat {
            display: flex;
            flex-direction: column;
            min-width: 0;
            padding-inline: clamp(1.5rem, 4vw, 3.5rem);
            text-align: center;
        }

        .projects-stat + .projects-stat {
            border-inline-start: 1px solid var(--border);
        }

        .projects-stat dd {
            order: -1;
            margin: 0 0 0.45rem;
            color: var(--text-primary);
            font-size: clamp(3.25rem, 7vw, 5.6rem);
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            line-height: 0.9;
            letter-spacing: -0.065em;
        }

        .projects-stat dd span {
            display: inline-block;
        }

        .projects-stat dt {
            color: var(--text-secondary);
            font-size: clamp(0.88rem, 1.25vw, 1rem);
            line-height: 1.4;
        }

        .projects-list {
            border-block-end: 1px solid var(--border);
        }

        .project-item {
            position: relative;
            display: grid;
            grid-template-columns: minmax(220px, 300px) 4.5rem minmax(0, 1fr);
            align-items: center;
            gap: clamp(1.5rem, 3.5vw, 3.5rem);
            padding-block: clamp(1.5rem, 3vw, 2.25rem);
            border-block-start: 1px solid var(--border);
            transition-property: border-color;
            transition-duration: 0.18s;
            transition-timing-function: ease-out;
        }

        .project-media {
            position: relative;
            display: grid;
            min-height: 150px;
            overflow: hidden;
            color: color-mix(in srgb, var(--text-primary) 48%, transparent);
            background-color: color-mix(in srgb, var(--bg-card) 62%, transparent);
            background-image:
                linear-gradient(color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
                linear-gradient(90deg, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
            background-size: 24px 24px;
            border-radius: 16px;
            box-shadow: inset 0 0 0 1px var(--border);
        }

        .project-media::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, transparent 36%, color-mix(in srgb, var(--accent) 7%, transparent));
            pointer-events: none;
        }

        .project-media-mark {
            width: 4.4rem;
            height: 2.55rem;
            place-self: center;
            background: currentColor;
            -webkit-mask: url('../../assets/brand/codeak-mark.png') center / contain no-repeat;
            mask: url('../../assets/brand/codeak-mark.png') center / contain no-repeat;
            transition-property: color, transform;
            transition-duration: 0.18s;
            transition-timing-function: ease-out;
        }

        .project-media-label {
            position: absolute;
            inset-inline-start: 0.85rem;
            inset-block-end: 0.75rem;
            color: var(--text-muted);
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .project-index {
            align-self: start;
            padding-top: 0.15rem;
            color: var(--accent);
            font-size: 0.76rem;
            font-weight: 700;
            letter-spacing: 0.08em;
        }

        .project-copy {
            min-width: 0;
        }

        .project-copy h3 {
            margin-bottom: 0.65rem;
            color: var(--text-primary);
            font-size: clamp(1.4rem, 2.75vw, 2rem);
            line-height: 1.15;
            letter-spacing: -0.035em;
        }

        .project-copy p {
            max-width: 48ch;
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.6;
        }

        @media (hover: hover) and (pointer: fine) {
            .project-item:hover {
                border-block-start-color: color-mix(in srgb, var(--accent) 68%, var(--border));
            }

            .project-item:hover .project-media-mark {
                color: var(--accent);
                transform: translateY(-3px);
            }
        }

        @keyframes projectsReveal {
            from {
                opacity: 0;
                transform: translateY(18px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @supports (animation-timeline: view()) {
            .projects-reveal {
                animation: projectsReveal linear both;
                animation-timeline: view();
                animation-range: entry 0% entry 100%;
            }

            .project-item:nth-child(2) {
                animation-range-start: entry 8%;
            }

            .project-item:nth-child(3) {
                animation-range-start: entry 16%;
            }
        }

        /* Частые вопросы */
        #faq {
            padding-block: clamp(6rem, 9vw, 7.5rem);
            scroll-margin-top: 5rem;
            position: relative;
            isolation: isolate;
            overflow: hidden;
        }

        #faq .faq-section {
            display: grid;
            grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
            gap: clamp(3rem, 8vw, 8rem);
            max-width: 1180px;
        }

        .faq-header h2 {
            color: var(--text-primary);
            font-size: clamp(2.25rem, 4vw, 3.25rem);
            line-height: 1.05;
            letter-spacing: -0.045em;
            text-wrap: balance;
        }

        .faq-list {
            border-block-start: 1px solid var(--border);
        }

        .faq-item {
            border-block-end: 1px solid var(--border);
        }

        .faq-item summary {
            display: grid;
            grid-template-columns: 2.5rem minmax(0, 1fr) 2.75rem;
            align-items: center;
            gap: 1rem;
            min-height: 5.25rem;
            padding-block: 1rem;
            color: var(--text-primary);
            cursor: pointer;
            list-style: none;
        }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 4px;
        }

        .faq-number {
            color: var(--accent);
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.08em;
        }

        .faq-question {
            font-size: clamp(1.05rem, 1.8vw, 1.3rem);
            font-weight: 600;
            line-height: 1.35;
            letter-spacing: -0.02em;
            text-wrap: pretty;
        }

        .faq-toggle {
            position: relative;
            width: 2.75rem;
            height: 2.75rem;
            justify-self: end;
            color: var(--text-secondary);
        }

        .faq-toggle::before,
        .faq-toggle::after {
            content: '';
            position: absolute;
            inset-block-start: 50%;
            inset-inline-start: 50%;
            width: 1rem;
            height: 1px;
            background: currentColor;
            transform: translate(-50%, -50%);
            transition-property: transform, opacity;
            transition-duration: 0.18s;
            transition-timing-function: ease-out;
        }

        .faq-toggle::after {
            transform: translate(-50%, -50%) rotate(90deg);
        }

        .faq-item[open] .faq-toggle::after {
            opacity: 0;
            transform: translate(-50%, -50%) rotate(0deg);
        }

        .faq-item[open] .faq-toggle {
            color: var(--accent);
        }

        .faq-answer {
            display: grid;
            grid-template-rows: 0fr;
            padding-top: 0;
            padding-bottom: 0;
            padding-inline: 3.5rem 3.75rem;
            opacity: 0;
            transition-property: grid-template-rows, opacity, padding-bottom;
            transition-duration: 0.28s;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
            will-change: grid-template-rows, opacity, padding-bottom;
        }

        .faq-answer > * {
            overflow: hidden;
            min-height: 0;
        }

        .faq-item[open] .faq-answer {
            grid-template-rows: 1fr;
            padding-bottom: 2.5rem;
            opacity: 1;
        }

        .faq-item.is-closing .faq-answer {
            grid-template-rows: 0fr;
            padding-bottom: 0;
            opacity: 0;
        }

        .faq-answer p {
            max-width: 62ch;
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.65;
            overflow-wrap: anywhere;
        }

        @media (hover: hover) and (pointer: fine) {
            .faq-item summary:hover .faq-question,
            .faq-item summary:hover .faq-toggle {
                color: var(--accent);
            }
        }

        /* Финальный контактный блок */
        #contacts {
            padding-block: clamp(6.5rem, 11vw, 9rem);
            scroll-margin-top: 5rem;
            overflow: hidden;
        }

        #contacts .contacts-section {
            display: grid;
            grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
            align-items: end;
            gap: clamp(4rem, 10vw, 9rem);
            max-width: 1240px;
        }

        .contacts-main h2 {
            max-width: 12ch;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
            font-size: clamp(3rem, 6.5vw, 6rem);
            line-height: 0.98;
            letter-spacing: -0.06em;
            text-wrap: balance;
        }

        .contacts-lead {
            max-width: 56ch;
            margin-bottom: clamp(2rem, 4vw, 3rem);
            color: var(--text-secondary);
            font-size: clamp(1rem, 1.4vw, 1.12rem);
            line-height: 1.65;
            text-wrap: pretty;
        }

        .contacts-email {
            display: inline-block;
            max-width: 100%;
            margin-bottom: 1.75rem;
            color: var(--accent);
            font-size: clamp(1.25rem, 2.5vw, 2rem);
            font-weight: 600;
            line-height: 1.25;
            letter-spacing: -0.025em;
            overflow-wrap: anywhere;
            text-decoration: none;
            text-decoration-thickness: 1px;
            text-underline-offset: 0.3em;
            transition-property: color, text-decoration-color;
            transition-duration: 0.18s;
            transition-timing-function: ease-out;
        }

        .contacts-email:focus-visible,
        .contacts-platform-link:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 4px;
        }

        .contacts-actions {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 1.25rem 1.75rem;
        }

        .contacts-platform-link {
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            min-height: 2.75rem;
            color: var(--text-primary);
            font-size: 0.95rem;
            font-weight: 600;
            text-decoration: none;
        }

        .contacts-platform-link span {
            color: var(--accent);
            transition-property: transform;
            transition-duration: 0.18s;
            transition-timing-function: ease-out;
        }

        .contacts-guide {
            padding-block-start: 1.5rem;
            border-block-start: 1px solid var(--border);
        }

        .contacts-guide > p:first-child {
            margin-bottom: 1.25rem;
            color: var(--text-muted);
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .contacts-guide ul {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem 0;
            margin: 0 0 2rem;
            padding: 0;
            list-style: none;
        }

        .contacts-guide li {
            color: var(--text-primary);
            font-size: 1rem;
            font-weight: 600;
        }

        .contacts-guide li:not(:last-child)::after {
            content: '/';
            margin-inline: 0.8rem;
            color: var(--accent);
            font-weight: 400;
        }

        @media (hover: hover) and (pointer: fine) {
            .contacts-email:hover {
                color: var(--text-primary);
                text-decoration: underline;
                text-decoration-color: var(--accent);
            }

            .contacts-platform-link:hover span {
                transform: translateX(4px);
            }
        }

        /* Секция «Как мы работаем» */
        #how-it-works-section {
            padding-block: clamp(6.5rem, 10vw, 8rem);
            scroll-margin-top: 5rem;
            isolation: isolate;
            overflow: hidden;
        }

        .how-it-works {
            width: 100%;
            padding: 0;
            background: transparent;
        }

        #how-it-works-section .container {
            max-width: 1320px;
        }

        #how-it-works-section .section-header {
            max-width: 680px;
            margin: 0 auto;
            padding: 0;
        }

        #how-it-works-section .section-header h2 {
            font-size: clamp(2.35rem, 4vw, 3.35rem);
            letter-spacing: -0.045em;
            text-wrap: balance;
        }

        #how-it-works-section .section-header p {
            max-width: 52ch;
            font-size: clamp(1rem, 1.25vw, 1.12rem);
            line-height: 1.6;
            text-wrap: pretty;
        }

        .process-steps {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: clamp(1rem, 2vw, 1.6rem);
            margin-top: clamp(3.25rem, 5vw, 4.5rem);
            position: relative;
            list-style: none;
        }

        .process-steps.is-reveal-ready::before {
            transform: scaleX(0);
            transform-origin: left center;
        }

        .process-steps.is-reveal-ready.visible::before {
            transform: scaleX(1);
            transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
        }

        .process-steps::before {
            content: '';
            position: absolute;
            top: 30px;
            left: 10%;
            right: 10%;
            height: 2px;
            z-index: 0;
            background: linear-gradient(90deg, transparent, var(--border), transparent);
        }

        .step-card {
            min-width: 0;
            position: relative;
            z-index: 1;
            text-align: center;
        }

        .step-content {
            padding: 0 0.75rem 1rem;
        }

        .step-number {
            width: 60px;
            height: 60px;
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            background: var(--bg-card);
            border: 2px solid var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 10px rgba(96, 165, 250, 0.18);
            font-size: 1.5rem;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
        }

        .step-card:hover .step-number {
            color: white;
            background: var(--accent);
            box-shadow: 0 0 15px rgba(0, 119, 255, 0.28);
            transform: scale(1.1);
        }

        .step-card h3 {
            margin-bottom: 0.7rem;
            color: var(--text-primary);
            font-size: clamp(1.08rem, 1.3vw, 1.22rem);
            line-height: 1.25;
            text-wrap: balance;
        }

        .step-card p {
            max-width: 31ch;
            margin-inline: auto;
            color: var(--text-secondary);
            font-size: 0.94rem;
            line-height: 1.62;
            text-wrap: pretty;
        }

        .process-steps.is-reveal-ready .step-card {
            opacity: 0;
            transform: translateY(24px);
            filter: blur(4px);
        }

        .process-steps.is-reveal-ready .step-number {
            opacity: 0;
            transform: scale(0.78);
        }

        .process-steps.is-reveal-ready.visible .step-card {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0);
            transition-property: opacity, transform, filter;
            transition-duration: 520ms;
            transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
            transition-delay: var(--step-delay, 0ms);
        }

        .process-steps.is-reveal-ready.visible .step-number {
            opacity: 1;
            transform: scale(1);
            transition-property: opacity, transform, box-shadow, color, background-color;
            transition-duration: 520ms;
            transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
            transition-delay: calc(var(--step-delay, 0ms) + 90ms);
        }

        @media (max-width: 1080px) {
            #how-it-works-section {
                padding-block: clamp(5.75rem, 9vw, 7rem);
            }

            .process-steps {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 3.5rem 2rem;
            }

            .process-steps::before {
                display: none;
            }

            .step-content {
                padding: 0 1rem 0.5rem;
            }

            .step-number {
                margin-bottom: 1.1rem;
            }

            .step-card p {
                max-width: 40ch;
            }
        }

        @media (max-width: 600px) {
            #how-it-works-section {
                padding-block: 5.25rem;
            }

            #how-it-works-section .container {
                padding-inline: 1rem;
            }

            #how-it-works-section .section-header {
                padding-inline: 0.45rem;
            }

            #how-it-works-section .section-header h2 {
                margin-bottom: 0.8rem;
                font-size: clamp(2.05rem, 10vw, 2.55rem);
            }

            #how-it-works-section .section-header p {
                font-size: 0.96rem;
                line-height: 1.55;
            }

            .process-steps {
                grid-template-columns: 1fr;
                gap: 3.5rem;
                margin-top: 3.25rem;
            }

            .process-steps::before {
                display: none;
            }

            .step-card {
                text-align: center;
            }

            .process-steps.is-reveal-ready .step-card {
                transform: translateY(24px);
            }

            .process-steps.is-reveal-ready.visible .step-card {
                transform: translateY(0);
            }

            .step-content {
                min-height: 0;
                padding: 0 0.5rem;
            }

            .step-number {
                position: static;
                width: 50px;
                height: 50px;
                margin: 0 auto 1rem;
                font-size: 1.3rem;
            }

            .process-steps.is-reveal-ready .step-number {
                transform: translateY(10px) scale(0.78);
            }

            .process-steps.is-reveal-ready.visible .step-number {
                transform: translateY(0) scale(1);
            }

            .step-card h3 {
                margin-bottom: 0.6rem;
                font-size: 1.07rem;
                text-align: center;
            }

            .step-card p {
                max-width: 34ch;
                margin: 0 auto;
                font-size: 0.9rem;
                line-height: 1.55;
                text-align: center;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .process-steps.is-reveal-ready .step-card,
            .process-steps.is-reveal-ready.visible .step-card {
                opacity: 1;
                transform: none;
                filter: none;
                transition: none;
            }

            .process-steps.is-reveal-ready .step-number,
            .process-steps.is-reveal-ready.visible .step-number {
                opacity: 1;
                transform: none;
                transition: none;
            }

            .process-steps.is-reveal-ready::before,
            .process-steps.is-reveal-ready.visible::before {
                transform: none;
                transition: none;
            }

            .step-number {
                transition: none;
            }
        }

        .export-badge {
            display: inline-block;
            padding: 4px 12px;
            background: rgba(96, 165, 250, 0.12);
            border: 1px solid var(--accent);
            border-radius: 20px;
            font-size: 0.75rem;
            color: var(--accent);
            font-weight: 600;
            margin-top: 10px;
        }

        /* Утилитарная видимость */
        .mobile-only { display: none; }
        .mobile-visible { display: none; }

        /* Анимация появления при прокрутке */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease-out;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

/* Адаптивные состояния страницы */

@media (max-width: 1300px) {
            .features,
            .outcomes {
                padding: 0;
            }

            .section-header {
                margin-bottom: 2.5rem;
            }

            .nav-dots,
            .nav-dot-tooltip {
                display: none;
            }

        }

        @media (max-width: 1024px) {
            .outcomes-layout {
                grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
                gap: 3rem;
            }

            .outcomes-quality {
                padding-inline-start: 2.5rem;
            }

            #features-list .features-grid::before {
                display: none;
            }

            #features-list .features-grid {
                grid-template-columns: 1fr;
                grid-template-rows: none;
                gap: 1rem;
                width: min(100%, 800px);
                margin-inline: auto;
                padding-inline: clamp(1rem, 4vw, 1.75rem);
            }

            #features-list .feature-option {
                display: grid;
                grid-template-rows: auto 0fr;
                min-width: 0;
                transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
            }

            #features-list .feature-option.expanded {
                grid-template-rows: auto 1fr;
            }

            #features-list .features-grid .feature-option .feature-card {
                grid-column: 1;
                grid-row: 1;
                min-height: 0;
                padding: 1.15rem;
                flex-direction: column;
                align-items: flex-start;
                justify-content: flex-start;
                gap: 0;
                text-align: left;
            }

            #features-list .feature-card-copy {
                justify-items: start;
                gap: 0.35rem;
            }

            #features-list .feature-icon {
                margin-bottom: 0.5rem;
            }

            #features-list .feature-option .feature-card.active,
            #features-list .feature-option .feature-card.active:hover {
                transform: none;
                border-bottom-color: transparent;
                border-radius: 18px 18px 0 0;
                box-shadow: none;
            }

            #features-list .feature-detail-content,
            #features-list .feature-detail-content.is-active {
                grid-column: 1;
                grid-row: 2;
                min-height: 0;
                overflow: hidden;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transform: none;
                transition-property: opacity, visibility;
                transition-duration: 0.22s, 0s;
                transition-delay: 0s, 0.22s;
            }

            #features-list .feature-option.expanded .feature-detail-content.is-active {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transition-delay: 0.08s, 0s;
            }

            #features-list .feature-detail-inner {
                min-height: 0;
                height: auto;
                margin-top: 0;
                padding: clamp(1.25rem, 4vw, 1.65rem);
                border-width: 1px;
                border-style: solid;
                border-color: var(--accent);
                border-top: 0;
                border-radius: 0 0 18px 18px;
                box-shadow: 0 12px 24px var(--shadow);
            }

            #features-list .feature-detail-visual,
            #features-list .feature-detail-label,
            #features-list .feature-detail-content h3 {
                display: none;
            }
            
        }

@media (max-width: 900px) {
            .workspace-layer {
                min-height: 235px;
                padding-inline: 1.5rem;
            }

            .workspace-layer-index {
                margin-bottom: 2.5rem;
            }

            .outcomes-layout {
                grid-template-columns: 1fr;
                gap: 4rem;
            }

            .outcomes-quality {
                padding-block-start: 3rem;
                padding-inline-start: 0;
                border-block-start: 1px solid var(--border);
                border-inline-start: 0;
            }

            .outcomes-panel > h3 {
                max-width: 28ch;
            }

            .project-item {
                grid-template-columns: minmax(180px, 230px) 3rem minmax(0, 1fr);
                gap: 1.5rem;
            }

            #contacts .contacts-section {
                grid-template-columns: minmax(0, 1fr);
                align-items: start;
                gap: 4rem;
            }

            .contacts-guide {
                max-width: 640px;
            }
        }

@media (max-width: 600px) {
            #standards {
                padding-block: 5.5rem;
            }

            #standards .outcomes-header {
                margin-bottom: 3rem;
            }

            .deliverable-item {
                grid-template-columns: 2.5rem minmax(0, 1fr);
                gap: 0.8rem;
                padding-block: 1.15rem;
            }

            .outcomes-layout {
                gap: 3.25rem;
            }

            .outcomes-quality {
                padding-block-start: 2.5rem;
            }

            .quality-flow li {
                padding-inline-start: 1.75rem;
            }
        }

@media (max-width: 720px) {
            #pricing {
                padding-block: 5.5rem;
            }

            #pricing .workspace-header {
                margin-bottom: 3rem;
            }

            .workspace-scene {
                border-radius: 18px;
            }

            .workspace-rail,
            .workspace-footer {
                padding: 1.2rem;
            }

            .workspace-flow {
                grid-template-columns: 1fr;
            }

            .workspace-layer {
                display: grid;
                grid-template-columns: 2.4rem minmax(0, 1fr);
                gap: 0.85rem;
                min-height: 0;
                padding: 1.5rem 1.2rem;
            }

            .workspace-layer + .workspace-layer {
                border-block-start: 1px solid var(--border);
                border-inline-start: 0;
            }

            .workspace-layer::before {
                display: none;
            }

            .workspace-layer-index {
                margin-bottom: 0;
                padding-top: 0.2rem;
            }

            .workspace-layer h4 {
                font-size: 1.35rem;
            }

            .workspace-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 1.2rem;
            }

            .workspace-login {
                width: 100%;
            }

            #projects {
                padding-block: 5.5rem;
            }

            #projects .projects-header {
                margin-bottom: 3rem;
            }

            .projects-stats {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                margin-bottom: 4rem;
            }

            .projects-stat {
                padding: 1.25rem 0.75rem;
            }

            .projects-stat:nth-child(3) {
                grid-column: 1 / -1;
                border-block-start: 1px solid var(--border);
                border-inline-start: 0;
            }

            .projects-stat dd {
                font-size: clamp(3rem, 16vw, 4.2rem);
            }

            .project-item {
                grid-template-columns: minmax(0, 1fr);
                gap: 1rem;
                padding-block: 1.5rem 2rem;
            }

            .project-media {
                min-height: 175px;
            }

            .project-index {
                padding-top: 0.25rem;
            }

            #faq {
                padding-block: 5.25rem;
            }

            #faq .faq-section {
                grid-template-columns: minmax(0, 1fr);
                gap: 2.25rem;
            }

            .faq-item summary {
                grid-template-columns: 1.75rem minmax(0, 1fr) 2.75rem;
                gap: 0.75rem;
                min-height: 4.75rem;
            }

            .faq-question {
                font-size: 1.05rem;
            }

            .faq-answer {
                padding-block: 0 1.5rem;
                padding-inline: 2.5rem 0;
            }

            #contacts {
                padding-block: 5.75rem;
            }

            #contacts .contacts-section {
                gap: 3.25rem;
            }

            .contacts-main h2 {
                font-size: clamp(2.75rem, 13.5vw, 3.6rem);
            }

            .contacts-actions {
                align-items: stretch;
                flex-direction: column;
                gap: 0.9rem;
            }

            .contacts-primary {
                width: 100%;
                justify-content: center;
            }

            .contacts-platform-link {
                justify-content: space-between;
                min-height: 3rem;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .workspace-reveal {
                opacity: 1;
                transform: none;
                animation: none;
            }

            .workspace-layer,
            .workspace-layer::before,
            .outcome-reveal {
                opacity: 1;
                transform: none;
                animation: none;
            }

            .deliverable-item,
            .project-item,
            .project-media-mark,
            #features-list .feature-card,
            #features-list .feature-icon,
            #features-list .feature-option,
            #features-list .feature-detail-content,
            #features-list .feature-detail-content.is-active,
            #features-list .feature-option.expanded .feature-detail-content.is-active {
                transition: none;
            }

            .projects-reveal {
                opacity: 1;
                transform: none;
                animation: none;
            }

            .faq-toggle::before,
            .faq-toggle::after {
                transition: none;
            }

            .faq-answer {
                max-height: none;
                opacity: 1;
                padding-block: 0 1.75rem;
                transition: none;
                overflow: visible;
            }

            .faq-item[open] .faq-answer,
            .faq-item.is-closing .faq-answer {
                max-height: none;
                opacity: 1;
                padding-block: 0 1.75rem;
            }

            .contacts-email,
            .contacts-platform-link span {
                transition: none;
            }
        }

        #standards .outcomes-deliverables > * {
            opacity: 0;
            transform: translateX(-50px);
            transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), 
                        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        }

        #standards .outcomes-quality > * {
            opacity: 0;
            transform: translateY(-50px);
            transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), 
                        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        }

        #standards .outcomes-deliverables > *.is-visible,
        #standards .outcomes-quality > *.is-visible {
            opacity: 1;
            transform: translate(0, 0);
        }

        @media (prefers-reduced-motion: reduce) {
            #standards .outcomes-deliverables > *,
            #standards .outcomes-quality > * {
                transition: none;
                opacity: 1;
                transform: translate(0, 0);
            }
        }

.automated-code-bg {
    position: absolute;
    inset: 0;
    z-index: -3 !important; 
    pointer-events: none !important;
    contain: strict;
    content-visibility: auto;
}

.automated-code-bg *,
.automated-code-bg div,
.automated-code-bg pre,
.automated-code-bg span {
    pointer-events: none !important;
    user-select: none !important;
    touch-action: none !important;
}

.automated-code-bg .code-wrapper {
    position: absolute;
    display: flex;
    gap: 1.25rem;
    box-sizing: border-box;
    z-index: 2;
}

.automated-code-bg .code-block,
.automated-code-bg .line-numbers {
    margin: 0;
    font-family: monospace;
    font-size: clamp(0.8rem, 1.3vw, 1.4rem);
    font-weight: 500;
    line-height: 1.5;
}

/* --- ТЁМНАЯ ТЕМА --- */
.automated-code-bg .code-block {
    white-space: pre;
    color: color-mix(in srgb, var(--text-primary) 1.75%, transparent);
}

.automated-code-bg .token-keyword {
    color: color-mix(in srgb, var(--accent-back) 7.5%, transparent) !important;
    font-weight: 600;
}

.automated-code-bg .line-numbers {
    display: flex;
    flex-direction: column;
    color: color-mix(in srgb, var(--text-muted) 0.8%, transparent);
}

.automated-code-bg .code-watermark {
    position: absolute;
    font-family: monospace;
    font-size: clamp(15rem, 25vw, 35rem);
    font-weight: 700;
    color: color-mix(in srgb, var(--border) 4%, transparent);
    z-index: 1;
}

/* --- СВЕТЛАЯ ТЕМА (ПОВЫСИЛИ ВИДИМОСТЬ) --- */
[data-theme="light"] .automated-code-bg .code-block { 
    color: color-mix(in srgb, var(--text-primary) 5%, transparent); 
}

[data-theme="light"] .automated-code-bg .token-keyword { 
    color: color-mix(in srgb, var(--accent) 15%, transparent) !important; 
}

[data-theme="light"] .automated-code-bg .line-numbers { 
    color: color-mix(in srgb, var(--text-muted) 3%, transparent); 
}

[data-theme="light"] .automated-code-bg .code-watermark { 
    color: color-mix(in srgb, var(--border) 15%, transparent); 
}

/* --- МАРКЕРЫ GIT --- */
.automated-code-bg .line-numbers span {
    position: relative;
}
.automated-code-bg .line-numbers span.git-add::before {
    content: ''; position: absolute; left: -8px; top: 3px; width: 2px; height: 14px;
    background: color-mix(in srgb, #22c55e 10%, transparent);
}
.automated-code-bg .line-numbers span.git-mod::before {
    content: ''; position: absolute; left: -8px; top: 3px; width: 2px; height: 14px;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
}

.automated-code-bg .watermark-left { bottom: -5%; left: 5%; }
.automated-code-bg .watermark-right { top: -5%; right: 5%; }

.automated-code-bg .top-left.is-hero { padding-top: clamp(7rem, 11vh, 9rem); }
.automated-code-bg .top-left { top: 0; left: 4rem; }
.automated-code-bg .bottom-right { bottom: 0; right: 4rem; text-align: right; }
.automated-code-bg .top-right { top: 0; right: 4rem; text-align: right; }
.automated-code-bg .bottom-left { bottom: 0; left: 4rem; }

@media (min-width: 2500px) {
    .automated-code-bg .code-block,
    .automated-code-bg .line-numbers {
        font-size: 2rem !important; 
    }
}

@media (min-width: 1921px) and (max-width: 2499px) {
    .automated-code-bg .code-block,
    .automated-code-bg .line-numbers {
        font-size: 1.5rem !important; 
    }
}

@media (max-width: 1300px) {
    .automated-code-bg .top-left { left: 2.5rem; }
    .automated-code-bg .bottom-right { right: 2.5rem; }
    .automated-code-bg .top-right { right: 2.5rem; }
    .automated-code-bg .bottom-left { left: 2.5rem; }

    .automated-code-bg .code-watermark {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .automated-code-bg .top-left,
    .automated-code-bg .bottom-left { 
        left: 1.5rem; 
        max-width: 80%;
    }
    .automated-code-bg .top-right,
    .automated-code-bg .bottom-right { 
        right: 1.5rem; 
        max-width: 80%;
    }
    .automated-code-bg .code-block {
        white-space: pre-wrap !important;
        word-break: break-all;
    }
    .automated-code-bg .code-wrapper {
        gap: 0.75rem;
    }
}

@media (max-width: 600px) {
    .automated-code-bg .top-left,
    .automated-code-bg .bottom-left { 
        left: 0.75rem; 
        max-width: 90%;
    }
    .automated-code-bg .top-right,
    .automated-code-bg .bottom-right { 
        right: 0.75rem; 
        max-width: 90%;
    }
}
