/* Editorial Luxury — page-specific styles */

/* === HEADER === */
.eh-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line-soft);
  transition: padding 0.25s, box-shadow 0.25s;
}
.eh-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 2px 18px -10px rgba(15,20,25,0.18);
}
.eh-header .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: 1680px; padding: 0 36px; }
.eh-header .logo { flex-shrink: 0; }
.eh-header .logo .txt b { white-space: nowrap; }
.eh-header .nav { display: flex; gap: 36px; flex-shrink: 1; min-width: 0; }
.eh-header .right { gap: 18px; }
@media (max-width: 1100px) { .eh-header .container { gap: 24px; padding: 0 24px; } .eh-header .nav { gap: 28px; } }
.eh-header .nav a { font-size: 13px; letter-spacing: 0.5px; color: var(--ink); transition: color 0.2s; position: relative; white-space: nowrap; }
.eh-header .nav a:hover { color: var(--gold-deep); }
.eh-header .right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
@media (max-width: 1100px) {
  .eh-header .nav { gap: 22px; }
  .eh-header .nav a { font-size: 12.5px; }
}
@media (max-width: 1360px) {
  .eh-header .nav { display: none; }
}
.eh-header.dark { color: var(--paper); }
.eh-header.dark:not(.scrolled) .nav a { color: var(--paper); }
.eh-header.dark:not(.scrolled) .btn--outline { color: var(--paper); border-color: rgba(255,255,255,0.5); }
.eh-header.dark:not(.scrolled) .btn--outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.eh-header.dark:not(.scrolled) .logo { color: var(--paper); }
.eh-header.dark:not(.scrolled) .logo .mark { border-color: var(--paper); }

/* === LOGO === */
.logo { display: flex; align-items: center; gap: 12px; line-height: 1.1; color: var(--ink); }
.logo .mark { width: 38px; height: 38px; border: 1.2px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: -0.5px; }
.logo .txt b { font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: 2px; display: block; }
.logo .txt span { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; opacity: 0.6; }

/* === HERO === */
.hero { position: relative; height: calc(100vh - 80px + 1px); min-height: 600px; overflow: hidden; color: var(--paper); margin-bottom: -1px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,20,25,0.35) 0%, rgba(15,20,25,0.2) 40%, rgba(15,20,25,0.75) 100%); }
.hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 96px; }
.hero-kicker { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 28px; opacity: 0.85; animation: fadeUp 0.9s 0.2s both; }
.hero-kicker .dot { display: inline-block; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin: 0 14px; vertical-align: middle; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(60px, 9.6vw, 156px); line-height: 0.95; letter-spacing: -1.5px; margin: 0; max-width: 1100px; animation: fadeUp 1.2s 0.3s both; }
.hero h1 em { font-family: var(--serif); font-style: italic; color: #8db8df; font-weight: 400; letter-spacing: -2.5px; }
.hero h1.hero-headline { display: flex; flex-direction: column; gap: 6px; }
.hero h1.hero-headline .line { display: block; }
.hero h1.hero-headline .line-1 { font-size: 0.95em; }
.hero h1.hero-headline .line-2 { font-size: 1.18em; line-height: 0.94; padding-left: 0.18em; margin: 0.04em 0; }
.hero h1.hero-headline .line-2 em { display: inline-block; }
.hero h1.hero-headline .line-3 { font-size: 0.96em; }
.hero h1.hero-headline .line-3::before { content: ''; display: inline-block; width: 36px; height: 1px; background: rgba(255,255,255,0.4); vertical-align: middle; margin-right: 16px; transform: translateY(-8px); }
.hero-sub { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 56px; gap: 48px; animation: fadeUp 1s 0.6s both; }
.hero-sub p { max-width: 420px; font-size: 16px; line-height: 1.65; margin: 0; opacity: 0.9; }
.hero-cta { display: flex; gap: 12px; }

.hero-stats { position: absolute; left: 56px; right: 56px; bottom: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: baseline; gap: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.2); animation: fadeIn 1.5s 1s both; }
.hstat { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.hstat b { font-family: var(--serif); font-size: 22px; letter-spacing: -0.5px; font-weight: 400; line-height: 1; white-space: nowrap; }
.hstat span { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; opacity: 0.9; line-height: 1.25; }
@media (max-width: 800px) {
  .hero-inner { padding: 0 24px 64px; justify-content: flex-end; }
  .hero-sub { flex-direction: column; align-items: flex-start; }
}

/* === CHAPTERS (Section starters) === */
.chapter { display: flex; align-items: baseline; gap: 24px; margin-bottom: 56px; }
.chapter .num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-deep); }
.chapter .label { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--mute); }
.chapter .line { flex: 1; height: 1px; background: var(--line); }

/* === ABOUT === */
.about { padding: 160px 0 120px; background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 96px; align-items: flex-start; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-badge { position: absolute; bottom: 24px; left: 24px; right: 24px; background: var(--paper); padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; }
.about-badge b { font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: -1px; color: var(--gold-deep); }
.about-badge span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--mute); }
.about h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -1.5px; margin: 24px 0 32px; }
.about h2 em { font-style: italic; color: var(--gold-deep); }
.about p.lead { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 18px; }
.about .features { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.about .feat { padding-top: 18px; border-top: 1px solid var(--line); }
.about .feat .n { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 14px; margin-bottom: 6px; }
.about .feat h4 { margin: 0 0 6px; font-size: 16px; font-weight: 500; letter-spacing: -0.2px; }
.about .feat p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } .about .features { grid-template-columns: 1fr; } }

/* === BOOKING SECTION === */
.book { padding: 120px 0; background: var(--paper); position: relative; }
.book h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -1.5px; margin: 0 0 16px; max-width: 700px; }
.book h2 em { font-style: italic; color: var(--gold-deep); }
.book .lead-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 64px; flex-wrap: wrap; }
.book .lead-row p { max-width: 460px; color: var(--ink-soft); font-size: 16px; margin: 0; }
.book .legend { display: flex; gap: 24px; font-size: 12px; letter-spacing: 1px; }
.book .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; font-style: normal; }
.book .legend .free i { background: var(--green); }
.book .legend .partial i { background: #d9a23c; }
.book .legend .busy i { background: var(--red); }

.book-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: flex-start; }
@media (max-width: 1000px) { .book-layout { grid-template-columns: 1fr; } }

.plan-frame { background: var(--bg-2); padding: 32px; position: relative; aspect-ratio: 16/10; }
.plan-frame .corners { position: absolute; pointer-events: none; }
.plan-frame .corners::before, .plan-frame .corners::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.2px solid var(--ink); }
.plan-frame .c-tl { top: 14px; left: 14px; border-right: none; border-bottom: none; width: 14px; height: 14px; border: 1.2px solid var(--ink); border-right: none; border-bottom: none; position: absolute; }
.plan-frame .c-tr { top: 14px; right: 14px; width: 14px; height: 14px; border: 1.2px solid var(--ink); border-left: none; border-bottom: none; position: absolute; }
.plan-frame .c-bl { bottom: 14px; left: 14px; width: 14px; height: 14px; border: 1.2px solid var(--ink); border-right: none; border-top: none; position: absolute; }
.plan-frame .c-br { bottom: 14px; right: 14px; width: 14px; height: 14px; border: 1.2px solid var(--ink); border-left: none; border-top: none; position: absolute; }
.plan-frame .pl-label { position: absolute; top: 26px; left: 32px; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--mute); }
.plan-frame .pl-label-r { position: absolute; top: 26px; right: 32px; font-size: 10px; letter-spacing: 2px; color: var(--mute); font-family: var(--serif); font-style: italic; }

.rooms-list { display: flex; flex-direction: column; gap: 6px; }
.rooms-list h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 0 0 12px; font-style: italic; }
.room-row { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; transition: padding 0.2s; }
.room-row:last-child { border-bottom: 1px solid var(--line); }
.room-row:hover { padding-left: 8px; }
.room-row .num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-deep); }
.room-row .info b { display: block; font-size: 15px; font-weight: 500; }
.room-row .info span { font-size: 12px; color: var(--mute); letter-spacing: 0.5px; }
.room-row .price { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.room-row .price span { font-size: 11px; color: var(--mute); font-family: var(--sans); letter-spacing: 1px; font-weight: 400; margin-left: 4px; }
.room-row .status { width: 8px; height: 8px; border-radius: 50%; }
.room-row .status.free { background: var(--green); }
.room-row .status.partial { background: #d9a23c; }
.room-row .status.busy { background: var(--red); }

/* === ROOM DETAIL DRAWER === */
.drawer-overlay { position: fixed; inset: 0; background: rgba(15,20,25,0.55); z-index: 200; animation: fadeIn 0.3s; }
.room-detail { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 100vw; background: var(--paper); z-index: 201; animation: slideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); overflow-y: auto; }
.room-detail .gallery { position: relative; aspect-ratio: 4/3; background: #222; overflow: hidden; }
.room-detail .gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s; }
.room-detail .gallery img.active { opacity: 1; }
.room-detail .gallery .close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: var(--paper); border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: none; z-index: 5; }
.room-detail .gallery .arrows { position: absolute; bottom: 20px; left: 20px; display: flex; gap: 8px; z-index: 5; }
.room-detail .gallery .arrows button { width: 40px; height: 40px; background: rgba(251,247,238,0.85); border: none; cursor: pointer; backdrop-filter: blur(6px); }
.room-detail .gallery .arrows button:hover { background: var(--paper); }
.room-detail .gallery .dots { position: absolute; bottom: 32px; right: 20px; display: flex; gap: 6px; z-index: 5; }
.room-detail .gallery .dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.room-detail .gallery .dots span.active { background: var(--paper); }
.room-detail .body { padding: 32px 36px 48px; }
.room-detail h3 { font-family: var(--serif); font-size: 36px; font-weight: 400; margin: 0; letter-spacing: -1px; }
.room-detail .meta-row { display: flex; align-items: center; gap: 16px; margin-top: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.room-detail .meta-row .zone { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); }
.room-detail .meta-row .area { font-family: var(--serif); font-style: italic; color: var(--gold-deep); }
.room-detail .meta-row .stat { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.room-detail .meta-row .stat i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.room-detail h4 { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--mute); margin: 28px 0 14px; }
.room-detail .prices { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.room-detail .prices > div { padding: 14px 0; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-right: 24px; }
.room-detail .prices > div:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.room-detail .prices > div:nth-child(even) { padding-left: 24px; }
.room-detail .prices span { font-size: 13px; color: var(--ink-soft); }
.room-detail .prices b { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.5px; }
.room-detail .desc { color: var(--ink-soft); line-height: 1.7; font-size: 15px; }
.room-detail .equip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.room-detail .equip div { font-size: 14px; padding-left: 18px; position: relative; color: var(--ink-soft); }
.room-detail .equip div::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-family: var(--serif); }

.calendar { margin-top: 12px; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.cal-day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--line); transition: all 0.15s; font-size: 13px; }
.cal-day:hover { border-color: var(--ink); }
.cal-day.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cal-day .dow { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.6; margin-bottom: 2px; }
.cal-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cal-slot { padding: 8px; font-size: 12px; text-align: center; border: 1px solid var(--line); cursor: pointer; transition: all 0.15s; }
.cal-slot:hover { border-color: var(--ink); }
.cal-slot.selected { background: var(--gold); color: var(--paper); border-color: var(--gold); }
.cal-slot.busy { background: rgba(15,20,25,0.05); color: var(--mute); cursor: not-allowed; text-decoration: line-through; }
.cal-slot.busy:hover { border-color: var(--line); }

.booking-summary { background: var(--bg-2); padding: 20px; margin-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.booking-summary .total { display: flex; flex-direction: column; }
.booking-summary .total span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--mute); }
.booking-summary .total b { font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: -1px; }

