/* ============================================================
   MEXICO CLUB — сдержанный luxury
   Типографика: EB Garamond (дисплей) + Inter (текст/UI)
   Палитра: тёплый крем, глубокий коричневый, бронза
   ============================================================ */

:root {
  --cream: #F7F4EE;
  --cream-2: #EFEAE1;
  --paper: #FCFBF8;
  --ink: #211B14;
  --ink-soft: #3A332A;
  --muted: #6E6455;
  --faint: #9A8F7E;
  --bronze: #A2854F;
  --bronze-deep: #82663A;
  --bronze-light: #C9B184;
  --dark: #221C15;
  --dark-2: #2C251C;
  --line: #DED6C6;
  --line-dark: rgba(247, 244, 238, 0.16);
  --serif: "EB Garamond", "Georgia", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px -24px rgba(33, 27, 20, 0.25);
  --container: 1320px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--bronze); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* ---------- Типографика ---------- */

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

.display {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.08; }
.h3 { font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.2; }

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 400;
}

.mini-title {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 26px;
}
.mini-title::before { content: ""; width: 56px; height: 1px; background: var(--bronze); flex: none; }
.mini-title.center { justify-content: center; }
.mini-title.center::after { content: ""; width: 56px; height: 1px; background: var(--bronze); }

em, .italic { font-style: italic; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 34px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-solid { background: var(--bronze); color: #fff; }
.btn-solid:hover { background: var(--bronze-deep); transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-light { border-color: rgba(247,244,238,0.55); color: var(--cream); }
.btn-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn svg { width: 16px; height: 16px; transition: transform 0.45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  padding-bottom: 4px;
  background: linear-gradient(var(--bronze), var(--bronze)) no-repeat 0 100% / 100% 1px;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.link-arrow:hover { background-size: 0% 1px; color: var(--ink); }
.link-arrow svg { width: 15px; height: 15px; }

/* ---------- Шапка ---------- */

.topbar {
  background: var(--dark);
  color: rgba(247,244,238,0.75);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; gap: 20px; }
.topbar a { color: rgba(247,244,238,0.85); transition: color 0.3s; }
.topbar a:hover { color: var(--bronze-light); }
.topbar-left, .topbar-right { display: flex; gap: 26px; align-items: center; }
.topbar svg { width: 13px; height: 13px; margin-right: 7px; vertical-align: -1px; opacity: 0.7; }

.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 12px 40px -20px rgba(33,27,20,0.18); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 86px; transition: height 0.4s var(--ease); }
.header.scrolled .container { height: 68px; }

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand-mark { width: 46px; height: 46px; flex: none; transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-name { font-family: var(--serif); font-size: 1.42rem; letter-spacing: 0.06em; line-height: 1; }
.brand-name span { color: var(--bronze-deep); }
.brand-tag { display: block; font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 15px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--bronze-deep); }
.nav-link .chev { width: 10px; height: 10px; transition: transform 0.35s var(--ease); opacity: 0.55; }
.nav-item:hover .chev, .nav-item.open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 14px);
  min-width: 640px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 34px 38px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease);
  z-index: 50;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown.simple { min-width: 300px; left: 0; transform: translate(0, 14px); padding: 18px 0; }
.nav-item:hover .dropdown.simple, .nav-item.open .dropdown.simple { transform: translate(0, 0); }

.dropdown-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.dropdown-group h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.dropdown-group li a {
  display: block;
  padding: 7px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.25s, padding-left 0.25s;
}
.dropdown-group li a:hover { color: var(--bronze-deep); padding-left: 8px; }
.dropdown.simple li a { display: block; padding: 10px 26px; font-size: 0.92rem; color: var(--ink-soft); transition: all 0.25s; }
.dropdown.simple li a:hover { color: var(--bronze-deep); background: var(--cream); }

.header-cta { flex: none; }
.header-cta .btn { padding: 13px 24px; }

.burger { display: none; flex-direction: column; gap: 6px; padding: 12px; z-index: 300; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); transition: all 0.4s var(--ease); }
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 250;
  padding: 110px 28px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu .m-group { border-bottom: 1px solid var(--line); }
