/* =========================================================
   Global Tandem — стилове
   ========================================================= */

:root {
  --navy: #012a6b;
  --navy-900: #071a3d;
  --blue: #4353f0;
  --blue-600: #3341d6;
  --blue-50: #eef0ff;
  --amber: #ffb547;

  --ink: #0d1733;
  --text: #4a5572;
  --muted: #7a849e;
  --line: #e4e8f2;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 23, 51, .04), 0 8px 24px rgba(13, 23, 51, .06);
  --shadow-lg: 0 24px 60px rgba(1, 42, 107, .14);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .6em 1.15em; font-size: .92rem; }
.btn-lg { padding: 1em 1.75em; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(67, 83, 240, .28); }
.btn-primary:hover { background: var(--blue-600); color: #fff; box-shadow: 0 10px 26px rgba(67, 83, 240, .36); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--blue); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }

.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(13, 23, 51, .05); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.brand:hover { color: var(--navy); }
.brand img { width: 44px; height: auto; }
.brand strong { color: var(--blue); font-weight: 800; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light strong { color: #9ba5ff; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
  display: block; padding: .5em .9em; border-radius: 999px;
  color: var(--text); font-weight: 500; font-size: .97rem;
  transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover, .nav a.active { color: var(--ink); background: var(--bg-soft); }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--ink);
  font-weight: 700; font-size: .82rem; letter-spacing: .04em;
}
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--bg-soft); cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .25s, top .25s;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff;
    padding: 16px 24px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(13, 23, 51, .08);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 2px; margin-bottom: 16px; }
  .nav a:not(.btn) { padding: .8em 1em; font-size: 1.05rem; }
  .nav-cta { display: flex; width: 100%; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px);
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(67, 83, 240, .10), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(255, 181, 71, .10), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .45em 1em; margin-bottom: 24px;
  border-radius: 999px; background: var(--blue-50); color: var(--navy);
  font-size: .9rem; font-weight: 600;
}
.badge i { color: var(--blue); }

.hero h1 { isolation: isolate; }
.hl { color: var(--blue); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em;
  background: var(--amber); opacity: .45; border-radius: 4px; z-index: -1;
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text); max-width: 34em; margin-bottom: 28px; }

.hero-facts { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 12px; }
.hero-facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.hero-facts i {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: #fff; color: var(--blue); box-shadow: var(--shadow); font-size: .95rem;
  margin-top: -2px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; width: min(100%, 460px); margin-left: auto; }
.hero-photo {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 32px; box-shadow: var(--shadow-lg);
}
.hero-deco {
  position: absolute; inset: 28px -28px -28px 28px;
  border-radius: 32px;
  background: linear-gradient(140deg, var(--blue), var(--navy));
}

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--ink); font-size: .98rem; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .85rem; }
.float-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 1.2rem; }
.float-card-a { left: -44px; bottom: 10%; }
.float-card-b { right: -40px; top: 8%; animation-delay: -3s; }
.float-card-b .float-icon { background: var(--amber); color: var(--navy); }

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

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { margin-inline: auto; }
  .hero-deco { inset: 16px -12px -12px 16px; }
  .float-card-a { left: -8px; }
  .float-card-b { right: -8px; }
}

/* ---------- Stats ---------- */

.stats { border-block: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; color: var(--navy); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .95rem; }

@media (max-width: 800px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--blue); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head p:last-child { margin-bottom: 0; font-size: 1.08rem; }

/* Split (за нас) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.media-badge {
  position: absolute; right: 24px; bottom: -22px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 12px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow-lg);
}
.media-badge > i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-50); color: var(--blue); font-size: 1.25rem; }
.media-badge strong { display: block; color: var(--ink); line-height: 1.2; }
.media-badge small { color: var(--muted); font-size: .85rem; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: center; color: var(--ink); font-weight: 600; }
.checklist i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-size: 1rem; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media { order: 2; }
}

/* Countries + sectors */
.countries { list-style: none; padding: 0; margin: 0 auto 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.countries li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-weight: 600;
}
.countries span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.countries .more { padding: 8px 18px; color: var(--muted); background: transparent; border-style: dashed; }

