:root {
  --bg-main: #f0f6f2;
  --bg-soft: #e8f2ec;
  --bg-mint: #e4f3ef;
  --text-main: #1a3033;
  --text-muted: #4c656b;
  --line-soft: rgba(32, 90, 88, 0.14);
  --accent-katun: #40c4b4;
  --accent-katun-deep: #2da89a;
  --accent-cyan: #4fd4c4;
  --accent-green: #7fb396;
  --accent-green-deep: #5a8f72;
  --accent-beige: #d9eadf;
  --tint-hero: rgba(40, 196, 180, 0.14);
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(32, 90, 88, 0.14);
  --shadow-card: 0 12px 32px rgba(32, 90, 88, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: min(1180px, 92vw);
  --ease-main: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(79, 212, 196, 0.12) 0%, transparent 55%),
    radial-gradient(100% 60% at 100% 20%, rgba(127, 179, 150, 0.14) 0%, transparent 50%),
    linear-gradient(165deg, #eef6f0 0%, var(--bg-main) 38%, #e2efe8 100%);
  line-height: 1.6;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.page-ready {
  opacity: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* SCSS structure hint:
  .header {}
  .hero {}
  .section {}
  .footer {}
*/

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 120;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    180deg,
    rgba(230, 245, 240, 0.88) 0%,
    rgba(250, 252, 250, 0.78) 100%
  );
  border-bottom: 1px solid rgba(64, 196, 180, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.header-inner {
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  row-gap: 10px;
  position: relative;
}

/* Центр: меню. Справа: мессенджеры (PNG в assets/icons/) + телефон + (на моб.) кнопка «Меню» */
.header-nav {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header-trailing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 10px;
  flex-shrink: 0;
}

.header-messengers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.messenger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: none;
  background: none;
  border-radius: 0;
  transition: transform var(--ease-main);
}

.messenger-icon:hover {
  transform: scale(1.1);
}

.messenger-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.header-phone {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(32, 90, 88, 0.14);
  background: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  line-height: 1.2;
  transition: border-color 0.2s, background 0.2s;
}

.header-phone:hover {
  border-color: rgba(64, 196, 180, 0.45);
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(64, 196, 180, 0.25));
}

/* Крупный логотип только в первом экране главной: assets/logo-hero.png (не путать с logo-header) */
.hero-logo-wrap {
  margin-bottom: 20px;
  text-align: left;
  max-width: 520px;
}

.page-home-hero .hero-logo-wrap {
  text-align: left;
}

.logo-hero {
  width: auto;
  max-width: min(88vw, 300px);
  max-height: 100px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 20px rgba(0, 40, 45, 0.15));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand-line1 {
  display: block;
  font-size: 1.12rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-text small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: none;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--ease-main);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(to right, var(--accent-katun), var(--accent-green));
  transition: transform var(--ease-main);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

main {
  overflow: clip;
}

.hero {
  min-height: 100svh;
  padding-top: 74px;
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s ease-out;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Меньше «засвета»: фото читается сильнее, низ плавно уходит в фон страницы */
  background:
    linear-gradient(180deg, rgba(8, 32, 35, 0.18) 0%, rgba(230, 245, 240, 0.28) 42%, #e8f2ec 100%),
    linear-gradient(125deg, rgba(64, 196, 180, 0.22) 0%, rgba(100, 170, 130, 0.1) 45%, rgba(255, 255, 255, 0.12) 100%);
}

.hero h1,
.hero .lead,
.hero .eyebrow {
  text-shadow: 0 1px 28px rgba(255, 255, 255, 0.45), 0 2px 12px rgba(0, 40, 45, 0.12);
}

.hero-content {
  padding-bottom: 90px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-green-deep);
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  max-width: 900px;
  font-weight: 650;
}

.lead {
  max-width: 700px;
  margin-top: 20px;
  color: var(--text-main);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  font-weight: 500;
  opacity: 0.9;
}

.cta-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--ease-main), box-shadow var(--ease-main), background var(--ease-main);
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent-cyan) 0%, var(--accent-katun) 40%, #9bc4b0 100%);
  color: #0d2528;
  box-shadow: var(--shadow-card);
}

.btn-secondary {
  border-color: rgba(64, 196, 180, 0.35);
  color: var(--text-main);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(220, 240, 232, 0.55));
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(70, 130, 140, 0.2);
}

.section {
  padding: 100px 0;
  position: relative;
}

.section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 720px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-green), transparent);
  opacity: 0.78;
  pointer-events: none;
}

