/* «Лесная гавань» — лесной зелёный + крем */
:root {
  --bg: #fbf7ee;
  --surface: #f1ead9;
  --surface-2: #e3d9c2;
  --text: #1d2a21;
  --muted: #687163;
  --line: rgba(29, 42, 33, .12);
  --accent: #2f6a45;
  --accent-hover: #245536;
  --accent-ink: #fff;
  --accent-2: #e09b36;
  --dark: #17241b;
  --radius: 18px;
  --font-head: "Lora", Georgia, serif;
  --font-body: "Mulish", system-ui, sans-serif;
}
.h1 { font-size: clamp(36px, 5.6vw, 70px); }
.h1 i { color: var(--accent-2); }
.h3 { font-family: var(--font-body); font-weight: 800; }

/* hero */
.hero { position: relative; min-height: 680px; padding: 96px 0 56px; display: flex; align-items: flex-end; color: #fff; }
.hero__img { position: absolute; inset: 0; border-radius: 0; }
.hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,30,20,.15), rgba(15,30,20,.35) 40%, rgba(15,30,20,.85)); }
.hero__img:hover img { transform: none; }
.hero__inner { position: relative; z-index: 1; }
.hero__tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.hero .h1 { max-width: 820px; }
.hero .lead { color: rgba(255,255,255,.85); max-width: 600px; }
.quick { display: grid; grid-template-columns: 1fr 1fr .7fr auto; gap: 10px; margin-top: 36px; padding: 10px; background: #fff; border-radius: 20px; color: var(--text); max-width: 860px; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.quick label { display: grid; gap: 2px; padding: 8px 14px; border-radius: 12px; transition: background .2s; }
.quick label:hover { background: var(--surface); }
.quick span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.quick input, .quick select { border: 0; background: transparent; font-weight: 700; font-size: 16px; padding: 2px 0; min-width: 0; width: 100%; }
.quick input:focus, .quick select:focus { outline: none; }

/* perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.perk__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); font-size: 30px; margin-bottom: 16px; transition: transform .35s var(--ease); }
.perk:hover .perk__ico { transform: rotate(-10deg) scale(1.08); }
.perk p { color: var(--muted); margin-top: 6px; }

/* houses */
.houses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.house { cursor: pointer; position: relative; }
.house input { position: absolute; opacity: 0; }
.house__in { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.house:hover .house__in { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.house input:checked + .house__in { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,106,69,.15), var(--shadow); }
.house input:focus-visible + .house__in { outline: 3px solid var(--accent); outline-offset: 2px; }
.house .media { display: block; aspect-ratio: 4 / 3; border-radius: 0; }
.house__in::after { content: "✓"; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; transform: scale(0); transition: transform .3s var(--ease); }
.house input:checked + .house__in::after { transform: scale(1); }
.house__body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.house__name { font-family: var(--font-head); font-size: 22px; }
.house__meta { color: var(--muted); font-size: 14px; }
.house__price { font-size: 14px; color: var(--muted); }
.house__price b { color: var(--text); }
.house.is-small .house__in { opacity: .5; }
.house.is-small .house__meta::after { content: " · мало мест"; color: #b5432f; font-weight: 700; }

/* booking */
.booking { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 32px; scroll-margin-top: calc(var(--header-h) + 16px); }
.booking__form { background: #fff; border-radius: var(--radius); padding: 32px; display: grid; gap: 24px; }
.booking__title { font-family: var(--font-head); font-size: 26px; }
.booking__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking__dates input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); font-weight: 700; }
.booking__dates input:focus { outline: none; border-color: var(--accent); }
.booking__guests { display: grid; gap: 4px; }
.guest-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.guest-row small { display: block; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 20px; font-weight: 700; color: var(--accent); transition: all .2s; }
.stepper button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.stepper output { min-width: 32px; text-align: center; font-weight: 800; font-size: 18px; }
.booking__sub { display: block; font-weight: 800; margin-bottom: 10px; }
.booking__sum { background: var(--dark); color: #f3efe4; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.booking__house { font-family: var(--font-head); font-size: 28px; color: #fff; }
.booking__dates-out { color: rgba(243,239,228,.7); margin-top: 4px; }
.booking__lines { display: grid; gap: 8px; margin: 20px 0; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.booking__lines li { display: flex; justify-content: space-between; gap: 10px; }
.booking__lines li span:last-child { white-space: nowrap; font-weight: 700; }
.booking__lines .disc { color: #9ee0a8; }
.booking__warn { background: rgba(224,155,54,.18); border: 1px solid rgba(224,155,54,.5); color: #ffd8a0; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.booking__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.booking__total b { font-family: var(--font-head); font-size: 38px; color: var(--accent-2); }
.booking__note { font-size: 13px; color: rgba(243,239,228,.6); text-align: center; margin-top: 12px; }
.booking__sum .btn { background: var(--accent-2); color: var(--dark); }
.booking__sum .btn:hover { background: #f0ad45; box-shadow: 0 12px 28px -8px rgba(224,155,54,.6); }

/* fun */
.fun__ico { font-size: 34px; display: block; margin-bottom: 14px; }
.fun__price { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--accent); }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gal__i { position: relative; display: block; border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.gal__i .media { display: block; height: 100%; border-radius: 0; }
.gal__i--w { grid-column: span 2; }
.gal__i--t { grid-row: span 2; }
.gal__i::after { content: ""; position: absolute; inset: 0; background: rgba(23,36,27,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m20 20-4.5-4.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center/44px no-repeat; opacity: 0; transition: opacity .3s; }
.gal__i:hover::after { opacity: 1; }

@media (max-width: 1080px) {
  .houses { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .quick { grid-template-columns: 1fr 1fr; }
  .quick .btn { grid-column: 1 / -1; }
  .booking { grid-template-columns: 1fr; }
  .booking__sum { position: static; }
  .gal { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding: 72px 0 32px; }
  .quick { grid-template-columns: 1fr 1fr; padding: 8px; }
  .quick label { padding: 8px; }
  .quick label:nth-child(3) { grid-column: 1 / -1; }
  .perks { grid-template-columns: 1fr; gap: 24px; }
  .houses { grid-template-columns: 1fr 1fr; gap: 10px; }
  .house__body { padding: 12px; }
  .house__name { font-size: 18px; }
  .house__meta, .house__price { font-size: 12.5px; }
  .booking__form, .booking__sum { padding: 22px; }
  .booking__dates { grid-template-columns: 1fr; }
  .gal { grid-auto-rows: 160px; gap: 8px; }
  .gal__i--t { grid-row: span 1; }
}
