/* Гостиница «Параллель» */
:root {
  --bg: #f5f1ea;
  --paper: #fcfaf6;
  --tint: #ece5da;
  --ink: #1d232b;
  --muted: #5d6168;
  --line: #d9d0c3;
  --rust: #9a4724;
  --rust-dark: #7a361a;
  --blue: #2b436e;
  --danger: #b3261e;
  --serif: "Literata", Georgia, serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* type */
.h1, .h2, .h3, .prose h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04; margin-bottom: .35em; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
.h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.2; font-weight: 500; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink); max-width: 36em; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.muted { color: var(--muted); }
.link { font-size: 15px; font-weight: 500; color: var(--rust); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--rust); background: var(--rust); color: #fff; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: #fff; }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--big { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.logo:hover { color: var(--ink); }
.logo__word { position: relative; font-family: var(--serif); font-size: 27px; letter-spacing: -.01em; padding-bottom: 7px; }
.logo__word::after { content: ""; position: absolute; left: 0; right: -18px; bottom: 0; height: 1px; background: var(--rust); }
.logo__sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav__phone { font-weight: 500; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 12px 10px; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
.burger span + span { margin-top: 7px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* hero */
.hero { padding: clamp(24px, 4vw, 56px) 0 0; }
.hero__in { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__facts { font-size: 15px; color: var(--muted); margin: 26px 0 30px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 30em; }
.hero__facts span { margin: 0 .4em; color: var(--rust); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo { margin: 0; position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - 150px); min-height: 420px; object-fit: cover; border-radius: var(--radius); }

/* «параллель» — линия-широта под первым экраном */
.parallel { margin-top: clamp(36px, 5vw, 64px); }
.parallel__in { position: relative; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.parallel__in::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; height: 1px; background: var(--rust); opacity: .55; }
.parallel__in span { position: relative; background: var(--bg); padding: 0 14px; }
.parallel__in span:first-child { padding-left: 0; }
.parallel__in span:last-child { padding-right: 0; }

/* sections */
.section { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.section + .section:not(.section--tint) { padding-top: 0; }
.section--tint + .section, .section + .section--tint { padding-top: clamp(56px, 8vw, 112px); }
.section--tint { background: var(--tint); }
.section--first { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(28px, 4vw, 48px); }
.section--first + .section--tight { padding-top: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); }
.intro__text { font-size: 18px; color: var(--ink); }

/* rooms */
.rooms { display: grid; gap: clamp(40px, 6vw, 80px); }
.room { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.room:nth-child(even) .gallery { order: 2; }
.room__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.room__price { margin: 0; color: var(--muted); font-size: 15px; }
.room__price b { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--ink); letter-spacing: -.01em; margin-right: 4px; }
.room__meta { font-size: 14px; color: var(--rust); font-weight: 500; }
.room__body > p:not(.room__meta) { color: #33383f; }
.room .btn { margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 24px; }
.chips li { font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }

/* gallery */
.gallery { min-width: 0; }
.gallery__main { display: block; width: 100%; padding: 0; border: 0; background: var(--tint); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery__main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .25s var(--ease); }
.gallery__main.is-loading img { opacity: .4; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; scroll-snap-type: x proximity; }
.gallery__thumb { flex: 0 0 auto; width: 92px; height: 64px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .62; outline-offset: 2px; scroll-snap-align: start; transition: opacity .2s; background: var(--tint); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover, .gallery__thumb[aria-current="true"] { opacity: 1; }
.gallery__thumb[aria-current="true"] { box-shadow: 0 0 0 2px var(--rust); }

/* мозаика: холл */
.gallery--mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 19vw, 270px); gap: 10px; }
.gallery--mosaic .gallery__thumb { width: auto; height: auto; opacity: 1; border-radius: 10px; cursor: zoom-in; }
.gallery--mosaic .gallery__thumb img { transition: transform .5s var(--ease); }
.gallery--mosaic .gallery__thumb:hover img { transform: scale(1.03); }
.gallery--mosaic .gallery__thumb:first-child { grid-column: span 2; grid-row: span 2; }

/* amenities */
.amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 0; }
.amen li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.amen svg { grid-row: span 2; width: 32px; height: 32px; fill: none; stroke: var(--rust); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.amen svg circle { fill: var(--rust); stroke: none; }
.amen b { font-weight: 500; }
.amen span { font-size: 14px; color: var(--muted); }

.note { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); margin-top: clamp(32px, 4vw, 56px); padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.note__price { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1; margin: 0; color: var(--rust); white-space: nowrap; }
.note .h3 { margin-bottom: 6px; }
.note p { color: var(--muted); }

/* booking + form */
.booking { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.booking__side .h2 { margin-bottom: 18px; }
.booking__side p { color: #33383f; }
.booking__side a { font-weight: 500; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; }
.form__room { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form__room legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.form__room label { position: relative; cursor: pointer; }
.form__room input { position: absolute; opacity: 0; inset: 0; }
.form__room span { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.form__room b { font-weight: 500; }
.form__room i { font-style: normal; font-size: 14px; color: var(--muted); }
.form__room input:checked + span { border-color: var(--rust); box-shadow: inset 0 0 0 1px var(--rust); }
.form__room input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; }
.form__row:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; color: var(--muted); }
.field em { font-style: normal; color: #8a8d92; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231d232b' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field--small { min-width: 96px; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rust) 18%, transparent); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.field__err { font-size: 13px; color: var(--danger); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: #3c4047; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rust); }
.check.is-invalid span { color: var(--danger); }
.form__error { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fbe9e7; color: var(--danger); font-size: 15px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.form__hint { flex: 1 1 260px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.form__done { padding: 8px 0; }
.form__done .h3 { margin-bottom: 12px; color: var(--rust); }
.form.is-done > :not(.form__done) { display: none; }

/* facts / contacts */
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts span { color: var(--muted); font-size: 15px; }
.facts b { font-weight: 500; }
.facts b a { text-decoration: none; }
.facts--compact { margin-top: 28px; }
.facts--compact li { grid-template-columns: 120px 1fr; padding: 12px 0; font-size: 15px; }
.contacts { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.map { display: grid; gap: 12px; }
.map iframe { width: 100%; height: clamp(320px, 38vw, 460px); border: 0; border-radius: var(--radius); background: var(--tint); }
.map__link { font-size: 15px; color: var(--rust); font-weight: 500; }
.legal { color: var(--muted); font-size: 15px; }

.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about__text p:not(.lead) { color: #33383f; max-width: 36em; }
.about__text .lead { margin-bottom: 1.2em; }
.about__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.cta-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.cta-line p { margin: 0; max-width: 40em; }

.prose h2 { font-size: 26px; margin: 1.6em 0 .5em; }
.prose p { color: #33383f; }

/* footer */
.foot { background: var(--ink); color: #d9dbde; padding: clamp(48px, 6vw, 80px) 0 32px; font-size: 15px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: #f0b48f; }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot__brand .logo__word { color: #fff; display: inline-block; margin-bottom: 18px; }
.foot__brand p { color: #b4b8be; }
.foot__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8c9097; margin-bottom: 12px; }
.foot__col { display: flex; flex-direction: column; gap: 8px; }
.foot__col p { margin: 0; }
.foot__phones { font-size: 17px; line-height: 1.7; }
.foot__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; margin-top: 16px; border-top: 1px solid #353c46; font-size: 13px; color: #8c9097; }
.foot__legal p { margin: 0; }
.foot__legal a { color: #b4b8be; text-decoration: underline; }

/* mobile dock */
.dock { display: none; }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(14, 16, 20, .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(14, 16, 20, .9); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 96px); object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav__phone { display: none; }
}

@media (max-width: 960px) {
  .burger { display: block; }
  .top__cta { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .25); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a[aria-current="page"] { color: var(--rust); border-bottom-color: var(--line); }
  .nav__phone { display: block; border-bottom: 0 !important; }
  .hero__in, .intro, .room, .booking, .contacts, .about { grid-template-columns: 1fr; }
  .room:nth-child(even) .gallery { order: 0; }
  .hero__photo img { min-height: 0; max-height: 72svh; aspect-ratio: 4 / 4.4; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .top__in { height: 64px; }
  .logo__word { font-size: 24px; padding-bottom: 5px; }
  .logo__sub { margin-top: 5px; font-size: 10px; }
  html { scroll-padding-top: 76px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__cta .btn--ghost { display: none; }
  .parallel__in span:nth-child(2) { display: none; }
  .section__head { flex-direction: column; gap: 10px; }
  .form__row, .form__row:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
  .form__row .field--small { grid-column: 1 / -1; }
  .form__foot .btn { width: 100%; }
  .note { flex-direction: column; align-items: flex-start; gap: 12px; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .gallery__thumb { width: 76px; height: 54px; }
  .gallery--mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 8px; }
  .gallery--mosaic .gallery__thumb:last-child { grid-column: span 2; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__legal { flex-direction: column; }
  .dock { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .dock .btn { min-height: 50px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}

@media (max-width: 420px) {
  .form__room { grid-template-columns: 1fr; }
  .form__row, .form__row:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

a[href^="tel:"] { white-space: nowrap; }
.form__done:focus { outline: none; }
[hidden] { display: none !important; }
