:root {
  --forest: #202627;
  --forest2: #131718;
  --paper: #f7f4ed;
  --milk: #ece7dd;
  --ink: #242829;
  --muted: #6e716f;
  --line: rgba(63, 66, 64, .16);
  --bronze: #ad9674;
  --bronze-light: #dacbb5;
  --ivory: #fbf8f1;
  --surface: rgba(252, 249, 242, .84);
  --shadow-sm: 0 10px 28px rgba(31, 34, 33, .08);
  --shadow-md: 0 24px 70px rgba(22, 25, 24, .14);
  --shadow-dark: 0 28px 80px rgba(0, 0, 0, .28);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --page-gutter: max(5vw, calc((100vw - 1440px) / 2));
}

html { scroll-padding-top: 96px; }
body {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background:
    radial-gradient(circle at 7% 16%, rgba(188, 166, 132, .15), transparent 29%),
    radial-gradient(circle at 90% 42%, rgba(82, 91, 87, .11), transparent 32%),
    linear-gradient(115deg, rgba(255, 255, 255, .5), transparent 42%),
    #f2eee6;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  animation: page-enter .7s cubic-bezier(.22, 1, .36, 1) both;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 62vw;
  height: 62vw;
  left: -22vw;
  top: 18vh;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(197, 177, 144, .2), transparent 66%);
  filter: blur(18px);
  animation: material-drift 18s ease-in-out infinite alternate;
}

main, .header, .footer { position: relative; z-index: 1; }
.section { padding: clamp(90px, 9vw, 145px) var(--page-gutter); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: #88775f;
  font-size: 9px;
  letter-spacing: .16em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
h1, h2 { text-wrap: balance; letter-spacing: -.045em; }
h1 { font-size: clamp(54px, 6.2vw, 96px); line-height: .99; }
h2 { font-size: clamp(42px, 4.8vw, 72px); line-height: 1.04; }
h1 em, h2 em,
.intro h2 em, .location h2 em, .comfort h2 em, .booking h2 em { color: var(--bronze-light); }
p { text-wrap: pretty; }

.header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 88px;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid transparent;
  transition: height .28s ease, background-color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

@media (min-width: 901px) {
  .hero h1 em { display: inline-block; max-width: none; white-space: nowrap; font-size: .68em; }
}
.header.is-scrolled {
  height: 72px;
  background: rgba(22, 26, 26, .88);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px) saturate(1.15);
}
.logo-new { gap: 13px; }
.logo-symbol {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 15px;
  border-color: rgba(224, 208, 183, .35);
  background: rgba(255, 255, 255, .075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11), 0 10px 28px rgba(0, 0, 0, .15);
}
.logo-house { stroke-width: 3.15; }
.logo-words b { font-size: 14px; letter-spacing: -.035em; }
.logo-words small { color: #d2c2a9; letter-spacing: .28em; }
.nav { gap: clamp(18px, 2.2vw, 36px); font-size: 12px; }
.nav a { position: relative; opacity: .76; transition: opacity .2s ease, color .2s ease; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--bronze-light);
  transition: right .24s cubic-bezier(.22, 1, .36, 1);
}
.nav a:hover { opacity: 1; text-decoration: none; }
.nav a:hover::after { right: 0; }
.phone { font-size: 13px; letter-spacing: .015em; }

