:root {
  --forest: #173b2b;
  --moss: #7d9468;
  --sage: #dbe7d2;
  --leaf: #f0f6ec;
  --cream: #fbf7ee;
  --clay: #ad7652;
  --charcoal: #1e2521;
  --muted: #69756d;
  --line: rgba(30, 37, 33, 0.13);
  --shadow: 0 22px 70px rgba(20, 43, 32, 0.18);
  --content: min(70vw, 1180px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background:
    linear-gradient(180deg, rgba(240, 246, 236, 0.6), rgba(251, 247, 238, 0.85) 34%, var(--cream)),
    var(--cream);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header,
.admin-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 6vw, 92px);
  color: #fff;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.scrolled,
.admin-header,
.admin-body .site-header {
  background: rgba(23, 59, 43, 0.94);
  box-shadow: 0 14px 36px rgba(12, 28, 19, 0.2);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.admin-nav,
.hero-actions,
.card-bottom,
.section-head,
.footer,
.admin-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.main-nav,
.admin-nav {
  gap: 26px;
  font-size: 14px;
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.page-hero-bg {
  position: absolute;
  inset: 0;
  transform: scale(1.03);
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(10, 22, 16, 0.78), rgba(10, 22, 16, 0.3) 48%, rgba(10, 22, 16, 0.12)),
    linear-gradient(0deg, rgba(10, 22, 16, 0.64), transparent 48%),
    url("/static/images/background/hero-russian-nature.png") center/cover;
}

.page-hero-bg {
  background:
    linear-gradient(90deg, rgba(10, 22, 16, 0.78), rgba(10, 22, 16, 0.3) 48%, rgba(10, 22, 16, 0.12)),
    linear-gradient(0deg, rgba(10, 22, 16, 0.64), transparent 48%),
    url("/static/images/background/nature-path.png") center/cover;
}

.hero-content {
  position: relative;
  width: min(720px, var(--content));
  margin: 64px auto 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero .eyebrow,
.page-hero .eyebrow,
.detail-overlay .eyebrow {
  color: #f0c58b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 9vw, 116px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.12;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero p,
.page-hero p,
.detail-overlay p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 14px 30px rgba(181, 121, 85, 0.3);
}

.button.glass {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.button.outline {
  color: var(--forest);
  border-color: rgba(23, 59, 43, 0.22);
  background: transparent;
}

.button.full {
  width: 100%;
}

.hero-actions,
.contact-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  justify-content: flex-start;
}

.hero-strip {
  position: absolute;
  right: 15vw;
  bottom: 34px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-strip span,
.tags span,
.feature-row span {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 9px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 126px) 0;
}

.section-head {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head a {
  color: var(--forest);
  font-weight: 800;
}

.intro-grid,
.about-grid,
.detail-layout,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.benefits {
  display: grid;
  gap: 14px;
}

.benefits div,
.spec-grid div,
.stats div,
.contact-panel,
.admin-card,
.admin-form,
.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.benefits div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px;
}

.benefits strong {
  color: var(--clay);
}

.tinted {
  width: 100%;
  max-width: none;
  padding-left: 15vw;
  padding-right: 15vw;
  background:
    linear-gradient(135deg, rgba(219, 231, 210, 0.86), rgba(251, 247, 238, 0.76)),
    url("/static/images/background/nature-path.png") center/cover fixed;
  background-blend-mode: screen, normal;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.object-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 54px rgba(20, 43, 32, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.object-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(20, 43, 32, 0.24);
}

.card-image {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.object-card:hover img {
  transform: scale(1.06);
}

.object-card img {
  transition: transform 0.6s ease;
}

.card-body {
  display: grid;
  min-height: 246px;
  padding: 22px;
  gap: 16px;
}

.card-kicker {
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
}

.feature-row,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-row span,
.tags span {
  color: var(--forest);
  border-color: rgba(23, 59, 43, 0.14);
  background: var(--leaf);
}

.card-bottom {
  justify-content: space-between;
  gap: 16px;
}

.card-bottom a {
  color: var(--forest);
  font-weight: 900;
}

.video-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 34vw);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.video-card {
  scroll-snap-align: start;
  border-radius: 8px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: var(--forest);
  box-shadow: var(--shadow);
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(23, 59, 43, 0.34), rgba(181, 121, 85, 0.24)),
    url("/static/images/hero-estate.png") center/cover;
}

.video-placeholder span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-size: 28px;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.review span {
  color: var(--clay);
}

.review cite {
  color: var(--forest);
  font-style: normal;
  font-weight: 900;
}

.page-hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  padding: 160px 15vw 76px;
  color: #fff;
}

.page-hero.compact {
  min-height: 52vh;
}

.page-hero-content {
  position: relative;
  max-width: 1200px;
    margin-bottom: 150px;
}

.page-hero-content h1 {
  font-size: 100px;
}

.detail-hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 25, 17, 0.78), rgba(11, 25, 17, 0.2));
}

