/* Manrope лежит у нас на сервере, не грузим с Google (трансграничная передача IP). */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113;
}

:root {
  --page-bg: #f7f4ed;
  --surface: #fff;
  --green: #234d40;
  --green-hover: #193b31;
  --ink: #202824;
  --muted: #7a7d75;
  --line: #e5ded2;
  --sage-bg: #e9f0e9;
  --accent: #b95d3a;
  --accent-bg: #f3e3d9;
  --radius-card: 16px;
  --radius-panel: 20px;
  --radius-input: 10px;
  --shadow-card: 0 6px 24px rgba(35, 77, 64, .06);
  --font-ui: "Manrope", Arial, sans-serif;
  --font-editorial: Georgia, "Times New Roman", serif;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1366px) { :root { --gutter: 48px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page-bg); color: var(--ink); font: 15px/1.45 var(--font-ui); }
@media (min-width: 1024px) { body { font-size: 16px; } }
html.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 1800px) { .wrap { max-width: 1600px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; background: none;
  transition: background .15s, border-color .15s;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-hover); }
.btn--ghost { background: var(--surface); border-color: var(--line); }
.btn--ghost:hover { border-color: #cfc5b5; }
.btn--text { color: var(--muted); font-weight: 600; }
.btn--text:hover { color: var(--ink); }
.btn--light { background: #fff; color: var(--green); }
.btn--block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible { outline: 3px solid rgba(35, 77, 64, .35); outline-offset: 2px; }

/* ---------- header ---------- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.15; margin-right: auto; }
.brand__logo { width: 46px; height: 40px; }
.brand b { display: block; font: 700 20px/1.15 var(--font-editorial); color: var(--green); }
.brand small { color: var(--muted); font-size: 13px; }
.top__nav { display: flex; gap: 28px; }
.top__nav a { text-decoration: none; font-weight: 600; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; }
.top__nav a:hover { border-color: var(--green); }
.top__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--ink); }
.top__phone .ic { color: var(--green); }
@media (max-width: 1023px) { .top__nav { display: none; } }
@media (max-width: 767px) {
  .top__row { gap: 8px; min-height: 64px; }
  .brand__logo { width: 38px; height: 33px; }
  .brand b { font-size: 17px; }
  .brand small { font-size: 12px; }
  .top__phone span, .top__write span { display: none; }
  .top__phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; }
  .top__write { width: 44px; padding: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0; }
.hero__leaves { position: absolute; left: -36px; bottom: -40px; width: 150px; opacity: .45; pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 24px; align-items: center; }
.hero h1 { margin: 0 0 10px; font: 700 clamp(31px, 4.1vw, 54px)/1.06 var(--font-editorial); color: var(--green); letter-spacing: -.01em; }
.hero p { margin: 0 0 18px; font-size: clamp(17px, 1.5vw, 21px); color: var(--ink); }
.hero__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--accent-bg); font-size: 14px; font-weight: 600; }
.hero__chips .ic { color: var(--accent); width: 18px; height: 18px; }
.hero__collage { position: relative; height: 230px; }
.hero__main {
  position: absolute; inset: 0 14% 0 0; width: 86%; height: 100%; object-fit: cover; object-position: 50% 0%;
  border-radius: var(--radius-panel);
}
.hero__second {
  position: absolute; right: 0; bottom: -6px; width: 42%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 35% 50%;
  border: 6px solid #fff; border-radius: 18px; transform: rotate(2.5deg); box-shadow: 0 10px 28px rgba(35, 77, 64, .18);
}
@media (min-width: 768px) {
  .hero { padding: 32px 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; }
  .hero__collage { height: 270px; }
  .hero__leaves { width: 190px; left: -40px; }
}
@media (min-width: 1280px) {
  .hero__collage { height: 300px; }
  .hero__main { clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 var(--radius-panel) var(--radius-panel) 0; }
}

/* ---------- catalog layout ---------- */
.catalog { display: grid; gap: 24px; align-items: start; padding-top: 8px; padding-bottom: 64px; scroll-margin-top: 12px; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 260px minmax(0, 1fr); } }
@media (min-width: 1280px) { .catalog { grid-template-columns: 300px minmax(0, 1fr); } }

/* ---------- filters panel ---------- */
.fpanel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.fpanel__head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.fpanel__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--accent-bg); display: grid; place-items: center; color: var(--green); }
.fpanel__icon .ic { width: 24px; height: 24px; }
.fpanel__head h2 { margin: 0; font: 700 19px/1.2 var(--font-editorial); color: var(--ink); }
.fpanel__head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.fpanel__close { display: none; margin-left: auto; background: var(--page-bg); }
.fpanel__body { padding: 0 20px; }
.fpanel__foot { padding: 16px 20px 18px; border-top: 1px solid var(--line); display: grid; gap: 4px; }

.fsec { border: 0; margin: 0; padding: 16px 0; min-width: 0; display: grid; gap: 10px; }
.fsec + .fsec { border-top: 1px solid var(--line); }
.fsec legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.fsec legend .ic { color: var(--accent); }
.fsec__err { margin: -4px 0 0; color: var(--accent); font-size: 12px; font-weight: 600; }

