/* ===== Базовые переменные ===== */
:root {
  --c-primary: #101010;
  --c-primary-2: #2b2b30;
  --c-accent: #c72a59;
  --c-accent-2: #a91f4a;
  --c-accent-light: #ff5c8d;
  --c-sand: #fdf0f4;
  --c-bg: #ffffff;
  --c-tint: #f7f5f6;
  --c-text: #1a1a1d;
  --c-muted: #64646c;
  --c-border: #ebe6e8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(16, 16, 16, .3);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 16px/1 var(--font-body);
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--block { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
.btn--accent { background: var(--c-accent); color: #fff; box-shadow: 0 10px 24px -10px var(--c-accent-2); }
.btn--accent:hover { background: var(--c-accent-2); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ===== Шапка ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #fff;
  transition: box-shadow .3s;
}
.header.is-scrolled,
.header.is-open { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .3); }
.header__inner { display: flex; align-items: center; gap: 24px; width: min(1360px, 100% - 32px); }

.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark { height: 44px; width: auto; }
.logo__text { display: grid; gap: 4px; font-family: var(--font-head); line-height: 1; }
.logo__name { font-weight: 800; font-size: 20px; letter-spacing: .06em; color: var(--c-primary); }
.logo__name span { color: var(--c-accent); }
.logo__sub { font-weight: 600; font-size: 10px; letter-spacing: .5em; color: var(--c-primary); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--c-text); font-weight: 500; font-size: 15px; position: relative; white-space: nowrap; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--c-accent); }

/* Полоса прогресса прокрутки под шапкой */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { color: var(--c-primary); font-weight: 600; font-size: 15px; white-space: nowrap; }

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--c-tint);
  font: 700 12px/1 var(--font-head);
  letter-spacing: .04em;
}
.lang__item { padding: 7px 10px; border-radius: 999px; color: var(--c-muted); }
a.lang__item:hover { color: var(--c-accent); }
.lang__item.is-active { background: #fff; color: var(--c-primary); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--c-primary); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Первый экран ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  color: #fff;
  overflow: hidden;
  background: var(--c-primary);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(199, 42, 89, .45), transparent 45%),
    linear-gradient(105deg, rgba(10, 10, 10, .9) 0%, rgba(16, 16, 16, .7) 45%, rgba(16, 16, 16, .2) 100%),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2000&q=70") center / cover no-repeat,
    linear-gradient(135deg, #101010, #3a1222 60%, #c72a59);
  animation: heroZoom 20s ease-in-out infinite alternate;
  /* Параллакс: фон уезжает медленнее страницы (--hero-scroll задаёт script.js) */
  translate: 0 calc(var(--hero-scroll, 0) * .35px);
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Первый экран появляется по частям при загрузке */
.hero__eyebrow,
.hero__title,
.hero__lead,
.hero__buttons,
.hero__facts,
.quick-form { animation: heroIn .9s cubic-bezier(.22, .61, .36, 1) both; }
.hero__title { animation-delay: .1s; }
.hero__lead { animation-delay: .2s; }
.hero__buttons { animation-delay: .3s; }
.hero__facts { animation-delay: .4s; }
.quick-form { animation-delay: .35s; animation-name: heroInRight; }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } }
@keyframes heroInRight { from { opacity: 0; transform: translateX(40px); } }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 22px;
}
.hero__title { font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -.01em; }
.hero__title span { color: var(--c-accent-light); }
.hero__lead { margin-top: 22px; max-width: 540px; font-size: 18px; color: rgba(255, 255, 255, .88); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts { display: flex; gap: 40px; list-style: none; padding: 0; margin: 48px 0 0; }
.hero__facts strong { display: block; font: 800 30px/1 var(--font-head); }
.hero__facts span { font-size: 14px; color: rgba(255, 255, 255, .75); }

/* ===== Формы ===== */
.quick-form {
  background: #fff;
  color: var(--c-text);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
  display: grid;
  gap: 14px;
}
.quick-form__title { font-size: 22px; color: var(--c-primary); margin-bottom: 4px; }
.quick-form__note { font-size: 13px; color: var(--c-muted); text-align: center; }

.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--c-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font: 400 15px/1.3 var(--font-body);
  color: var(--c-text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c-primary-2);
  box-shadow: 0 0 0 4px rgba(199, 42, 89, .14);
}
.is-invalid { border-color: #e5484d !important; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12) !important; }

/* ===== Секции ===== */
.section { padding: 100px 0; }
.section--tinted { background: var(--c-tint); }
.section--dark { background: var(--c-primary); color: #fff; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__eyebrow {
  color: var(--c-accent-2);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--c-primary); }
