/* =========================================================
   LoraPOS — стилове
   Цветовете, шрифтът и радиусите се сменят от :root по-долу.
   ========================================================= */
:root {
  --c-primary: #2E3192;        /* основен (бутони, акценти) */
  --c-primary-ink: #1F2140;    /* заглавия, footer */
  --c-accent: #09A8E6;         /* светъл технологичен акцент */
  --c-accent-ink: #0A6E96;     /* акцентен текст (достатъчен контраст) */
  --c-accent-icon: #0888B9;    /* иконки */
  --c-accent-soft: #E3F4FB;    /* фон на иконки */
  --c-text: #393B41;
  --c-text-2: #4A5560;
  --c-muted: #56656F;
  --c-border: #E2E2E2;
  --c-input: #8A959F;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F5F7F9;
  --c-success: #008800;
  --c-success-ink: #006B00;
  --c-error: #B3261E;

  --font: 'Ubuntu', 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow: 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 40px rgba(20,30,60,.08);
  --ease: cubic-bezier(.4,0,.2,1);
  --header-h: 72px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--c-text); background: var(--c-bg);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--c-primary-ink); margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
a { color: var(--c-accent-ink); }
a:hover { color: var(--c-primary); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  white-space: nowrap;
  transition: filter .16s var(--ease), transform .16s var(--ease), background .16s var(--ease);
}
.btn:hover { filter: brightness(.93); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-outline { background: #fff; color: var(--c-primary); box-shadow: inset 0 0 0 1.5px var(--c-primary); }
.btn-outline:hover { color: var(--c-primary); background: #F2F3FB; filter: none; }
.btn-light { background: #fff; color: var(--c-primary); font-weight: 700; }
.btn-light:hover { color: var(--c-primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Навигация ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 var(--c-border);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(20,30,60,.08); }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255,255,255,.86); backdrop-filter: blur(8px); }
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-primary); }
.logo:hover { color: var(--c-primary); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--c-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.logo-text span { color: var(--c-accent-icon); }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) {
  display: block; text-decoration: none; color: var(--c-text);
  padding: 10px 12px; border-radius: 999px; transition: background .16s var(--ease);
}
.nav-links a:not(.btn):hover { background: #EEF6FA; color: var(--c-primary); }
.nav-links-cta { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid #C5C5C5; background: #fff; color: var(--c-text);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 20px 20px; border-top: 1px solid var(--c-border);
    box-shadow: 0 16px 24px rgba(20,30,60,.08);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px; }
  .nav-links-cta { display: block; margin-top: 8px; }
  .nav-links-cta .btn { width: 100%; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--c-bg-alt); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 5vw, 64px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--c-text-2); max-width: 560px; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px #D6E6EE; font-size: 14px; font-weight: 500; color: var(--c-accent-ink);
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--c-accent); }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--c-text-2); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks li::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0;
  background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008800' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
.checks-col { flex-direction: column; align-self: stretch; text-align: left; color: var(--c-text); }