.frow { display: grid; gap: 6px; }
.frow__label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.frow__label .ic { width: 18px; height: 18px; color: var(--accent); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inp, .sel select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-input);
  background: var(--surface); outline: none; font-size: 15px;
}
.sel { position: relative; display: block; }
.sel select { appearance: none; padding-right: 36px; cursor: pointer; text-overflow: ellipsis; }
.sel::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%237a7d75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.inp:focus, .sel select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(35, 77, 64, .12); }
.inp.is-bad { border-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label, .seg label { position: relative; cursor: pointer; }
.chips input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 14px; font-weight: 600; transition: background .15s, border-color .15s;
}
.chips--sm span { min-height: 34px; padding: 0 11px; font-size: 13px; }
.chips label:hover span { border-color: #cfc5b5; }
.chips input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chips i { font-style: normal; font-weight: 500; opacity: .6; }
.chips i:empty { display: none; }
.seg { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg span { display: grid; place-items: center; min-height: 38px; font-size: 14px; font-weight: 600; }
.seg label + label span { border-left: 1px solid var(--line); }
.seg input:checked + span { background: var(--green); color: #fff; }
.chips input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid rgba(35, 77, 64, .35); outline-offset: 1px; }

/* двойной ползунок цены */
.slider { position: relative; height: 28px; margin: 4px 2px 0; }
.slider__track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--line); }
.slider__fill { position: absolute; top: 0; bottom: 0; background: var(--green); border-radius: 4px; }
.slider input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none; }
.slider input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.slider input::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--green); cursor: pointer;
}
.slider input::-webkit-slider-runnable-track { background: none; }
.slider input::-moz-range-track { background: none; }
.slider input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(35, 77, 64, .25); }
.slider__legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* sidebar на десктопе, выезжающая панель на планшете и телефоне */
@media (min-width: 1024px) {
  .filters { position: sticky; top: 16px; }
  .fpanel { max-height: calc(100vh - 32px); }
  .fpanel__body { overflow-y: auto; overscroll-behavior: contain; }
  .filters-toggle { display: none !important; }
}
@media (max-width: 1023px) {
  .filters {
    position: fixed; inset: 0; z-index: 40; background: rgba(32, 40, 36, .45);
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .filters.is-open { opacity: 1; pointer-events: auto; }
  .fpanel {
    position: absolute; top: 0; bottom: 0; left: 0; width: min(400px, 100%); border-radius: 0 var(--radius-panel) var(--radius-panel) 0;
    transform: translateX(-24px); transition: transform .2s;
  }
  .filters.is-open .fpanel { transform: none; }
  .fpanel__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
  .fpanel__close { display: grid; }
}
@media (max-width: 767px) {
  .fpanel { width: 100%; border-radius: 0; border: 0; }
}

/* ---------- results ---------- */
.results { min-width: 0; }
.results__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 12px; }
.results__title h2 { margin: 0; font: 700 clamp(26px, 2.4vw, 32px)/1.1 var(--font-editorial); color: var(--ink); }
.results__title p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.results__tools { display: flex; gap: 8px; }
.filters-toggle__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--green); color: #fff;
  font-size: 12px; display: inline-grid; place-items: center;
}
.sort { position: relative; display: flex; align-items: center; }
.sort .ic { position: absolute; left: 12px; color: var(--green); pointer-events: none; }
.sort select {
  appearance: none; height: 44px; padding: 0 34px 0 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%237a7d75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 10px center / 16px;
  font-size: 14px; font-weight: 600; cursor: pointer; outline: none;
}
.sort select:focus { border-color: var(--green); }

