/* ================================================================
   Will-Consult — dark theme landing page
   ================================================================ */

/* ── Custom Properties ────────────────────────────────────────── */
:root {
    --bg:            #0A0A0A;
    --surface:       #141414;
    --surface-2:     #1C1C1C;
    --border:        #1F1F1F;
    --border-hover:  rgba(255, 107, 43, 0.35);

    --accent:        #FF6B2B;
    --accent-dim:    rgba(255, 107, 43, 0.08);
    --accent-mid:    rgba(255, 107, 43, 0.15);
    --accent-gold:   #F59E0B;
    --accent-gold-dim: rgba(245, 158, 11, 0.08);

    --text:          #FFFFFF;
    --text-muted:    #888888;
    --text-dim:      #3A3A3A;

    --tg-blue:       #229ED9;

    --font-display:  'Space Grotesk', sans-serif;
    --font-body:     'Inter', sans-serif;

    --radius:        14px;
    --radius-sm:     8px;
    --radius-lg:     24px;
    --radius-pill:   100px;

    --nav-h:         72px;
    --sec-pad:       128px;
    --container:     1200px;

    --trans:         0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow:    0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* ── Layout helpers ───────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: var(--sec-pad) 0;
}

.grid {
    display: grid;
    gap: 20px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    height: var(--nav-h);
    border-bottom: 1px solid transparent;
    transition: background var(--trans), border-color var(--trans), backdrop-filter var(--trans);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom-color: var(--border);
}

.nav__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 48px;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
    margin-right: auto;
}

.accent-dot {
    color: var(--accent);
    font-size: 22px;
    line-height: 0;
    vertical-align: -4px;
}

.nav__links {
    display: flex;
    gap: 36px;
}

.nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--trans);
}

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

.nav__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color var(--trans);
}

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

.nav__phone svg { flex-shrink: 0; }

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--trans), opacity var(--trans);
    transform-origin: center;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--trans);
    border: 1.5px solid transparent;
    white-space: nowrap;
    line-height: 1;
}

/* Primary — solid orange */
.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn--primary:hover {
    background: #e85f24;
    border-color: #e85f24;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 107, 43, 0.35);
}
.btn--primary:active { transform: translateY(0); }

/* Outline — orange border */
.btn--outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn--outline:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
}

/* Ghost — neutral border */
.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn--ghost:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

/* Telegram — blue */
.btn--telegram {
    background: var(--tg-blue);
    color: #fff;
    border-color: var(--tg-blue);
    font-size: 15px;
    padding: 16px 24px;
    justify-content: center;
    width: 100%;
    border-radius: var(--radius-sm);
}
.btn--telegram:hover {
    background: #1b8bbf;
    border-color: #1b8bbf;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(34,158,217,0.3);
}

/* Sizes */
.btn--lg {
    padding: 16px 36px;
    font-size: 15px;
    border-radius: 10px;
}
.btn--full {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 15px;
    border-radius: 10px;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden;
}

/* Animated grid background */
.hero__grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 107, 43, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 43, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 75% 70% at 80% 45%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 80% 45%, black 20%, transparent 75%);
    animation: gridPulse 5s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    from { opacity: 0.45; transform: scale(1); }
    to   { opacity: 1;    transform: scale(1.01); }
}

