/* Лендинг «Квартиры в Челябинске для командировочных» — макет.
   Палитра и характер по мотивам образца (кремовый фон, тёмно-синий акцент, белые карточки, кнопки-«таблетки»).
   Код написан с нуля. Шрифт Jost (SIL OFL 1.1, файлы в fonts/, см. fonts/OFL.txt), иконки Lucide (ISC). */

/* Jost — переменная насыщенность 100–900, файлы локально, без Google Fonts */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/jost-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/jost-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/jost-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --cream: #fdf3dc;
  --cream-2: #f8e9c6;
  --navy: #15335f;
  --navy-2: #0e2647;
  --navy-soft: #e6ebf3;
  --ink: #1d2230;
  --muted: #5d6474;
  --line: #e7dcc2;
  --white: #ffffff;
  --accent: #2b6fd6;
  --ok: #17a673;
  --warn-bg: #fff1c2;
  --warn-ink: #7a5600;
  --radius: 18px;
  --pill: 999px;
  --shadow: 0 10px 30px rgba(21, 51, 95, .08);
  --shadow-lg: 0 20px 50px rgba(14, 38, 71, .18);
  --wrap: 1180px;
  --font: "Jost", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #fff; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section__head p { color: var(--muted); font-size: 18px; }
.section--navy .section__head p { color: rgba(255, 255, 255, .75); }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Заглушки и гипотезы */
.tbd {
  display: inline-block;
  padding: 0 .4em;
  border-radius: 6px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-weight: 500;
  font-size: .92em;
}
.hyp {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--pill);
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--pill);
  background: var(--navy);
  color: #fff;
  font: 600 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(21, 51, 95, .25); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--cream); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 243, 220, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; color: var(--navy); }
.logo__mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
}
.logo small { display: block; white-space: nowrap; font-weight: 400; font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); }
.nav a:hover { color: var(--accent); }
.header__phone { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; font-weight: 600; color: var(--navy); white-space: nowrap; }
.header__phone small { font-weight: 400; font-size: 12px; color: var(--muted); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--navy); color: #fff; cursor: pointer; place-items: center; }

