@import url('fonts.css');

/* ==========================================================================
   КВАДРО 69 — фирменная стилевая система
   Цвета сняты пиксельно с логотипа и баннера прайса:
   золото #FDBF0C, глубокое золото #F8B000, чёрный #000000
   ========================================================================== */

:root {
  --gold: #fdbf0c;
  --gold-deep: #f8b000;
  --gold-light: #ffd24a;
  --gold-grad: linear-gradient(135deg, #ffd24a 0%, #fdbf0c 45%, #f8b000 100%);
  --gold-soft: rgba(253, 191, 12, 0.12);
  --gold-line: rgba(253, 191, 12, 0.28);

  --black: #000000;
  --bg: #050506;
  --bg-alt: #0b0b0d;
  --surface: #0e0e11;
  --surface-2: #141417;
  --border: #26262b;

  --text: #ffffff;
  --muted: #b9b9c0;
  --dim: #85858e;

  --font-display: 'Montserrat', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --radius: 14px;
  --header-h: 84px;

  --chamfer: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   База
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Позиционирование фиксируем, чтобы фон не прокручивался под окном записи и галереей. */
body.is-locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--gold);
  color: #000;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Сетка и типографика секций
   ========================================================================== */

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

.section {
  position: relative;
  padding: clamp(64px, 8vw, 116px) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--bg);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 3px;
  background: var(--gold-grad);
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.section__title {
  font-size: clamp(30px, 4.6vw, 54px);
}

.section__title em {
  font-style: normal;
  color: var(--gold);
}

.section__text {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
  max-width: 62ch;
}

.section__head--center .section__text {
  margin-left: auto;
  margin-right: auto;
}

/* Диагональные золотые росчерки как на макетах прайса */
.slashes {
  display: flex;
  gap: 6px;
  margin-top: 22px;
}

.section__head--center .slashes {
  justify-content: center;
}

.slashes span {
  width: 30px;
  height: 5px;
  background: var(--gold);
  transform: skewX(-24deg);
  opacity: 0.85;
}

.slashes span:nth-child(2) {
  width: 18px;
  opacity: 0.55;
}

.slashes span:nth-child(3) {
  width: 9px;
  opacity: 0.3;
}

/* ==========================================================================
   Кнопки со скосом угла — отсылка к шевронам логотипа
   ========================================================================== */

.btn {
  --btn-chamfer: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  clip-path: polygon(var(--btn-chamfer) 0, 100% 0, 100% calc(100% - var(--btn-chamfer)), calc(100% - var(--btn-chamfer)) 100%, 0 100%, 0 var(--btn-chamfer));
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--gold-grad);
  color: #100c00;
  box-shadow: 0 12px 30px rgba(253, 191, 12, 0.24);
}

.btn--primary:hover {
  box-shadow: 0 18px 40px rgba(253, 191, 12, 0.36);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
}

