@font-face {
  font-family: "BV Onest";
  src: url("../assets/fonts/typography-compare/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "BV Onest";
  src: url("../assets/fonts/typography-compare/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --warm-white: #f7f4ef;
  --white: #ffffff;
  --graphite: #17222d;
  --muted: #526171;
  --navy: #0a2f4f;
  --navy-strong: #07253f;
  --cyan: #0b8fc6;
  --cyan-strong: #087cad;
  --line: #d9e1e7;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 18px 50px rgba(9, 41, 66, .12);
  --gutter: clamp(18px, 4vw, 36px);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--graphite);
  background: var(--warm-white);
  font-family: "BV Onest", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(10, 47, 79, .08);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  width: min(calc(100% - 2 * var(--gutter)), 1220px);
  min-height: 84px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; border-radius: 12px; }
.brand__copy { display: grid; gap: 2px; white-space: nowrap; }
.brand__copy b { color: var(--navy); font-size: 1rem; line-height: 1.1; letter-spacing: .015em; }
.brand__copy small { color: var(--muted); font-size: .6875rem; line-height: 1.2; }

.site-nav { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 2.5vw, 36px); }
.site-nav a { color: var(--graphite); font-size: .875rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--cyan-strong); }

.header-phone { display: grid; justify-items: end; text-decoration: none; white-space: nowrap; }
.header-phone span { color: var(--navy); font-size: .9375rem; font-weight: 750; }
.header-phone small { color: var(--muted); font-size: .6875rem; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--navy); border-radius: 2px; }

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #e8e3dc;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media > img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero__media > img { transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1.06); transform-origin: center; will-change: transform; }
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,244,239,.98) 0%, rgba(247,244,239,.88) 32%, rgba(247,244,239,.36) 56%, rgba(247,244,239,0) 76%);
}
.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(calc(100% - 2 * var(--gutter)), 1220px);
  min-height: 640px;
  margin: 0 auto;
}
.hero__content { width: min(100%, 600px); padding: 62px 0 70px; }
.eyebrow { margin: 0 0 14px; color: var(--cyan-strong); font-size: .8125rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--navy-strong);
  font-size: clamp(3.5rem, 5.6vw, 5.35rem);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__lead { max-width: 38ch; margin: 24px 0 0; color: var(--graphite); font-size: clamp(1.125rem, 1.65vw, 1.375rem); line-height: 1.48; }
.hero__price { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 26px; color: var(--graphite); font-size: 1.25rem; font-weight: 600; }
.hero__price strong { color: var(--cyan-strong); font-size: clamp(3rem, 4vw, 4.25rem); line-height: 1; letter-spacing: -.04em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--cyan);
  border-radius: 12px;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .nav-toggle:focus-visible, .site-nav a:focus-visible, .header-phone:focus-visible, .brand:focus-visible {
  outline: 3px solid rgba(11,143,198,.35);
  outline-offset: 3px;
}
.button--primary { color: var(--white); background: var(--cyan-strong); border-color: var(--cyan-strong); }
.button--primary:hover { background: var(--navy); border-color: var(--navy); }
.button--secondary { color: var(--cyan-strong); background: rgba(255,255,255,.72); }
.button--secondary:hover { color: var(--white); background: var(--navy); border-color: var(--navy); }

.result { margin: 0; padding: clamp(58px, 7vw, 96px) 0; background: var(--white); }
.result__inner { width: min(calc(100% - 2 * var(--gutter)), 1220px); margin: 0 auto; }
.result__heading { margin-bottom: clamp(28px, 4vw, 42px); }
.result h2 { max-width: 22ch; margin: 0; color: var(--navy-strong); font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.comparison__item { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: #e6ebee; box-shadow: var(--shadow); }
.comparison__item img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.comparison__item figcaption { position: absolute; top: 16px; left: 16px; padding: 8px 13px; border: 1px solid rgba(10,47,79,.08); border-radius: 10px; color: var(--navy); background: rgba(255,255,255,.9); font-size: .875rem; font-weight: 700; backdrop-filter: blur(8px); }

@media (max-width: 980px) {
  .site-header__inner { grid-template-columns: auto auto; min-height: 72px; }
  .nav-toggle { display: block; justify-self: end; }
  .header-phone { display: none; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px var(--gutter) 24px;
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 16px 30px rgba(9,41,66,.12);
  }
  .site-nav--open { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .site-nav a { display: flex; min-width: 0; min-height: 48px; align-items: center; padding: 0 2px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
}

@media (max-width: 767px) {
  :root { --gutter: 18px; --radius-lg: 18px; }
  .brand img { width: 42px; height: 42px; }
  .brand__copy b { font-size: .9375rem; }
  .hero { display: grid; min-height: 0; background: var(--warm-white); }
  .hero__media { position: relative; height: clamp(238px, 67vw, 300px); order: 0; }
  .hero__media > img { object-position: center 45%; transform: none; }
  .hero__veil { display: none; }
  .hero__inner { min-height: 0; width: 100%; order: 1; }
  .hero__content { width: 100%; padding: 30px var(--gutter) 42px; }
  .eyebrow { margin-bottom: 10px; font-size: .75rem; }
  .hero h1 { max-width: 15ch; font-size: clamp(2.45rem, 11.4vw, 3.25rem); line-height: 1.05; letter-spacing: -.04em; }
  .hero__lead { margin-top: 16px; font-size: 1.0625rem; line-height: 1.48; }
  .hero__price { margin: 16px 0 22px; font-size: 1.0625rem; }
  .hero__price strong { font-size: 2.875rem; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .button { min-height: 52px; width: 100%; }
  .result { padding: 50px 0 62px; }
  .result__heading { margin-bottom: 24px; }
  .result h2 { max-width: 17ch; font-size: clamp(2rem, 9vw, 2.5rem); }
  .comparison { grid-template-columns: 1fr; gap: 14px; }
  .comparison__item { aspect-ratio: 4 / 3; }
  .comparison__item img { object-position: center 52%; }
  .comparison__item figcaption { top: 12px; left: 12px; }
}

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .brand__copy small { display: none; }
  .hero__content { padding-top: 26px; }
  .hero h1 { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
