/* ЭВЕНТА ЛАБ — Тимбилдинги по нейросетям */

@property --pos-x {
    syntax: '<percentage>';
    initial-value: 11.14%;
    inherits: false;
}

@property --pos-y {
    syntax: '<percentage>';
    initial-value: 140%;
    inherits: false;
}

@property --spread-x {
    syntax: '<percentage>';
    initial-value: 150%;
    inherits: false;
}

@property --spread-y {
    syntax: '<percentage>';
    initial-value: 180.06%;
    inherits: false;
}

@property --color-1 {
    syntax: '<color>';
    initial-value: #0F172A;
    inherits: false;
}

@property --color-2 {
    syntax: '<color>';
    initial-value: #1e1b4b;
    inherits: false;
}

@property --color-3 {
    syntax: '<color>';
    initial-value: #7C3AED;
    inherits: false;
}

@property --color-4 {
    syntax: '<color>';
    initial-value: #9333EA;
    inherits: false;
}

@property --color-5 {
    syntax: '<color>';
    initial-value: #C026D3;
    inherits: false;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 135deg;
    inherits: true;
}

@property --border-color-1 {
    syntax: '<color>';
    initial-value: rgba(124, 58, 237, 0.3);
    inherits: true;
}

@property --border-color-2 {
    syntax: '<color>';
    initial-value: rgba(236, 72, 153, 0.6);
    inherits: true;
}

@property --stop-1 {
    syntax: '<percentage>';
    initial-value: 37.35%;
    inherits: false;
}

@property --stop-2 {
    syntax: '<percentage>';
    initial-value: 61.36%;
    inherits: false;
}

@property --stop-3 {
    syntax: '<percentage>';
    initial-value: 78.42%;
    inherits: false;
}

@property --stop-4 {
    syntax: '<percentage>';
    initial-value: 89.52%;
    inherits: false;
}

@property --stop-5 {
    syntax: '<percentage>';
    initial-value: 100%;
    inherits: false;
}

:root {
    --bg: #0F172A;
    --bg-card: #1e293b;
    --bg-elevated: #334155;
    --bg-blend: #151b2d;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #22D3EE;
    --accent-dim: rgba(34, 211, 238, 0.5);
    --glow: rgba(124, 58, 237, 0.2);
    --border: rgba(255, 255, 255, 0.06);
    --gradient: linear-gradient(135deg, #7C3AED, #9333EA, #C026D3, #EC4899);
    --gradient-colors: #7C3AED, #9333EA, #C026D3, #EC4899;
    --font: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* Единый градиентный фон страницы — плавные переходы между блоками */
.parallax-wrapper {
    min-height: 100vh;
    background: linear-gradient(180deg,
        var(--bg) 0%,
        var(--bg) 15%,
        var(--bg-blend) 25%,
        var(--bg-card) 35%,
        var(--bg-blend) 45%,
        var(--bg) 55%,
        var(--bg-blend) 65%,
        var(--bg-card) 75%,
        var(--bg-blend) 85%,
        var(--bg) 100%
    );
}

a {
    color: inherit;
    text-decoration: none;
}

/* Loader — анимированный счётчик загрузки */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.loader-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.loader-logo {
    margin-bottom: 2rem;
}

.loader-logo img {
    height: 48px;
    width: auto;
    opacity: 0.9;
}

.loader-text {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.loader-counter {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(124, 58, 237, 0.3);
}

.loader-bar {
    width: 220px;
    height: 4px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7C3AED, #9333EA, #EC4899);
    border-radius: 2px;
    transition: width 0.15s ease-out;
}

.loader-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo img {
    height: 44px;
    max-height: 44px;
    max-width: 180px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
}

.nav a {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--text);
}

/* Burger button — скрыт на десктопе */
.header-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    transition: opacity 0.2s;
}

.header-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.header-burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-burger.is-active span:nth-child(2) {
    opacity: 0;
}

.header-burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay — показывается только на мобильных */
.header-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    padding: 5rem 2rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

/* На десктопе бургер и overlay всегда скрыты */
@media (min-width: 769px) {
    .header-burger {
        display: none !important;
    }

    .header-overlay {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.header-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 100%;
}

.nav-mobile a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
}

.nav-mobile a:hover {
    color: var(--accent);
}

.nav-mobile .gradient-button {
    margin-top: 0.5rem;
}

/* Gradient buttons */
.gradient-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 1rem 2.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    border-radius: 11px;
    appearance: none;
    cursor: pointer;
    background: radial-gradient(
        var(--spread-x) var(--spread-y) at var(--pos-x) var(--pos-y),
        var(--color-1) var(--stop-1),
        var(--color-2) var(--stop-2),
        var(--color-3) var(--stop-3),
        var(--color-4) var(--stop-4),
        var(--color-5) var(--stop-5)
    );
    transition:
        --pos-x 0.5s,
        --pos-y 0.5s,
        --spread-x 0.5s,
        --spread-y 0.5s,
        --color-1 0.5s,
        --color-2 0.5s,
        --color-3 0.5s,
        --color-4 0.5s,
        --color-5 0.5s,
        --border-angle 0.5s,
        --border-color-1 0.5s,
        --border-color-2 0.5s,
        --stop-1 0.5s,
        --stop-2 0.5s,
        --stop-3 0.5s,
        --stop-4 0.5s,
        --stop-5 0.5s;
}