.mobile-menu .m-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  text-align: left;
}
.mobile-menu .m-toggle svg { width: 14px; height: 14px; transition: transform 0.35s; }
.mobile-menu .m-group.open .m-toggle svg { transform: rotate(180deg); }
.mobile-menu .m-sub { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.mobile-menu .m-group.open .m-sub { max-height: 640px; }
.mobile-menu .m-sub a { display: block; padding: 10px 4px 10px 18px; font-size: 1rem; color: var(--muted); }
.mobile-menu .m-sub a:hover { color: var(--bronze-deep); }
.mobile-menu > a.m-plain {
  display: block;
  padding: 20px 4px;
  font-family: var(--serif);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .m-cta { margin-top: 34px; }
.mobile-menu .m-cta .btn { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 26s var(--ease) infinite alternate; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,19,13,0.42) 0%, rgba(24,19,13,0.12) 42%, rgba(24,19,13,0.72) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(60px, 9vh, 110px); }
.hero .mini-title { color: var(--bronze-light); }
.hero .mini-title::before { background: var(--bronze-light); }
.hero h1 { max-width: 15ch; }
.hero .lead { color: rgba(247,244,238,0.85); max-width: 56ch; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 64px);
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(247,244,238,0.25);
}
.hero-meta div { font-size: 0.82rem; letter-spacing: 0.05em; color: rgba(247,244,238,0.72); }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--cream); margin-bottom: 4px; }

/* Внутренние страницы */
.page-hero {
  position: relative;
  padding: clamp(150px, 20vh, 210px) 0 clamp(56px, 8vh, 90px);
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
}
.page-hero .bg { position: absolute; inset: 0; opacity: 0.34; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,19,13,0.5), rgba(24,19,13,0.35) 60%, rgba(24,19,13,0.78)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.page-hero .lead { color: rgba(247,244,238,0.85); max-width: 62ch; margin-top: 24px; }
.page-hero .mini-title { color: var(--bronze-light); }
.page-hero .mini-title::before { background: var(--bronze-light); }
.page-hero.plain { background: var(--cream); color: var(--ink); padding-top: 150px; }
.page-hero.plain .lead { color: var(--ink-soft); }
.page-hero.plain .mini-title { color: var(--bronze-deep); }
.page-hero.plain .mini-title::before { background: var(--bronze); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 30px; color: rgba(247,244,238,0.6); }
.breadcrumbs a { color: rgba(247,244,238,0.75); transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--bronze-light); }
.breadcrumbs .sep { opacity: 0.4; }
.page-hero.plain .breadcrumbs { color: var(--faint); }
.page-hero.plain .breadcrumbs a { color: var(--muted); }
.page-hero.plain .breadcrumbs a:hover { color: var(--bronze-deep); }

/* ---------- Секции ---------- */

.section { padding: clamp(72px, 10vw, 130px) 0; }
.section.tight { padding: clamp(52px, 7vw, 88px) 0; }
.section.dark { background: var(--dark); color: var(--cream); }
.section.dark .lead { color: rgba(247,244,238,0.78); }
.section.dark .mini-title { color: var(--bronze-light); }
.section.dark .mini-title::before { background: var(--bronze-light); }
.section.tinted { background: var(--cream-2); }
.section.paper { background: var(--paper); }

.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h2 { margin-bottom: 22px; }

/* Раздвоённые заголовки (asymmetric split) */
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.split-head .h2 { margin: 0; }
.split-head p { color: var(--muted); max-width: 46ch; justify-self: end; }
.section.dark .split-head p { color: rgba(247,244,238,0.7); }

/* ---------- Асимметричные сетки ---------- */

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); }

