@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("fonts/manrope-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;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("fonts/unbounded-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;
}

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

:root {
  --bg: #f3f1ee;
  --card: #ffffff;
  --ink: #121212;
  --muted: #6a655e;
  --line: #e4dfd7;
  --navy: #171717;
  --navy-soft: #2c2c2c;
  --cream: #f7f5f2;
  --gold: #c8a45a;
  --price: #9b2f1a;
  --focus: #e8b84a;
  --cover: #5c5c5c;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(200, 164, 90, 0.12), transparent 60%),
    linear-gradient(180deg, #ebe7e1 0%, var(--bg) 240px);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  background: #1a1a1a;
  color: var(--cream);
  overflow: hidden;
}

.profile-cover {
  height: 168px;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.08), rgba(18, 18, 18, 0.55)),
    url("media/cover.jpg") center / cover no-repeat,
    #3a3a3a;
}

.site-header .inner,
.site-footer .inner,
.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header .inner.profile {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 0 22px;
  margin-top: -56px;
  position: relative;
  z-index: 1;
}

.profile-main {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.avatar {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  border: 4px solid #1a1a1a;
  background: #333;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.profile-text {
  min-width: 0;
  padding-bottom: 4px;
}

.specialist {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.role,
.hours {
  margin: 6px 0 0;
  color: #cfc7bb;
  font-size: 14px;
  font-weight: 500;
}

.hours {
  margin-top: 2px;
  color: #a8a094;
  font-size: 13px;
}

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.contact-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
}

.wrap {
  flex: 1;
  padding: 36px 0 56px;
}

.top h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.top p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 10px 24px rgba(27, 42, 58, 0.05);
}

.filter-field {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.filter-price { grid-column: span 5; }
.filter-floor { grid-column: span 3; }
.filter-rooms { grid-column: span 4; }
.filter-area { grid-column: span 4; }
.filter-actions {
  grid-column: span 3;
  display: flex;
  align-items: flex-end;
}

.filter-label,
.filter-field > label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-field select,
.filter-field input[type="number"],
.filter-field input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d8cdbc;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.filter-field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.filter-field input[type="number"]::-webkit-outer-spin-button,
.filter-field input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.filter-pair {
  display: flex;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.filter-pair > input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  overflow: hidden;
}

.filter-price input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  padding-left: 10px;
  padding-right: 10px;
}

.filter-floor input {
  padding: 0 8px;
  text-align: center;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d8cdbc;
  border-radius: 999px;
  background: #fff;
  font-weight: 650;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.chip:hover span {
  border-color: #a89f90;
  background: #f3efe8;
}

.chip:active span {
  transform: scale(0.96);
  background: #ebe4da;
}

.chip input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.chip:hover input:checked + span {
  border-color: #2c2c2c;
  background: #2c2c2c;
}

.chip:active input:checked + span {
  background: #111;
  border-color: #111;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.filter-area-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.filter-area-value {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.range {
  position: relative;
  height: 42px;
  display: flex;
  align-items: center;
}

.range-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 999px;
  background: #e7dfd2;
}

.range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--navy);
}

.range input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(27, 42, 58, 0.25);
  pointer-events: auto;
  cursor: pointer;
}

.range input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(27, 42, 58, 0.25);
  pointer-events: auto;
  cursor: pointer;
}

.filter-actions button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8cdbc;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.filter-actions button:hover {
  border-color: var(--navy);
  background: #f3efe8;
}

