/* ---------- Base ---------- */
:root {
  --ink: #0c1220;
  --ink-soft: #56607a;
  --navy: #0f1730;
  --navy-soft: #182448;
  --line: #e7e9ef;
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --accent: #d9261c;
  --accent-dark: #ad1c14;
  --steel: #7c869e;
  --radius: 18px;
  --container: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth; touch-action: pan-y; overflow-x: hidden;
  overscroll-behavior-x: none; width: 100%; position: relative;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%; position: relative;
}

h1, h2, h3 {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 110px 0; position: relative; }
@media (max-width: 700px) { .section { padding: 72px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 16px;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }

.section__title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  margin-bottom: 48px;
  max-width: 720px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  white-space: nowrap; border: 2px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
}
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -8px rgba(217,38,28,.5); }
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 14px 28px -8px rgba(217,38,28,.58); }
.btn--outline { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-soft); }
.btn--outline-dark { border-color: var(--line); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Progress bar ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); z-index: 1000; transform: scaleX(0); transform-origin: left; will-change: transform; transition: transform .1s linear; }

/* ---------- Header ---------- */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 500; padding: 22px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.header.is-scrolled, .header--solid {
  background: rgba(15, 23, 48, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.35);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.logo__text { color: #fff; font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: .02em; }
.logo__text em { font-style: normal; color: var(--accent); }
.logo--footer .logo__text { color: var(--ink); }

.nav { display: flex; gap: 22px; }
.nav a { color: rgba(255,255,255,.8); font-weight: 600; font-size: 13.5px; white-space: nowrap; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: #fff; transition: width .3s var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { color: #fff; font-weight: 700; font-size: 14.5px; transition: color .2s ease; }
.header__phone:hover { color: var(--accent); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--navy); color: #fff; overflow: hidden; contain: paint; max-width: 100%;
  padding-top: 100px; padding-bottom: 60px;
}

.hero__blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .3; pointer-events: none; will-change: transform; }
.hero__blob--a { width: 360px; height: 360px; background: radial-gradient(circle, var(--accent), transparent 70%); top: -140px; left: -100px; animation: blobFloat 20s ease-in-out infinite; }
.hero__blob--b { width: 320px; height: 320px; background: radial-gradient(circle, #2d3f7a, transparent 70%); bottom: -160px; right: -90px; animation: blobFloat 24s ease-in-out infinite reverse; }
@keyframes blobFloat { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(30px, 22px, 0); } }

.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; gap: 44px; } }

