/* Apartamentos Anfiteatro — apart-benidorm.es
   Стили сайта и онлайн-бронирования. Направление «Средиземноморский свет» (31.10.2026). */
:root {
  /* Светлый известняк, солнечный мандарин, тёплый тёмный */
  --paper: #FBF7F1;      /* фон страниц */
  --sand: #F4E9DC;       /* фоновые блоки, подвал */
  --sun: #F08A24;        /* мандарин — кнопки (текст на них тёмный), метки */
  --sun-deep: #DB7612;   /* наведение на кнопку */
  --sun-soft: #FCE4CB;   /* выделенный период в календаре */
  --accent: #B85A0E;     /* тёмно-оранжевый — ссылки и подписи (контраст ≥ 4.5) */
  --accent-deep: #8C430A;
  --ink: #2A211C;        /* текст, контурные кнопки */
  --muted: #5E4A3E;      /* второстепенный текст */
  --soft: #7A5F4E;       /* подписи капителью */
  --palm: #9A4E10;       /* цены и расстояния */
  --line: rgba(42, 33, 28, .14);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--sans);
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0 0 .5em; letter-spacing: 0; }
h2 { font-size: clamp(2.3rem, 1.6rem + 2.2vw, 3.6rem); }
h3 { font-size: 1.75rem; font-weight: 600; }
p { margin: 0 0 1em; }
dl, dd { margin: 0; }
figure { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .95rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }
.kicker { display: block; font: 500 .9rem/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--soft); }
.kicker-accent { color: var(--accent); font-weight: 600; }

/* Кнопки: прямоугольные, капитель. Основная — мандарин с тёмным текстом. */
.btn {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  font: 600 .95rem/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1.15em 2em;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
}
.btn:hover { background: var(--sun-deep); color: var(--ink); text-decoration: none; }
.btn-light, .btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-light:hover, .btn-outline:hover { background: var(--ink); color: var(--paper); }
.link-arrowless, .link-line {
  align-self: flex-start; display: inline-block; color: var(--ink); font: 600 .95rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border-bottom: 2px solid var(--sun); padding-bottom: 5px;
}
.link-arrowless:hover, .link-line:hover { color: var(--accent-deep); border-color: var(--accent); }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 10; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 84px; }
.brand { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); position: relative; z-index: 1; }
.brand-mark { width: 44px; height: 44px; color: var(--sun); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 600 2rem/1 var(--serif); letter-spacing: .02em; color: var(--ink); }
.brand-sub { font-size: .72rem; color: var(--soft); letter-spacing: .32em; text-transform: uppercase; margin-top: 5px; }

