/* ═══════════════════════════════════════════════
   SCRATCHSMITH SITE 3 — LIGHT PREMIUM MINIMAL
   Warm · Colorful · Friendly · Trustworthy
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    color-scheme: only light;
    --blue: #0984E3;
    --blue-light: #E8F4FD;
    --blue-glow: rgba(9,132,227,0.12);
    --purple: #6C5CE7;
    --green: #00B894;
    --coral: #FF6B6B;
    --bg: #FAFBFC;
    --white: #FFFFFF;
    --text: #1A1D23;
    --text-secondary: #6B7280;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
    --shadow-color: 0 12px 40px rgba(9,132,227,0.15);
    --radius: 20px;
    --radius-sm: 12px;
    --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --ease: cubic-bezier(.23,1,.32,1);
    
    /* Legal / Text pages */
    --bg-alt: #F3F4F6;
    --bg-main: #FFFFFF;
    --text-main: #1F2937;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }
::selection { background: var(--blue-light); color: var(--blue); }

/* ─── REUSABLE ─── */
.gradient-text {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.label-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-light);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--blue), #0770C2);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-color);
}

.btn-lg { padding: 1.2rem 2.5rem; font-size: 1rem; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.btn-ghost:hover { color: var(--blue); }

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(250,251,252,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.1rem;
}

.nav-shield { width: 32px; height: 32px; object-fit: contain; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }

.nav-btn {
    padding: 0.6rem 1.4rem !important;
    background: var(--text) !important;
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: background 0.3s, transform 0.3s !important;
}
.nav-btn:hover { background: var(--blue) !important; transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
    display: grid;
    grid-template-columns: minmax(0,560px) minmax(0,600px);
    gap: 2rem;
    padding: 7rem 8% 4rem;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    /*
     * Глянцевое полированное покрытие —
     * единый плавный переход без скачков цвета.
     * Базовый тон: холодный жемчужно-стальной.
     * Светлый блик сверху-слева, лёгкая тень снизу-справа.
     */
    background:
        radial-gradient(ellipse 90% 70% at 18% 5%,
            rgba(255,255,255,0.80) 0%,
            rgba(255,255,255,0.28) 40%,
            transparent 75%),
        radial-gradient(ellipse 60% 55% at 85% 90%,
            rgba(210,220,232,0.50) 0%,
            transparent 70%),
        linear-gradient(155deg,
            #eef1f6 0%,
            #e8ecf3 40%,
            #eceff5 70%,
            #f0f3f8 100%);
}

/* Медленный мягкий блик — как отражение на лаке */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -30%;
    width: 55%;
    height: 180%;
    background: linear-gradient(
        108deg,
        transparent 0%,
        rgba(255,255,255,0.0) 42%,
        rgba(255,255,255,0.40) 50%,
        rgba(255,255,255,0.0) 58%,
        transparent 100%
    );
    transform: skewX(-12deg);
    animation: glossShine 9s cubic-bezier(.45,0,.55,1) infinite;
    pointer-events: none;
    z-index: 0;
}

/* Лёгкий ореол вверх-справа — студийный рефлекс */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 45% 35% at 82% 12%,
            rgba(255,255,255,0.38) 0%,
            transparent 65%);
    pointer-events: none;
    z-index: 0;
}

@keyframes glossShine {
    0%   { transform: translateX(-90%) skewX(-12deg); opacity: 0; }
    8%   { opacity: 1; }
    65%  { opacity: 1; }
    100% { transform: translateX(260%) skewX(-12deg); opacity: 0; }
}

.hero-left {
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.trust-stars {
    color: #F59E0B;
    font-size: 1rem;
    letter-spacing: 2px;
}

/* Hero Image */
.hero-right { position: relative; z-index: 1; }

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: visible;   /* бейджи свободно выходят за пределы */
}

