/* arenda214.by — «Восток плюс». Светлая современная дизайн-система.
   Бумажный фон, тёплые линии, глубокий зелёный + янтарный акцент. Без веб-шрифтов. */

:root {
  --paper: #f7f6f2;
  --card: #ffffff;
  --ink: #1c2733;
  --muted: #4e5d6e;
  --line: #e6e2d8;
  --brand: #175e54;
  --brand-ink: #0e3f38;
  --brand-tint: #edf4f1;
  --accent: #b45309;
  --accent-tint: #fbf3e7;
  --danger: #b3402a;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(28, 39, 51, .05), 0 10px 30px -18px rgba(28, 39, 51, .18);
  --shadow-lift: 0 2px 4px rgba(28, 39, 51, .06), 0 18px 44px -20px rgba(28, 39, 51, .26);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.2em; }

section { scroll-margin-top: 84px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section--tint { background: #fbfaf7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.lead { color: var(--muted); max-width: 62ch; font-size: 1.06rem; }
.section-head { margin-bottom: clamp(22px, 3.5vw, 36px); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 650;
  border-radius: var(--radius-s);
  padding: 13px 22px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); border-color: #c8d6d1; }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--ink); }
.btn--lg { padding: 15px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }

:focus-visible { outline: 3px solid #8ec7bb; outline-offset: 2px; border-radius: 6px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(28,39,51,.4); }
.header__in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); margin-right: auto; }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo__mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 1.05rem; font-weight: 800; letter-spacing: .02em;
}
.logo__name { line-height: 1.15; font-size: .98rem; }
.logo__name small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.header__nav { display: flex; gap: 4px; }
.header__nav a {
  color: var(--ink); font-weight: 550; font-size: .93rem;
  padding: 8px 11px; border-radius: 8px; white-space: nowrap;
}
.header__nav a:hover { background: var(--brand-tint); color: var(--brand-ink); text-decoration: none; }
.header__phones { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.header__phones a { font-weight: 700; white-space: nowrap; color: var(--ink); font-size: .95rem; }
.header__phones a:hover { color: var(--brand); text-decoration: none; }
.header__note { font-size: .72rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(720px 340px at 88% -10%, rgba(23, 94, 84, .10), transparent 65%),
    radial-gradient(560px 300px at -8% 108%, rgba(180, 83, 9, .07), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(40px, 6.5vw, 84px) 0 clamp(40px, 6vw, 72px);
}
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .88rem; font-weight: 600; color: var(--ink);
}
.chip svg { flex: none; color: var(--brand); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero__note { font-size: .85rem; color: var(--muted); }
.hero__media { position: relative; }
.hero__media .frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift);
  border: 1px solid var(--line); background: #dcd9d0;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.1; }
.hero__tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  box-shadow: var(--shadow);
}
.hero__tag strong { display: block; font-size: 1.18rem; letter-spacing: -.01em; }
.hero__tag span { font-size: .8rem; color: var(--muted); }

