/* Посадочная ЖК «Кристалл». Палитра и шрифт строго по брендбуку,
   шампань — единственный акцент, тот же что на карточках фида. */
@font-face { font-family: Gilroy; src: url(/fonts/Gilroy-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Gilroy; src: url(/fonts/Gilroy-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Gilroy; src: url(/fonts/Gilroy-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Gilroy; src: url(/fonts/Gilroy-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Gilroy; src: url(/fonts/Gilroy-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ivory: #f5f5f5;
  --white: #fff;
  --ink: #101828;
  --graphite: #464a55;
  --muted: #677173;
  --steel: #85919d;
  --line: #e2e4e6;
  --champagne: #c9a97a;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 17px/1.6 Gilroy, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.05; }
h1 b { font-weight: 600; }
h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 28px; }
h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 620px; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 18px;
}

/* шапка */
.top {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 18px 24px; max-width: var(--maxw); margin: 0 auto;
}
.logo { display: inline-block; }
.logo img { height: 42px; width: auto; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.tel { font-weight: 600; text-decoration: none; white-space: nowrap; }

.btn {
  display: inline-block; padding: 15px 30px; border-radius: 999px; border: 1px solid var(--graphite);
  text-decoration: none; font-weight: 600; font-size: 16px; cursor: pointer; background: transparent;
  color: var(--ink); transition: background .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--graphite); color: var(--ivory); }
.btn-p { background: var(--champagne); border-color: var(--champagne); color: var(--ink); }
.btn-p:hover { background: #b8965f; border-color: #b8965f; color: var(--ink); }
.btn.wide { display: block; width: 100%; text-align: center; }

/* герой */
.hero { padding: 30px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-plan img { border-radius: 16px; }
.noplan {
  aspect-ratio: 1; display: grid; place-items: center; background: var(--white);
  border-radius: 16px; color: var(--muted);
}
.hero-info h1 { margin-bottom: 20px; }
.price { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -0.02em; }
.ppm { color: var(--muted); margin-top: 4px; }

/* цена по акции: базовая зачеркнута, новая крупно, выгода в рублях */
.pricebox { display: grid; gap: 2px; justify-items: start; }
.price-old {
  font-size: 20px; font-weight: 500; color: var(--steel);
  text-decoration: line-through; text-decoration-thickness: 1px;
}
.price-ben {
  margin-top: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--champagne); color: var(--ink);
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
}
.hero-info .btn { margin-top: 26px; }
.hero-note { color: var(--muted); font-size: 15px; margin-top: 14px; }
.hero-slim { padding-bottom: 24px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 0; }
.chips li {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  font-size: 15px; font-weight: 500; background: var(--white);
}

/* полоса фактов */
.strip { background: var(--graphite); color: var(--ivory); padding: 26px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px; }
.strip-grid span { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: .62; }
.strip-grid b { font-size: 19px; font-weight: 600; }

/* секции */
.sec { padding: 68px 0; }
.sec-dark { background: var(--ink); color: var(--ivory); }
.sec-dark .card { background: rgba(245, 245, 245, .05); border-color: rgba(245, 245, 245, .12); }
.sec-dark .card p { color: #b9c0c9; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.gal img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* квартиры */
.cnt { font-size: 18px; color: var(--steel); vertical-align: super; font-weight: 500; }
.grid-flats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.fcard {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  text-decoration: none; display: block; transition: border-color .18s, transform .18s;
}
.fcard:hover { border-color: var(--champagne); transform: translateY(-2px); }
.fcard img { aspect-ratio: 1; object-fit: cover; width: 100%; display: block; }
.fcard-i { position: relative; }
.fcard-badge {
  position: absolute; left: 10px; top: 10px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--champagne); color: var(--ink);
  font-size: 13px; font-weight: 600; line-height: 1;
}
.fcard-b { padding: 16px 18px 18px; display: grid; gap: 3px; }
.fcard-t { font-weight: 600; }
.fcard-p { font-size: 19px; font-weight: 700; }
.fcard-p s {
  font-size: 15px; font-weight: 500; color: var(--steel);
  text-decoration-thickness: 1px; margin-right: 6px;
}
.fcard-sale { border-color: var(--champagne); }
.fcard-s { font-size: 14px; color: var(--muted); }
.more { margin-top: 28px; }

/* форма */
.form-sec { background: var(--white); }
.lead-form { display: grid; gap: 14px; margin-top: 26px; }
.lead-form input[type="text"], .lead-form input:not([type]), .lead-form input[name="phone"] { width: 100%; }
.lead-form > input {
  font: inherit; padding: 15px 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--ivory); width: 100%;
}
.lead-form > input:focus { outline: 2px solid var(--champagne); outline-offset: -1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.agree input { margin-top: 3px; flex: none; }
.form-note { min-height: 22px; margin: 4px 0 0; font-size: 15px; }
.form-note.ok { color: #17803d; }
.form-note.bad { color: #b42318; }
.lead-form .fld { display: block; }
.lead-form .fld input {
  font: inherit; padding: 15px 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--ivory); width: 100%;
}
.lead-form .fld input:focus { outline: 2px solid var(--champagne); outline-offset: -1px; }
.lead-form .fld.bad input { border-color: #b42318; background: #fff5f4; }
.agree input { width: 22px; height: 22px; accent-color: var(--champagne); margin-top: 0; }
.agree.bad { color: #b42318; }
.agree.bad input { outline: 2px solid #b42318; outline-offset: 1px; border-radius: 4px; }
.lead-form.busy [data-submit] { opacity: .7; pointer-events: none; }
.lead-form.done .fld, .lead-form.done .agree, .lead-form.done [data-submit] { display: none; }
.lead-form.done .form-note { font-size: 18px; min-height: 0; margin: 0; }

/* модальное окно заявки */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(16,24,40,.6); }
.modal-box {
  position: relative; width: 100%; max-width: 440px; background: var(--white);
  border-radius: 18px; padding: 28px 24px 22px; max-height: calc(100vh - 32px); overflow: auto;
}
.modal-box h3 { font-size: 24px; margin: 0 34px 8px 0; }
.modal-box .lead { font-size: 16px; margin: 0; }
.modal-box .lead-form { margin-top: 18px; }
.modal-x {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: var(--ivory); color: var(--graphite); font-size: 26px; line-height: 1; cursor: pointer;
}
body.modal-open { overflow: hidden; }

/* подвал */
.foot { background: var(--ink); color: #9aa3ae; padding: 44px 0; font-size: 14px; }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--ivory); }
.foot-links a { text-decoration: none; border-bottom: 1px solid rgba(245,245,245,.3); }
.foot-small { margin-top: 16px; opacity: .7; font-size: 13px; }

/* юр-страницы */
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 28px; }
.legal h3 { margin-top: 26px; }
.legal p { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .sec { padding: 48px 0; }
  .top-r .btn { padding: 12px 22px; font-size: 15px; }
}

/* страница примеров креативов */
.samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; align-items: start; }
.samples figure { margin: 0; }
.samples img { border-radius: 14px; border: 1px solid var(--line); width: 100%; }
.samples figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------------------
   Промо-страницы направлений: /aktsiya и /25-etazh.
   Темный герой на фотографии, шампань как единственный акцент, дальше
   те же секции, что на остальных страницах. Отдельный файл не заводим:
   стилей немного, а лишний запрос на промо-трафике дороже. */

.phero {
  position: relative;
  color: var(--ivory);
  background: var(--ink);
  padding: 88px 0 76px;
  overflow: hidden;
}
.phero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--phero-bg);
  background-size: cover;
  background-position: center;
  opacity: .38;
}
.phero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(16, 24, 40, .94) 0%, rgba(16, 24, 40, .78) 46%, rgba(16, 24, 40, .42) 100%);
}
.phero-in { position: relative; z-index: 1; }
.phero .eyebrow { color: var(--champagne); }
.phero h1 { margin: 18px 0 0; max-width: 19ch; }
.phero h1 b { color: var(--champagne); font-weight: 600; }
.phero-lead {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: 18px;
  line-height: 1.55;
  color: #cfd5dd;
}

.pfigs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin: 40px 0 0;
  max-width: 760px;
  border-top: 1px solid rgba(245, 245, 245, .18);
  padding-top: 26px;
}
.pfigs b {
  display: block;
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ivory);
}
.pfigs span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #98a2b0;
}