.detail-overlay {
  position: absolute;
  left: 15vw;
  bottom: 76px;
  z-index: 1;
  max-width: 720px;
  color: #fff;
}

.detail-main h2 {
  font-size: 34px;
}

.spec-grid,
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.spec-grid div,
.stats div {
  padding: 20px;
}

.spec-grid span,
.stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.spec-grid strong,
.stats strong {
  display: block;
  margin-top: 8px;
  color: var(--forest);
  font-size: 20px;
}

.contact-panel {
  align-self: start;
  padding: 28px;
}

.contact-panel .button {
  margin-top: 12px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  height: 290px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery-item figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 22, 16, 0.52);
  backdrop-filter: blur(12px);
}

.territory-mosaic {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  grid-template-rows: 180px 180px;
  gap: 14px;
}

.territory-mosaic img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.territory-mosaic img:first-child {
  grid-row: span 2;
}

.footer {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 32, 22, 0.96), rgba(23, 59, 43, 0.9)),
    url("/static/images/background/nature-path.png") center/cover;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 76% 10%, rgba(173, 118, 82, 0.26), transparent 30%);
}

.footer-inner {
  position: relative;
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.85fr 1.1fr;
  gap: 34px;
  padding: 58px 0;
}

.footer-brand {
  width: max-content;
  margin-bottom: 20px;
}

.footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-column,
.footer-note {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column span,
.footer-note span {
  color: #f0c58b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-column a,
.footer-note a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-note {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.flash-wrap {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.flash {
  padding: 14px 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--forest);
  box-shadow: var(--shadow);
}

.flash.error {
  background: #8d3434;
}

.admin-body {
  min-height: 100vh;
  background: var(--leaf);
}

.admin-main {
  width: min(1180px, calc(100% - 36px));
  margin: 120px auto 60px;
}

.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-title h1 {
  margin: 0;
  font-size: 42px;
}

.admin-login {
  display: grid;
  min-height: 70vh;
  place-items: center;
}

.admin-card {
  width: min(440px, 100%);
  padding: 30px;
}

.admin-form,
.admin-table-wrap {
  padding: 24px;
  margin-bottom: 24px;
}

.compact-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--forest);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--charcoal);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.span-2 {
  grid-column: span 2;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table a,
.text-button {
  margin-right: 12px;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1120px) {
  :root {
    --content: min(86vw, 960px);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tinted {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .hero-strip,
  .detail-overlay {
    right: 7vw;
    left: 7vw;
  }

  .page-hero {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --content: calc(100vw - 36px);
  }

  .site-header,
  .admin-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 8px;
    background: rgba(23, 59, 43, 0.97);
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    margin: 0 18px 128px;
  }

  .hero p,
  .page-hero p,
  .detail-overlay p {
    font-size: 17px;
  }

  .hero-strip {
    left: 18px;
    right: 18px;
    bottom: 22px;
  }

  .section-head,
  .footer,
  .admin-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-grid,
  .about-grid,
  .detail-layout,
  .contact-section,
  .cards,
  .cards.two,
  .reviews,
  .gallery,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .tinted {
    padding-left: 18px;
    padding-right: 18px;
  }

  .span-2 {
    grid-column: span 1;
  }

  .video-slider {
    grid-auto-columns: minmax(280px, 86vw);
  }

  .spec-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .territory-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 190px);
  }

  .territory-mosaic img:first-child {
    grid-row: auto;
  }

  .footer-links {
    text-align: left;
  }

  .admin-table-wrap {
    overflow-x: auto;
  }
}

.page-hero-content h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.15);
}