.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sector {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--navy);
  transition: transform .3s, box-shadow .3s;
}
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sector img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sector:hover img { transform: scale(1.05); }
.sector::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(7, 26, 61, .88), rgba(7, 26, 61, .2) 45%, transparent 70%);
}
.sector-label { display: flex; align-items: center; gap: 12px; padding: 20px 22px; }
.sector-label i {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: 1.15rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sector-label h3 { margin: 0; color: #fff; font-size: 1.15rem; }

.sector-more {
  aspect-ratio: auto; justify-content: center; padding: 28px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: rgba(255, 255, 255, .85);
}
.sector-more::after { display: none; }
.sector-more:hover { color: rgba(255, 255, 255, .85); }
.sector-more-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
  border-radius: 14px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.4rem;
}
.sector-more h3 { color: #fff; margin-bottom: .35em; }
.sector-more p { margin: 0; font-size: .97rem; }
.sector-more .link-arrow { margin-top: 0; padding-top: 16px; }
.sector-more:hover .link-arrow i { transform: translateX(4px); }

@media (max-width: 900px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .sectors { grid-template-columns: 1fr; }
  .sector { aspect-ratio: 16 / 10; }
  .sector-more { aspect-ratio: auto; }
}

/* Cards (услуги) */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  padding: 36px 32px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 24px;
  border-radius: 18px; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font-size: 1.6rem;
}
.card p { margin: 0; }

@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* Process (тъмна секция) */
.section-dark {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(67, 83, 240, .35), transparent 60%),
    var(--navy-900);
  color: #b8c2dc;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #9ba5ff; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step {
  position: relative; padding: 32px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
}
.step-num {
  display: inline-block; margin-bottom: 20px;
  font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(135deg, #fff, #9ba5ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { margin: 0; font-size: .98rem; }

@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
  padding: 28px 26px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid transparent;
  transition: background-color .25s, border-color .25s, transform .25s;
}
.benefit:hover { background: #fff; border-color: var(--line); transform: translateY(-3px); }
.benefit > i { display: inline-block; font-size: 1.7rem; color: var(--blue); margin-bottom: 14px; }
.benefit h3 { font-size: 1.08rem; }
.benefit p { margin: 0; font-size: .96rem; }

.benefit-cta { background: var(--blue); color: rgba(255, 255, 255, .85); display: flex; flex-direction: column; }
.benefit-cta:hover { background: var(--blue-600); color: rgba(255, 255, 255, .85); border-color: transparent; }
.benefit-cta > i, .benefit-cta h3 { color: #fff; }
.link-arrow { margin-top: auto; padding-top: 18px; color: #fff; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.benefit-cta:hover .link-arrow i { transform: translateX(4px); }
.link-arrow i { transition: transform .2s; }

@media (max-width: 1100px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { padding: 0 0 clamp(72px, 9vw, 120px); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(500px 300px at 100% 100%, rgba(255, 181, 71, .25), transparent 60%),
    linear-gradient(120deg, var(--navy), var(--blue));
  color: rgba(255, 255, 255, .85);
}
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { margin: 0; max-width: 36em; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */

#contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }

.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: center; color: var(--ink); font-weight: 600; }
.contact-list li > span {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--blue-50); color: var(--blue); font-size: 1.2rem;
}
.contact-list small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; line-height: 1.3; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--blue); }

.contact-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 24px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field > span, .field > label { color: var(--ink); font-weight: 600; font-size: .9rem; }

.field input, .field textarea {
  width: 100%;
  padding: .85em 1em;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(67, 83, 240, .12);
}

.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-img { width: 126px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); flex: none; background: var(--line); }
.captcha-refresh {
  flex: none; width: 44px; height: 48px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; color: var(--text); cursor: pointer; font-size: 1.1rem;
}
.captcha-refresh:hover { border-color: var(--ink); color: var(--ink); }
.captcha-row input { flex: 1; min-width: 0; }

.form-consent { margin: 16px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.55; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; }
.alert i { font-size: 1.25rem; line-height: 1.3; }
.alert p { margin: 0; color: var(--ink); }
.alert-success { background: #e8f8ef; }
.alert-success i { color: #16a34a; }
.alert-error { background: #fdecec; }
.alert-error i { color: #dc2626; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-900); color: #97a2c0; padding-top: 72px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { margin: 18px 0 22px; max-width: 26em; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer a { color: #c9d0e4; }
.site-footer a:hover { color: #fff; }

.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 12px; align-items: center; }
.footer-contact i { color: #9ba5ff; }

.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .07); font-size: 1.1rem;
  transition: background-color .2s;
}
.social a:hover { background: var(--blue); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 24px; font-size: .88rem;
  background: linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .08)) top center / calc(100% - 48px) 1px no-repeat;
}
.footer-bottom p { margin: 0; }
.footer-bottom .link-btn { color: #c9d0e4; }

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Legal pages ---------- */

.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.legal-head { max-width: 780px; margin: 0 auto 40px; }
.legal-head p { color: var(--muted); }
.legal-body { max-width: 780px; margin: 0 auto; }
.legal-body h2 { font-size: 1.35rem; margin: 2.2em 0 .7em; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-bottom: .5em; }
.legal-body li::marker { color: var(--blue); }
.legal-body strong { color: var(--ink); }
.note { background: var(--blue-50); border-left: 3px solid var(--blue); padding: 16px 20px; border-radius: 10px; margin: 24px 0; }
.note p { margin: 0; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px;
  max-width: 760px; margin-inline: auto;
  display: flex; gap: 24px; align-items: center;
  padding: 20px 24px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(13, 23, 51, .2);
  font-size: .92rem; line-height: 1.55;
}
.cookie-banner[hidden] { display: none; }
.cookie-text strong { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.cookie-text strong i { color: var(--blue); }
.cookie-text p { margin: 0; }
.cookie-buttons { display: flex; flex-direction: column; gap: 8px; flex: none; }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-buttons { flex-direction: row-reverse; }
  .cookie-buttons .btn { flex: 1; }
}

/* ---------- Reveal animation ---------- */

.js .reveal {
  opacity: 0; translate: 0 18px;
  transition: opacity .7s ease, translate .7s ease, transform .3s ease, box-shadow .3s ease, background-color .25s, border-color .25s;
}
.js .reveal.in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .float-card { animation: none; }
}