.feature-split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.feature-split.reverse { grid-template-columns: 6fr 5fr; }
.feature-split.reverse .f-text { order: 2; }
.f-text .h2 { margin-bottom: 24px; }
.f-text p + p { margin-top: 18px; }
.f-text p { color: var(--ink-soft); }
.f-media { position: relative; }
.f-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.f-media .frame { position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--bronze); z-index: -1; }
.f-media.left .frame { inset: 18px 18px -18px -18px; }

/* Накладывающаяся цитата */
.quote-overlap { position: relative; }
.quote-overlap img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.quote-card {
  position: absolute;
  left: -60px;
  bottom: 48px;
  max-width: 420px;
  background: var(--dark);
  color: var(--cream);
  padding: 40px 42px;
  border-left: 3px solid var(--bronze);
}
.quote-card p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; font-style: italic; }
.quote-card cite { display: block; margin-top: 18px; font-family: var(--sans); font-style: normal; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-light); }

/* ---------- Нумерованный список услуг ---------- */

.num-list { border-top: 1px solid var(--line); }
.section.dark .num-list { border-top-color: var(--line-dark); }
.num-item {
  display: grid;
  grid-template-columns: 120px 1fr 1.1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: start;
  padding: clamp(30px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s;
  position: relative;
}
.section.dark .num-item { border-bottom-color: var(--line-dark); }
.num-item .n {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--bronze);
  line-height: 1;
  padding-top: 6px;
}
.num-item h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); transition: color 0.3s; }
.num-item:hover h3 { color: var(--bronze-deep); }
.section.dark .num-item:hover h3 { color: var(--bronze-light); }
.num-item p { color: var(--muted); max-width: 52ch; }
.section.dark .num-item p { color: rgba(247,244,238,0.68); }
.num-item .go { margin-top: 20px; }

/* ---------- Карточки городов ---------- */

.city-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.city-card { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10.5; color: #fff; }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.city-card:hover img { transform: scale(1.06); }
.city-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,19,13,0.05) 40%, rgba(24,19,13,0.78)); }
.city-card .cc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 34px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.city-card h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.city-card .cc-sub { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-top: 6px; }
.city-card .cc-arrow {
  flex: none;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.45s var(--ease);
}
.city-card:hover .cc-arrow { background: var(--bronze); border-color: var(--bronze); transform: rotate(-45deg); }
.city-card .cc-arrow svg { width: 16px; height: 16px; }

/* ---------- Статистика ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.stat { border-top: 1px solid var(--line-dark); padding-top: 26px; }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; color: var(--bronze-light); }
.stat span { display: block; margin-top: 12px; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,244,238,0.65); }
.section:not(.dark) .stat { border-top-color: var(--line); }
.section:not(.dark) .stat b { color: var(--bronze-deep); }
.section:not(.dark) .stat span { color: var(--muted); }

/* ---------- Плитки преимуществ ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--paper); padding: clamp(28px, 3.4vw, 46px); transition: background 0.4s; }
.tile:hover { background: var(--cream); }
.tile .t-num { font-family: var(--serif); font-size: 1rem; color: var(--bronze); letter-spacing: 0.1em; }
.tile h3 { font-size: 1.32rem; margin: 16px 0 12px; }
.tile p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Этапы (таймлайн) ---------- */

.steps { position: relative; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: clamp(20px, 4vw, 48px); padding: 34px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step .s-num { font-family: var(--serif); font-size: 2.2rem; color: var(--bronze); line-height: 1.1; }
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 68ch; }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  color: var(--ink);
  transition: color 0.3s;
}
.faq-q:hover { color: var(--bronze-deep); }
.faq-q .fx { flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: all 0.4s var(--ease); }
.faq-q .fx svg { width: 12px; height: 12px; transition: transform 0.4s var(--ease); }
.faq-item.open .faq-q .fx { background: var(--bronze); border-color: var(--bronze); }
.faq-item.open .faq-q .fx svg { transform: rotate(45deg); stroke: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.55s var(--ease); }
.faq-a .faq-a-inner { padding: 0 0 30px; color: var(--muted); max-width: 72ch; }
.faq-a-inner p + p { margin-top: 12px; }

