:root {
  --bg: #f6f2ec;
  --surface: #fffdf9;
  --surface-alt: #fbf7f1;
  --text: #20242a;
  --muted: #667065;
  --border: #e5dbcf;
  --accent: #9a5b2d;
  --accent-dark: #7b451f;
  --green: #2f5d4b;
  --shadow: 0 14px 40px rgba(44, 32, 20, 0.08);
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Roboto",
    "Arial",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

code {
  background: rgba(154, 91, 45, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 0 0 12px 0;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid rgba(154, 91, 45, 0.35);
  outline-offset: 3px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.logo-accent {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4rem;
  background: url('/images/hero.jpg') center/cover no-repeat;
  color: #fff; /* Добавь эту строку */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(32, 36, 42, 0.85) 0%,
    rgba(32, 36, 42, 0.7) 50%,
    rgba(47, 93, 75, 0.75) 100%
  );
  z-index: 0;
}
.hero .btn.secondary {
  background: #fff;
  border-color: #fff;
  color: var(--accent);
}

.hero .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}
.hero .badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero h1,
.hero .lead,
.hero .kicker {
  color: #fff; /* Принудительно белый для заголовков */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Тень для читаемости */
}
.hero > .container {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-block;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 70ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(154, 91, 45, 0.22);
}

.btn.primary:hover {
  background: var(--accent-dark);
}

.btn.secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn.secondary:hover {
  background: rgba(154, 91, 45, 0.08);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--border);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.full {
  width: 100%;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.badge {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: linear-gradient(180deg, var(--surface-alt), #f8f2ea);
}

section[id] {
  scroll-margin-top: 88px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--muted);
  font-weight: 600;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.info-card p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(154, 91, 45, 0.14), rgba(47, 93, 75, 0.14));
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-icon.small {
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  border-radius: 14px;
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.card li + li {
  margin-top: 0.35rem;
}

.price-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.price-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.price-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.price-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
}

.table th,
.table td {
  text-align: left;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table thead th {
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.price {
  font-weight: 900;
  color: var(--accent);
  white-space: nowrap;
}

.note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.photo,
.photo-img {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.photo {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #8b5a3c, #2f5d4b);
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 40%);
}

.photo span {
  position: relative;
  z-index: 1;
  padding: 1rem;
  text-align: center;
}

.photo-img {
  width: 100%;
  object-fit: cover;
}

.reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
}

.review-author {
  margin: 0;
  font-weight: 900;
}

.review-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(47, 93, 75, 0.1);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
}

.stars {
  margin: 0;
  color: #e0a125;
  letter-spacing: 2px;
  font-size: 1rem;
}

.review blockquote {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  flex-grow: 1;
  white-space: pre-line;
}

.review-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.5rem;
}

.review-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.review-link {
  width: fit-content;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.contact-card,
.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(154, 91, 45, 0.1);
  color: var(--accent);
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-list p {
  margin: 0.15rem 0 0;
}

.contact-list a {
  text-decoration: none;
  font-weight: 800;
  color: var(--accent);
}

.contact-list a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 800;
  color: var(--green);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chip:hover {
  border-color: var(--green);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.map-card p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.map-links {
  display: grid;
  gap: 0.75rem;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-wrap p {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--accent);
}

#loading,
#errorBox {
  margin-bottom: 1rem;
  color: var(--muted);
}

#errorBox {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(154, 91, 45, 0.25);
  border-radius: 14px;
  background: rgba(154, 91, 45, 0.06);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn:hover,
  .chip:hover {
    transform: none;
  }
}
/* ===== Reviews Slider ===== */
.reviews-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0;
}

.reviews-slider-viewport {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  /* Скрываем скроллбар */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reviews-slider-viewport::-webkit-scrollbar {
  display: none;
}

.reviews-slider-track {
  display: flex;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

/* Карточка отзыва — фиксированная ширина */
.reviews-slider-track .review {
  flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
  min-width: 0;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.reviews-slider-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.reviews-slider-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.05);
}

.reviews-slider-btn:active {
  transform: scale(0.95);
}

.reviews-slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.reviews-slider-btn:focus-visible {
  outline: 3px solid rgba(154, 91, 45, 0.35);
  outline-offset: 3px;
}

/* Скрываем кнопки если все отзывы влезают */
.reviews-slider--no-nav .reviews-slider-btn {
  display: none;
}

/* Адаптив */
@media (max-width: 900px) {
  .reviews-slider-track .review {
    flex: 0 0 calc((100% - 1 * 0.75rem) / 2);
  }

  .reviews-slider {
    gap: 0.5rem;
  }

  .reviews-slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .reviews-slider-track {
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .reviews-slider-track .review {
    flex: 0 0 100%;
  }

  .reviews-slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}