/* Ambient orange glow */
.hero__glow {
    position: absolute;
    pointer-events: none;
    width: 600px;
    height: 600px;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(255, 107, 43, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 80px;
    width: 100%;
}

.hero__content {
    position: relative;
    z-index: 1;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(255, 107, 43, 0.2);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 36px;
}

.badge__dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: dotPulse 2.2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero__title {
    font-size: clamp(36px, 4.2vw, 72px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
    color: var(--text);
}

.hero__lead {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 44px;
    max-width: 500px;
}

.hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Hero Diagram ─────────────────────────────────────────────── */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__diagram {
    position: relative;
    width: 360px;
    height: 360px;
}

.diagram-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.diagram-ring--1 {
    width: 140px;
    height: 140px;
    border: 1px solid rgba(255, 107, 43, 0.35);
    animation: spin 18s linear infinite;
}

.diagram-ring--2 {
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 107, 43, 0.15);
    animation: spin 28s linear infinite reverse;
}

.diagram-ring--3 {
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 107, 43, 0.06);
    animation: spin 38s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.diagram-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid rgba(255, 107, 43, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.25;
    box-shadow: 0 0 40px rgba(255, 107, 43, 0.08);
}

.diagram-center__top  { color: var(--text); }
.diagram-center__bottom { color: var(--accent); }

.diagram-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.diagram-card--1 { top: 15px;    right: 8px;   animation: float 3.8s ease-in-out infinite; }
.diagram-card--2 { top: 50%;     left: -14px;  animation: float2 4.5s ease-in-out 0.5s infinite; }
.diagram-card--3 { bottom: 55px; right: -6px;  animation: float 4.1s ease-in-out 1s infinite; }
.diagram-card--4 { bottom: 12px; left: 22px;   animation: float 3.6s ease-in-out 1.5s infinite; }
.diagram-card--5 { top: 18px;    left: 12px;   animation: float 4.3s ease-in-out 0.8s infinite; }
.diagram-card--6 { top: 38%;     right: -10px; animation: float 3.9s ease-in-out 1.2s infinite; }

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

@keyframes float2 {
    0%, 100% { transform: translateY(-50%) translateX(0px); }
    50%       { transform: translateY(-50%) translateX(-8px); }
}

/* ================================================================
   SECTION COMMONS
   ================================================================ */
.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(30px, 3.4vw, 54px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.06;
    margin-bottom: 64px;
    color: var(--text);
}

.section-lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 64px;
    line-height: 1.65;
    margin-top: -40px;
}

/* ================================================================
   CARDS (shared)
   ================================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,107,43,0.08);
}

.card__icon {
    font-size: 30px;
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.card__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
    color: var(--text);
}

.card__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ================================================================
   PROBLEM SECTION
   ================================================================ */
.problem {
    background: linear-gradient(175deg, var(--bg) 0%, #0D0D0D 100%);
    position: relative;
}

.problem::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--border));
}

/* ================================================================
   POSITIONING SECTION
   ================================================================ */
.positioning {
    background: #0D0D0D;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.pos-block {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid transparent;
    padding-left: 24px;
    margin-left: -26px;
    transition: background var(--trans), border-color var(--trans);
}

.pos-block:first-child { border-top: 1px solid var(--border); }

.pos-block:hover {
    background: var(--accent-dim);
    border-left-color: var(--accent);
}

.pos-block__num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    padding-top: 4px;
    width: 32px;
}

.pos-block__body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.pos-block__body p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 620px;
}

/* ================================================================
   SERVICES SECTION
   ================================================================ */
.services {
    background: var(--bg);
}

.card--service {
    position: relative;
    overflow: hidden;
}

.card--service::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--trans-slow);
}

.card--service:hover::after { transform: scaleX(1); }

/* ================================================================
   PROCESS SECTION
   ================================================================ */
.process {
    background: #0D0D0D;
    border-top: 1px solid var(--border);
}

.process__steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.process__step {
    flex: 1;
    padding: 0 24px;
    position: relative;
}

.process__step:first-child { padding-left: 0; }
.process__step:last-child  { padding-right: 0; }

.process__num {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 20px;
}

.process__free-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-gold-dim);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: block;
    width: fit-content;
}

.process__content h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
    color: var(--text);
}

.process__content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

.process__arrow {
    flex-shrink: 0;
    font-size: 20px;
    color: rgba(255, 107, 43, 0.35);
    padding-top: 20px;
    user-select: none;
}

/* ================================================================
   AUDIENCE SECTION
   ================================================================ */
.audience {
    background: var(--bg);
}

.card--audience {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.audience__num {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--text-dim);
    margin-bottom: 28px;
    transition: color var(--trans-slow);
}

.card--audience:hover .audience__num {
    color: rgba(255, 107, 43, 0.25);
}

