/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    --navy: #0b1f33;
    --navy-2: #0f2a44;
    --navy-3: #163a5c;
    --teal: #14b8a6;
    --teal-2: #0d9488;
    --teal-soft: #ccfbf1;
    --mint: #5eead4;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-alt: #f5f8fc;
    --ok: #16a34a;
    --err: #dc2626;
    --r-sm: 10px;
    --r: 18px;
    --r-lg: 26px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 16px rgba(15, 23, 42, .06);
    --shadow: 0 12px 32px rgba(11, 31, 51, .10);
    --shadow-lg: 0 34px 70px rgba(11, 31, 51, .28);
    --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 74px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--navy); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.15rem); font-weight: 800; letter-spacing: -.02em; text-wrap: pretty; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal-2); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--teal-2);
    margin-bottom: .8rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--mint)); }
.icon { width: 18px; height: 18px; flex: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: .5rem .8rem; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(20, 184, 166, .55); outline-offset: 2px; }
section[id], [id="contact"] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Scroll-reveal (faqat JS yoqiq bo'lsa yashirinadi) */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
    will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.4rem;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%); color: #fff; box-shadow: 0 10px 24px rgba(20, 184, 166, .32); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(20, 184, 166, .42); }
.btn-primary .icon-arrow { transition: transform .25s var(--ease); }
.btn-primary:hover .icon-arrow { transform: translateX(4px); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .55rem 1.05rem; font-size: .86rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header .nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; transition: color .3s; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 4px 10px rgba(20, 184, 166, .35)); }
.nav-links { display: flex; gap: .25rem; }
.nav-links a {
    color: rgba(255, 255, 255, .82);
    font-weight: 600;
    font-size: .93rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-cta-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    background: rgba(255, 255, 255, .1);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, background .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header.scrolled, .site-header.menu-open {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--line);
    box-shadow: 0 6px 24px rgba(11, 31, 51, .06);
}
.site-header.scrolled .brand, .site-header.menu-open .brand { color: var(--navy); }
.site-header.scrolled .nav-links a { color: var(--ink-2); }
.site-header.scrolled .nav-links a:hover, .site-header.scrolled .nav-links a.active { color: var(--teal-2); background: var(--teal-soft); }
.site-header.scrolled .nav-toggle, .site-header.menu-open .nav-toggle { background: var(--bg-alt); }
.site-header.scrolled .nav-toggle span, .site-header.menu-open .nav-toggle span { background: var(--navy); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    color: #fff;
    background: linear-gradient(160deg, #0b1f33 0%, #0f2a44 45%, #12365a 100%);
    padding: calc(var(--header-h) + 4.5rem) 0 6.5rem;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.blob-1 { width: 520px; height: 520px; left: -140px; top: -160px; background: radial-gradient(circle, rgba(20, 184, 166, .75), transparent 65%); }
.blob-2 { width: 640px; height: 640px; right: -200px; top: -120px; background: radial-gradient(circle, rgba(56, 189, 248, .45), transparent 65%); animation-delay: -8s; }
.blob-3 { width: 420px; height: 420px; left: 35%; bottom: -220px; background: radial-gradient(circle, rgba(94, 234, 212, .35), transparent 65%); animation-delay: -14s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.grad { background: linear-gradient(90deg, var(--mint), var(--teal) 50%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: .85rem;
    font-weight: 700;
    color: #d5fef8;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(6px);
}
.hero .lead { font-size: 1.12rem; color: rgba(255, 255, 255, .82); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .92rem; color: rgba(255, 255, 255, .82); font-weight: 600; }
.hero-trust li { display: flex; align-items: center; gap: .5rem; }
.check { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(20, 184, 166, .25); color: var(--mint); font-size: .72rem; font-weight: 800; }

/* Hero dashboard maketi */
.hero-visual { position: relative; perspective: 1400px; }
.dash {
    background: #fff;
    color: var(--ink);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.35rem 1.4rem;
    box-shadow: var(--shadow-lg);
    /* --ry/--rx ni JS sichqoncha holatiga qarab o'zgartiradi (tilt) */
    transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
    transition: transform .5s var(--ease);
}
.dash-head { display: flex; align-items: center; gap: 6px; margin-bottom: 1rem; }
.dash-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.dash-head .dot:nth-child(1) { background: #fca5a5; }
.dash-head .dot:nth-child(2) { background: #fcd34d; }
.dash-head .dot:nth-child(3) { background: #86efac; }
.dash-title { margin-left: .5rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.dash-head .tag { margin-left: auto; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.kpi { background: var(--bg-alt); border-radius: 12px; padding: .65rem .75rem; }
.kpi-label { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kpi-value { display: block; font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1.2; margin-top: .15rem; }
.kpi-value small { font-size: .7rem; color: var(--muted); font-weight: 600; margin-left: .2rem; }
.kpi-ok { color: var(--ok); }
.dash-chart { padding: .4rem .2rem 0; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 84px; }
.bars i {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, #99f6e4, var(--teal));
    border-radius: 8px 8px 3px 3px;
    transform-origin: bottom;
    animation: grow 1s var(--ease) both;
    animation-delay: calc(.3s + var(--d) * 90ms);
}
.bars i.bar-hi { background: linear-gradient(180deg, var(--mint), var(--teal-2)); box-shadow: 0 8px 18px rgba(20, 184, 166, .35); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar-labels { display: flex; gap: 10px; margin-top: .4rem; }
.bar-labels span { flex: 1; text-align: center; font-size: .68rem; font-weight: 700; color: var(--muted); }
.dash-rows { margin-top: 1rem; border-top: 1px dashed var(--line); }
.dash-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; font-weight: 600; }
.dash-row:last-child { border-bottom: 0; }
.tag { font-size: .7rem; font-weight: 800; padding: .22rem .6rem; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: #dcfce7; color: #166534; }
.tag-wait { background: #fef3c7; color: #92400e; }
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: .6rem .8rem;
    box-shadow: var(--shadow);
    font-size: .8rem;
    animation: floaty 6s ease-in-out infinite;
}
.float-badge b { display: block; font-size: .82rem; color: var(--navy); }
.float-badge small { color: var(--muted); font-weight: 600; }
.fb-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--teal-soft); font-size: 1rem; }
.fb-1 { top: -18px; right: -14px; }
.fb-2 { bottom: -32px; left: -30px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Raqamlar ───────────────────────────────────────────────────────────── */
.stats-strip { position: relative; z-index: 2; margin-top: -3.2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.stat-num span { color: var(--teal-2); }
.stat-label { color: var(--muted); font-weight: 600; font-size: .9rem; margin-top: .25rem; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 64ch; margin-bottom: 2.8rem; }

/* Xizmatlar */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.3rem; }
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.7rem;
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--mint));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #b9efe6; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #e6fbf8, #ccfbf1);
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, .15);
    margin-bottom: 1.1rem;
}
.service-card p { color: var(--muted); margin: 0 0 1.2rem; font-size: .95rem; flex: 1; }
.service-link { font-weight: 800; font-size: .9rem; color: var(--teal-2); display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s; }
.service-link:hover { gap: .6rem; }

/* Nega biz */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.feature { background: #fff; border-radius: var(--r); padding: 1.7rem; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; font-size: 1.5rem; background: var(--navy); margin-bottom: 1rem; box-shadow: 0 8px 18px rgba(11, 31, 51, .2); }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Jarayon */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps::before {
    content: "";
    position: absolute;
    top: 26px;
    left: calc(16.66% + 1.5rem);
    right: calc(16.66% + 1.5rem);
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--mint));
    opacity: .5;
}
.step { position: relative; padding: 1.7rem 1.6rem 1.6rem; border-radius: var(--r); background: var(--bg-alt); border: 1px solid transparent; transition: border-color .3s, transform .3s var(--ease); }
.step:hover { border-color: #b9efe6; transform: translateY(-3px); }
.step-num {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 0 6px #fff, 0 10px 20px rgba(20, 184, 166, .3);
}
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Savollar (akkordeon) */
.faq-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.faq { display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, box-shadow .3s; }
.faq-item.open { border-color: #b9efe6; box-shadow: var(--shadow-sm); }
.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    background: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
}
.chev {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--bg-alt);
    font-size: 0;
    transition: transform .35s var(--ease), background .3s;
}
.chev::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-2px) rotate(45deg); }
.faq-item.open .chev { transform: rotate(180deg); background: var(--teal-soft); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ink-2); font-size: .95rem; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* CTA */
.cta-band { padding: 5.5rem 0 0; }
.cta-inner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 2.6rem 3rem;
    box-shadow: var(--shadow-lg);
}
.cta-inner::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, .5), transparent 65%);
    filter: blur(30px);
}
.cta-inner h2 { color: #fff; margin-bottom: .4rem; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .78); }
.cta-actions { position: relative; display: flex; gap: .8rem; flex-wrap: wrap; }

/* ── Aloqa + forma ──────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3.5rem; align-items: start; }
.contact-list { display: grid; gap: .9rem; margin: 1.6rem 0 1.8rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-list a, .contact-list div > span { color: var(--ink); font-weight: 700; }
.contact-list a:hover { color: var(--teal-2); }
.ci { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--teal-soft); color: var(--teal-2); }
.ci svg { width: 20px; height: 20px; }

.form-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow); }
.form-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(20, 184, 166, .55), transparent 40%, transparent 60%, rgba(94, 234, 212, .45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.inquiry-form h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.form-sub { font-size: .92rem; margin-bottom: 1.3rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .4rem; color: var(--ink-2); }
.req { color: var(--err); }
.field input, .field select, .field textarea {
    width: 100%;
    font: inherit;
    padding: .8rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(20, 184, 166, .16); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); background: #fff7f7; }
.field.invalid { animation: shake .35s var(--ease); }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.field.flash select { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, .55); } 100% { box-shadow: 0 0 0 14px rgba(20, 184, 166, 0); } }
.error { display: block; color: var(--err); font-size: .8rem; min-height: 1em; margin-top: .3rem; font-weight: 600; }
.form-note { font-size: .78rem; color: var(--muted); margin: 1rem 0 0; }
.form-alert { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.form-alert.ok { background: #dcfce7; color: #166534; }
.form-alert.err { background: #fee2e2; color: #991b1b; }
.form-success { text-align: center; padding: 1.5rem .5rem; animation: fadeUp .5s var(--ease); }
.success-check { width: 84px; height: 84px; margin: 0 auto 1rem; display: block; }
.sc-ring { fill: #dcfce7; stroke: var(--ok); stroke-width: 3; }
.sc-tick { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .6s .3s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { position: relative; background: var(--navy); color: rgba(255, 255, 255, .78); padding: 4rem 0 1.6rem; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--mint), transparent); }
.site-footer .brand { color: #fff; margin-bottom: .6rem; }
.site-footer h4 { color: #fff; margin-bottom: .9rem; font-size: 1rem; }
.site-footer .muted { color: rgba(255, 255, 255, .6); }
.footer-tg { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 700; padding: .5rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; transition: background .2s; }
.footer-tg:hover { background: rgba(20, 184, 166, .25); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-links { display: grid; gap: .5rem; }
.footer-links a, .footer-links span { color: rgba(255, 255, 255, .78); }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer-admin { color: rgba(255, 255, 255, .45); }
.footer-admin:hover { color: #fff; }

/* Yuqoriga */
.to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 40;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s, background .2s, color .2s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal); color: #fff; }

