:root {
  --canvas: #ffffff;
  --ink: #000000;
  --indigo: #5f69ae;
  --lavender: #aaafd0;
  --offer: #000000;
  --offer-ink: #ffffff;
  --table-tint: #d9edf7;
  --chip: #ffffff;
  --thin: 580px;
  --wide: 1200px;
  --title: 1000px;
  --gutter: 24px;
  --header-h: 91px;
  --header-m: 106px;
  --title-h: 256px;
  --slider-h: 600px;
  --slider-m: 263px;
  --t: 400ms;
  --t-fast: 150ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  font: 400 18px/1.45 "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) linear; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: Inter, "Helvetica Neue", Helvetica, sans-serif; margin: 0 0 0.4em; }
h1 { font-size: 84px; font-weight: 800; line-height: 1.14; }
h2 { font-size: 48px; font-weight: 700; line-height: 1.25; }
h3 { font-size: 18px; font-weight: 500; }
h4 { font-size: 22px; font-weight: 500; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 40;
  background: #fff;
  padding: 8px 12px;
}

.header {
  position: relative;
  z-index: 20;
  min-height: var(--header-h);
  background: #000;
  color: #fff;
}
.header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
.logo img { width: 40px; height: 40px; }
.logo:hover { text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px 14px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  font-size: 15px;
}
.nav__item { position: relative; }
.nav__item > a { color: #fff; white-space: nowrap; }
.nav__drop {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  padding: 8px 0;
  background: #111;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--t-fast) linear, transform var(--t-fast) linear, visibility 0s var(--t-fast);
}
.nav__drop a {
  display: block;
  padding: 8px 16px;
  color: #fff;
}
.nav__item:hover .nav__drop,
.nav__item:focus-within .nav__drop,
.nav__item.is-open .nav__drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity var(--t-fast) linear, transform var(--t-fast) linear;
}

.header__reach {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-size: 14px;
}
.header__reach a { color: #fff; white-space: nowrap; }

#menu-btn {
  display: none;
  margin-left: auto;
  min-height: var(--header-m);
  padding: 0 16px;
  font-weight: 600;
}

#menu {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #000;
  color: #fff;
  overflow: auto;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms ease-in, visibility 0s 250ms;
}
#menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 250ms ease-out;
}
#menu[hidden] { display: none; }
#menu a { display: block; padding: 10px 0; color: #fff; }
#menu .sub { padding-left: 16px; font-size: 16px; }
body.is-locked { overflow: hidden; }

.title {
  min-height: var(--title-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px var(--gutter);
}
.title h1 { width: min(100%, var(--title)); margin: 0; }

.prose--thin {
  width: min(100% - 48px, var(--thin));
  margin: 40px auto;
  font-size: 21px;
  line-height: 31px;
}
.prose--thin h2 { text-align: center; }
.prose {
  width: min(100% - 48px, var(--wide));
  margin: 32px auto;
}

.btn {
  display: inline-block;
  background: var(--indigo);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  border-radius: 0;
  text-decoration: none;
  transition: filter var(--t-fast) linear;
}
.btn:hover { color: #fff; text-decoration: none; filter: brightness(1.05); }
.more {
  display: inline-block;
  color: var(--lavender);
  font-size: 13px;
  padding: 14px;
}
.btn-pill {
  display: inline-block;
  background: #fff;
  color: #000;
  border: 2px solid #fff;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 700;
  padding: 12.8px 24px;
  text-decoration: none;
}
.btn-pill:hover { text-decoration: none; }
.chip {
  display: inline-block;
  color: #fff;
  font-size: 15px;
  margin: 4px 12px 4px 0;
}
.slider .chip {
  border: 1px solid #fff;
  border-radius: 99px;
  padding: 6px 16px;
  margin: 4px 8px 4px 0;
}
.slider__kicker {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  width: min(100% - 48px, var(--wide));
  margin: -8px auto 32px;
}
.chips .chip {
  color: #000;
  border: 1px solid #000;
  padding: 6px 12px;
  margin: 0;
}
.chapters h3 { margin-top: 1.2em; }
#lb {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-fast) linear, visibility 0s var(--t-fast);
}
#lb[hidden] { display: none; }
#lb.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--t-fast) linear;
}
#lb img { max-width: 90vw; max-height: 90vh; object-fit: contain; }