.gradient-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        var(--border-angle),
        var(--border-color-1),
        var(--border-color-2)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.gradient-button:hover {
    --pos-x: 0%;
    --pos-y: 91.51%;
    --spread-x: 120%;
    --spread-y: 103%;
    --color-1: #7C3AED;
    --color-2: #9333EA;
    --color-3: #C026D3;
    --color-4: #1e1b4b;
    --color-5: #0F172A;
    --border-angle: 135deg;
    --border-color-1: rgba(124, 58, 237, 0.4);
    --border-color-2: rgba(236, 72, 153, 0.7);
    --stop-1: 0%;
    --stop-2: 15%;
    --stop-3: 40%;
    --stop-4: 70%;
    --stop-5: 100%;
}

.gradient-button {
    --color-1: #0F172A;
    --color-2: #1e1b4b;
    --color-3: #7C3AED;
    --color-4: #9333EA;
    --border-angle: 135deg;
    --border-color-1: rgba(124, 58, 237, 0.4);
    --border-color-2: rgba(147, 51, 234, 0.3);
}

.gradient-button-variant {
    --color-1: #0F172A;
    --color-2: #1e1b4b;
    --color-3: #7C3AED;
    --color-4: #9333EA;
    --border-angle: 135deg;
    --border-color-1: rgba(124, 58, 237, 0.5);
    --border-color-2: rgba(236, 72, 153, 0.2);
}

