/* Shared Baltia visual system for production pages. */

:root {
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-interface: "Montserrat", system-ui, sans-serif;
  --baltia-navy: #293649;
  --baltia-sand: #f2f2f2;
  --baltia-paper: #ffffff;
  --baltia-gold: #1792a2;
  --baltia-teal: #1792a2;
  --baltia-teal-dark: #0e5573;
  --baltia-green: #145c52;
  --baltia-muted: #808f92;
  --baltia-ink: #1a1a1a;
  --baltia-line: rgba(41, 54, 73, 0.16);
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
  background: var(--baltia-sand);
  color: var(--baltia-navy);
  font-family: var(--font-interface);
}

:where(h1, h2, h3, h4, .section-title, .room-faces-section__title, .landing-room__title) {
  font-family: var(--font-display);
  text-wrap: balance;
  overflow-wrap: normal;
}

:where(p, li, figcaption, summary) {
  text-wrap: pretty;
}

:where(.inner-page__head, .room-faces-main__inner, .room-faces-reviews__inner, .landing-room__body, .room-card, .rooms-grid > *) {
  min-width: 0;
}

:where(.btn, .button, button, [role="button"]) {
  max-width: 100%;
  overflow-wrap: normal;
}

:where(main, section, article)[id] {
  scroll-margin-top: 104px;
}

.page-inner main {
  min-height: calc(100svh - 88px - 330px);
}

.site-footer.site-footer--main {
  padding: 56px clamp(20px, 4vw, 48px) calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--baltia-navy);
  color: rgba(255, 255, 255, 0.76);
}

.site-footer.site-footer--main .site-footer__grid {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(150px, 0.7fr));
  gap: 32px clamp(28px, 4vw, 64px);
  width: min(100%, 1200px);
  margin: 0 auto;
}

.site-footer.site-footer--main .site-footer__logo {
  display: block;
  width: min(220px, 100%);
}

.site-footer.site-footer--main .site-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer.site-footer--main .site-footer__grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.site-footer.site-footer--main strong {
  margin-bottom: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer.site-footer--main p,
.site-footer.site-footer--main a {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-interface);
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
}

.site-footer.site-footer--main a:hover,
.site-footer.site-footer--main a:focus-visible {
  color: #fff;
}

.site-footer.site-footer--main a:focus-visible {
  outline: 2px solid var(--baltia-gold);
  outline-offset: 3px;
}

.site-footer.site-footer--main .site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  width: min(100%, 1200px);
  margin: 42px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
}

.site-footer.site-footer--main .site-footer__legal a {
  color: rgba(255, 255, 255, 0.84);
}

.page-rooms {
  --sans: var(--font-interface);
  --serif: var(--font-display);
}

.page-rooms .rooms-card__title,
.page-rooms .rooms-offerings__lead,
.page-rooms .cinema-slide__title,
.page-rooms .cinema-slide__panel-title {
  font-family: var(--font-display);
}

.page-rooms .unified-header.site-header.is-scrolled .site-header__logo img {
  filter: brightness(0) invert(1);
}

.landing-hero__title,
.landing-room__title {
  font-family: var(--font-display);
}

.landing-hero__title {
  max-width: 820px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.landing-room {
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(41, 54, 73, 0.07);
}

.booking-widget {
  border: 1px solid var(--baltia-line);
  box-shadow: 0 18px 52px rgba(41, 54, 73, 0.09);
}

.booking-widget::before {
  content: "Официальное бронирование · лучшая цена на сайте";
  display: block;
  margin: -4px 0 22px;
  color: var(--baltia-navy);
  font-family: var(--font-interface);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.guide-map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  margin-bottom: clamp(64px, 8vw, 104px);
}

.guide-map-copy h2,
.editorial-empty h2,
.offer-detail__copy h2 {
  margin: 0 0 18px;
  color: var(--baltia-navy);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.1;
}

.guide-map-copy p,
.editorial-empty p,
.offer-detail__copy p {
  color: var(--baltia-muted);
  line-height: 1.75;
}

.guide-places {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.guide-place {
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--baltia-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.guide-place__time {
  display: block;
  margin-bottom: 22px;
  color: var(--baltia-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-place strong {
  display: block;
  margin-bottom: 8px;
  color: var(--baltia-navy);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.15;
}

.guide-place span:last-child {
  color: var(--baltia-muted);
  font-size: 14px;
  line-height: 1.55;
}

.editorial-empty {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  min-height: 340px;
  padding: clamp(36px, 6vw, 72px);
  border-radius: 8px;
  background: var(--baltia-navy);
  color: #fff;
}

.editorial-empty::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(23, 146, 162, 0.35);
  border-radius: 50%;
}

.editorial-empty h2,
.editorial-empty p {
  color: inherit;
}

.editorial-empty__links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.editorial-empty__links a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(23, 146, 162, 0.7);
  text-underline-offset: 5px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.article-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--baltia-line);
  border-radius: 8px;
  background: var(--baltia-paper);
  box-shadow: 0 12px 36px rgba(41, 54, 73, 0.07);
}

.article-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f2f2f2;
}

.article-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-card__media:hover img {
  transform: scale(1.025);
}

.article-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
}

