:root { --ink: #17313a; --muted: #536b73; --bg: #f3f6f6; --card: #fff; --line: #d5dfe1;
  --accent: #f29a2e; --error: #b3261e; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.load-error { max-width:620px; }
.load-error h1 { font-size:1.6rem; }
#copy-fallback { margin-top:16px; }
#copy-fallback summary { cursor:pointer; padding-block:8px; }
#back-to-top { position:fixed; right:12px; bottom:14px; z-index:18; display:grid; place-items:center; width:44px; height:44px; border:1px solid #fff9; border-radius:9px; background:var(--ink); color:white; cursor:pointer; box-shadow:0 2px 8px #17313a33; }
#back-to-top::before { content:""; width:12px; height:12px; border:solid currentColor; border-width:0 2px 2px 0; transform:translateY(3px) rotate(225deg); }
#back-to-top:is(:hover,:focus-visible) { background:var(--accent); color:var(--ink); }
@media(max-width:819px) { body:has(#calc:not([hidden]) #bar:not([hidden])) #back-to-top { bottom:76px; } }
#form input[inputmode], #wish-date { direction:ltr; }
body { margin: 0; font: 16px/1.5 "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
[hidden] { display: none !important; }

.hero { display: grid; background: var(--ink); color: #fff; }
.hero-photo { width: 100%; height: 240px; object-fit: cover; object-position: 55% 60%; order: -1; }
.hero-text { padding: 24px 16px 32px; }
.brand { margin: 0 0 8px; color: var(--accent); font-weight: 700; font-size: 1.25rem; }
h1 { margin: 0; font-size: 2rem; line-height: 1.15; }
.slogan { font-size: 1.2rem; }
.hours { margin-bottom: 0; opacity: .8; font-size: .9rem; }
.actions { display: grid; gap: 10px; }

.btn { display: block; padding: 13px 20px; border: 2px solid currentColor; border-radius: 10px;
  background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: center;
  text-decoration: none; cursor: pointer; width: 100%; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.section { max-width: 1060px; margin: 0 auto; padding: 32px 16px; }
#steps li { margin-bottom: 8px; }
footer h2 { margin-bottom: 8px; }
h2 { margin: 0; font-size: 1.6rem; }
.lead { margin-top: 4px; color: var(--muted); }
.calc-grid { display: grid; gap: 20px; align-items: start; }
form, .result { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .area { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.area { margin-top: 20px; }
.types { display: grid; gap: 10px; }
#form fieldset + .area ~ fieldset { margin-top: 20px; }
.type { display: flex; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.type:has(:checked) { border-color: var(--ink); background: #eaf1f2; }
.type input { accent-color: var(--ink); }
small { display: block; color: var(--muted); font-size: .85rem; }
input:not([type=radio], [type=range]), textarea { width: 100%; padding: 11px; font: inherit; color: inherit;
  border: 1px solid #8aa0a7; border-radius: 10px; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.error { color: var(--error); font-size: .9rem; margin: 4px 0 12px; }
.error:empty { margin: 0; }
.extra { padding: 12px 0; border-top: 1px solid var(--line); display: grid;
  grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.extra .error { grid-column: 1 / -1; }
.stepper { display: flex; gap: 4px; align-items: center; }
.stepper input { width: 52px !important; text-align: center; padding: 9px 4px !important; }
.stepper button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font-size: 1.3rem; cursor: pointer; }

.area-row { display: flex; align-items: center; gap: 16px; }
.area-row #area { width: 92px; flex-shrink: 0; font-size: 1.15rem; }
#area-range { flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0; border: 0; background: transparent;
  appearance: none; cursor: pointer; }
#area-range::-webkit-slider-runnable-track { height: 10px; background: var(--line); }
#area-range::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; margin-top: -6px; border: 0; background: var(--ink); }
#area-range::-moz-range-track { height: 10px; background: var(--line); }
#area-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 0; background: var(--ink); }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.app-icon { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; margin-right: 8px; }
.messengers .btn { display: flex; flex: 1 1 220px; min-width: 0; align-items: center; justify-content: center; padding-left: 8px; padding-right: 8px; overflow-wrap: anywhere; }
.result h3 { margin-top: 0; }
#lines { list-style: none; margin: 0; padding: 0; }
#lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
#lines b { white-space: nowrap; }
.total { font-size: 1.3rem; margin-bottom: 0; }
.total strong { font-size: 1.8rem; white-space: nowrap; }
.min { background: #fff3e0; padding: 10px; border-radius: 8px; font-size: .9rem; }
.note { color: var(--muted); font-size: .9rem; }
.result .btn { margin-top: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bar { position: sticky; bottom: 8px; display: flex; justify-content: space-between; gap: 12px; margin-top: 12px;
  padding: 14px 18px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font: inherit; cursor: pointer; width: 100%; }

footer { padding: 24px 16px; text-align: center; background: var(--ink); color: #fff; }
footer a { color: #fff; }
footer p { margin: 6px 0; }

@media (min-width: 820px) {
  .hero { grid-template-columns: 1fr 1.15fr; align-items: stretch; }
  .hero-photo { order: 0; height: 100%; min-height: 460px; max-height: 560px; }
  .hero-text { align-self: center; padding: 48px 48px 48px max(32px, calc((100vw - 1060px) / 2)); }
  h1 { font-size: 2.8rem; }
  .actions { display: flex; flex-wrap: wrap; }
  .actions .btn { width: auto; }
  .panel { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .live { display: none; }
  .calc-grid { grid-template-columns: 1.2fr 1fr; }
  .result { position: sticky; top: 16px; }
  .bar { display: none; }
}
.file-warning { margin: 0; padding: 14px 16px; background: #fff3e0; color: #b3261e; font-weight: 600; text-align: center; }

/* Первый экран */
.hero-note { margin: 0 0 20px; opacity: .85; }
.btn.big { padding: 16px 24px; font-size: 1.15rem; }

/* Состояния кнопок: наведение, нажатие, выбор, фокус клавиатуры */
.btn { transition: background-color .15s, transform .05s; }
.btn:hover { background: rgba(255,255,255,.14); }
.btn.primary:hover { background: #ffad4d; border-color: #ffad4d; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary:active { background: #d9831b; }
.result .btn:hover:not(.primary), .section .btn:hover:not(.primary) { background: #e6eeef; }

/* Раскрывающиеся блоки */
.collapse-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.disclosure { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.collapse-head .disclosure { width: auto; background: var(--ink); color: #fff; border-color: var(--ink); }
.collapse-head .disclosure:hover { background: #24505e; }
.fold > .disclosure { width: 100%; }
.fold { margin-top: 14px; }
.disclosure:hover { background: #eaf1f2; }
.collapse-head .disclosure:hover { background: #24505e; }
.disclosure:active { background: #dbe7e9; }
.disclosure small { font-weight: 400; margin-top: 2px; }
.disclosure i { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s; flex-shrink: 0; margin-top: -4px; }
.disclosure[aria-expanded="true"] i { transform: rotate(225deg); margin-top: 4px; }
#extras, #wish { padding: 4px 4px 0; }

/* Кнопки приміщень */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tabs button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.tabs button:hover { background: #eaf1f2; border-color: var(--ink); }
.tabs button:active { background: #dbe7e9; }
.tabs [aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Фото з позначками */
.panel { display: grid; gap: 12px; }
.scene { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: #dfe6e7; }
.scene img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; font: inherit; }
.spot::before { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; margin: 7px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-size: 1.3rem; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 2px 8px rgba(0,0,0,.35); transition: transform .15s, background-color .15s; }
.spot { font-size: 0; }
.spot:hover::before { transform: scale(1.15); background: #ffad4d; }
.spot:active::before { transform: scale(.95); }
.spot[aria-expanded="true"]::before { content: "×"; background: var(--ink); color: #fff; }
.tip { position: absolute; z-index: 2; padding: 14px 40px 14px 14px; border-radius: 12px; background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.tip h4 { margin: 0 0 4px; font-size: 1rem; }
.tip p { margin: 0; font-size: .95rem; }
.tip-close { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: transparent;
  font-size: 1.6rem; color: var(--ink); cursor: pointer; border-radius: 10px; }
.tip-close:hover { background: #eaf1f2; }
.full { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 8px; }
.full summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.full h3 { font-size: 1.05rem; margin-bottom: 4px; }
.full ul { margin-top: 0; padding-left: 20px; }

/* Калькулятор */
.live { margin: 8px 0 0; padding: 12px 14px; border-radius: 12px; background: #eaf1f2; font-size: 1.05rem; }
.live strong { font-size: 1.4rem; white-space: nowrap; }
.type:hover { border-color: #5f7d86; }
.type:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
#area-range.unset::-webkit-slider-thumb { background: #b9c7cb; }
#area-range.unset::-moz-range-thumb { background: #b9c7cb; }
.stepper button:hover:not(:disabled) { background: #e6eeef; border-color: var(--ink); }
.stepper button:active:not(:disabled) { background: #d4e0e3; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.extra label { min-width: 0; overflow-wrap: anywhere; }
.extra { padding: 12px 0; }
.wish-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.wish-row label { display: block; font-weight: 600; min-width: 0; }
.wish-row input, .wish-row select { display: block; width: 100%; margin-top: 4px; padding: 11px; font: inherit; color: inherit;
  border: 1px solid #8aa0a7; border-radius: 10px; background: #fff; min-height: 46px; }
.breakdown { margin: 8px 0; }
.breakdown summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.preview-title { margin: 16px 0 4px; font-weight: 700; }
.preview { margin: 0; padding: 12px; border-radius: 10px; background: var(--bg); border: 1px dashed #8aa0a7; font-size: .95rem; }
@media (max-width: 380px) {
  .section { padding-left: 12px; padding-right: 12px; }
  form, .result { padding: 14px; }
  .stepper input { width: 44px !important; }
  .stepper button { width: 40px; height: 40px; }
}
.stage { position: relative; }
@media (max-width: 600px) {
  .tip { position: relative; margin-top: 8px; width: auto !important; }
}
.extra label { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 340px) {
  .extra label { font-size: .92rem; }
  .stepper { gap: 2px; }
  .stepper input { width: 38px !important; padding-left: 2px !important; padding-right: 2px !important; }
  .stepper button { width: 36px; height: 36px; }
}

/* Верхня смуга з назвою й кнопкою меню */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 4px 8px 4px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.logo { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--ink); font: inherit;
  font-size: 1.2rem; font-weight: 800; cursor: pointer; border-radius: 10px; }
.logo:hover { color: #0d6e86; }
.logo:active { background: #eaf1f2; }
.burger { width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  display: grid; place-items: center; }
.burger:hover { background: #eaf1f2; }
.burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--ink); content: ""; }
.burger span { position: relative; }
.burger span::before { position: absolute; top: -8px; }
.burger span::after { position: absolute; top: 8px; }
.hero .brand { display: none; }

/* Панель меню */
.backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(10, 25, 30, .55); }
.menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(380px, 92vw); overflow-y: auto;
  background: #fff; box-shadow: -8px 0 32px rgba(0,0,0,.3); border-radius: 24px 0 0 24px; }
body.menu-open { overflow: hidden; }
.menu-head { position: relative; padding: 24px 20px 20px; background: linear-gradient(135deg, #1e4a58, var(--ink)); color: #fff; }
.menu-brand { margin: 0 56px 8px 0; font-size: 1.4rem; font-weight: 800; }
.menu-slogan { margin: 0; opacity: .9; }
.menu-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: linear-gradient(var(--accent), var(--accent)) center bottom / 100% 0% no-repeat rgba(255,255,255,.2);
  color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.menu-close:hover, .menu-close:focus-visible { background-size: 100% 100%; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .menu-close { transition: background-size 220ms ease-out, color 220ms ease-out; }
}
.menu-body { display: grid; gap: 10px; padding: 16px; }
.menu-link { display: block; position: relative; padding: 14px 44px 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  color: var(--ink); text-decoration: none; }
.menu-link b { display: block; font-size: 1.1rem; }
.menu-link small { margin-top: 2px; }
.menu-link::after { content: "→"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: #0d6e86; }
.menu-link:hover { background: #eaf1f2; border-color: var(--ink); }
.menu-link:active { background: #dbe7e9; }
.menu-body .btn { margin-top: 4px; }
.menu-body .btn:not(.primary):hover { background: #eaf1f2; }
@media (min-width: 820px) { .topbar { padding-left: max(16px, calc((100vw - 1060px) / 2)); padding-right: max(8px, calc((100vw - 1060px) / 2)); } }

/* Калькулятор: вид перемикачів і карток послуг */
.types { grid-template-columns: 1fr 1fr; gap: 8px; }
.type { position: relative; flex-direction: column; align-items: center; text-align: center; padding: 12px 8px; border-radius: 14px; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type b { display: block; font-size: 1.05rem; }
.type:has(:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.type:has(:checked) small { color: #cfe0e4; }
#extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 12px 0 0; }
.extra { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 14px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; }
.extra label { font-weight: 700; }
.extra label small { font-weight: 400; }
.extra-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.extra-sum { color: var(--muted); font-weight: 600; white-space: nowrap; }
.extra-sum.on { color: var(--ink); }
.stepper button:last-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper button:last-child:hover:not(:disabled) { background: #24505e; }
.stepper button:last-child:disabled { background: var(--ink); }
[id] { scroll-margin-top: 64px; }
.extra { align-items: stretch; text-align: left; }

/* Вкладки сторінки */
.viewtabs { display:flex; gap:6px; margin-inline:auto; }
.viewtabs button { padding-inline:clamp(8px,2vw,28px); min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.viewtabs button:hover { background: #eaf1f2; border-color: var(--ink); }
.viewtabs button:active { background: #dbe7e9; }
.viewtabs [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.viewtabs button[aria-current="page"]:hover { background:#294c56; color:white; }
footer a:hover, footer a:focus-visible { color:#ffd598; text-underline-offset:4px; }

/* Картки цін */
.cards { display: grid; gap: 16px; margin-top: 16px; }
.card { display:flex; flex-direction:column; padding:clamp(22px,3vw,34px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.card h3 { margin: 0; }
.card p { margin: 6px 0 0; }
.card .service-description { flex:1; margin:14px 0 16px; line-height:1.55; }
.price { font-size: 1.8rem; font-weight: 700; }
.card .btn { margin-top: 14px; }
@media (min-width: 820px) { .cards { grid-template-columns: 1fr 1fr; } }
.extras-title { margin: 0; font-size: 1.05rem; }
.extras-title small { display: inline; font-weight: 400; margin-left: 6px; }
.extra label { flex: 1; }

#room-stories { display: grid; gap: clamp(24px, 5vw, 64px); margin-top: 24px; }
.room-story { display: grid; align-items: center; gap: clamp(16px, 4vw, 48px); background: #e8efef; border-radius: 16px; overflow: hidden; }
.room-photo { overflow: hidden; }
.room-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room-copy { padding: 8px 20px 24px; }
.room-copy h3 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.room-copy ul { padding-inline-start: 1.25em; }
.room-copy li { margin-block: 4px; }
.room-copy h4 { margin: 16px 0 0; }
.room-copy summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:10px 14px; cursor:pointer; font-weight:600; color:var(--ink); background:#fff; border:1px solid #91a8aa; border-radius:10px; }
.room-copy summary::-webkit-details-marker { display:none; }
.room-copy summary::after { content:""; flex:none; width:8px; height:8px; border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg); }
.room-copy details[open] summary::after { transform:rotate(225deg); }
.room-copy summary:hover, .room-copy details[open] summary { color:white; background:var(--ink); }
.room-copy summary:focus-visible { outline:3px solid #97600f; outline-offset:3px; }
@media (prefers-reduced-motion:no-preference) {
  .room-copy summary { transition:background-color .16s, color .16s; }
  .room-copy summary::after { transition:transform .16s; }
}
footer { padding: 28px max(16px, calc((100vw - 1060px) / 2)); }
.logo { display:inline-flex; align-items:center; gap:9px; font-size:clamp(1.12rem, 2vw, 1.48rem); letter-spacing:-.03em; }
.hero { position:relative; isolation:isolate; display:grid; grid-template-columns:1fr; align-items:center; min-height:calc(100svh - 56px); overflow:hidden; }
.hero .hero-photo, #hero-film { position:absolute; inset:0; width:100%; height:100%; min-height:0; max-height:none; object-fit:cover; z-index:-3; }
#hero-film { z-index:-2; }
.hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(13,37,44,.95),rgba(13,37,44,.83) 35%,rgba(13,37,44,.15) 90%); }
.hero-text { max-width:76rem; padding:clamp(40px,7vw,100px) max(20px,calc((100vw - 1060px) / 2)); padding-right:20px; }
.hero-text h1 { max-width:22em; font-family:Georgia, 'Times New Roman', serif; font-style:italic; font-size:clamp(2.2rem,4.7vw,3.2rem); line-height:1.12; }
.hero-intro { max-width:43ch; margin:0 0 16px; line-height:1.5; }
.hero-text .hero-note { max-width:49ch; }
#how h2 { font-size:clamp(1.9rem,4vw,2.8rem); }
#steps { list-style:none; padding:0; counter-reset:step; display:grid; grid-template-columns:1fr; }
#steps li { counter-increment:step; display:grid; grid-template-columns:2ch 1fr; align-items:baseline; gap:16px; margin:0; padding:16px 0; border-top:1px solid var(--line); font-size:clamp(1.15rem,2vw,1.48rem); }
#steps li::before { content:counter(step,decimal-leading-zero); font-weight:700; color:#48656a; }
#how p { font-size:1.1rem; }
@media(min-width:820px) {
  footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px 22px; }
  footer h2, footer #service-area, footer p:last-child { flex-basis:100%; margin:0; }
}
@media(max-width:600px) {
  .topbar { padding-inline:4px; gap:3px; }
  .topbar .logo { font-size:.84rem; line-height:1.04; padding-inline:2px; gap:4px; text-align:left; }
  .logo svg { width:23px; height:23px; flex:none; }
  .viewtabs { gap:3px; }
  .viewtabs button { padding-inline:6px; font-size:.82rem; }
  .burger { flex:0 0 44px; }
  .hero::before { background:linear-gradient(0deg,rgba(13,37,44,.96),rgba(13,37,44,.78) 65%,rgba(13,37,44,.36)); }
  .hero-text { padding-bottom:60px; }
}
@media (min-width: 820px) {
  .room-story { grid-template-columns: 1fr 1fr; }
  .room-copy { padding: 20px 30px; }
  .room-story:nth-child(even) .room-photo { grid-column: 2; grid-row: 1; }
  .room-story:nth-child(even) .room-copy { grid-column: 1; grid-row: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .room-copy.arrived { animation: room-arrival 280ms ease-out; }
  @keyframes room-arrival { from { opacity: .15; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .room-photo img { transition: transform 320ms ease-out; }
  .room-photo:hover img { transform: scale(1.025); }
}
/* iPhone: поле дати має власну ширину й наїжджало на «Час». Обидва поля однакові. */
.wish-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.wish-row input[type="date"], .wish-row select { -webkit-appearance: none; appearance: none; box-sizing: border-box;
  width: 100%; min-width: 0; max-width: 100%; height: 48px; min-height: 48px; margin: 4px 0 0; padding: 0 12px;
  line-height: 46px; text-align: left; }
.wish-row input[type="date"]::-webkit-date-and-time-value { margin: 0; min-height: 46px; text-align: left; }
.wish-row select { padding-right: 30px; text-overflow: ellipsis;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317313a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center; }
@media (max-width: 600px) { .wish-row { grid-template-columns: minmax(0, 1fr); } }

/* Поки ролик завантажується, видно його перший кадр — без підміни картинки після оновлення сторінки. */
.hero { background: var(--ink) url("../img/cleaning-poster.jpg") center / cover no-repeat; }
.hero:not(.no-film) .hero-photo { visibility: hidden; }
.hero .hours { min-height: 1.5em; }

/* Меню й затемнення виїжджають і ховаються плавно. Закрите меню невидиме й недоступне з клавіатури. */
.menu { transition: transform .45s cubic-bezier(.22,.8,.24,1), visibility 0s; }
.menu[hidden] { display: block !important; visibility: hidden; transform: translateX(105%);
  transition: transform .32s cubic-bezier(.4,0,.7,.2), visibility 0s .32s; }
.backdrop { transition: opacity .45s ease, visibility 0s; }
.backdrop[hidden] { display: block !important; visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .32s ease, visibility 0s .32s; }
@media (prefers-reduced-motion: reduce) {
  .menu, .menu[hidden], .backdrop, .backdrop[hidden] { transition: none; }
}
/* Місце під смугу прокрутки зберігається, тому при відкритті меню шапка не зсувається. */
html { scrollbar-gutter: stable; }

/* Поле «Дата» і календар */
.wish-field { min-width: 0; font-weight: 600; }
.wish-field button { display: block; width: 100%; height: 48px; margin-top: 4px; padding: 0 12px; font: inherit; font-weight: 400;
  color: inherit; text-align: left; border: 1px solid #8aa0a7; border-radius: 10px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2317313a' stroke-width='1.6'%3E%3Crect x='2' y='3.5' width='14' height='13' rx='2'/%3E%3Cpath d='M2 7.5h14M6 2v3M12 2v3'/%3E%3C/svg%3E") no-repeat right 12px center; }
.wish-field button:hover, .wish-field button[aria-expanded="true"] { border-color: var(--ink); }
.calendar { max-width: 340px; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 8px 24px rgba(23,49,58,.14); }
.calendar button { font: inherit; color: var(--ink); background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-head button { width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.cal-head button:disabled { opacity: .25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal-week { padding: 6px 0; font-size: .8rem; color: var(--muted); }
.cal-grid button { min-width: 0; height: 40px; padding: 0; }
.cal-grid button:hover, .cal-head button:hover:not(:disabled) { background: #eaf1f2; }
.cal-grid button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Вибір години кнопками */
.time-title { margin: 14px 0 6px; font-weight: 600; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.times button { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, transform .05s; }
.times button:first-child { grid-column: 1 / -1; }
.times button:hover:not(:disabled) { border-color: var(--ink); background: #eaf1f2; }
.times button:active:not(:disabled) { transform: translateY(1px); }
.times button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.times button:disabled { opacity: .4; cursor: default; }
.need-date { margin-top: 12px; padding: 12px; border-radius: 12px; background: #fff3e0; }
.need-date p { margin: 0 0 8px; font-weight: 600; }
/* Вибране лишається темним і під курсором. */
.times button[aria-pressed="true"]:hover:not(:disabled), .cal-grid button[aria-pressed="true"]:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