.site-nav { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-main { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-main a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: .5em; }
.nav-side { display: flex; align-items: center; gap: 18px; }
.nav-book { padding: .95em 1.7em; }
.nav-book[aria-current="page"] { background: var(--sun-deep); }
.nav-toggle { display: none; }

.lang { position: relative; }
.lang-top { display: none; }   /* рядом с кнопкой «Меню» — только на узком экране */
.lang summary {
  list-style: none; cursor: pointer; font-weight: 500; letter-spacing: .08em; color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; padding: .5em .8em;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .5em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 8px 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 190px;
  box-shadow: 0 14px 34px rgba(42, 33, 28, .12); columns: 2; column-gap: 0;
}
.lang li a { display: block; padding: 6px 16px; color: var(--ink); text-decoration: none; }
.lang li a:hover { color: var(--accent); }
.lang li a[aria-current] { color: var(--accent); font-weight: 600; }

/* ---------- главная: первый экран ---------- */
.hero { padding-top: clamp(48px, 6vw, 80px); text-align: center; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-title { font: 500 clamp(1.4rem, 7.4vw, 6rem)/1.05 var(--serif); margin: 0; white-space: nowrap; }
.hero-lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; max-width: 34em; margin: 0; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 10px 0 0; }
.hero-photos { list-style: none; margin: clamp(40px, 5vw, 56px) auto 0; padding-top: 0; padding-bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.hero-photos li { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.hero-photos > li > img, .hero-photos > li > a, .hero-photos > li > a > img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-photos > li > a:hover img { opacity: .92; }

/* ---------- facts ---------- */
.facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 12px 40px; margin: 40px auto 0; padding: 0; }
.facts-line { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; width: 100%; }
.facts li { display: flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: .03em; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); flex: none; }

/* ---------- sections ---------- */
.intro, .location, .practical, .apt-body, .also, .other, .page-head, .surr { padding-top: clamp(64px, 9vw, 120px); }
.intro { max-width: calc(820px + 2 * var(--gutter)); text-align: center; }
.intro-text p { max-width: 64ch; margin-left: auto; margin-right: auto; color: var(--muted); }
.intro h2 { margin-bottom: .45em; }

.apartments { padding-top: clamp(64px, 9vw, 120px); }
.apartments > .wrap > h2 { text-align: center; margin-bottom: clamp(32px, 5vw, 64px); }
.apt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(56px, 8vw, 104px); }
.apt-flip .apt-photo { order: 2; }
.apt-photo { display: block; border-radius: var(--radius); overflow: hidden; }
.apt-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transition: transform .6s ease; }
.apt-photo:hover img { transform: scale(1.02); }
.apt-text { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.apt-flip .apt-text { justify-self: end; }
.apt-text h3 { font: 500 clamp(3rem, 2.2rem + 2.4vw, 4.2rem)/1 var(--serif); margin: 0; }
.apt-text h3 a { color: var(--ink); text-decoration: none; }
.apt-text p { margin: 0; color: var(--muted); }
.apt-size { margin: 0; text-transform: none; letter-spacing: .14em; font-size: .95rem; }
.apt-beds { font-size: 1rem; }

.building { padding-top: clamp(64px, 9vw, 120px); }
.building h2 { text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.building-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius); margin-bottom: 40px; }
.building-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.building-list > div { border-top: 3px solid var(--sun); padding-top: 20px; }
.building-list dt { font: 600 1.6rem/1.15 var(--serif); margin-bottom: 8px; }
.building-list dd { color: var(--muted); font-size: 1rem; }

.location { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.location-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.location-text > p { color: var(--muted); }
.distances { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-variant-numeric: tabular-nums; }
.distances th, .distances td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.distances td { text-align: right; white-space: nowrap; padding-left: 16px; color: var(--palm); font-weight: 600; }
.location-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }

.practical h2 { margin-bottom: 32px; }
.practical-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 48px; }
.practical-list dt { font: 600 1.45rem/1.2 var(--serif); margin-bottom: 6px; }
.practical-list dd { color: var(--muted); font-size: 1rem; }

.book { margin: clamp(64px, 9vw, 120px) auto 0; max-width: calc(var(--max) + 2 * var(--gutter)); padding: 0 var(--gutter); }
.book-inner { max-width: none; background: var(--sand); border-radius: var(--radius); padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 48px); text-align: center; }
.book h2 { font-size: clamp(2.6rem, 1.8rem + 2.4vw, 4rem); }
.book-soon { color: var(--muted); max-width: 56ch; margin: 0 auto 1.6em; }
.book-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 0; }

/* ---------- apartment page ---------- */
.apt-head { padding-top: clamp(48px, 6vw, 88px); }
.apt-head h1, .page-head h1 { font: 500 clamp(3.2rem, 2rem + 4.5vw, 6rem)/1 var(--serif); color: var(--ink); margin-bottom: .2em; }
.apt-meta { display: flex; flex-wrap: wrap; gap: 8px 48px; margin-bottom: 20px; }
.apt-meta dt { font-size: .8rem; color: var(--soft); letter-spacing: .2em; text-transform: uppercase; }
.apt-meta dd { font: 600 1.35rem/1.3 var(--serif); }
.apt-lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.55; max-width: 52ch; color: var(--muted); }

