/* volgaelit.ru — статичная версия (27.11.2026). Один файл стилей на весь сайт, без JS-библиотек.
   Палитра и шрифты — как на прежнем сайте (2015). */

@font-face { font-family: "PT Sans Local"; src: url("/fonts/ptsans-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans Local"; src: url("/fonts/ptsans-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Orpheus"; src: url("/fonts/orpheus.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --brown: #695a4b;
  --brown-line: #877b6f;
  --beige: #f7f5f2;
  --line: #ccc7c2;
  --box-line: #daccbc;
  --gold: #bf9b76;
  --link: #b87e4b;
  --hi: #fed3a4;
  --text: #463d35;
  --muted: #5c5c5c;
  --ink: #000;
  --sans: "PT Sans Local", "PT Sans", Arial, sans-serif;
  --serif-logo: Tunga, "Times New Roman", Times, serif;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font: 15px/1.6 var(--sans);
  color: var(--muted);
  background: #fff;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, p, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
.container { max-width: calc(960px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 710px; margin: 0 auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Шапка ---------- */
.hdr { background: var(--brown); position: relative; z-index: 20; }
.hdr__in {
  max-width: calc(960px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 59px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left logo right";
  align-items: center;
  column-gap: 24px;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; }
.nav { display: flex; gap: 29px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.nav--left { grid-area: left; justify-self: start; }
.nav--right { grid-area: right; justify-self: end; }
.nav a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--brown-line);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current] { color: var(--hi); border-color: var(--hi); }

.logo { grid-area: logo; display: block; text-align: center; color: #fff; text-decoration: none; padding: 6px 0 4px; }
.logo__top {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 10px/1 var(--sans); letter-spacing: 3.7px; text-transform: uppercase; color: #b4ada5;
}
.logo__top::before, .logo__top::after { content: ""; width: 24px; height: 1px; background: #b4ada5; }
.logo__top::after { margin-left: -4px; }
.logo__name {
  display: block;
  font: 30px/1 var(--serif-logo);
  letter-spacing: 2.8px;
  text-transform: uppercase;
  padding-top: 3px;
  background: url("/img/ui/logo-line.png") repeat-x 0 0;
}

@media (max-width: 860px) {
  .hdr__in {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo burger" "left left" "right right";
    min-height: 56px;
  }
  .logo { justify-self: start; text-align: left; }
  .logo__name { font-size: 24px; }
  .burger {
    grid-area: burger;
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px;
    cursor: pointer;
  }
  .burger span, .burger span::before, .burger span::after {
    display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: transform .2s, background .2s;
  }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -7px; }
  .burger span::after { top: 7px; }
  .nav-toggle:checked ~ .burger span { background: transparent; }
  .nav-toggle:checked ~ .burger span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .burger span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible ~ .burger { outline: 2px solid var(--hi); outline-offset: -4px; }

  .nav { display: none; flex-direction: column; gap: 0; font-size: 14px; justify-self: stretch; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav--left { padding-top: 6px; border-top: 1px solid var(--brown-line); }
  .nav--right { padding-bottom: 12px; }
  .nav a { display: block; border: 0; padding: 11px 0; }
}

/* ---------- Подменю раздела ---------- */
.subnav { background: var(--beige); }
.subnav ul {
  display: flex; justify-content: center; gap: 48px;
  max-width: calc(960px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
  overflow-x: auto; scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-block; line-height: 42px; white-space: nowrap;
  color: #5b5a5a; text-decoration: none;
}
.subnav a span { border-bottom: 1px solid #c6c4c2; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--ink); }
.subnav a[aria-current] span { border-color: var(--ink); }
@media (max-width: 640px) {
  .subnav ul { justify-content: flex-start; gap: 26px; }
}

/* ---------- Заголовок страницы и орнамент ---------- */
.page-title { font: 700 36px/1.2 var(--sans); color: var(--ink); text-align: center; margin: 58px 0 32px; }
.divider { position: relative; height: 1px; background: var(--line); margin: 0 0 48px; }
.divider i { position: absolute; left: 50%; top: -7px; width: 62px; height: 15px; margin-left: -31px; background: #fff; }
.divider i::before {
  content: ""; position: absolute; left: 22px; top: 0; width: 17px; height: 15px;
  border-top: 1px solid #cbc5c0; border-bottom: 1px solid #cbc5c0;
}
.divider i::after { content: ""; position: absolute; left: 11px; top: 7px; width: 40px; height: 1px; background: var(--line); }
@media (max-width: 640px) {
  .page-title { font-size: 28px; margin: 32px 0 22px; }
  .divider { margin-bottom: 32px; }
}

/* ---------- Текстовые страницы ---------- */
.prose h2 { font-size: 24px; line-height: 1.25; font-weight: 400; color: var(--ink); margin-bottom: 13px; }
.prose p { color: var(--text); margin-bottom: 24px; }
.prose a { color: var(--link); }
.prose a:hover { opacity: .8; }
.prose img { margin: 0 auto; }
.item { margin-bottom: 52px; }
.item:last-child { margin-bottom: 72px; }
@media (max-width: 640px) {
  .prose h2 { font-size: 21px; }
  .item { margin-bottom: 40px; }
}

/* ---------- Главная ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 59px - 41px);
  min-height: calc(100dvh - 59px - 41px);
  display: grid; place-items: center;
  padding: 48px var(--gutter);
  background: #3d342c url("/img/back_main.jpg") center / cover no-repeat;
}
.plaque {
  width: 100%; max-width: 753px;
  padding: 13px;
  background: rgba(0, 0, 0, .5);
  transition: background .3s;
  color: #fff; text-align: center;
}
.plaque:hover { background: rgba(0, 0, 0, .6); }
.plaque__b1 { border: 4px solid #fff; }
.plaque__b2 { margin: 9px; border: 1px solid #fff; padding: 33px 25px 32px; font-family: "Orpheus", Georgia, serif; }
.plaque__city { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
.plaque__city::before, .plaque__city::after {
  content: ""; width: 8px; height: 9px;
  border-top: 1px solid #9b9290; border-bottom: 1px solid #9b9290;
  background: linear-gradient(#9b9290, #9b9290) center / 15px 1px no-repeat;
}
.plaque__title {
  font: 48px/60px "Orpheus", Georgia, serif;
  text-transform: uppercase; letter-spacing: 4px;
  margin: 29px 0 21px;
}
.plaque__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 0; }
.plaque__list li { width: 125px; font-size: 16px; line-height: 1.25; }
.plaque__list li::before {
  content: ""; display: block; margin: 0 auto 10px; height: 45px;
  background: url("/img/main_spr.png") no-repeat;
}
.plaque__list li:nth-child(1)::before { width: 46px; background-position: -100px 1px; }
.plaque__list li:nth-child(2)::before { width: 44px; background-position: -53px -1px; }
.plaque__list li:nth-child(3)::before { width: 46px; background-position: -1px 0; }
@media (max-width: 640px) {
  .hero { padding: 28px 14px; min-height: calc(100dvh - 56px - 70px); }
  .plaque { padding: 8px; }
  .plaque__b2 { margin: 6px; padding: 24px 12px; }
  .plaque__city { font-size: 15px; }
  .plaque__title { font-size: clamp(22px, 7.2vw, 34px); line-height: 1.3; letter-spacing: 2px; margin: 18px 0 18px; }
  .plaque__list li { width: 33.3%; font-size: 14px; }
}

/* ---------- Преимущества ---------- */
.benefits { text-align: center; padding-bottom: 56px; }
.benefit { max-width: 710px; margin: 0 auto 36px; }
.benefit h2 { font-size: 24px; line-height: 1.25; font-weight: 400; color: var(--ink); margin-bottom: 10px; }
.benefit p { color: var(--text); }
.benefit__icon { display: inline-block; margin-bottom: 8px; background: url("/img/advantages_spr.png") no-repeat; }
.b1 { width: 39px; height: 40px; background-position: -189px 0; }
.b2 { width: 61px; height: 28px; background-position: -121px -8px; }
.b3 { width: 68px; height: 33px; background-position: 0 -3px; }
.b4 { width: 43px; height: 28px; background-position: -72px -5px; }
.b5 { width: 39px; height: 40px; background-position: -231px 0; }
.b6 { width: 43px; height: 47px; background: url("/img/avtootoplenie.png") no-repeat; }
.b7 { width: 53px; height: 44px; background: url("/img/podwal.png") no-repeat; }
@media (max-width: 640px) {
  .benefit h2 { font-size: 21px; }
  .benefit p { text-align: left; }
}

/* ---------- О застройщике ---------- */
.docs {
  max-width: 480px; margin: 40px auto 80px; padding: 22px 20px 30px;
  border: 1px solid var(--box-line); text-align: center;
}
.docs li { margin-bottom: 14px; }
.docs li:last-child { margin-bottom: 0; }
.docs a { display: inline-block; color: var(--brown); text-decoration: none; font-size: 18px; line-height: 1.35; }
.docs a span { border-bottom: 1px dotted #b29474; }
.docs a:hover span { border-bottom-style: solid; }
.docs a::before { content: ""; display: block; margin: 0 auto 5px; width: 21px; height: 22px; background: url("/img/ui/pdf.png") no-repeat; }
.docs a.zip::before { height: 25px; background-image: url("/img/ui/zip.png"); }
@media (max-width: 640px) { .docs a { font-size: 16px; } }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 24px 40px; margin-bottom: 54px; }
.contacts dt { font-size: 24px; line-height: 1.2; color: var(--ink); margin-bottom: 12px; }
.contacts dd { margin: 0; color: var(--text); }
.contacts a { color: inherit; text-decoration: none; }
.map-img { margin: 0; }
.map-img img { width: 100%; background: var(--beige); }
.map-img a { display: block; }
.map-img figcaption { margin-top: 8px; font-size: 14px; text-align: right; }
.map-img figcaption a { display: inline; color: var(--link); }
.contacts-map { margin-bottom: 80px; }
@media (max-width: 860px) { .contacts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .contacts { grid-template-columns: 1fr; gap: 18px; }
  .contacts dt { font-size: 20px; margin-bottom: 4px; }
}

/* ---------- Окружение ---------- */
.area { margin-bottom: 80px; }
.area .map-img { margin-bottom: 32px; }
.legend { columns: 4 200px; column-gap: 32px; }
.legend section { break-inside: avoid; }
.legend h2 { display: flex; align-items: center; gap: 8px; font: 700 15px/1.3 var(--sans); color: var(--ink); margin: 0 0 6px; }
.legend h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.legend ol { padding: 0; list-style: none; margin: 0 0 18px; }
.legend li { display: flex; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--text); margin-bottom: 3px; }
.legend li b { flex: none; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 10px; background: var(--c); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.legend .house { --c: #695a4b; }
.legend .house h2::before { border-radius: 2px; }

/* ---------- Этажи ---------- */
.floorplan { position: relative; max-width: 710px; margin: 72px auto 40px; }
.floorplan img { width: 100%; }
.floorplan a { position: absolute; display: block; background-repeat: no-repeat; background-size: 100% 100%; }
.floorplan a::before, .floorplan a::after { content: ""; position: absolute; }
.floorplan .num, .apt-list .num {
  display: inline-block; width: 35px; height: 35px;
  background: var(--brown); color: #fff; text-align: center;
  font: 700 24px/35px var(--sans);
}
.floorplan .num { position: absolute; transform: translate(-50%, -50%); pointer-events: none; transition: background .2s; }
.floorplan a:hover .num, .floorplan a:focus-visible .num { background: var(--gold); }

/* 1-й и 2-й этажи: подсветка квартир из прежних картинок, координаты в долях от плана 710×533 */
.fl-left  { left: .845%; top: 1.689%; width: 42.394%; height: 94.934%; background-image: url("/img/floor_1_back_left.png"); }
.fl-left:hover, .fl-left:focus-visible { background-image: url("/img/floor_1_back_left_hover.png"); }
.fl-left::after  { left: 57.475%; top: 41.700%; width: 23.588%; height: 6.917%; z-index: 6; }
.fl-left::before { left: 57.475%; top: 48.617%; width: 36.545%; height: 12.648%; z-index: 6; }
.fl-center { left: 26.197%; top: 1.689%; width: 48.028%; height: 56.848%; z-index: 5; background-image: url("/img/floor_1_back_center.png"); }
.fl-center:hover, .fl-center:focus-visible { background-image: url("/img/floor_1_back_center_hover.png"); }
.fl-right { right: .986%; top: 1.689%; width: 42.254%; height: 95.310%; background-image: url("/img/floor_1_back_right.png"); }
.fl-right:hover, .fl-right:focus-visible { background-image: url("/img/floor_1_back_right_hover.png"); }
.fl-right::before { left: 6.667%; top: 50.787%; width: 36.667%; height: 12.598%; z-index: 6; }

/* Третий (мансардный) этаж: план 710×523 */
.floorplan--mans::after { content: ""; position: absolute; width: 11.690%; height: 35.564%; bottom: 4.589%; left: 44.225%; z-index: 3; }
.mans-left  { left: 2.817%; top: 1.147%; width: 40.845%; height: 97.132%; }
.mans-left::after { left: 49.310%; top: 50.787%; width: 44.828%; height: 12.402%; z-index: 6; }
.mans-center { left: 24.789%; top: 1.147%; width: 50.141%; height: 58.891%; z-index: 5; }
.mans-right { right: 2.817%; top: 1.147%; width: 40.845%; height: 97.132%; }
.mans-right::after { left: 7.586%; top: 50.787%; width: 46.552%; height: 12.402%; z-index: 6; }
.mans-left:hover, .mans-left:focus-visible { background-image: url("/img/svg/kv_7_hover_opacity.svg"); background-size: cover; }
.mans-center:hover, .mans-center:focus-visible { background-image: url("/img/svg/kv_8_hover_opacity.svg"); background-size: cover; }
.mans-right:hover, .mans-right:focus-visible { background-image: url("/img/svg/kv_9_hover_opacity.svg"); background-size: cover; }

.apt-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 710px; margin: 0 auto 80px; }
.apt-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--box-line);
  color: var(--brown); text-decoration: none; font-size: 14px; line-height: 1.3;
  transition: border-color .2s;
}
.apt-list a:hover { border-color: var(--brown); }
.apt-list .num { flex: none; }
@media (max-width: 640px) {
  .floorplan { margin-top: 8px; }
  .floorplan .num { width: 28px; height: 28px; font-size: 18px; line-height: 28px; }
  .apt-list { grid-template-columns: 1fr; }
}

.scan { margin: 0 auto 80px; }
.scan a { display: block; cursor: zoom-in; }
.zoom-note { font-size: 13px; color: #9a9088; text-align: center; margin: 10px 0 0; }

/* ---------- Квартира ---------- */
.apt-head { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin: 58px 0 32px; }
.apt-head .page-title { margin: 0; }
.back { font-size: 13px; color: #9a9088; text-decoration: none; padding-left: 16px; background: url("/img/ui/back.png") no-repeat 0 50%; }
.back:hover { color: var(--brown); }
.apt-text { margin-bottom: 48px; }
.apt-text p { font-size: 16px; line-height: 24px; color: var(--brown); margin-bottom: 14px; }
.apt-text .lead { font-size: 22px; line-height: 1.35; }

.tabs-wrap > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 0 0 56px; color: #b0b0b0; }
.tabs label {
  cursor: pointer; font-size: 24px; line-height: 30px;
  padding: 5px 8px 1px; border: 1px solid transparent; color: #000;
}
.tabs label span { border-bottom: 1px dotted #7f7f7f; }
.tabs label:hover span { border-bottom-style: solid; }
.panels > div { display: none; }
.tabs-wrap > input:nth-of-type(1):checked ~ .tabs label:nth-child(1),
.tabs-wrap > input:nth-of-type(2):checked ~ .tabs label:nth-child(2),
.tabs-wrap > input:nth-of-type(3):checked ~ .tabs label:nth-child(3),
.tabs-wrap > input:nth-of-type(4):checked ~ .tabs label:nth-child(4),
.tabs-wrap > input:nth-of-type(5):checked ~ .tabs label:nth-child(5),
.tabs-wrap > input:nth-of-type(6):checked ~ .tabs label:nth-child(6) { color: var(--gold); border-color: #e1e1e1; }
.tabs-wrap > input:nth-of-type(1):checked ~ .tabs label:nth-child(1) span,
.tabs-wrap > input:nth-of-type(2):checked ~ .tabs label:nth-child(2) span,
.tabs-wrap > input:nth-of-type(3):checked ~ .tabs label:nth-child(3) span,
.tabs-wrap > input:nth-of-type(4):checked ~ .tabs label:nth-child(4) span,
.tabs-wrap > input:nth-of-type(5):checked ~ .tabs label:nth-child(5) span,
.tabs-wrap > input:nth-of-type(6):checked ~ .tabs label:nth-child(6) span { border: 0; }
.tabs-wrap > input:nth-of-type(1):focus-visible ~ .tabs label:nth-child(1),
.tabs-wrap > input:nth-of-type(2):focus-visible ~ .tabs label:nth-child(2),
.tabs-wrap > input:nth-of-type(3):focus-visible ~ .tabs label:nth-child(3),
.tabs-wrap > input:nth-of-type(4):focus-visible ~ .tabs label:nth-child(4),
.tabs-wrap > input:nth-of-type(5):focus-visible ~ .tabs label:nth-child(5),
.tabs-wrap > input:nth-of-type(6):focus-visible ~ .tabs label:nth-child(6) { outline: 2px solid var(--gold); outline-offset: 2px; }
.tabs-wrap > input:nth-of-type(1):checked ~ .panels > div:nth-child(1),
.tabs-wrap > input:nth-of-type(2):checked ~ .panels > div:nth-child(2),
.tabs-wrap > input:nth-of-type(3):checked ~ .panels > div:nth-child(3),
.tabs-wrap > input:nth-of-type(4):checked ~ .panels > div:nth-child(4),
.tabs-wrap > input:nth-of-type(5):checked ~ .panels > div:nth-child(5),
.tabs-wrap > input:nth-of-type(6):checked ~ .panels > div:nth-child(6) { display: block; }
.panels { margin-bottom: 80px; }
.panels img { margin: 0 auto; }
.panels .scheme { width: 420px; }
.panels a { display: block; cursor: zoom-in; }

.model { position: relative; }
.params { font-size: 14px; line-height: 20px; letter-spacing: .7px; text-transform: uppercase; color: #000; margin-bottom: 16px; }
.params b { font-weight: 700; }
.params .row { display: flex; flex-wrap: wrap; gap: 0 64px; }
@media (min-width: 900px) {
  .params { position: absolute; top: 0; left: 0; margin: 0; z-index: 2; }
  .params--right { left: auto; right: 0; text-align: right; }
  .params--right .row { display: block; }
  .model img { margin-top: -16px; }
}
@media (max-width: 640px) {
  .apt-head { margin: 32px 0 22px; }
  .apt-text { margin-bottom: 32px; }
  .apt-text .lead { font-size: 19px; }
  .tabs { gap: 8px 10px; margin-bottom: 28px; justify-content: flex-start; }
  .tabs label { font-size: 18px; line-height: 24px; padding: 4px 8px 2px; }
  .params { font-size: 13px; letter-spacing: .3px; }
  .params .row { display: block; }
}

/* ---------- Галерея ---------- */
.gal-head { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 32px; margin: 40px 0 18px; }
.gal-head h1 { font: 700 36px/1.2 var(--sans); color: var(--ink); }
.gallery .divider { margin-bottom: 24px; }

.carousel {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; background: #fff;
}
.carousel::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; scroll-margin-top: var(--gal-offset, 180px); }
.slide img { width: 100%; aspect-ratio: 960 / 535; object-fit: contain; background: #fff; }
.slide .prev, .slide .next {
  position: absolute; top: 50%; width: 44px; height: 64px; margin-top: -32px;
  background: rgba(255, 255, 255, .75); text-decoration: none;
}
.slide .prev { left: 0; }
.slide .next { right: 0; }
.slide .prev::before, .slide .next::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -4px;
  border-left: 2px solid var(--brown); border-bottom: 2px solid var(--brown); transform: rotate(45deg);
}
.slide .next::before { margin-left: -12px; transform: rotate(-135deg); }
.slide .prev:hover, .slide .next:hover { background: #fff; }
.slide .count { position: absolute; right: 52px; bottom: 8px; font-size: 13px; color: var(--brown); background: rgba(255, 255, 255, .8); padding: 0 6px; }
.thumbs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 12px 0 80px; }
.thumbs a { display: block; border: 1px solid transparent; opacity: .8; transition: opacity .2s, border-color .2s; }
.thumbs a:hover { opacity: 1; border-color: var(--brown); }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 640px) {
  .gal-head { margin: 24px 0 14px; }
  .gal-head h1 { font-size: 28px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .slide .prev, .slide .next { width: 36px; height: 52px; margin-top: -26px; }
  .gallery { --gal-offset: 150px; }
}

/* ---------- Подвал ---------- */
.ftr { background: var(--brown); color: #fff; flex: none; }
.ftr__in {
  max-width: calc(960px + 2 * var(--gutter)); margin: 0 auto; padding: 6px var(--gutter);
  min-height: 41px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px 24px;
}
.ftr__sales { grid-column: 2; font-size: 18px; letter-spacing: 1px; white-space: nowrap; }
.ftr__sales span { text-transform: uppercase; }
.ftr__sales a { color: #fff; text-decoration: none; font-weight: 700; }
.ftr__copy {
  grid-column: 3; justify-self: end; position: relative;
  display: grid; justify-items: end; padding-right: 37px;
  font-size: 12px; line-height: 15px; text-align: right; color: #a3988e;
}
.ftr__copy a { color: #d4c8b7; text-decoration: none; }
.ftr__copy a:hover span { text-decoration: underline; }
.ftr__copy i { position: absolute; right: 0; top: 50%; margin-top: -14px; width: 31px; height: 27px; background: url("/img/ui/agency.png") no-repeat; }
@media (max-width: 860px) {
  .ftr__in { grid-template-columns: 1fr; justify-items: center; padding: 12px var(--gutter); text-align: center; }
  .ftr__sales, .ftr__copy { grid-column: 1; }
  .ftr__copy { justify-self: center; justify-items: center; text-align: center; }
  .ftr__sales { font-size: 16px; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-bottom: 96px; }
.notfound p { color: var(--text); margin-bottom: 12px; }