.btn--ghost:hover {
  background: rgba(253, 191, 12, 0.1);
  color: var(--gold);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.btn--gold-outline {
  color: var(--gold);
  background: rgba(253, 191, 12, 0.06);
  box-shadow: inset 0 0 0 1.5px var(--gold-line);
}

.btn--gold-outline:hover {
  background: rgba(253, 191, 12, 0.14);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.btn--sm {
  --btn-chamfer: 10px;
  padding: 12px 20px;
  font-size: 12.5px;
}

.btn--block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ==========================================================================
   Карточки
   ========================================================================== */

.card {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--border);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px var(--gold-line);
  background: linear-gradient(160deg, #1a1a1e, #101013);
}

.icon-badge {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1.5px var(--gold-line);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

.card:hover .icon-badge {
  background: var(--gold-grad);
  color: #120d00;
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.25));
  transition: height 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header.is-stuck {
  height: 68px;
  background: rgba(4, 4, 5, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 18px 40px rgba(0, 0, 0, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__logo {
  width: auto;
  height: 52px;
  transition: height 0.3s var(--ease);
}

.header.is-stuck .brand__logo {
  height: 42px;
}

.brand__text {
  display: none;
  line-height: 1.15;
}

.brand__name,
.brand__tag {
  display: block;
  white-space: nowrap;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand__name span {
  color: var(--gold);
}

.brand__tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav {
  display: none;
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__link {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.22s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold-grad);
  transition: width 0.28s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.header__phone {
  display: none;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.22s var(--ease);
}

.header__phone svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

.header__phone:hover {
  color: var(--gold);
}

.header__cta {
  display: none;
}

.burger {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--border);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* Все три полоски лежат в одной ячейке, поэтому в открытом виде складываются в крестик. */
.burger span {
  grid-area: 1 / 1;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.burger span:nth-child(1) {
  transform: translateY(-6px);
}

.burger span:nth-child(3) {
  transform: translateY(6px);
}

body.is-menu-open .burger span:nth-child(1) {
  transform: rotate(45deg);
}

body.is-menu-open .burger span:nth-child(2) {
  opacity: 0;
}

body.is-menu-open .burger span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 88;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: rgba(3, 3, 4, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

body.is-menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
}

.mobile-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-menu__list a span {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.mobile-menu__foot {
  display: grid;
  gap: 12px;
}

.mobile-menu__phone {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  color: var(--gold);
}

/* ==========================================================================
   Первый экран
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(253, 191, 12, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0.92) 88%, #000 100%);
}

.hero__inner {
  width: 100%;
  padding-bottom: clamp(40px, 6vw, 72px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  margin-bottom: 24px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(253, 191, 12, 0.1);
  box-shadow: inset 0 0 0 1px var(--gold-line);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.hero__badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(253, 191, 12, 0.2);
}

.hero__title {
  font-size: clamp(38px, 7.4vw, 88px);
  line-height: 0.96;
  max-width: 16ch;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.hero__title em {
  font-style: normal;
  display: block;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  margin-top: 22px;
  max-width: 54ch;
  font-size: clamp(15px, 1.5vw, 18px);
  color: #dcdce2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__scroll {
  display: none;
  position: absolute;
  right: var(--gutter);
  bottom: 140px;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  margin: 14px auto 0;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollHint 2.2s var(--ease) infinite;
}

@keyframes scrollHint {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleY(0.5);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* Полоса фактов */
.facts {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #0a0a0c, #050506);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.facts__item {
  padding: 26px 8px 26px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.facts__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 3px;
  background: var(--gold-grad);
  transform: skewY(-1deg);
}

.facts__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1;
  color: var(--gold);
}

.facts__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ==========================================================================
   Преимущества
   ========================================================================== */

.advantages__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.advantage {
  padding: 30px 26px 32px;
}

.advantage__title {
  margin: 20px 0 10px;
  font-size: 19px;
  letter-spacing: 0;
}

.advantage__text {
  color: var(--muted);
  font-size: 15px;
}

.advantage__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 42px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  transition: color 0.35s var(--ease);
}

.card:hover .advantage__num {
  color: rgba(253, 191, 12, 0.16);
}

/* ==========================================================================
   Маршруты и цены
   ========================================================================== */

.prices__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}

.price {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 34px;
  overflow: hidden;
}

.price--featured {
  background: linear-gradient(165deg, #221a05, #100d06 60%);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.price--featured:hover {
  background: linear-gradient(165deg, #2b2107, #141008 60%);
  box-shadow: inset 0 0 0 1.5px var(--gold-light);
}

.price__tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 18px 8px 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #120d00;
  background: var(--gold-grad);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%);
}

.price__duration {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.price__duration svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.price__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 6vw, 58px);
  line-height: 1;
  color: var(--text);
}

.price--featured .price__value {
  color: var(--gold);
}

.price__value small {
  font-size: 0.42em;
  font-weight: 800;
  color: var(--muted);
}

.price__note {
  font-size: 13.5px;
  color: var(--dim);
}

.price__list {
  display: grid;
  gap: 12px;
  margin: 26px 0 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.price__list li {
  display: flex;
  gap: 11px;
  font-size: 14.5px;
  color: var(--muted);
}

.price__list svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 4px;
  color: var(--gold);
}

.price .btn {
  margin-top: auto;
}

.price-terms {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 26px 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
}

.price-terms li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 14.5px;
  color: var(--muted);
}

.price-terms svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--gold);
}

.price-terms b {
  color: var(--text);
  font-weight: 600;
}

/* ==========================================================================
   Локации маршрута
   ========================================================================== */

.route {
  display: grid;
  gap: 26px;
}

.route__item {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 46px;
}

.route__item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: -26px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-line), rgba(253, 191, 12, 0.05));
}

.route__item:last-child::before {
  display: none;
}

.route__dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  color: #120d00;
  background: var(--gold-grad);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.route__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
}

.route__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.route__item:hover .route__media img {
  transform: scale(1.05);
}

.route__title {
  font-size: clamp(21px, 2.4vw, 27px);
  margin-bottom: 12px;
}

.route__text {
  color: var(--muted);
  font-size: 15px;
}

.route__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.route__meta svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   Фотосессия
   ========================================================================== */

