/* ═══════════════════════════════════════════
   MaterMax — стили каркаса главной
   Палитра/типографика — по design-direction.md
   ═══════════════════════════════════════════ */

:root {
  --bg:        #0F0E0C;   /* тёплый чёрный */
  --surface:   #17150F;   /* секции/поверхности */
  --surface-2: #1F1C15;
  --gold:      #C2A14E;
  --gold-hi:   #D9BC6E;
  --gold-line: rgba(194,161,78,.35);
  --text:      #F1ECE3;   /* тёплый off-white */
  --text-2:    #A8A294;   /* вторичный */
  --border:    rgba(255,255,255,.08);

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --r: 4px;

  --serif: "Playfair Display", "PT Serif", Georgia, serif; /* PT Serif — только ради Ә/Ғ: у Playfair Display нет cyrillic-ext.
     Высота прописных совпадает с Playfair Display в ноль (71/71 при кегле 100px),
     поэтому подмена в слове не видна. Стоит вторым — на страницах без казахских
     букв браузер его не качает вовсе. Подробности: TODO-next.md, вопрос 9. */
  --sans: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ─── Типографика ─── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: .2px; }

.eyebrow {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 16px;
}
.muted { color: var(--text-2); font-weight: 400; }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section__head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__title { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.section__intro { color: var(--text-2); margin-top: 18px; font-size: 1.05rem; }

/* ─── Кнопки ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: var(--r); font-weight: 600; font-size: .98rem;
  letter-spacing: .02em; cursor: pointer; border: 1px solid transparent;
  transition: all .25s ease; white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #100E09; }
.btn--gold:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn--ghost { border-color: var(--gold-line); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ═══════════════ HEADER ═══════════════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,14,12,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 32px; height: 76px; }

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__img { height: 48px; width: auto; display: block; }
.logo__mark { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; }
.logo__accent { color: var(--gold); }
.logo__sub { font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--text-2); margin-top: 5px; }

.nav { display: flex; gap: 30px; margin-left: auto; font-size: .96rem; }
.nav a { color: var(--text-2); }
.nav a:hover { color: var(--text); }

.header__cta { display: flex; align-items: center; gap: 18px; }
/* Телефоны в шапке — выпадающий список «Телефоны ▾» (hover + клик) */
.phones { position: relative; }
.phones__btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--text); background: none; border: 0; cursor: pointer; padding: 6px 2px; white-space: nowrap; }
.phones__btn:hover, .phones__btn:focus-visible { color: var(--gold-hi); }
.phones__chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.phones.is-open .phones__chev { transform: rotate(-135deg) translateY(1px); }
.phones__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; display: flex; flex-direction: column; min-width: 210px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.phones__menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.phones:hover .phones__menu, .phones.is-open .phones__menu { opacity: 1; visibility: visible; transform: none; }
.phones__item { display: block; padding: 9px 12px; border-radius: 7px; font-weight: 600; font-size: .95rem; color: var(--text); white-space: nowrap; }
.phones__item:hover { background: rgba(194, 161, 78, .12); color: var(--gold-hi); }
/* Блок телефонов в мобильном бургер-меню (скрыт на десктопе) */
.nav__cta { display: none; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--text); transition: .25s; }