/* ---------- Prose (статьи) ---------- */

.prose { max-width: 780px; }
.prose > p { margin-bottom: 22px; color: var(--ink-soft); font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 52px 0 20px; }
.prose h3 { font-size: 1.4rem; margin: 38px 0 16px; }
.prose ul, .prose ol { margin: 0 0 24px; }
.prose li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--bronze); }
.prose ol { counter-reset: ol; }
.prose ol li::before { counter-increment: ol; content: counter(ol) "."; position: absolute; left: 0; font-family: var(--serif); color: var(--bronze-deep); font-size: 1.05em; }
.prose a { color: var(--bronze-deep); background: linear-gradient(var(--bronze), var(--bronze)) no-repeat 0 100% / 100% 1px; transition: background-size 0.4s var(--ease); }
.prose a:hover { background-size: 0% 1px; }
.prose blockquote {
  margin: 36px 0;
  padding: 30px 36px;
  background: var(--paper);
  border-left: 3px solid var(--bronze);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
}
.prose .note {
  margin: 32px 0;
  padding: 24px 30px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.prose .note b { color: var(--ink); }
.prose img { margin: 40px 0; }
.prose figcaption { font-size: 0.82rem; color: var(--faint); margin-top: 10px; letter-spacing: 0.04em; }

/* Таблицы */
.table-wrap { overflow-x: auto; margin: 32px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
table.data th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  padding: 14px 16px;
  border-bottom: 2px solid var(--bronze);
  background: var(--paper);
}
table.data td { padding: 15px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
table.data tr:hover td { background: var(--paper); }

/* ---------- CTA-полоса ---------- */

.cta-band { position: relative; overflow: hidden; background: var(--dark); color: var(--cream); }
.cta-band .bg { position: absolute; inset: 0; opacity: 0.22; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .container { position: relative; z-index: 2; padding-top: clamp(80px, 10vw, 130px); padding-bottom: clamp(80px, 10vw, 130px); }
.cta-band h2 { max-width: 18ch; }
.cta-band .lead { color: rgba(247,244,238,0.8); margin-top: 22px; max-width: 56ch; }
.cta-band .hero-actions { margin-top: 40px; }

/* ---------- Формы ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.98rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2382663A' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(162, 133, 79, 0.14);
}
.field .err { display: none; font-size: 0.78rem; color: #A03D2A; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #A03D2A; }
.field.invalid .err { display: block; }
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--bronze-deep); flex: none; }
.consent a { text-decoration: underline; color: var(--bronze-deep); }
.form-status { display: none; margin-top: 22px; padding: 18px 22px; font-size: 0.95rem; }
.form-status.ok { display: block; background: #EDF3E8; border: 1px solid #B9CBA6; color: #3E5231; }
.form-status.fail { display: block; background: #F7ECE7; border: 1px solid #DFBBA9; color: #7A3B26; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* Форма в тёмной секции */
.dark-form .field input, .dark-form .field select, .dark-form .field textarea {
  background: rgba(247,244,238,0.06);
  border-color: rgba(247,244,238,0.22);
  color: var(--cream);
}
.dark-form .field select option { color: var(--ink); }
.dark-form .field input::placeholder, .dark-form .field textarea::placeholder { color: rgba(247,244,238,0.4); }
.dark-form .field label { color: rgba(247,244,238,0.6); }
.dark-form .consent { color: rgba(247,244,238,0.6); }
.dark-form .consent a { color: var(--bronze-light); }

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

.footer { background: var(--dark); color: rgba(247,244,238,0.72); }
.footer-top { padding: clamp(64px, 8vw, 100px) 0 56px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(32px, 4vw, 60px); }
.footer .brand-name { color: var(--cream); }
.footer .brand-tag { color: rgba(247,244,238,0.5); }
.footer-about { font-size: 0.92rem; line-height: 1.7; margin: 22px 0 26px; max-width: 34ch; }
.footer h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze-light); margin-bottom: 20px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 0.92rem; transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: var(--bronze-light); padding-left: 6px; }
.footer-contacts li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.92rem; align-items: flex-start; }
.footer-contacts svg { width: 15px; height: 15px; flex: none; margin-top: 4px; opacity: 0.6; }
.footer-contacts a:hover { color: var(--bronze-light); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 26px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.8rem; color: rgba(247,244,238,0.45); }
.footer-bottom a { color: rgba(247,244,238,0.55); }
.footer-bottom a:hover { color: var(--bronze-light); }