.article-card time,
.article-page time {
  color: var(--baltia-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-card h2,
.article-card p {
  margin: 0;
}

.article-card h2 {
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.08;
}

.article-card h2 a {
  color: var(--baltia-navy);
  text-decoration: none;
}

.article-card p {
  color: var(--baltia-muted);
  line-height: 1.65;
}

.article-page {
  width: min(calc(100% - 40px), 1040px);
  margin: 0 auto;
  padding: clamp(132px, 14vw, 190px) 0 clamp(72px, 10vw, 130px);
}

.article-page__head {
  max-width: 820px;
  margin-bottom: clamp(34px, 6vw, 64px);
}

.article-page__head h1 {
  margin: 10px 0 22px;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 500;
  line-height: 0.98;
}

.article-page__head > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--baltia-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.article-page__cover {
  overflow: hidden;
  margin: 0 0 clamp(42px, 7vw, 72px);
  border-radius: 8px;
  background: #f2f2f2;
}

.article-page__cover img {
  display: block;
  width: 100%;
  height: auto;
}

.article-page__body {
  max-width: 760px;
  margin: 0 auto;
  color: #263f52;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.8;
}

.article-page__body h2,
.article-page__body h3 {
  margin: 2em 0 0.65em;
  color: var(--baltia-navy);
  font-weight: 500;
  line-height: 1.15;
}

.article-page__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-page__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 760px;
  margin: clamp(46px, 7vw, 72px) auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--baltia-line);
}

.conference-callout {
  max-width: 780px;
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(32px, 5vw, 56px);
  border-left: 3px solid var(--baltia-gold);
  background: rgba(255, 255, 255, 0.58);
}

.conference-callout h2 {
  max-width: 620px;
  margin: 0 0 16px;
  color: var(--baltia-navy);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.1;
}

.conference-callout p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--baltia-muted);
  line-height: 1.7;
}

@media (max-width: 620px) {
  .conference-callout {
    margin-top: 36px;
    padding: 26px 22px;
  }

  .conference-callout h2 {
    font-size: clamp(28px, 9vw, 34px);
    text-wrap: balance;
  }

  .conference-callout p:last-child {
    line-height: 1.6;
    text-wrap: pretty;
  }
}

.offer-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.offer-detail__media {
  overflow: hidden;
  min-height: 460px;
  border-radius: 8px;
  background: #f2f2f2;
}

.offer-detail__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.offer-detail__list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 24px 0;
  border-block: 1px solid var(--baltia-line);
  list-style: none;
}

.offer-detail__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: var(--baltia-navy);
}

.offer-detail__list li::before {
  content: "✓";
  color: var(--baltia-gold);
}

.page-inner--404 {
  background: var(--baltia-sand);
}

@media (max-width: 900px) {
  .site-footer.site-footer--main .site-footer__grid,
  .guide-places {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-map-layout,
  .offer-detail {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-footer.site-footer--main {
    padding-top: 40px;
  }

  .site-footer.site-footer--main .site-footer__grid,
  .guide-places,
  .editorial-empty,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .site-footer.site-footer--main .site-footer__legal {
    flex-direction: column;
    gap: 8px;
  }

  .editorial-empty {
    min-height: 0;
  }

  .editorial-empty__links {
    min-width: 0;
  }

  .offer-detail__media,
  .offer-detail__media img {
    min-height: 300px;
  }
}

/* Ratings belong after room selection, not inside the conversion-focused hero. */
.hero--tz .hero-reputation {
  display: none;
}

.ratings-strip {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6vw, 84px) var(--gutter);
  background:
    radial-gradient(circle at 86% 12%, rgba(23, 146, 162, 0.18), transparent 30%),
    var(--navy);
}

.ratings-strip__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.ratings-strip .hero-reputation {
  display: block;
  width: min(100%, 980px);
  margin: 0 auto;
}

.ratings-strip .hero-reputation__label {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.ratings-strip .hero-rating:focus-visible {
  outline-color: var(--sand);
}

@media (max-width: 640px) {
  .ratings-strip {
    padding: 44px 0 48px;
  }

  .ratings-strip .hero-reputation {
    width: 100%;
  }

  .ratings-strip .hero-reputation__label {
    padding-inline: var(--gutter);
    text-align: left;
  }

  .ratings-strip .hero-reputation__list {
    margin-inline: 0;
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
}

/* TravelLine booking stays enabled; only floating promotional widgets are disabled. */
.tl-widget[data-kind="Slider"],
.tl-widget[data-kind="Mobile"] {
  display: none !important;
}

/* Temporarily hide the secondary room labels above the Cinema Reel title. */
.page-rooms .cinema-slide__top {
  display: none !important;
}

/* Restaurant meal formats: a clean text-only signature without decoration. */
.restaurant-home .brand-signature--restaurant {
  flex-wrap: wrap;
  gap: 12px clamp(20px, 3vw, 40px);
}

.restaurant-home .brand-signature--restaurant span {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .restaurant-home .brand-signature--restaurant {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 10px 24px;
  }

  .cinema-slide[data-slide-id="standart-klassicheskij-new"] .cinema-slide__title {
    font-size: clamp(1.45rem, 7.4vw, 1.9rem);
  }

  .cinema-slide[data-slide-id="standart-plus-new"] .cinema-slide__title {
    font-size: clamp(1.65rem, 8.6vw, 2.2rem);
  }

  .cinema-slide[data-slide-id="standart-klassicheskij-new"] .cinema-slide__title span:last-child,
  .cinema-slide[data-slide-id="standart-plus-new"] .cinema-slide__title span:last-child,
  .cinema-slide[data-slide-id="superior-new"] .cinema-slide__title span:last-child {
    white-space: nowrap;
  }
}
/* Keep service pagination animations on the compositor. */
.services-grid__pagination button::before {
  height: 2px;
  transform: scaleY(0.5);
  transform-origin: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.services-grid__pagination button:is(.is-active, :hover)::before {
  height: 2px;
  transform: scaleY(1);
}