/* ═══════════════ HERO ═══════════════ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero .ph--hero { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; place-items: end; }
.hero .ph--hero .ph__label { align-self: end; justify-self: end; opacity: .5; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,14,12,.92) 0%, rgba(15,14,12,.72) 42%, rgba(15,14,12,.25) 100%),
              linear-gradient(0deg, rgba(15,14,12,.85) 0%, rgba(15,14,12,0) 45%);
}
.hero__content { position: relative; z-index: 2; max-width: 720px; padding-block: 60px; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; }
.hero__line { font-family: var(--serif); font-style: italic; color: var(--gold-hi); font-size: clamp(1.1rem, 2.4vw, 1.6rem); margin-top: 14px; }
.hero__lead { color: var(--text); opacity: .92; font-size: 1.12rem; max-width: 560px; margin-top: 24px; }
.hero__lead-link { color: var(--gold-hi); text-decoration: none; border-bottom: 1px solid rgba(217, 188, 110, .45); transition: color .2s, border-color .2s; }
.hero__lead-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero__geo { color: var(--text-2); font-size: .92rem; margin-top: 28px; letter-spacing: .02em; }

/* ═══════════════ TRUST-БАР ═══════════════ */
.trust { background: var(--surface); border-block: 1px solid var(--border); padding-block: 40px; }
.trust__caption { text-align: center; color: var(--text-2); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 26px; }
/* лого партнёров в светлых карточках (как на сайте Weiss): grayscale → свой цвет на hover */
.trust__logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; max-width: 1000px; margin: 0 auto; }
.trust__logo { height: 84px; display: flex; align-items: center; justify-content: center; background: #fcfdfe; border: 1px solid rgba(255,255,255,.10); border-radius: 12px; padding: 14px 18px; transition: box-shadow .2s, transform .2s; }
.trust__logo img { max-height: 46px; max-width: 132px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s; }
.trust__logo:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(0,0,0,.6); }
.trust__logo:hover img { filter: grayscale(0); opacity: 1; }
/* золотой Saba после grayscale выходит слишком светлым — притемняем только в серой фазе */
.trust__logo img[src*="saba-group"] { filter: grayscale(1) brightness(.5); opacity: .72; }
.trust__logo:hover img[src*="saba-group"] { filter: none; opacity: 1; }

/* ═══════════════ ОБЪЕКТЫ ═══════════════ */
.objects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.object { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: border-color .3s; display: block; color: inherit; text-decoration: none; }
.object:hover { border-color: var(--gold-line); }
.object__more { display: inline-block; margin-top: 14px; color: var(--gold); font-weight: 600; font-size: .95rem; }
a.object:hover .object__more { color: var(--gold-hover); }
.obj-spec { max-width: 520px; margin: 0 0 22px; }
.obj-body { color: var(--text-2); max-width: 760px; }
.object--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; }
.object__body { padding: 28px 30px; align-self: center; }
.object__body h3 { font-size: 1.5rem; margin: 14px 0 10px; }
.object__body p { color: var(--text-2); }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); padding: 5px 12px; border-radius: 100px; }

/* ═══════════════ ВИДЫ КАМНЯ ═══════════════ */
.stone__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stone-card { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); transition: .3s; }
.stone-card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.stone-card__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: flex-end;
  background: linear-gradient(0deg, rgba(15,14,12,.9), rgba(15,14,12,0));
}
.stone-card__cap h3 { font-size: 1.4rem; }
.stone-card__cap span { color: var(--gold); font-size: .85rem; font-weight: 600; opacity: 0; transform: translateX(-6px); transition: .3s; font-family: var(--sans); }
.stone-card:hover .stone-card__cap span { opacity: 1; transform: translateX(0); }
.stone-card--feature { box-shadow: 0 0 0 1px var(--gold-line), 0 20px 50px -25px rgba(194,161,78,.5); }
.stone-card__link { display: block; color: inherit; }