.filter-actions button:active {
  transform: scale(0.98);
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.catalog-empty {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid #efe6d8;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(27, 42, 58, 0.06);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(27, 42, 58, 0.12);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.card-media .plan-soon {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 16px 18px 18px;
}

.complex {
  margin: 0;
  color: var(--navy-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h2 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3ece2;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.price {
  margin: auto 0 0;
  padding-top: 16px;
  color: var(--price);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.8);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.back:hover { background: #fff; }

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.home-btn:hover {
  background: #2c2c2c;
  text-decoration: none;
}

.object h1 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.object .price {
  margin: 12px 0 0;
  font-size: 32px;
}

.plan-full.fixed-box,
.plan-full {
  display: block;
  margin: 24px 0 0;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid #efe6d8;
  background: #fff;
  box-shadow: 0 12px 28px rgba(27, 42, 58, 0.06);
  overflow: hidden;
  text-decoration: none;
}

.plan-full img {
  display: block;
  width: 100%;
  height: auto;
}

.plan-full:hover { box-shadow: 0 16px 36px rgba(27, 42, 58, 0.1); }

.plan-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.object-panel {
  margin-top: 26px;
  padding: 6px 26px;
  border: 1px solid #efe6d8;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 16px 36px rgba(27, 42, 58, 0.07);
}

.specs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.specs li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 24px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.specs li:last-child { border-bottom: 0; }

.specs span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.specs strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-footer {
  margin-top: auto;
  background: #121212;
  color: #c9c2b6;
}

.site-footer .inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 0 30px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 36px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.site-footer a {
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
}

.contact b {
  color: #a8a094;
  font-weight: 600;
}

.footer-realtor {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #e7dfd2;
  font-size: 14px;
  font-weight: 600;
}

.footer-legal {
  margin: 0;
  max-width: 72ch;
  color: #8f877b;
  font-size: 12px;
  line-height: 1.55;
}

.footer-legal span {
  display: block;
}

.legal-page h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.legal-page .lead {
  margin: 14px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
}

.legal-page p,
.legal-page ul {
  max-width: 68ch;
  color: var(--ink);
}

.legal-page ul {
  margin: 0;
  padding-left: 1.2em;
}

.legal-page li { margin: 6px 0; }

.legal-page a {
  color: var(--price);
  font-weight: 650;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 20, 28, 0.92);
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 72px);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 28px;
  cursor: pointer;
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  margin: 0;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.gallery-zoomable {
  cursor: zoom-in;
}

.media-gallery {
  margin-top: 24px;
}

.gallery-frame {
  position: relative;
  width: min(100%, 640px);
  overflow: hidden;
  border: 1px solid #efe6d8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(27, 42, 58, 0.06);
}

.gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f7f3ec;
  overflow: hidden;
}

.gallery-slide,
.gallery-plan {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.gallery-slide.is-active,
.gallery-plan.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slide img,
.gallery-plan img,
.gallery-plan a {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-plan a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.gallery-plan img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-empty {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--navy);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

.gallery-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin: 12px 0 0;
}

.gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfc4b4;
  cursor: pointer;
}

.gallery-dots button.is-active {
  width: 22px;
  background: var(--navy);
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.gallery-actions button {
  padding: 10px 16px;
  border: 1px solid #d8cdbc;
  border-radius: 999px;
  background: #fffdf9;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.gallery-actions button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.gallery-counter {
  margin: 10px 0 0;
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.gallery-meta {
  min-height: 54px;
}

@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: 0 12px 28px rgba(27, 42, 58, 0.06);
  }
}

@media (max-width: 900px) {
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .site-header .inner,
  .site-footer .inner,
  .wrap {
    width: min(1080px, calc(100% - 28px));
  }

  .profile-cover {
    height: 128px;
  }

  .site-header .inner.profile {
    margin-top: -48px;
    gap: 14px;
    padding-bottom: 18px;
  }

  .profile-main {
    align-items: flex-end;
    gap: 12px;
  }

  .avatar {
    width: 88px;
    height: 88px;
    border-width: 3px;
  }

  .specialist {
    font-size: clamp(20px, 6.5vw, 26px);
  }

  .role,
  .hours {
    font-size: 12px;
  }

  .contact-bar {
    gap: 6px;
  }

  .contact-chip {
    min-height: 34px;
    font-size: 12px;
  }

  .wrap {
    padding: 24px 0 40px;
  }

  .top h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .filter-field,
  .filter-price,
  .filter-floor,
  .filter-rooms,
  .filter-area,
  .filter-actions {
    grid-column: span 1;
  }

  .filter-floor .filter-pair,
  .filter-price .filter-pair {
    display: flex;
  }

  .filter-floor input,
  .filter-price input {
    padding-left: 12px;
    padding-right: 12px;
  }

  .catalog {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
  }

  .card {
    border-radius: 16px;
  }

  .card-body {
    padding: 14px 16px 16px;
  }

  .card h2 {
    font-size: 24px;
  }

  .price {
    font-size: 20px;
    padding-top: 12px;
  }

  .object h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .object .price {
    font-size: 26px;
  }

  .object-panel {
    margin-top: 20px;
    padding: 4px 16px;
    border-radius: 16px;
  }

  .specs li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px 0;
  }

  .specs span {
    font-size: 12px;
  }

  .specs strong {
    font-size: 16px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
  }

  .gallery-nav.prev { left: 8px; }
  .gallery-nav.next { right: 8px; }

  .gallery-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gallery-actions button {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
  }

  .site-footer .inner {
    gap: 14px;
    padding: 20px 0 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 14px;
  }

  .contact {
    flex-direction: column;
    gap: 2px;
  }

  .lightbox {
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .lightbox img {
    max-height: calc(100vh - 88px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 8px;
  }

  .lightbox-close {
    top: max(8px, env(safe-area-inset-top));
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

@media (max-width: 380px) {
  .facts li {
    font-size: 12px;
  }

  .gallery-actions {
    grid-template-columns: 1fr;
  }
}


.plan-full.fixed-box {
  width: min(100%, 640px);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #f7f3ec;
  overflow: hidden;
}

.plan-full.fixed-box img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.plan-full.fixed-box .plan-soon {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}