.photo {
  position: relative;
  overflow: hidden;
}

.photo__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.photo__list {
  display: grid;
  gap: 16px;
  margin: 26px 0 30px;
}

.photo__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15px;
}

.photo__list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--gold);
}

.photo__stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.photo__stack figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
}

.photo__stack figure:first-child {
  transform: translateY(-14px);
}

.photo__stack figure:last-child {
  transform: translateY(14px);
}

.photo__stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Как проходит поездка
   ========================================================================== */

.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 30px;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.step__title {
  font-size: 17px;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.step__text {
  font-size: 14.5px;
  color: var(--muted);
}

/* ==========================================================================
   Галерея
   ========================================================================== */

.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.65));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.07);
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #120d00;
  background: var(--gold-grad);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.gallery__item:hover .gallery__zoom {
  opacity: 1;
  transform: none;
}

.gallery__zoom svg {
  width: 18px;
  height: 18px;
}

/* Просмотр во весь экран */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox__caption {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--gold);
  color: #000;
}

.lightbox__close {
  top: 22px;
  right: 22px;
}

.lightbox__nav--prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Отзывы
   ========================================================================== */

.reviews {
  position: relative;
}

.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 88%);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-line) transparent;
}

.reviews__track::-webkit-scrollbar {
  height: 4px;
}

.reviews__track::-webkit-scrollbar-thumb {
  background: var(--gold-line);
}

.review {
  scroll-snap-align: start;
  padding: 30px 26px 32px;
  display: flex;
  flex-direction: column;
}

.review__stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
  margin-bottom: 16px;
}

.review__stars svg {
  width: 17px;
  height: 17px;
}

