/* ============================================================
   Dom Alanya — дизайн-система «люкс-минимализм»
   Тёмная гамма · латунные акценты · серифная типографика
   ============================================================ */

/* ---------- Шрифты (self-hosted, OFL) ---------- */
@font-face { font-family: 'Lora'; src: url('/assets/fonts/lora-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/assets/fonts/lora-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/assets/fonts/lora-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Carlito'; src: url('/assets/fonts/carlito-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Carlito'; src: url('/assets/fonts/carlito-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Токены ---------- */
:root {
  --ink-950: #080d10;
  --ink-900: #0b1114;      /* фон страницы */
  --ink-850: #0e161b;      /* чередование секций */
  --ink-800: #121b21;      /* карточки */
  --ink-700: #1a252d;      /* ховеры карточек */
  --ivory: #f2ede1;        /* основной текст */
  --ivory-dim: #bdb7a8;    /* вторичный текст */
  --ivory-faint: #8f8a7d;  /* подписи */
  --brass: #c8a765;        /* акцент */
  --brass-bright: #e0c084; /* ховер акцента */
  --brass-dark: #8a7344;
  --lazur: #7fb2b8;        /* второй акцент (море) */
  --lazur-deep: #12333a;
  --line: rgba(200, 167, 101, .18);
  --line-soft: rgba(242, 237, 225, .08);

  --font-display: 'Lora', 'Georgia', 'Times New Roman', serif;
  --font-text: 'Carlito', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 3px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --hdr-h: 76px;
}

/* ---------- Базис ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--ivory);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--brass-bright); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: .005em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
dl, dt, dd { margin: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(200, 167, 101, .28); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

/* Доступность */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--brass); color: var(--ink-900); padding: 10px 18px;
  border-radius: var(--radius); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--radius);
  font-family: var(--font-text); font-weight: 700; font-size: 15px; letter-spacing: .04em;
  border: 1px solid transparent; transition: all .25s var(--ease); text-align: center;
}
.btn--brass { background: var(--brass); color: var(--ink-950); }
.btn--brass:hover { background: var(--brass-bright); color: var(--ink-950); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ivory); background: transparent; }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-bright); }
.btn--glass { background: rgba(242, 237, 225, .1); color: var(--ivory); backdrop-filter: blur(8px); border-color: rgba(242, 237, 225, .2); }
.btn--glass:hover { background: rgba(242, 237, 225, .18); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Ярлычки ---------- */
.eyebrow {
  font-family: var(--font-text); font-size: 12.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brass);
  margin: 0 0 14px;
}
.eyebrow--onphoto { color: var(--brass-bright); text-shadow: 0 1px 12px rgba(0,0,0,.4); }

/* ---------- Шапка ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 17, 20, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--line-soft); background: rgba(8, 13, 16, .92); }
body.has-hero .hdr { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(8,13,16,.55), transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.has-hero .hdr.is-scrolled { background: rgba(8, 13, 16, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ivory); }
.logo:hover { color: var(--ivory); }
.logo__mark { color: var(--brass); flex: none; }
.logo__text { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.logo__text i { font-style: normal; color: var(--brass); padding: 0 1px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ivory-dim); font-size: 15px; font-weight: 700; letter-spacing: .02em;
  padding: 10px 14px; border-radius: var(--radius);
}
.nav__link:hover, .nav__link.is-active { color: var(--ivory); }
.nav__link.is-active { color: var(--brass); }
.nav__caret { opacity: .6; transition: transform .25s; }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: 100%; left: 6px; min-width: 250px;
  background: var(--ink-800); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow); list-style: none; margin: 0; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s var(--ease);
}
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(4px); }
.nav__sub a { display: block; padding: 10px 14px; color: var(--ivory-dim); font-size: 14.5px; border-radius: var(--radius); }
.nav__sub a:hover { color: var(--brass-bright); background: rgba(200, 167, 101, .07); }

.hdr__actions { display: flex; align-items: center; gap: 16px; }
.hdr__phone { color: var(--ivory); font-weight: 700; font-size: 15px; white-space: nowrap; letter-spacing: .02em; }
.hdr__phone:hover { color: var(--brass-bright); }

.burger { display: none; position: relative; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ivory); transition: all .3s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { bottom: 17px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { bottom: 21px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: var(--hdr-h) 0 0; z-index: 99;
  background: var(--ink-950); overflow-y: auto;
  padding: 28px var(--gutter) 40px;
}
.mnav__list { list-style: none; margin: 0 0 28px; padding: 0; }
.mnav__link { display: block; font-family: var(--font-display); font-size: 26px; color: var(--ivory); padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.mnav__sub { list-style: none; margin: 0; padding: 8px 0 14px; }
.mnav__sub a { display: block; padding: 8px 0 8px 18px; color: var(--ivory-dim); font-size: 16px; }
.mnav__contacts { display: grid; gap: 12px; }

@media (max-width: 1080px) {
  .nav, .hdr__phone { display: none; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,13,16,.5) 0%, rgba(8,13,16,.15) 35%, rgba(11,17,20,.82) 82%, var(--ink-900) 100%),
    linear-gradient(100deg, rgba(8,13,16,.55) 0%, transparent 60%);
}
.hero__in { position: relative; width: 100%; padding-top: 140px; padding-bottom: clamp(36px, 6vh, 72px); }
.hero__title {
  font-size: clamp(38px, 6vw, 74px); font-weight: 600; max-width: 15ch;
  margin-bottom: 20px; text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero__lead { max-width: 56ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--ivory); opacity: .92; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(36px, 6vh, 64px); }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: clamp(24px, 5vw, 72px);
  border-top: 1px solid rgba(242, 237, 225, .18); padding-top: 26px; width: fit-content;
}
.hero__stat dd { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; color: var(--brass-bright); }
.hero__stat dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-dim); margin-top: 4px; }
.hero__stat { display: flex; flex-direction: column-reverse; }
@media (max-width: 640px) { .hero__stats { grid-template-columns: repeat(2, 1fr); width: 100%; } }

/* ---------- Секции ---------- */
.sec { padding-block: clamp(44px, 7vw, 84px); border-top: 1px solid var(--line-soft); }
.sec--flush { border-top: 0; padding-top: clamp(10px, 2vw, 22px); }
.sec__head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 44px); }
.sec__title { font-size: clamp(27px, 3.4vw, 42px); }
.sec__title--sm { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: .8em; }
.sec__lead { color: var(--ivory-dim); font-size: 17px; max-width: 60ch; }
.sec__more { margin-top: 34px; text-align: center; }