.section--dark .section__title { color: #fff; }
.section__lead { margin-top: 16px; font-size: 18px; color: var(--c-muted); }

/* ===== Направления ===== */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 20px;
}
.dest {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  isolation: isolate;
  background: var(--tint, var(--c-primary));
}
.dest::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--img) center / cover no-repeat;
  transition: transform .6s ease;
}
.dest::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .1) 60%);
}
.dest:hover::before { transform: scale(1.07); }
.dest--big { grid-column: span 2; grid-row: span 2; }
.dest--wide { grid-column: span 2; }
.dest h3 { font-size: 26px; }
.dest--big h3 { font-size: 40px; }
.dest p { font-size: 14px; opacity: .9; margin-top: 4px; }
.dest__tag {
  display: inline-block;
  background: var(--c-accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.dest__btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--c-primary);
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s, transform .25s;
}
.dest:hover .dest__btn,
.dest__btn:focus-visible { opacity: 1; transform: none; }

/* ===== Услуги ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--c-border);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 28px;
  border-radius: 16px;
  background: var(--c-sand);
  margin-bottom: 20px;
}
.card h3 { font-size: 20px; color: var(--c-primary); margin-bottom: 10px; }
.card p { color: var(--c-muted); }

/* ===== Почему мы ===== */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why__text { position: sticky; top: calc(var(--header-h) + 32px); }
.why__text .section__lead { margin-bottom: 32px; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.why__list li {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--c-tint);
}
.why__num { font: 800 28px/1 var(--font-head); color: var(--c-accent); min-width: 44px; }
.why__list h3 { font-size: 19px; color: var(--c-primary); margin-bottom: 6px; }
.why__list p { color: var(--c-muted); }

/* ===== Шаги ===== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-accent);
  font: 800 20px/1 var(--font-head);
  margin-bottom: 20px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, .75); }

/* ===== FAQ ===== */
.faq { display: grid; gap: 14px; }
.faq details {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  padding: 0 24px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 32px 20px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--c-accent);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--c-muted); }

/* ===== CTA ===== */
.cta {
  background:
    radial-gradient(circle at 15% 20%, rgba(199, 42, 89, .45), transparent 45%),
    linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: #fff;
}
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta .section__title { color: #fff; }
.cta .section__lead { color: rgba(255, 255, 255, .8); }
.cta-form { display: grid; gap: 14px; }
.cta-form input,
.cta-form textarea { border-color: transparent; }

/* ===== Подвал ===== */
.footer { background: #0a0a0a; color: rgba(255, 255, 255, .75); padding: 72px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--c-accent-light); }
.footer__about { margin-top: 16px; max-width: 280px; }
.footer__logo {
  display: inline-block;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
}
.footer__logo img { width: 150px; height: auto; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px;
}
.footer__legal { display: grid; gap: 4px; }

/* ===== WhatsApp ===== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Анимация появления при прокрутке ===== */
main { overflow-x: clip; } /* сдвиги по горизонтали не дают горизонтальной прокрутки */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal--zoom { transform: translateY(24px) scale(.92); }
.reveal--left { transform: translateX(-48px); }
.reveal--right { transform: translateX(48px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* На десктопе текст первого экрана слегка уходит и гаснет при прокрутке */
@media (min-width: 961px) {
  .hero__content {
    translate: 0 calc(var(--hero-scroll, 0) * .15px);
    opacity: calc(1 - var(--hero-scroll, 0) / 700);
  }
}

/* ===== Адаптив ===== */
@media (max-width: 1439px) {
  .header__phone { display: none; }
  .nav { gap: 20px; }
}

/* Меню прячется в «бургер», когда пункты перестают помещаться в строку */
@media (max-width: 1199px) {
  .burger { display: block; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: 8px 16px 24px;
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s, visibility .3s;
  }
  .nav a { color: var(--c-text); padding: 14px 0; border-bottom: 1px solid var(--c-border); }
  .header.is-open .nav { transform: none; visibility: visible; }
  .header__actions { margin-left: auto; }
}

@media (max-width: 960px) {
  .hero__inner,
  .why,
  .cta__inner { grid-template-columns: minmax(0, 1fr); }
  .why__text { position: static; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .logo { gap: 8px; }
  .logo__mark { height: 34px; }
  .logo__name { font-size: 15px; }
  .logo__sub { font-size: 9px; letter-spacing: .42em; }
  .header__actions { gap: 6px; }
  .lang__item { padding: 6px 8px; }
  .burger { margin-right: -10px; }
  .footer { padding-bottom: 96px; }
  .section { padding: 72px 0; }
  /* Три колонки поровну, чтобы короткая подпись не сжималась в столбик по слову.
     Колонка с длинным словом может стать шире остальных, но не вылезет за край */
  .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(min-content, 1fr)); gap: 16px; }
  .hero__facts strong { font-size: 24px; margin-bottom: 6px; }
  .hero__facts span { display: block; font-size: 13px; line-height: 1.35; }
  .quick-form { padding: 24px; }
  .dest-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .dest--big,
  .dest--wide { grid-column: auto; grid-row: auto; }
  .dest--big h3 { font-size: 30px; }
  .dest__btn { opacity: 1; transform: none; }
  .cards,
  .steps,
  .footer__grid { grid-template-columns: 1fr; }
}

/* На самых узких экранах в шапке остаётся только знак логотипа */
@media (max-width: 349px) {
  .logo__text { display: none; }
}

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