/* ===== Загородный хостел — макет-сторителлинг ===== */
:root {
  --bg: #faf6f0;
  --bg-alt: #f0e8dc;
  --text: #3a322a;
  --muted: #7a6e5f;
  --accent: #8a6d3b;
  --accent-dark: #6b5328;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(80, 60, 30, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; }
.container { width: min(1100px, 92%); margin-inline: auto; }
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.2; }
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.btn { display: inline-block; padding: 0.9rem 1.9rem; border: none; border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform 0.15s ease, background 0.2s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 2.4rem; text-align: center; margin-bottom: 2.5rem; color: var(--accent-dark); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 240, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--accent-dark); font-family: Georgia, serif; }
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { color: var(--text); font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 0.5rem 1.2rem; border-radius: 50px; }
.nav-cta:hover { background: var(--accent-dark); }

/* Hero */
.hero { position: relative; height: 92vh; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,22,10,0.75), rgba(30,22,10,0.2)); }
.hero-content { position: relative; color: #fff; max-width: 660px; }
.hero-content h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1.2rem; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.95; }
.scroll-hint { display: inline-block; margin-left: 1.5rem; color: #fff !important; opacity: 0.85; font-weight: 500; }
.scroll-hint:hover { opacity: 1; }

/* Сторителлинг — чередующиеся секции */
.story { padding: 2rem 0; }
.story-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; min-height: 80vh; }
.story-row.reverse .story-img { order: 2; }
.story-img { height: 100%; }
.story-img img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.story-text { padding: 4rem clamp(2rem, 6vw, 6rem); }
.story-num { display: block; font-family: Georgia, serif; font-size: 3.5rem; color: var(--bg-alt); font-weight: 700; line-height: 1; margin-bottom: 0.5rem; -webkit-text-stroke: 1px #d8cdbb; }
.story-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--accent-dark); margin-bottom: 1.2rem; }
.story-text p { color: var(--muted); margin-bottom: 1rem; font-size: 1.1rem; }

/* Места — список с ценой справа */
.beds-list { display: flex; flex-direction: column; gap: 1.5rem; max-width: 920px; margin-inline: auto; }
.bed-item { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 1.8rem; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.bed-item:hover { transform: translateX(6px); }
.bed-item img { width: 200px; height: 150px; object-fit: cover; }
.bed-info h3 { color: var(--accent-dark); margin-bottom: 0.4rem; }
.bed-info p { color: var(--muted); }
.bed-price { text-align: center; padding-right: 2rem; display: flex; flex-direction: column; }
.bed-price span { color: var(--muted); font-size: 0.85rem; }
.bed-price strong { font-family: Georgia, serif; font-size: 1.8rem; color: var(--accent-dark); }

/* Галерея — горизонтальная лента со скроллом */
.gallery-section { padding: 5rem 0; overflow: hidden; }
.gallery-strip { display: flex; gap: 1rem; overflow-x: auto; padding: 0 max(4vw, 1rem) 1.5rem; scroll-snap-type: x mandatory; }
.gallery-strip img { flex: 0 0 auto; width: 300px; height: 380px; object-fit: cover; border-radius: var(--radius); scroll-snap-align: center; transition: transform 0.2s ease; cursor: pointer; }
.gallery-strip img:hover { transform: scale(1.02); }
.gallery-strip::-webkit-scrollbar { height: 8px; }
.gallery-strip::-webkit-scrollbar-thumb { background: #d8cdbb; border-radius: 4px; }

/* Форма */
.booking-wrap { max-width: 760px; margin-inline: auto; }
.booking-sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; background: var(--card); padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }
.req { color: #d93025; }
.field input, .field select, .field textarea { padding: 0.7rem 0.9rem; border: 1.5px solid #d8cdbb; border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fffdf9; 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: 8px; font-weight: 600; }

/* Подвал */
.site-footer { background: #2e2620; color: #d8cdbb; padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: 0.75rem; }
.site-footer a { color: #cbb892; }
.site-footer a:hover { color: #fff; }
.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: 820px) {
  .story-row { grid-template-columns: 1fr; min-height: auto; }
  .story-row.reverse .story-img { order: 0; }
  .story-img img { min-height: 300px; max-height: 50vh; }
  .story-text { padding: 2.5rem 1.5rem; }
  .bed-item { grid-template-columns: 1fr; }
  .bed-item img { width: 100%; height: 180px; }
  .bed-info { padding: 0 1.2rem; }
  .bed-price { flex-direction: row; gap: 0.5rem; align-items: baseline; padding: 0 1.2rem 1.2rem; }
}
@media (max-width: 720px) {
  .nav { gap: 0.8rem; font-size: 0.9rem; }
  .nav a:not(.nav-cta) { display: none; }
  .scroll-hint { display: none; }
  .booking-form { grid-template-columns: 1fr; padding: 1.5rem; }
  .section { padding: 3.5rem 0; }
}