/* POS mockup */
.hero-visual { position: relative; padding-bottom: 28px; }
.device {
  background: #1E2128; border-radius: 28px; padding: 14px;
  box-shadow: 0 30px 60px rgba(20,30,60,.18), 0 2px 6px rgba(0,0,0,.08);
}
.pos { background: #fff; border-radius: 16px; overflow: hidden; font-size: 12px; }
.pos-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; background: var(--c-primary); color: #fff; font-size: 13px;
}
.pos-tags { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.pos-tags span { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.18); }
.pos-body { display: flex; flex-wrap: wrap; }
.pos-products { flex: 999 1 260px; min-width: 0; padding: 12px; background: #F5F5F5; display: flex; flex-direction: column; gap: 10px; }
.pos-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.pos-cats span { padding: 5px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #D0D0D0; }
.pos-cats .is-active { background: var(--c-accent-icon); color: #fff; box-shadow: none; font-weight: 500; }
.pos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile {
  background: #fff; border-radius: 10px; padding: 10px; font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 14px;
}
.tile.is-selected { box-shadow: 0 0 0 2px var(--c-accent); }
.tile i { width: 26px; height: 26px; border-radius: 8px; display: block; }
.t-blue { background: #E3F4FB; } .t-orange { background: #FFF0E0; } .t-navy { background: #E7EAF7; } .t-green { background: #E9F5E9; }
.pos-order { flex: 1 1 190px; min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid #ECECEC; }
.pos-order strong { font-size: 13px; color: var(--c-primary-ink); }
.pos-order .line { padding: 6px 0; border-bottom: 1px dashed var(--c-border); }
.pos-order .spacer { flex-grow: 1; min-height: 12px; }
.pos-order .total { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--c-primary-ink); font-size: 13px; }
.pos-order .total i { width: 56px; height: 12px; border-radius: 4px; background: #E6E6E6; }
.pos-order .pay { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 999px; background: var(--c-success); color: #fff; font-weight: 700; }
.pos-order .split { display: flex; align-items: center; justify-content: center; height: 32px; border-radius: 999px; box-shadow: inset 0 0 0 1px #C5C5C5; }
@media (max-width: 560px) {
  .pos-order { display: none; }
  .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.device-badge {
  position: absolute; left: 0; bottom: 0;
  background: #fff; border-radius: var(--radius); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 24px rgba(20,30,60,.14);
  line-height: 1.3;
}
.device-badge strong { display: block; font-size: 14px; font-weight: 500; color: var(--c-primary-ink); }
.device-badge small { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-success-ink); }
.device-badge small i { width: 7px; height: 7px; border-radius: 999px; background: var(--c-success); }
.device-badge .icon-badge { width: 36px; height: 36px; }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 48px; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--c-accent-ink); }
.section-sub { font-size: 18px; color: var(--c-muted); }

.icon-badge {
  width: 48px; height: 48px; border-radius: 999px; flex-shrink: 0;
  background: var(--c-accent-soft); color: var(--c-accent-icon);
  display: inline-flex; align-items: center; justify-content: center;
}
.cards { display: grid; gap: 20px; }
.cards-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  box-shadow: inset 0 0 0 1px var(--c-border), 0 2px 6px rgba(0,0,0,.04);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--c-border), 0 10px 24px rgba(20,30,60,.10); }
.card h3 { font-size: 19px; }
.card p { font-size: 15px; color: var(--c-muted); }
.card-flat { padding: 24px; box-shadow: var(--shadow); gap: 12px; }
.card-flat .icon-badge { width: 44px; height: 44px; }
.card-flat h3 { font-size: 18px; }

/* Миграция */
.migration {
  position: relative; overflow: hidden;
  background: var(--c-primary); color: #fff; border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 4vw, 56px); align-items: center;
}
.migration::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  border-radius: 999px; box-shadow: inset 0 0 0 40px rgba(9,168,230,.18); pointer-events: none;
}
.migration h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.migration-copy { position: relative; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.tag { padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--c-primary); font-size: 14px; font-weight: 700; }
.migration-lead { font-size: 18px; color: #E4E6F7; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #D3D6F0; }
.note svg { flex-shrink: 0; margin-top: 2px; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; color: #D3D6F0; font-size: 15px; }
.steps strong { color: #fff; font-size: 16px; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px; background: #fff; color: var(--c-primary);
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* Split секции */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 5vw, 64px); align-items: center;
}
.split-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.factors { list-style: none; margin: 0; padding: 0; align-self: stretch; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.factors li { padding: 14px 16px; border-radius: var(--radius); background: var(--c-bg-alt); display: flex; align-items: center; gap: 12px; }
.factors li::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--c-accent-icon); flex-shrink: 0; }

/* Оферта */
.offer { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--c-border), var(--shadow-lg); }
.offer-head { background: var(--c-primary); color: #fff; padding: 18px 28px; font-weight: 700; text-align: center; }
.offer-body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.offer-label { font-size: 15px; color: var(--c-muted); }
.offer-price { font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; color: var(--c-primary-ink); line-height: 1.1; }
.offer-body > p { color: var(--c-muted); max-width: 380px; }

/* ---------- Контакти и форма ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 4vw, 56px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-box { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--c-border); }
.info-box strong { color: var(--c-primary-ink); }
.info-box a, .info-box span { display: flex; gap: 12px; align-items: center; }
.info-box span { color: var(--c-muted); }
.info-box svg { color: var(--c-accent-icon); flex-shrink: 0; }
.price-note { padding: 16px 20px; border-radius: var(--radius); background: var(--c-accent-soft); color: var(--c-primary-ink); font-weight: 500; }

.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow), inset 0 0 0 1px var(--c-border); }
#contact-form { display: flex; flex-direction: column; gap: 18px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--c-primary-ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.req { color: var(--c-error); }
.opt { font-weight: 400; color: var(--c-muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--c-input); background: #fff; color: var(--c-text);
  font: inherit; font-size: 16px; /* 16px предотвратява zoom на iOS */
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { padding: 12px 16px; min-height: 120px; resize: vertical; }
.field select { padding: 0 14px; appearance: auto; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-accent-icon); box-shadow: 0 0 0 3px rgba(9,168,230,.25);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--c-error); }
.field-error { font-size: 13px; color: var(--c-error); min-height: 0; }
.field-error:empty { display: none; }
.radio-row { display: flex; gap: 24px; flex-wrap: wrap; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 0;
  border: 0; border-radius: 0; cursor: pointer; background: transparent; font-weight: 400 !important;
  transition: color .16s var(--ease);
}
.radio-pill:has(input:checked) { color: var(--c-primary); }
.radio-pill input, .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-primary); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px !important; font-weight: 400 !important; color: var(--c-text) !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.form-hint { font-size: 13px; color: var(--c-muted); text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.security-check {
  gap: 12px; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, #F7FBFD 0%, #F3F4FB 100%);
  box-shadow: inset 0 0 0 1px #D7E5EC;
  transition: box-shadow .16s var(--ease), background .16s var(--ease);
}
.security-check.has-error {
  background: #FFF8F7;
  box-shadow: inset 0 0 0 1px var(--c-error);
}
.security-check-copy { display: flex; align-items: center; gap: 12px; }
.security-check-copy > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.security-check-copy strong { color: var(--c-primary-ink); font-size: 14px; }
.security-check-copy small { color: var(--c-muted); font-size: 13px; }
.security-check-icon {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-primary); background: #fff; box-shadow: inset 0 0 0 1px #D7E5EC;
}
.turnstile-frame { width: 100%; min-height: 65px; border-radius: 10px; overflow: hidden; }
#turnstile-widget { width: 100%; }
.turnstile-noscript { font-size: 13px; color: var(--c-error); }

