:root {
  color-scheme: light;
  --ink: #171b1a;
  --muted: #5e6865;
  --line: #d9e0dc;
  --paper: #f5f7f4;
  --white: #ffffff;
  --teal: #0c5c55;
  --teal-soft: #e7f0ed;
  --wine: #6b2137;
  --blush: #f4d9dc;
  --gold: #af8738;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.brand span {
  color: var(--teal);
  font-size: 23px;
  font-weight: 850;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--teal);
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  min-height: 0;
}

.hero-brand-cover {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--teal);
  box-shadow: 0 18px 48px rgba(23, 27, 26, 0.12);
}

.hero-brand-cover picture {
  display: block;
}

.hero-brand-cover img {
  width: 100%;
  height: auto;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  color: var(--teal);
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--teal);
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: 0;
}

.lead {
  max-width: 520px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero-actions,
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--teal);
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  border-color: rgba(12, 92, 85, 0.34);
  box-shadow: 0 12px 28px rgba(23, 27, 26, 0.13);
}

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

.service-grid span,
.booking-link span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.section {
  padding: clamp(42px, 6vw, 72px) 0;
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 760px;
}

.section-heading p,
.service-grid p,
.contact-copy p,
.footer {
  color: var(--muted);
  line-height: 1.62;
}

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

.service-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.online-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  align-items: end;
  gap: clamp(22px, 5vw, 56px);
}

.booking-actions {
  display: grid;
  grid-template-columns: minmax(220px, 360px);
  gap: 10px;
}

.booking-link {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.booking-link strong {
  color: var(--teal);
  font-size: 21px;
  line-height: 1.1;
}

.booking-link.active {
  border-color: rgba(12, 92, 85, 0.28);
  background: var(--teal-soft);
}

.booking-link:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

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

.gallery figure,
.qr-card,
.vk-preview {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
}

.gallery figure {
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(23, 27, 26, 0.1);
}

.gallery figure.large {
  grid-column: span 2;
  grid-row: span 2;
}

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

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 52px);
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-copy {
  max-width: 680px;
}

.contact-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, 156px));
  gap: 12px;
}

.qr-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(23, 27, 26, 0.11);
  color: var(--teal);
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.qr-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer span {
  color: var(--teal);
  font-weight: 900;
}

.footer a {
  text-decoration-color: rgba(12, 92, 85, 0.32);
  text-underline-offset: 4px;
}

.footer-credit {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.72;
}

.legal {
  max-width: 840px;
  padding: clamp(42px, 7vw, 80px) 0 72px;
}

.legal h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
}

.legal h2 {
  margin: 28px 0 10px;
  font-size: clamp(24px, 4vw, 34px);
}

.legal p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-lead {
  max-width: 760px;
  font-size: 18px;
}

.legal-meta,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-meta {
  display: grid;
  gap: 1px;
  margin: 28px 0 34px;
  overflow: hidden;
  background: var(--line);
}

.legal-meta div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  background: var(--white);
}

.legal-meta dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-meta dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.legal-list {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.legal-list li + li {
  margin-top: 7px;
}

.legal-card {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 32px);
}

@media (max-width: 980px) {
  main,
  .footer {
    width: min(100% - 24px, 720px);
  }

  .service-grid,
  .hero-intro,
  .online-section,
  .contacts {
    grid-template-columns: 1fr;
  }

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

  .contact-media {
    grid-template-columns: repeat(2, minmax(132px, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .booking-actions,
  .contact-media,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery figure.large {
    grid-column: auto;
    grid-row: auto;
  }

  .legal-meta div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