/* === GALLERY === */
.gallery-section { padding: 120px 0; background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; }
.gallery-grid > div { overflow: hidden; cursor: pointer; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery-grid > div:hover img { transform: scale(1.05); }
.gi-1 { grid-column: span 5; grid-row: span 4; }
.gi-2 { grid-column: span 4; grid-row: span 2; }
.gi-3 { grid-column: span 3; grid-row: span 3; }
.gi-4 { grid-column: span 4; grid-row: span 2; }
.gi-5 { grid-column: span 3; grid-row: span 2; }
.gi-6 { grid-column: span 4; grid-row: span 3; }
.gi-7 { grid-column: span 5; grid-row: span 2; }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 100px; } .gi-1, .gi-2, .gi-3, .gi-4, .gi-5, .gi-6, .gi-7 { grid-column: span 2; grid-row: span 2; } .gi-7 { display: none; } }

/* === REVIEWS === */
.reviews { padding: 120px 0; background: var(--paper); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 80px; margin-top: 64px; }
.review { border-top: 1px solid var(--line); padding-top: 32px; }
.review .stars { color: var(--gold); letter-spacing: 4px; font-size: 14px; margin-bottom: 18px; }
.review blockquote { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35; margin: 0 0 24px; color: var(--ink); font-weight: 300; letter-spacing: -0.3px; }
.review blockquote::before { content: "“"; font-size: 48px; color: var(--gold); margin-right: 4px; vertical-align: -10px; }
.review .who { display: flex; align-items: center; gap: 14px; }
.review .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; color: var(--gold-deep); }
.review .who b { display: block; font-size: 14px; font-weight: 500; }
.review .who span { font-size: 12px; color: var(--mute); }
@media (max-width: 800px) { .review-grid { grid-template-columns: 1fr; gap: 40px; } }

/* === CTA BANNER === */
.cta-banner { background: var(--ink); color: var(--paper); padding: 120px 0; position: relative; overflow: hidden; }
.cta-banner-bg { position: absolute; right: -100px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-style: italic; font-size: 380px; color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none; }
.cta-banner .container { position: relative; }
.cta-banner h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -2px; margin: 0 0 32px; max-width: 800px; }
.cta-banner h2 em { font-style: italic; color: #8db8df; }
.cta-banner p { max-width: 480px; color: rgba(251,247,238,0.7); font-size: 16px; line-height: 1.65; margin: 0 0 40px; }
.cta-banner .cta-info { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.15); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px 28px; }
.cta-banner .cta-info > div h5 { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(251,247,238,0.5); margin: 0 0 10px; font-weight: 500; }
.cta-banner .cta-info > div p { color: var(--paper); font-size: 15px; line-height: 1.5; margin: 0; word-break: break-word; }
.cta-banner .cta-info > div p a { transition: opacity 0.2s, border-color 0.2s; }
.cta-banner .cta-info > div p a:hover { opacity: 0.8; border-color: rgba(255,255,255,0.55) !important; }
@media (max-width: 760px) { .cta-banner .cta-info { grid-template-columns: 1fr 1fr; gap: 28px 24px; } }
@media (max-width: 440px) { .cta-banner .cta-info { grid-template-columns: 1fr; gap: 24px; } }

/* === FOOTER === */
.eh-footer { background: #0f1419; padding: 88px 0 28px; color: rgba(255,255,255,0.85); }
.eh-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.eh-footer h5 { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); margin: 0 0 24px; font-weight: 600; }
.eh-footer ul { list-style: none; margin: 0; padding: 0; }
.eh-footer ul li { padding: 6px 0; font-size: 14px; line-height: 1.4; }
.eh-footer ul li a { color: rgba(255,255,255,0.85); transition: color 0.2s; display: inline-block; }
.eh-footer ul li a:hover { color: var(--gold); }

/* 4-я колонка — крупный CTA с телефоном */
.eh-footer .ef-col--cta .ef-phone {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -0.5px;
  color: #ffffff; margin: 0 0 22px;
  white-space: nowrap; transition: color 0.2s;
}
.eh-footer .ef-col--cta .ef-phone:hover { color: var(--gold); }
.eh-footer .ef-col--cta .ef-actions li a {
  color: var(--gold); font-weight: 500;
  letter-spacing: 0.3px;
}
.eh-footer .ef-col--cta .ef-actions li a:hover { color: #ffffff; }
.eh-footer .ef-meta {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.7);
}
.eh-footer .ef-hours { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 6px; letter-spacing: 0.4px; }

/* Нижняя строка */
.eh-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 12px; color: rgba(255,255,255,0.45); letter-spacing: 0.4px; }
.eh-footer-bottom .lks { display: flex; gap: 26px; }
.eh-footer-bottom .lks a { color: rgba(255,255,255,0.55); }
.eh-footer-bottom .lks a:hover { color: var(--gold); }

@media (max-width: 1100px) {
  .eh-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .eh-footer { padding: 64px 0 24px; }
  .eh-footer-grid { gap: 32px; padding-bottom: 36px; }
}

/* === AUTH PAGES === */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-photo { position: relative; background-size: cover; background-position: center; overflow: hidden; }
.auth-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,20,25,0.3), rgba(15,20,25,0.7)); }
.auth-photo .auth-overlay { position: relative; z-index: 2; height: 100%; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; color: var(--paper); }
.auth-photo .quote { font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.2; max-width: 480px; font-weight: 300; }
.auth-photo .quote em { font-style: normal; }
.auth-photo .quote-by { margin-top: 16px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; }
.auth-form { padding: 56px; display: flex; flex-direction: column; justify-content: center; max-width: 520px; width: 100%; margin: 0 auto; }
.auth-form .back { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); margin-bottom: 48px; }
.auth-form h1 { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1; letter-spacing: -1.5px; margin: 0 0 16px; }
.auth-form h1 em { font-style: italic; color: var(--gold-deep); }
.auth-form p.lead { color: var(--ink-soft); margin: 0 0 40px; }
.auth-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.auth-form .row2 .field { margin-bottom: 18px; }
.auth-form .submit { width: 100%; padding: 18px; margin-top: 16px; }
.auth-form .alt-link { text-align: center; margin-top: 32px; font-size: 14px; color: var(--ink-soft); }
.auth-form .alt-link a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.auth-form .demo { margin-top: 32px; padding: 16px 20px; background: var(--bg-2); font-size: 12px; color: var(--ink-soft); line-height: 1.7; }
.auth-form .demo b { color: var(--ink); }
@media (max-width: 800px) { .auth-page { grid-template-columns: 1fr; } .auth-photo { display: none; } .auth-form { padding: 32px 24px; } }

/* === CABINET / ADMIN === */
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dash-side { background: var(--paper); border-right: 1px solid var(--line); padding: 32px 24px; display: flex; flex-direction: column; gap: 32px; position: sticky; top: 0; height: 100vh; min-width: 0; }
.dash-side .who { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.dash-side .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-family: var(--serif); font-size: 28px; color: var(--gold-deep); margin-bottom: 12px; }
.dash-side .who b { display: block; font-size: 16px; }
.dash-side .who span { font-size: 12px; color: var(--mute); }
.dash-side nav { display: flex; flex-direction: column; gap: 2px; }
.dash-side nav a { padding: 12px 16px; font-size: 14px; color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.15s; }
.dash-side nav a.active { background: var(--ink); color: var(--paper); }
.dash-side nav a:hover:not(.active) { background: var(--bg-2); color: var(--ink); }
.dash-side .bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); cursor: pointer; }
.dash-side .bottom:hover { color: var(--ink); }

.dash-main { padding: 48px 56px; max-width: 1280px; min-width: 0; }
.dash-main h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; letter-spacing: -1px; margin: 0 0 8px; }
.dash-main h1 em { font-style: italic; color: var(--gold-deep); }
.dash-main .crumbs { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.dash-main .head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 24px; }
.dash-main .head-row p { color: var(--ink-soft); margin: 8px 0 0; max-width: 560px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.metrics--3 { grid-template-columns: repeat(3, 1fr); }
.metric { background: var(--paper); padding: 24px 28px; }
.metric .lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.metric .val { font-family: var(--serif); font-size: 44px; font-weight: 400; letter-spacing: -1px; line-height: 1; }
.metric .val em { font-style: italic; color: var(--gold-deep); font-size: 24px; margin-left: 6px; }
.metric .delta { font-size: 12px; color: var(--green); margin-top: 6px; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { background: none; border: none; padding: 14px 0; margin-right: 32px; font-size: 14px; color: var(--mute); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }

.booking-card { padding: 20px 24px; border: 1px solid var(--line); margin-bottom: 12px; display: grid; grid-template-columns: 60px 1fr auto auto auto; gap: 24px; align-items: center; transition: border-color 0.2s; }
.booking-card:hover { border-color: var(--ink); }
.booking-card .num { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--gold-deep); }
.booking-card .info b { font-size: 15px; font-weight: 500; display: block; margin-bottom: 4px; }
.booking-card .info span { font-size: 12px; color: var(--mute); }
.booking-card .when b { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.booking-card .when span { font-size: 12px; color: var(--mute); display: block; }
.booking-card .price b { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.5px; }
.booking-card .price span { font-size: 11px; letter-spacing: 1.5px; color: var(--green); text-transform: uppercase; display: block; }
.booking-card .status { font-size: 12px; padding: 6px 12px; background: var(--bg-2); letter-spacing: 1px; }
.booking-card .status.active { background: rgba(91,139,95,0.12); color: var(--green); }

.empty { text-align: center; padding: 80px 20px; }
.empty .ico { font-family: var(--serif); font-style: italic; font-size: 64px; color: var(--gold); }
.empty h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 16px 0 8px; }
.empty p { color: var(--mute); margin: 0 0 24px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.tbl td { padding: 16px; border-bottom: 1px solid var(--line-soft); }
.tbl tr:hover td { background: var(--bg); }
.tbl .num { font-family: var(--serif); font-style: italic; color: var(--gold-deep); }
.tbl .badge { font-size: 11px; padding: 4px 10px; letter-spacing: 1px; background: var(--bg-2); display: inline-block; }
.tbl .badge.active { background: rgba(91,139,95,0.12); color: var(--green); }
.tbl .badge.pending { background: rgba(217,162,60,0.15); color: #b07f1e; }
.tbl .badge.completed { background: rgba(15,20,25,0.06); color: var(--ink-soft); }

.chart { height: 220px; display: flex; align-items: flex-end; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0 32px; }
.chart .bar { flex: 1; background: var(--gold); opacity: 0.85; transition: opacity 0.2s; min-height: 4px; }
.chart .bar:hover { opacity: 1; background: var(--gold-deep); }
.chart-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); letter-spacing: 1px; text-transform: uppercase; }

.search-bar { display: flex; gap: 12px; margin-bottom: 24px; }
.search-bar input { flex: 1; padding: 14px 18px; border: 1px solid var(--line); background: var(--paper); font-family: var(--sans); font-size: 14px; outline: none; }
.search-bar input:focus { border-color: var(--ink); }
.search-bar select { padding: 14px 18px; border: 1px solid var(--line); background: var(--paper); font-family: var(--sans); font-size: 14px; outline: none; cursor: pointer; }

/* Поля формы не должны распирать grid/flex-контейнеры своей «родной» шириной
   (особенно input[type=number] и select) — иначе дровер/строки переполняются по ширине. */
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; }
  .dash-side nav { flex-direction: row; flex-wrap: wrap; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .dash-main { padding: 32px 24px; }
}

/* ======================================================== */
/* TWEAKS — Density variants                                */
/* ======================================================== */
[data-density="compact"] .hero { min-height: 600px; }
[data-density="compact"] .hero-inner { padding-bottom: 60px; }
[data-density="compact"] .about { padding: 96px 0 72px; }
[data-density="compact"] .book { padding: 80px 0; }
[data-density="compact"] .gallery-section { padding: 80px 0; }
[data-density="compact"] .reviews { padding: 80px 0; }
[data-density="compact"] .cta-banner { padding: 80px 0; }
[data-density="compact"] .chapter { margin-bottom: 32px; }
[data-density="compact"] .review-grid { gap: 32px 64px; margin-top: 40px; }
[data-density="compact"] .about-grid { gap: 56px; }
[data-density="compact"] .container { max-width: 1240px; }
[data-density="compact"] .about h2 { font-size: clamp(36px, 4.4vw, 56px); }
[data-density="compact"] .book h2 { font-size: clamp(36px, 4.4vw, 56px); }
[data-density="compact"] .cta-banner h2 { font-size: clamp(40px, 5.2vw, 72px); }