.page-hero-content p {
  max-width: 580px;
  margin-bottom: 28px;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
  font-weight: 400;
}

/* Дополнительный адаптив для маленьких экранов */
@media (max-width: 600px) {
  .page-hero-content h1 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.1;
  }

  .page-hero-content p {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* ============================================
   АДМИНКА - Стили в стиле основного сайта
   ============================================ */

/* --- Общие стили админки --- */
.admin-body {
    background: var(--cream);
    min-height: 100vh;
    padding-top: 0;
}

.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(18px, 4vw, 60px);
    background: rgba(23, 59, 43, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: 0 4px 30px rgba(12, 28, 19, 0.2);
}

.admin-header .brand {
    color: #fff;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
}

.admin-header .brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.admin-nav a:hover {
    color: #fff;
    border-bottom-color: var(--clay);
}

.admin-nav a:last-child {
    color: rgba(255, 255, 255, 0.5);
    border-bottom-color: transparent;
}

.admin-nav a:last-child:hover {
    color: #e74c3c;
}

/* --- Основной контейнер админки --- */
.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

/* --- Заголовок страницы --- */
.admin-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--line);
}

.admin-title .eyebrow {
    color: var(--clay);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 4px;
}

.admin-title h1 {
    margin: 0;
    font-size: 32px;
    color: var(--forest);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-title .subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

/* --- Карточки и формы --- */
.admin-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgba(20, 43, 32, 0.08);
    padding: 32px;
}

.admin-form {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgba(20, 43, 32, 0.08);
    padding: 32px;
    margin-bottom: 24px;
}

.admin-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-form .span-2 {
    grid-column: span 2;
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--forest);
    font-weight: 600;
    font-size: 13px;
}

.admin-form label .hint {
    font-weight: 400;
    color: var(--muted);
    font-size: 12px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    color: var(--charcoal);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--clay);
    box-shadow: 0 0 0 3px rgba(173, 118, 82, 0.1);
}

.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-form .check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}

.admin-form .check input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--clay);
}

.admin-form .file-input {
    padding: 8px;
    background: var(--leaf);
    border: 2px dashed var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.admin-form .file-input:hover {
    border-color: var(--clay);
}

/* --- Таблицы --- */
.admin-table-wrap {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgba(20, 43, 32, 0.08);
    padding: 24px;
    margin-bottom: 24px;
    overflow: hidden;
}

.admin-table-wrap h2 {
    font-size: 18px;
    color: var(--forest);
    margin: 0 0 16px 0;
    font-weight: 700;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead th {
    background: var(--leaf);
    color: var(--forest);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 2px solid var(--line);
}

.admin-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    color: var(--charcoal);
}

.admin-table tbody tr:hover {
    background: rgba(219, 231, 210, 0.3);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table .status-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.admin-table .status-badge.active {
    background: #d4edda;
    color: #155724;
}

.admin-table .status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.admin-table .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-table .actions a,
.admin-table .actions button {
    font-size: 13px;
    color: var(--forest);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.admin-table .actions a:hover,
.admin-table .actions button:hover {
    background: rgba(23, 59, 43, 0.08);
}

.admin-table .actions .danger {
    color: #dc3545;
}

.admin-table .actions .danger:hover {
    background: rgba(220, 53, 69, 0.08);
}

/* --- Форма входа --- */
.admin-login {
    display: grid;
    min-height: 80vh;
    place-items: center;
    padding: 20px;
}

.admin-login .admin-card {
    max-width: 420px;
    width: 100%;
    padding: 40px;
    text-align: center;
}

.admin-login .admin-card .eyebrow {
    color: var(--clay);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.admin-login .admin-card h1 {
    font-size: 28px;
    color: var(--forest);
    margin: 8px 0 24px;
    font-weight: 700;
}

.admin-login .admin-card label {
    text-align: left;
    margin-bottom: 16px;
}

.admin-login .admin-card input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    margin-top: 4px;
    transition: border-color 0.2s ease;
}

.admin-login .admin-card input:focus {
    outline: none;
    border-color: var(--clay);
}

.admin-login .admin-card .button {
    width: 100%;
    margin-top: 8px;
}

/* --- Медиа грид --- */
.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 8px 0;
}

.admin-media-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(20, 43, 32, 0.12);
}

.admin-media-card .preview {
    aspect-ratio: 16/10;
    background: var(--leaf);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.admin-media-card .preview img,
.admin-media-card .preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-media-card .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--clay);
    color: #fff;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-media-card .info {
    padding: 12px 14px;
}