.phead { padding: clamp(28px, 5vw, 56px) 0 clamp(18px, 3vw, 34px); max-width: 840px; }
.phead__title { font-size: clamp(32px, 4.6vw, 56px); }
.phead__title--article { font-size: clamp(28px, 3.6vw, 42px); }
.phead__lead { font-size: clamp(16.5px, 1.7vw, 19px); color: var(--ivory-dim); max-width: 62ch; }

/* ---------- Хлебные крошки ---------- */
.crumbs { padding-top: calc(var(--hdr-h) / 4); margin-top: 10px; font-size: 13.5px; }
body:not(.has-hero) main { padding-top: 6px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; color: var(--ivory-faint); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--ivory-faint); }
.crumbs a:hover { color: var(--brass); }

/* ---------- Карточки вилл ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
@media (max-width: 1000px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .vgrid { grid-template-columns: 1fr; } }
.vgrid__empty { margin-top: 26px; color: var(--ivory-dim); text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }

.vcard { background: var(--ink-800); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.vcard:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow); }
.vcard__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.vcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vcard:hover .vcard__img { transform: scale(1.05); }
.vcard__badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(8, 13, 16, .72); backdrop-filter: blur(6px);
  color: var(--brass-bright); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 2px; border: 1px solid rgba(200,167,101,.3);
}
.vcard__video {
  position: absolute; bottom: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(8,13,16,.72); color: var(--ivory); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 2px;
}
.vcard__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vcard__loc { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--lazur); margin: 0; }
.vcard__name { font-size: 22px; margin: 0; }
.vcard__name a { color: var(--ivory); }
.vcard__name a:hover { color: var(--brass-bright); }
.vcard__name a::after { content: ''; position: absolute; inset: 0; }
.vcard { position: relative; }
.vcard__specs { color: var(--ivory-dim); font-size: 14.5px; margin: 0; }
.vcard__price { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--brass); margin: 8px 0 0; margin-top: auto; padding-top: 10px; }

/* ---------- Фильтры ---------- */
.filters {
  display: flex; flex-wrap: wrap; align-items: end; gap: 14px 18px;
  padding: 20px; margin-bottom: 30px;
  background: var(--ink-850); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.filters__group { display: flex; flex-direction: column; gap: 6px; min-width: 160px; flex: 1; }
.filters__label { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-faint); }
.filters select {
  appearance: none; background: var(--ink-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c8a765' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line-soft); border-radius: var(--radius); color: var(--ivory);
  padding: 11px 36px 11px 14px; font: inherit; font-size: 15px;
}
.filters select:hover { border-color: var(--line); }
.filters__count { flex-basis: 100%; margin: 0; color: var(--ivory-faint); font-size: 14px; }

/* ---------- Районы ---------- */
.dstrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1000px) { .dstrip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .dstrip { grid-template-columns: repeat(2, 1fr); } }
.dstrip__item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px; background: var(--ink-800); border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: border-color .25s, transform .25s var(--ease);
}
.dstrip__item:hover { border-color: var(--brass); transform: translateY(-2px); }
.dstrip__name { color: var(--ivory); font-weight: 700; font-size: 15.5px; }
.dstrip__count { color: var(--ivory-faint); font-size: 13px; }

.dgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 26px); }
@media (max-width: 760px) { .dgrid { grid-template-columns: 1fr; } }
.dcard { display: block; padding: clamp(22px, 3vw, 34px); background: var(--ink-800); border: 1px solid var(--line-soft); border-radius: var(--radius); transition: border-color .25s, transform .25s var(--ease); }
.dcard:hover { border-color: var(--brass); transform: translateY(-3px); }
.dcard__name { color: var(--ivory); font-size: 24px; margin-bottom: 8px; }
.dcard__text { color: var(--ivory-dim); font-size: 15px; margin-bottom: 14px; }
.dcard__count { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }

/* ---------- Страница виллы ---------- */
.vhead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; padding: clamp(22px, 4vw, 44px) 0 26px; }
.vhead__title { font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 6px; }
.vhead__badge { color: var(--lazur); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; font-weight: 700; margin: 0; }
.vhead__aside { text-align: right; }
.vhead__price { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 600; color: var(--brass); margin: 0; }
.vhead__note { color: var(--ivory-faint); font-size: 13px; margin: 4px 0 0; }
@media (max-width: 640px) { .vhead__aside { text-align: left; } }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: clamp(26px, 4vw, 44px); }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }
.gallery__main { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.gallery__main img, .gallery__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__main:hover img, .gallery__thumb:hover img { transform: scale(1.04); }
.gallery__count {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(8,13,16,.72); backdrop-filter: blur(6px); color: var(--ivory);
  font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 2px;
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 12px; }
.gallery__thumb { position: relative; display: block; overflow: hidden; border-radius: var(--radius); min-height: 0; }
@media (max-width: 860px) {
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; }
  .gallery__thumb { aspect-ratio: 4 / 3; }
}
.gallery__more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8,13,16,.65); color: var(--ivory); font-family: var(--font-display); font-size: 24px;
}

.vlayout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .vlayout { grid-template-columns: 1fr; } }
.vlayout__aside { position: sticky; top: calc(var(--hdr-h) + 20px); }
@media (max-width: 980px) { .vlayout__aside { position: static; } }

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 640px) { .specs { grid-template-columns: repeat(2, 1fr); } }
.specs__item { background: var(--ink-850); padding: 18px 20px; }
.specs__item dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-faint); margin-bottom: 6px; }
.specs__item dd { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ivory); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--ivory-dim); font-size: 14px; }

.lead-card { background: linear-gradient(160deg, var(--ink-800), var(--lazur-deep)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; }
.lead-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0; }
.lead-card__text { color: var(--ivory-dim); font-size: 14.5px; margin: 0 0 6px; }
.lead-card__phone { text-align: center; color: var(--ivory); font-weight: 700; font-size: 17px; }
.lead-card__agent { text-align: center; color: var(--ivory-faint); font-size: 13px; margin: 0; }

.video { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-950); }
.video__poster { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: none; }
.video__img { width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.video__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brass); color: var(--ink-950);
  transition: transform .3s var(--ease), background .3s;
}
.video__poster:hover .video__play { transform: translate(-50%, -50%) scale(1.08); background: var(--brass-bright); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plans__item { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: #fff; }

/* ---------- Контентные блоки ---------- */
.prose { max-width: 68ch; color: var(--ivory); }
.prose p { color: var(--ivory-dim); }
.prose strong { color: var(--ivory); }
.prose ul li, .prose ol li { color: var(--ivory-dim); margin-bottom: .45em; }
.prose li::marker { color: var(--brass); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose blockquote { border-left: 2px solid var(--brass); margin: 1.4em 0; padding: .3em 0 .3em 1.2em; font-family: var(--font-display); font-style: italic; font-size: 1.12em; color: var(--ivory); }
.prose--article { font-size: 17.5px; }
.prose--article > .sec { border: 0; padding: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--ink-800); border: 1px solid var(--line-soft); border-left: 2px solid var(--brass); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 30px); }
.card__title { font-size: 20px; margin-bottom: 10px; }
.card__text { color: var(--ivory-dim); font-size: 15px; margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps__item { display: flex; gap: clamp(16px, 3vw, 34px); padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.steps__item:last-child { border-bottom: 0; }
.steps__num { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); color: var(--brass); min-width: 58px; line-height: 1.1; }
.steps__title { font-size: 19px; margin-bottom: 4px; }
.steps__text { color: var(--ivory-dim); font-size: 15.5px; margin: 0; max-width: 62ch; }

.faq { max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ivory);
  transition: color .25s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brass-bright); }