/* ---------- Прочее ---------- */

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.two-col-text { columns: 2; column-gap: clamp(32px, 5vw, 72px); }
.two-col-text p { margin-bottom: 18px; break-inside: avoid; color: var(--ink-soft); }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 9px 18px; border: 1px solid var(--line); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: all 0.3s; }
.tag:hover { border-color: var(--bronze); color: var(--bronze-deep); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 34px); }
.article-card { display: block; background: var(--paper); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-card .ac-img { aspect-ratio: 16 / 10; overflow: hidden; }
.article-card .ac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.article-card:hover .ac-img img { transform: scale(1.05); }
.article-card .ac-body { padding: 26px 28px 30px; }
.article-card .ac-cat { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-deep); }
.article-card h3 { font-size: 1.32rem; margin: 12px 0; line-height: 1.25; }
.article-card p { font-size: 0.92rem; color: var(--muted); }

.sidebar-box { background: var(--paper); border: 1px solid var(--line); padding: 34px 32px; margin-bottom: 28px; }
.sidebar-box h3 { font-size: 1.35rem; margin-bottom: 16px; }
.sidebar-box li { margin-bottom: 10px; }
.sidebar-box li a { font-size: 0.94rem; color: var(--ink-soft); transition: color 0.25s; }
.sidebar-box li a:hover { color: var(--bronze-deep); }
.sidebar-box.dark { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.sidebar-box.dark p { color: rgba(247,244,238,0.7); font-size: 0.92rem; margin-bottom: 22px; }

.contact-line { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-line svg { width: 20px; height: 20px; flex: none; margin-top: 5px; color: var(--bronze-deep); }
.contact-line b { display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.contact-line a, .contact-line span.val { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.contact-line a:hover { color: var(--bronze-deep); }

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

@media (max-width: 1180px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }
}

@media (max-width: 1024px) {
  .split-head { grid-template-columns: 1fr; align-items: start; }
  .split-head p { justify-self: start; }
  .feature-split, .feature-split.reverse { grid-template-columns: 1fr; }
  .feature-split.reverse .f-text { order: 0; }
  .quote-card { position: relative; left: 0; bottom: 0; margin: -80px 20px 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 34px; }
  .num-item { grid-template-columns: 70px 1fr; }
  .num-item .n { font-size: 1.7rem; }
  .num-item p, .num-item .go { grid-column: 2; }
}

@media (max-width: 680px) {
  .topbar .topbar-right { display: none; }
  .topbar .container { justify-content: center; padding-top: 8px; padding-bottom: 8px; }
  .topbar-left { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .topbar-left a:first-child { display: none; }
  .city-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .two-col-text { columns: 1; }
  .hero { min-height: 100svh; }
  .hero-meta { gap: 22px; }
  .quote-card { margin: -60px 14px 0; padding: 30px 26px; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .stats { grid-template-columns: 1fr; }
  .num-item { grid-template-columns: 1fr; gap: 10px; }
  .num-item p, .num-item .go { grid-column: auto; }
}