.phero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn-ghost { border-color: rgba(245, 245, 245, .45); color: var(--ivory); background: transparent; }
.btn-ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* сетка квартир промо-страницы: карточка крупнее каталожной, в ней вся цифра */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.pgrid-top { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.sec-dark .pcard { border-color: rgba(245, 245, 245, .1); }
.pcard-pic { background: #eef0f2; padding: 18px; }
.pcard-pic img { width: 100%; height: 210px; object-fit: contain; }
.pcard-top .pcard-pic img { height: 250px; }
.pcard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard-eyebrow {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
}
.pcard-body h3 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.2; }
.pcard-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pcard-price s { color: var(--steel); font-size: 15px; }
.pcard-price b { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; }
.pcard-ben {
  display: inline-block;
  align-self: flex-start;
  background: rgba(201, 169, 122, .16);
  border: 1px solid rgba(201, 169, 122, .45);
  color: #8a6a33;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
}
.pcard-ben span { font-weight: 400; opacity: .8; }
.pcard-ben-calm { background: transparent; border-color: var(--line); color: var(--muted); font-weight: 400; }
.pcard-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.pcard-meta div { display: block; }
.pcard-meta dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.pcard-meta dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.pcard .btn { margin-top: auto; }

.pnote { margin-top: 26px; font-size: 14px; color: #97a0ab; max-width: 70ch; }
.sec-quote { background: var(--white); text-align: center; }
.quote {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 30px;
}
.disclaimer { background: var(--ivory); padding: 26px 0 8px; }
.disclaimer p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--steel); }