/* ═══════════ Слэб ⇄ объект: переключатель в углу ═══════════ */
.slabswap { position: relative; display: block; }
.slabswap .sc-obj {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .55s ease; z-index: 1;
}
.is-swapped .sc-obj { opacity: 1; }
.slabswap__corner {
  position: absolute; right: 12px; bottom: 12px; z-index: 4;
  width: 84px; height: 100px; padding: 0; margin: 0;
  border: 2px solid var(--gold); border-radius: 12px; overflow: hidden;
  background: var(--bg); cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.slabswap__corner:hover { transform: scale(1.05); box-shadow: 0 8px 22px rgba(0,0,0,.55); }
.slabswap__corner:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.slabswap__corner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slabswap__corner .cc-slab { opacity: 0; transition: opacity .55s ease; }
.is-swapped .cc-obj { opacity: 0; }
.is-swapped .cc-slab { opacity: 1; }
.corner-badge {
  position: absolute; top: 5px; right: 5px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(15,14,12,.78); color: var(--gold-hi);
  display: grid; place-items: center; font-size: 13px; line-height: 1;
}
.corner-hint {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 12px 9px; text-align: center;
  font-family: var(--sans); font-size: .62rem; letter-spacing: .04em;
  color: var(--text); text-transform: uppercase;
  background: linear-gradient(0deg, rgba(15,14,12,.72), rgba(15,14,12,0));
  transition: opacity .3s;
}
.is-swapped .corner-hint { opacity: 0; }
/* на карточке-оверлее главной уголок поднимаем над подписью */
.stone-card > .slabswap__corner { bottom: 74px; right: 14px; }
@media (prefers-reduced-motion: reduce) {
  .slabswap .sc-obj, .slabswap__corner .cc-slab, .corner-hint { transition: none; }
}

/* ═══════════════ ПОЛНЫЙ ЦИКЛ ═══════════════ */
.cycle { background: var(--surface); }
.cycle__steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.cycle__steps li { padding: 28px 24px 28px 0; border-top: 1px solid var(--gold-line); position: relative; }
.cycle__num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); letter-spacing: .1em; }
.cycle__steps h3 { font-size: 1.22rem; margin: 14px 0 10px; }
.cycle__steps p { color: var(--text-2); font-size: .95rem; }

/* ═══════════════ ПОЧЕМУ БЕЗОПАСНО ═══════════════ */
.safe__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.safe-card { padding: 36px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); border-top: 2px solid var(--gold); }
.safe-card h3 { font-size: 1.32rem; margin-bottom: 14px; }
.safe-card p { color: var(--text-2); }

/* ═══════════════ ГЕОГРАФИЯ ═══════════════ */
.origins { background: var(--surface); }
.origins__list { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 18px; }
.origins__list li {
  font-family: var(--serif); font-size: clamp(1.3rem, 3.5vw, 2.2rem); color: var(--text);
  padding: 10px 26px; border: 1px solid var(--border); border-radius: 100px; transition: .3s;
}
.origins__list li:hover { border-color: var(--gold); color: var(--gold-hi); }
.origins__list li.origins__home { border-color: var(--gold); color: var(--gold-hi); }
.origins__note { margin-top: 24px; max-width: 640px; color: var(--text-2); font-size: .95rem; }
.origins__more { display: inline-block; margin-top: 18px; color: var(--gold-hi); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(217, 188, 110, .45); transition: color .2s, border-color .2s; }
.origins__more:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ═══════════════ О КОМПАНИИ ═══════════════ */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about__text p { color: var(--text-2); margin-top: 18px; }
.about__stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 36px; }
.about__stats strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--gold); }
.about__stats span { color: var(--text-2); font-size: .9rem; }

/* ═══════════════ ФОРМА ЗАЯВКИ ═══════════════ */
.lead { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.lead__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.lead__text p { color: var(--text-2); margin-top: 18px; }
.lead__contacts { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.phone-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phone-row .chip { min-width: 176px; text-align: center; flex: 0 0 auto; }
.chip { padding: 11px 20px; border: 1px solid var(--border); border-radius: 100px; font-weight: 600; font-size: .92rem; transition: .25s; }
.chip:hover { border-color: var(--gold); color: var(--gold-hi); }
.chip--wa { border-color: rgba(37,211,102,.4); }
.chip--tg { border-color: rgba(42,171,238,.4); }

.lead__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: var(--text-2); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 13px 15px; border-radius: var(--r); font-family: inherit; font-size: .98rem; transition: border-color .25s;
}
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A8A294' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; }
.lead__form .btn { grid-column: 1 / -1; }
.lead__reassure { grid-column: 1 / -1; font-size: .95rem; color: var(--text); margin-top: 2px; }
.lead__note { grid-column: 1 / -1; font-size: .82rem; color: var(--text-2); }
.lead__ok { grid-column: 1 / -1; color: var(--gold-hi); font-weight: 600; }
/* honeypot: скрытое поле-ловушка для ботов; человек его не видит и не заполняет */
.lead__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ═══════════════ FOOTER ═══════════════ */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.footer__brand p { color: var(--text-2); margin-top: 16px; font-size: .94rem; max-width: 320px; }
.footer__col h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 700; }
.footer__col a, .footer__col p { display: block; color: var(--text-2); margin-bottom: 10px; font-size: .95rem; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-2); }