.hero {
  min-height: max(780px, 100svh);
  grid-template-columns: minmax(0, 1.03fr) minmax(440px, .97fr);
  background:
    radial-gradient(circle at 22% 38%, rgba(184, 157, 118, .12), transparent 35%),
    linear-gradient(120deg, #111617, #252b2c 64%, #171c1d);
  border-bottom: 1px solid rgba(221, 207, 184, .18);
}
.hero::before, .booking::before { opacity: .32; }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 154px 5vw 78px var(--page-gutter);
}
.hero-copy::after { display: none; }
.hero .eyebrow, .booking .eyebrow { color: #d1bea1; }
.hero h1 { max-width: 850px; }
.lead {
  max-width: 610px;
  margin: 34px 0 38px;
  color: #c2c6c3;
  font-size: 15px;
  line-height: 1.8;
}
.hero-actions { gap: 34px; }
.button {
  min-height: 52px;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  letter-spacing: -.01em;
  box-shadow: none;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover, .primary:hover {
  transform: translateY(-2px);
  background: #efe5d6;
  border-color: rgba(255, 255, 255, .35);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}
.button:active { transform: translateY(0) scale(.985); }
.primary { background: #dbcbb4; color: #202526; }
.text-link { position: relative; border: 0; color: #ece7de; }
.text-link::after { content: ""; position: absolute; inset: auto 0 -6px; height: 1px; background: rgba(232, 220, 199, .5); }
.quick-info {
  gap: 0;
  max-width: 690px;
  margin-top: clamp(56px, 7vh, 88px);
  border-top: 1px solid rgba(255, 255, 255, .13);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.quick-info div { min-width: 0; flex: 1; padding: 18px 22px; border-left-color: rgba(255, 255, 255, .13); }
.quick-info div:first-child { border-left: 0; padding-left: 0; }
.quick-info b { color: #f2eee7; font-size: 15px; }
.quick-info span { color: #979f9c; font-size: 9px; }
.hero-visual {
  margin: 112px max(3vw, calc((100vw - 1480px) / 2)) 48px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, .13), transparent 24%, transparent 76%, rgba(5, 8, 8, .18));
}
.hero-visual img { min-height: 620px; filter: saturate(.78) contrast(1.02); }
.availability {
  left: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 13px 16px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, .13);
  background: rgba(20, 24, 24, .76);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px) saturate(1.1);
}

.intro {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(70px, 10vw, 170px);
  background: rgba(248, 245, 238, .72);
  border-bottom: 1px solid var(--line);
}
.intro-text { gap: 42px; }
.intro-text p, .comfort-head > p:not(.eyebrow), .location-card > p:not(.eyebrow), .booking-copy > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.9;
}
.intro h2 em, .location h2 em { color: #927b5e; }

.apartment-gallery {
  padding-top: 28px;
  padding-bottom: 34px;
  gap: 16px;
  background: rgba(248, 245, 238, .72);
}
.apartment-gallery figure {
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.apartment-gallery img { transition: transform .5s cubic-bezier(.22, 1, .36, 1), filter .35s ease; }
.apartment-gallery figure:hover img { transform: scale(1.018); filter: contrast(1.025) saturate(.92); }
.apartment-gallery figcaption {
  left: 16px;
  bottom: 16px;
  padding: 10px 14px 10px 34px;
  border-radius: 12px;
  background: rgba(24, 28, 28, .78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}

.comfort {
  grid-template-columns: minmax(280px, .66fr) minmax(0, 1.34fr);
  gap: clamp(70px, 9vw, 150px);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, .62), transparent 30%),
    linear-gradient(140deg, #ded8cc, #f0ece4 58%, #d8d4ca);
  border-block: 1px solid rgba(91, 86, 77, .13);
}
.comfort h2 em { color: #8f785b; }
.comfort::after { opacity: .08; }
.amenities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.amenities article {
  min-height: 218px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(72, 71, 67, .13) !important;
  border-radius: 19px;
  background: rgba(255, 255, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38);
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), background-color .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.amenities article:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 101, 72, .25) !important;
  background: rgba(255, 255, 255, .48);
  box-shadow: var(--shadow-sm);
}
.amenities i {
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 15px;
  background: #282d2e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 25px rgba(26, 29, 29, .16);
}
.amenities h3 { margin: 0 0 10px; font-size: 13px; }
.amenities p { margin: 0; font-size: 11px; }

.stay-details {
  grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr);
  gap: clamp(70px, 8vw, 140px);
  background: rgba(244, 240, 232, .9);
}
.details-heading { top: 110px; }
.details-content { gap: 14px; border: 0; }
.details-content article {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(72, 72, 68, .13);
  border-radius: 20px;
  background: rgba(255, 255, 255, .44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}
.details-icon { border-radius: 14px; background: #292e2f; box-shadow: 0 12px 26px rgba(25, 29, 29, .16); }
.details-content h3 { margin: 0 0 18px; }
.details-content p, .details-content li { font-size: 11px; }

.location {
  grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr);
  gap: clamp(70px, 9vw, 150px);
  background: linear-gradient(180deg, rgba(250, 248, 243, .88), rgba(236, 232, 223, .9));
}
.location-card { display: flex; flex-direction: column; justify-content: center; padding: 30px 0; }
.location-tags { gap: 9px; }
.location-tags span {
  padding: 10px 13px;
  border: 1px solid rgba(77, 76, 71, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .46);
}
.interactive-map {
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}
.interactive-map iframe { min-height: 520px; filter: saturate(.7) contrast(.96); }
.map-caption {
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-left: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  background: rgba(250, 248, 243, .88);
  box-shadow: 0 12px 34px rgba(24, 27, 26, .15);
}

.reviews {
  grid-template-columns: minmax(300px, .62fr) minmax(0, 1.38fr);
  gap: clamp(70px, 9vw, 150px);
  background:
    radial-gradient(circle at 88% 18%, rgba(174, 150, 116, .11), transparent 25%),
    #f9f7f1;
}
.reviews-heading { top: 110px; }
.rating-summary > b { border-radius: 12px; background: #272c2d; box-shadow: 0 11px 26px rgba(25, 29, 29, .15); }
.reviews-list { gap: 16px; }
.review {
  padding: 30px;
  border-color: rgba(76, 75, 70, .14);
  border-radius: 20px;
  background: rgba(238, 234, 226, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, border-color .22s ease;
}
.review:hover { transform: translateY(-3px); border-color: rgba(126, 105, 75, .25); box-shadow: var(--shadow-sm); }
.review-featured {
  color: #fff;
  border-color: rgba(255, 255, 255, .08);
  background: linear-gradient(135deg, #242a2a, #313737);
  box-shadow: var(--shadow-md);
}
.review img { box-shadow: 0 0 0 3px #fff, 0 8px 22px rgba(29, 31, 31, .12); }

.booking {
  min-height: 760px;
  grid-template-columns: minmax(340px, .86fr) minmax(520px, 1.14fr);
  gap: clamp(70px, 8vw, 130px);
  background:
    radial-gradient(circle at 20% 38%, rgba(184, 157, 118, .12), transparent 32%),
    linear-gradient(125deg, #111617, #282e2f 68%, #171c1d);
}
.booking h2 { max-width: 720px; }
.booking-copy > p:not(.eyebrow) { max-width: 520px; color: #b4bab7; }
.booking-phone b { color: #e1d2bb; font-size: 30px; }
.booking-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; gap: 9px; }
.booking-benefits span {
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}
.calculator-form {
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 26px;
  background: rgba(250, 248, 243, .96);
  box-shadow: var(--shadow-dark), inset 0 1px 0 #fff;
}
.calculator-head { padding-bottom: 20px; }
.calculator-head > b { color: #8d7659; }
.calculator-fields, .contact-fields { gap: 22px; }
.calculator-fields label, .calculator-fields label:last-child, .contact-fields label {
  padding: 10px 2px 13px;
  border-bottom-color: rgba(58, 61, 59, .24);
  transition: border-color .2s ease, background-color .2s ease;
}
.calculator-fields label:focus-within, .contact-fields label:focus-within { border-bottom-color: #8f7656; }
.calculator-fields input, .calculator-fields select, .contact-fields input { min-height: 34px; color: #252929; }
.calculator-fields input:disabled { cursor: not-allowed; opacity: .42; }
.calculation {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: #282d2e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.calculator-form > .button { min-height: 56px; }
.calculator-form > .button:hover { box-shadow: 0 12px 26px rgba(45, 39, 31, .16); }
.booking-form :is(input, select):focus-visible { outline: none; }
.booking-form :is(input, select):focus { color: #111515; }

.footer {
  padding: 68px var(--page-gutter) 28px;
  background: #0e1213;
  border-top: 1px solid rgba(220, 204, 178, .18);
}
.footer .top { border-color: rgba(255, 255, 255, .18); transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.footer .top:hover { transform: translateY(-3px); border-color: rgba(218, 203, 179, .5); background: rgba(255, 255, 255, .06); }

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .62s ease var(--reveal-delay, 0ms), transform .68s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes page-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes material-drift { from { transform: translate3d(-2%, -1%, 0) scale(.98); } to { transform: translate3d(6%, 4%, 0) scale(1.06); } }

@media (max-width: 1120px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr); }
  .hero-copy { padding-right: 4vw; }
  .hero-visual { margin-right: 24px; }
  .booking { grid-template-columns: minmax(300px, .75fr) minmax(480px, 1.25fr); gap: 60px; }
  .booking-benefits { grid-template-columns: 1fr; max-width: 320px; }
}

@media (max-width: 900px) {
  :root { --page-gutter: 26px; }
  .header { height: 76px; }
  .header.is-scrolled { height: 68px; }
  .nav {
    top: 68px;
    left: 18px;
    right: 18px;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 18px;
    background: rgba(248, 245, 238, .96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
    backdrop-filter: blur(18px);
  }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav a:hover { background: rgba(50, 55, 54, .07); }
  .nav a::after { display: none; }
  .menu { width: 44px; height: 44px; padding: 7px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 13px; background: rgba(255, 255, 255, .05); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 760px; padding: 144px var(--page-gutter) 74px; }
  .hero-visual { height: 590px; margin: 0 var(--page-gutter) 28px; }
  .hero-visual img { min-height: 0; }
  .intro, .comfort, .stay-details, .location, .reviews, .booking { grid-template-columns: 1fr; }
  .intro, .comfort, .stay-details, .location, .reviews, .booking { gap: 60px; }
  .details-heading, .reviews-heading { position: relative !important; top: auto; }
  .amenities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .interactive-map, .interactive-map iframe { min-height: 470px; }
}

@media (max-width: 700px) {
  :root { --page-gutter: 20px; }
  .section { padding-block: 82px; }
  h1 { font-size: clamp(46px, 13vw, 64px); }
  h2 { font-size: clamp(38px, 10vw, 52px); }
  .logo-symbol { width: 42px; height: 42px; }
  .hero-copy { min-height: 700px; padding-top: 126px; }
  .lead { font-size: 14px; }
  .quick-info { display: grid; grid-template-columns: 1fr 1fr; }
  .quick-info div { padding: 15px 13px; }
  .quick-info div:first-child { padding-left: 0; }
  .quick-info div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .13); border-left: 0; padding-left: 0; }
  .hero-visual { height: 430px; border-radius: 22px; }
  .availability { left: 13px; bottom: 13px; }
  .intro-text { grid-template-columns: 1fr; gap: 10px; }
  .apartment-gallery { padding-top: 18px; padding-bottom: 20px; }
  .apartment-gallery figure { border-radius: 16px; }
  .amenities { grid-template-columns: 1fr 1fr; gap: 9px; }
  .amenities article { min-height: 205px; padding: 20px; border-radius: 16px; }
  .details-content { grid-template-columns: 1fr; }
  .details-content article { border-radius: 17px; }
  .interactive-map, .interactive-map iframe { min-height: 390px; }
  .map-caption { align-items: flex-start; }
  .reviews-list { gap: 12px; }
  .review { padding: 22px; border-radius: 17px; }
  .booking { min-height: auto; }
  .booking-benefits { grid-template-columns: 1fr; max-width: 330px; }
  .calculator-form { padding: 22px; border-radius: 20px; }
  .calculator-fields { gap: 12px; }
  .contact-fields { gap: 12px; }
  .footer { padding-top: 56px; }
}

@media (max-width: 430px) {
  .section { padding-block: 72px; }
  .logo-words small { letter-spacing: .21em; }
  .hero-actions { width: 100%; }
  .hero-actions .button { width: 100%; }
  .hero-visual { height: 370px; }
  .amenities { grid-template-columns: 1fr; }
  .amenities article { min-height: 180px; }
  .calculator-head { flex-direction: column; align-items: flex-start; }
  .calculator-fields { grid-template-columns: 1fr; }
  .calculator-fields label:nth-child(2), .calculator-fields label:last-child { grid-column: auto; }
  .calculation { flex-direction: column; align-items: flex-start; }
  .booking-steps span { font-size: 6.5px; }
  .map-caption a { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body, body::after { animation: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .apartment-gallery img, .amenities article, .review, .button, .footer .top { transition: none; }
}

/* --- Production audit fixes (2026-08-30) --- */

/* Booking form is the primary conversion path: make date/name/phone fields
   meet the 44px touch-target guideline on every device. */
.calculator-fields input,
.calculator-fields select,
.contact-fields input { min-height: 44px; }

/* The booking stepper labels were shrunk to 6.5–7px and became unreadable. */
@media (max-width: 700px) {
  .booking-steps span { font-size: 9px; }
  .booking-steps span b { width: 20px; height: 20px; }
}

/* Photo captions and map labels: keep them legible on small screens. */
@media (max-width: 700px) {
  .apartment-gallery figcaption { font-size: 10px; }
  .map-caption small, .map-caption a { font-size: 10px; }
}

/* Guard the hero headline against an orphan "по-" line below the desktop
   breakpoint: keep "по-настоящему" whole (it only gets white-space:nowrap on
   the whole em at >=901px) and size the headline so the longest word fits. */
.hero h1 em .nowrap { white-space: nowrap; }
@media (max-width: 900px) {
  .hero h1 { font-size: clamp(40px, 11.5vw, 60px); }
}

/* Very narrow phones (<=374px): let single-column grid tracks shrink below the
   min-content width of the wide Unbounded headings / phone number so nothing is
   clipped by the body's overflow:clip. */
@media (max-width: 374px) {
  :root { --page-gutter: 16px; }
  .intro, .comfort, .stay-details, .location, .reviews, .booking {
    grid-template-columns: minmax(0, 1fr);
  }
  .booking-copy, .booking-form, .hero-copy { min-width: 0; }
  .hero h1, .booking h2 { overflow-wrap: break-word; }
  .booking-phone b { font-size: 22px; }
}

/* --- Screenshot fixes: heading glyph collisions & review avatars (2026-08-30) --- */

/* Prata is a high-contrast display serif; the previous -0.045em tracking + ~1.0
   line-height made Cyrillic ascenders/descenders (й, ё, я, ц) collide between
   wrapped lines. Loosen tracking and open the leading on the section headings.
   The hero <h1> is left as-is (it never collided and its <em> is nowrap on
   desktop). Visual style is unchanged. */
h2 { letter-spacing: -.02em; line-height: 1.2; }

/* The <em> parts render as synthetic italic (Prata ships no italic); the negative
   tracking made the slanted glyphs overlap ("себя дома"). Neutral tracking fixes
   it without changing the italic look. */
.intro h2 em, .location h2 em, .comfort h2 em, .booking h2 em,
.reviews h2 em, .stay-details h2 em { letter-spacing: .012em; }

/* "Кровать и диван" is longer than "2 кровати": let it wrap to two balanced
   lines and reserve two lines of height on every stat so the captions still
   line up across the row. */
.quick-info b { text-wrap: balance; line-height: 1.15; }
@media (min-width: 701px) {
  .quick-info b { display: block; min-height: 2.15em; }
}

/* Reviews: unique illustrated portrait avatars (one per reviewer). */
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #e7e2d8;
}
@media (max-width: 620px) {
  .review-avatar { width: 44px; height: 44px; }
}

/* --- Photo gallery viewer (fixes gallery photos not opening on phones) --- */
.apartment-gallery figure { cursor: zoom-in; }
.apartment-gallery figure:focus-visible {
  outline: 3px solid #cbbb9f;
  outline-offset: 3px;
}

html.lightbox-open,
html.lightbox-open body { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 26px);
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(16, 18, 18, .92);
  backdrop-filter: blur(6px);
  overscroll-behavior: contain;
  touch-action: pinch-zoom;
  animation: lightbox-in .18s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-in { from { opacity: 0; } }

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  background: #1d2222;
}
.lightbox-figure figcaption {
  color: #e8e2d6;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, .18); }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 3px solid #cbbb9f; outline-offset: 3px; }
.lightbox-nav { width: 52px; height: 52px; font-size: 26px; line-height: 1; }
.lightbox-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 46px;
  height: 46px;
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 640px) {
  .lightbox { flex-wrap: wrap; align-content: center; }
  .lightbox-figure { order: -1; flex-basis: 100%; }
  .lightbox-figure img { max-height: 68vh; }
  .lightbox-nav { width: 46px; height: 46px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox { animation: none; }
}

/* Booking form: error/no-connection state for the status line (default is success-green). */
.calculator-form .success.is-error {
  background: #f6e9e5;
  color: #7d4a3f;
}
.calculator-form .success.is-error a { color: #6b3a30; }