/* ---------- USP ---------- */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.usp {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px;
}
.usp svg { color: var(--brand); margin-bottom: 10px; }
.usp h3 { margin-bottom: 4px; font-size: 1rem; }
.usp p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Сегменты ---------- */
.seg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.seg {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.seg__media { position: relative; background: #dcd9d0; }
.seg__media img { aspect-ratio: 16 / 8.4; width: 100%; object-fit: cover; }
.seg__price {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 700; padding: 6px 13px; color: var(--ink);
}
.seg__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.seg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.seg li { position: relative; padding-left: 22px; color: var(--muted); font-size: .93rem; }
.seg li::before {
  content: ""; position: absolute; left: 2px; top: .48em;
  width: 12px; height: 8px;
  border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}
.seg .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Каталог ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.filters__group { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 4px; align-self: center; }
.fbtn {
  font: inherit; font-size: .9rem; font-weight: 600;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.fbtn:hover { border-color: var(--brand); color: var(--brand-ink); }
.fbtn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.fbtn--heat[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.filters__count { margin-left: auto; font-size: .85rem; color: var(--muted); }

.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.room-grid.is-hidden-room { display: none; }
.room {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.room[hidden] { display: none; }
.room__media { position: relative; background: #dcd9d0; }
.room__media button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
}
.room__media img { aspect-ratio: 4 / 2.7; width: 100%; object-fit: cover; }
.room__zoom {
  position: absolute; right: 10px; top: 10px;
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 8px;
  font-size: .74rem; font-weight: 700; padding: 5px 9px; color: var(--ink);
}
.room__flags { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 5px; max-width: 82%; }
.flag {
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  border-radius: 6px; padding: 4px 8px;
  background: rgba(255,255,255,.93); border: 1px solid var(--line); color: var(--ink);
}
.flag--heat { background: var(--brand-tint); color: var(--brand-ink); border-color: #cfe0da; }
.flag--cold { background: #eef2f6; color: #3d4d61; border-color: #dbe3ec; }
.flag--renovated { background: var(--accent-tint); color: #7c3d06; border-color: #ecd9bd; }
.room__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.room__title { font-size: 1.02rem; margin: 0; }
.room__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--muted); }
.room__price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.room__price strong { font-size: 1.35rem; letter-spacing: -.02em; }
.room__price span { color: var(--muted); font-size: .88rem; }
.room__price em { font-style: normal; font-size: .85rem; color: var(--accent); font-weight: 650; }
.room__note { font-size: .85rem; color: var(--muted); margin: 0; }
.room__actions { display: flex; gap: 8px; }
.room__actions .btn { padding: 10px 14px; font-size: .9rem; }
/* последние плитки неполного ряда — к центру */
.room-grid > .room:nth-child(3n+1):last-child { grid-column: 2; }
.room-grid > .room:nth-child(3n+2):last-child { grid-column: 1 / -1; justify-self: center; width: min(100%, 480px); }
.catalog__note { margin-top: 18px; font-size: .85rem; color: var(--muted); }

/* ---------- Юр. адрес ---------- */
.legal { background: var(--brand); color: #eef6f3; }
.legal .eyebrow { background: rgba(255,255,255,.14); color: #e8f4ef; }
.legal h2 { color: #fff; }
.legal__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3.5vw, 44px); }
.legal__bullets { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.legal__bullets li { position: relative; padding-left: 26px; font-size: 1.02rem; }
.legal__bullets li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 13px; height: 8px;
  border-left: 2.5px solid #8fd3c4; border-bottom: 2.5px solid #8fd3c4; transform: rotate(-45deg);
}
.legal__price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  margin: 20px 0 8px; padding: 16px 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-s);
}
.legal__price strong { font-size: 1.7rem; color: #fff; letter-spacing: -.02em; }
.legal__price span { color: #d6eae2; }
.legal .btn--light { background: #fff; border-color: #fff; color: var(--brand-ink); }
.legal .btn--light:hover { background: #f2efe8; }
.legal-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 20px;
}
.legal-card h3 { color: #fff; font-size: 1rem; letter-spacing: .01em; }
.legal-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.legal-card li { font-size: .88rem; color: #d7e8e2; padding-left: 16px; position: relative; }
.legal-card li::before { content: "·"; position: absolute; left: 2px; font-weight: 800; color: #8fd3c4; }

/* ---------- Сравнение ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmp { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 22px; }
.cmp--them { border-top: 4px solid #9aa7b5; }
.cmp--us { border-top: 4px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.cmp__tag {
  position: absolute; top: -14px; right: 16px;
  background: var(--brand); color: #fff; font-size: .74rem; font-weight: 750;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 5px 12px;
}
.cmp h3 { font-size: 1.05rem; }
.cmp p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.cmp__rows { display: grid; gap: 8px; margin: 14px 0; }
.cmp__row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: .92rem; padding: 10px 12px; border-radius: 8px;
  background: #faf9f6; border: 1px solid var(--line);
}
.cmp__row dt { color: var(--muted); }
.cmp__row dd { margin: 0; font-weight: 650; text-align: right; }
.cmp--them .cmp__row dd.dim { color: var(--danger); }
.cmp--us .cmp__row dd.ok { color: var(--brand); }
.compare-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; position: relative; }
.step__n {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 10px;
}
.step h3 { font-size: .98rem; margin-bottom: 4px; }
.step p { margin: 0; font-size: .86rem; color: var(--muted); }

/* ---------- Локация ---------- */
.loc__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.loc__points { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.loc__map {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #dcd9d0;
}
.loc__map iframe { display: block; width: 100%; height: 380px; border: 0; }
.loc__routes { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 4px 18px;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 650; padding: 13px 34px 13px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 20px;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg); transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(225deg); top: 22px; }
.faq details p { color: var(--muted); margin: 0 0 14px; max-width: 70ch; }

/* ---------- Контакты ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3.5vw, 48px); }
.contact__phones { display: grid; gap: 8px; margin: 16px 0; }
.contact__phones a { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 750; letter-spacing: -.01em; }
.contact__phones a:hover { text-decoration: none; color: var(--brand-ink); }
.contact__meta { color: var(--muted); font-size: .95rem; display: grid; gap: 4px; }
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(20px, 3vw, 30px);
}
.form-card h3 { margin-bottom: 4px; }
.form-card .hint { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .86rem; font-weight: 650; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: 12px 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 94, 84, .14);
}
.field textarea { min-height: 96px; resize: vertical; }
.field--hp { position: absolute; left: -4000px; opacity: 0; height: 0; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 4px 0 16px; }
.consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.consent a { text-decoration: underline; }
.form-status { margin-top: 12px; font-size: .9rem; min-height: 1.3em; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--brand); }

/* ---------- Футер ---------- */
.footer { background: #14202b; color: #aab7c3; padding: 36px 0 28px; margin-top: 0; }
.footer a { color: #cfd9e2; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer strong { color: #fff; font-weight: 700; }
.footer__col { display: grid; gap: 6px; font-size: .9rem; max-width: 420px; }
.footer__bottom {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}

/* ---------- Лайтбокс ---------- */
.lb { border: none; padding: 0; max-width: min(1040px, 94vw); background: transparent; }
.lb::backdrop { background: rgba(16, 24, 32, .78); backdrop-filter: blur(3px); }
.lb__img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius-s); background: #101820; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #dfe7ee; padding: 10px 4px 0; }
.lb__count { font-size: .9rem; }
.lb__btn {
  font: inherit; font-weight: 700; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; padding: 8px 16px;
}
.lb__btn:hover { background: rgba(255,255,255,.22); }

/* ---------- Ветки быстрого ответа ---------- */
.callstrip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--accent-tint); border: 1px solid #ecd9bd; border-radius: var(--radius);
  padding: 16px 20px; margin-top: 26px;
}
.callstrip strong { color: #7c3d06; }

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .header__nav { display: none; }
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .seg-grid { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .room-grid > .room:nth-child(3n+1):last-child { grid-column: auto; }
  .room-grid > .room:nth-child(3n+2):last-child { grid-column: auto; width: 100%; }
  .room-grid > .room:nth-child(2n+1):last-child { grid-column: 1 / -1; }
  .legal__grid, .compare, .loc__grid, .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .usp-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .room-grid { grid-template-columns: 1fr; }
  .room-grid > .room:nth-child(2n+1):last-child { grid-column: auto; }
  .header__in { min-height: 58px; gap: 10px; }
  .header__phones { align-items: flex-end; }
  .header__note { display: none; }
  .logo__name small { display: none; }
  .filters__count { width: 100%; margin-left: 0; order: 9; }
}
