/* Design tokens */
:root {
    --bg: #0f172a;           /* slate-900 */
    --panel: #111827;        /* gray-900 */
    --muted: #1f2937;        /* gray-800 */
    --text: #e5e7eb;         /* gray-200 */
    --subtle: #9ca3af;       /* gray-400 */
    --primary: #3b82f6;      /* blue-500 */
    --primary-600: #2563eb;  /* blue-600 */
    --accent: #22d3ee;       /* cyan-400 */
    --ring: rgba(59,130,246,.4);
    --card: #0b1220;
    --shadow: 0 10px 30px rgba(0,0,0,.35);

    /* Background images (replace urls with your images) */
    --hero-bg: url('assets/background.png');
}

* { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--bg); /* radial-gradient(1200px 600px at 80% -10%, #1e293b 0%, transparent 60%), */
   color: var(--text);
}

.container {
    width: 100%;
    max-width: 1120px;
    padding: 0 20px;
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; background: var(--panel); color: white; padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(160%) blur(10px);
    background: linear-gradient(180deg, rgba(2,6,23,.85), rgba(2,6,23,.65));
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-logo { display: block; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.brand-name { font-weight: 700; letter-spacing: .4px; }

.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; border-radius: 10px; }
.nav-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

.nav-list { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 10px; transition: background .2s ease, color .2s ease, transform .05s ease; }
.nav-list a:hover { background: rgba(148,163,184,.12); }
.nav-list a:active { transform: translateY(1px); }

/* Sections */
.section { padding: 72px 0; }
.section-title { font-size: 28px; line-height: 1.2; margin: 0 0 24px; }

/* Hero */
.hero {
    position: relative;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(2,6,23,.6), rgba(2,6,23,.9));
    z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 16px; align-items: center; text-align: left; min-height: 34svh; }
.hero-title { font-size: clamp(28px, 5vw, 44px); margin: 0; letter-spacing: .3px; }
.hero-subtitle { margin: 0 0 12px; color: var(--subtle); font-size: 18px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: right; }
/* Promo card inside hero */
.hero .promo-card { margin-top: 10px; }


.lookuper-promo {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    text-align: center;
}
/* Promo */
.promo {
    position: relative;
    background-image: var(--promo-bg);
    background-size: cover;
    background-position: center;
}
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.6), rgba(15,23,42,.95)); }
.promo-inner { position: relative; z-index: 1; }
.promo-card { background: linear-gradient(180deg, rgba(17,24,39,.9), rgba(17,24,39,.75)); border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow); padding: 28px; border-radius: 16px; max-width: 820px; }
.promo-title { margin: 0 0 8px; font-size: 24px; }
.promo-deadline { margin: 0 0 16px; color: var(--subtle); }

/* Services */
.services { background: radial-gradient(800px 400px at 10% 0%, #0b1220, transparent 60%); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 20px; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(2,6,23,.45); border-color: rgba(59,130,246,.35); }
.service-card h3 { margin: 0 0 8px; font-size: 18px; }
.service-card p { margin: 0; color: var(--subtle); }

/* Contacts */
.contacts-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.contacts-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.contacts-list a { color: var(--text); text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.18); }
.contacts-list a:hover { color: var(--accent); border-bottom-color: transparent; }

.contacts-form { background: var(--panel); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.form-row { display: grid; gap: 6px; margin-bottom: 12px; }
label { color: var(--subtle); font-size: 14px; }
input, textarea { width: 100%; background: #0a0f1a; border: 1px solid rgba(255,255,255,.08); color: var(--text); padding: 12px 12px; border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
input::placeholder, textarea::placeholder { color: #6b7280; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.contacts-form textarea { resize: vertical; }
.form-note { color: var(--subtle); margin-top: 8px; min-height: 20px; }

/* Checkbox */
.form-checkbox-row { margin-bottom: 16px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--subtle); font-size: 14px; line-height: 1.5; }
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
/* Кастомный квадрат с мягкими углами */
.checkbox-custom {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: #0a0f1a;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.checkbox-custom::after {
    content: "";
    display: block;
    width: 8px;
    height: 5px;
    border: solid var(--bg);
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    opacity: 0;
    transition: transform .12s ease-in-out, opacity .12s ease-in-out;
}
/* Состояния */
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom { background: var(--primary); border-color: var(--primary); }
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after { transform: rotate(-45deg) scale(1); opacity: 1; }
.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom { box-shadow: 0 0 0 4px var(--ring); border-color: var(--primary); }
.checkbox-label a { color: var(--primary); text-decoration: none; border-bottom: 1px dashed rgba(59,130,246,.4); transition: border-color .2s ease; }
.checkbox-label a:hover { border-bottom-color: var(--primary); }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.06); background: #0b1322; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; flex-wrap: wrap; }
.footer-brand { text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 10px; }
.footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.copyright { margin: 0; color: var(--subtle); font-size: 14px; }
.footer-link { color: var(--subtle); text-decoration: none; font-size: 14px; border-bottom: 1px dashed rgba(255,255,255,.18); transition: color .2s ease, border-color .2s ease; }
.footer-link:hover { color: var(--accent); border-bottom-color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 1px solid transparent; border-radius: 12px; padding: 12px 16px; font-weight: 600; transition: transform .05s ease, filter .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-600)); color: white; box-shadow: 0 12px 30px rgba(37, 99, 235, .35); }
.btn-primary:hover { filter: brightness(1.05); }

.btn-ghost { background: rgba(148,163,184,.08); color: var(--text); border-color: rgba(255,255,255,.12); }
.btn-ghost:hover { background: rgba(148,163,184,.14); }

.btn-accent { background: linear-gradient(180deg, var(--accent), #06b6d4); color: #062226; border-color: rgba(34,211,238,.35); box-shadow: 0 12px 30px rgba(34,211,238,.35); }
.btn-accent:hover { filter: brightness(1.05); }

/* Cookie уведомление */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: var(--panel);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform .3s ease-out, opacity .3s ease-out;
}
.cookie-notice.show {
    transform: translateY(0);
    opacity: 1;
}
.cookie-notice-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cookie-notice-text {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}
.cookie-accept-btn {
    width: 100%;
}

/* Nav responsive */
@media (max-width: 860px) {
    .nav-toggle { display: inline-block; }
    .nav-list { position: absolute; right: 20px; top: 72px; flex-direction: column; background: var(--panel); border: 1px solid rgba(255,255,255,.06); padding: 10px; border-radius: 12px; box-shadow: var(--shadow); display: none; }
    .nav-list.open { display: flex; }
}

/* Layout responsive */
@media (max-width: 960px) { .section {padding: 30px 0;} .services-grid { grid-template-columns: 1fr 1fr; } .contacts-inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { 
    .services-grid { grid-template-columns: 1fr; } 
    .footer-inner { flex-direction: column; align-items: flex-start; padding: 15px; } 
    .footer-links { flex-direction: column; align-items: flex-start; gap: 12px; } 
    .cookie-notice {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        max-width: 320px;
    }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
    html:focus-within { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

