/* ===== Городской хостел — сплит-hero + липкий блок брони ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --text: #1a1d23;
  --muted: #5f6672;
  --accent: #ff5a3c;
  --accent-dark: #e63e21;
  --dark: #14161b;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(20, 22, 27, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
.container { width: min(1180px, 92%); margin-inline: auto; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.btn { display: inline-block; padding: 0.85rem 1.8rem; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: transform 0.15s ease, background 0.2s ease; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid #d9dde3; }
.btn-outline:hover { border-color: var(--dark); }
.btn-block { display: block; width: 100%; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid #eceef1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.logo { font-size: 1.4rem; font-weight: 900; color: var(--dark); letter-spacing: -0.03em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 1.8rem; align-items: center; }
.nav a { color: var(--text); font-weight: 600; }
.nav a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 0.55rem 1.4rem; border-radius: 10px; }
.nav-cta:hover { background: var(--accent-dark); }

/* Сплит-hero 50/50 */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 600px; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 4rem clamp(2rem, 5vw, 5rem); width: min(590px, 100%); margin-left: auto; }
.hero-kicker { color: var(--accent); font-weight: 700; font-size: 0.9rem; margin-bottom: 1.2rem; }
.hero-text h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.2rem; }
.hero-desc { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.8rem; color: var(--accent); }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 600px; }

/* Layout: контент + сайдбар */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; padding-block: 4rem; }
.block { margin-bottom: 4rem; scroll-margin-top: 90px; }
.block:last-child { margin-bottom: 0; }
.block-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1.8rem; }

/* Сервис */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.perk { display: flex; gap: 1rem; align-items: flex-start; }
.perk span { font-size: 1.8rem; flex-shrink: 0; }
.perk h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.perk p { color: var(--muted); font-size: 0.92rem; }

/* Лента номеров */
.beds-scroll { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.bed-card { flex: 0 0 280px; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #eef0f3; scroll-snap-align: start; }
.bed-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.bed-card-body { padding: 1.3rem; position: relative; }
.tag { position: absolute; top: -1.1rem; right: 1.3rem; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 6px; text-transform: uppercase; }
.bed-card-body h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.bed-card-body p { color: var(--muted); font-size: 0.9rem; }
.price { font-weight: 800; color: var(--dark) !important; font-size: 1.1rem; margin-top: 0.6rem; }
.scroll-tip { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 1rem; }
.beds-scroll::-webkit-scrollbar { height: 8px; }
.beds-scroll::-webkit-scrollbar-thumb { background: #d9dde3; border-radius: 4px; }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery img { aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); transition: transform 0.2s ease; cursor: pointer; }
.gallery img:hover { transform: scale(1.02); }

/* Липкий сайдбар */
.booking-aside { position: sticky; top: 90px; }
.booking-widget { background: var(--dark); color: #fff; padding: 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.booking-widget h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.widget-price { color: #aeb4bf; margin-bottom: 1.2rem; }
.widget-price strong { color: var(--accent); font-size: 1.6rem; }
.widget-list { list-style: none; margin-bottom: 1.5rem; }
.widget-list li { padding: 0.3rem 0; color: #cfd4dc; font-size: 0.92rem; }
.widget-phone { text-align: center; margin-top: 1rem; font-size: 0.88rem; color: #aeb4bf; }
.widget-phone a { color: #fff; }

/* Форма */
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; background: var(--bg-alt); padding: 2rem; border-radius: var(--radius); }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.req { color: var(--accent); }
.field input, .field select, .field textarea { padding: 0.75rem 0.9rem; border: 1.5px solid #d9dde3; border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; transition: border-color 0.2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.error-msg { display: none; color: #d93025; font-size: 0.85rem; margin-top: 0.3rem; }
.field input:user-invalid { border-color: #d93025; background: #fce8e6; }
.field input:user-invalid ~ .error-msg { display: block; }
.form-success { grid-column: 1 / -1; text-align: center; background: #e6f4ea; color: #137333; padding: 1rem; border-radius: 10px; font-weight: 600; }

/* Подвал */
.site-footer { background: var(--dark); color: #aeb4bf; padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.75rem; }
.site-footer h3 span { color: var(--accent); }
.site-footer h4 { color: #fff; margin-bottom: 0.75rem; }
.site-footer a { color: #cfd4dc; }
.site-footer a:hover { color: var(--accent); }
.copyright { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; opacity: 0.7; }

/* Адаптив */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .booking-aside { position: static; order: -1; }
  .booking-widget { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
  .booking-widget h3 { width: 100%; }
  .widget-list { display: none; }
  .booking-widget .btn-block { flex: 1; min-width: 200px; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { width: 100%; margin: 0; }
  .hero-media { order: -1; }
  .hero-media img { min-height: 280px; max-height: 40vh; }
}
@media (max-width: 720px) {
  .nav { gap: 0.8rem; font-size: 0.9rem; }
  .nav a:not(.nav-cta) { display: none; }
  .booking-form { grid-template-columns: 1fr; padding: 1.5rem; }
  .gallery { grid-template-columns: 1fr; }
}