.hero + .section--widget::after {
  display: none;
}

.section--no-line::after {
  display: none;
}

.section--widget {
  padding: 64px 0 88px;
}

.section--compact {
  padding-top: 48px;
  padding-bottom: 64px;
}

.section-diagonal::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 0;
  width: 100%;
  height: 130px;
  transform: skewY(-2.2deg);
  transform-origin: left top;
  background: linear-gradient(90deg, rgba(79, 212, 196, 0.16), rgba(160, 200, 175, 0.08) 50%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 3.1rem);
  margin-bottom: 16px;
  font-weight: 620;
}

.section-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--text-muted);
}

.feature-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(190, 228, 210, 0.35));
  padding: 20px 20px 20px 18px;
  border: 1px solid rgba(64, 196, 180, 0.2);
  border-left: 3px solid var(--accent-cyan);
  box-shadow: var(--shadow-card);
}

.feature-card h3 {
  font-size: 1.04rem;
  margin-bottom: 10px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.media-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.media-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-main);
}

.media-item:hover img {
  transform: scale(1.06);
}

.span-7 {
  grid-column: span 7;
  min-height: 360px;
}

.span-5 {
  grid-column: span 5;
  min-height: 360px;
}

.span-4 {
  grid-column: span 4;
  min-height: 280px;
}

.span-6 {
  grid-column: span 6;
  min-height: 300px;
}

.info-cards {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.info-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.88), rgba(100, 200, 180, 0.18));
  border: 1px solid rgba(64, 196, 180, 0.2);
  box-shadow: 0 8px 28px rgba(32, 90, 88, 0.06);
}

.info-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.info-card li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.booking-box {
  margin-top: 36px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(64, 196, 180, 0.3);
  background: linear-gradient(165deg, #ffffff, rgba(220, 244, 236, 0.55));
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.roomslot-wrap,
.roomslot-embed {
  margin-top: 20px;
  min-height: 200px;
}

.booking-widget-placeholder {
  min-height: 190px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(34, 50, 56, 0.22);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 10px;
}

.masonry {
  margin-top: 32px;
  columns: 4 240px;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}

.masonry-item img {
  width: 100%;
  display: block;
}

.masonry-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.masonry--lightbox .masonry-item {
  cursor: zoom-in;
}

.contact-band {
  margin-top: 44px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    130deg,
    rgba(79, 212, 196, 0.2),
    rgba(150, 200, 170, 0.18) 50%,
    rgba(255, 255, 255, 0.85)
  );
  border: 1px solid rgba(64, 196, 180, 0.2);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(34, 50, 56, 0.12);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text-main);
}

.contact-form textarea {
  min-height: 104px;
  resize: vertical;
}

.site-footer {
  margin-top: 40px;
  padding: 70px 0 28px;
  background:
    linear-gradient(180deg, rgba(220, 240, 232, 0.35) 0%, rgba(200, 225, 210, 0.45) 45%, #dceee4 100%);
  border-top: 1px solid rgba(64, 196, 180, 0.22);
}

.section--mint {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(200, 230, 215, 0.28) 25%, rgba(210, 235, 222, 0.18) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
}

.footer-title {
  font-size: 1rem;
  margin: 0 0 12px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.copyright {
  margin-top: 28px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Превью-блоки: территория + A-frame (главная) */
.preview-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.preview-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(64, 196, 180, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(200, 230, 215, 0.22));
  box-shadow: var(--shadow-card);
  transition: transform var(--ease-main), box-shadow var(--ease-main);
}

.preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(32, 90, 88, 0.14);
}

.preview-card__media {
  position: relative;
  overflow: hidden;
}

.preview-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.8s ease;
}

.preview-card:hover .preview-card__media img {
  transform: scale(1.1);
}

.preview-card__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-green-deep);
  font-weight: 600;
}

.preview-card h3 {
  font-size: 1.2rem;
  font-weight: 650;
}

.preview-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.preview-card__cta {
  align-self: flex-start;
  margin-top: 6px;
  pointer-events: none;
}

.aframe-ribbon {
  position: absolute;
  top: 16px;
  left: 0;
  padding: 6px 14px 6px 12px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  color: #062326;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border-radius: 0 6px 6px 0;
}

/* CTA-галерея: большой кадр + кнопка */
.gallery-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: min(62vh, 520px);
  box-shadow: var(--shadow-soft);
  margin-top: 28px;
}

.gallery-hero__img {
  width: 100%;
  height: 100%;
  min-height: min(62vh, 520px);
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}