.admin-media-card .info .filename {
    font-size: 13px;
    font-weight: 600;
    color: var(--forest);
    word-break: break-all;
}

.admin-media-card .info .caption {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.admin-media-card .info .order {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.admin-media-card .actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.admin-media-card .actions .btn-small {
    font-size: 11px;
    padding: 4px 12px;
    min-height: 30px;
    border-radius: 6px;
}

.admin-media-card .actions .btn-small.danger {
    border-color: #dc3545;
    color: #dc3545;
}

.admin-media-card .actions .btn-small.danger:hover {
    background: #dc3545;
    color: #fff;
}

/* --- Адаптив для админки --- */
@media (max-width: 768px) {
    .admin-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .admin-nav {
        gap: 12px;
        flex-wrap: wrap;
    }

    .admin-nav a {
        font-size: 13px;
    }

    .admin-main {
        padding: 90px 12px 40px;
    }

    .admin-title {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .admin-title h1 {
        font-size: 24px;
    }

    .admin-actions {
        width: 100%;
    }

    .admin-actions .button {
        flex: 1;
        text-align: center;
        font-size: 13px;
        padding: 10px 14px;
    }

    .admin-form .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-form .span-2 {
        grid-column: span 1;
    }

    .admin-login .admin-card {
        padding: 28px 20px;
    }

    .admin-table {
        font-size: 13px;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: 8px 10px;
    }

    .admin-table-wrap {
        padding: 16px;
        overflow-x: auto;
    }

    .admin-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .admin-nav a {
        font-size: 12px;
    }

    .admin-title h1 {
        font-size: 20px;
    }

    .admin-card,
    .admin-form {
        padding: 20px;
    }

    .admin-media-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   АДМИНКА - Дополнительные стили
   ============================================ */

/* --- Навигация --- */
.admin-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.admin-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
}

.admin-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.admin-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.admin-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Статистика --- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(20, 43, 32, 0.06);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--forest);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
    font-weight: 500;
}

/* --- Таблицы --- */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.table-header h2 {
    margin: 0;
}

.table-count {
    font-size: 13px;
    color: var(--muted);
    background: var(--leaf);
    padding: 4px 12px;
    border-radius: 999px;
}

.table-scroll {
    overflow-x: auto;
}

.type-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.type-badge.house {
    background: #d4edda;
    color: #155724;
}

.type-badge.hall {
    background: #cce5ff;
    color: #004085;
}

.review-text {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table .actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-table .actions a,
.admin-table .actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.admin-table .actions a:hover,
.admin-table .actions button:hover {
    background: rgba(23, 59, 43, 0.08);
}

.admin-table .actions .media-link {
    color: var(--clay);
}

/* --- Форма загрузки --- */
.upload-form .form-grid {
    grid-template-columns: 1fr 1fr;
}

.file-upload-wrapper {
    grid-column: span 2;
}

.file-input-wrapper {
    position: relative;
    border: 2px dashed var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--leaf);
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.file-input-wrapper:hover {
    border-color: var(--clay);
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-name {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.admin-form h3 {
    font-size: 18px;
    color: var(--forest);
    margin: 0 0 16px 0;
}

/* --- Медиа карточки --- */
.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 8px 0;
}

.admin-media-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(20, 43, 32, 0.12);
}

.admin-media-card .preview {
    aspect-ratio: 16/10;
    background: var(--leaf);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.admin-media-card .preview img,
.admin-media-card .preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-media-card .preview .video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    pointer-events: none;
}

.admin-media-card .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--clay);
    color: #fff;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.admin-media-card .info {
    padding: 14px;
}