.gradient-button-variant:hover {
    --pos-x: 0%;
    --pos-y: 95%;
    --spread-x: 110%;
    --spread-y: 110%;
    --color-1: #9333EA;
    --color-2: #C026D3;
    --color-3: #EC4899;
    --color-4: #1e1b4b;
    --color-5: #0F172A;
    --stop-1: 0%;
    --stop-2: 12%;
    --stop-3: 35%;
    --stop-4: 65%;
    --stop-5: 90%;
    --border-angle: 135deg;
    --border-color-1: rgba(236, 72, 153, 0.3);
    --border-color-2: rgba(124, 58, 237, 0.6);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.hero-shader-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-shader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-parallax {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-bg {
    background: 
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(236, 72, 153, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.hero-grid {
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
}

.hero-glow {
    background: radial-gradient(circle at 50% 50%, var(--glow) 0%, transparent 60%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    text-align: center;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-title {
    margin: 0 0 1.25rem;
    font-family: var(--font);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, #7C3AED, #9333EA, #C026D3, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    margin: 0 0 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-cta {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #22D3EE, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.5); }
}

/* Zoom elements - default state */
[data-zoom] {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-zoom].zoom-in {
    opacity: 1;
    transform: scale(1);
}

/* Sections */
.section {
    position: relative;
    padding: 6rem 0;
    overflow: visible;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    margin: 0 0 3rem;
    font-family: var(--font);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-header {
    margin-bottom: 2rem;
}

/* Section decorations */
.section-decor {
    position: absolute;
    top: 0;
    width: min(450px, 40vw);
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.section-decor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.decor-left {
    left: -5%;
    object-position: left center;
}

.decor-left img {
    object-position: left center;
}

.decor-right {
    right: -5%;
    left: auto;
}

.decor-right img {
    object-position: right center;
}

.decor-float img {
    animation: floatDecor 8s ease-in-out infinite;
}

.decor-orb {
    width: min(350px, 30vw);
    right: -3%;
}

.decor-neural {
    width: min(280px, 25vw);
    left: -2%;
}

.decor-lines {
    width: min(400px, 35vw);
}

@keyframes floatDecor {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* About */
.about {
    background: transparent;
}

.about-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.about-card {
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-card:hover .card-image img {
    transform: scale(1.05);
}

.about-card .card-number,
.about-card h3,
.about-card p {
    padding: 0 2rem;
}

.about-card .card-number {
    padding-top: 1.5rem;
}

.about-card p {
    padding-bottom: 2rem;
}

.about-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-card h3 {
    margin: 0 0 0.75rem;
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 600;
}

.about-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.about-lead {
    max-width: 58rem;
    margin: 0 auto 2.5rem;
}

.about-lead-text {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.about-lead-text strong {
    color: var(--text);
    font-weight: 600;
}

.about-lead-label {
    margin: 1.25rem 0 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.about-lead-list {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.98rem;
}

.about-lead-list li {
    margin-bottom: 0.4rem;
}

/* Formats */
.formats {
    background: transparent;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.format-card {
    padding: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.format-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.format-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.format-card:hover .format-image img {
    transform: scale(1.06);
}

.format-card h3,
.format-card p {
    padding: 0 2rem;
}

.format-card h3 {
    padding-top: 1.5rem;
    font-family: var(--font);
    font-weight: 600;
}

.format-card p {
    padding-bottom: 2rem;
}

.format-card:hover {
    border-color: var(--accent-dim);
    transform: scale(1.02);
    box-shadow: 0 0 60px var(--glow);
}

/* Format cards as links */
.format-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Format cards with GlowingEffect */
.format-card-glowing {
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible;
}

.format-card-glowing:hover {
    transform: none;
    box-shadow: none;
}

.format-card-glowing .format-card-glowing-wrapper {
    position: relative;
    height: 100%;
    border-radius: 20px;
    padding: 2px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.format-card-glowing .format-card-glowing-wrapper:hover {
    border-color: var(--accent-dim);
    transform: scale(1.02);
    box-shadow: 0 0 60px var(--glow);
}

.format-card-glowing .format-card-inner {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bg-elevated);
    padding-bottom: 2rem;
}

.format-card-glowing .format-card-inner .format-image {
    border-radius: 16px 16px 0 0;
}

.format-card-glowing .format-card-inner h3,
.format-card-glowing .format-card-inner p {
    padding: 0 2rem;
}

.format-card-glowing .format-card-inner h3 {
    padding-top: 1rem;
    margin: 0 0 0.75rem;
    font-family: var(--font);
    font-size: 1.35rem;
    font-weight: 600;
}

.format-card-glowing .format-card-inner p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.format-card-glowing .format-card-inner .format-card-lead {
    margin-bottom: 0.65rem;
}

.format-card-glowing .format-card-inner .format-card-strong {
    margin: 0.85rem 0 0.4rem;
    padding: 0 2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.format-card-glowing .format-card-inner .format-card-list {
    margin: 0 0 0.85rem;
    padding: 0 2rem 0 2.75rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.format-card-glowing .format-card-inner .format-card-list li {
    margin-bottom: 0.35rem;
}

.format-card-glowing .format-card-inner .format-card-outro {
    margin-bottom: 0.65rem;
}

/* Format card — inactive */
.format-card-inactive {
    cursor: default;
    pointer-events: none;
    opacity: 0.6;
}

.format-card-inactive .format-card-glowing-wrapper:hover {
    border-color: var(--border);
    transform: none;
    box-shadow: none;
}

.format-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Benefits */
.benefits {
    background: transparent;
}

.benefits-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.04) 50%, transparent 100%);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.benefits-image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.benefits-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefits-list {
    max-width: none;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s;
}

.benefit-item:last-child {
    border-bottom: none;
}

.benefit-item:hover {
    transform: translateX(8px);
}

.benefit-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.5rem;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-dim);
}

.benefit-item p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.benefit-item strong {
    color: var(--text);
    font-weight: 600;
}

/* Блок «Для каких задач» */
.tasks {
    background: transparent;
}

.tasks-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.task-card {
    margin: 0;
    padding: 1.5rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition:
        border-color 0.3s,
        transform 0.3s;
}

.task-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-2px);
}

.task-card-title {
    margin: 0 0 0.75rem;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
}

.task-card-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.formats-intro,
.tasks-intro,
.process-intro,
.benefits-intro,
.audience-intro,
.faq-intro {
    max-width: 58rem;
    margin: 0 0 2rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.formats-intro strong,
.tasks-intro strong,
.process-intro strong {
    color: var(--text);
    font-weight: 600;
}

/* Экспертиза: почему нейросети в тимбилдинге */
.why-ai {
    background: transparent;
}

.why-ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
    align-items: start;
}

.why-ai-copy p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.why-ai-copy p:last-child {
    margin-bottom: 0;
}

.why-ai-list {
    list-style: none;
    margin: 0;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.why-ai-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.why-ai-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.why-ai-list li:first-child {
    padding-top: 0;
}

.why-ai-list strong {
    color: var(--text);
    font-weight: 600;
}

/* Блок «Как проходит» — этапы */
.process {
    position: relative;
    background: transparent;
}

.process-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.process-image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.process-step {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.process-step:last-child {
    border-bottom: none;
}

.process-step-num {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    line-height: 1.6;
}

.process-step-title {
    margin: 0 0 0.35rem;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
}

.process-step-body p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Блок «Кому подойдёт» */
.audience {
    background: transparent;
}

.audience-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.audience-card {
    margin: 0;
    padding: 1.5rem 1.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s;
}

.audience-card:hover {
    border-color: var(--accent-dim);
}

.audience-card-title {
    margin: 0 0 0.65rem;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 600;
}

.audience-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ */
.faq {
    background: transparent;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    overflow: hidden;
    transition: border-color 0.25s;
}

.faq-item[open] {
    border-color: rgba(34, 211, 238, 0.35);
}

.faq-question {
    padding: 1.15rem 1.35rem;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 1.35rem 1.15rem;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.faq-answer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.faq-answer a:hover {
    color: #fff;
}

/* Contact — grid: слои друг на друге (корректно в Firefox) */
/* Без вертикального padding у секции: иначе полосы сверху/снизу — только --bg, без видео */
.contact.section {
    padding-top: 0;
    padding-bottom: 0;
}

.contact {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    isolation: isolate;
}

.contact > * {
    grid-column: 1;
    grid-row: 1;
}

.contact-video-wrap {
    position: relative;
    z-index: 0;
    width: 100%;
    align-self: stretch;
    justify-self: stretch;
    pointer-events: none;
    /* Фон, если WebM не играет (Safari iOS) */
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 45%, #0f172a 100%);
}

.contact-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.contact-decor {
    z-index: 1;
    opacity: 0.35;
}

.contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.contact-content {
    max-width: 36rem;
    margin: 0;
    margin-right: auto;
    text-align: left;
}

.contact-content .section-title {
    margin-bottom: 0.75rem;
    text-align: left;
    max-width: 20ch;
}

.contact-content p {
    margin: 0 0 1.75rem;
    color: var(--text-muted);
    max-width: 38ch;
    line-height: 1.65;
}

.contact-links {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-links li {
    margin: 0;
    padding: 0;
}

.contact .gradient-button {
    align-self: flex-start;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.4rem 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-link-icon svg {
    display: block;
}

.contact-link-text {
    color: var(--text);
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #fff;
}

.contact-link:hover .contact-link-text {
    color: #fff;
}

.contact-link:hover .contact-link-icon {
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.35);
    color: #67e8f9;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

/* WebKit/iOS: stacked grid с видео иногда даёт схлопывание слоя; Firefox — @supports false, остаётся grid */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .contact {
            display: block;
        }

        .contact-video-wrap {
            position: absolute;
            inset: 0;
            width: 100%;
            min-height: 100%;
        }
    }
}

/* Format page */
.format-page {
    padding: 4rem 0 6rem;
}

/* Format page — full width */
.format-page-full {
    padding: 0 0 6rem;
}

.format-page-full .format-page-image-wrap {
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
}

.format-page-full .format-page-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.format-page-full .format-page-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 0;
}

.format-page-back {
    display: inline-block;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.format-page-back:hover {
    color: #67e8f9;
}

.format-page-content {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}

.format-page-image-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.format-page-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.format-page-title {
    margin: 0 0 1rem;
    font-family: var(--font);
    font-size: 1.75rem;
    font-weight: 700;
}

.format-page-full .format-page-title {
    font-size: 2rem;
}

.format-page-description {
    margin: 0;
    padding: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.format-page-description p {
    margin: 0 0 1rem;
}

.format-page-description p:last-child {
    margin-bottom: 0;
}

.format-page-description strong {
    color: var(--text);
}

.format-page-inner .format-page-info {
    margin: 1.5rem 0;
}

.format-page-content .format-page-info,
.format-page-inner .format-page-info {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.format-page-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.format-page-info-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
}

.format-page-info-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.format-page-info-value {
    margin-top: 0.35rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text);
}

.format-page-cta {
    margin: 0;
    display: inline-block;
}

/* Format videos */
.format-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.format-video-wrap {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.format-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Format stages — шахматный порядок */
.format-stages-title {
    margin: 3rem 0 2rem;
    font-family: var(--font);
    font-size: 1.5rem;
    font-weight: 600;
}

.format-stages {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.format-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.format-stage:last-child {
    border-bottom: none;
}

.format-stage-image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.format-stage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.format-stage-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.format-stage-num {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.format-stage-title {
    margin: 0;
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 600;
}

.format-stage-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.format-page-content .format-page-title {
    padding: 1.5rem 2rem 0.5rem;
}

.format-page-content .format-page-description {
    padding: 0 2rem 0.75rem;
}

.format-page-content .format-page-info {
    margin: 0 2rem 1.5rem;
}

.format-page-content .format-page-cta {
    margin: 0 2rem 2rem;
}

/* Footer */
.footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border);
}

.footer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== ПЛАНШЕТ (1024px) ========== */
@media (max-width: 1024px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .nav {
        gap: 1.5rem;
    }

    .nav a {
        font-size: 0.85rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 5rem 0;
    }

    .contact-container {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .about-grid,
    .formats-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.25rem;
    }

    .benefits-content,
    .process-content {
        gap: 2.5rem;
    }

    .format-page-inner .format-page-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .format-stage {
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .format-videos {
        gap: 1.25rem;
    }

    .contact-content {
        max-width: 34rem;
    }

    .contact-links {
        gap: 0.35rem;
    }

    .logo img {
        height: 40px;
        max-height: 40px;
    }
}

/* ========== МОБИЛЬНЫЙ (768px) ========== */
@media (max-width: 768px) {
    /* Стабильная высота вьюпорта на iOS (меньше «прыжков» от 100vh) */
    .parallax-wrapper {
        min-height: 100svh;
        min-height: 100dvh;
    }

    .header {
        padding: 1rem 1rem;
    }

    .nav {
        display: none;
    }

    .header-burger {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .header-overlay {
        display: block;
    }

    .hero {
        padding: 5rem 1rem 3rem;
        min-height: 90vh;
        min-height: 90dvh;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .contact-container {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .about-grid,
    .formats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-card .card-number,
    .about-card h3,
    .about-card p {
        padding: 0 1.5rem;
    }

    .about-card p {
        padding-bottom: 1.5rem;
    }

    .format-card-glowing .format-card-inner h3,
    .format-card-glowing .format-card-inner p {
        padding: 0 1.5rem;
    }

    .benefits-content,
    .process-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefits-image,
    .process-image {
        order: -1;
        aspect-ratio: 16/9;
    }

    .tasks-grid {
        grid-template-columns: 1fr;
    }

    .why-ai-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 1rem 1.15rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1.15rem 1rem;
    }

    .section-decor {
        width: min(240px, 45vw);
        opacity: 0.6;
    }

    .contact-content {
        max-width: none;
        padding: 0;
    }

    .contact-content .section-title {
        max-width: none;
    }

    .contact-content p {
        max-width: none;
    }

    .contact-links {
        gap: 0.35rem;
    }

    .contact-link {
        font-size: 1rem;
    }

    .contact-link-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 10px;
    }

    /* Страницы форматов */
    .format-page {
        padding: 3rem 0 4rem;
    }

    .format-page-full .format-page-image-wrap {
        aspect-ratio: 16/9;
    }

    .format-page-full .format-page-inner {
        padding: 2rem 1rem 0;
    }

    .format-page-title {
        font-size: 1.5rem;
    }

    .format-page-description,
    .format-page-description p {
        padding: 0 0 1rem;
        font-size: 0.95rem;
    }

    .format-page-content .format-page-info,
    .format-page-inner .format-page-info {
        margin: 1rem 0;
        padding: 1rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .format-page-cta {
        margin: 0.5rem 0 0;
    }

    .format-videos {
        grid-template-columns: 1fr;
        margin: 1.5rem 0 2rem;
        gap: 1rem;
    }

    .format-stages-title {
        margin: 2rem 0 1.5rem;
        font-size: 1.25rem;
    }

    .format-stage {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 2rem 0;
    }

    .format-stage-image-right .format-stage-image {
        order: -1;
    }

    .format-stage-title {
        font-size: 1.1rem;
    }

    .format-stage-content p {
        font-size: 0.95rem;
    }

    .decor-orb {
        width: min(180px, 40vw);
    }

    .footer {
        padding: 1rem 1rem;
    }

    .footer .container {
        padding: 0 1rem;
    }

    /* Loader */
    .loader-counter {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .loader-bar {
        width: 180px;
    }
}

/* ========== МАЛЕНЬКИЙ МОБИЛЬНЫЙ (480px) ========== */
@media (max-width: 480px) {
    .header {
        padding: 0.875rem 0.75rem;
    }

    .logo img {
        height: 36px;
        max-height: 36px;
        max-width: 140px;
    }

    .hero {
        padding: 4.5rem 0.75rem 2.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 0.75rem;
    }

    .contact-container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-card .card-number,
    .about-card h3,
    .about-card p {
        padding: 0 1.25rem;
    }

    .format-card-glowing .format-card-inner h3,
    .format-card-glowing .format-card-inner p {
        padding: 0 1.25rem;
    }

    .format-page-full .format-page-inner {
        padding: 1.5rem 0.75rem 0;
    }

    .format-page-title {
        font-size: 1.35rem;
    }

    .format-page-content .format-page-info,
    .format-page-inner .format-page-info {
        padding: 0.875rem;
    }

    .gradient-button {
        min-width: 120px;
        padding: 0.875rem 1.75rem;
    }

    .loader-inner {
        padding: 1.5rem;
    }

    .loader-logo img {
        height: 40px;
    }

    .loader-bar {
        width: 160px;
    }
}