.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 15px; }
.alert-error { background: #FDECEC; color: #8A1C1C; box-shadow: inset 0 0 0 1px #F2B8B8; }
.alert-warn { background: #FFF4E5; color: #7A3E00; box-shadow: inset 0 0 0 1px #F5CFA0; }

#submit-btn { min-height: 56px; font-size: 17px; font-weight: 700; }
#submit-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
#submit-btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 40px 8px; outline: none; }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--c-muted); max-width: 420px; }
.success-icon { width: 72px; height: 72px; border-radius: 999px; background: #E6F4E6; color: var(--c-success); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-primary-ink); color: #D3D6F0; padding: clamp(48px, 6vw, 72px) 0 32px; }
.site-footer a { color: #D3D6F0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; margin-bottom: 40px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-title { color: #fff; font-size: 16px; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-mark { background: #fff; color: var(--c-primary); }
.logo-light .logo-text span { color: #6FD0F5; }
.site-footer .btn-light { color: var(--c-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; }
.cookie-settings-link {
  appearance: none; border: 0; padding: 0; background: transparent; color: #D3D6F0;
  font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cookie-settings-link:hover { color: #fff; }

/* ---------- Бисквитки ---------- */
.cookie-banner {
  position: fixed; z-index: 90; left: 50%; bottom: 20px;
  width: min(1120px, calc(100% - 32px)); padding: 20px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  border-radius: var(--radius-lg); background: #fff;
  box-shadow: inset 0 0 0 1px var(--c-border), 0 20px 60px rgba(20,30,60,.22);
  opacity: 0; transform: translate(-50%, 18px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: translate(-50%, 0); }
.cookie-banner-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-primary); background: var(--c-accent-soft);
}
.cookie-banner-copy { display: flex; flex-direction: column; gap: 3px; }
.cookie-banner-copy strong { color: var(--c-primary-ink); font-size: 17px; }
.cookie-banner-copy p { color: var(--c-muted); font-size: 14px; }
.cookie-banner-actions { display: flex; align-items: center; gap: 10px; }

.cookie-dialog {
  width: min(760px, calc(100% - 32px)); max-height: min(88vh, 820px);
  padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent;
  box-shadow: 0 30px 80px rgba(20,30,60,.3);
}
.cookie-dialog::backdrop { background: rgba(20,30,60,.56); backdrop-filter: blur(3px); }
.cookie-dialog-card { max-height: min(88vh, 820px); overflow-y: auto; padding: clamp(24px, 4vw, 36px); background: #fff; }
.cookie-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.cookie-dialog-head > div { display: flex; flex-direction: column; gap: 5px; }
.cookie-dialog-head h2 { font-size: clamp(24px, 3vw, 32px); }
.cookie-dialog-close {
  width: 42px; height: 42px; flex: 0 0 42px; padding: 0; border: 1px solid var(--c-border);
  border-radius: 999px; background: #fff; color: var(--c-primary-ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.cookie-dialog-close:hover { background: var(--c-bg-alt); }
.cookie-dialog-intro { margin-bottom: 20px; color: var(--c-muted); }
.cookie-category { padding: 20px; border-radius: var(--radius); background: var(--c-bg-alt); box-shadow: inset 0 0 0 1px var(--c-border); }
.cookie-category-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cookie-category-head h3 { margin-bottom: 3px; font-size: 19px; }
.cookie-category-head p { color: var(--c-muted); font-size: 14px; }
.cookie-status {
  flex-shrink: 0; padding: 5px 10px; border-radius: 999px;
  background: #E6F4E6; color: var(--c-success-ink); font-size: 12px; font-weight: 700;
}
.cookie-list { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.cookie-item { padding: 14px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--c-border); }
.cookie-item dt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.cookie-item dt code { color: var(--c-primary-ink); font-size: 13px; overflow-wrap: anywhere; }
.cookie-item dt span { color: var(--c-muted); font-size: 12px; white-space: nowrap; }
.cookie-item dd { margin: 0; color: var(--c-muted); font-size: 13px; }
.cookie-unused { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.cookie-unused span {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 10px; color: var(--c-muted); background: #fff;
  box-shadow: inset 0 0 0 1px var(--c-border); font-size: 13px;
}
.cookie-unused strong { color: var(--c-primary-ink); }
.cookie-provider-note { margin-top: 18px; color: var(--c-muted); font-size: 13px; }
.cookie-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

@media (max-width: 760px) {
  .cookie-banner { grid-template-columns: auto minmax(0, 1fr); bottom: 12px; padding: 16px; }
  .cookie-banner-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-banner-actions .btn { width: 100%; }
  .cookie-dialog-card { padding: 22px 18px; }
  .cookie-category { padding: 16px; }
  .cookie-category-head { flex-direction: column; }
  .cookie-unused { grid-template-columns: 1fr; }
  .cookie-dialog-actions { flex-direction: column-reverse; }
  .cookie-dialog-actions .btn { width: 100%; }
}
/* ---------- Анимации ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-copy { animation: fadeUp .7s var(--ease) both; }
.hero-visual { animation: fadeUp .7s .15s var(--ease) both; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