.admin-media-card .info .filename {
    font-size: 13px;
    font-weight: 600;
    color: var(--forest);
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.admin-media-card .info .caption {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.admin-media-card .info .order {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
}

.admin-media-card .actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.admin-media-card .btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    min-height: 30px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.admin-media-card .btn-small:hover {
    background: var(--leaf);
}

.admin-media-card .btn-small.danger {
    border-color: #dc3545;
    color: #dc3545;
}

.admin-media-card .btn-small.danger:hover {
    background: #dc3545;
    color: #fff;
}

/* --- Пустое состояние --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-state .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

.empty-state .empty-hint {
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
    opacity: 0.7;
}

/* --- Адаптив --- */
@media (max-width: 992px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .upload-form .form-grid {
        grid-template-columns: 1fr;
    }

    .file-upload-wrapper {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .admin-nav-toggle {
        display: flex;
    }

    .admin-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(23, 59, 43, 0.98);
        backdrop-filter: blur(18px);
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        display: none;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .admin-nav.open {
        display: flex;
    }

    .admin-nav a {
        padding: 10px 14px;
        border-radius: 8px;
        border-bottom: none;
        width: 100%;
    }

    .admin-nav a:hover {
        background: rgba(255,255,255,0.05);
        border-bottom: none;
    }

    .admin-nav a.active {
        background: rgba(255,255,255,0.08);
        border-bottom: none;
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-number {
        font-size: 24px;
    }

    .admin-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .review-text {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .admin-media-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .admin-title h1 {
        font-size: 22px;
    }

    .admin-card,
    .admin-form,
    .admin-table-wrap {
        padding: 16px;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: 6px 8px;
        font-size: 12px;
    }

    .admin-table .actions a,
    .admin-table .actions button {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .type-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
}

/* ============================================
   ФОРМА ОТЗЫВА
   ============================================ */

.review-form-section {
    background: var(--leaf);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
}

.review-form-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.review-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.review-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-form .form-group label {
    font-weight: 600;
    color: var(--forest);
    font-size: 14px;
}

.review-input,
.review-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease;
    background: #fff;
    font-family: inherit;
}

.review-input:focus,
.review-textarea:focus {
    outline: none;
    border-color: var(--clay);
    box-shadow: 0 0 0 3px rgba(173, 118, 82, 0.1);
}

.review-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Звездный рейтинг */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f5b342;
}

.star-rating label:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .review-form-section {
        padding: 24px;
    }

    .review-form .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .star-rating label {
        font-size: 28px;
    }
}

/* ============================================
   БЛОК ОТЗЫВОВ - Стили для формы
   ============================================ */

.review-form-section {
    padding: 60px 20px;
    background: var(--leaf);
    border-radius: 16px;
    margin: 40px auto;
    max-width: var(--content);
    width: 100%;
    box-sizing: border-box;
}

.review-form-section .section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.review-form-section .section-head .eyebrow {
    color: var(--clay);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.review-form-section .section-head h2 {
    font-size: 32px;
    color: var(--forest);
    margin: 0;
}

.review-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

.review-form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(20, 43, 32, 0.06);
    transition: box-shadow 0.3s ease;
}

.review-form:hover {
    box-shadow: 0 12px 60px rgba(20, 43, 32, 0.1);
}

.review-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.review-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-form .form-group label {
    font-weight: 600;
    color: var(--forest);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.review-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    color: var(--charcoal);
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
}

.review-input:focus {
    outline: none;
    border-color: var(--clay);
    box-shadow: 0 0 0 4px rgba(173, 118, 82, 0.08);
}

.review-input::placeholder {
    color: var(--muted);
    font-weight: 400;
}

.review-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    color: var(--charcoal);
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.review-textarea:focus {
    outline: none;
    border-color: var(--clay);
    box-shadow: 0 0 0 4px rgba(173, 118, 82, 0.08);
}

.review-textarea::placeholder {
    color: var(--muted);
    font-weight: 400;
}

/* --- Звездный рейтинг --- */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    padding: 4px 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 34px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    user-select: none;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f5b342;
    transform: scale(1.05);
}

.star-rating label:active {
    transform: scale(0.9);
}

/* --- Кнопка отправки --- */
.review-form .button {
    margin-top: 8px;
    padding: 14px 36px;
    font-size: 15px;
    min-height: 54px;
    border-radius: 999px;
    background: var(--clay);
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(173, 118, 82, 0.25);
    width: 100%;
}

.review-form .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(173, 118, 82, 0.35);
    background: #9a6647;
}

.review-form .button:active {
    transform: translateY(0);
}

/* --- Адаптив --- */
@media (max-width: 768px) {
    .review-form-section {
        padding: 40px 16px;
        margin: 24px 0;
        border-radius: 12px;
    }

    .review-form-section .section-head h2 {
        font-size: 26px;
    }

    .review-form {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .review-form .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .star-rating label {
        font-size: 28px;
    }

    .review-form .button {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .review-form-section .section-head h2 {
        font-size: 22px;
    }

    .review-form {
        padding: 20px 16px;
    }

    .star-rating label {
        font-size: 24px;
        gap: 4px;
    }

    .review-input,
    .review-textarea {
        font-size: 14px;
        padding: 10px 14px;
    }
}

/* ============================================
   СТРАНИЦА ОБЪЕКТА - Герой как на главной
   ============================================ */

.detail-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 22, 16, 0.78), rgba(10, 22, 16, 0.3) 48%, rgba(10, 22, 16, 0.12)),
        linear-gradient(0deg, rgba(10, 22, 16, 0.64), transparent 48%),
        url("/static/images/background/hero-russian-nature.png") center/cover;
    transform: scale(1.03);
}