/* Первый экран */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(14, 38, 71, .92) 0%, rgba(14, 38, 71, .78) 45%, rgba(14, 38, 71, .45) 100%),
    var(--hero-photo, linear-gradient(135deg, #8d9bb0, #c9c1b0 55%, #e9dfc8));
  background-size: cover;
  background-position: center;
}
.hero__photo-note {
  position: absolute; right: 16px; bottom: 14px;
  font-size: 12px; color: rgba(255, 255, 255, .7);
}
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 72px 24px 88px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; margin-bottom: 22px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .14);
  font-size: 15px; font-weight: 500;
}
.hero h1 { margin-bottom: 20px; }
.hero__lead { font-size: 20px; color: rgba(255, 255, 255, .85); max-width: 580px; margin-bottom: 28px; }
.hero__list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.hero__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.hero__list .ico { color: #7fe0b6; margin-top: 2px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__call { color: #fff; text-decoration: none; display: flex; gap: 10px; align-items: center; font-weight: 600; }

/* Карточка формы */
.form-card {
  background: #fff; color: var(--ink);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.form-card h2 { font-size: 26px; margin-bottom: 6px; }
.form-card__sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid #dcd3bf;
  border-radius: 14px;
  background: #fffdf8;
  font: 400 16px/1.3 var(--font);
  color: var(--ink);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(21, 51, 95, .12); }
.field.is-error input { border-color: #d14343; }
.field__err { display: none; font-size: 13px; color: #c23030; }
.field.is-error .field__err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.check.is-error { color: #c23030; }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-block; padding: 9px 16px;
  border: 1.5px solid #dcd3bf; border-radius: var(--pill);
  font-size: 15px; cursor: pointer; background: #fffdf8;
}
.segmented input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
.form__done { display: none; text-align: center; padding: 24px 8px; }
.form__done .ico { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 12px; }
.form.is-sent { display: none; }
.form.is-sent + .form__done { display: block; }

/* Ряд фактов под первым экраном */
.facts { margin-top: -44px; position: relative; z-index: 2; }
.facts__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.fact { padding: 24px 26px; display: flex; gap: 14px; align-items: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact .ico { width: 34px; height: 34px; color: var(--navy); }
.fact b { display: block; font-size: 17px; }
.fact span { font-size: 14px; color: var(--muted); }

/* Квартира или гостиница */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare__col { border-radius: var(--radius); padding: 32px; background: #fff; box-shadow: var(--shadow); }
.compare__col--main { background: var(--navy); color: #fff; }
.compare__col h3 { display: flex; gap: 12px; align-items: center; font-size: 24px; }
.compare__col ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.compare__col li { display: flex; gap: 12px; align-items: flex-start; }
.compare__col--main li .ico { color: #7fe0b6; }
.compare__col--other li { color: var(--muted); }
.compare__col--other li .ico { color: #b4ab98; }

/* Преимущества для командировок */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.card__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); margin-bottom: 18px; }
.card__ico .ico { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card--hyp { box-shadow: var(--shadow), inset 0 0 0 2px var(--warn-bg); }

/* Квартиры */
.flats { display: grid; gap: 20px; }
.flat {
  display: grid; grid-template-columns: 300px 1fr 220px;
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.flat__photo {
  min-height: 210px;
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #efe6d2 0 14px, #f6efdf 14px 28px);
  color: #9a8f78; font-size: 14px; padding: 16px;
}
.flat__photo .ico { width: 40px; height: 40px; margin: 0 auto 8px; }
.flat__body { padding: 24px 28px; }
.flat__body h3 { margin-bottom: 8px; }
.flat__addr { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.flat__addr .ico { width: 18px; height: 18px; }
.flat__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; font-size: 15px; }
.flat__meta span { display: inline-flex; gap: 6px; align-items: center; }
.flat__meta .ico { width: 18px; height: 18px; color: var(--navy); }
.flat__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.flat__tags span { font-size: 13px; padding: 4px 10px; border-radius: var(--pill); background: var(--cream); color: var(--muted); }
.flat__price { padding: 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.flat__price b { font-size: 24px; display: block; }
.flat__price small { color: var(--muted); font-size: 14px; }
.flat__price-month { font-size: 15px; color: var(--ink); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: rgba(255, 255, 255, .06); border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .14); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--navy); font-weight: 700; font-size: 18px; margin-bottom: 16px;
}
.step p { color: rgba(255, 255, 255, .75); font-size: 16px; margin: 0; }

/* Документы */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.docs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.docs__list li { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.docs__list .ico { color: var(--navy); }
.note {
  margin-top: 18px; padding: 14px 18px; border-radius: 14px;
  background: var(--warn-bg); color: var(--warn-ink); font-size: 14px;
}

/* Расположение */
.map {
  border-radius: var(--radius); min-height: 340px;
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(-45deg, #e9eef5 0 16px, #f2f5f9 16px 32px);
  color: var(--muted); padding: 24px;
}
.map .ico { width: 44px; height: 44px; color: var(--navy); margin: 0 auto 10px; }

/* Вопросы */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-soft); color: var(--navy); font-size: 20px; font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Финальная заявка */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta__phone { display: inline-flex; gap: 12px; align-items: center; font-size: 26px; font-weight: 600; color: #fff; text-decoration: none; margin: 10px 0 6px; }
.cta__msgs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* Подвал */
.footer { background: var(--navy-2); color: rgba(255, 255, 255, .72); padding: 44px 0 110px; font-size: 14px; }
.footer__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer b { color: #fff; display: block; margin-bottom: 8px; font-size: 15px; }
.footer a { color: rgba(255, 255, 255, .85); }

/* Нижняя панель на телефоне */
.mbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; box-shadow: 0 -6px 24px rgba(14, 38, 71, .14);
  gap: 10px;
}
.mbar .btn { flex: 1; min-height: 48px; padding: 0 14px; }

/* Мобильное меню */
.mnav { display: none; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .header__phone { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; gap: 36px; padding: 48px 24px 80px; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .flat { grid-template-columns: 240px 1fr; }
  .flat__price { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; align-items: center; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 32px; }
  .header__in { min-height: 62px; gap: 12px; }
  .logo small { display: none; }
  .header__phone { display: none; }
  .header .btn { display: none; }
  .burger { display: grid; }
  .mnav.is-open {
    display: grid; gap: 4px;
    position: fixed; top: 62px; left: 0; right: 0; z-index: 49;
    padding: 12px 16px 20px; background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(14, 38, 71, .12);
  }
  .mnav a { padding: 12px 4px; text-decoration: none; font-weight: 500; font-size: 18px; border-bottom: 1px solid var(--line); }
  .hero__in { padding: 36px 16px 72px; }
  .hero__lead { font-size: 18px; }
  .hero__actions .btn { width: 100%; }
  .form-card { padding: 22px 18px; border-radius: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact { padding: 16px 20px; }
  .compare, .cards, .steps, .docs, .cta, .footer__in { grid-template-columns: 1fr; }
  .compare__col, .card { padding: 24px 20px; }
  .flat { grid-template-columns: 1fr; }
  .flat__photo { min-height: 180px; }
  .flat__body { padding: 20px; }
  .flat__price { padding: 18px 20px; flex-direction: column; align-items: stretch; }
  .faq summary { font-size: 16px; padding: 18px 52px 18px 18px; }
  .faq details p { padding: 0 18px 18px; }
  .cta__phone { font-size: 22px; }
  .mbar { display: flex; }
}

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

/* правки после проверки */
.flat__photo .ico, .map .ico, .form__done .ico { display: block; }
.field input[type="date"] { min-width: 0; }
@media (max-width: 720px) {
  .form__row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .field input[type="date"] { padding: 12px 10px; font-size: 15px; }
}

/* Уведомление о cookie */
.cookie {
  position: fixed; left: 50%; bottom: 20px; z-index: 70;
  transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 760px;
  display: none; align-items: center; gap: 16px;
  padding: 14px 14px 14px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg);
  font-size: 14px; line-height: 1.45;
}
.cookie.is-shown { display: flex; }
.cookie p { margin: 0; flex: 1; color: var(--muted); }
.cookie a { color: var(--navy); }
.cookie .btn { flex: none; }
@media (max-width: 720px) {
  .cookie { bottom: calc(80px + env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 12px 12px 12px 16px; gap: 10px; font-size: 13px; line-height: 1.35; }
  .cookie .btn { padding: 0 16px; }
}
.check a { color: var(--navy); }
.check__err { display: none; margin-top: -6px; font-size: 13px; color: #c23030; }
.check.is-error ~ .check__err { display: block; }
.check__policy { margin: -6px 0 0 28px; font-size: 13px; color: var(--navy); justify-self: start; }

/* Первый экран без формы: кнопка заявки, телефон и место под фото */
.hero__call { gap: 12px; }
.hero__call > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.hero__call small { display: block; font-weight: 400; font-size: 13px; color: rgba(255, 255, 255, .7); }
.hero__call .js-phone-text { font-size: 20px; }
.hero__visual { position: relative; padding: 24px 0; }
.hero__frame {
  aspect-ratio: 4 / 5; max-height: 520px; margin-left: auto;
  border-radius: 28px; border: 6px solid rgba(255, 255, 255, .9);
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #efe6d2 0 14px, #f6efdf 14px 28px);
  color: #9a8f78; font-size: 15px; box-shadow: var(--shadow-lg);
}
.hero__frame .ico { display: block; width: 48px; height: 48px; margin: 0 auto 8px; }
.hero__badge {
  position: absolute; display: flex; gap: 12px; align-items: center;
  padding: 14px 18px; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-lg); font-size: 15px; line-height: 1.3;
}
.hero__badge > .ico { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--navy-soft); color: var(--navy); }
.hero__badge b { display: block; }
.hero__badge small { color: var(--muted); }
.hero__badge .hyp { margin: 4px 0 0; }
.hero__badge--top { top: 64px; left: -12px; }
.hero__badge--bottom { bottom: 56px; right: -16px; }

/* Всплывающая форма */
.modal {
  width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 32px; border: 0; border-radius: 24px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
  overflow: auto;
}
.modal::backdrop { background: rgba(14, 38, 71, .55); backdrop-filter: blur(3px); }
.modal h2 { font-size: 26px; margin: 0 40px 6px 0; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--navy-soft); color: var(--navy);
}
.modal__close:hover { background: #d6deea; }
.modal .form__done .btn { margin-top: 8px; }
body.modal-open { overflow: hidden; }

@media (max-width: 1180px) {
  .hero__visual { display: none; }
}
@media (max-width: 720px) {
  .hero__actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .modal {
    width: 100%; max-width: none; max-height: 92dvh;
    margin: auto 0 0; padding: 26px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
  .modal h2 { font-size: 23px; }
}

/* Данные клиента: логотип, фото, все квартиры, условия */
.logo__img { width: 44px; height: 44px; border-radius: 12px; background: #fff; object-fit: contain; padding: 3px; box-shadow: 0 2px 8px rgba(21, 51, 95, .12); }
.hero__frame--photo { overflow: hidden; border-color: #fff; background: #fff; }
.hero__frame--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flat__img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; display: block; background: var(--cream-2); }
.flat__meta small { color: var(--muted); }
.flat--more { display: none; }
.flats.is-all .flat--more { display: grid; }
.flats__more { text-align: center; margin-top: 28px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rule { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.rule .ico { width: 28px; height: 28px; color: var(--navy); margin-top: 2px; }
.rule p { margin: 0; color: var(--muted); }
.rule b { color: var(--ink); }
.footer__brand { display: flex !important; align-items: center; gap: 10px; }
.footer__brand img { border-radius: 8px; background: #fff; padding: 2px; }
@media (max-width: 1180px) { .flat__img { min-height: 190px; } }
@media (max-width: 720px) {
  .rules { grid-template-columns: 1fr; }
  .rule { padding: 18px; }
  .flat__img { aspect-ratio: 3 / 2; min-height: 0; height: auto; }
  .logo__img { width: 40px; height: 40px; }
}

/* Правки владельца: логотип крупнее и чётче (вектор), справа подборка фото, фон без фото */
.logo { gap: 12px; font-size: 21px; }
.logo__img { width: 56px; height: 56px; padding: 2px; border-radius: 14px; }
.header__in { min-height: 80px; }
.hero--plain { background: radial-gradient(1200px 600px at 85% 10%, #234c8a 0%, transparent 60%), linear-gradient(120deg, #0e2647 0%, #15335f 55%, #1d4377 100%); }
.hero__mosaic { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 480px; }
.hero__mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 20px; box-shadow: var(--shadow-lg); border: 4px solid rgba(255, 255, 255, .9); }
.hero__m1 { grid-row: 1 / 3; }
.hero__badge--top { top: 40px; left: -28px; }
.hero__badge--bottom { bottom: 36px; right: auto; left: 34%; }
@media (max-width: 720px) {
  .logo { font-size: 19px; }
  .logo__img { width: 48px; height: 48px; }
  .header__in { min-height: 68px; }
  .mnav.is-open { top: 68px; }
}
@media (max-width: 1180px) {
  .hero__visual { display: block; padding: 0; }
  .hero__mosaic { height: 320px; }
  .hero__badge { display: none; }
}
@media (max-width: 720px) {
  .hero__mosaic { height: 230px; gap: 8px; }
  .hero__mosaic img { border-radius: 14px; border-width: 3px; }
}
@media (min-width: 721px) {
  .flat { grid-auto-rows: minmax(210px, auto); }
  .flat__img { contain: size; height: 100%; min-height: 0; }
}

/* 18.11.2026: фото гостя на первом экране, блок «В каждой квартире» */
.hero__m1--guest { object-position: 62% 40%; }
.amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.amen__item { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 16px; background: var(--cream); font-weight: 500; }
.amen__item .ico { width: 30px; height: 30px; color: var(--navy); }
@media (max-width: 1180px) { .amen { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .amen { gap: 10px; } .amen__item { padding: 14px; gap: 10px; font-size: 15px; } .amen__item .ico { width: 24px; height: 24px; } }

/* Подпись на стоковом фото (указание klienty, 18.11.2026) */
.hero__guest { position: relative; min-height: 0; }
.hero__guest img { width: 100%; height: 100%; }
.hero__caption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(14, 38, 71, .78); color: #fff;
  font-size: 12px; line-height: 1.3; font-weight: 500; letter-spacing: .01em;
}
.hero__badge--bottom { left: auto; right: -16px; }
@media (max-width: 720px) { .hero__caption { left: 8px; bottom: 8px; font-size: 12px; padding: 3px 8px; } }

/* 19.11.2026: цена на первом экране выделена */
.hero__price {
  display: inline-block; padding: 2px 12px; margin: 0 2px;
  border-radius: 10px; background: #ffd25e; color: var(--navy-2);
  font-size: 1.25em; font-weight: 700; line-height: 1.35; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255, 210, 94, .25);
}