.gallery { padding-top: 32px; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(120px, 14vw, 210px); gap: 10px; }
.g-item { border-radius: var(--radius); overflow: hidden; }
.g-item a, .g-item img { display: block; width: 100%; height: 100%; }
.g-item img { object-fit: cover; transition: opacity .2s; }
.g-item a:hover img { opacity: .88; }
.g-first { grid-column: span 2; grid-row: span 2; }

.apt-body { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); }
.apt-desc p { max-width: 60ch; color: var(--muted); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.features-grid h3 { font-size: 1.45rem; border-top: 3px solid var(--sun); padding-top: 14px; }
.features-grid ul { list-style: none; margin: 0; padding: 0; }
.features-grid li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }

.also-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.also-list li { color: var(--muted); }
.also-list strong { color: var(--ink); font-weight: 600; }

.other { padding-bottom: clamp(64px, 9vw, 112px); }
.other-card { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); align-items: center; text-decoration: none; color: var(--ink); background: var(--sand); border-radius: var(--radius); overflow: hidden; }
.other-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.other-text { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 24px 0; color: var(--muted); }
.other-label { color: var(--soft); font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; }
.other-name { font: 500 2.4rem/1.05 var(--serif); color: var(--ink); }
.other-card:hover .other-name { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: .15em; }
.other-card:hover { color: var(--muted); }

/* ---------- surroundings ---------- */
.page-head { padding-top: clamp(48px, 6vw, 88px); }
.surr { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: 32px; }
.surr-sec { padding-bottom: clamp(40px, 5vw, 64px); }
.surr-sec p { max-width: 64ch; color: var(--muted); }
.surr-photos { display: grid; gap: 10px; margin-top: 20px; }
.surr-photos-2 { grid-template-columns: 1fr 1fr; }
.surr-photos-3 { grid-template-columns: 2fr 1fr 1fr; }
.surr-photos img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.surr-photos-1 img { aspect-ratio: 16 / 9; }
.surr-aside { position: sticky; top: 24px; background: var(--sand); border-radius: var(--radius); padding: 28px; }
.surr-aside h2 { font-size: 2rem; }

.notfound { padding-bottom: 96px; }