.detail-overlay {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 40px 20px;
    padding-left: clamp(20px, 6vw, 60px);
    color: #fff;
}

.detail-overlay .eyebrow {
    color: #f0c58b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    display: inline-block;
    margin-bottom: 12px;
}

.detail-overlay h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 0.95;
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.detail-overlay p {
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 420px;
    margin-bottom: 24px;
}

/* --- Адаптив --- */
@media (max-width: 768px) {
    .detail-hero {
        min-height: 50vh;
    }

    .detail-hero-bg {
        background:
            linear-gradient(0deg, rgba(10, 22, 16, 0.7) 0%, rgba(10, 22, 16, 0.3) 60%, transparent 100%),
            url("/static/images/background/hero-russian-nature.png") center/cover;
    }

    .detail-overlay {
        padding: 20px;
        text-align: center;
        max-width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .detail-overlay p {
        max-width: 100%;
        margin: 0 auto 16px;
    }

    .detail-overlay .button {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .detail-hero {
        min-height: 45vh;
    }

    .detail-overlay h1 {
        font-size: 32px;
    }

    .detail-overlay p {
        font-size: 15px;
    }
}

/* ============================================
   КАРТОЧКИ ОБЪЕКТОВ - Улучшенные стили
   ============================================ */

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 980px;
    margin: 0 auto;
}

.cards.two {
    grid-template-columns: repeat(2, 1fr);
}

.object-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(20, 43, 32, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--line);
}

.object-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(20, 43, 32, 0.15);
}

.card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--leaf);
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.object-card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
    gap: 10px;
}

.card-kicker {
    display: inline-block;
    color: var(--clay);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--forest);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.card-body h3 a:hover {
    color: var(--clay);
}

.card-body > p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0 0 8px 0;
    flex: 1;
}

.feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 8px;
}

.feature-row span {
    display: inline-block;
    padding: 4px 12px;
    background: var(--leaf);
    color: var(--forest);
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(23, 59, 43, 0.08);
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}

.card-bottom strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--forest);
}

.card-bottom a {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--clay);
    text-decoration: none;
    transition: color 0.2s ease;
    gap: 4px;
}

.card-bottom a::after {
    content: "→";
    transition: transform 0.2s ease;
}

.card-bottom a:hover {
    color: #8a5d3f;
}

.card-bottom a:hover::after {
    transform: translateX(4px);
}

/* --- Адаптив для карточек --- */
@media (max-width: 820px) {
    .cards {
        gap: 20px;
    }

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

    .card-body h3 {
        font-size: 18px;
    }

    .card-bottom strong {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .cards,
    .cards.two {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .card-image {
        aspect-ratio: 16 / 10;
    }

    .card-body {
        padding: 16px;
    }

    .card-body h3 {
        font-size: 17px;
    }

    .feature-row span {
        font-size: 11px;
        padding: 3px 10px;
    }

    .card-bottom {
        flex-wrap: wrap;
        gap: 10px;
    }

    .card-bottom strong {
        font-size: 16px;
    }
}

/* ============================================
   СТРАНИЦА О НАС - Дома и залы
   ============================================ */

.about-houses,
.about-halls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.house-card,
.hall-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(20, 43, 32, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.house-card:hover,
.hall-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(20, 43, 32, 0.1);
}

.house-card h3,
.hall-card h3 {
    font-size: 22px;
    color: var(--forest);
    margin: 0 0 12px 0;
    font-weight: 700;
}

.house-card p,
.hall-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--charcoal);
    margin: 6px 0;
}