/* ======================================================== */
/* TWEAKS — Hero treatments                                 */
/* ======================================================== */
/* Split: photo right, text left */
[data-hero="split"] .hero { display: grid; grid-template-columns: 1fr 1fr; padding: 0; min-height: 100vh; align-items: stretch; color: var(--ink); }
[data-hero="split"] .hero-bg { position: relative; height: 100%; width: 100%; transform: none; animation: none; grid-column: 2; }
[data-hero="split"] .hero-overlay { display: none; }
[data-hero="split"] .hero-inner { padding: 0; padding-left: 56px; padding-right: 56px; grid-column: 1; grid-row: 1; justify-content: center; align-items: flex-start; }
[data-hero="split"] .hero-inner.container { max-width: none; }
[data-hero="split"] .hero h1 { color: var(--ink); font-size: clamp(48px, 6.4vw, 96px); }
[data-hero="split"] .hero h1 em { color: var(--gold-deep); }
[data-hero="split"] .hero-kicker { color: var(--mute); }
[data-hero="split"] .hero-sub { flex-direction: column; align-items: flex-start; }
[data-hero="split"] .hero-sub p { color: var(--ink-soft); }
[data-hero="split"] .hero-stats { color: var(--ink); border-top-color: var(--line); }
[data-hero="split"] .hero-stats { grid-column: 1 / -1; padding: 22px 56px; }
[data-hero="split"] .hero-cta .btn--white { background: var(--ink); color: var(--paper); }
[data-hero="split"] .hero-cta .btn--white:hover { background: var(--gold-deep); }
[data-hero="split"] .hero-cta .btn--outline { color: var(--ink); border-color: var(--ink); }
[data-hero="split"] .eh-header.dark:not(.scrolled) { color: var(--ink); }
[data-hero="split"] .eh-header.dark:not(.scrolled) .logo,
[data-hero="split"] .eh-header.dark:not(.scrolled) .nav a { color: var(--ink); }
[data-hero="split"] .eh-header.dark:not(.scrolled) .btn--outline { color: var(--ink); border-color: var(--ink); }
@media (max-width: 900px) {
  [data-hero="split"] .hero { grid-template-columns: 1fr; }
  [data-hero="split"] .hero-bg { grid-column: 1; height: 280px; }
  [data-hero="split"] .hero-inner { grid-row: 2; padding: 40px 24px 80px; }
}

/* Type-first: tiny photo top-right corner */
[data-hero="type-first"] .hero { background: var(--bg); color: var(--ink); min-height: 92vh; }
[data-hero="type-first"] .hero-bg { left: auto; top: 28px; right: 28px; bottom: auto; width: 38%; height: 280px; transform: none; animation: none; }
[data-hero="type-first"] .hero-overlay { display: none; }
[data-hero="type-first"] .hero-inner { padding: 280px 0 60px; }
[data-hero="type-first"] .hero h1 { color: var(--ink); font-size: clamp(64px, 11vw, 168px); max-width: 1200px; }
[data-hero="type-first"] .hero h1 em { color: var(--gold-deep); }
[data-hero="type-first"] .hero-kicker { color: var(--mute); }
[data-hero="type-first"] .hero-sub p { color: var(--ink-soft); }
[data-hero="type-first"] .hero-stats { color: var(--ink); border-top-color: var(--line); }
[data-hero="type-first"] .hero-cta .btn--white { background: var(--ink); color: var(--paper); }
[data-hero="type-first"] .hero-cta .btn--white:hover { background: var(--gold-deep); }
[data-hero="type-first"] .hero-cta .btn--outline { color: var(--ink); border-color: var(--ink); }
[data-hero="type-first"] .eh-header.dark:not(.scrolled) { color: var(--ink); }
[data-hero="type-first"] .eh-header.dark:not(.scrolled) .logo,
[data-hero="type-first"] .eh-header.dark:not(.scrolled) .nav a { color: var(--ink); }
[data-hero="type-first"] .eh-header.dark:not(.scrolled) .btn--outline { color: var(--ink); border-color: var(--ink); }
@media (max-width: 900px) {
  [data-hero="type-first"] .hero-bg { width: calc(100% - 48px); height: 220px; right: 24px; }
  [data-hero="type-first"] .hero-inner { padding: 240px 0 80px; }
}