.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.quick button {
  min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.quick button:hover { border-color: #cfc5b5; }
.quick button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.quick i { font-style: normal; opacity: .6; font-weight: 500; }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid #efe9de; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(35, 77, 64, .12); }
.card__hit { position: absolute; inset: 0; z-index: 2; background: none; border: 0; cursor: pointer; border-radius: inherit; }
.card__hit:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sage-bg); }
.card__media > img, .card__media > .nophoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 12px; font-weight: 700; color: var(--ink);
}
.tag .ic { width: 15px; height: 15px; }
.tag--count { left: auto; right: 12px; background: rgba(32, 40, 36, .62); color: #fff; }
.tag--hot { top: auto; bottom: 12px; background: var(--accent); color: #fff; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card__price { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.card__title { margin: 2px 0 4px; font-size: 16px; font-weight: 700; }
.card__addr { display: flex; align-items: center; gap: 5px; margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.card__addr .ic { width: 16px; height: 16px; color: var(--accent); }
.card__facts { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #4b524d; }
.card__facts li { display: inline-flex; align-items: center; gap: 5px; }
.card__facts .ic { width: 17px; height: 17px; color: var(--accent); }
.card__more { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--green); }
.card__more .ic { width: 17px; height: 17px; }

.nophoto { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; background: var(--sage-bg); color: #6f8577; font-size: 13px; font-weight: 600; }
.nophoto .ic { width: 30px; height: 30px; }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-card); padding: 40px 24px; text-align: center; }
.empty p { margin: 0 auto 8px; max-width: 440px; color: var(--muted); }
.empty p b { color: var(--ink); font: 700 20px var(--font-editorial); }
.empty .btn { margin-top: 12px; }

/* ---------- modal ---------- */
.modal {
  width: min(1340px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 0;
  border-radius: var(--radius-panel); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); overflow: hidden;
}
.modal::backdrop { background: rgba(32, 40, 36, .55); }
.modal__inner { position: relative; display: grid; grid-template-columns: 54fr 46fr; max-height: calc(100dvh - 48px); }
.modal__media, .modal__info { min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.modal__media { padding: 12px; background: var(--page-bg); }
@media (min-width: 900px) {
  .modal__inner { height: calc(100dvh - 48px); max-height: 860px; }
  .modal__media, .modal__info { max-height: none; height: 100%; }
  .modal__media { display: flex; flex-direction: column; overflow: hidden; }
  .modal__media .gallery__stage { flex: 1; min-height: 0; aspect-ratio: auto; }
}
.modal__info { padding: 28px 32px 28px; }
.modal__close { position: absolute; right: 14px; top: 14px; z-index: 5; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }

.gallery__stage { position: relative; border-radius: 14px; overflow: hidden; background: #1d221f; aspect-ratio: 4 / 3; }
.gallery__main { width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__main .nophoto { cursor: default; }
.gallery__badge { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.gallery__badge .ic { width: 16px; height: 16px; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__num { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 600; }
.gallery__thumbs { display: flex; gap: 8px; padding-top: 10px; overflow-x: auto; }
.gallery__thumbs button { flex: none; width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.gallery__thumbs button[aria-current] { border-color: var(--green); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.zoom { position: fixed; inset: 0; z-index: 10; background: rgba(15, 18, 16, .94); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom .icon-btn { position: absolute; right: 16px; top: 16px; }

.modal__price { margin: 0 52px 0 0; font-size: clamp(32px, 3vw, 40px); font-weight: 800; line-height: 1.1; color: var(--green); letter-spacing: -.01em; }
.modal__price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.modal__info h2 { margin: 6px 0 6px; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; }
.modal__addr { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; color: #4b524d; }
.modal__addr .ic { color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--page-bg); }
.tile__ic { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sage-bg); color: var(--green); }
.tile:nth-child(even) .tile__ic { background: var(--accent-bg); color: var(--accent); }
.tile__ic .ic { width: 22px; height: 22px; }
.tile dt { font-size: 13px; color: var(--muted); }
.tile dd { margin: 0; font-weight: 700; }
.modal__info h3 { margin: 0 0 8px; font: 700 20px/1.2 var(--font-editorial); }
.desc { margin-bottom: 22px; }
.desc p { margin: 0 0 4px; }
.desc .desc__h { margin-top: 10px; font-weight: 700; }
.desc ul { margin: 2px 0 6px; padding-left: 20px; }
.infra { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.infra li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.infra .ic { color: var(--accent); }
.docs { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--sage-bg); font-weight: 700; margin-bottom: 22px; }
.docs .ic { color: var(--green); }
.docs__ok { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: #3f8a63; color: #fff; display: grid; place-items: center; }
.docs__ok .ic { width: 16px; height: 16px; color: #fff; }
.contact { border-top: 1px solid var(--line); padding-top: 18px; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.contact__btns .btn { flex: 1 1 200px; min-height: 50px; }
.contact__max { flex: 1 1 200px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; text-align: center; }
.contact__max .ic { color: var(--green); }
.contact__max b { white-space: nowrap; }

@media (max-width: 899px) {
  .modal__inner { grid-template-columns: 1fr; overflow-y: auto; }
  .modal__media, .modal__info { max-height: none; overflow: visible; }
}
@media (max-width: 767px) {
  .modal { width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .modal__inner { height: 100%; max-height: 100%; }
  .modal__media { padding: 0; }
  .gallery__stage { border-radius: 0; }
  .gallery__thumbs { padding: 8px 12px 0; }
  .modal__info { padding: 20px 16px 28px; }
  .modal__close { position: fixed; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { padding: 10px; gap: 8px; }
  .tile__ic { width: 36px; height: 36px; }
}

/* ---------- footer ---------- */
.foot { background: var(--green); color: #e7eee9; padding: 40px 0 24px; scroll-margin-top: 12px; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot__about b { font: 700 20px var(--font-editorial); color: #fff; }
.foot p { margin: 6px 0 0; max-width: 460px; color: #bcd0c4; font-size: 14px; }
.foot__contacts { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.foot__contacts a:not(.btn), .foot__max { font-weight: 700; text-decoration: none; color: #fff; }
.foot__contacts a:not(.btn):hover { text-decoration: underline; }
.foot .foot__note { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); max-width: none; font-size: 12px; color: #9fb5a8; }