.review__text {
  font-size: 15px;
  color: var(--muted);
  flex: 1;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.review__avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: #120d00;
  background: var(--gold-grad);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.review__name {
  font-weight: 600;
  font-size: 15px;
}

.review__meta {
  font-size: 12.5px;
  color: var(--dim);
}

.reviews__controls {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.reviews__btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--border);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.reviews__btn:hover {
  background: var(--gold);
  color: #000;
}

.reviews__btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Вопросы и ответы
   ========================================================================== */

.faq {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq__item {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.faq__item.is-open {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}

.faq__item.is-open .faq__q {
  color: var(--gold);
}

.faq__icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--gold-line);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq__icon::before {
  width: 11px;
  height: 2px;
}

.faq__icon::after {
  width: 2px;
  height: 11px;
}

.faq__item.is-open .faq__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 15px;
}

/* ==========================================================================
   Контакты
   ========================================================================== */

.contacts__grid {
  display: grid;
  gap: 24px;
}

.contact-card {
  padding: 32px 28px;
}

.contact-card__title {
  font-size: 19px;
  letter-spacing: 0;
}

.contact-card .btn {
  margin-top: 28px;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.contact-list__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-list__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1.5px var(--gold-line);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.contact-list__icon svg {
  width: 20px;
  height: 20px;
}

.contact-list__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

.contact-list__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.35;
  transition: color 0.22s var(--ease);
}

a.contact-list__value:hover {
  color: var(--gold);
}

.contact-list__value--plain {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15.5px;
  text-transform: none;
  line-height: 1.5;
}

.map {
  min-height: 380px;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

/* Финальный призыв */
.cta {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 80% 20%, rgba(253, 191, 12, 0.16), transparent 60%),
    linear-gradient(180deg, #0b0b0d, #000);
  border-top: 1px solid var(--border);
}

.cta__inner {
  display: grid;
  gap: 28px;
  align-items: center;
  text-align: center;
  justify-items: center;
}

.cta__title {
  font-size: clamp(28px, 4.4vw, 50px);
  max-width: 18ch;
}

.cta__title em {
  font-style: normal;
  color: var(--gold);
}

.cta__text {
  margin-top: 16px;
  color: var(--muted);
  max-width: 52ch;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ==========================================================================
   Подвал
   ========================================================================== */

.footer {
  background: #030304;
  border-top: 1px solid var(--border);
  padding: 56px 0 120px;
  font-size: 14.5px;
  color: var(--muted);
}

.footer__grid {
  display: grid;
  gap: 36px;
}

.footer__logo {
  height: 64px;
  width: auto;
  margin-bottom: 18px;
}

.footer__about {
  max-width: 42ch;
  font-size: 14.5px;
}

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer__social {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--border);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.footer__social:hover {
  background: var(--gold-grad);
  color: #120d00;
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__title {
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 18px;
}

.footer__links {
  display: grid;
  gap: 11px;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--dim);
}

.footer__bottom a:hover {
  color: var(--gold);
}

.footer__legal {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.6;
}

/* ==========================================================================
   Нижняя панель действий на телефоне
   ========================================================================== */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 86;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(4, 4, 5, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}

.action-bar.is-visible {
  transform: none;
}

/* Без min-width: 0 колонки сетки не сжимаются уже содержимого и вылезают за экран. */
.action-bar .btn {
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}

/* ==========================================================================
   Модальное окно записи
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 34px 22px 28px;
  text-align: center;
  background: linear-gradient(170deg, #17170d 0%, #0d0d10 42%, #08080a 100%);
  box-shadow: inset 0 0 0 1.5px var(--gold-line), var(--shadow);
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal.is-open .modal__dialog {
  transform: none;
}

/* Фокус переносим на само окно, поэтому рамка вокруг него не нужна. */
.modal__dialog:focus {
  outline: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.modal__close:hover {
  color: #000;
  background: var(--gold);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: #120d00;
  background: var(--gold-grad);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.modal__badge svg {
  width: 28px;
  height: 28px;
}

.modal__title {
  font-size: clamp(24px, 4vw, 32px);
}

.modal__choice[hidden] {
  display: none;
}

.modal__choice {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--gold-line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.modal__text {
  margin: 14px auto 0;
  max-width: 42ch;
  font-size: 14.5px;
  color: var(--muted);
}

.modal__phone {
  display: inline-block;
  margin: 20px 0 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: 0.01em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.25s var(--ease);
}

.modal__phone:hover {
  filter: brightness(1.15);
}

.modal__hours {
  font-size: 13.5px;
  color: var(--dim);
}

.modal__actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.modal__actions .btn {
  padding: 16px 14px;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.modal__steps {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.modal__steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.modal__steps svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--gold);
}

.modal__note {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--dim);
}

/* Всплывающее уведомление о копировании */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 140;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #120d00;
  background: var(--gold-grad);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transform: translate(-50%, 24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Текстовая страница (политика конфиденциальности)
   ========================================================================== */

.legal {
  padding: calc(var(--header-h) + 56px) 0 clamp(56px, 8vw, 96px);
}

.legal__wrap {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  margin-bottom: 10px;
}

.legal__updated {
  font-size: 13.5px;
  color: var(--dim);
  margin-bottom: 34px;
}

.legal h2 {
  font-size: clamp(18px, 2.4vw, 22px);
  margin: 38px 0 14px;
  color: var(--gold);
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 15.5px;
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.legal li {
  display: flex;
  gap: 12px;
}

.legal li::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  background: var(--gold);
  transform: skewX(-20deg);
}

.legal a {
  color: var(--gold);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 44px;
  font-weight: 600;
  color: var(--gold);
}

/* ==========================================================================
   Появление при прокрутке
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 420px) {
  .btn {
    padding: 15px 18px;
    font-size: 13px;
  }

  .card,
  .price,
  .contact-card {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 560px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal__actions {
    grid-template-columns: 1fr 1fr;
  }

  .modal__dialog {
    padding: 40px 30px 34px;
  }

  .hero__scroll {
    display: block;
  }
}

@media (min-width: 680px) {
  :root {
    --gutter: 32px;
  }

  .brand__text {
    display: block;
  }

  .facts__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .facts__item {
    border-bottom: 0;
  }

  .facts__item:last-child {
    border-right: 0;
  }

  .advantages__grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .route__item {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 34px;
    padding-left: 58px;
  }

  .route__item:nth-child(even) .route__media {
    order: 2;
  }

  .photo__stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews__track {
    grid-auto-columns: minmax(300px, 46%);
  }
}

@media (min-width: 900px) {
  .prices__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-terms {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
  }

  .contacts__grid {
    grid-template-columns: 1fr 1.15fr;
  }

  .photo__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 54px;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
  }

  .cta__inner {
    grid-template-columns: 1.4fr auto;
    text-align: left;
    justify-items: start;
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .advantages__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(5, 1fr);
  }

  .reviews__track {
    grid-auto-columns: minmax(320px, 32%);
  }
}

/* Полное меню в шапке включаем только когда ссылки, телефон и кнопка помещаются в строку. */
@media (min-width: 1120px) {
  .nav {
    display: block;
  }

  .header__phone {
    display: inline-flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .burger {
    display: none;
  }

  .action-bar {
    display: none;
  }

  .footer {
    padding-bottom: 56px;
  }
}

@media (min-width: 1180px) {
  .hero__title {
    font-size: 88px;
  }
}