/* ======================================================== */
/* TWEAKS — Plan tone                                       */
/* ======================================================== */
[data-plan-tone="ink"] .plan-frame { background: #15130f; }
[data-plan-tone="ink"] .plan-frame .pl-label { color: rgba(217,197,167,0.6); }
[data-plan-tone="ink"] .plan-frame .pl-label-r { color: rgba(217,197,167,0.7); }
[data-plan-tone="ink"] .plan-frame .c-tl,
[data-plan-tone="ink"] .plan-frame .c-tr,
[data-plan-tone="ink"] .plan-frame .c-bl,
[data-plan-tone="ink"] .plan-frame .c-br { border-color: rgba(217,197,167,0.5); }
[data-plan-tone="ink"] .plan-frame svg rect[fill="url(#floor-pattern)"] { fill: #1c1813; }
[data-plan-tone="ink"] .plan-frame svg rect[fill="url(#hair-floor)"] { opacity: 0.25; }
[data-plan-tone="ink"] .plan-frame svg rect[fill="url(#nail-floor)"] { opacity: 0.2; }
[data-plan-tone="ink"] .plan-frame svg rect[fill="#ffffff"] { fill: #1a2030; }
[data-plan-tone="ink"] .plan-frame svg rect[fill="#eef1f4"] { fill: #0f1419; }
[data-plan-tone="ink"] .plan-frame svg text[fill="#0f1419"] { fill: #e6eaf2; }
[data-plan-tone="ink"] .plan-frame svg text[fill="#2c333d"] { fill: rgba(230,234,242,0.7); }
[data-plan-tone="ink"] .plan-frame svg text[fill="#6e7682"] { fill: rgba(230,234,242,0.55); }
[data-plan-tone="ink"] .plan-frame svg text[fill="#066aab"] { fill: var(--gold); }
[data-plan-tone="ink"] .plan-frame svg [stroke="#0f1419"] { stroke: rgba(230,234,242,0.85); }
[data-plan-tone="ink"] .plan-frame svg [stroke="#066aab"] { stroke: var(--gold); }
[data-plan-tone="ink"] .plan-frame svg [stroke="#ffffff"] { stroke: #0a0e14; }

/* ======================================================== */
/* POLISH — Micro-interactions                              */
/* ======================================================== */

/* Number stagger fade-in helpers */
.hstat { opacity: 0; animation: statIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hstat:nth-child(1) { animation-delay: 1.0s; }
.hstat:nth-child(2) { animation-delay: 1.15s; }
.hstat:nth-child(3) { animation-delay: 1.3s; }
.hstat:nth-child(4) { animation-delay: 1.45s; }
@keyframes statIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Hero subtle parallax on the image */
.hero-bg { will-change: transform; animation: none !important; transform: scale(1.08); }

/* Room row arrow on hover */
.room-row { position: relative; }
.room-row::after { content: "→"; position: absolute; right: -6px; opacity: 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold-deep); transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.room-row:hover::after { opacity: 1; right: 0; }
.room-row { transition: padding 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s; }
.room-row:hover { background: var(--bg-2); padding-left: 12px; }

/* Booking-card hover */
.booking-card { transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1); position: relative; }
.booking-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(15,20,25,0.18); }

/* Metric hover */
.metric { transition: background 0.2s; cursor: default; }
.metric:hover { background: var(--bg-2); }

/* Smooth gallery zoom + show eye icon on hover */
.gallery-grid > div { position: relative; }
.gallery-grid > div::after { content: ""; position: absolute; inset: 0; background: rgba(15,20,25,0.0); transition: background 0.4s; pointer-events: none; }
.gallery-grid > div:hover::after { background: rgba(15,20,25,0.18); }
.gallery-grid > div::before { content: "+"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5); width: 48px; height: 48px; border: 1px solid var(--paper); color: var(--paper); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 24px; font-weight: 300; opacity: 0; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); z-index: 2; pointer-events: none; }
.gallery-grid > div:hover::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Plan room hover cursor */
.plan-frame svg g[style*="cursor"] { transition: filter 0.2s; }
.plan-frame svg g[style*="cursor"]:hover { filter: drop-shadow(0 2px 8px rgba(125, 90, 54, 0.4)); }

/* Drawer: smoother body scroll */
.room-detail { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* Cabinet status badge — subtle pulse for active */
.booking-card .status.active { position: relative; overflow: hidden; }
.booking-card .status.active::before { content: ""; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 0 rgba(91, 139, 95, 0.6); animation: livePulse 2.4s infinite; }
.booking-card .status.active { padding-left: 24px; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(91, 139, 95, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(91, 139, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 139, 95, 0); } }

/* Tab underline animation */
.tabs button { position: relative; transition: color 0.2s; }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.tabs button.active::after { transform: scaleX(1); }
.tabs button { border-bottom: none !important; }

/* Smoother chart bars on load */
.chart .bar { transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

/* Nav link underline */
.eh-header .nav a { position: relative; }
.eh-header .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.eh-header .nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* CTA banner — subtle floating effect on the giant 'Estetic.' word */
.cta-banner-bg { animation: floatGiant 12s ease-in-out infinite; }
@keyframes floatGiant { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 14px)); } }

/* Reveal — keep but smoother */
.reveal { transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }

/* Focus rings — gold */
*:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; border-radius: 2px; }

/* About badge — small lift */
.about-badge { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.about-photo:hover .about-badge { transform: translateY(-4px); }

/* Calendar slot hover */
.cal-slot { transition: all 0.18s; }
.cal-slot:hover:not(.busy):not(.selected) { transform: translateY(-1px); }
.cal-day { transition: all 0.18s; }
.cal-day:not(.active):hover { transform: translateY(-1px); }

/* ======================================================== */
/* ESTETIC HALL — Тамбов build: hero motion + room card     */
/* ======================================================== */

/* --- HERO: slideshow + Ken Burns motion --- */
.hero-bg { transform: none !important; animation: none !important; overflow: hidden; }
.hero-bg-img {
  position: absolute; inset: -1px;
  background-size: cover; background-position: center;
  transform-origin: 55% 45%;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  animation: kenburns 30s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
.hero-bg-img.is-active { opacity: 1; }
@keyframes kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to   { transform: scale(1.2) translate3d(-2.2%, -2%, 0); }
}
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(18,16,13,0.58) 0%, rgba(18,16,13,0.34) 38%, rgba(18,16,13,0.9) 100%),
    linear-gradient(90deg, rgba(18,16,13,0.34) 0%, rgba(18,16,13,0) 58%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-img { animation: none; transform: scale(1.08); transition: opacity 0.3s; }
}
/* keep alt hero treatments static */
[data-hero="split"] .hero-bg-img,
[data-hero="type-first"] .hero-bg-img { animation: none; transform: none; }

/* --- Loading spinner (cabinet / admin) --- */
.eh-spinner {
  width: 38px; height: 38px; margin: 0 auto;
  border: 2px solid var(--line); border-top-color: var(--gold-deep);
  border-radius: 50%; animation: ehspin 0.8s linear infinite;
}
@keyframes ehspin { to { transform: rotate(360deg); } }

/* --- Toast (booking confirm / error) --- */
.eh-toast {
  position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 460px; margin: 0 auto;
  background: var(--ink); color: var(--paper); padding: 18px 24px; z-index: 300;
  animation: fadeUp 0.4s; box-shadow: 0 24px 60px -24px rgba(0,0,0,0.5);
}
.eh-toast.err { background: var(--red); }
.eh-toast a { color: var(--paper); }

/* --- ROOM DRAWER: richer look --- */
.room-detail { width: 580px; box-shadow: -30px 0 90px -50px rgba(15,20,25,0.6); }
.room-detail .gallery { aspect-ratio: 16/11; }
.gallery-grad { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,20,25,0.4) 0%, rgba(15,20,25,0) 32%, rgba(15,20,25,0) 62%, rgba(15,20,25,0.55) 100%); }
.room-detail .gallery .close { z-index: 6; background: rgba(251,247,238,0.92); backdrop-filter: blur(6px); transition: transform 0.25s, background 0.2s; }
.room-detail .gallery .close:hover { transform: rotate(90deg); background: #fff; }
.gallery-cap { position: absolute; left: 24px; top: 20px; z-index: 5; display: flex; align-items: baseline; gap: 12px; color: var(--paper); }
.gallery-cap .g-num { font-family: var(--serif); font-style: italic; font-size: 42px; line-height: 1; text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.gallery-cap .g-zone { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; opacity: 0.92; }
.room-detail .gallery .dots { bottom: 24px; }

.rd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.rd-head h3 { margin: 0; }
.rd-pill { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 100px; background: var(--bg-2); font-size: 12px; margin-top: 8px; white-space: nowrap; }
.rd-pill i { width: 8px; height: 8px; border-radius: 50%; }
.room-detail .meta-row .from { margin-left: auto; font-size: 13px; color: var(--mute); }
.room-detail .meta-row .from b { font-family: var(--serif); font-size: 19px; color: var(--ink); font-style: normal; }
.room-detail .prices > div:nth-child(5) { border-right: none; background: var(--bg-2); padding-left: 16px; padding-right: 16px; }

.cal-loading { padding: 22px; text-align: center; color: var(--mute); font-size: 13px; border: 1px dashed var(--line); }

/* Переключатель формата брони: по часам / на день / на месяц */
.rd-modes { display: flex; gap: 8px; margin-bottom: 16px; }
.rd-modes button { flex: 1; padding: 11px 10px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: all 0.18s; }
.rd-modes button.active { background: var(--ink); color: var(--paper); }
.rd-modes button:hover:not(.active) { background: var(--bg-2); }

/* Бронь «на день» и «на месяц»: дата + статус доступности */
.rd-long { border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.rd-long-note { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.rd-long-date { display: flex; flex-direction: column; gap: 6px; }
.rd-long-date label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); }
.rd-long-date input { padding: 12px 14px; border: 1px solid var(--line); background: var(--paper);
  font-family: inherit; font-size: 14px; color: var(--ink); }
.rd-long-date input:focus { outline: none; border-color: var(--ink); }
.rd-long-status { font-size: 13px; padding: 12px 14px; }
.rd-long-status.ok { background: rgba(46,125,50,0.08); color: #2e7d32; }
.rd-long-status.no { background: rgba(198,40,40,0.07); color: var(--red, #c62828); }
.cal-legend { display: flex; gap: 18px; margin-top: 12px; font-size: 11px; letter-spacing: 0.5px; color: var(--mute); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cal-legend .lg-free { background: var(--paper); border: 1px solid var(--line); }
.cal-legend .lg-busy { background: rgba(15,20,25,0.1); }
.cal-legend .lg-sel { background: var(--gold); }

.rd-contacts { display: flex; gap: 10px; flex-wrap: wrap; }
.rd-contacts a { flex: 1; min-width: 120px; text-align: center; padding: 12px 8px; border: 1px solid var(--line); color: var(--ink); font-size: 12px; letter-spacing: 0; white-space: nowrap; transition: all 0.2s; }
.rd-contacts a:hover { border-color: var(--ink); background: var(--bg-2); }
@media (max-width: 420px) {
  .rd-contacts a { font-size: 11px; padding: 11px 6px; min-width: 110px; }
}

.rd-bar { position: sticky; bottom: 0; z-index: 7; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 16px 24px; background: rgba(251,247,238,0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -22px rgba(15,20,25,0.5); }
.rd-bar-info { display: flex; flex-direction: column; }
.rd-bar-info span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); }
.rd-bar-info b { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -1px; line-height: 1.1; }
.rd-bar-price { display: flex; align-items: baseline; gap: 10px; }
.rd-bar-old { font-size: 14px; color: var(--mute); text-decoration: line-through; }
.rd-bar-discount {
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600;
  color: var(--gold); margin: 0 16px 0 0;
}
.rd-bar .btn { margin-left: auto; white-space: nowrap; }
.rd-bar .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
@media (max-width: 600px) {
  .room-detail { width: 100vw; }
  .room-detail .gallery { aspect-ratio: 4/3; }
}

/* --- Smooth anchor scrolling between landing sections --- */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }

/* --- Smooth page (route) transitions --- */
.page-enter { animation: pageFade 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-enter { animation: none; }
}

/* --- Header avatar for the logged-in user (replaces «Войти») --- */
.header-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.2px solid currentColor; color: var(--ink);
  font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1;
  text-transform: uppercase; cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.header-avatar:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.eh-header.dark:not(.scrolled) .header-avatar { color: var(--paper); border-color: rgba(255,255,255,0.7); }
.eh-header.dark:not(.scrolled) .header-avatar:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* --- Cabinet · Profile section --- */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; max-width: 920px; }
.profile-card { border: 1px solid var(--line); background: var(--paper); padding: 28px 28px 30px; }
.profile-card h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; margin: 0 0 22px; letter-spacing: -0.3px; }
.profile-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-card .field input:disabled { color: var(--mute); cursor: not-allowed; }
.profile-card .hint { font-size: 12px; color: var(--mute); margin-top: 6px; }
.profile-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.profile-actions .save-ok { font-size: 13px; color: var(--green); animation: fadeIn 0.3s; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }

/* --- Admin · client detail drawer --- */
.admin-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100vw; background: var(--paper); z-index: 201; padding: 44px 36px; overflow-y: auto; animation: slideIn 0.4s cubic-bezier(0.22,1,0.36,1); box-shadow: -30px 0 90px -50px rgba(15,20,25,0.6); }
.admin-drawer .ad-close { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: transform 0.25s, background 0.2s; }
.admin-drawer .ad-close:hover { transform: rotate(90deg); background: var(--bg-2); }
.admin-drawer .ad-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-family: var(--serif); font-size: 28px; color: var(--gold-deep); margin-bottom: 16px; }
.admin-drawer h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0; letter-spacing: -0.5px; }
.admin-drawer .ad-spec { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); margin-top: 4px; }
.admin-drawer .ad-contacts { margin: 24px 0; border-top: 1px solid var(--line); }
.admin-drawer .ad-contacts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.admin-drawer .ad-contacts span { color: var(--mute); }
.admin-drawer h4 { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--mute); margin: 24px 0 14px; }
.admin-drawer .ad-bookings { display: flex; flex-direction: column; gap: 10px; }
.admin-drawer .ad-book { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.admin-drawer .ad-book b { font-size: 14px; }
.admin-drawer .ad-book > div > span { font-size: 12px; color: var(--mute); display: block; margin-top: 2px; }
.admin-drawer .ad-book-right { text-align: right; }
.admin-drawer .ad-book-right b { font-family: var(--serif); font-size: 16px; }
.admin-drawer .ad-book-right .badge { margin-top: 4px; }
@media (max-width: 600px) { .admin-drawer { width: 100vw; } }

/* --- Логотип-картинка (заменяет CSS-монограмму «EH») --- */
.logo .mark { border: none !important; border-radius: 0; width: 40px; height: 40px; font-size: 0; }
.logo .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Белый логотип на тёмном фоне: hero-шапка и фото-колонка входа/регистрации */
.eh-header.dark:not(.scrolled) .logo .mark img,
.auth-photo .logo .mark img { filter: invert(1) brightness(1.6); }

/* --- Регистрация: просторно, но помещается (телефон+email в один ряд) --- */
.auth-compact { padding-top: 32px; padding-bottom: 32px; }
.auth-compact .back { margin-bottom: 18px; }
.auth-compact h1 { font-size: 44px; line-height: 1.03; margin-bottom: 10px; }
.auth-compact p.lead { margin-bottom: 18px; }
.auth-compact .field { margin-bottom: 12px; }
.auth-compact .row2 { gap: 20px; }
.auth-compact .row2 .field { margin-bottom: 12px; }
.auth-compact .submit { padding: 16px; margin-top: 10px; }
.auth-compact .alt-link { margin-top: 18px; }

/* --- Admin · кабинеты (карточки + редактирование) --- */
.rooms-admin { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.room-admin-card { display: grid; grid-template-columns: 150px 1fr; gap: 18px; border: 1px solid var(--line); background: var(--paper); padding: 16px; }
.room-admin-card > img { width: 150px; height: 150px; object-fit: cover; }
.room-admin-card .ra-body { display: flex; flex-direction: column; gap: 8px; }
.room-admin-card .ra-head { display: flex; align-items: center; gap: 10px; }
.room-admin-card .ra-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-deep); }
.room-admin-card .ra-head h4 { margin: 0; font-size: 18px; font-weight: 500; }
.room-admin-card .status-dot { width: 9px; height: 9px; border-radius: 50%; margin-left: auto; }
.room-admin-card .status-dot.free { background: var(--green); }
.room-admin-card .status-dot.partial { background: #d9a23c; }
.room-admin-card .status-dot.busy { background: var(--red); }
.room-admin-card .ra-meta { font-size: 13px; color: var(--mute); }
.room-admin-card .ra-prices { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; }
@media (max-width: 1100px) { .rooms-admin { grid-template-columns: 1fr; } }

.admin-drawer.room-edit { width: 540px; }
.admin-drawer .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-drawer .price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
.admin-drawer .row2 .field, .admin-drawer .price-grid .field { margin-bottom: 0; }
.admin-drawer textarea { width: 100%; font-family: var(--sans); font-size: 14px; line-height: 1.5; padding: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); resize: vertical; outline: none; border-radius: 0; }
.admin-drawer textarea:focus { border-color: var(--ink); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-thumb { position: relative; aspect-ratio: 1; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: none; border-radius: 50%; background: rgba(15,20,25,0.82); color: #fff; cursor: pointer; font-size: 11px; line-height: 1; }
.photo-thumb button:hover { background: var(--red); }
.photo-add { aspect-ratio: 1; border: 1px dashed var(--line); display: grid; place-items: center; cursor: pointer; font-size: 13px; color: var(--mute); transition: all 0.2s; }
.photo-add:hover { border-color: var(--ink); color: var(--ink); background: var(--bg-2); }
.photo-add.busy { opacity: 0.6; cursor: default; }
@media (max-width: 600px) { .admin-drawer.room-edit { width: 100vw; } }

/* Аккордеон зон (секция бронирования) — FAQ-стиль, открыта одна зона */
.rooms-list .zone-group { border-bottom: 1px solid var(--line); }
.rooms-list .zone-head { width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 15px 2px; background: none; border: none; text-align: left; cursor: pointer; color: var(--ink); transition: color 0.2s; }
.rooms-list .zone-head:hover { color: var(--gold-deep); }
.rooms-list .zone-head .zh-name { font-family: var(--serif); font-style: italic; font-size: 20px; }
.rooms-list .zone-head .zg-meta { font-size: 11px; letter-spacing: 0.5px; color: var(--mute); }
.rooms-list .zone-head .zh-arrow { margin-left: auto; font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--gold-deep); width: 18px; text-align: center; }
.rooms-list .zone-group.open .zone-head .zh-name { color: var(--gold-deep); }
.rooms-list .zone-rows { animation: zoneOpen 0.34s cubic-bezier(0.22, 1, 0.36, 1); padding-bottom: 10px; }
@keyframes zoneOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rooms-list .zone-rows .room-row { border-top: 1px solid var(--line-soft); border-bottom: none; padding: 10px 0; }

/* --- Юридические страницы (Политика / Оферта) --- */
.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 56px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 50; }
.legal-top .back { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); transition: color 0.2s; }
.legal-top .back:hover { color: var(--ink); }
.legal { max-width: 820px; margin: 0 auto; padding: 56px 56px 88px; }
.legal .crumbs { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 6vw, 72px); line-height: 1.05; letter-spacing: -1px; margin: 0 0 14px; overflow-wrap: break-word; }
.legal .legal-upd { font-size: 13px; color: var(--mute); margin: 0 0 28px; }
.legal-note { background: rgba(166,124,82,0.1); border-left: 3px solid var(--gold); padding: 14px 18px; font-size: 13px; line-height: 1.6; color: var(--gold-deep); margin: 0 0 32px; }
.legal-lead { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-sec { margin-bottom: 30px; }
.legal-sec h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; letter-spacing: -0.3px; margin: 0 0 12px; }
.legal-sec h3 .ls-num { color: var(--gold-deep); font-style: italic; margin-right: 8px; }
.legal-sec p { font-size: 15px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 12px; }
.legal-sec ul { margin: 4px 0 12px; padding-left: 4px; list-style: none; }
.legal-sec li { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 7px; padding-left: 20px; position: relative; }
.legal-sec li::before { content: "—"; position: absolute; left: 0; color: var(--gold-deep); }
.legal-contacts { margin-top: 44px; padding: 24px 28px; background: var(--bg-2); font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.legal-contacts b { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); display: block; margin-bottom: 8px; }
@media (max-width: 800px) { .legal-top { padding: 16px 24px; } .legal { padding: 40px 24px 64px; } }