.gallery-hero:hover .gallery-hero__img {
  transform: scale(1.05);
}

.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 40, 40, 0.15) 0%, rgba(10, 45, 45, 0.55) 100%);
  pointer-events: none;
}

.gallery-hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  z-index: 1;
  gap: 16px;
}

.gallery-hero__inner h2 {
  color: #f8fdfb;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 650;
  max-width: 540px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
  margin: 0;
}

.gallery-hero__inner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  font-size: 0.98rem;
  margin: 0;
}

.map-wrap {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(64, 196, 180, 0.25);
  box-shadow: var(--shadow-card);
  background: #dceee8;
  min-height: 320px;
}

.map-embed {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.map-caption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Lightbox: просмотр фото с стрелками (страница «Территория») */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 12px 28px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 26, 0.88);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4fffc;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.lightbox__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: min(96vw, 1200px);
  width: 100%;
}

.lightbox__nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(145deg, rgba(79, 212, 196, 0.25), rgba(100, 160, 120, 0.2));
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  padding-bottom: 2px;
}

.lightbox__nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.lightbox__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lightbox__imgwrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 800px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.lightbox__counter {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.06em;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 14px 6px 22px;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
  }

  .lightbox__img {
    max-height: 58vh;
  }
}

/* Страница «Баня»: видео и прайс */
.video-showcase {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(64, 196, 180, 0.28);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(180deg, #0d1c1e, #152a2c);
  margin: 8px 0 0;
}

figure.video-showcase {
  margin-left: 0;
  margin-right: 0;
}

.video-showcase video,
.video-showcase img {
  width: 100%;
  display: block;
  max-height: min(72vh, 760px);
  object-fit: cover;
}

.banya-lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.banya-price {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(64, 196, 180, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(200, 230, 215, 0.28));
  padding: 24px 26px;
  margin-top: 8px;
}

.banya-price h3 {
  font-size: 1.1rem;
  margin: 0 0 16px;
}

.banya-price table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.banya-price th,
.banya-price td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid rgba(34, 50, 56, 0.1);
}

.banya-price th {
  color: var(--text-muted);
  font-weight: 500;
  width: 70%;
}

.banya-price td {
  text-align: right;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.banya-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.widget-heading {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 650;
  margin: 0 0 6px;
}

.widget-lead {
  margin: 0 0 20px;
  color: var(--text-muted);
  max-width: 640px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.footer-brand .logo-mark {
  width: 48px;
  height: 48px;
}

.u-mt-sm {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Виджет брони на главной: сужение примерно на 5 см слева и справа */
[data-roomslot-account-id="02a8ea81-deef-4b09-8931-fc8ff32e177c"][data-roomslot-widget-id="widget-moff0qix-190laui"] {
  display: block;
  width: 100%;
  max-width: calc(100% - 10cm);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  [data-roomslot-account-id="02a8ea81-deef-4b09-8931-fc8ff32e177c"][data-roomslot-widget-id="widget-moff0qix-190laui"] {
    max-width: calc(100% - 2rem);
  }
}

[data-roomslot-account-id="02a8ea81-deef-4b09-8931-fc8ff32e177c"][data-roomslot-widget-id="widget-mob22bxe-v2ans15"] {
  display: block;
  width: 100%;
  max-width: calc(100% - 10cm);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  [data-roomslot-account-id="02a8ea81-deef-4b09-8931-fc8ff32e177c"][data-roomslot-widget-id="widget-mob22bxe-v2ans15"] {
    max-width: calc(100% - 2rem);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .contact-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .span-7,
  .span-5,
  .span-6,
  .span-4 {
    grid-column: span 12;
    min-height: 250px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    grid-template-rows: 200px 1fr;
  }

  .header-nav {
    flex: 0 0 0;
    min-width: 0;
    width: 0;
    min-height: 0;
  }

  .header-trailing {
    margin-left: auto;
    flex-wrap: nowrap;
    max-width: calc(100% - 180px);
  }

  .header-phone {
    font-size: 0.75rem;
    padding: 6px 8px;
  }

  .messenger-icon img {
    width: 28px;
    height: 28px;
  }

  .nav-list {
    position: fixed;
    top: 74px;
    right: 4vw;
    width: min(260px, 86vw);
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(34, 50, 56, 0.1);
    box-shadow: var(--shadow-card);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list.open {
    display: flex;
  }

  .menu-toggle {
    border: 1px solid rgba(34, 50, 56, 0.18);
    border-radius: 12px;
    min-height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 78px 0;
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .contact-band {
    padding: 20px;
  }
}
