/* Шаблон сайта гостиницы. Цвета и шрифты — переменные, меняются под клиента. */
:root {
    --teal: #0B6E79;
    --teal-dark: #08525A;
    --deep: #0B3A44;
    --ink: #10242F;
    --muted: #4A5A63;
    --line: #E3E9E8;
    --soft: #F1F5F4;
    --accent: #F2B544;
    --star: #B07A12;
    --radius: 14px;
    --font-body: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: Unbounded, var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.5 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { margin: 0; }
h1, h2, .h2 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }
h2, .h2 { font-size: clamp(24px, 4vw, 36px); }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-flush { padding-top: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack, .stack-md { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.link { font-weight: 600; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1.5px solid transparent; font: 600 15px var(--font-body); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal); padding: 0 16px; background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-block { min-height: 48px; width: 100%; }

/* Шапка */
.site-header { position: relative; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 18px var(--font-head); }
.brand svg { color: var(--teal); }
.nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.phone { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.lang, .burger { min-height: 44px; padding: 0 12px; border: 1px solid #D3DCDB; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.burger { display: none; align-items: center; justify-content: center; width: 44px; padding: 0; }

/* Первый экран */
.hero { color: #fff; background: linear-gradient(rgba(11, 58, 68, .72), rgba(11, 58, 68, .86)), var(--hero-image) center / cover, var(--deep); }
.hero-inner { display: flex; flex-direction: column; gap: 24px; padding-top: 96px; padding-bottom: 48px; }
.eyebrow { font-size: 16px; color: #CFE6E7; }
.hero h1 { font-size: clamp(28px, 5.5vw, 56px); line-height: 1.1; max-width: 760px; }
.hero-lead { font-size: 18px; color: #DCEDEE; max-width: 620px; }
.hero-lead-short { display: none; color: #DCEDEE; }
.assurances { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: #CFE6E7; }

.search { margin-top: 24px; max-width: 980px; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; background: #fff; color: var(--ink); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #C9D4D3; border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }
.guests { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-guests { grid-column: span 1; }

/* Преимущества */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature .icon { color: var(--teal); }
.feature strong { font-weight: 600; }

/* Номера */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--radius); }
.card-media { position: relative; background: #DCE7E6; }
.card-media img { width: 100%; height: 220px; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 99px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 600; }
.card-body { display: flex; flex-direction: column; flex-grow: 1; gap: 12px; padding: 20px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.price { font-size: 24px; color: var(--ink); }

/* Прямое бронирование */
.direct { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: 40px; border-radius: 18px; background: var(--teal); color: #fff; }
.direct-text { flex: 1 1 420px; }
.direct h2 { font-size: clamp(22px, 3.5vw, 30px); }
.direct p { color: #DCEDEE; font-size: 17px; }
.perks { flex: 1 1 460px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.perks li { padding: 16px; border-radius: 12px; background: #fff; color: var(--ink); }
.perks strong { display: block; font-size: 22px; color: var(--teal); }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; background: #DCE7E6; }

/* Отзывы */
.cards-reviews { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review { margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 24px; background: #fff; border-radius: var(--radius); }
.stars { color: var(--star); font-size: 18px; }
.review blockquote { margin: 0; }

/* Как добраться */
.location { display: flex; flex-wrap: wrap; gap: 40px; }
.location-info { flex: 1 1 360px; }
.distances { display: flex; flex-direction: column; gap: 12px; }
.distances li { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.distances strong { font-weight: 600; }
.map { flex: 1 1 520px; min-height: 360px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: #DCE7E6; color: #31525A; font-size: 14px; }

/* FAQ */
details { padding: 18px 20px; border-radius: 12px; background: #fff; }
summary { font-weight: 600; cursor: pointer; }
details p { margin-top: 12px; }

/* Подвал */
.site-footer { background: var(--deep); color: #DCEDEE; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col strong, .footer-brand { color: #fff; font-weight: 600; }
.footer-brand { font: 600 18px var(--font-head); }
.footer-col a { color: #DCEDEE; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #4D7B83; border-radius: 8px; color: #fff !important; text-decoration: none; }

/* Нижняя панель на телефоне */
.mobile-bar { display: none; }

@media (max-width: 960px) {
    .burger { display: inline-flex; }
    .phone, .header-book { display: none; }
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(16, 36, 47, .08); }
    .nav.is-open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
    body { padding-bottom: 76px; }
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
    .hero-inner { padding-top: 40px; gap: 16px; }
    .hero-lead, .assurances { display: none; }
    .hero-lead-short { display: block; }
    .search { margin-top: 8px; grid-template-columns: 1fr 1fr; }
    .field-guests, .search .btn { grid-column: 1 / -1; }
    .features { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .cards { grid-template-columns: 1fr; }
    .direct { padding: 24px; }
    .map { min-height: 240px; }
    .mobile-bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
    .mobile-bar .btn { flex: 1; min-height: 48px; }
    .mobile-bar-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid var(--teal); border-radius: 8px; color: var(--teal); }
}

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

/* Бронирование */
.booking { background: var(--soft); min-height: 100vh; padding: 32px 0 64px; }
.booking-header { background: #fff; border-bottom: 1px solid var(--line); }
.booking-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.steps { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.step { display: flex; align-items: center; gap: 8px; }
.step-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1.5px solid #B9C6C5; border-radius: 50%; font-size: 13px; }
.step.is-done .step-dot, .step.is-current .step-dot { border-color: var(--teal); background: var(--teal); color: #fff; }
.step.is-current { color: var(--ink); font-weight: 600; }
.step-sep { color: #B9C6C5; }
.secure { font-size: 14px; color: var(--muted); white-space: nowrap; }
.booking-header-actions { display: flex; align-items: center; gap: 16px; }

.panel { padding: 24px; background: #fff; border-radius: var(--radius); }
.h3 { font-size: 20px; font-family: var(--font-body); font-weight: 600; }
.booking-search { max-width: 860px; margin: 0 auto; }
.booking-search .search { margin-top: 0; padding: 0; max-width: none; }
.problems { padding: 12px 16px; border-radius: 8px; background: #FDECEC; color: #8A1F1F; }
.note { color: #8A5A00; font-size: 14px; }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.booking-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.stay-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.stay-item { display: flex; flex-direction: column; }
.stay-bar .link { margin-left: auto; }

.room { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; border: 2px solid transparent; }
.room img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; background: #DCE7E6; }
.room-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.room-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.room.is-selected { border-color: var(--teal); }
.room-compact { grid-template-columns: 120px 1fr auto; align-items: center; border-color: var(--line); }
.room-compact img { height: 80px; }
.room.is-unavailable { opacity: .6; }
.badge-soft { position: static; background: #FDF0D5; color: #7A5200; }

.rates { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; padding: 0; border: 0; }
.rates legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rate { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #C9D4D3; border-radius: 10px; cursor: pointer; }
.rate:has(input:checked) { border-color: var(--teal); background: #E8F3F4; }
.rate-main { display: flex; align-items: flex-start; gap: 12px; }
.rate-main > span { display: flex; flex-direction: column; }
.rate input, .extra input, .terms input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }

.extra { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
.extra span:first-child { display: flex; align-items: center; gap: 12px; }
.extra input { margin: 0; }
.promo { display: flex; align-items: end; gap: 12px; max-width: 360px; }
.promo .field { flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field textarea { width: 100%; padding: 12px 14px; border: 1px solid #C9D4D3; border-radius: 8px; font: inherit; color: var(--ink); resize: vertical; }

.summary { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.totals { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; }
.totals dd { margin: 0; text-align: right; white-space: nowrap; }
.totals .is-discount { color: var(--teal); font-weight: 600; }
.totals .total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 600; }
.pay { padding-top: 4px; }
.terms { display: flex; gap: 10px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.hold { padding: 12px 14px; border-radius: 10px; background: #FDF0D5; color: #7A5200; }
.badge-warn { position: static; background: #FDECEC; color: #8A1F1F; }

/* Переключатель языка */
.lang-switch { position: relative; }
.lang-switch summary { display: inline-flex; align-items: center; list-style: none; cursor: pointer; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 84px; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 24px rgba(16, 36, 47, .08); }
.lang-switch li a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.lang-switch li a:hover, .lang-switch li a[aria-current] { background: var(--soft); }
.plain { color: inherit; text-decoration: none; }
.plain:hover { color: var(--teal); }

/* Cookies */
.cookie-banner { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(16, 36, 47, .18); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 320px; font-size: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Подтверждение, «Моя бронь», страница номера */
.facts { margin: 0; display: grid; gap: 10px; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.notice { padding: 12px 16px; border-radius: 8px; background: #E8F3F4; color: var(--teal-dark); }
.status { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; background: #FDF0D5; color: #7A5200; }
.status-confirmed { background: #E3F3E7; color: #1F6B35; }
.status-cancelled, .status-expired { background: #FDECEC; color: #8A1F1F; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.room-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.room-gallery, .room-book { grid-column: 1; }
.room-info { grid-column: 2; grid-row: 1 / span 2; }
.room-hero { width: 100%; height: auto; border-radius: var(--radius); background: #DCE7E6; }
.room-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.room-thumbs img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; background: #DCE7E6; }
.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; }
.amenities li::before { content: "✓ "; color: var(--teal); }
.room-book .search { margin-top: 0; padding: 0; grid-template-columns: 1fr; max-width: none; }

@media (max-width: 960px) {
    .room-page { grid-template-columns: 1fr; }
    .room-gallery, .room-info, .room-book { grid-column: 1; grid-row: auto; }
}

@media (max-width: 960px) {
    .booking-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .steps .step:not(.is-current), .step-sep { display: none; }
}

@media (max-width: 700px) {
    .booking { padding-top: 16px; }
    .panel { padding: 16px; }
    .secure { display: none; }
    .room, .room-compact { grid-template-columns: 1fr; }
    .room img, .room-compact img { height: 160px; }
    .stay-bar .link { margin-left: 0; }
}