/* ======================================================== */
/* АДАПТИВ — мобильное меню + полировка под все экраны        */
/* ======================================================== */

/* --- Бургер --- */
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 0; color: inherit; }
.burger span { display: block; width: 24px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s, background 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
/* При скролле шапка светлеет — бургер должен тоже стать тёмным, иначе сливается */
.eh-header.scrolled .burger { color: var(--ink); }
.mobile-menu { display: none; }

@media (max-width: 1360px) {
  .eh-header .right .hide-mobile { display: none; }
  .burger { display: flex; }
  .mobile-menu {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; z-index: 120;
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(15,20,25,0.3);
    padding: 4px 0 16px; animation: mmDrop 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobile-menu a { padding: 15px 28px; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line-soft); letter-spacing: 0.3px; }
  .mobile-menu a.mm-accent { color: var(--gold-deep); font-weight: 500; }
  .mobile-menu a.mm-cta { margin: 14px 24px 0; border: none; text-align: center; background: var(--ink); color: var(--paper); padding: 16px; letter-spacing: 2px; text-transform: uppercase; font-size: 12px; transition: background 0.25s; }
  .mobile-menu a.mm-cta:hover { background: var(--gold-deep); }
}
@keyframes mmDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* --- Адаптивные таблицы: горизонтальный скролл --- */
@media (max-width: 760px) {
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl-wrap .tbl { min-width: 600px; }
}

/* --- Метрики на узких экранах: админ 2×2, кабинет (3 шт.) в столбик --- */
@media (max-width: 760px) {
  .metrics { grid-template-columns: 1fr 1fr !important; }
  .metrics--3 { grid-template-columns: 1fr !important; }
  .metric { padding: 18px 16px; }
  .metric .val { font-size: 32px; }
  .metric .val em { font-size: 16px; margin-left: 4px; }
  .metric .lbl { margin-bottom: 8px; }
}

/* --- Кабинет/Админ на мобильном: верхняя панель + переносимые вкладки --- */
@media (max-width: 900px) {
  .dash { overflow-x: clip; }
  .dash-side { flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 18px; position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
  .dash-side .who { display: none; }
  .dash-side .logo { order: 1; margin: 0 !important; }
  .dash-side .logo .txt { display: none; }
  .dash-side .bottom { order: 2; margin: 0 0 0 auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 12px; color: var(--ink); white-space: nowrap; }
  .dash-side .bottom:hover { background: var(--ink); color: var(--paper); }
  .dash-side nav { order: 3; flex: 0 0 100%; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
  .dash-side nav a { white-space: nowrap; padding: 7px 11px; background: var(--bg-2); border-radius: 2px; font-size: 12px; letter-spacing: 0.1px; }
  .dash-side nav a.active { background: var(--ink); color: var(--paper); }
  .dash-main .head-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dash-main .head-row .btn { width: 100%; }
  .dash-main h1 { font-size: 36px; }
}

/* --- Карточка брони — столбиком на телефоне --- */
@media (max-width: 620px) {
  .booking-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .booking-card .num { font-size: 24px; }
  .booking-card > div:last-child { width: 100%; justify-content: space-between; }
}

/* --- Поиск/фильтры (админ) — в столбик на телефоне --- */
@media (max-width: 640px) {
  .search-bar { flex-direction: column; gap: 10px; }
  .search-bar input, .search-bar select { width: 100%; }
}

/* --- Карточка места + drawer редактирования (админ) на телефоне --- */
@media (max-width: 600px) {
  .room-admin-card { grid-template-columns: 104px 1fr; gap: 14px; padding: 12px; }
  .room-admin-card > img { width: 104px; height: 104px; }
  .admin-drawer { padding: 44px 20px 32px; }
  .admin-drawer.room-edit .price-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Регистрация — поля в один столбец на телефоне --- */
@media (max-width: 560px) {
  .auth-form .row2 { grid-template-columns: 1fr; gap: 0; }
}

/* --- Футер на телефоне --- */
@media (max-width: 560px) {
  .eh-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .eh-footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .eh-footer-bottom .lks { gap: 18px; }
}

/* --- Маленькие телефоны --- */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .legal { padding: 32px 18px 56px; }
  .dash-main { padding: 24px 18px; }
  .dash-main h1 { font-size: 30px; }
  .hero-stats { gap: 16px 12px; }
  .hstat b { font-size: 23px; }
  .book .legend { gap: 14px; }
  .auth-form h1 { font-size: 42px; }
  .cta-banner-bg { font-size: 200px; }
  .room-detail .body { padding: 24px 22px 40px; }
  .profile-card { padding: 22px 20px 24px; }
}

/* Планшет: hero-статистика — число над подписью в 4 колонки, чтобы ничего не наезжало */
@media (max-width: 1160px) and (min-width: 801px) {
  .hero-stats { left: 40px; right: 40px; gap: 18px; }
  .hstat { flex-direction: column; align-items: flex-start; gap: 3px; }
  .hstat b { font-size: 19px; }
  .hstat span { font-size: 9.5px; letter-spacing: 1.2px; line-height: 1.3; }
}

/* --- Tweaks-панель (дизайн-инструмент) — прячем на узких --- */
@media (max-width: 820px) { .twk-panel { display: none !important; } }

/* --- Мобильный HERO: контент в потоке, плашка статистики не наезжает --- */
@media (max-width: 800px) {
  /* Высота hero = ровно остаток вьюпорта после шапки, чтобы плашка статистики оставалась на экране */
  .hero { height: auto; min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); display: flex; flex-direction: column; }
  /* Контент прижат к НИЗУ hero-inner — кнопки сразу над линией stats */
  .hero-inner { height: auto; flex: 1 1 auto; justify-content: flex-end; padding: 32px 24px 18px; }
  .hero-kicker { margin-bottom: 14px; font-size: 10px; letter-spacing: 2px; white-space: nowrap; }
  .hero-kicker .dot { margin: 0 8px; width: 5px; height: 5px; vertical-align: 1px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 46px); letter-spacing: -1.2px; }
  .hero-headline--nordic { margin-bottom: 12px !important; }
  /* Bullets в одну строку */
  .hero-bullets {
    flex-wrap: nowrap; white-space: nowrap;
    font-size: 9.5px; letter-spacing: 0.6px; gap: 6px;
    margin: 0 0 96px;
  }
  .hero-bullets .dot { width: 3px; height: 3px; }
  .hero-lead { font-size: 14px; line-height: 1.55; margin: 0; }
  .hero-sub { margin-top: 16px; gap: 14px; }
  .hero-sub p { font-size: 15px; max-width: none; }
  .hero-cta { width: 100%; gap: 10px; margin-top: 14px; }
  .hero-cta .btn { flex: 1; padding: 16px 8px; font-size: 11px; letter-spacing: 1.5px; }
  .hero-stats {
    position: static; left: auto; right: auto; bottom: auto; margin: 0;
    padding: 22px 24px 84px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.22);
  }
  .hstat { flex-direction: column; align-items: flex-start; gap: 4px; animation: none; opacity: 1; transform: none; }
  .hstat b { font-size: 22px; line-height: 1; }
  .hstat span { font-size: 9.5px; letter-spacing: 1.4px; opacity: 0.82; line-height: 1.3; }
}
@media (max-width: 360px) {
  .hero-bullets { font-size: 8.5px; gap: 4px; }
}

/* Чекбокс «применить ко всей зоне» */
.zone-apply { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; cursor: pointer; }
.zone-apply input { margin-top: 2px; flex-shrink: 0; }

/* Сетка настроек сайта (рабочее время / контакты) */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 780px; }
@media (max-width: 700px) { .settings-grid { grid-template-columns: 1fr; gap: 8px; } }

/* ============================================================ */
/* NORDIC-СТИЛЬ ЛЕНДИНГА                                        */
/* ============================================================ */

/* Nordic-стиль hero (слайдер фото или видео) */
.hero--nordic .hero-overlay {
  background:
    linear-gradient(180deg, rgba(8,12,18,0.55) 0%, rgba(8,12,18,0.35) 35%, rgba(8,12,18,0.86) 100%),
    linear-gradient(90deg, rgba(8,12,18,0.30) 0%, rgba(8,12,18,0) 60%);
}

/* Новый Nordic-style заголовок — overrides default .hero h1 */
.hero h1.hero-headline--nordic {
  font-family: var(--serif) !important;
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 88px);
  line-height: 1.06;
  letter-spacing: -1px;
  margin: 0 0 24px;
  max-width: 920px;
  display: block;
  gap: 0;
}
.hero h1.hero-headline--nordic em {
  font-family: var(--serif) !important;
  font-style: italic;
  color: #4a6fff;
  font-weight: 700;
  margin: 0 6px;
  letter-spacing: -0.6px;
  display: inline-block;
  text-shadow: 0 2px 18px rgba(15, 20, 25, 0.45);
}
.hero h1.hero-headline--nordic::before,
.hero h1.hero-headline--nordic .line { display: none; }
/* Сбрасываем декорации старого .line-3 */
.hero h1.hero-headline--nordic + * { margin-top: 0; }

/* Bullet-строка под заголовком */
.hero-bullets {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(255,255,255,0.92); margin: 14px 0 18px;
  font-family: var(--sans); font-weight: 500;
}
.hero-bullets .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
  display: inline-block; opacity: 0.85;
}

.hero-lead {
  max-width: 620px; font-size: 16px; line-height: 1.6;
  color: rgba(255,255,255,0.85); margin: 0 0 30px;
  font-family: var(--sans);
}

/* Главная CTA — крупная цветная */
.hero-cta-primary {
  font-weight: 600; padding: 18px 36px; font-size: 13px; letter-spacing: 1.5px;
  box-shadow: 0 18px 36px -16px rgba(29,61,240,0.55);
  transition: transform 0.18s, box-shadow 0.18s;
}
.hero-cta-primary:hover { transform: translateY(-1.5px); box-shadow: 0 22px 42px -16px rgba(29,61,240,0.7); }
/* Базовые значения для двух вариантов текста кнопки */
.cta-short { display: none; }
.cta-full { display: inline; }
@media (max-width: 800px) {
  .cta-short { display: inline; }
  .cta-full { display: none; }
}

@media (max-width: 800px) {
  .hero h1.hero-headline--nordic { font-size: clamp(28px, 8.6vw, 46px); line-height: 1.12; }
  .hero-bullets { flex-wrap: nowrap; white-space: nowrap; font-size: 9.5px; letter-spacing: 0.6px; gap: 6px; margin: 0 0 56px; }
  .hero-bullets .dot { width: 3px; height: 3px; }
  .hero-lead { font-size: 14px; }
}
@media (max-width: 360px) {
  .hero-bullets { font-size: 8.5px; gap: 4px; letter-spacing: 0.4px; }
}