/* ═══════════════ ПЛАВАЮЩИЕ КНОПКИ ═══════════════ */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.fab__btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #0F0E0C; box-shadow: 0 8px 24px -6px rgba(0,0,0,.6); transition: transform .2s; }
.fab__btn:hover { transform: scale(1.08); }
.fab__btn--wa { background: #25D366; }
.fab__btn--tg { background: #2AABEE; color: #fff; }
.fab__btn svg { width: 26px; height: 26px; fill: #fff; display: block; }

/* ═══════════════ ЛАЙТБОКС (увеличение фото) ═══════════════ */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,9,7,.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox__close { position: absolute; top: 16px; right: 20px; width: 46px; height: 46px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; border-radius: 50%; cursor: pointer; z-index: 2; }
.lightbox__close:hover { background: var(--gold); color: #100E09; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 34px; line-height: 1; border-radius: 50%; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; padding-bottom: 4px; }
.lightbox__nav:hover { background: var(--gold); color: #100E09; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--text-2); font-size: .8rem; letter-spacing: .1em; background: rgba(10,9,7,.6); padding: 5px 12px; border-radius: 100px; }
.lightbox__count[hidden] { display: none; }
@media (max-width: 620px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 28px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* ═══════════════ РЕАЛЬНЫЕ ФОТО (object-fit) ═══════════════ */
.hero__img, .page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.media-4x3 { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.media-3x4 { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.object--feature .media-4x3 { height: 100%; aspect-ratio: auto; min-height: 100%; }

/* ═══════════════ ЗАГЛУШКИ ФОТО ═══════════════ */
.ph {
  position: relative; display: grid; place-items: center; border-radius: var(--r);
  border: 1px solid var(--border); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 2px, transparent 2px 9px),
    radial-gradient(120% 90% at 30% 20%, #25221A 0%, #1A1813 45%, #110F0B 100%);
}
.ph::after { /* тонкий золотой блик «как полировка камня» */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(194,161,78,.10) 50%, transparent 62%);
}
.ph__label {
  position: relative; z-index: 1; color: var(--text-2); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 12px 18px;
}
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--3x4 { aspect-ratio: 3 / 4; }
.ph--onyx { background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 2px, transparent 2px 9px),
    radial-gradient(120% 90% at 50% 30%, #3A3320 0%, #2A2516 45%, #14110B 100%); }

/* ═══════════════ ВНУТРЕННИЕ СТРАНИЦЫ ═══════════════ */
/* Компактный hero */
.page-hero { position: relative; min-height: 46vh; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero .ph { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; place-items: end; }
.page-hero .ph__label { align-self: end; justify-self: end; opacity: .5; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,14,12,.94) 0%, rgba(15,14,12,.4) 70%, rgba(15,14,12,.55) 100%); }
.page-hero__content { position: relative; z-index: 2; padding-block: clamp(40px, 6vw, 72px); max-width: 720px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.page-hero__lead { color: var(--text-2); max-width: 620px; margin-top: 16px; font-size: 1.06rem; }

/* Коллекция камня (каталог) */
.collection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.col-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: .3s; }
.col-card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.col-card--feature { box-shadow: 0 0 0 1px var(--gold-line), 0 20px 50px -28px rgba(194,161,78,.45); }
.col-card__body { padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.col-card__body h3 { font-size: 1.5rem; }
.col-card__body p { color: var(--text-2); font-size: .96rem; }
.col-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.col-card__tags span { font-size: .74rem; color: var(--text-2); border: 1px solid var(--border); padding: 4px 11px; border-radius: 100px; }
.col-card__spec { margin: 2px 0 4px; display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; }
.col-card__spec dt { color: var(--gold); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.col-card__spec dd { margin: 0; color: var(--text-2); font-size: .86rem; line-height: 1.45; }
.col-card__link { color: var(--gold); font-weight: 600; font-size: .92rem; margin-top: auto; }
.col-card:hover .col-card__link { color: var(--gold-hi); }

/* Применения */
.apps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.apps li { padding: 24px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); text-align: center; font-family: var(--serif); font-size: 1.12rem; transition: .25s; }
.apps li:hover { border-color: var(--gold-line); color: var(--gold-hi); transform: translateY(-2px); }
.apps a { color: inherit; text-decoration: none; display: block; }

/* Контакты */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 5vw, 56px); align-items: start; }
.contacts__list dt { color: var(--gold); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.contacts__list dd { margin: 0 0 24px; font-size: 1.08rem; }
.contacts__list dd a:hover { color: var(--gold-hi); }
.map-ph { aspect-ratio: 16 / 10; }
.map-embed { width: 100%; aspect-ratio: 16 / 11; border: 1px solid var(--border); border-radius: var(--r); display: block; }
/* иконки мессенджеров/соцсетей */
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.social-ic { width: 46px; height: 46px; border: 1px solid var(--gold-line); border-radius: 50%; display: grid; place-items: center; color: var(--gold); transition: background .2s, color .2s, transform .2s; }
.social-ic:hover { background: var(--gold); color: #100E09; transform: translateY(-2px); }
.social-ic svg { width: 22px; height: 22px; fill: currentColor; }

/* ═══════════════ HERO-КРОССФЕЙД ═══════════════ */
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slides .hero__img { opacity: 0; transition: opacity 1.4s ease; }
.hero__slides .hero__img.is-active { opacity: 1; }

/* ═══════════════ ГАЛЕРЕЯ-ФИЛЬТР ═══════════════ */
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--sans); font-size: .9rem; color: var(--text-2); background: transparent; border: 1px solid var(--border); border-radius: 100px; padding: 9px 18px; cursor: pointer; transition: .2s; }
.chip:hover { color: var(--text); border-color: var(--gold-line); }
.chip.is-active { color: #100E09; background: var(--gold); border-color: var(--gold); }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; cursor: pointer; transition: transform .3s, border-color .3s; }
.work img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.work:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.work:hover img { transform: scale(1.05); }
.work figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 16px 13px; display: flex; flex-direction: column; gap: 3px; background: linear-gradient(0deg, rgba(15,14,12,.92), rgba(15,14,12,0)); pointer-events: none; }
.work__dir { font-family: var(--serif); font-size: 1.08rem; color: var(--text); }
.work__stone { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.work.is-hidden { display: none; }
.work__id { position: absolute; top: 8px; left: 8px; z-index: 3; background: rgba(15,14,12,.85); color: var(--gold); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; }
.works-empty { text-align: center; color: var(--text-2); padding: 48px 0; font-size: 1.05rem; }
.works-empty a { color: var(--gold); }
.works-cta { text-align: center; margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.works-cta__text { color: var(--text-2); font-family: var(--serif); font-size: 1.4rem; }

/* ═══════════════ АНИМАЦИЯ ПОЯВЛЕНИЯ ═══════════════ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════ АДАПТИВ ═══════════════ */
@media (max-width: 980px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 22px; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 28px var(--pad);
  }
  .nav.is-open a { color: var(--text); font-size: 1.1rem; }
  .nav.is-open .nav__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--border); }
  .nav.is-open .nav__phone { color: var(--gold-hi); font-weight: 600; font-size: 1.2rem; }
  .object--feature { grid-template-columns: 1fr; }
  .stone__grid { grid-template-columns: repeat(2, 1fr); }
  .cycle__steps { grid-template-columns: repeat(2, 1fr); }
  .cycle__steps li { border-top: 1px solid var(--gold-line); }
  .safe__grid { grid-template-columns: 1fr; }
  .about__inner, .lead__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .collection { grid-template-columns: repeat(2, 1fr); }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid { grid-template-columns: 1fr; }
  .trust__logos { grid-template-columns: repeat(3, 1fr); max-width: 560px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .objects__grid { grid-template-columns: 1fr; }
  .stone__grid { grid-template-columns: 1fr 1fr; }
  .lead__form { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .hero { min-height: 88vh; }
  .collection { grid-template-columns: 1fr; }
  .trust__logos { grid-template-columns: repeat(2, 1fr); }
}


/* ─── География поставок: лента флагов ─── */
.origins__flags {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px 34px;
  max-width: 920px;
}
.origins__flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2);
  transition: color .25s ease;
}
.origins__flag img {
  width: 46px;
  height: 35px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  filter: grayscale(1);
  opacity: .5;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.origins__flag:hover { color: var(--text); }
.origins__flag:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
}
/* Казахстан — местные карьеры, выделен золотом и всегда в цвете */
.origins__flag--home { color: var(--gold-hi); font-weight: 600; }
.origins__flag--home img {
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 2px var(--gold), 0 2px 8px rgba(0, 0, 0, .5);
}
/* Африка — континент, не флаг: силуэт-иконка через mask, красим в золото.
   Ведёт себя как флаги: приглушена по умолчанию, при наведении наливается цветом. */
.origins__flag--africa .africa-ico {
  display: block;
  width: 42px;
  height: 35px;
  background: var(--text-2);
  -webkit-mask: url(assets/img/flags/africa.svg) center / contain no-repeat;
  mask: url(assets/img/flags/africa.svg) center / contain no-repeat;
  opacity: .55;
  transition: background .3s ease, opacity .3s ease, transform .3s ease;
}
.origins__flag--africa:hover .africa-ico {
  background: var(--gold);
  opacity: 1;
  transform: translateY(-3px);
}
@media (hover: none) {
  .origins__flag--africa .africa-ico { background: var(--gold); opacity: 1; }
}
/* На телефоне наведения нет — флаги сразу в цвете */
@media (hover: none) {
  .origins__flag img { filter: none; opacity: 1; }
  .origins__flag { color: var(--text); }
}

/* ═══════════════════════════════════════════
   Служебные страницы: политика, спасибо, 404
   ═══════════════════════════════════════════ */

/* ─── Ссылка на политику в подвале ─── */
.footer__legal { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-line); }
.footer__legal:hover { color: var(--gold-hi); }

/* ─── Правовая страница ─── */
.legal__inner { max-width: 780px; }
.legal__title { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 12px; }
.legal__meta { color: var(--text-2); font-size: .92rem; padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.legal h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); color: var(--gold-hi); margin-top: 40px; margin-bottom: 14px; }
.legal p { color: var(--text-2); margin-bottom: 14px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul { color: var(--text-2); margin: 0 0 18px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold); }
.legal__back { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.legal__back .btn { text-decoration: none; }

/* ─── Страница благодарности ─── */
.ty { padding-bottom: 0; }
.ty__inner { max-width: 720px; }
.ty__mark { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-line); background: rgba(194,161,78,.08); color: var(--gold-hi); margin-bottom: 26px; }
.ty__mark svg { width: 28px; height: 28px; }
.ty__title { font-size: clamp(2rem, 5vw, 3.2rem); }
.ty__lead { color: var(--text-2); margin-top: 18px; font-size: 1.08rem; }
.ty__lead strong { color: var(--text); }

.ty-steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ty-step { border: 1px solid var(--border); border-radius: var(--r); padding: 30px 26px; background: var(--surface); }
.ty-step__num { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: 14px; }
.ty-step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.ty-step p { color: var(--text-2); font-size: .95rem; }

.ty-now { background: var(--surface); border-block: 1px solid var(--border); }
.ty-now__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.ty-now__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ty-works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ty-work { position: relative; display: block; overflow: hidden; border-radius: var(--r); border: 1px solid var(--border); }
.ty-work img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .5s ease; }
.ty-work:hover img { transform: scale(1.04); }
.ty-work__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px; font-size: .95rem; font-weight: 600;
  background: linear-gradient(0deg, rgba(15,14,12,.9), transparent); }
.ty-works__more { margin-top: 32px; }
.ty-social__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }

/* ─── 404 ─── */
.e404-links__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; }
.e404-card { display: block; border: 1px solid var(--border); border-radius: var(--r); padding: 28px 26px; background: var(--surface); transition: border-color .25s ease, transform .25s ease; }
.e404-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.e404-card h3 { font-size: 1.2rem; color: var(--gold-hi); margin-bottom: 8px; }
.e404-card p { color: var(--text-2); font-size: .95rem; }
.e404-links__home { margin-top: 32px; }

@media (max-width: 900px) {
  .ty-steps__grid, .ty-works__grid { grid-template-columns: 1fr; }
  .ty-now__inner, .ty-social__inner { grid-template-columns: 1fr; }
  .e404-links__grid { grid-template-columns: 1fr; }
}

/* Ссылка на политику в примечании под формой */
.lead__note a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--gold-line); }
.lead__note a:hover { color: var(--gold-hi); }

/* ═══════════ ГИБКИЙ КАМЕНЬ (gibkiy-kamen.html) ═══════════ */
.section__head--left { max-width: none; }

/* Липкая под-навигация по разделам каталога */
.flex-catnav { position: sticky; top: 76px; z-index: 40; background: rgba(15,14,12,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.flex-catnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 0; margin: 0; }
.flex-catnav a { font-family: var(--sans); font-size: .86rem; color: var(--text-2); text-decoration: none; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; transition: .2s; }
.flex-catnav a:hover { color: var(--text); border-color: var(--gold-line); }

/* USP-фичи */
.flex-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.flex-feat { margin: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.flex-feat img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.flex-feat figcaption { padding: 18px 18px 22px; display: block; }
.flex-feat figcaption b { display: block; font-family: var(--serif); font-size: 1.14rem; color: var(--gold-hi); margin-bottom: 6px; }
.flex-feat figcaption span { color: var(--text-2); font-size: .92rem; line-height: 1.5; }

/* Разделы каталога */
.flex-cat { padding-top: clamp(40px, 5vw, 60px); }
.flex-cat .section__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* Палитра */
.flex-colors { display: flex; flex-wrap: wrap; gap: 12px; }
.flex-color { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: .9rem; color: var(--text-2); background: var(--bg); }
.flex-color__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); flex: none; }

