/* «Родичи» — тихая северная усадьба. Лён, мох, озеро, закат. */
:root {
  --bg: #F5F0E6;        /* лён */
  --paper: #FBF8F2;
  --ink: #26261F;
  --muted: #6B675C;
  --moss: #4C5A37;
  --lake: #34566A;
  --sunset: #C2702F;
  --line: #DED6C6;
  --accent: var(--moss);
  --radius: 14px;
  --serif: "Lora", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1160px; margin-left: auto; margin-right: auto; padding: 0 16px; }
.small { font-size: .9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--muted); margin: 0 0 .8em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.2rem; max-width: 36em; }
section { margin: 72px auto; }
.section-title { margin-bottom: 28px; }

/* buttons */
.btn { display: inline-block; background: var(--sunset); color: #fff; text-decoration: none; font-weight: 700;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--sunset); transition: filter .2s; }
.btn:hover { filter: brightness(1.08); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-light { background: transparent; border-color: #fff; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 10px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.logo span { display: block; font: 500 .65rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.topbar nav { display: flex; gap: 20px; margin-left: auto; }
.topbar nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.topbar nav a[aria-current] { color: var(--sunset); }
.burger { display: none; }

/* hero */
.hero { position: relative; margin: 0; min-height: min(88vh, 860px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--focus-y, 60%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(20,22,15,.72)); }
.hero h1, .hero .lead { text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero-text { position: relative; z-index: 1; padding: 0 16px 9vh; max-width: 1160px; margin: 0 auto; width: 100%; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.intro { max-width: 760px; font-size: 1.15rem; }
.prose p { margin: 0 0 1em; }
.prose h2 { margin-top: 1.6em; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none;
  border-top: 6px solid var(--accent); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.card-img { aspect-ratio: 4/5; width: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card-body p { margin: 0; color: var(--muted); }
.meta { margin-top: 8px !important; font-weight: 700; color: var(--accent) !important; }
.cards-sm .card-img { aspect-ratio: 4/3; }

/* band */
.band { background: var(--moss); color: #F2EFE4; padding: 56px 0; margin: 72px 0; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 28px; }
.band-note { margin: 28px 0 0; font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: #E8E3D6; }
.amenities li::before, .ticks li::before { content: "—"; margin-right: .6em; color: var(--sunset); }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; }
.feature { border-top: 1px solid var(--line); padding-top: 16px; }
.feature p { margin: 0; color: var(--muted); }

/* features strip: photo cards (home), compact text cards (house pages) */
.strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.strip-head a { font-weight: 700; text-decoration: none; }
.fcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.fcard { color: var(--ink); text-decoration: none; background: var(--paper); border-radius: var(--radius); overflow: hidden; transition: transform .25s; }
.fcard:hover { transform: translateY(-3px); }
.fcard > div { padding: 14px 18px 18px; }
.fcard p { margin: 0; color: var(--muted); font-size: .95rem; }
.fcard-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.fcards-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.fcards-compact .fcard { border-left: 4px solid var(--accent); }
.fcards-compact h3 { font-size: 1.05rem; margin-bottom: .3em; }
.inline-photo { margin: 1.4em 0; }
.inline-photo { text-align: center; }
.inline-photo img { width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: var(--radius); }
.inline-photo figcaption { color: var(--muted); font-size: .85rem; padding-top: 6px; }
.prose h2[id] { scroll-margin-top: 80px; }

/* seasons */
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.season { margin: 0; position: relative; }
.season img, .season .ph { aspect-ratio: 3/4; width: 100%; object-fit: cover; border-radius: var(--radius); }
.season figcaption { position: absolute; left: 14px; bottom: 12px; color: #fff; font: 600 1.3rem var(--serif); text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* distances */
.distances { list-style: none; padding: 0; margin: 0 0 16px; }
.distances li { display: grid; grid-template-columns: 220px 90px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.km { color: var(--sunset); font-weight: 700; }

/* house page */
.house-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; max-width: 1160px; margin: 32px auto; padding: 0 16px; }
.house-cover { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); border-bottom: 8px solid var(--accent); }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.house-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.house-body aside h2 { font-size: 1.3rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { padding: 4px 0; }

/* gallery: masonry-like columns, portrait photos fit naturally */
.gallery { columns: 3 280px; column-gap: 12px; }
.gallery figure { margin: 0 0 12px; break-inside: avoid; }
.gallery img, .gallery video { width: 100%; border-radius: 10px; }
.gallery figcaption { font-size: .85rem; color: var(--muted); padding: 6px 2px; }

/* placeholder until photos arrive */
.ph { display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 12px, var(--bg) 12px, var(--bg) 24px);
  color: var(--muted); font-size: .85rem; min-height: 200px; }
.hero .ph { position: absolute; inset: 0; background: linear-gradient(160deg, var(--lake), var(--moss)); }
.hero .ph span { display: none; }

.page-head { margin-bottom: 24px; }
.page-cover img { width: 100%; max-height: 70vh; object-fit: cover; border-radius: var(--radius); }
.map-links { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 8px; }
.map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); }

/* booking */
.book { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 0; margin: 0; text-align: center; }
.book p { max-width: 34em; margin: 0 auto 24px; color: var(--muted); }
.book-note { margin-top: 18px !important; font-size: .95rem; }
.checkin { max-width: 34em; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--line); }
.checkin p { margin: 0 0 8px; }
.checkin b { color: var(--ink); }
.book-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.footer { background: var(--ink); color: #CFCabd; padding: 40px 0 24px; }
.footer a { color: #E8E3D6; text-decoration: none; display: block; padding: 2px 0; }
.footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }

.fab { display: none; }

@media (max-width: 860px) {
  .topbar { gap: 12px; }
  .topbar nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); }
  .topbar nav a { padding: 12px 16px; border-top: 1px solid var(--line); }
  #menu:checked ~ nav { display: flex; }
  .burger { display: grid; gap: 5px; margin-left: auto; cursor: pointer; padding: 8px; }
  .burger i { width: 22px; height: 2px; background: var(--ink); }
  .topbar .btn-sm { display: none; }
  .fab { display: block; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 20; text-align: center;
    background: var(--sunset); color: #fff; font-weight: 700; padding: 14px; border-radius: 999px; text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.2); }
  .footer { padding-bottom: 80px; }
  .house-hero, .house-body, .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .season-grid { grid-template-columns: repeat(2, 1fr); }
  .distances li { grid-template-columns: 1fr auto; }
  .distances li span:last-child { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
  section { margin: 48px auto; }
}

/* lightbox carousel */
.lb-zoomable { cursor: zoom-in; }
.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(15,16,12,.94); display: grid;
  grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; padding: 48px 0; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; }
.lb-fig figcaption { color: #E8E3D6; font-size: .95rem; margin-top: 12px; text-align: center; min-height: 1.4em; }
.lb button { background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; opacity: .8; padding: 12px; }
.lb button:hover, .lb button:focus-visible { opacity: 1; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
.lb-close { position: absolute; top: 8px; right: 12px; font-size: 40px !important; }
.lb-count { position: absolute; top: 18px; left: 20px; color: #CFCabd; font-size: .9rem; }
@media (max-width: 600px) {
  .lb { grid-template-columns: 0 1fr 0; }
  .lb-prev, .lb-next { position: absolute; bottom: 14px; font-size: 36px !important; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
}