.hero__title { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; margin-bottom: 22px; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__subtitle { font-size: clamp(15px, 1.4vw, 17px); color: rgba(255,255,255,.75); max-width: 520px; margin-bottom: 34px; line-height: 1.65; }

.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; max-width: 170px; padding-left: 14px; border-left: 2px solid var(--accent); }
.stat__num { font-family: 'Unbounded', sans-serif; font-size: 34px; font-weight: 700; color: #fff; line-height: 1; }
.stat__plus { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 700; color: var(--accent); }
.stat__label { flex-basis: 100%; font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.4; }

.hero__media { position: relative; }
.hero__media-frame {
  border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.6;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
}
.hero__media-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 25% 40%;
  transform: scale(1.1); animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.floating-badge {
  position: absolute; bottom: -22px;
  background: #fff; color: var(--ink); border-radius: 16px;
  padding: 14px 20px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.4);
  max-width: 230px;
  animation: badgeFloat 5s ease-in-out infinite;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.floating-badge--left { left: -28px; }
.floating-badge--right { right: -28px; animation-delay: -2.5s; }
.floating-badge:hover { box-shadow: 0 28px 54px -16px rgba(0,0,0,.48); transform: translateY(-4px); }
@media (max-width: 860px) {
  .floating-badge--left { left: 12px; bottom: -18px; padding: 12px 16px; }
  .floating-badge--right { right: 12px; bottom: -18px; padding: 12px 16px; }
}
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.floating-badge__icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.floating-badge__icon svg { width: 18px; height: 18px; }
.floating-badge span:last-child { font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.floating-badge strong { color: var(--accent); font-size: 14px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .7;
}
.hero__scroll span { width: 1px; height: 30px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: #fff; animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 50% { top: 100%; } 100% { top: 100%; } }
.hero__scroll p { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---------- Wave divider ---------- */
.wave-divider { background: var(--ink); line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 50px; }
.wave-divider path { fill: var(--bg); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink); color: #fff; overflow: hidden; position: relative;
  contain: paint; max-width: 100%;
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.marquee__track {
  display: flex; gap: 40px; white-space: nowrap; width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform; -webkit-transform: translateZ(0);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.marquee__item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative; overflow: hidden;
  padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.service-card:hover { box-shadow: 0 26px 44px -22px rgba(12,18,32,.2); border-color: transparent; }
.service-card::before {
  content: attr(data-index);
  position: absolute; top: 14px; right: 18px; z-index: 0;
  font-family: 'Unbounded', sans-serif; font-size: 38px; font-weight: 700;
  color: var(--bg-soft); transition: color .4s ease;
}
.service-card:hover::before { color: #eef0f6; }
.service-card__icon, .service-card h3, .service-card p { position: relative; z-index: 1; }
.service-card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  transition: background .35s ease, color .35s ease, transform .4s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--navy); color: #fff; transform: rotate(-6deg) scale(1.06); }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; font-family: 'Manrope', sans-serif; }
.service-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Shop ---------- */
.shop { background: var(--bg-soft); }
.shop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .shop__grid { grid-template-columns: 1fr; gap: 36px; } }
.shop__media { position: relative; }
.shop__media img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(12,18,32,.3); filter: contrast(1.04) saturate(1.05); }
.shop__text .section__title { margin-bottom: 24px; }

.check-list { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); }
.check-list li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* ---------- Discounts ---------- */
.discounts { background: linear-gradient(180deg, #fdf2f1, #fdf6f5); }
.discounts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .discounts-grid { grid-template-columns: 1fr; } }

.discount-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.discount-card:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -22px rgba(12,18,32,.18); }
.discount-card__badge {
  position: absolute; top: 0; right: 0;
  background: var(--accent); color: #fff;
  font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 20px;
  padding: 10px 20px; border-radius: 0 0 0 16px;
}
.discount-card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.discount-card__icon svg { width: 26px; height: 26px; }
.discount-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; max-width: 85%; }
.discount-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Advantages ---------- */
.advantages { background: var(--navy); color: #fff; overflow: hidden; }
.advantages__bg { position: absolute; inset: 0; background: radial-gradient(ellipse at top right, rgba(217,38,28,.14), transparent 60%); pointer-events: none; }
.advantages .eyebrow { color: rgba(255,255,255,.6); }
.advantages .section__title { color: #fff; }

.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
@media (max-width: 900px) { .advantages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .advantages-grid { grid-template-columns: 1fr; } }

.advantage-card {
  position: relative; overflow: hidden;
  padding: 32px 24px; border-radius: var(--radius); background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,.08); transition: transform .4s var(--ease), background .3s ease;
}
.advantage-card:hover { transform: translateY(-6px); background: #1f2c54; }
.advantage-card::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.09), transparent);
  transform: skewX(-15deg); transition: left .7s var(--ease);
}
.advantage-card:hover::after { left: 130%; }
.advantage-card__num { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 18px; position: relative; z-index: 1; }
.advantage-card h3 { font-size: 17px; margin-bottom: 8px; font-family: 'Manrope', sans-serif; font-weight: 700; position: relative; z-index: 1; }
.advantage-card p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.55; position: relative; z-index: 1; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 5;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); filter: contrast(1.04) saturate(1.05); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,18,32,.55) 100%); opacity: 0; transition: opacity .35s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item__zoom {
  position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); display: flex; align-items: center; justify-content: center;
  font-size: 18px; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .gallery-item__zoom { opacity: 1; transform: translateY(0); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(8,11,20,.92); z-index: 900;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 88vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: none; border-radius: 50%;
  width: 48px; height: 48px; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox__nav { width: 40px; height: 40px; } }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 26px; transition: border-color .3s ease, background .3s ease; }
.faq-item[open] { background: var(--bg-soft); border-color: transparent; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-weight: 700; font-size: 16px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 400; transition: transform .3s var(--ease), background .3s ease;
}
.faq-item[open] .faq-item__icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-item p { padding-bottom: 22px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; max-width: 640px; }

/* ---------- Contacts ---------- */
.contacts { background: var(--bg-soft); }
.contacts .map-placeholder { background: #fff; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contacts__grid { grid-template-columns: 1fr; } }

.contacts-list { list-style: none; margin: 28px 0 36px; display: flex; flex-direction: column; gap: 18px; }
.contacts-list li { display: flex; flex-direction: column; gap: 4px; font-size: 17px; font-weight: 700; }
.contacts-list__label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.contacts-list a:hover { color: var(--accent); }

.contacts__map { border-radius: var(--radius); overflow: hidden; min-height: 340px; }
.map-placeholder {
  height: 100%; min-height: 340px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 14px; text-align: center; padding: 20px;
  border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.55); padding: 64px 0 0; }