.faq__icon { flex: none; color: var(--brass); transition: transform .3s var(--ease); }
details[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 2px 22px; color: var(--ivory-dim); max-width: 64ch; }
.faq__a p { margin: 0; }

.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sources a { color: var(--lazur); font-size: 15px; border-bottom: 1px solid transparent; }
.sources a:hover { color: var(--brass-bright); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 720px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ivory-dim); }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border: 1px solid var(--brass); border-radius: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 6l3 3 5-6' fill='none' stroke='%23c8a765' stroke-width='1.6'/%3E%3C/svg%3E") center no-repeat;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.figure { margin: 1.6em 0; }
.figure img { border-radius: var(--radius); }
.figure figcaption { color: var(--ivory-faint); font-size: 13.5px; margin-top: 10px; }

/* ---------- CTA ---------- */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(120deg, var(--lazur-deep), var(--ink-800) 65%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 48px);
}
.cta__title { font-size: clamp(22px, 2.8vw, 32px); margin-bottom: 8px; }
.cta__text { color: var(--ivory-dim); max-width: 54ch; margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.contacts-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 820px) { .contacts-panel { grid-template-columns: 1fr; } }
.contacts-panel__item { background: var(--ink-850); padding: 26px; }
.contacts-panel__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-faint); margin: 0 0 8px; }
.contacts-panel__value { font-family: var(--font-display); font-size: 19px; color: var(--ivory); word-break: break-word; }
.contacts-panel__value:hover { color: var(--brass-bright); }
.contacts-panel__row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Новости ---------- */
.ngrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 26px); }
@media (max-width: 760px) { .ngrid { grid-template-columns: 1fr; } }
.ncard { position: relative; background: var(--ink-800); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, transform .25s var(--ease); }
.ncard:hover { border-color: var(--brass); transform: translateY(-3px); }
.ncard__meta { color: var(--ivory-faint); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.ncard__title { font-size: 22px; margin: 0; }
.ncard__title a { color: var(--ivory); }
.ncard__title a::after { content: ''; position: absolute; inset: 0; }
.ncard__excerpt { color: var(--ivory-dim); font-size: 15px; margin: 0; flex: 1; }
.ncard__more { color: var(--brass); font-size: 14px; font-weight: 700; letter-spacing: .04em; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(60px, 12vh, 140px) 0; }
.notfound__code { font-family: var(--font-display); font-size: clamp(90px, 16vw, 180px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--brass); margin: 0 0 10px; }
.notfound__title { font-size: clamp(26px, 3.4vw, 40px); }
.notfound__text { color: var(--ivory-dim); max-width: 46ch; margin-inline: auto; }
.notfound__actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.ftr { border-top: 1px solid var(--line-soft); background: var(--ink-950); margin-top: clamp(40px, 7vw, 80px); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(40px, 6vw, 70px) 0 40px; }
@media (max-width: 980px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr__desc { color: var(--ivory-faint); font-size: 14.5px; margin: 18px 0; max-width: 40ch; }
.ftr__social { display: flex; gap: 16px; font-size: 14px; }
.ftr__title { font-family: var(--font-text); font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-faint); margin-bottom: 16px; }
.ftr__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr__col a { color: var(--ivory-dim); font-size: 15px; }
.ftr__col a:hover { color: var(--brass-bright); }
.ftr__contacts { margin-bottom: 18px !important; }
.ftr__addr { color: var(--ivory-faint); font-size: 14px; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0 30px; border-top: 1px solid var(--line-soft); color: var(--ivory-faint); font-size: 13px; }
.ftr__legal p { margin: 0; }
.ftr__legal a { color: var(--ivory-faint); }
.ftr__legal a:hover { color: var(--brass); }

/* ---------- Плавающая кнопка ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brass); color: var(--ink-950);
  box-shadow: 0 12px 30px -8px rgba(200, 167, 101, .5);
  transition: transform .3s var(--ease), background .3s;
}
.fab:hover { transform: translateY(-3px) scale(1.05); background: var(--brass-bright); color: var(--ink-950); }

/* ---------- Лайтбокс ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(5, 8, 10, .96); display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; color: var(--ivory-dim); font-size: 14px; }
.lb__close { background: none; border: 1px solid var(--line); border-radius: 50%; width: 44px; height: 44px; color: var(--ivory); font-size: 20px; line-height: 1; }
.lb__close:hover { border-color: var(--brass); color: var(--brass-bright); }
.lb__stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 70px 30px; min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(8,13,16,.6); color: var(--ivory); font-size: 22px;
}
.lb__nav:hover { border-color: var(--brass); color: var(--brass-bright); }
.lb__prev { left: 16px; }
.lb__next { right: 16px; }
@media (max-width: 640px) { .lb__stage { padding: 0 10px 20px; } .lb__nav { display: none; } }

/* ---------- Появление при скролле ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
