﻿:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --surface-warm: #f5efe6;
  --ink: #2b2420;
  --muted: #6c5d52;
  --accent: #3f5a3b;
  --accent-soft: #6f8a68;
  --forest: #3f5a3b;
  --river: #4e7a8a;
  --sand: #e8dccb;
  --snow: #f7fbff;
  --shadow: 0 24px 60px rgba(43, 36, 32, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "PT Sans", "Commissioner", sans-serif;
  --font-body: "PT Sans", "Commissioner", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 45%, #f4ecdf 100%);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 88px 0;
  position: relative;
}

.section-muted {
  background: linear-gradient(180deg, var(--surface-warm), #fffaf2);
}

.section-snow {
  background: linear-gradient(180deg, var(--snow), #ffffff);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(38px, 6vw, 64px);
}

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

h3 {
  font-size: clamp(24px, 2.8vw, 32px);
}

p {
  margin: 0 0 18px;
  line-height: 1.6;
  color: var(--muted);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.list li::before {
  content: "•";
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(63, 90, 59, 0.18);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(63, 90, 59, 0.3);
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(63, 90, 59, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(63, 90, 59, 0.08);
  backdrop-filter: blur(12px);
  padding: 0 16px;
}

.site-header .container {
  width: min(100%, 1700px);
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 32px);
  color: var(--ink);
  justify-self: start;
}

.logo img {
  width: clamp(76px, 7vw, 120px);
  height: clamp(76px, 7vw, 120px);
  border-radius: 50%;
  object-fit: contain;
}

.logo-text {
  display: inline-block;
  line-height: 1.05;
  max-width: 260px;
}

.logo-line {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  font-size: clamp(14px, 1.35vw, 20px);
  margin: 0;
  justify-self: center;
  white-space: nowrap;
  line-height: 1.1;
}

.nav a {
  position: relative;
  padding-bottom: 6px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  justify-self: end;
  justify-content: flex-end;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.header-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-direction: column;
}

.header-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.social-link svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.social-link img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.social-link--telegram {
  color: #26a5e4;
}

.social-link--whatsapp {
  color: #25d366;
}

.social-link--max {
  color: #5c55ff;
}

.phone {
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
  font-size: clamp(16px, 1.8vw, 23px);
}

.header-cta .btn {
  padding: 18px 36px;
  font-size: 18px;
}

.burger {
  display: none;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 150px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.62) 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 90, 59, 0.35), rgba(63, 90, 59, 0));
  filter: blur(10px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
  margin-top: -20px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  justify-content: center;
}

.hero-panel {
  margin-top: 30px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 14px;
  justify-content: center;
}

.hero-panel span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero--compact {
  min-height: 55vh;
  padding: 140px 0 80px;
}

.hero-logo {
  width: clamp(110px, 14vw, 190px);
  height: clamp(110px, 14vw, 190px);
  border-radius: 50%;
  object-fit: contain;
  transform: translate(-4%, -4%);
  margin: 0 auto 18px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.5), 0 16px 40px rgba(255, 255, 255, 0.35);
}

.page-bg {
  position: relative;
  background: var(--bg);
}

.page-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--page-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.page-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.18);
  z-index: -1;
}

.page-bg .section {
  background: rgba(255, 255, 255, 0.86);
}

.page-bg .section-muted {
  background: rgba(255, 255, 255, 0.8);
}

.page-bg .section-snow {
  background: rgba(255, 255, 255, 0.78);
}

.page-bg .card,
.page-bg .feature-card {
  background: rgba(255, 255, 255, 0.94);
}

.booking-card {
  padding: 12px;
}

.home-page .hero {
  min-height: 100vh;
  padding: 190px 0 120px;
}

.home-page .hero-logo {
  width: clamp(200px, 24vw, 340px);
  height: clamp(200px, 24vw, 340px);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(63, 90, 59, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card strong {
  font-size: 18px;
  color: var(--ink);
}

.room-card img {
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.room-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
}

.room-card h3 {
  min-height: 2.6em;
}

.room-card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.room-card .btn {
  align-self: end;
}

.carousel {
  position: relative;
  overflow-x: auto;
  padding: 6px 0 14px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(12vw, 140px);
  z-index: 2;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(251, 246, 238, 0.95), rgba(251, 246, 238, 0));
}

.carousel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(251, 246, 238, 0.95), rgba(251, 246, 238, 0));
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 auto;
}