/* ── Kam harakat ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .blob, .bars i, .float-badge, .sc-tick, .field.invalid, .field.flash select { animation: none !important; }
    .sc-tick { stroke-dashoffset: 0; }
    .dash { transform: none !important; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid { gap: 2.5rem; }
    .fb-2 { left: -10px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .faq-wrap .section-head { position: static; margin-bottom: .5rem; }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 520px; margin: 1.5rem auto 0; }
    .dash { transform: none !important; }
    .steps { grid-template-columns: 1fr; }
    .steps::before { display: none; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .cta-inner { flex-direction: column; align-items: flex-start; padding: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--header-h);
        flex-direction: column;
        gap: .2rem;
        padding: .8rem;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; animation: fadeUp .25s var(--ease); }
    .nav-links a { color: var(--ink-2); padding: .85rem 1rem; border-radius: 12px; }
    .nav-links a:hover, .nav-links a.active, .site-header.scrolled .nav-links a.active { color: var(--teal-2); background: var(--teal-soft); }
    .nav-cta-mobile { display: inline-flex; margin-top: .4rem; justify-content: center; }
    .nav-links a.nav-cta-mobile, .nav-links a.nav-cta-mobile:hover { color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-2)); }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .hero { padding: calc(var(--header-h) + 2.5rem) 0 4.5rem; }
    .hero-actions .btn { width: 100%; }
    .float-badge { display: none; }
    .fb-1 { display: flex; top: -14px; right: 4px; }
    .stats-grid { gap: .8rem; }
    .stat { padding: 1rem 1.1rem; }
    .stat-num { font-size: 1.5rem; }
    .section { padding: 3.8rem 0; }
    .cta-band { padding-top: 3.8rem; }
    .form-card { padding: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .to-top { right: .9rem; bottom: .9rem; }
}
@media (max-width: 420px) {
    .container { width: min(1160px, 100% - 1.6rem); }
    .kpi-value { font-size: 1.05rem; }
    .dash { padding: 1rem; }
}