.card--audience .card__title {
    font-size: 20px;
    margin-bottom: 14px;
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.contact {
    background: #0D0D0D;
    border-top: 1px solid var(--border);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Form */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__field label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form__field input,
.form__field textarea {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color var(--trans), box-shadow var(--trans);
    width: 100%;
}

.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--text-dim); }

.form__field input:focus,
.form__field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.1);
}

.form__field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Consent checkbox */
.form__consent {
    margin-top: -4px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    margin-top: 2px;
    transition: border-color var(--trans), background var(--trans);
    position: relative;
}

.consent-label input:checked ~ .consent-check {
    background: var(--accent);
    border-color: var(--accent);
}

.consent-label input:checked ~ .consent-check::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.consent-label input:focus-visible ~ .consent-check {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.consent-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

.consent-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity var(--trans);
}

.consent-text a:hover { opacity: 0.75; }

.consent--error .consent-check {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.consent--error .consent-text {
    color: #ef4444;
}

/* Success state */
.contact__success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
}

.contact__success.visible { display: flex; }

.success__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 28px;
    font-weight: 700;
}

.contact__success h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.contact__success p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Contact info panel */
.contact__info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 4px;
}

.contact__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-dim);
    font-size: 13px;
}

.contact__divider::before,
.contact__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact__detail-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.contact__detail-value {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
    transition: color var(--trans);
}

.contact__detail-value:hover { color: var(--accent); }

.contact__response {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.contact__response svg { flex-shrink: 0; color: var(--accent); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: #060606;
    border-top: 1px solid var(--border);
    padding: 52px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    gap: 48px;
}

.footer__brand { margin-right: auto; }

.footer__tagline {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 6px;
}

.footer__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--trans);
}

.footer__link:hover { color: var(--accent); }

.footer__copy {
    font-size: 13px;
    color: var(--text-dim);
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid children */
.grid .card:nth-child(1) { transition-delay: 0.05s; }
.grid .card:nth-child(2) { transition-delay: 0.11s; }
.grid .card:nth-child(3) { transition-delay: 0.17s; }
.grid .card:nth-child(4) { transition-delay: 0.23s; }
.grid .card:nth-child(5) { transition-delay: 0.29s; }
.grid .card:nth-child(6) { transition-delay: 0.35s; }

.process__step:nth-child(1) { transition-delay: 0.05s; }
.process__step:nth-child(3) { transition-delay: 0.12s; }
.process__step:nth-child(5) { transition-delay: 0.19s; }
.process__step:nth-child(7) { transition-delay: 0.26s; }

.pos-block:nth-child(1) { transition-delay: 0.05s; }
.pos-block:nth-child(2) { transition-delay: 0.12s; }
.pos-block:nth-child(3) { transition-delay: 0.19s; }

/* ================================================================
   RESPONSIVE — TABLET  (≤ 1024px)
   ================================================================ */
@media (max-width: 1024px) {
    :root {
        --sec-pad: 88px;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero__visual { display: none; }

    .grid--3,
    .grid--4 { grid-template-columns: repeat(2, 1fr); }

    .nav__phone { display: none; }

    .process__steps {
        flex-direction: column;
        gap: 24px;
    }

    .process__arrow { display: none; }

    .process__step {
        padding: 28px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        width: 100%;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ================================================================
   RESPONSIVE — MOBILE  (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
    :root {
        --sec-pad: 64px;
        --nav-h: 64px;
    }

    .container { padding: 0 20px; }

    /* Nav mobile */
    .nav__links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(10, 10, 10, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 28px 24px;
        gap: 24px;
    }

    .nav__links.open { display: flex; }

    .nav__links a {
        font-size: 18px;
        color: var(--text);
    }

    .nav__cta { display: none; }
    .nav__burger { display: flex; }

    /* Layout */
    .grid--2,
    .grid--3,
    .grid--4 { grid-template-columns: 1fr; }

    .nav__actions { gap: 8px; }
    .nav__phone {
        display: inline-flex;
        font-size: 13px;
    }
    .nav__cta { display: none; }

    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; justify-content: center; }

    .section-title { margin-bottom: 40px; }

    /* Positioning */
    .pos-block {
        flex-direction: column;
        gap: 12px;
    }

    /* Footer */
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