/* Телефон в шапке */
.eh-header .header-phone {
  font-family: var(--serif); font-size: 16px; letter-spacing: 0.5px;
  color: inherit; padding: 0 12px; white-space: nowrap;
  transition: color 0.2s;
}
.eh-header .header-phone:hover { color: var(--gold); }
.eh-header.dark:not(.scrolled) .header-phone { color: var(--paper); }
@media (max-width: 1100px) { .eh-header .header-phone { display: none; } }

/* Соц-кнопка ВКонтакте в шапке — чёрный круг с белой надписью VK */
.eh-header .header-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #0f1419;
  color: #ffffff;
  font-family: var(--sans); font-weight: 700;
  font-size: 12px; letter-spacing: 0.6px;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
  margin: 0 4px;
  text-decoration: none;
}
.eh-header .header-social:hover {
  background: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(29, 61, 240, 0.55);
}
/* Соц-иконки остаются рядом с бургером даже на узких экранах — просто компактнее */
@media (max-width: 760px) {
  .eh-header .header-social { width: 34px; height: 34px; margin: 0 2px; font-size: 11px; }
}
@media (max-width: 430px) {
  .eh-header .header-social { width: 30px; height: 30px; margin: 0 1px; font-size: 9.5px; }
  .eh-header .header-social svg { transform: scale(0.85); }
}
/* Совсем узкие экраны — поджимаем шапку, чтобы логотип + соц-иконки + бургер уместились */
@media (max-width: 480px) {
  .eh-header .container { gap: 10px; padding: 0 14px; }
  .eh-header .right { gap: 8px; }
  .eh-header .logo { gap: 8px; }
  .eh-header .logo .mark { width: 32px; height: 32px; }
  .eh-header .logo .txt b { font-size: 13px; letter-spacing: 1px; }
  .eh-header .logo .txt span { font-size: 8px; letter-spacing: 1.2px; }
}

/* 6 колонок features (раньше было 4) */
.features.features--6 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .features.features--6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features.features--6 { grid-template-columns: 1fr; } }

/* ============================================ */
/* СПЕЦПРЕДЛОЖЕНИЯ — 2 крупные карточки         */
/* ============================================ */
.promo { padding: 120px 0; background: var(--paper); position: relative; }
.promo-h2 { font-size: clamp(44px, 5.5vw, 72px); margin: 0 0 20px; line-height: 1.02; letter-spacing: -1.5px; }
.promo-h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
.promo-lead { max-width: 680px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 64px; }
.promo-card {
  min-height: 580px; padding: 56px 48px;
  position: relative; display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s;
}
.promo-card:hover { transform: translateY(-6px); box-shadow: 0 36px 80px -36px rgba(15,20,25,0.38); }

/* === Карточка 1 — брендовая, тёмная === */
.promo-card--brand {
  background: linear-gradient(140deg, var(--ink) 0%, #1a2235 100%);
  color: var(--paper);
  align-items: stretch;
}
.promo-card--brand::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border: 1px solid rgba(29, 61, 240, 0.18);
  border-radius: 50%; pointer-events: none;
}
.promo-card--brand::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 280px; height: 280px; border: 1px solid rgba(255,255,255,0.04);
  border-radius: 50%; pointer-events: none;
}
.promo-card--brand .pc-logo {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 28px 0 16px;
  position: relative; z-index: 1;
}
.promo-card--brand .pc-logo img {
  width: 90px; height: 90px;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}
.promo-card--brand .pc-brand-name {
  font-family: var(--serif); font-size: 24px; font-weight: 400;
  line-height: 1; letter-spacing: 6px; text-align: center;
}
.promo-card--brand .pc-brand-name span {
  font-style: italic; color: var(--gold); display: block; margin-top: 6px; font-weight: 500;
  letter-spacing: 8px;
}
.promo-card--brand .pc-content { text-align: left; margin-top: auto; position: relative; z-index: 1; }
.promo-card--brand .pc-content::before {
  content: ''; display: block; width: 40px; height: 1px;
  background: var(--gold); margin-bottom: 22px;
}
.promo-card--brand h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.06; margin: 0 0 20px; letter-spacing: -0.8px;
  color: #ffffff;
}
.promo-card--brand h3 b { color: var(--gold); font-weight: 600; font-style: italic; }
.promo-card--brand p {
  font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.78);
  margin: 0 0 32px; max-width: 380px;
}

/* === Карточка 2 — бесплатный просмотр (фото) === */
.promo-card--preview {
  background-size: cover; background-position: center;
  color: var(--paper);
}
.promo-card--preview .pc-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,20,25,0.10) 0%, rgba(15,20,25,0.55) 50%, rgba(15,20,25,0.97) 100%),
    linear-gradient(90deg, rgba(15,20,25,0.55) 0%, rgba(15,20,25,0.10) 55%);
}
.promo-card--preview .pc-content {
  position: relative; z-index: 1; margin-top: auto; max-width: 500px;
}
.promo-card--preview .pc-content::before {
  content: ''; display: block; width: 44px; height: 2px;
  background: var(--gold); margin-bottom: 20px;
}
.promo-card--preview h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 54px);
  line-height: 1.02; margin: 0 0 22px; letter-spacing: -0.8px;
  color: #ffffff;
  text-shadow: 0 4px 28px rgba(0,0,0,0.65);
}
.promo-card--preview h3 b {
  color: #ffffff; font-weight: 400; font-style: italic;
}
.promo-card--preview p {
  font-size: 16px; line-height: 1.7; color: #ffffff;
  margin: 0 0 32px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  max-width: 460px;
}
.promo-card--preview .pc-hours {
  display: inline-block; padding: 7px 14px;
  background: var(--gold); color: #ffffff;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 18px; font-weight: 600;
  box-shadow: 0 8px 22px -10px rgba(29,61,240,0.55);
}

.pc-cta { padding: 16px 30px; font-size: 12px; letter-spacing: 1.8px; font-weight: 600; }

@media (max-width: 900px) {
  .promo { padding: 80px 0; }
  .promo-grid { grid-template-columns: 1fr; margin-top: 40px; gap: 20px; }
  .promo-card { min-height: 460px; padding: 40px 32px; }
  .promo-card--brand .pc-logo { padding-top: 0; }
}
@media (max-width: 520px) {
  .promo-card { min-height: 400px; padding: 32px 24px; }
}