@media (max-width: 900px) {
  .flex-feats { grid-template-columns: repeat(2, 1fr); }
  .flex-catnav { top: 68px; }
}
@media (max-width: 560px) {
  .flex-feats { grid-template-columns: 1fr; }
}

/* Кросс-ссылка каталог → гибкий камень */
.xlink { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid var(--gold-line); border-radius: var(--r); padding: 26px 30px; background: var(--surface);
  text-decoration: none; transition: border-color .25s ease, transform .25s ease; }
.xlink:hover { border-color: var(--gold); transform: translateY(-2px); }
.xlink__t { font-family: var(--serif); font-size: 1.22rem; color: var(--text); }
.xlink__t b { color: var(--gold-hi); font-weight: 600; }
.xlink__s { color: var(--text-2); font-size: .95rem; margin-top: 4px; }
.xlink__go { color: var(--gold-hi); font-family: var(--sans); font-weight: 600; white-space: nowrap; }

/* Фикс адаптива: длинный <option> в <select> не должен распирать грид формы на узких экранах */
.lead__inner > *, .lead__form > *, .field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }

/* ── Облегчённый герой на мобильном ── */
.hero__lead--m { display: none; }               /* по умолчанию (десктоп) скрыт */
@media (max-width: 640px) {
  .hero__title { font-size: clamp(2rem, 8.6vw, 2.5rem); line-height: 1.08; }
  .hero__content { padding-block: 40px; }
  .hero__line { display: none; }                 /* дубль-подзаголовок прячем */
  .hero__lead:not(.hero__lead--m) { display: none; } /* длинный абзац прячем */
  .hero__lead--m { display: block; margin-top: 16px; font-size: 1.05rem; }
  .hero__actions { margin-top: 24px; }
  .hero__geo { margin-top: 20px; }
}
