/* Витрина по макету 1440px. Рабочая колонка 1280px, поля по 80px.
   Жёлтый и тёмный синий сняты с макета. Ниже 1100px колонки складываются,
   ниже 700px остаётся одна. Класс .hp прячет поле-ловушку для ботов. */

@font-face { font-family: Graphik; src: url("/static/fonts/GraphikLCG-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Graphik; src: url("/static/fonts/GraphikLCG-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Graphik; src: url("/static/fonts/GraphikLCG-Semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Graphik; src: url("/static/fonts/GraphikLCG-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --yellow: #ffcf1d;
  --ink: #232846;
  --muted: #5d6478;
  --line: #e7e9f0;
  --soft: #f4f6f8;
  --shadow: 0 18px 50px rgba(35, 40, 70, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Graphik, "Segoe UI", sans-serif; background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -.03em; }
.wrap { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.kicker { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 500; color: #fff; }
.kicker-dark { color: #8b90a3; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; font-weight: 600; cursor: pointer; background: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { filter: brightness(.97); }
.btn-ghost { background: #fff; border-color: #d9dce6; }
.btn-wide { width: 100%; }
.hp { position: absolute; left: -9999px; }

.header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; flex-wrap: nowrap; gap: 14px; height: 76px; padding: 0 max(20px, calc((100% - 1280px) / 2)); background: #fff; }
.logo { flex: none; }
.logo img { width: 148px; height: auto; }
.nav { display: flex; flex: none; gap: 12px; margin-left: 4px; font-size: 14px; }
.nav a { text-decoration: none; color: #3c4258; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.header > .btn { flex: none; white-space: nowrap; padding: 0 18px; }
.head-phone { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.head-phone svg, .hero-place svg, .pick-note svg, .contact-phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: transparent; }
.burger span, .burger span:before, .burger span:after { display: block; height: 2px; background: var(--ink); position: relative; }
.burger span:before, .burger span:after { content: ""; position: absolute; left: 0; width: 22px; }
.burger span { width: 22px; }
.burger span:before { top: -7px; }
.burger span:after { top: 7px; }

.hero { position: relative; padding: 28px 0 10px; color: #fff; }
.hero-photo { position: absolute; inset: 0 0 70px; width: 100%; height: calc(100% - 70px); object-fit: cover; object-position: center 30%; }
/* Верх текста совпадает с верхом карточки фильтров, чтобы абзац оставался на небе, а не на деревьях. */
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 400px; gap: 40px; min-height: 560px; align-items: start; padding-top: 8px; }
.hero h1 { font-size: 64px; line-height: .95; max-width: 620px; }
.hero-place { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 12px; font-weight: 500; color: #111; line-height: 1.35; max-width: 520px; }
.hero-place svg { fill: var(--yellow); stroke: none; }
.hero-place svg circle { fill: #232846; }
.hero-lead { max-width: 300px; line-height: 1.35; font-size: 18px; color: #fff; }
.hero-nav { position: absolute; z-index: 2; left: max(20px, calc((100% - 1280px) / 2)); bottom: 118px; display: flex; align-items: center; gap: 14px; }
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hero-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .85); display: block; }
.hero-dots i.is-on { background: var(--yellow); }
.hero-arrow { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); }
.hero-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero-arrow-prev svg { transform: rotate(180deg); }
.pick { background: #fff; color: var(--ink); border-radius: 32px; padding: 28px 26px 22px; box-shadow: var(--shadow); }
.pick h2 { font-size: 32px; margin-bottom: 16px; }
.field-label { margin: 12px 0 8px; font-size: 14px; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { min-width: 48px; height: 46px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #dfe2ea; background: #fff; cursor: pointer; }
.pills button.is-on { background: var(--yellow); border-color: var(--yellow); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick input, .pick select, .filters input, .filters select, .lead-box input, .cta-form input, .dialog input, .login input, .editor input, .editor textarea { width: 100%; border: 1.5px solid #e1e4ec; border-radius: 999px; min-height: 46px; padding: 0 16px; background: #fff; }
.filters select { width: auto; min-width: 150px; }
.editor textarea { border-radius: 16px; padding: 12px 14px; min-height: 0; }
.pick .btn { margin-top: 18px; min-height: 56px; }
.pick-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.35; max-width: 250px; }
.facts { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: -28px 0 0; padding: 22px 18px; background: #fff; border-radius: 32px; box-shadow: var(--shadow); }
.facts li { display: flex; gap: 10px; align-items: center; padding: 0 8px; }
.facts svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.7; }
.facts strong, .facts span { display: block; }
.facts span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.facts strong { color: var(--ink); font-size: 18px; }

.section { padding: 32px 0; }
.section h2 { font-size: 36px; margin-bottom: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.more-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); }
.more-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.type-card { border: 1.5px solid var(--line); border-radius: 28px; overflow: hidden; background: #fff; }
.type-photo { display: block; height: 170px; }
.type-photo img { width: 100%; height: 100%; object-fit: cover; }
.type-body { padding: 16px 16px 18px; }
.badge { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--yellow); font-weight: 600; font-size: 14px; }
.type-area { margin-top: 12px; color: var(--muted); }
.type-price { margin: 4px 0 14px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.type-card .btn { width: 100%; }

.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adv { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; align-items: start; border: 1.5px solid var(--line); border-radius: 24px; padding: 18px 16px 16px; min-height: 148px; }
.adv-icon { grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--yellow); }
.adv h3 { grid-column: 2; grid-row: 1; }
.adv p { grid-column: 2; grid-row: 2; }
.adv-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.adv h3 { font-size: 18px; margin: 0; align-self: center; }
.adv p { color: var(--muted); line-height: 1.35; font-size: 14px; margin-top: 6px; }

.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: center; }
.about h2 { font-size: 36px; line-height: 1.05; }
.prose { margin: 16px 0; line-height: 1.5; color: #3e455c; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { position: relative; padding-left: 22px; margin: 8px 0; }
.ticks li:before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.about img, .gallery-home img { border-radius: 28px; width: 100%; height: 100%; object-fit: cover; }
.about img { height: 420px; }

.loc-grid { display: grid; grid-template-columns: 1.65fr 1fr .85fr; gap: 18px; align-items: stretch; }
/* Живая карта вместо снимка из макета. Высота как у блока на макете. */
.map { height: 260px; border-radius: 28px; overflow: hidden; background: #e7eef2; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.loc-facts li { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 16px; min-height: 62px; font-weight: 600; line-height: 1.25; }
.loc-facts svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.7; }
.loc-facts .hot { background: var(--yellow); border-color: var(--yellow); }
.near { border-left: 1px solid var(--line); padding-left: 22px; }
.near h3 { font-size: 28px; margin-bottom: 12px; }
.near ul { list-style: none; margin: 0; padding: 0; }
.near li { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.near li svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.7; }

.gallery-home { display: grid; grid-template-columns: 1.6fr .8fr; gap: 14px; }
.gallery-home > img { height: 296px; }
.gallery-side { display: grid; gap: 8px; }
.gallery-side img { height: 93px; }
.gallery-more { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 22px; border: 0; background: var(--ink); color: #fff; text-decoration: none; min-height: 93px; }
.gallery-more svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.gallery-more span { display: grid; flex: 1; font-weight: 600; }
.gallery-more small { font-weight: 400; color: rgba(255, 255, 255, .72); }

.cta { display: grid; grid-template-columns: 280px minmax(0, 1fr) 393px; column-gap: 19px; align-items: end; background: var(--ink); color: #fff; border-radius: 32px; padding: 0 21px 0 7px; min-height: 229px; overflow: visible; }
.cta img { width: 280px; height: auto; align-self: end; margin-top: -19px; }
.cta-copy { align-self: end; padding: 0 8px 56px 12px; }
.cta h2 { font-size: 30px; line-height: 1.08; margin-bottom: 28px; }
.cta ul { display: flex; justify-content: space-between; gap: 16px; list-style: none; padding: 0; margin: 0; }
.cta li { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.2; }
.cta-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; flex: none; }
.cta-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.7; }
.cta-form { align-self: end; background: #fff; color: var(--ink); border-radius: 24px; padding: 17px 18px 12px; margin: 0 0 22px; display: grid; gap: 8px; }
.cta-form .icon-field input { min-height: 36px; }
.cta-form .btn { min-height: 44px; }
.icon-field { display: flex; align-items: center; gap: 8px; border: 1.5px solid #e1e4ec; border-radius: 999px; padding-left: 12px; }
.icon-field input { border: 0; min-height: 44px; }
.icon-field svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; flex: none; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); }
.check input { width: 16px; height: 16px; min-height: 0; margin-top: 1px; flex: none; accent-color: #2f6fed; }
.contacts { padding-top: 12px; padding-bottom: 8px; }
.contacts h2 { font-size: 28px; margin-bottom: 8px; }
.contacts-grid { display: grid; grid-template-columns: 1.2fr .8fr auto; gap: 20px; align-items: center; }
.contact-phone a { display: inline-flex; gap: 8px; align-items: center; font-size: 28px; font-weight: 700; text-decoration: none; }
.contact-phone small { display: block; color: var(--muted); margin-top: 4px; }
.contact-actions { display: flex; gap: 10px; }
.address { color: var(--muted); margin-top: 18px; }
.legal { padding: 8px 0 28px; }
.legal p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.notice { background: #eaf8ee; color: #146c36; text-align: center; padding: 12px 16px; }

.page { padding: 36px 0 70px; }
.page h1 { font-size: 44px; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters input { width: 130px; }
.count { color: var(--muted); margin-bottom: 14px; }
.flat-grid, .gallery-all { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flat-card { border: 1.5px solid var(--line); border-radius: 24px; overflow: hidden; }
.flat-card img { height: 220px; width: 100%; object-fit: contain; background: var(--soft); }
.flat-card img.is-missing, .plan img.is-missing { visibility: hidden; }
.flat-card div { padding: 14px 16px 18px; }
.flat-card h3 { margin: 8px 0 4px; font-size: 22px; }
.flat-card h3 a { text-decoration: none; }
.flat-card p { color: var(--muted); margin-bottom: 8px; }
.flat { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.plan { background: var(--soft); border-radius: 28px; min-height: 360px; display: grid; place-items: center; }
.plan img { max-height: 560px; object-fit: contain; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 18px 0; }
.specs div { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 13px; }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.chip { color: var(--muted); margin-bottom: 8px; }
.lead-box, .login, .dialog form { display: grid; gap: 10px; }
.lead-box { border: 1.5px solid var(--line); border-radius: 24px; padding: 18px; }
.pager { display: flex; gap: 8px; margin-top: 18px; }
.pager a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; border: 1px solid var(--line); }
.pager a.is-on { background: var(--yellow); border-color: var(--yellow); }
.gallery-all figure { margin: 0; }
.gallery-all img { height: 240px; object-fit: cover; border-radius: 24px; }
.gallery-all figcaption { margin-top: 8px; color: var(--muted); }
.empty { padding: 20px; background: var(--soft); border-radius: 16px; }
dialog { border: 0; border-radius: 24px; padding: 22px; width: min(420px, calc(100% - 24px)); }
dialog::backdrop { background: rgba(35, 40, 70, .45); }
.text-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; }

.admin { background: #f6f7fb; }
.admin-bar { display: flex; gap: 16px; align-items: center; padding: 16px 22px; background: #fff; }
.admin-bar form { margin-left: auto; }
.admin-bar button { border: 0; background: transparent; cursor: pointer; }
.editor, .login { width: min(880px, calc(100% - 32px)); margin: 24px auto 60px; }
.editor section, .login { background: #fff; border-radius: 20px; padding: 18px; margin-bottom: 14px; }
.editor h1, .login h1 { margin-bottom: 12px; }
.editor h2 { font-size: 20px; margin-bottom: 12px; }
.editor label, .login label, .dialog label, .lead-box label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.status { background: #fff8dc; border-radius: 16px; padding: 12px 14px; }
.error { color: #a12626; }
.leads { width: 100%; border-collapse: collapse; background: #fff; }
.leads th, .leads td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }

@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; padding: 12px 20px 18px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .burger { display: inline-grid; place-items: center; }
  .head-phone span { display: none; }
  .hero h1, .about h2, .page h1 { font-size: 40px; }
  .hero-grid, .about-grid, .loc-grid, .gallery-home, .cta, .contacts-grid, .flat { grid-template-columns: 1fr; }
  .facts, .type-grid, .adv-grid { grid-template-columns: 1fr 1fr; }
  .flat-grid, .gallery-all { grid-template-columns: 1fr 1fr; }
  .cta { padding: 20px; min-height: 0; }
  .cta img { width: 180px; margin-top: 0; }
  .cta-copy { padding: 0 0 8px; }
  .cta-form { margin-bottom: 0; }
  .near { border-left: 0; padding-left: 0; }
  .hero-photo { height: 100%; }
  .hero-nav { display: none; }
}
@media (max-width: 700px) {
  .facts, .type-grid, .adv-grid, .flat-grid, .gallery-all, .specs { grid-template-columns: 1fr; }
  .header .btn { display: none; }
  .contact-actions { flex-direction: column; }
  .hero h1 { font-size: 36px; }
}
