:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --surface-strong: #ebe5d9;
  --ink: #20241f;
  --muted: #687166;
  --line: #d8d0c3;
  --green: #254737;
  --green-dark: #172d24;
  --wood: #b86f35;
  --steel: #53636d;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 35, 30, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 max(16px, calc((100vw - 1180px) / 2));
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(32, 36, 31, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 19px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 38%, rgba(255, 255, 255, 0.42) 38% 48%, transparent 48%),
    linear-gradient(135deg, var(--wood), var(--green));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover,
.header-phone:hover,
.site-footer a:hover {
  color: var(--wood);
}

.header-phone {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--green-dark);
  font-weight: 700;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: clamp(480px, 74svh, 680px);
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 20, 16, 0.82), rgba(14, 20, 16, 0.54) 46%, rgba(14, 20, 16, 0.22)),
    linear-gradient(0deg, rgba(14, 20, 16, 0.24), rgba(14, 20, 16, 0.04));
}

.hero-content {
  display: flex;
  min-height: clamp(480px, 74svh, 680px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 56px 0;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wood);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b16f;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.hero-text {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

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

.button-primary {
  background: var(--wood);
  color: var(--white);
}

.button-primary:hover {
  background: #9f5f2c;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin: 38px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
}

.hero-facts div {
  padding: 15px 16px;
  background: rgba(23, 45, 36, 0.5);
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.section {
  padding: clamp(52px, 8vw, 92px) 0;
  scroll-margin-top: 78px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-prices {
  background: var(--surface);
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

.price-table th,
.price-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.price-table th {
  background: var(--green-dark);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price-table td:not(:first-child),
.price-table th:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.price-table tbody tr:nth-child(even):not(.section-row) {
  background: #faf7f0;
}

.price-table tbody tr:hover:not(.section-row) {
  background: #f0eadf;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.section-row td {
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
}

.table-state {
  color: var(--muted);
  text-align: center !important;
}

.section-map {
  background: var(--surface-strong);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.35fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.map-copy {
  margin-bottom: 0;
}

.map-copy .button {
  margin-top: 22px;
}

.map-frame {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(32, 36, 31, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.section-gallery {
  background: var(--bg);
}

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

.gallery-item {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 14px 34px rgba(31, 35, 30, 0.1);
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 10px;
  border-radius: 6px;
  background: rgba(23, 45, 36, 0.82);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.section-seo {
  background: var(--surface);
}

.seo-content {
  max-width: 980px;
}

.seo-text {
  color: #3f463e;
  font-size: 18px;
}

.seo-text h1,
.seo-text h2,
.seo-text h3 {
  color: var(--ink);
  letter-spacing: 0;
}

.seo-text h1 {
  max-width: 900px;
  margin: 0 0 24px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}

.seo-text h2 {
  margin: 38px 0 16px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.14;
}

.seo-text h3 {
  margin: 30px 0 12px;
  font-size: 22px;
  line-height: 1.2;
}

.seo-text p {
  margin: 0 0 18px;
}

.seo-text p:last-child {
  margin-bottom: 0;
}

.seo-text ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 22px;
}

.seo-text li {
  padding-left: 4px;
}

.site-footer {
  padding: 26px 0;
  background: var(--green-dark);
  color: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 800;
}

.mobile-call {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 30;
  display: none;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--wood);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 14px 38px rgba(32, 36, 31, 0.28);
}

@media (max-width: 900px) {
  .site-header {
    min-height: 62px;
  }

  .site-nav {
    display: none;
  }

  .header-phone {
    margin-left: auto;
    padding: 9px 11px;
    font-size: 14px;
  }

  .hero,
  .hero-content {
    min-height: clamp(500px, 76svh, 640px);
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(14, 20, 16, 0.86), rgba(14, 20, 16, 0.48));
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 360px;
  }

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

@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    padding: 0 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-phone {
    min-width: 104px;
    max-width: 120px;
    font-size: 0;
  }

  .header-phone::after {
    content: "Позвонить";
    font-size: 14px;
  }

  .hero-content {
    padding: 42px 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 40px);
    overflow-wrap: anywhere;
  }

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

  .hero-text {
    max-width: 100%;
    font-size: 17px;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

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

  .gallery-item-wide {
    grid-column: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-call {
    display: flex;
  }
}