/* Clip только для Ken Burns — не режет бейджи */
.hero-img-clip {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    /* Ken Burns — медленное приближение, живое дыхание */
    transform-origin: center center;
    animation: kenBurns 18s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes kenBurns {
    0%   { transform: scale(1.00) translateY(0px); }
    100% { transform: scale(1.06) translateY(-8px); }
}

.hero-float-card {
    position: absolute;
    z-index: 2;   /* поверх картинки */
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.3rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-size: 0.8rem;
    animation: float 4s ease-in-out infinite;
}

.hero-float-card strong { display: block; font-weight: 700; color: var(--text); }
.hero-float-card span { color: var(--text-secondary); font-size: 0.7rem; }
.fc-icon { font-size: 1.5rem; }

.card-top { top: 10%; right: -2rem; animation-delay: 0s; }
.card-bottom { bottom: 15%; left: -2rem; animation-delay: 2s; }

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ─── MARQUEE ─── */
.marquee-band {
    padding: 1rem 0;
    background: var(--text);
    overflow: hidden;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: marq 35s linear infinite;
}

.m-brand {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    transition: color 0.3s;
}
.m-brand:hover { color: rgba(255,255,255,0.95); }

.m-sep {
    color: rgba(255,255,255,0.15);
    font-size: 0.55rem;
    flex-shrink: 0;
}

@keyframes marq {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── BEFORE / AFTER ─── */
.results {
    padding: 4rem 8%;
}

.results-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.results-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.ba-card {
    position: relative;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.4s, transform 0.4s var(--ease);
}
.ba-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.ba-visual {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    overflow: hidden;
    cursor: ew-resize;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.ba-layer {
    position: absolute; inset:0;
}
.ba-layer img {
    width:100%; height:100%; object-fit:cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.ba-after {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.ba-slider {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    z-index: 5;
    cursor: ew-resize;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.ba-knob {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 44px; height: 64px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.ba-knob svg { width: 22px; height: 22px; opacity: 1; }

.ba-visual:active .ba-knob {
    transform: translate(-50%,-50%) scale(1.05);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.ba-info {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.ba-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; color: #fff; }
.ba-info p { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.5; }

/* ─── SERVICES ─── */
.services {
    padding: 6rem 10%;
    background: linear-gradient(180deg, #F0F4F8, var(--bg));
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services::before {
    content: '';
    position: absolute;
    top: 10%; left: 30%;
    width: 40%; height: 80%;
    background: radial-gradient(circle, rgba(9, 132, 227, 0.05) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.services-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.services-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.svc-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;  /* фиксированная базовая линия — не плывут при анимации */
    position: relative;
    z-index: 1; /* Above ambient glow */
}

.svc-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    padding: 2.2rem 1.2rem;
    transition: transform 0.4s var(--ease), box-shadow 0.4s, background 0.4s;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.65);
}

.svc-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--svc-color);
    border-radius: 20px 20px 0 0;
}

.svc-card--popular {
    border-color: rgba(9, 132, 227, 0.4);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px rgba(9, 132, 227, 0.12);
}

.popular-badge {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    background: var(--blue);
    color: #fff;
    border-radius: 100px;
}

.svc-tier {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.svc-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.svc-card > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.svc-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.svc-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    position: relative;
}

.svc-price::before {
    content: '$';
    font-size: 1.2rem;
    font-weight: 700;
    vertical-align: super;
    margin-right: 2px;
    color: var(--blue);
}

.svc-price::after {
    content: '*';
    position: absolute;
    top: 0.1em;
    right: -0.55em;
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}

.svc-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.svc-from {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: -0.2rem;
}

.svc-disclaimer {
    display: block;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin: 4rem auto 0;
    padding: 1rem 1.8rem;
    max-width: 700px;
    background: rgba(9, 132, 227, 0.08);
    border: 1px solid rgba(9, 132, 227, 0.2);
    border-radius: var(--radius);
    line-height: 1.5;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.svc-card li {
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.svc-btn {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue);
    transition: letter-spacing 0.3s;
}
.svc-btn:hover { letter-spacing: 0.05em; }

.svc-btn--primary {
    background: var(--blue);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
}

/* ─── PROCESS ─── */
.process {
    padding: 4rem 5%;
}

.process-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.process-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    align-items: stretch; /* Возвращаем stretch для одинаковой высоты */
}

.steps::before {
    content: '';
    position: absolute;
    top: 3.5rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
    height: 100%; /* Фиксация высоты для багов анимации */
}
.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.85rem; color: var(--text-secondary); }

.step-arrow {
    font-size: 1.5rem;
    color: var(--border);
    margin-top: 3rem;
    flex-shrink: 0;
}

/* ─── CTA ─── */
.cta {
    padding: 3rem 5%;
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, #05559A, #0770C2, #0984E3, var(--purple));
    border-radius: 28px;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Subtle inner gloss */
.cta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    pointer-events: none;
}

.cta-left {
    padding: 5rem 4.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Premium eyebrow: line + label */
.cta-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.cta-line {
    display: block;
    width: 32px;
    height: 2px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    flex-shrink: 0;
}

.cta-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.cta-left h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.cta-left p {
    font-size: 0.95rem;
    opacity: 0.72;
    margin-bottom: 2.5rem;
    max-width: 360px;
    line-height: 1.65;
}

.cta-left .btn-primary {
    background: #fff;
    color: var(--blue);
    align-self: flex-start;
}
.cta-left .btn-primary:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.cta-micro {
    display: block;
    margin-top: 1rem;
    font-size: 0.7rem;
    opacity: 0.5;
}

.cta-right { overflow:hidden; }
.cta-img { width:100%; height:100%; object-fit:cover; }

/* ─── FOOTER ─── */
footer {
    padding: 3rem 5% 1.5rem;
    background: var(--text);
    color: rgba(255,255,255,0.5);
}

.f-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.f-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.f-shield { 
    width: 140px; 
    opacity: 1;
}

.f-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.f-brand span {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.f-brand p {
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.02em;
}

.f-cols { display: flex; gap: 5rem; }

.f-cols h4 {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 1rem;
}

.f-cols a {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.f-cols a:hover { color: #fff; }

.f-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

/* ─── BOOKING MODAL ─── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 11, 22, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%;
    max-width: 580px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

/* Scrollbar hidden for modal */
.modal-container::-webkit-scrollbar { width: 0; }

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.5rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    padding-bottom: 2px;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.modal-header { margin-bottom: 1.5rem; }
.modal-header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.3rem; letter-spacing: -0.02em; }
.modal-header p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-form label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-left: 0.2rem;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form input[type="date"],
.modal-form select,
.modal-form textarea {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: rgba(107, 114, 128, 0.6);
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: var(--blue);
    background: rgba(9, 132, 227, 0.05);
}

.modal-form textarea {
    resize: vertical;
    min-height: 60px;
}

/* File Upload Zone */
.file-input { display: none; }

.file-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.file-upload-zone:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--blue);
}

.file-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.file-text { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; text-transform: none; letter-spacing: normal; }
.file-hint { font-size: 0.75rem; color: var(--text-secondary); text-transform: none; letter-spacing: normal; font-weight: 400; }

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    width: 100%;
}

.preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.preview-remove:hover { background: #FF4757; }

.form-error-msg {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: #FF6B6B;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    position: relative;
}

.btn-block.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-block.loading .btn-text { visibility: hidden; }

.btn-loader {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn-block.loading .btn-loader { display: block; }

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.modal-secure-note {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    opacity: 0.7;
}

.modal-success-state {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.modal-success-state .success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.modal-success-state h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-success-state p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile-first, 4 breakpoints
   900px → Tablet
   600px → Large phone (iPhone Plus, Galaxy S)
   420px → Standard phone (iPhone, Pixel)
   360px → Small phone (SE, budget Android)
   ═══════════════════════════════════════════════ */

/* ─── TABLET ≤ 900px ─── */
@media (max-width: 900px) {

    /* NAV */
    nav { padding: 0.9rem 4%; }
    .nav-links a:not(.nav-btn) { display: none; }

    /* HERO */
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 6rem 5% 3rem;
        text-align: center;
        justify-items: center;
        min-height: auto;
    }
    .hero-left { max-width: 100%; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-trust { justify-content: center; }
    .hero-right { width: 100%; max-width: 520px; }

    /* Float cards: bring inside frame */
    .card-top { top: 1rem; right: 0.5rem; }
    .card-bottom { bottom: 1rem; left: 0.5rem; }

    /* RESULTS */
    .ba-grid { grid-template-columns: 1fr; }

    /* SERVICES */
    .svc-cards { grid-template-columns: 1fr 1fr; }

    /* STEPS */
    .steps { grid-template-columns: 1fr 1fr; }

    /* CTA */
    .cta-card { grid-template-columns: 1fr; }
    .cta-left { padding: 3rem 2.5rem; }
    .cta-right { height: 280px; }

    /* FOOTER */
    .f-main { flex-direction: column; gap: 2.5rem; }
    .f-cols { gap: 2.5rem; flex-wrap: wrap; }
}

/* ─── LARGE PHONE ≤ 600px ─── */
@media (max-width: 600px) {

    /* GLOBAL */
    body { font-size: 15px; }

    /* NAV */
    nav { padding: 0.8rem 5%; }
    .nav-logo span { font-size: 1rem; }
    .nav-shield { width: 26px; height: 26px; }
    .nav-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }

    /* HERO */
    .hero {
        padding: 5.5rem 5% 2.5rem;
        gap: 2rem;
    }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .hero-desc { font-size: 0.95rem; }
    .btn-primary { padding: 0.85rem 1.5rem; font-size: 0.85rem; }
    .btn-ghost { padding: 0.85rem 1rem; font-size: 0.85rem; }

    /* Float cards: smaller on phone */
    .hero-float-card {
        padding: 0.65rem 0.9rem;
        font-size: 0.72rem;
        gap: 0.5rem;
    }
    .fc-icon { font-size: 1.2rem; }
    .card-top { top: 0.5rem; right: 0.3rem; }
    .card-bottom { bottom: 0.5rem; left: 0.3rem; }

    /* MARQUEE */
    .m-brand { padding: 0 1.2rem; font-size: 0.65rem; }

    /* RESULTS */
    .results { padding: 3rem 4%; }
    .results-header h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }

    /* SERVICES */
    .services { padding: 3rem 4%; }
    .services-header h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .svc-cards { grid-template-columns: 1fr; }
    .svc-card { padding: 2rem 1.5rem; }
    .svc-price { font-size: 2rem; }

    /* STEPS */
    .steps { grid-template-columns: 1fr; gap: 1rem; }
    .process { padding: 3rem 4%; }
    .process-header h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .step { padding: 1.8rem 1.2rem; }

    /* CTA */
    .cta { padding: 2rem 4%; }
    .cta-left { padding: 2.5rem 1.5rem; }
    .cta-left h2 { font-size: 1.8rem; }
    .cta-right { height: 200px; }
    .btn-lg { padding: 1rem 1.8rem; font-size: 0.9rem; }

    /* FOOTER */
    footer { padding: 2.5rem 5% 1.5rem; }
    .f-shield { width: 90px; }
    .f-brand span { font-size: 1.4rem; }
    .f-cols { gap: 1.5rem; }
    .f-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ─── STANDARD PHONE ≤ 420px ─── */
@media (max-width: 420px) {

    nav { padding: 0.75rem 4%; }

    .hero {
        padding: 5rem 4% 2rem;
        gap: 1.5rem;
    }
    .hero h1 { font-size: clamp(1.6rem, 8vw, 2rem); }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .btn-primary, .btn-ghost {
        justify-content: center;
        width: 100%;
    }

    /* Hide bottom float card on tiny hero */
    .card-bottom { display: none; }
    .card-top { top: 0.5rem; right: 0.3rem; }

    .hero-float-card strong { font-size: 0.78rem; }

    .ba-card { border-radius: 14px; }
    .svc-card { padding: 1.8rem 1.2rem; border-radius: 14px; }
    .svc-price { font-size: 1.8rem; }
    .svc-from { font-size: 0.62rem; }

    .step { padding: 1.5rem 1rem; }
    .step-num { font-size: 2rem; }

    .cta-card { border-radius: 18px; }
    .cta-left h2 { font-size: 1.5rem; }
    .cta-right { display: none; }

    .f-main { gap: 1.5rem; }
    .f-cols { gap: 0.3rem; }
    .f-shield { width: 70px; }
}

/* ─── SMALL PHONE ≤ 360px (SE, budget Android) ─── */
@media (max-width: 360px) {
    .hero { padding: 4.5rem 4% 1.5rem; }
    .hero h1 { font-size: 1.5rem; }
    .pill { font-size: 0.7rem; padding: 0.4rem 0.9rem; }
    .label-tag { font-size: 0.65rem; }

    .m-brand { padding: 0 0.8rem; font-size: 0.6rem; }

    .svc-card { padding: 1.5rem 1rem; }
    .svc-price { font-size: 1.6rem; }

    .step-num { font-size: 1.8rem; }
    .step h3 { font-size: 0.95rem; }
}

/* ─── iOS SAFE AREA (notch / dynamic island) ─── */
@supports (padding: max(0px)) {
    nav {
        padding-left: max(5%, env(safe-area-inset-left));
        padding-right: max(5%, env(safe-area-inset-right));
    }
    footer {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}

/* ─── REDUCE MOTION (accessibility) ─── */
@media (prefers-reduced-motion: reduce) {
    .hero-img { animation: none !important; }
    .hero::before { animation: none !important; }
    .hero-float-card { animation: none !important; }
    * { transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════════
   LEGAL PAGES (Privacy Policy)
   ═══════════════════════════════════════════════ */
.legal-page {
    background-color: var(--bg-alt);
}
.legal-content {
    padding: 120px 5% 80px;
    min-height: calc(100vh - 300px);
}
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-main);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.legal-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}
.legal-container section {
    margin-bottom: 2.5rem;
}
.legal-container h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.legal-container p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.legal-container ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.legal-container li {
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-banner.show {
    transform: translateY(0);
}
.cookie-banner.hidden {
    display: none;
}
.cookie-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
}
.cookie-banner p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    color: rgba(255,255,255,0.8);
}
.cookie-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}
.cookie-btn {
    background: var(--accent);
    color: var(--bg-main);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    white-space: nowrap;
}
.cookie-btn:hover {
    transform: scale(1.05);
    background: #e6b01a;
}
@media (max-width: 600px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    .cookie-btn {
        width: 100%;
    }
    .legal-container {
        padding: 1.8rem 1.2rem;
    }
    .legal-container h1 {
        font-size: 1.8rem !important;
    }
    .legal-container h2 {
        font-size: 1.15rem !important;
    }
    /* Before/After Overlay Mobile Fix */
    .ba-info {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0.7rem 0.9rem !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        background: rgba(10, 15, 30, 0.8) !important;
    }
    .ba-info h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.15rem !important;
    }
    .ba-info p {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
    }
    /* Footer columns mobile alignment in a single row */
    .f-cols {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    .f-cols > div {
        flex: 1;
        min-width: 0;
        text-align: center !important;
    }
    .f-brand {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.8rem !important;
        margin: 0 auto !important;
    }
    .f-brand-text {
        align-items: center !important;
    }
    .f-cols h4 {
        font-size: 0.55rem !important;
        margin-bottom: 0.6rem !important;
    }
    .f-cols a {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.4rem !important;
        word-break: break-word;
    }
}