.carousel-item img {
  height: clamp(300px, 36vw, 560px);
  width: clamp(340px, 46vw, 560px);
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-header p {
  max-width: 520px;
}

.gallery-showcase {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.gallery-main {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.gallery-main-img,
.gallery-main-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center;
}

.gallery-main-bg {
  top: -6%;
  left: -6%;
  width: calc(100% + 12%);
  height: calc(100% + 12%);
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.05);
  z-index: 0;
}

.gallery-main-img {
  object-fit: contain;
  z-index: 1;
}

.gallery-arrow {
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

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

.gallery-arrow svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.gallery-thumbs {
  grid-column: 1 / -1;
  margin-top: 16px;
  overflow-x: auto;
  padding: 8px 0 2px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.thumb-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 0 16px;
}

.thumb {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.thumb img {
  width: 96px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumb.is-active img {
  opacity: 1;
  border-color: var(--accent);
}

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

.gallery-grid img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-grid .gallery-wide {
  grid-column: span 6;
}

.gallery-grid .gallery-tall {
  grid-row: span 5;
}

.gallery-grid .gallery-big {
  grid-column: span 6;
  grid-row: span 6;
}

.room-detail {
  display: grid;
  gap: 32px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  scroll-margin-top: -40px;
  max-width: 1120px;
  margin: 0 auto;
  --thumb-size: 100px;
  --thumb-gap: 10px;
  --gallery-height: calc(var(--thumb-size) * 5 + var(--thumb-gap) * 4);
}

.room-gallery {
  display: grid;
  grid-template-columns: var(--thumb-size) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.room-gallery-main {
  position: relative;
  cursor: ew-resize;
  height: var(--gallery-height);
}

.room-gallery-main img {
  border-radius: var(--radius-lg);
  height: 100%;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.room-gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--thumb-gap);
  width: var(--thumb-size);
}

.room-thumb {
  border: none;
  padding: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.room-thumb img {
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  border: 2px solid transparent;
}

.room-detail .detail-card {
  height: var(--gallery-height);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.room-thumb.is-active img {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(63, 90, 59, 0.2);
}

.service-card img {
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-card {
  font-size: clamp(18px, 1.4vw + 12px, 24px);
}

.detail-card p,
.detail-card .list {
  font-size: inherit;
}

.detail-card .list li::before {
  font-size: 24px;
}

.detail-card .price {
  font-size: clamp(24px, 2.4vw, 32px);
}

.territory-card {
  display: flex;
  flex-direction: column;
}

.territory-card .btn {
  margin-top: auto;
}

.tagline {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  color: var(--forest);
}

.map-card iframe {
  width: 100%;
  min-height: 320px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.map-card--large iframe {
  min-height: 480px;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  justify-items: center;
  align-items: center;
}

.contact-grid .card,
.contact-grid .map-card {
  width: 100%;
  max-width: 620px;
}

.contact-grid .map-card {
  max-width: 820px;
}

.contact-list {
  font-size: 18px;
  font-weight: 600;
}

.contact-links {
  margin-top: -10px;
}

.contact-list a {
  font-weight: 700;
}

.contact-list a,
.contact-links a {
  color: #1a73e8;
}

.contact-list a:hover,
.contact-links a:hover {
  color: #1558b0;
}

.contact-grid--main {
  --contact-height: 530px;
  align-items: stretch;
}

.contact-grid--main .card,
.contact-grid--main .map-card {
  height: var(--contact-height);
}

.contact-grid--main .card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-grid--main .map-card iframe {
  height: 100%;
  min-height: var(--contact-height);
}

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

.form label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(108, 93, 82, 0.2);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}

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

.placeholder {
  border: 2px dashed rgba(63, 90, 59, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  color: var(--accent);
}

.site-footer {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, #efe4d4, #f8f2ea);
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: start;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 12px;
}

.footer-meta {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: var(--muted);
}

.footer-meta a {
  color: var(--ink);
  font-weight: 700;
}

.footer-nav {
  display: grid;
  gap: 12px;
  font-size: 22px;
}

.footer-nav a {
  font-weight: 600;
  color: var(--ink);
}

.footer-meta strong {
  color: var(--ink);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.footer-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.footer-icon--telegram {
  color: #26a5e4;
}

.footer-icon--whatsapp {
  color: #25d366;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }

  .carousel-track {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .room-detail {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .site-header {
    z-index: 70;
  }

  .header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
  }

  .nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: 66vw;
    height: 100vh;
    max-height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 24px 24px;
    border-radius: 0 24px 24px 0;
    box-shadow: var(--shadow);
    display: flex;
    font-size: 15px;
    gap: 16px;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 70;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 60;
  }

  .nav-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    font-size: 20px;
    padding: 10px 0;
  }

  .burger {
    display: inline-flex;
  }

  .header-cta {
    margin-left: auto;
    flex-wrap: wrap;
  }

  .header-cta .btn {
    padding: 14px 28px;
    font-size: 16px;
  }

  .phone {
    font-size: 16px;
  }

  .social-link svg {
    width: 28px;
    height: 28px;
  }

  .social-link img {
    width: 28px;
    height: 28px;
  }

  .header-contact {
    gap: 10px;
  }

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

  .hero {
    min-height: 60vh;
    padding: 130px 0 70px;
  }

  .home-page .hero {
    min-height: 85vh;
    padding: 170px 0 100px;
  }

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

  .room-gallery-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-flow: column;
    width: 100%;
    order: 2;
  }

  .room-gallery-main {
    order: 1;
    height: auto;
  }

  .room-detail .detail-card {
    height: auto;
  }

  .gallery-showcase {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "thumbs";
  }

  .gallery-main {
    grid-area: main;
  }

  .gallery-arrow {
    width: 42px;
    height: 42px;
    grid-area: main;
    align-self: center;
    justify-self: start;
    z-index: 2;
  }

  .gallery-arrow--next {
    justify-self: end;
  }

  .gallery-thumbs {
    grid-area: thumbs;
  }

  .gallery-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-rows: 80px;
  }

  .gallery-grid img {
    grid-column: span 4;
    grid-row: span 3;
  }

  .gallery-grid .gallery-wide,
  .gallery-grid .gallery-big {
    grid-column: span 8;
  }
}

@media (max-width: 640px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 10px 14px;
  }

  .header-cta {
    display: contents;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .logo-line {
    white-space: normal;
  }

  .logo-text {
    max-width: 120px;
    white-space: normal;
  }

  .header-contact {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 6px;
    flex-direction: column-reverse;
  }

  .header-social {
    flex-direction: row;
    justify-content: flex-end;
  }

  .header-cta .btn {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    padding: 10px 22px;
    font-size: 12px;
  }

  .phone {
    font-size: 14px;
  }

  .burger {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 70px 0;
  }

  .hero-panel {
    font-size: 13px;
  }

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

  .gallery-showcase {
    width: calc(100% + 8vw);
    margin-left: -4vw;
    margin-right: -4vw;
  }

  .thumb img {
    width: 76px;
    height: 56px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 90px;
  }

  .gallery-grid img {
    grid-column: span 4;
    grid-row: span 3;
  }

  .gallery-grid .gallery-wide,
  .gallery-grid .gallery-big {
    grid-column: span 4;
  }

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-header h2 {
    font-size: 28px;
    line-height: 1.15;
  }

  .home-page .contact-grid--main {
    --contact-height: auto;
    align-items: start;
  }

  .home-page .contact-grid--main .card,
  .home-page .contact-grid--main .map-card {
    height: auto;
  }

  .home-page .contact-grid--main .card {
    padding: 18px;
  }

  .home-page .contact-list {
    font-size: 16px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .home-page .contact-list a {
    word-break: break-all;
  }

  .home-page .contact-grid--main .map-card {
    height: 440px;
    overflow: hidden;
    border-radius: var(--radius-lg);
  }

  .home-page .contact-grid--main .map-card iframe {
    height: 680px;
    min-height: 680px;
    transform: translateY(-120px);
  }

  .room-gallery-main {
    cursor: default;
  }

  .room-gallery-thumbs {
    pointer-events: none;
  }

  .room-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 2;
  }

  .room-arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .room-arrow--prev {
    left: 8px;
  }

  .room-arrow--next {
    right: 8px;
  }

  .carousel-wrap {
    position: relative;
  }

  .carousel--manual {
    position: relative;
  }

  .carousel-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: transparent;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 4;
  }

  .carousel-hint svg {
    width: 33px;
    height: 33px;
    fill: currentColor;
  }

  .site-footer {
    font-size: 14px;
  }

  .footer-title {
    font-size: 26px;
  }

  .footer-meta,
  .footer-nav {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .booking-page .section {
    padding: 50px 0;
  }

  .booking-page .section .container {
    width: 100%;
    padding: 0;
  }

  .booking-page .booking-card {
    padding: 0;
  }
}

@keyframes carousel-scroll {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}