/* Карточки зон в секции «Аренда и цены» */
.book-intro { max-width: 720px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 18px 0 0; }
.zone-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 56px 0 64px; }
.zone-cards--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1180px) { .zone-cards--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .zone-cards, .zone-cards--4 { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px) { .zone-cards, .zone-cards--4 { grid-template-columns: 1fr; } }
.zone-card--active { box-shadow: 0 0 0 2px var(--gold); border-color: var(--gold); }
.zone-card {
  background: var(--paper); display: flex; flex-direction: column;
  border: 1px solid var(--line-soft);
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1), box-shadow 0.32s, border-color 0.3s;
}
.zone-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -32px rgba(15,20,25,0.28); border-color: var(--line); }
.zc-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.zc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); display: block; }
.zone-card:hover .zc-photo img { transform: scale(1.05); }
.zc-badge {
  position: absolute; bottom: 14px; left: 14px;
  background: var(--paper); color: var(--ink);
  padding: 8px 14px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.4px; box-shadow: 0 6px 18px -8px rgba(15,20,25,0.3);
}
.zc-badge--price { background: var(--paper); color: var(--ink); }
.zc-badge--info  { background: var(--ink); color: var(--paper); letter-spacing: 1px; text-transform: uppercase; font-size: 10.5px; font-weight: 500; }
.zc-badge--taken { background: #b56666; color: #ffffff; letter-spacing: 1px; text-transform: uppercase; font-size: 10.5px; font-weight: 600; }
.zc-badge--free  { background: #5d8a72; color: #ffffff; letter-spacing: 1px; text-transform: uppercase; font-size: 10.5px; font-weight: 600; }
.zc-badge--cta   { background: var(--gold); color: #ffffff; letter-spacing: 1px; text-transform: uppercase; font-size: 10.5px; font-weight: 600; }
.zc-badge--partial { background: #c9913d; color: #ffffff; letter-spacing: 1px; text-transform: uppercase; font-size: 10.5px; font-weight: 600; }

/* Карточка-план отдельного кабинета (после клика «Подробнее») */
.cabinet-plan {
  background: var(--paper); border: 1px solid var(--line);
  padding: 32px 36px 36px; margin: 24px 0 40px;
  box-shadow: 0 24px 60px -36px rgba(15,20,25,0.18);
}
.cp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.cp-head h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 6px 0 10px; letter-spacing: -0.4px; line-height: 1.1; }
.cp-head p { color: var(--ink-soft); max-width: 720px; font-size: 14.5px; line-height: 1.55; margin: 0; }
.cp-close {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink-soft);
  transition: transform 0.25s, background 0.2s; flex-shrink: 0;
}
.cp-close:hover { transform: rotate(90deg); background: var(--bg-2); }

.cp-status {
  display: inline-block; padding: 5px 11px; font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase;
}
.cp-status--free { background: #5d8a72; color: #fff; }
.cp-status--taken { background: #b56666; color: #fff; }
.cp-status--partial { background: #c9913d; color: #fff; }

.cp-body { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }
.cp-svg-wrap { background: #fbfcfd; border: 1px solid var(--line-soft); padding: 24px; overflow: auto; }
.cp-svg { width: 100%; height: auto; max-width: 100%; display: block; }
.cp-side { display: flex; flex-direction: column; gap: 0; }
.cp-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.cp-meta span { color: var(--mute); letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0; }
.cp-meta b { font-weight: 500; text-align: right; min-width: 0; }
.cp-status-inline { padding: 3px 10px; font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.cp-status-inline--free { background: #5d8a72; color: #fff; }
.cp-status-inline--taken { background: #b56666; color: #fff; }
.cp-status-inline--partial { background: #c9913d; color: #fff; }
.cp-side-note { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 18px 0 0; }

/* Модалка «Написать нам» — выбор почтового сервиса */
.email-popup {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 92%; max-width: 460px; background: var(--paper);
  padding: 36px 32px 28px; z-index: 220;
  box-shadow: 0 40px 100px -36px rgba(15,20,25,0.55);
  animation: fadeIn 0.22s ease-out;
}
.email-popup h3 {
  font-family: var(--serif); font-weight: 400; font-size: 28px;
  margin: 0 0 10px; letter-spacing: -0.4px;
}
.email-popup p {
  font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 22px;
}
.email-popup .ep-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink-soft);
  transition: transform 0.25s, background 0.2s;
}
.email-popup .ep-close:hover { transform: rotate(90deg); background: var(--bg-2); }
.email-popup .ep-services { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.email-popup .ep-service {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: #fbfcfd; border: 1px solid var(--line-soft);
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.email-popup .ep-service:hover {
  background: var(--paper); border-color: var(--gold); color: var(--gold);
  transform: translateX(3px);
}
.email-popup .ep-service b { color: var(--gold); font-weight: 500; font-size: 18px; }
.email-popup .ep-copy-row {
  display: flex; gap: 10px; align-items: center;
  padding-top: 18px; border-top: 1px solid var(--line-soft);
}
.email-popup .ep-email {
  flex: 1; font-size: 13px; color: var(--ink-soft);
  letter-spacing: 0.3px; user-select: all;
}
.email-popup .ep-copy-row .btn { padding: 10px 18px; font-size: 11px; }

/* Контактный блок (карточка «Больше свободных мест») */
.contact-plan .contact-plan-body {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start;
  margin-top: 20px;
}
.cp-phone-block {
  display: flex; flex-direction: column; gap: 6px;
  padding: 32px 30px; background: var(--ink); color: var(--paper);
  text-decoration: none; transition: background 0.22s, transform 0.22s;
  position: relative; overflow: hidden;
}
.cp-phone-block::before {
  content: ''; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px;
  border: 1px solid rgba(29,61,240,0.18); border-radius: 50%; pointer-events: none;
}
.cp-phone-block:hover { background: var(--gold-deep); transform: translateY(-2px); }
.cp-phone-label {
  font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 4px; position: relative;
}
.cp-phone-block b {
  font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.5px; line-height: 1; color: #ffffff; position: relative;
}
.cp-phone-hint {
  font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 8px;
  letter-spacing: 0.4px; position: relative;
}
.cp-write-cta {
  grid-column: 1; justify-self: stretch; padding: 18px 26px;
  font-size: 13px; letter-spacing: 1.4px;
}
.cp-contact-meta {
  grid-column: 2; grid-row: 1 / span 2;
  background: #fbfcfd; border: 1px solid var(--line-soft); padding: 22px 26px;
}
.cp-contact-meta .cp-meta:last-child { border-bottom: none; }
@media (max-width: 820px) {
  .contact-plan .contact-plan-body { grid-template-columns: 1fr; gap: 18px; }
  .cp-write-cta, .cp-contact-meta { grid-column: 1; grid-row: auto; }
  .cp-phone-block { padding: 24px 22px; }
}

/* Список мест в боковой панели плана кабинета */
.cp-rooms-list { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 4px; }
.cp-room-row {
  display: grid; grid-template-columns: 36px 1fr auto 12px; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px;
  background: #fbfcfd; border: 1px solid var(--line-soft); border-radius: 0;
  font-family: inherit; font-size: 13px; text-align: left;
  cursor: pointer; transition: all 0.18s;
}
.cp-room-row:not(:disabled):hover { background: var(--paper); border-color: var(--gold); transform: translateX(2px); }
.cp-room-row:disabled { opacity: 0.55; cursor: not-allowed; }
.cp-rr-num { font-family: var(--serif); font-style: italic; font-size: 18px; font-weight: 500; color: var(--gold-deep); }
.cp-rr-name { color: var(--ink); }
.cp-rr-price { font-weight: 600; color: var(--ink); white-space: nowrap; }
.cp-rr-price span { font-size: 10px; font-weight: 400; color: var(--mute); margin-left: 3px; }
.cp-rr-dot.status { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cp-rr-dot.status.free { background: #5d8a72; }
.cp-rr-dot.status.partial { background: #c9913d; }
.cp-rr-dot.status.busy { background: #b56666; }
@media (max-width: 900px) {
  .cabinet-plan { padding: 22px 22px 26px; }
  .cp-head h3 { font-size: 24px; }
  .cp-body { grid-template-columns: 1fr; gap: 20px; }
  .cp-svg-wrap { padding: 14px; }
}
.zc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.zc-body h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0; letter-spacing: -0.4px; line-height: 1.2; }
.zc-body p { color: var(--ink-soft); line-height: 1.55; font-size: 14px; margin: 0; flex: 1; }
.zc-meta { font-size: 11px; color: var(--mute); letter-spacing: 1.4px; text-transform: uppercase; font-weight: 500; }
.zc-cta { align-self: flex-start; margin-top: 4px; padding: 14px 26px; font-size: 11px; letter-spacing: 1.4px; }
@media (max-width: 700px) {
  .zone-cards { gap: 20px; margin: 36px 0 48px; }
  .zc-body { padding: 20px 22px 24px; }
}

/* Секция мероприятий */
.events {
  padding: 120px 0; background: var(--bg-2); position: relative;
}
.events .container { position: relative; }
.events .chapter { margin-bottom: 56px; }
.events-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.events .ev-photo { position: relative; }
.events .ev-photo-tag {
  position: absolute; bottom: 20px; left: 20px; z-index: 3; /* поверх кадров слайд-шоу */
  background: var(--paper); color: var(--ink);
  padding: 10px 16px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
}
.events .eyebrow {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--gold-deep); margin-bottom: 16px;
}
.events h2 {
  font-family: var(--serif); font-weight: 400; line-height: 1.04;
  font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -1.2px;
  margin: 0 0 24px;
}
.events h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
.events .lead { font-size: 16px; line-height: 1.66; color: var(--ink-soft); margin: 0 0 28px; max-width: 540px; }
.ev-points { display: grid; gap: 16px; margin: 0 0 18px; max-width: 540px; }
.ev-point {
  padding: 16px 18px; background: var(--paper); border-left: 2px solid var(--gold);
  transition: transform 0.22s, box-shadow 0.22s;
}
.ev-point:hover { transform: translateX(2px); box-shadow: 0 10px 24px -16px rgba(15,20,25,0.18); }
.ev-point b { display: block; font-size: 14px; margin-bottom: 4px; }
.ev-point span { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 900px) {
  .events { padding: 80px 0; }
  .events-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================ */
/* СЕКЦИЯ КАРТЫ                                 */
/* ============================================ */
.contact-map { background: var(--paper); padding: 0; position: relative; }
.contact-map .cm-container { position: relative; width: 100%; height: 520px; overflow: hidden; }
.contact-map .cm-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }
.contact-map .cm-overlay {
  position: absolute; top: 40px; left: 56px; max-width: 380px; z-index: 2;
  background: rgba(255,255,255,0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 28px 30px; border: 1px solid var(--line);
  box-shadow: 0 22px 60px -28px rgba(15,20,25,0.22);
}
.contact-map .cm-overlay .kicker { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 12px; }
.contact-map .cm-overlay h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0 0 14px; color: var(--ink); letter-spacing: -0.5px; }
.contact-map .cm-overlay p { font-size: 13px; line-height: 1.55; color: var(--mute); margin: 0 0 20px; }
.contact-map .cm-overlay .btn { padding: 12px 20px; font-size: 11px; letter-spacing: 1.5px; }
@media (max-width: 820px) {
  .contact-map .cm-container { height: 460px; }
  .contact-map .cm-overlay { top: 24px; left: 24px; right: 24px; max-width: none; padding: 22px 22px; }
  .contact-map .cm-overlay h3 { font-size: 22px; }
}
@media (max-width: 560px) {
  .contact-map .cm-container { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .contact-map .cm-iframe { position: relative; height: 320px; }
  .contact-map .cm-overlay { position: static; max-width: 100%; border: none; padding: 24px; box-shadow: none; background: var(--paper); }
}

/* ============================================ */
/* ПРАВКИ 2026: порядок блоков, абонемент, MAX  */
/* ============================================ */

/* Порядок секций «Аренда и цены» → «Для мероприятий» → «О пространстве» */
.land-reorder { display: flex; flex-direction: column; }

/* Адрес в hero — 2 строки */
.hstat--loc span { white-space: normal; line-height: 1.3; }

/* Контакты у карты (вместо удалённого CTA-блока) */
.cm-contacts { display: flex; flex-direction: column; gap: 6px; margin: 18px 0 22px; }
.cm-contacts a, .cm-contacts span { font-size: 15px; color: var(--ink-soft); }
.cm-contacts a { color: var(--gold-deep); border-bottom: 1px solid var(--line); width: fit-content; }
.cm-contacts a:hover { color: var(--gold); }

/* MAX в шапке — круг с белой надписью */
.eh-header .header-social--max { font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.5px; }

/* Плавающая кнопка «Написать в MAX» — правый нижний угол */
.eh-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 32px -10px rgba(10, 79, 176, 0.6);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s;
}
.eh-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 20px 40px -10px rgba(10, 79, 176, 0.72); }
.eh-fab--max {
  background: linear-gradient(135deg, #1e9bff 0%, #2b6bff 55%, #6a4bff 100%);
  animation: ehFabPulse 2.6s ease-in-out infinite;
}
/* Прячем кнопку MAX, когда открыт дровер/попап/мобильное меню — чтобы не перекрывала кнопки */
body:has(.drawer-overlay) .eh-fab,
body:has(.room-detail) .eh-fab,
body:has(.email-popup) .eh-fab,
body:has(.eh-toast) .eh-fab,
body:has(.eh-header.menu-open) .eh-fab { display: none; }
@keyframes ehFabPulse {
  0%, 100% { box-shadow: 0 14px 32px -10px rgba(10,79,176,0.6), 0 0 0 0 rgba(43,107,255,0.45); }
  50% { box-shadow: 0 14px 32px -10px rgba(10,79,176,0.6), 0 0 0 12px rgba(43,107,255,0); }
}
@media (max-width: 560px) { .eh-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; } }

/* RoomDrawer — оплата абонементом */
.rd-bar-abonement { display: flex; align-items: center; gap: 9px; width: 100%; flex-basis: 100%; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; }
.rd-bar-abonement input { width: 16px; height: 16px; accent-color: var(--gold); flex-shrink: 0; }
.rd-bar-abonement em { color: var(--red); font-style: normal; }
.rd-bar-abonement.disabled { opacity: 0.7; }

/* Кабинет — карточка абонемента */
.abonement-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 0;
  border: 1px solid var(--line); background: var(--paper); margin-bottom: 8px;
}
.ab-balance {
  background: linear-gradient(140deg, var(--ink) 0%, #1a2235 100%); color: var(--paper);
  padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.ab-balance-lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.ab-balance b { font-family: var(--serif); font-size: 56px; font-weight: 500; line-height: 1; }
.ab-balance b em { font-style: normal; font-size: 20px; color: var(--gold); margin-left: 6px; }
.ab-buy { padding: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ab-offer { display: flex; align-items: baseline; gap: 12px; }
.ab-offer b { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.ab-offer span { font-size: 16px; color: var(--mute); }
.ab-note { font-size: 13px; color: var(--mute); line-height: 1.6; margin: 0; max-width: 520px; }
@media (max-width: 720px) { .abonement-card { grid-template-columns: 1fr; } }

/* Два абонемента рядом: часовой и дневной */
.ab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.ab-grid .abonement-card { grid-template-columns: 1fr; margin-bottom: 0; }
.ab-grid .ab-balance { padding: 26px 28px; }
.ab-grid .ab-balance b { font-size: 44px; }
.ab-offer--days label { display: inline-flex; align-items: baseline; gap: 8px; }
.ab-offer--days input { width: 74px; padding: 9px 10px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font-family: var(--sans); font-size: 17px; text-align: center; }
.ab-offer--days input:focus { outline: none; border-color: var(--ink); }
@media (max-width: 980px) { .ab-grid { grid-template-columns: 1fr; } }

/* Админ — выдать абонемент */
.ad-grant { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.ad-grant input { width: 90px; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; }
.ad-grant span { color: var(--mute); font-size: 13px; }
.ad-grant .btn { padding: 11px 18px; font-size: 11px; }

/* Админ-дашборд — карта забронированных мест */
.admin-floor-maps { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.admin-floor-map { border: 1px solid var(--line); background: var(--paper); padding: 14px; }
.admin-floor-map .afm-label { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.afm-legend { display: flex; gap: 20px; margin-top: 12px; font-size: 12px; color: var(--mute); }
.afm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.afm-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
@media (max-width: 800px) { .admin-floor-maps { grid-template-columns: 1fr; } }

/* Промо — одиночная карточка абонемента по центру */
.promo-grid--single { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
.promo-grid--single .promo-card--brand { min-height: 520px; }

/* Блок «Мы заботимся о наших резидентах» */
.care { position: relative; padding: 120px 0; background-size: cover; background-position: center; color: #fff; text-align: center; }
.care-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,18,0.82) 0%, rgba(8,12,18,0.9) 100%); }
.care .container { position: relative; z-index: 1; }
.care-title { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.6vw, 56px); letter-spacing: -1px; line-height: 1.08; margin: 0 0 18px; color: #fff; }
.care-lead { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.82); }
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.care-col { text-align: center; }
.care-ico { width: 88px; height: 88px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.care-col h4 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; margin: 0 0 14px; color: #fff; }
.care-col p { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.75); max-width: 340px; margin: 0 auto; }
@media (max-width: 800px) { .care { padding: 80px 0; } .care-grid { grid-template-columns: 1fr; gap: 44px; margin-top: 44px; } }


/* ============================================================ */
/* HERO — видео-фон (assets/video/hero.mp4|.mov)                */
/* ============================================================ */
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}
.hero-bg-video.is-active { opacity: 1; }

/* ============================================================ */
/* EVENTS — слайд-шоу из 4 фото (все кадры — горизонтальные)     */
/* Кроссфейд + медленный «наезд камеры». Под кадром — панель:    */
/* счётчик · линия-прогресс · стрелки.                           */
/* ============================================================ */
.ev-slider { user-select: none; }
.evs-stage {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  box-shadow: 0 34px 70px -52px rgba(15,20,25,0.5);
  touch-action: pan-y; /* вертикальный скролл — браузеру, горизонтальный свайп — слайдеру */
}
.ev-slide {
  position: absolute; inset: 0; opacity: 0; z-index: 1;
  /* уходящий кадр держится чуть дольше (delay), чтобы фон не мигал сквозь кроссфейд */
  transition: opacity 1.05s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}
.ev-slide.is-active { opacity: 1; z-index: 2; transition-delay: 0s; }
.ev-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-slide.is-active img { animation: evsKenburns 7.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.ev-slider.is-paused .ev-slide img, .ev-slider.is-paused .evs-fill { animation-play-state: paused; }
@keyframes evsKenburns { from { transform: scale(1); } to { transform: scale(1.065); } }

.evs-bar { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.evs-count {
  font-size: 11.5px; letter-spacing: 2.5px; color: var(--mute);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.evs-count b { color: var(--ink); font-weight: 500; }
.evs-line { flex: 1; height: 1px; background: var(--line); position: relative; }
.evs-fill {
  position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: left center;
  animation: evsProgress linear forwards;
}
@keyframes evsProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.evs-nav { display: flex; gap: 8px; }
.evs-arrow {
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 0;
  color: var(--ink); font-size: 15px; line-height: 1;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.evs-arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 640px) {
  .evs-bar { gap: 12px; margin-top: 12px; }
  .evs-arrow { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-slide { transition-duration: 0.01s; }
  .ev-slide.is-active img { animation: none; }
}

/* ============================================================ */
/* СТРАНИЦА «ОТЗЫВЫ»                                             */
/* ============================================================ */
.reviews-page { padding: 130px 0 110px; background: var(--bg); min-height: 70vh; }
.reviews-title { font-size: clamp(42px, 5.4vw, 76px); margin: 0 0 18px; }
.reviews-lead { font-size: 16px; color: var(--ink-soft); max-width: 560px; margin: 0 0 64px; }
.reviews-list { display: flex; flex-direction: column; gap: 56px; }
.rv-card {
  display: grid; grid-template-columns: 360px 1fr; gap: 0;
  background: var(--paper); border: 1px solid var(--line-soft);
  box-shadow: 0 30px 70px -50px rgba(15,20,25,0.4);
}
.rv-card--flip { grid-template-columns: 1fr 360px; }
.rv-card--flip .rv-photo { order: 2; }
.rv-photo { position: relative; min-height: 340px; }
.rv-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.rv-photo--empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--bg-2) 0%, #dfe3ea 100%);
}
.rv-photo--empty span {
  font-family: var(--serif); font-size: 96px; font-weight: 300;
  color: var(--gold); opacity: 0.55; line-height: 1;
}
.rv-body { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.rv-stars { color: #d9a23c; font-size: 15px; letter-spacing: 4px; margin-bottom: 18px; }
.rv-stars i { font-style: normal; opacity: 0.25; }
.rv-stars i.on { opacity: 1; }
.rv-text {
  font-family: var(--serif); font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.72; color: var(--ink-soft); margin: 0 0 26px;
}
.rv-who { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.rv-who b { font-size: 17px; letter-spacing: 0.2px; }
.rv-who span { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-deep); }
.rv-who em { font-style: normal; font-size: 12px; color: var(--mute); margin-left: auto; }
.reviews-cta { text-align: center; margin-top: 90px; }
.reviews-cta h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.6px; margin: 0 0 10px; }
.reviews-cta p { color: var(--ink-soft); margin: 0 0 26px; }
@media (max-width: 860px) {
  .reviews-page { padding: 96px 0 72px; }
  .reviews-lead { margin-bottom: 44px; }
  .reviews-list { gap: 32px; }
  .rv-card, .rv-card--flip { grid-template-columns: 1fr; }
  .rv-card--flip .rv-photo { order: 0; }
  /* ширина фиксируется колонкой, высота — из aspect-ratio (иначе min-height раздувает ширину) */
  .rv-photo { width: 100%; min-height: 0; aspect-ratio: 4/5; }
  .rv-body { padding: 26px 22px 30px; }
  .rv-stars { margin-bottom: 14px; }
  .rv-text { margin-bottom: 20px; }
  .rv-who em { margin-left: 0; }
  .reviews-cta { margin-top: 64px; }
}

/* ============================================================ */
/* МОДАЛКА ОПЛАТЫ ПО QR                                          */
/* ============================================================ */
.payment-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 94%; max-width: 720px; max-height: 92vh; overflow-y: auto;
  background: var(--paper); padding: 34px 34px 26px; z-index: 240;
  box-shadow: 0 40px 100px -36px rgba(15,20,25,0.6);
  animation: fadeIn 0.22s ease-out;
}
.payment-modal .ep-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink-soft);
  transition: transform 0.25s, background 0.2s;
  z-index: 2;
}
.payment-modal .ep-close:hover { transform: rotate(90deg); background: var(--bg-2); }
.pm-head { margin-bottom: 22px; padding-right: 40px; }
.pm-amount { font-family: var(--serif); font-size: 46px; font-weight: 500; letter-spacing: -1px; line-height: 1.1; margin-top: 8px; }
.pm-amount span { font-size: 28px; color: var(--gold-deep); }
.pm-purpose { font-size: 13px; color: var(--mute); margin-top: 4px; }
.pm-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.pm-qr { text-align: center; }
.pm-qr-img { background: #ffffff; border: 1px solid var(--line); padding: 12px; }
.pm-qr-img svg { display: block; width: 100%; height: auto; }
.pm-qr-hint { display: block; font-size: 12px; line-height: 1.5; color: var(--mute); margin-top: 10px; }
.pm-qr--none { padding: 20px; background: var(--bg-2); }
.pm-req { display: flex; flex-direction: column; }
.pm-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.pm-row:last-child { border-bottom: none; }
.pm-row-label { flex: 0 0 108px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); }
.pm-row b { flex: 1; font-weight: 500; line-height: 1.45; word-break: break-word; }
.pm-mono { font-variant-numeric: tabular-nums; letter-spacing: 0.6px; }
.pm-copy {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--paper);
  width: 28px; height: 28px; font-size: 13px; color: var(--ink-soft);
  cursor: pointer; transition: all 0.15s; align-self: center;
}
.pm-copy:hover { border-color: var(--gold); color: var(--gold); }
.pm-note {
  margin-top: 22px; padding: 14px 16px; background: rgba(217,162,60,0.1);
  border-left: 2px solid #d9a23c; font-size: 13px; line-height: 1.6; color: var(--ink-soft);
}
.pm-note b { color: var(--ink); }
.pm-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.pm-actions .btn { font-size: 11px; padding: 14px 22px; }
@media (max-width: 640px) {
  .payment-modal { padding: 26px 18px 20px; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-qr { max-width: 240px; margin: 0 auto; }
  .pm-row-label { flex-basis: 92px; }
}

/* ============================================================ */
/* ЛИЧНЫЙ КАБИНЕТ — ожидание подтверждения оплаты                */
/* ============================================================ */
.booking-card .status.pending-pay { background: rgba(217,162,60,0.15); color: #b07f1e; }
.ab-pending { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.ab-pending b { font-size: 16px; color: #b07f1e; }
.ab-pending span { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

/* ============================================================ */
/* АДМИНКА — раздел «Оплата»                                     */
/* ============================================================ */
.dash-side nav a .nav-count {
  margin-left: auto; min-width: 21px; height: 21px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #b04848; color: #fff; font-size: 11px; font-weight: 600;
  border-radius: 20px; line-height: 1;
}
.pay-cards { display: flex; flex-direction: column; gap: 14px; }
.pay-card {
  display: flex; justify-content: space-between; gap: 20px;
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid #d9a23c; padding: 20px 22px;
  flex-wrap: wrap;
}
.pay-card-main { flex: 1 1 320px; min-width: 0; }
.pay-kind { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.pay-client { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.pay-client b { font-size: 17px; }
.pay-client a { font-size: 13px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.pay-details { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; }
.pay-purpose { font-size: 12.5px; color: var(--mute); }
.pay-created { font-size: 12px; color: var(--mute); margin-top: 6px; }
.pay-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; justify-content: center; }
.pay-amount { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -0.5px; }
.pay-amount span { font-size: 20px; color: var(--gold-deep); }
.pay-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-actions .btn { font-size: 11px; padding: 11px 16px; }
.pay-reject { color: var(--red); border-color: rgba(176,72,72,0.5); }
.pay-reject:hover { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 700px) {
  .pay-card-side { align-items: flex-start; width: 100%; }
}

/* ============================================================ */
/* АДМИНКА — «Картинки сайта»                                    */
/* ============================================================ */
.img-group { margin-bottom: 38px; }
.img-group-title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; margin: 0 0 6px; }
.img-group-hint { font-size: 13px; color: var(--mute); margin: 0 0 14px; }
.img-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 12px; }
.img-slot { background: var(--paper); border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.img-slot--custom { border-color: var(--gold); }
.img-slot-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.img-slot-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-slot-none { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 12px; color: var(--mute); }
.img-slot-badge {
  position: absolute; top: 8px; left: 8px; background: var(--gold); color: #fff;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px;
}
.img-slot-label { font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); min-height: 34px; }
.img-slot-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.img-slot-btn { font-size: 10.5px !important; padding: 7px 10px !important; letter-spacing: 1.2px; }
.img-slot-btn.busy { opacity: 0.6; pointer-events: none; }
.img-slot-reset { color: var(--red); }

/* ============================================================ */
/* АДМИНКА — выдача/списание абонемента в карточке клиента       */
/* ============================================================ */
.ad-grant--col { flex-direction: column; align-items: stretch; gap: 12px; }
.ad-grant--col .ad-grant-row { display: flex; align-items: center; gap: 10px; }
.ad-grant--col .ad-grant-row label { flex: 1; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.ad-grant--col .ad-grant-row input { width: 130px; }
.ad-grant--col .btn { align-self: flex-start; }
.ad-grant select { padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; }
.ad-grant--col .ad-grant-row select { width: 130px; }
.ad-grant-hint { font-size: 12px; line-height: 1.55; color: var(--mute); margin: 0; }
.ad-revoke { color: var(--red); border-color: rgba(176,72,72,0.5); padding: 11px 18px; font-size: 11px; }
.ad-revoke:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }
.ad-revoke:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============================================================ */
/* Мобильная шлифовка (новые блоки)                              */
/* ============================================================ */
@media (max-width: 640px) {
  /* плашка на коллаже мероприятий — компактнее, не перекрывает фото */
  .events .ev-photo-tag { bottom: 10px; left: 10px; padding: 7px 11px; font-size: 10px; letter-spacing: 1.6px; }
  /* кнопки в модалке оплаты — в столбик на всю ширину, чтобы не сжимались */
  .pm-actions { flex-direction: column; align-items: stretch; }
  .pm-actions .btn { width: 100%; justify-content: center; }
  .pm-amount { font-size: 38px; }
}
@media (max-width: 560px) {
  /* админка «Картинки»: две компактные колонки вместо одной огромной */
  .img-slot-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .img-slot { padding: 8px; }
  .img-slot-label { min-height: 0; font-size: 11.5px; }
  /* карточки оплат: сумма и кнопки на всю ширину */
  .pay-card { padding: 16px; gap: 12px; }
  .pay-actions { width: 100%; }
  .pay-actions .btn { flex: 1; justify-content: center; }
}
