/*
Theme Name: Serradinho
Theme URI: http://serradinho.local
Author: Channel13
Description: Serradinho Country House custom theme.
Version: 1.0
License: GPL-2.0-or-later
Text Domain: serradinho
*/

  :root {
    --bg:        #f4ede1;
    --bg-warm:   #ede4d3;
    --paper:     #faf6ee;
    --ink:       #2a2520;
    --ink-soft:  #5b4f43;
    --ink-mute:  #8a7d6e;
    --rule:      #d8cdb8;
    --accent:    #5a6b4a;       /* sage */
    --accent-deep: #3d4a32;
    --serif: "Cardo", Georgia, serif;
    --sans:  "Elms Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { overflow-x: hidden; }

  /* Elegant scrollbar */
  html { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-warm); }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg-warm); }
  ::-webkit-scrollbar-thumb {
    background: var(--accent);
    border: 2px solid var(--bg-warm);
    border-radius: 999px;
    transition: background .25s ease;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }
  ::-webkit-scrollbar-corner { background: var(--bg-warm); }

  body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; margin: 0; }
  p { margin: 0; text-wrap: pretty; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
  img { display: block; max-width: 100%; }

  .eyebrow {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--ink-mute);
  }

  /* ---------- Top nav ---------- */
  .topnav {
    position: fixed; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 48px;
    z-index: 50;
    transition: background .35s ease, padding .35s ease, color .35s ease, border-color .35s ease;
    border-bottom: 1px solid transparent;
    color: #faf6ee;
  }
  .topnav.scrolled {
    background: rgba(244,237,225,0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ink);
    padding: 14px 48px;
    border-bottom-color: var(--rule);
  }
  .topnav .mark {
    font-family: var(--serif);
    font-size: 18px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .35s ease;
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }
  .topnav.scrolled .mark { opacity: 1; }
  .topnav .mark-logo { display: none; height: 36px; width: auto; }
  .topnav.scrolled .mark-logo { display: block; }
  .topnav nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 36px;
  }
  .topnav nav a {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity .2s ease;
  }
  .topnav nav a:hover { opacity: 1; }
  .topnav .lang {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .topnav .lang span { opacity: 0.45; padding: 0 6px; }
  .topnav .lang a { opacity: 0.55; transition: opacity .2s ease; padding: 0 2px; }
  .topnav .lang a:hover { opacity: 1; }
  .topnav .lang a.on { opacity: 1; }

  /* Hamburger (mobile only — hidden by default) */
  .topnav .hamburger {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: transparent; border: 0; color: inherit;
    cursor: pointer; padding: 0;
    margin-left: 8px;
  }
  .topnav .hamburger span {
    display: block;
    width: 22px; height: 1.5px;
    background: currentColor;
    position: relative;
    transition: transform .3s ease, opacity .3s ease;
  }
  .topnav .hamburger span::before,
  .topnav .hamburger span::after {
    content: "";
    position: absolute; left: 0;
    width: 22px; height: 1.5px;
    background: currentColor;
    transition: transform .3s ease, top .3s ease;
  }
  .topnav .hamburger span::before { top: -7px; }
  .topnav .hamburger span::after  { top: 7px; }
  .topnav.menu-open .hamburger span { background: transparent; }
  .topnav.menu-open .hamburger span::before { top: 0; transform: rotate(45deg); }
  .topnav.menu-open .hamburger span::after  { top: 0; transform: rotate(-45deg); }

  /* Mobile drawer */
  .mobile-drawer {
    position: fixed;
    inset: 0 0 0 0;
    background: rgba(244,237,225,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 49;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 80px 24px 60px;
  }
  .mobile-drawer.open { display: flex; }
  .mobile-drawer a {
    font-family: var(--serif);
    font-size: 32px;
    color: var(--ink);
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 8px 16px;
  }
  .mobile-drawer .drawer-lang {
    margin-top: 16px;
    display: flex; gap: 14px;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
  }
  .mobile-drawer .drawer-lang a { font-family: var(--sans); font-size: 13px; opacity: 0.55; padding: 8px; }
  .mobile-drawer .drawer-lang a.on { opacity: 1; }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #1c1812;
  }
  .hero video, .hero .poster {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }
  .hero .poster {
    background: #000;
  }
  .hero::after {
    content: "";
    position: absolute; inset: 0;
    background:
      linear-gradient(180deg, rgba(20,17,13,0.6) 0%, rgba(20,17,13,0.35) 40%, rgba(20,17,13,0.7) 100%);
    pointer-events: none;
  }
  .hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    color: #faf6ee;
    text-align: center;
  }
  .hero-logo {
    width: min(520px, 70vw);
    height: auto;
    opacity: 0.96;
  }
  .hero-tag {
    margin-top: 28px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(18px, 2.2vw, 26px);
    letter-spacing: 0.04em;
    opacity: 0.92;
  }
  .hero-place {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    opacity: 0.7;
  }
  .scroll-cue {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #faf6ee;
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    opacity: 0.7;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
  }
  .scroll-cue .line {
    width: 1px; height: 56px;
    background: linear-gradient(180deg, transparent, #faf6ee);
    animation: cue 2.4s ease-in-out infinite;
    transform-origin: top;
  }
  @keyframes cue {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
  }

  /* ---------- Section scaffolding ---------- */
  section { position: relative; }
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
  }
  .section-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 64px;
  }
  .section-head h2 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.02;
    max-width: 14ch;
  }
  .section-head .meta {
    text-align: right;
    color: var(--ink-soft);
    font-size: 14px;
    max-width: 36ch;
    line-height: 1.55;
  }
  .section-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    color: var(--ink-mute);
    margin-bottom: 16px;
  }

  /* ---------- Welcome ---------- */
  .welcome {
    padding: 140px 0 120px;
  }
  .welcome .lead {
    max-width: 880px;
    font-family: var(--serif);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.25;
    color: var(--ink);
    font-weight: 300;
  }
  .welcome .lead em { font-style: italic; color: var(--accent-deep); }
  .welcome .body {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 980px;
  }
  .welcome .body p { color: var(--ink-soft); }
  .facts {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .fact {
    padding: 28px 0;
    border-right: 1px solid var(--rule);
    padding-left: 24px;
  }
  .fact:last-child { border-right: 0; }
  .fact .num {
    font-family: var(--serif);
    font-size: 44px;
    line-height: 1;
    color: var(--accent-deep);
  }
  .fact .lbl {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }

  /* ---------- Gallery ---------- */
  .gallery {
    padding: 120px 0;
    background: var(--bg-warm);
  }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
    gap: 14px;
  }
  .tile {
    overflow: hidden;
    background: #ddd2bd;
    cursor: zoom-in;
    position: relative;
  }
  .tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
  }
  .tile:hover img { transform: scale(1.04); }
  .tile::after {
    content: attr(data-caption);
    position: absolute;
    left: 16px; bottom: 14px;
    color: #faf6ee;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .3s ease;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  }
  .tile:hover::after { opacity: 1; }
  .t-a { grid-column: span 3; grid-row: span 2; }
  .t-b { grid-column: span 3; grid-row: span 1; }
  .t-c { grid-column: span 2; grid-row: span 1; }
  .t-d { grid-column: span 1; grid-row: span 1; }
  .t-e { grid-column: span 2; grid-row: span 2; }
  .t-f { grid-column: span 2; grid-row: span 1; }
  .t-g { grid-column: span 2; grid-row: span 1; }
  .t-more {
    grid-column: span 4; grid-row: span 1;
    background: transparent;
    border: 1px solid var(--accent-deep);
    color: var(--accent-deep);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
  }
  .t-more:hover { background: var(--accent-deep); color: #faf6ee; }
  .t-more .more-num {
    font-family: var(--serif);
    font-size: 56px;
    line-height: 1;
    font-weight: 400;
  }
  .t-more .more-lbl {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.85;
  }
  .tile.hidden { display: none; }

  /* ---------- Places ---------- */
  .places {
    padding: 140px 0 120px;
  }
  .places-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 40px;
  }
  .place {
    display: flex;
    flex-direction: column;
  }
  .place .ph {
    aspect-ratio: 4 / 5;
    background: #ddd2bd;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
  }
  .place .ph img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1s cubic-bezier(.2,.7,.2,1);
  }
  .place:hover .ph img { transform: scale(1.05); }
  .place .ph .dist {
    position: absolute; top: 14px; right: 14px;
    background: rgba(250,246,238,0.94);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .place h3 {
    font-size: 28px;
    margin-bottom: 6px;
  }
  .place .kind {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent);
    font-size: 15px;
    margin-bottom: 12px;
  }
  .place p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
  }

  /* ---------- Reservation ---------- */
  .reserve {
    padding: 140px 0 140px;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .reserve-wrap {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
    align-items: start;
  }
  .cal-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .cal-nav h4 {
    font-size: 22px;
    font-weight: 500;
  }
  .cal-arrow {
    width: 36px; height: 36px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .2s ease;
  }
  .cal-arrow:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .cal-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
  .cal-arrow svg { width: 14px; height: 14px; }

  .cal-month .cal-arrow.spacer { visibility: hidden; }

  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
  }
  .dow {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
    text-align: center;
    padding: 8px 0;
  }
  .day {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-family: var(--sans);
    color: var(--ink);
    cursor: pointer;
    position: relative;
    transition: background .15s ease, color .15s ease;
    border-radius: 2px;
  }
  .day.empty { cursor: default; }
  .day.past, .day.blocked {
    color: var(--ink-mute);
    text-decoration: line-through;
    cursor: not-allowed;
  }
  .day.blocked::after {
    content: "";
    position: absolute;
    inset: 30% 30%;
    border-radius: 50%;
    background: #c2b6a0;
    opacity: 0.4;
  }
  .day.blocked { text-decoration: none; }
  .day:not(.empty):not(.past):not(.blocked):hover {
    background: rgba(90,107,74,0.12);
  }
  .day.in-range {
    background: rgba(90,107,74,0.14);
    color: var(--accent-deep);
    border-radius: 0;
  }
  .day.start, .day.end {
    background: var(--accent);
    color: #faf6ee;
    font-weight: 500;
  }
  .day.start { border-radius: 999px 0 0 999px; }
  .day.end   { border-radius: 0 999px 999px 0; }
  .day.start.end { border-radius: 999px; }
  .day.today {
    box-shadow: inset 0 0 0 1px var(--rule);
  }
  .day.today.start, .day.today.end { box-shadow: none; }

  .cal-legend {
    margin-top: 36px;
    display: flex;
    gap: 28px;
    font-size: 12px;
    color: var(--ink-mute);
    letter-spacing: 0.06em;
  }
  .cal-legend .sw {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: -1px;
  }
  .sw.s-avail { background: var(--paper); border: 1px solid var(--rule); }
  .sw.s-sel   { background: var(--accent); }
  .sw.s-block { background: #c2b6a0; opacity: 0.6; }

  .booking-card {
    background: var(--bg);
    border: 1px solid var(--rule);
    padding: 32px;
    position: sticky;
    top: 100px;
  }
  .booking-card .rate {
    display: flex; align-items: baseline; gap: 8px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
  }
  .booking-card .rate .price {
    font-family: var(--serif);
    font-size: 40px;
    color: var(--ink);
    line-height: 1;
  }
  .booking-card .rate .per {
    color: var(--ink-mute);
    font-size: 13px;
  }
  .stay-rows {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
  }
  .stay-cell {
    background: var(--bg);
    padding: 14px 16px;
  }
  .stay-cell .lbl {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 4px;
  }
  .stay-cell .val {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--ink);
  }
  .stay-cell .val.empty { color: var(--ink-mute); font-style: italic; font-size: 15px; }
  .guest-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--rule);
  }
  .guest-row .lbl {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .stepper {
    display: flex; align-items: center; gap: 14px;
  }
  .stepper button {
    width: 26px; height: 26px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s ease;
  }
  .stepper button:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
  .stepper .val { font-family: var(--serif); font-size: 18px; width: 14px; text-align: center; }

  .reserve-form { margin-top: 20px; display: grid; gap: 0; }
  .reserve-form .field {
    border-bottom: 1px solid var(--rule);
    padding: 14px 0 10px;
    position: relative;
  }
  .reserve-form .field label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 6px;
  }
  .reserve-form .field label .opt {
    text-transform: none;
    letter-spacing: 0.06em;
    font-style: italic;
    font-family: var(--serif);
    opacity: 0.7;
    margin-left: 4px;
  }
  .reserve-form .field input {
    width: 100%;
    border: 0;
    background: transparent;
    font-family: var(--serif);
    font-size: 17px;
    color: var(--ink);
    outline: none;
    padding: 0;
  }
  .reserve-form .field.error { border-bottom-color: #a44; }
  .reserve-form .field .err {
    position: absolute;
    right: 0; top: 14px;
    font-size: 10px;
    color: #a44;
    letter-spacing: 0.08em;
  }
  .reserve-form .btn-primary { margin-top: 22px; }
  .summary {
    margin-top: 20px;
    font-size: 14px;
    color: var(--ink-soft);
  }
  .summary .row {
    display: flex; justify-content: space-between;
    padding: 6px 0;
  }
  .summary .row.total {
    border-top: 1px solid var(--rule);
    margin-top: 10px; padding-top: 14px;
    font-family: var(--serif);
    font-size: 22px;
    color: var(--ink);
  }
  .btn-primary {
    width: 100%;
    margin-top: 22px;
    padding: 18px 24px;
    background: var(--ink);
    color: var(--paper);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    transition: background .2s ease;
  }
  .btn-primary:hover:not(:disabled) { background: var(--accent-deep); }
  .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
  .booking-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--ink-mute);
    text-align: center;
    font-style: italic;
    font-family: var(--serif);
  }

  /* ---------- Contact ---------- */
  .contact {
    padding: 140px 0 100px;
  }
  .contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
  }
  .contact .lead-block h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; margin-bottom: 24px; max-width: 12ch; }
  .contact .lead-block p { color: var(--ink-soft); max-width: 36ch; }
  .contact .info {
    margin-top: 48px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  }
  .contact .info dt {
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute);
    margin-bottom: 8px;
  }
  .contact .info dd {
    margin: 0;
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.4;
  }
  form.contact-form {
    display: grid;
    gap: 0;
  }
  .field {
    border-bottom: 1px solid var(--rule);
    padding: 18px 0 12px;
    position: relative;
  }
  .field label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 8px;
  }
  .field input, .field textarea, .field select {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    font-family: var(--serif);
    font-size: 20px;
    color: var(--ink);
    outline: none;
    padding: 0;
    resize: none;
  }
  .field textarea { min-height: 110px; line-height: 1.4; }
  .field.error { border-bottom-color: #a44; }
  .field .err {
    position: absolute;
    right: 0; top: 18px;
    font-size: 11px;
    color: #a44;
    letter-spacing: 0.08em;
  }
  .form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  }
  .form-actions {
    margin-top: 36px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
  }
  .form-actions .fine {
    font-size: 12px; color: var(--ink-mute); max-width: 38ch; line-height: 1.5;
  }
  .btn-send {
    padding: 16px 40px;
    background: var(--ink);
    color: var(--paper);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    transition: background .2s ease;
    white-space: nowrap;
  }
  .btn-send:hover { background: var(--accent-deep); }
  .form-success {
    padding: 32px;
    border: 1px solid var(--accent);
    background: rgba(90,107,74,0.08);
    text-align: center;
    font-family: var(--serif);
    font-size: 22px;
    color: var(--accent-deep);
    line-height: 1.4;
  }
  .form-success .small {
    display: block;
    margin-top: 8px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }

  /* ---------- Footer ---------- */
  footer {
    background: #1f1a14;
    color: #d9cfbb;
    padding: 80px 0 32px;
  }
  footer .foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(217,207,187,0.15);
  }
  footer .mark-foot {
    font-family: var(--serif);
    font-size: 28px;
    letter-spacing: 0.06em;
    color: #faf6ee;
    line-height: 1.1;
  }
  footer .mark-foot .it { font-style: italic; font-weight: 300; display: block; font-size: 18px; opacity: 0.7; margin-top: 4px; }
  footer h5 {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #faf6ee;
    margin-bottom: 18px;
    font-weight: 500;
  }
  footer ul { list-style: none; padding: 0; margin: 0; }
  footer li { margin-bottom: 10px; font-size: 14px; opacity: 0.75; }
  footer .legal {
    padding-top: 24px;
    display: flex; justify-content: space-between;
    font-size: 12px;
    opacity: 0.55;
    letter-spacing: 0.06em;
  }

  /* ---------- Lightbox ---------- */
  .lightbox {
    position: fixed; inset: 0;
    background: rgba(20,17,13,0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 48px;
  }
  .lightbox.open { display: flex; }
  .lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  }
  .lightbox .close {
    position: absolute; top: 24px; right: 28px;
    color: #faf6ee;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.8;
  }
  .lightbox .arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px;
    border: 1px solid rgba(250,246,238,0.4);
    border-radius: 50%;
    color: #faf6ee;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s ease;
  }
  .lightbox .arrow:hover { background: rgba(250,246,238,0.15); }
  .lightbox .arrow.prev { left: 32px; }
  .lightbox .arrow.next { right: 32px; }
  .lightbox .counter {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    color: #faf6ee;
    font-family: var(--serif);
    font-size: 16px;
    letter-spacing: 0.08em;
    opacity: 0.8;
  }

  /* ---------- Modal ---------- */
  .modal {
    position: fixed; inset: 0;
    z-index: 110;
    display: none;
    padding: 40px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .modal.open { display: flex; }
  .modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(20,17,13,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .modal-card {
    position: relative;
    background: var(--paper);
    color: var(--ink);
    max-width: 720px;
    width: 100%;
    margin: auto;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rule);
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  }
  .modal-head { padding: 56px 56px 24px; flex-shrink: 0; }
  .modal-body { padding: 0 56px 48px; overflow-y: auto; overscroll-behavior: contain; }
  .modal-body::-webkit-scrollbar { width: 8px; }
  .modal-body::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 999px; }
  .modal-body::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }
  .modal-body::-webkit-scrollbar-track { background: transparent; }
  .modal-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
  }
  .modal-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .modal-head .section-num { font-family: var(--serif); font-style: italic; color: var(--ink-mute); font-size: 14px; margin-bottom: 12px; }
  .modal-head h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.05;
    margin: 0 0 14px;
    color: var(--ink);
  }
  .modal-intro {
    color: var(--ink-soft);
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    margin: 0 0 32px;
  }
  .modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .rule-block h4 {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
  }
  .rule-block ul { list-style: none; padding: 0; margin: 0; }
  .rule-block li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
    padding: 5px 0 5px 14px;
    position: relative;
  }
  .rule-block li::before {
    content: "·";
    position: absolute; left: 2px; top: 4px;
    color: var(--accent);
    font-weight: 700;
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 1100px) {
    .reserve-wrap { grid-template-columns: 1fr; }
    .booking-card { position: static; max-width: 480px; }
    .places-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrap { grid-template-columns: 1fr; }
    footer .foot-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 720px) {
    .container { padding: 0 24px; }
    .topnav { padding: 16px 20px; }
    .topnav.scrolled { padding: 12px 20px; }
    .topnav nav { display: none; }
    .topnav .lang { display: none; }
    .topnav .hamburger { display: inline-flex; }
    .topnav .mark { opacity: 1; }
    .topnav .mark-logo { display: block; }
    .section-head { grid-template-columns: 1fr; }
    .section-head .meta { text-align: left; }
    .welcome .body { grid-template-columns: 1fr; gap: 24px; }
    .welcome { padding: 100px 0 80px; }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(2) { border-right: 0; }
    .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid var(--rule); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .t-a, .t-b, .t-c, .t-d, .t-e, .t-f, .t-g { grid-column: span 1; grid-row: span 1; }
    .t-a { grid-column: span 2; grid-row: span 2; }
    .t-more { grid-column: span 2; grid-row: span 1; }
    .t-more .more-num { font-size: 40px; }
    .places, .reserve, .contact { padding: 100px 0 80px; }
    .places-grid { grid-template-columns: 1fr; gap: 40px; }
    .place .ph { aspect-ratio: 16 / 11; }
    .cal-months { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; align-items: stretch; gap: 16px; }
    .form-actions .btn-send { width: 100%; }
    footer .foot-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
    footer .legal { flex-direction: column; gap: 8px; padding-top: 20px; }
    .lightbox { padding: 24px 12px; }
    .lightbox .arrow { width: 44px; height: 44px; }
    .lightbox .arrow.prev { left: 12px; }
    .lightbox .arrow.next { right: 12px; }
    .lightbox .close { top: 14px; right: 14px; }
    .modal { padding: 20px 12px; }
    .modal-card { max-height: calc(100vh - 40px); }
    .modal-head { padding: 48px 24px 18px; }
    .modal-body { padding: 0 24px 32px; grid-template-columns: 1fr; gap: 22px; }
  }