.house-card p strong,
.hall-card p strong {
    color: var(--forest);
}

.house-features,
.hall-features,
.house-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.house-features span,
.hall-features span,
.house-amenities span {
    display: inline-block;
    padding: 4px 12px;
    background: var(--leaf);
    color: var(--forest);
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(23, 59, 43, 0.08);
}

.house-amenities span {
    background: rgba(173, 118, 82, 0.1);
    color: var(--clay);
}

/* --- Адаптив --- */
@media (max-width: 820px) {
    .about-houses,
    .about-halls {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 20px auto 0;
    }

    .house-card,
    .hall-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .house-card,
    .hall-card {
        padding: 16px;
    }

    .house-card h3,
    .hall-card h3 {
        font-size: 19px;
    }

    .house-features span,
    .hall-features span,
    .house-amenities span {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* ============================================
   БЛОК SUP-БОРДЫ
   ============================================ */

.sup-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.sup-info h3 {
    font-size: 28px;
    color: var(--forest);
    margin: 0 0 16px 0;
    font-weight: 700;
}

.sup-info p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--charcoal);
    margin: 10px 0;
}

.sup-info p strong {
    color: var(--forest);
}

.sup-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px;
}

.sup-list li {
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 14px;
    color: var(--charcoal);
    line-height: 1.5;
}

.sup-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--clay);
    font-weight: 700;
    font-size: 16px;
}

.sup-list li:last-child {
    border-bottom: none;
}

.sup-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sup-gallery img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(20, 43, 32, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sup-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(20, 43, 32, 0.18);
}

.sup-info .button {
    margin-top: 12px;
}

/* --- Адаптив --- */
@media (max-width: 820px) {
    .sup-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sup-gallery {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .sup-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .sup-gallery img {
        aspect-ratio: 3 / 4;
    }

    .sup-info h3 {
        font-size: 22px;
    }

    .sup-info p {
        font-size: 14px;
    }
}

/* ============================================
   БЛОК "НАШИ ПРАЗДНИКИ"
   ============================================ */

.holidays-section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.holidays-subtitle {
    color: var(--muted);
    font-size: 16px;
    margin-top: -8px;
}

.holidays-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.holiday-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--leaf);
    box-shadow: 0 4px 20px rgba(20, 43, 32, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.holiday-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(20, 43, 32, 0.15);
}

.holiday-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.holiday-item:hover img {
    transform: scale(1.04);
}

/* --- Адаптив --- */
@media (max-width: 1024px) {
    .holidays-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .holidays-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .holidays-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .holidays-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .holiday-item {
        aspect-ratio: 3 / 4;
    }
}

/* ============================================
   БЛОК КОНТАКТОВ - Кнопки справа в строку
   ============================================ */

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.contact-actions .button {
    padding: 12px 20px;
    min-height: 44px;
    font-size: 14px;
    white-space: nowrap;
}

/* --- Адаптив --- */
@media (max-width: 820px) {
    .contact-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-actions .button {
        padding: 10px 16px;
        min-height: 40px;
        font-size: 13px;
    }
}