.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__col--brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__col--brand .logo__text { color: #fff; }
.footer__tagline { font-size: 13.5px; line-height: 1.6; margin-top: 14px; max-width: 280px; color: rgba(255,255,255,.5); }

.footer__heading { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 18px; }

.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .2s ease; }
.footer__nav a:hover { color: #fff; }

.footer__contacts { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer__contacts li { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.footer__contacts li span:first-child { font-size: 12px; color: rgba(255,255,255,.4); }
.footer__contacts a { color: rgba(255,255,255,.85); font-weight: 700; transition: color .2s ease; }
.footer__contacts a:hover { color: var(--accent); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08);
}
.footer__bottom p { font-size: 13px; }
.footer__legal-links { font-size: 13px; }
.footer__legal-links a { color: rgba(255,255,255,.55); transition: color .2s ease; }
.footer__legal-links a:hover { color: #fff; }
.footer__messengers { font-size: 13px; font-weight: 700; }
.footer__messengers a { color: rgba(255,255,255,.85); transition: color .2s ease; }
.footer__messengers a:hover { color: var(--accent); }
.footer__dev { font-size: 13px; color: rgba(255,255,255,.4); }
.footer__dev a { color: rgba(255,255,255,.7); font-weight: 700; transition: color .2s ease; }
.footer__dev a:hover { color: var(--accent); }

/* ---------- Floating messenger widget ---------- */
.messenger-stack {
  position: fixed; right: 24px; bottom: 24px; z-index: 400;
  display: flex; flex-direction: column; gap: 12px;
}
.messenger-btn {
  position: relative; width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.messenger-btn:hover { transform: scale(1.08) translateX(-2px); }
.messenger-btn svg { width: 26px; height: 26px; }
.messenger-btn--wa { background: #25D366; }
.messenger-btn--tg { background: #29A9EB; }
.messenger-btn__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.messenger-btn:hover .messenger-btn__tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 760px) { .messenger-stack { display: none; } }

/* ---------- Quick nav (persistent menu — always visible, never toggled by scroll) ---------- */
.quicknav-fab {
  position: fixed; top: 100px; right: 24px; z-index: 480;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(15,23,48,.5);
  transition: transform .3s var(--ease), background .25s ease;
  will-change: transform; -webkit-transform: translateZ(0); transform: translateZ(0);
}
.quicknav-fab:hover { background: var(--navy-soft); transform: scale(1.08); }
.quicknav-fab svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .quicknav-fab { top: 84px; right: 16px; } }

.quicknav-overlay {
  position: fixed; inset: 0; background: rgba(8,11,20,.55); z-index: 497;
  opacity: 0; visibility: hidden; transition: opacity .35s ease;
}
.quicknav-overlay.is-open { opacity: 1; visibility: visible; }

.quicknav {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw); z-index: 498;
  background: var(--navy); padding: 100px 32px 32px; display: none; flex-direction: column; gap: 22px;
  transform: translateX(100%);
  transition: transform .4s var(--ease); box-shadow: -30px 0 60px -20px rgba(0,0,0,.4);
}
.quicknav.is-open { transform: translateX(0); }
.quicknav a { color: rgba(255,255,255,.82); font-weight: 600; font-size: 16px; transition: color .2s ease; }
.quicknav a:hover { color: #fff; }
.quicknav__title { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: -6px; }
.quicknav__phone { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: var(--accent) !important; font-weight: 700; font-size: 17px; }
.quicknav__close {
  position: absolute; top: 26px; right: 26px; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.08); color: #fff; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.quicknav__close:hover { background: rgba(255,255,255,.18); }

/* ---------- Reveal / mask animations ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.mask { display: block; overflow: hidden; }
.mask__inner { display: block; }
.js .reveal-line { transform: translateY(115%); transition: transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-line.is-visible { transform: translateY(0); }

/* Hero animations run on pure CSS (no JS/IntersectionObserver dependency) so the
   most important above-the-fold content always animates in, even if the observer
   is delayed by a slow first paint. */
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.js .hero-fade { opacity: 0; animation: heroFadeUp .8s var(--ease) forwards; animation-delay: var(--d, 0s); }

@keyframes heroMaskIn { from { transform: translateY(115%); } to { transform: translateY(0); } }
.js .hero-mask-line { transform: translateY(115%); animation: heroMaskIn .9s var(--ease) forwards; animation-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-line, .js .hero-fade, .js .hero-mask-line { opacity: 1; transform: none; animation: none; transition: none; }
  .hero__media-frame img { animation: none; transform: none; }
  .floating-badge, .hero__blob, .marquee__track { animation: none; }
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 140px 0 100px;
  max-width: 820px; margin: 0 auto;
}
.legal__back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink-soft); margin-bottom: 28px; }
.legal__back:hover { color: var(--accent); }
.legal h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; margin-bottom: 10px; }
.legal__updated { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 40px; }
.legal__notice {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 40px;
}
.legal__notice strong { color: var(--ink); }
.legal h2 { font-size: 20px; font-weight: 700; margin: 38px 0 14px; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 4px; display: flex; flex-direction: column; gap: 8px; }
.legal p { margin-bottom: 4px; }
.legal a.inline-link { color: var(--accent); font-weight: 600; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 800;
  max-width: 640px; margin: 0 auto;
  background: var(--ink); color: #fff; border-radius: 16px;
  padding: 20px 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  transform: translateY(140%); transition: transform .5s var(--ease); will-change: transform;
}
.cookie-banner.is-shown { transform: translateY(0); }
.cookie-banner p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.75); flex: 1 1 260px; }
.cookie-banner a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 20px; font-size: 13.5px; }
@media (max-width: 560px) { .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; } }


/* ---------- Mobile nav ---------- */
@media (max-width: 1080px) {
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 80vw);
    background: var(--navy); display: none; flex-direction: column; padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform .4s var(--ease); gap: 26px; z-index: 499;
  }
  .nav.is-open { transform: translateX(0); }
  .header__phone { display: none; }
  .burger { display: flex; }
}
