:root {
  --graphite: #242522;
  --graphite-soft: #363732;
  --warm: #f4f0e8;
  --paper: #fffdf8;
  --bronze: #9b6b35;
  --bronze-dark: #754b21;
  --green: #2e6849;
  --warning: #7b4a23;
  --line: #d9d1c3;
  --text-muted: #625f58;
  --radius: 18px;
  --shadow: 0 14px 38px rgba(36, 37, 34, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--warm);
  color: var(--graphite);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(100% - 32px, 1160px); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--graphite);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #d4954c;
  outline-offset: 3px;
}

.hero {
  background: var(--graphite);
  color: var(--paper);
  border-bottom: 5px solid var(--bronze);
}
.hero__inner { padding-block: 64px 56px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--bronze-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow--light, .hero .eyebrow { color: #d9ac73; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.13; }
h1 { max-width: 800px; font-size: clamp(2.35rem, 10vw, 5rem); }
h2 { font-size: clamp(2rem, 7vw, 3.25rem); }
h3 { font-size: clamp(1.55rem, 6vw, 2rem); }
.hero__lead { max-width: 680px; margin: 24px 0; color: #dcddd7; font-size: 1.1rem; }
.facts {
  display: grid;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.facts li::before { content: "—"; margin-right: 9px; color: #d9ac73; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--graphite);
  border-radius: 999px;
  background: transparent;
  color: var(--graphite);
  font: inherit;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button__icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}
.button--accent { border-color: #c99051; background: #c99051; color: #211d18; }
.button--phone { border-color: #d9ac73; color: var(--paper); }
.button--hero-secondary { border-color: #d9ac73; color: var(--paper); }
.button--whatsapp { background: var(--green); border-color: var(--green); color: white; }
.button--telegram { background: var(--graphite); color: white; }
.button:hover { filter: brightness(1.08); }

.section { padding-block: 64px; }
.section-heading { max-width: 740px; margin-bottom: 34px; }
.section-heading > p:last-child { color: var(--text-muted); }
.storage-grid { display: grid; gap: 24px; align-items: stretch; }
.storage-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.gallery { position: relative; background: #171815; }
.gallery__viewport { position: relative; aspect-ratio: 1; overflow: hidden; background: #e5ded2; }
.gallery__slide { position: absolute; inset: 0; }
.gallery__slide[hidden] { display: none; }
.gallery__item { overflow: hidden; }
.gallery__zoom {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery__zoom::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 24, 21, 0.78);
  color: white;
  content: "Увеличить";
  font: 700 0.78rem/1.2 system-ui, sans-serif;
  opacity: 0;
  transition: opacity 160ms ease;
}
.gallery__zoom:hover::after, .gallery__zoom:focus-visible::after { opacity: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.carousel-controls { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.carousel-control {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(23, 24, 21, 0.82);
  color: white;
  font: 500 2rem/1 system-ui, sans-serif;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
}
.carousel-control--prev { left: 0; }
.carousel-control--next { right: 0; }
.carousel-control:hover { background: rgba(23, 24, 21, 0.96); }
.carousel-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  min-width: 58px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(23, 24, 21, 0.78);
  color: white;
  font-size: 0.8rem;
  font-weight: 750;
  text-align: center;
  transform: translateX(-50%);
}
.media-placeholder {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  padding: 32px;
  background: #ded6ca;
  color: #625b51;
  text-align: center;
}
.video-wrap { display: grid; place-items: center; padding: 18px; background: #282a26; }
.video-wrap video { width: 100%; height: 100%; background: #171815; object-fit: contain; }
.video-load { width: min(260px, calc(100% - 32px)); margin: 0; border-color: #d9ac73; background: #d9ac73; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.address { margin: 7px 0 0; color: var(--text-muted); }
.status {
  flex: none;
  margin: 2px 0 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #dceadf;
  color: #23513a;
  font-size: 0.86rem;
  font-weight: 800;
}
.price { margin: 24px 0 0; font-size: clamp(1.8rem, 8vw, 2.5rem); font-weight: 850; line-height: 1.1; }
.price-note { margin: 7px 0 24px; color: var(--text-muted); font-size: 0.9rem; }
.details { display: grid; margin: 0; border-top: 1px solid var(--line); }
.details__row { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--text-muted); }
.details dd { margin: 0; font-weight: 750; }
.details__row--total dd { color: var(--bronze-dark); font-size: 1.18rem; }
.card-section { margin-top: 24px; }
.card-section h4 { margin: 0 0 6px; font-size: 1rem; }
.card-section p, .card-section ul { margin: 0; }
.feature-list { padding-left: 20px; }
.warning {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 4px solid #b7763e;
  background: #f3e5d5;
  color: var(--warning);
}
.card-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 26px; }
.message-fallback { margin-top: 15px; color: var(--text-muted); font-size: 0.9rem; }
.message-fallback summary { min-height: 44px; padding-top: 9px; cursor: pointer; font-weight: 700; }
.message-fallback p { padding: 12px; background: var(--warm); user-select: all; }

.section--dark { background: var(--graphite-soft); color: var(--paper); }
.two-columns { display: grid; gap: 32px; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { padding: 13px 0; border-bottom: 1px solid #5c5d57; }
.check-list li::before { content: "✓"; margin-right: 10px; color: #e0ad71; }
.prose p:first-child { margin-top: 0; }
.footer { padding-block: 42px; background: #1d1e1b; color: #e7e5df; }
.footer p { margin: 7px 0 0; color: #b9bab4; }
.footer__inner, .footer__contacts { display: grid; gap: 18px; }
.footer__contacts { font-style: normal; }
.footer__contacts a { min-height: 44px; padding-block: 9px; }
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: rgba(15, 16, 14, 0.96);
  color: white;
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(15, 16, 14, 0.86); }
.lightbox__figure { display: grid; max-width: min(1200px, 88vw); margin: 0; place-items: center; gap: 10px; }
.lightbox__figure img { max-width: 100%; max-height: 84vh; object-fit: contain; }
.lightbox__figure figcaption { color: #dcddd7; font-size: 0.9rem; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: fixed;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(36, 37, 34, 0.86);
  color: white;
  cursor: pointer;
}
.lightbox__close { top: 16px; right: 16px; font-size: 2rem; line-height: 1; }
.lightbox__nav { top: 50%; font-size: 2.3rem; line-height: 1; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav[hidden] { display: none; }
.toast {
  position: fixed;
  z-index: 90;
  right: 16px;
  bottom: 16px;
  left: 16px;
  margin: 0 auto;
  max-width: 560px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--graphite);
  color: white;
  box-shadow: var(--shadow);
}
.toast[hidden], video[hidden], .video-load[hidden] { display: none; }

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details__row { grid-template-columns: 1fr auto; align-items: baseline; }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 820px) {
  .hero__inner { padding-block: 92px 82px; }
  .section { padding-block: 88px; }
  .storage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .two-columns { grid-template-columns: 0.85fr 1.15fr; gap: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