/* ---------- юридические страницы ---------- */
.legal { max-width: calc(860px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); }
.legal-meta { color: var(--soft); font-size: .9rem; letter-spacing: .06em; }
.legal-note { background: var(--sand); border-radius: var(--radius); padding: 12px 16px; font-size: .98rem; color: var(--muted); }
.legal-body { padding-top: 16px; color: var(--muted); }
.legal-body h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); color: var(--ink); margin: 1.6em 0 .5em; }
.legal-body h3 { font-size: 1.4rem; color: var(--ink); margin: 1.2em 0 .4em; }
.legal-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal-body li { margin: .35em 0; }
.legal-body li::marker { color: var(--sun); }
.legal-body strong { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--sand); padding: 64px 0 52px; margin-top: clamp(64px, 9vw, 120px); }
.page-home .site-footer, .page-surroundings .site-footer, .page-estudio .site-footer, .page-suite .site-footer { margin-top: clamp(64px, 9vw, 120px); }
.footer-grid { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 40px; }
.footer-brand .brand-mark { width: 52px; height: 52px; margin-bottom: 12px; color: var(--sun); }
.footer-name { font: 600 1.7rem/1.2 var(--serif); color: var(--ink); margin-bottom: 8px; }
.site-footer address { font-style: normal; color: var(--muted); }
.footer-h { font-size: 1.6rem; font-weight: 600; }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin-bottom: 12px; }
.contact-list dt { color: var(--muted); }
.footer-nav { list-style: none; margin: 0 0 16px; padding: 0; }
.footer-nav li { padding: 2px 0; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover, .footer-legal a[aria-current] { color: var(--accent); text-decoration: underline; }
.footer-legal p { margin: 0; }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(26, 20, 16, .96); color: #fff; }
.lightbox::backdrop { background: rgba(26, 20, 16, .9); }
.lightbox figure { position: absolute; inset: 56px 72px 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100% - 32px); object-fit: contain; }
.lightbox figcaption { font-size: .95rem; color: rgba(255, 255, 255, .8); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(240, 138, 36, .55); }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .header-row { display: flex; justify-content: space-between; min-height: 72px; }
  .brand { margin-right: auto; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; color: var(--ink); background: none;
    border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
  }
  .burger { position: relative; display: block; width: 22px; height: 16px; }
  .burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s, top .2s; }
  .burger i:nth-child(1) { top: 0; }
  .burger i:nth-child(2) { top: 7px; }
  .burger i:nth-child(3) { top: 14px; }
  /* открыто — крестик */
  .nav-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px; box-shadow: 0 16px 30px rgba(42, 33, 28, .08); }
  .site-nav.open { display: flex; }
  .nav-main { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-main a { display: block; padding: 10px 0; font-size: 1.05rem; }
  .nav-side { flex-direction: column-reverse; align-items: stretch; }
  .lang-nav { display: none; }
  .lang-top { display: block; flex: none; }
  .lang-top summary { white-space: nowrap; display: inline-flex; align-items: center; min-height: 46px; }
  .lang-top ul { z-index: 50; }
  .practical-list { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .building-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .apt, .location, .apt-body, .surr, .footer-grid, .other-card { grid-template-columns: 1fr; }
  .apt-flip .apt-photo { order: 0; }
  .apt-flip .apt-text { justify-self: start; }
  .hero-photos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-photos li:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .hero-photos > li:nth-child(2) > img { aspect-ratio: 3 / 2; }
  .facts { justify-content: flex-start; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 34vw; }
  .also-list { grid-template-columns: 1fr; }
  .other-text { padding: 0 20px 24px; }
  .surr-aside { position: static; }
  .building-photo img { aspect-ratio: 3 / 2; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.7rem; }
  .brand-sub { font-size: .66rem; letter-spacing: .26em; }
  .header-row { gap: 10px; }
  .lang-top summary { padding: .55em .6em; }
  .hero-actions { flex-direction: column; align-self: stretch; }
  .intro { text-align: left; }
  .facts { flex-direction: column; gap: 10px; }
  .practical-list, .features-grid, .building-list { grid-template-columns: 1fr; }
  .surr-photos-2, .surr-photos-3 { grid-template-columns: 1fr; }
  .lightbox figure { inset: 56px 8px 72px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-item img, .apt-photo img { transition: none; }
}
.apt-guests { display: inline; }
.g-item:last-child:not(.g-first) { grid-column: span 2; }

/* Значок награды Booking.com (разрешён к использованию в маркетинге) */
.award-block { padding-top: clamp(56px, 7vw, 96px); }
.award-fig { display: flex; align-items: center; justify-content: center; gap: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.award { width: 128px; height: 128px; border-radius: var(--radius); }
.award-fig figcaption { font: 500 1.5rem/1.3 var(--serif); color: var(--muted); max-width: 32ch; }

/* Карта OpenStreetMap */
.map { padding-top: clamp(32px, 4vw, 48px); }
.map-link { display: block; border-radius: var(--radius); overflow: hidden; }
.map-img { width: 100%; height: auto; aspect-ratio: 2842 / 1096; object-fit: cover; }
.map-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 10px; font-size: 1rem; color: var(--muted); }
.apt-location { padding-top: clamp(64px, 9vw, 120px); }
.apt-location h2 { margin-bottom: 0; }

/* ---------- онлайн-бронирование ---------- */
.booking { padding-bottom: clamp(56px, 8vw, 112px); }
.bk-step { display: grid; gap: 24px; margin-top: 32px; max-width: 1000px; }
.bk-step[hidden] { display: none; }
.bk-step[data-step="2"], .bk-step[data-step="3"] { display: block; max-width: 760px; }
.bk-step[data-step="2"][hidden], .bk-step[data-step="3"][hidden] { display: none; }
.bk-step-title { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.7rem); margin: 0; }

.bk-units { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-unit { position: relative; display: block; cursor: pointer; border-radius: var(--radius); overflow: hidden; background: #fff; outline: 2px solid var(--line); outline-offset: -2px; transition: outline-color .15s; }
.bk-unit input { position: absolute; opacity: 0; inset: 0; }
.bk-unit-img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.bk-unit-text { display: flex; flex-direction: column; padding: 10px 14px 12px; }
.bk-unit-name { font: 600 1.6rem/1.1 var(--serif); color: var(--ink); }
.bk-unit-meta { font-size: .95rem; color: var(--muted); }
.bk-unit:has(input:checked) { outline: 3px solid var(--sun); outline-offset: -3px; background: var(--sun-soft); }
.bk-unit:has(input:focus-visible) { outline: 3px solid var(--accent); }

.bk-guests { display: flex; gap: 18px; flex-wrap: wrap; }
.bk-guests label { display: flex; flex-direction: column; font-weight: 500; font-size: .95rem; gap: 4px; }
.booking select, .booking input:not([type=radio]):not([type=checkbox]), .booking textarea {
  font: 400 1.05rem/1.3 var(--sans); color: var(--ink); background: #fff; border: 1px solid rgba(42,33,28,.3); border-radius: 4px; padding: .6em .75em; min-height: 46px; width: 100%;
}
.booking select:focus, .booking input:focus, .booking textarea:focus { border-color: var(--sun); outline: 2px solid var(--sun-soft); }
.bk-guests select { min-width: 96px; }
.booking textarea { resize: vertical; }

.bk-cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bk-hint { flex: 1; text-align: center; margin: 0; font-weight: 500; }
.bk-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.bk-nav:hover:not(:disabled) { border-color: var(--sun); }
.bk-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bk-nav:disabled { opacity: .35; cursor: default; }
.bk-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; min-height: 330px; }
.bk-month-name { font-size: 1.6rem; text-align: center; margin-bottom: .4em; }
.bk-month-name::first-letter { text-transform: uppercase; }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.bk-wd { text-align: center; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); padding: 2px 0 6px; }
.bk-day { aspect-ratio: 1 / 1.05; border: 0; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 500 1rem/1 var(--sans); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; min-width: 0; }
.bk-day .p { font: 400 .72rem/1 var(--sans); color: var(--palm); }
.bk-day:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--sun); }
.bk-day:disabled { cursor: default; }
.bk-day.busy, .bk-day.past { background: transparent; box-shadow: none; color: rgba(42,33,28,.32); }
.bk-day.busy .n { text-decoration: line-through; }
.bk-day.noarr:not(.range):not(.sel) { background: repeating-linear-gradient(135deg, #fff 0 5px, var(--sand) 5px 9px); }
.bk-day.can-out { box-shadow: inset 0 0 0 2px #F5B97A; }
.bk-day.range { background: var(--sun-soft); box-shadow: none; border-radius: 0; }
.bk-day.sel { background: var(--sun); color: var(--ink); box-shadow: none; }
.bk-day.sel .p { color: var(--ink); }
.bk-day.sel-in { border-radius: 4px 0 0 4px; }
.bk-day.sel-out { border-radius: 0 4px 4px 0; }
.bk-day.sel-in:not(.sel-out):last-child, .bk-day.sel-in.sel-out { border-radius: 4px; }
.bk-pad { display: block; }
.bk-legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; color: var(--muted); }
.bk-legend li { display: flex; align-items: center; gap: 7px; }
.lg { width: 18px; height: 18px; border-radius: 4px; display: inline-block; box-shadow: inset 0 0 0 1px var(--line); }
.lg-free { background: #fff; }
.lg-busy { background: transparent; box-shadow: none; position: relative; }
.lg-busy::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; border-top: 2px solid rgba(42,33,28,.32); }
.lg-noarr { background: repeating-linear-gradient(135deg, #fff 0 5px, var(--sand) 5px 9px); }

.bk-summary { background: var(--sand); border-radius: var(--radius); padding: 24px 24px 26px; }
.bk-plans { border: 0; margin: 0 0 14px; padding: 0; }
.bk-plans[hidden] { display: none; }
.bk-plans legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.bk-plan-list { display: grid; gap: 8px; }
.bk-plan { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: start; background: #fff; border-radius: 4px; padding: 10px 12px; cursor: pointer; outline: 1px solid var(--line); }
.bk-plan:has(input:checked) { outline: 2px solid var(--sun); background: #fff; }
.bk-plan input { margin: 4px 0 0; accent-color: var(--sun); width: 18px; height: 18px; }
.bk-plan-text { display: flex; flex-direction: column; font-size: .95rem; line-height: 1.35; }
.bk-plan-sub { color: var(--muted); font-size: .86rem; }
.bk-plan-price { font-weight: 600; text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.bk-plan-save { font-weight: 500; font-size: .78rem; color: #3B5221; background: #E7EEDC; border-radius: 3px; padding: 1px 6px; margin-top: 3px; }
.bk-methods { font-size: .85rem; }
.bv-status { display: inline-block; font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; background: var(--sun-soft); color: var(--accent-deep); }
.bv-cancel { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-width: 620px; }
.bv-cancel summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; font-size: .95rem; color: var(--muted, #6B5B4F); }
.bv-cancel summary::-webkit-details-marker { display: none; }
.bv-cancel summary:hover { color: var(--ink, #2A211C); }
.bv-cancel summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bv-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.bv-cancel[open] .bv-chev { transform: rotate(180deg); }
.bv-cancel form { padding: 0 20px 20px; }
.bv-contact { margin-top: 24px; }
.bv-cancel .chk { margin: 12px 0 16px; }
.btn-danger { background: transparent; color: #8A2E08; border-color: #8A2E08; }
.btn-danger:hover { background: #8A2E08; color: #fff; }
.bk-sum-list, .bk-price, .bv-list { display: grid; gap: 8px; margin: 0 0 14px; }
.bk-sum-list div, .bk-price div, .bv-list div { display: flex; justify-content: space-between; gap: 16px; }
.bk-sum-list dt, .bk-price dt, .bv-list dt { color: var(--muted); }
.bk-sum-list dd, .bk-price dd, .bv-list dd { font-weight: 600; text-align: right; }
.bk-price { border-top: 1px solid var(--line); padding-top: 12px; }
.bk-price[hidden], .bk-fee[hidden] { display: none; }
.bk-total, .bv-total { font-size: 1.3rem; }
.bk-total dt, .bv-total dt { color: var(--ink); font-weight: 600; }
.bk-note { font-size: .95rem; color: var(--muted); }
.bk-summary .btn, .bk-actions .btn { width: 100%; cursor: pointer; }
.btn:disabled { background: rgba(42,33,28,.18); color: rgba(42,33,28,.55); cursor: default; }
.bk-error { background: #FBE1D3; color: #8A2E08; border-radius: 4px; padding: 10px 14px; font-weight: 500; }
.bk-error[hidden], .bk-ok[hidden] { display: none; }
.bk-ok { background: #E7EEDC; color: #3B5221; border-radius: 4px; padding: 10px 14px; }

.bk-sel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0 14px; display: grid; gap: 14px; }
.bk-sel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bk-sel-title { margin: 0; }
.bk-sel-title strong { font: 600 1.35rem/1.2 var(--serif); }
.bk-sel-title span { color: var(--muted); font-size: .95rem; }
.bk-change { white-space: nowrap; }
.bk-sel-dates { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: 12px; }
.bk-sel-dates > div { display: flex; flex-direction: column; gap: 2px; }
.bk-sel-dates > div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.bk-sel-l { font-weight: 600; font-size: .95rem; }
.bk-sel-d { color: var(--accent); font-size: 1.15rem; }
.bk-sel-t { color: var(--muted); font-size: .92rem; }
.bk-sel-rate { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.bk-sel-rate p { margin: 0; line-height: 1.4; }
.bk-sel-rate .bk-plan-save { align-self: flex-start; }
.bk-sel-rate .bk-plan-save[hidden], .bk-sel-price div[hidden] { display: none; }
.bk-sel-price { display: grid; gap: 6px; margin: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.bk-sel-price div { display: flex; justify-content: space-between; gap: 16px; }
.bk-sel-price dt { color: var(--muted); }
.bk-sel-price dd { margin: 0; font-weight: 600; }
.bk-step[data-step="2"] > .bk-step-title { margin: 22px 0 10px; }
.page-head .apt-lead[hidden] { display: none; }
.bk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.fld { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: .95rem; }
.fld-wide { grid-column: 1 / -1; }
.fld.bad input, .fld.bad select { border-color: #C2410C; box-shadow: 0 0 0 2px #FBD3BC; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
.chk input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--sun); flex: none; }
.chk.bad span { color: #8A2E08; }
.bk-small { font-size: .92rem; color: var(--muted); margin: 0; }
.bk-actions { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 6px; }
.bk-actions .btn { width: auto; flex: 0 1 auto; }
.btn-link { background: none; border: 0; padding: 10px 0; font: 600 1rem/1 var(--sans); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.bk-code-form { max-width: 420px; display: grid; gap: 14px; margin-top: 20px; }
.booking .code-input { font: 600 2rem/1 var(--sans); letter-spacing: .35em; text-align: center; padding: .4em .5em; }
.bk-alt { margin-top: 40px; text-align: center; }

.bv-card { background: var(--sand); border-radius: var(--radius); padding: 24px; max-width: 620px; margin: 28px 0; }
.bv-code { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; color: var(--muted); }
.bv-code strong { font: 600 1.6rem/1 var(--sans); letter-spacing: .12em; color: var(--ink); }
.is-cancelled .bv-card { background: #EFE7DF; }
.is-cancelled h1 { color: var(--muted); }

@media (max-width: 560px) {
  .bk-units { gap: 10px; }
  .bk-unit-text { padding: 8px 10px 10px; }
  .bk-unit-name { font-size: 1.3rem; }
  .bk-form { grid-template-columns: 1fr; }
  .bk-actions { flex-direction: column-reverse; align-items: stretch; }
  .bk-actions .btn { width: 100%; }
  .bk-grid { gap: 2px; }
  .bk-day { font-size: .95rem; }
  .bk-day .p { font-size: .66rem; }
}
.booking-view { padding-bottom: clamp(48px, 6vw, 88px); }
/* Кто оказывает услугу — обязательная, но второстепенная информация */
.bk-provider { margin: 14px 0 0; font-size: .78rem; line-height: 1.5; color: var(--soft); opacity: .85; }

/* Поиск: одно поле дат (открывает окно календаря) + ночи + гости; результаты — карточки апартаментов */
.bk-search { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; background: var(--sand); border-radius: var(--radius); padding: 16px 20px; }
.bk-dates { flex: 1 1 340px; max-width: 460px; }
.bk-field { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; background: #fff; border: 2px solid var(--sun); border-radius: 6px; padding: 7px 14px; min-height: 58px; font: inherit; color: var(--ink); }
.bk-field:hover, .bk-field[aria-expanded="true"] { border-color: var(--sun-deep, #C96A12); }
.bk-field:focus-visible { outline: 3px solid var(--sun-soft); outline-offset: 1px; }
.bk-field > svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.bk-field-text { display: flex; flex-direction: column; min-width: 0; }
.bk-field-t { font-size: .8rem; color: var(--muted); line-height: 1.2; }
.bk-field-v { font-weight: 600; font-size: 1.05rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-field-v.ph { color: var(--ink); }
.bk-nights { display: flex; flex-direction: column; gap: 4px; }
.bk-nights span { font-weight: 500; font-size: .95rem; }
.bk-nights strong { min-height: 46px; display: flex; align-items: center; font-size: 1.1rem; }
/* Окно календаря: под полем на компьютере, выезжающая снизу панель на телефоне */
.bk-pop { position: absolute; z-index: 30; left: 12px; top: calc(100% + 8px); width: min(720px, calc(100vw - 32px)); background: #fff; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(42,33,28,.22), 0 0 0 1px var(--line); padding: 16px 18px 14px; }
.bk-pop[hidden], .bk-backdrop[hidden] { display: none; }
.bk-pop .bk-cal { min-height: 0; }
.bk-pop .bk-cal-head { margin-bottom: 6px; }
.bk-close { margin-left: 4px; }
.bk-backdrop { display: none; }
html.bk-lock, html.bk-lock body { overflow: hidden; }
@media (max-width: 760px) {
  .bk-dates { max-width: none; flex-basis: 100%; }
  .bk-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(42,33,28,.45); }
  .bk-pop { position: fixed; z-index: 41; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 88vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); }
  .bk-pop .bk-cal-head { position: sticky; top: -14px; background: #fff; z-index: 1; padding: 6px 0; }
}
.bk-results[hidden] { display: none; }
.bk-results-title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 8px 0 14px; }
.bk-res-list { display: grid; gap: 18px; }
.bk-res { display: grid; grid-template-columns: 300px minmax(0, 1fr); background: #fff; border-radius: var(--radius); overflow: hidden; outline: 1px solid var(--line); outline-offset: -1px; }
.bk-res-img { display: block; background: var(--sand); }
.bk-res-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; display: block; }
.bk-res-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 4px; }
.bk-res-name { font: 600 1.7rem/1.1 var(--serif); margin: 0; }
.bk-res-name a { color: var(--ink); text-decoration: none; }
.bk-res-name a:hover { text-decoration: underline; }
.bk-res-meta, .bk-res-beds { margin: 0; color: var(--muted); font-size: .95rem; }
.bk-rates { display: grid; gap: 10px; margin-top: 12px; }
.bk-rate { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 18px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.bk-rate-info { display: flex; flex-direction: column; font-size: .97rem; line-height: 1.35; }
.bk-rate-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.bk-rate-total { font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.bk-rate-sub { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.bk-choose { cursor: pointer; min-width: 120px; }
@media (max-width: 760px) {
  .bk-res { grid-template-columns: 1fr; }
  .bk-res-img img { aspect-ratio: 16 / 9; }
  .bk-rate { grid-template-columns: minmax(0, 1fr) auto; }
  .bk-choose { grid-column: 1 / -1; width: 100%; }
  .bk-search { padding: 14px; }
}
.bk-results .bk-paynote { margin-top: 18px; }
.booking.bk-busy .bk-res-list { opacity: .5; transition: opacity .15s; }
.bk-rate-old { font-weight: 500; font-size: .95rem; color: var(--muted); margin-right: 2px; }
.bk-rate-info .bk-plan-save { align-self: flex-start; margin-top: 6px; white-space: normal; line-height: 1.3; }
@media (max-width: 380px) {
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.45rem; }
  .brand-sub { font-size: .58rem; letter-spacing: .2em; }
}
.bk-extras { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 0 14px; padding: 12px 18px 14px; display: grid; gap: 12px; }
.bk-extras legend { font-weight: 600; padding: 0 6px; margin-left: -6px; }
.bk-extra { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.bk-extra input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sun); flex: none; }
.bk-extra > span { display: flex; flex-direction: column; line-height: 1.35; }
.bk-pk-req[hidden] { display: none; }
.bk-extra small { color: var(--muted); font-size: .9rem; }