/* ============================================
   HERO БЛОК - Главная страница
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 22, 16, 0.5) 0%, rgba(10, 22, 16, 0.7) 100%),
        url("/static/images/background/hero-russian-nature.png") center/cover;
    transform: scale(1.03);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 20px;
    margin: 0 auto;
}

.hero-content .eyebrow {
    color: #f0c58b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    display: inline-block;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: 100px;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 22px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .button {
    padding: 14px 32px;
    min-height: 50px;
    font-size: 16px;
    font-weight: 700;
}

.hero-actions .button.primary {
    background: var(--clay);
    color: #fff;
    box-shadow: 0 4px 30px rgba(173, 118, 82, 0.3);
}

.hero-actions .button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(173, 118, 82, 0.4);
}

.hero-actions .button.glass {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.hero-actions .button.glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-strip {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 2;
}

.hero-strip span {
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* --- Адаптив --- */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 72px;
    }

    .hero-content p {
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 92vh;
        align-items: center;
    }

    .hero-content {
        padding: 20px 16px;
        margin-top: -40px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 17px;
        padding: 0 10px;
    }

    .hero-content .eyebrow {
        font-size: 11px;
    }

    .hero-actions .button {
        padding: 12px 24px;
        min-height: 44px;
        font-size: 14px;
        min-width: 140px;
    }

    .hero-strip {
        bottom: 24px;
        gap: 10px;
    }

    .hero-strip span {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 88vh;
    }

    .hero-content {
        padding: 16px;
        margin-top: -20px;
    }

    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-content .eyebrow {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .button {
        padding: 10px 18px;
        min-height: 40px;
        font-size: 13px;
        min-width: 120px;
        flex: 1;
    }

    .hero-strip {
        bottom: 16px;
        gap: 8px;
    }

    .hero-strip span {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* ============================================
   ФИКС АДАПТИВА ДЛЯ ФОРМЫ ОТЗЫВОВ
   ============================================ */

@media (max-width: 768px) {
    .review-form-section {
        padding: 40px 20px;
        margin: 24px auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .review-form-wrap {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .review-form {
        padding: 24px 18px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ============================================
   РЕДАКТИРОВАНИЕ МЕДИА В АДМИНКЕ
   ============================================ */

.media-edit-form {
    margin: 10px 0 8px;
    padding: 12px 14px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.media-edit-form .edit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.media-edit-form .edit-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 100px;
}

.media-edit-form .edit-field label {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.media-edit-form .edit-field input[type="text"],
.media-edit-form .edit-field input[type="number"] {
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.media-edit-form .edit-field input[type="text"]:focus,
.media-edit-form .edit-field input[type="number"]:focus {
    outline: none;
    border-color: var(--clay);
    box-shadow: 0 0 0 2px rgba(173, 118, 82, 0.1);
}

.media-edit-form .check-field {
    flex: 0 1 auto;
    min-width: 80px;
    justify-content: center;
}

.media-edit-form .check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--forest);
    cursor: pointer;
}

.media-edit-form .check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--clay);
    cursor: pointer;
}

.media-edit-form .btn-update {
    padding: 6px 18px;
    min-height: 32px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: var(--clay);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
}

.media-edit-form .btn-update:hover {
    background: #9a6647;
    transform: translateY(-1px);
}

.media-edit-form .btn-update:active {
    transform: translateY(0);
}

.admin-media-card .actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.admin-media-card .btn-small {
    padding: 4px 14px;
    min-height: 28px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.admin-media-card .btn-small.danger {
    border-color: #dc3545;
    color: #dc3545;
    background: transparent;
}

.admin-media-card .btn-small.danger:hover {
    background: #dc3545;
    color: #fff;
}

@media (max-width: 768px) {
    .media-edit-form .edit-row {
        flex-direction: column;
        gap: 8px;
    }

    .media-edit-form .edit-field {
        min-width: unset;
        width: 100%;
    }

    .media-edit-form .check-field {
        flex: 1;
    }

    .media-edit-form .btn-update {
        width: 100%;
    }
}

/* ============================================
   QR-КОДЫ В ФУТЕРЕ
   ============================================ */

.footer-column .qr-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.footer-column .qr-link:hover {
    color: #f0c58b;
}

/* --- Модальное окно --- */
.qr-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-modal.active {
    display: flex;
    animation: qrFadeIn 0.3s ease;
}

@keyframes qrFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 32px;
    font-weight: 300;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.qr-modal-close:hover {
    color: #333;
}

.qr-modal-body {
    padding: 10px 0;
}

.qr-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* --- Адаптив для модалки --- */
@media (max-width: 600px) {
    .qr-modal-content {
        padding: 20px;
        max-width: 340px;
    }

    .qr-modal-close {
        top: 8px;
        right: 14px;
        font-size: 28px;
    }
}

@media (max-width: 400px) {
    .qr-modal-content {
        padding: 16px;
        max-width: 280px;
    }

    .qr-modal-body img {
        max-width: 90%;
    }
}