.slider {
  position: relative;
  height: var(--slider-h);
  overflow: hidden;
  background: #111;
}
.slider__track { height: 100%; }
.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t) ease;
  background: #222 center / cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 10%;
  will-change: opacity;
}
.slider__slide.is-on { opacity: 1; z-index: 1; }
.slider__slide h2 {
  font-size: clamp(28px, 4vw, 48px);
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #fff;
}
.slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  color: #fff;
  opacity: 0.8;
  transition: opacity var(--t) ease;
}
.slider__nav:hover { opacity: 1; }
.slider__nav--prev { left: 12px; }
.slider__nav--next { right: 12px; }
.slider__dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background var(--t-fast) linear;
}
.slider__dots button.is-on { background: #fff; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 570px));
  justify-content: center;
  gap: 8px;
  padding: 24px var(--gutter) 48px;
}
.card {
  position: relative;
  min-height: 569px;
  color: #fff;
  background: #222 center top / 100% auto no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.2) 55%);
}
.card > * { position: relative; }
.card h3 { color: #fff; margin-bottom: 4px; }
.card .eyebrow { font-size: 14px; opacity: 0.85; margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.4; }

.offer {
  background: var(--offer);
  color: var(--offer-ink);
  padding: 32px var(--gutter) 48px;
}
.offer h2 { text-align: center; color: #fff; }
.offer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 603px));
  justify-content: center;
  gap: 16px 24px;
  max-width: 1827px;
  margin: 24px auto 0;
}
.offer__tile {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 181px;
  color: #fff;
  text-decoration: none;
}
.offer__tile img { width: 127px; height: 127px; object-fit: contain; }
.offer__tile:hover { text-decoration: none; }

.ind-wrap { padding: 24px var(--gutter) 48px; }
.ind-wrap h4 { text-align: center; margin-bottom: 24px; }
.ind {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 497px));
  justify-content: center;
  gap: 8px;
}
.ind__tile {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 120px;
  padding: 8px;
}
.ind__tile img { width: 75px; height: 75px; object-fit: contain; }

.price {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 18px;
}
.price th, .price td { padding: 8px; background: var(--table-tint); text-align: left; }

.reach { margin: 24px 0; line-height: 1.6; }
.make { padding-left: 20px; }
.how { padding-left: 20px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery img { width: 100%; height: 210px; object-fit: cover; }
.map { display: block; width: min(100%, 580px); height: 414px; border: 0; }

.foot-w {
  background: #000;
  color: #fff;
  padding: 40px var(--gutter);
}
.foot-w__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 32px;
}
.foot-w a { color: #fff; }
.foot-w__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.foot {
  min-height: 113px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  background: #fff;
}
.foot .logo { color: #000; }
.foot #top { font-size: 15px; }

@media (max-width: 63.99em) {
  .header { min-height: var(--header-m); }
  .header__bar { min-height: var(--header-m); }
  .nav, .header__reach { display: none; }
  #menu-btn { display: flex; align-items: center; }
  .cards, .offer__grid, .ind { grid-template-columns: 1fr 1fr; }
  .slider { height: 384px; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 47.99em) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .header { min-height: var(--header-m); }
  .header__bar { min-height: var(--header-m); }
  .nav, .header__reach { display: none; }
  #menu-btn { display: flex; align-items: center; }
  .title { min-height: 140px; padding: 24px 16px; }
  .prose--thin { font-size: 18px; line-height: 1.5; }
  .slider { height: var(--slider-m); }
  .slider__slide { padding: 24px 16px; }
  .cards, .offer__grid, .ind { grid-template-columns: 1fr; }
  .card { min-height: 472px; }
  .offer__tile { min-height: 140px; }
  .foot-w__grid { grid-template-columns: 1fr; }
  .foot { flex-direction: column; min-height: 87px; text-align: center; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (hover: hover) and (pointer: fine) {
  .slider__nav,
  .slider__dots {
    opacity: 0;
    transition: opacity var(--t) ease;
  }
  .slider:hover .slider__nav,
  .slider:focus-within .slider__nav { opacity: 0.8; }
  .slider:hover .slider__nav:hover { opacity: 1; }
  .slider:hover .slider__dots,
  .slider:focus-within .slider__dots { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
  html { scroll-behavior: auto; }
  .slider__slide { will-change: auto; }
}

.social-links { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; margin-block: 8px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.social-links img { display: block; width: 24px; height: 24px; object-fit: contain; }
.social-links a[aria-label="Написать на почту"] { background: var(--indigo); border-radius: 4px; }

.social-links a[aria-label="VK"] { background: #0077ff; border-radius: 4px; }
.social-links a[aria-label="Telegram"] { background: #229ed9; border-radius: 4px; }