@media (max-width: 900px) {
  .phero { padding: 56px 0 52px; }
  .phero h1 { max-width: none; }
  .pfigs { margin-top: 30px; padding-top: 22px; gap: 16px; }
  .phero-cta .btn { flex: 1 1 100%; text-align: center; }
}
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 901px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
.gal-3 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

/* Панорама из окна темнее фасадного рендера: под нее ослабляем маску,
   иначе шапка 25 этажа читается просто темным прямоугольником. */
.phero-top::before { opacity: .68; }
.phero-top::after {
  background: linear-gradient(100deg, rgba(16, 24, 40, .93) 0%, rgba(16, 24, 40, .74) 42%, rgba(16, 24, 40, .22) 100%);
}

/* Блок «Что дает последний этаж»: крупная карточка на видовом фоне слева,
   три обычные подряд справа. Так вид подан картинкой, а не только текстом. */
.whygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.whycol { display: grid; grid-template-rows: repeat(3, 1fr); gap: 20px; }
.whycol .card { display: flex; flex-direction: column; justify-content: center; }

.whybig {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  background: var(--ink);
}
.whybig::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--why-bg);
  background-size: cover;
  background-position: center;
}
.whybig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 24, 40, .93) 0%, rgba(16, 24, 40, .62) 46%, rgba(16, 24, 40, .12) 100%);
}
.whybig-in { position: relative; z-index: 1; padding: 30px 30px 32px; }
.whybig-in h3 { font-size: 25px; margin-bottom: 12px; }
.whybig-in p { margin: 0; color: #cfd5dd; font-size: 16px; }

@media (max-width: 900px) {
  .whygrid { grid-template-columns: 1fr; }
  .whycol { grid-template-rows: none; }
  .whybig { min-height: 300px; }
}

/* Таблица «было / стало» по цене метра на странице акции */
.ptable-wrap { margin: 28px 0 36px; overflow-x: auto; }
.ptable {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 17px;
}
.ptable th {
  text-align: left;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 0 18px 12px 0;
  border-bottom: 1px solid var(--line);
}
.ptable td { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }
.ptable tr:last-child td { border-bottom: 0; }
.ptable s { color: var(--steel); }
.ptable b { font-weight: 600; }
.ptable td:last-child { color: var(--champagne); font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) {
  .ptable { font-size: 15px; }
  .ptable td { padding: 13px 14px 13px 0; }
}
