/* Madrid House. Every value here comes from DESIGN.md. */
@font-face { font-family: Inter; src: url(/assets/fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #1f1b18; --canvas: #ffffff; --surface: #f8f5f0; --surface-2: #f0ebe3;
  --hair: #e9e4dc; --hair-dark: #3a342f; --muted: #696765; --on-dark: #ffffff;
  --accent: #e07a5f; --accent-strong: #b4472b; --error: #b3261e;
  --r: 16px; --r-sm: 8px; --pill: 9999px; --max: 1280px; --gut: 16px; --sec: 80px;
  --float: rgba(0, 0, 0, 0.05) 2px 2px 12px 0;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 960px) { :root { --gut: 32px; --sec: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
strong { font-weight: 500; }

/* Type */
.display { font-size: 40px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.heading { font-size: 32px; font-weight: 300; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.sub { font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.card-title { font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 1.5; }
.label { font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
@media (min-width: 960px) {
  .display { font-size: 64px; } .heading { font-size: 44px; } .sub { font-size: 28px; } .card-title { font-size: 22px; }
}

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: var(--sec) 0; }
.sec-tight { padding-top: 48px; }
.surface { background: var(--surface); }
.split, .two-col { display: grid; gap: 32px; }
.sec-head { display: grid; gap: 16px; margin-bottom: 48px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: 24px; align-items: start; }
  .split > :first-child { padding-right: 48px; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 96px; }
  .sec-head { grid-template-columns: 5fr 7fr; gap: 24px; align-items: end; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 28px; border-radius: var(--pill); font-size: 15px; font-weight: 500; line-height: 1.2; transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--on-dark); }
.btn-primary:hover { background: #3a342f; }
.btn-ondark { background: var(--canvas); color: var(--ink); }
.btn-ondark:hover { background: var(--surface); }
.btn-ghost { border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tlink { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-strong); font-weight: 500; margin-top: 16px; }
.tlink .ic { width: 18px; height: 18px; transition: transform .2s; }
a:hover > .tlink .ic, .tlink:hover .ic { transform: translateX(4px); }
.tlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: var(--canvas); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--hair); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.wordmark { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.nav-links { display: none; align-items: center; gap: 32px; }
.nav-a { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; padding: 12px 0; }
.nav-a .ic { width: 16px; height: 16px; }
.nav-a:hover, .nav-a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta { display: none; min-height: 44px; padding: 12px 22px; font-size: 14px; }
.lang { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--pill); font-size: 14px; font-weight: 500; color: var(--muted); }
.lang .on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang-dark { border-color: var(--hair-dark); color: #b9b1a8; }
.lang-dark .on { color: var(--on-dark); }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; }
.dd { position: relative; }
.dd-menu { position: absolute; top: 100%; left: -20px; min-width: 220px; padding: 8px; background: var(--canvas); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--float); }
.dd-menu a { display: block; padding: 12px; border-radius: var(--r-sm); font-size: 14px; }
.dd-menu a:hover { background: var(--surface); }
.mmenu { position: fixed; inset: 64px 0 0; background: var(--canvas); overflow: auto; }
.mmenu-in { display: grid; gap: 4px; padding-top: 24px; padding-bottom: 32px; }
.mmenu-in a:not(.btn) { padding: 12px 0; font-size: 24px; font-weight: 300; letter-spacing: -0.01em; }
.mmenu-in hr { border: 0; border-top: 1px solid var(--hair); margin: 12px 0; width: 100%; }
.mmenu-in .btn { margin-top: 24px; }
@media (min-width: 960px) {
  .nav-in { height: 72px; } .nav-links { display: flex; } .nav-cta { display: inline-flex; } .menu-btn { display: none; } .mmenu { display: none !important; }
}

/* Hero */
.hero { padding: 32px 0 0; }
.hero-in { display: grid; gap: 32px; }
.hero-copy { display: grid; gap: 20px; align-content: center; }
.hero-copy .lead { max-width: 34em; color: var(--muted); }
.hero-pics { display: grid; grid-template-columns: 5fr 7fr; gap: 12px; align-items: end; }
.hp { overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.hp img, .hero-one img { width: 100%; height: 100%; object-fit: cover; }
.hp-tall { aspect-ratio: 3 / 4; } .hp-wide { aspect-ratio: 4 / 3; }
.hero-one { overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--surface-2); }
.hero-bar { margin-top: 32px; }
.hero:not(:has(.hero-bar)) { padding-bottom: var(--sec); }
.kfacts { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.kfacts li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.kfacts .ic { width: 20px; height: 20px; }
.addr { font-size: 14px; color: var(--muted); }
@media (min-width: 960px) {
  .hero { padding-top: 56px; }
  /* Headline runs full width so it stays within two or three lines; paragraph left, photos right. */
  .hero-in { grid-template-columns: 4fr 8fr; column-gap: 64px; row-gap: 20px; align-items: start; }
  .hero-copy { display: contents; }
  .hero-copy .label { grid-column: 1 / -1; grid-row: 1; }
  .hero-copy .display { grid-column: 1 / -1; grid-row: 2; max-width: 17.5em; margin-bottom: 28px; }
  .hero-copy .lead { grid-column: 1; grid-row: 3; }
  .hero-copy .kfacts, .hero-copy .addr { grid-column: 1; grid-row: 4; }
  .hero-copy .kfacts { display: grid; gap: 0; }
  .hero-copy .kfacts li { padding: 14px 0; border-top: 1px solid var(--hair); }
  .hero-pics, .hero-one { grid-column: 2; grid-row: 3 / span 3; }
  .hero-pics { gap: 24px; grid-template-columns: 5fr 7fr; }
  .hp-tall { aspect-ratio: 3 / 4; margin-top: 64px; } .hp-wide { aspect-ratio: 4 / 3.6; }
  .hero-one { aspect-ratio: 16 / 9; }
  .hero-bar { margin-top: 56px; }
}

/* Booking bar: the loudest thing on the page */
.bbar { position: relative; display: grid; gap: 4px; padding: 12px; background: var(--accent); border-radius: 20px; }
.bbar-f { display: grid; gap: 4px; padding: 12px 16px; text-align: left; border-radius: 12px; min-height: 60px; }
.bbar-f + .bbar-f { border-top: 1px solid rgba(31, 27, 24, .22); border-radius: 0; }
.bbar-v, .bbar select { font-size: 16px; font-variant-numeric: tabular-nums; }
.sel { position: relative; display: flex; align-items: center; }
.bbar select { appearance: none; background: none; border: 0; padding: 0 24px 0 0; width: 100%; cursor: pointer; }
.sel .ic { position: absolute; right: 0; width: 18px; height: 18px; pointer-events: none; }
.bbar-go { margin-top: 8px; width: 100%; min-height: 56px; }
.cal-pop { position: fixed; inset: 0; z-index: 60; background: var(--canvas); padding: 20px 16px; overflow: auto; }
@media (min-width: 960px) {
  .bbar { grid-template-columns: 1.3fr 1fr 1fr auto; align-items: center; gap: 0; padding: 10px 10px 10px 16px; border-radius: 40px; }
  .bbar-f { padding: 10px 24px; }
  .bbar-f + .bbar-f { border-top: 0; border-left: 1px solid rgba(31, 27, 24, .22); }
  .bbar-go { margin: 0 0 0 16px; width: auto; }
  .cal-pop { position: absolute; inset: auto auto auto 0; top: calc(100% + 12px); width: 680px; padding: 24px; border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--float); overflow: visible; }
}

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-nav { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hair); border-radius: var(--pill); }
.cal-nav:hover { border-color: var(--ink); }
.cal-head { gap: 8px; } .cal-head [data-cal="1"] { margin-left: auto; }
@media (min-width: 960px) { .cal-close { display: none; } }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.cal-nav[disabled] { opacity: .3; cursor: default; }
.cal-months { display: grid; gap: 32px; }
.cal-m h3 { font-size: 16px; font-weight: 500; text-align: center; margin-bottom: 12px; }
.cal-m h3::first-letter { text-transform: uppercase; }
.steps button { text-decoration: underline; text-underline-offset: 4px; min-height: 24px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; font-variant-numeric: tabular-nums; }
.cal-wd { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 6px 0; }
.cal-d { height: 44px; display: grid; place-items: center; font-size: 15px; border-radius: var(--r-sm); }
.cal-d:hover:not([disabled]) { background: var(--surface-2); }
.cal-d[disabled] { color: var(--muted); text-decoration: line-through; cursor: default; opacity: .7; }
.cal-d.in { background: var(--surface-2); border-radius: 0; }
.cal-d.start, .cal-d.end { background: var(--accent); color: var(--ink); font-weight: 500; border-radius: var(--r-sm); }
.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--muted); }
.cal-foot .btn { min-height: 44px; padding: 10px 22px; }
@media (min-width: 720px) { .cal-months { grid-template-columns: 1fr 1fr; } }

/* Fact row */
.facts { padding: 56px 0 0; }
.facts-in { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; padding-top: 32px; border-top: 1px solid var(--hair); }
.fact-n { font-size: 56px; font-weight: 300; line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fact-l { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 16em; }
@media (min-width: 960px) { .facts { padding-top: 96px; } .facts-in { grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; } .fact-n { font-size: 96px; } }

/* Apartment type cards: the photo is the card */
.tgrid { display: grid; gap: 48px; }
.tcard { display: grid; gap: 10px; align-content: start; }
.tcard-img { overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; margin-bottom: 14px; background: var(--surface-2); }
.tcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tcard:hover .tcard-img img { transform: scale(1.03); }
.tcard .label { color: var(--muted); }
.tcard-facts { font-size: 22px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.price-main { font-size: 16px; } .price-main strong { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.price-note { font-size: 14px; color: var(--muted); }
.tcard .tlink { margin-top: 8px; }
@media (min-width: 720px) { .tgrid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.sec .heading + .tgrid { margin-top: 48px; }

/* Lists */
.amen { display: grid; gap: 0; }
.amen li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--hair); font-size: 16px; }
.amen li:last-child { border-bottom: 1px solid var(--hair); }
@media (min-width: 720px) { .amen { grid-template-columns: 1fr 1fr; column-gap: 24px; } .amen li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--hair); } }
.two-col .amen { margin-top: 32px; }
.rows { display: grid; }
.row { display: grid; gap: 8px; padding: 28px 0; border-top: 1px solid var(--hair); }
.row:last-child { border-bottom: 1px solid var(--hair); }
.row p { max-width: 38em; }
.plain { margin-top: 32px; }
.plain li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--hair); }
.plain li:last-child { border-bottom: 1px solid var(--hair); }
.plain .label { color: var(--muted); }
.two-col .heading + p, .two-col .heading + .price { margin-top: 24px; }
.two-col .price + p { margin-top: 12px; }
.two-col p { max-width: 34em; }
.trust { display: grid; gap: 0; margin-top: 48px; }
.trust li { padding: 24px 0; border-top: 1px solid var(--hair); font-size: 22px; font-weight: 300; letter-spacing: -0.01em; line-height: 1.25; }
@media (min-width: 960px) { .trust { grid-template-columns: repeat(3, 1fr); gap: 24px; } .trust li { font-size: 28px; padding-right: 24px; } }
.second { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; padding: 28px; background: var(--surface); border-radius: var(--r); }
.second .lead { max-width: 30em; }
.way { display: grid; gap: 0; }
.way li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--hair); font-size: 18px; }
.way li:last-child { border-bottom: 1px solid var(--hair); }
.way .ic { margin-top: 2px; }
.note { margin-top: 24px; font-size: 14px; color: var(--muted); }
.rules li { padding: 20px 0; border-top: 1px solid var(--hair); font-size: 18px; }
.rules li:last-child { border-bottom: 1px solid var(--hair); }

/* Dark band: one per page at most */
.band { background: var(--ink); color: var(--on-dark); padding: 80px 0; }
.band-in { display: grid; gap: 32px; align-items: end; }
.band .lead { margin-top: 20px; max-width: 36em; color: #d8d1c8; }
.band-in > div { max-width: 46em; }
@media (min-width: 960px) { .band { padding: 120px 0; } .band-in { grid-template-columns: 1fr auto; gap: 64px; } }

/* Gallery: editorial grid on desktop, horizontal rail on mobile */
.sec-gallery { padding-bottom: 0; }
.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.g-item { flex: 0 0 78%; scroll-snap-align: center; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 5; background: var(--surface-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.03); }
@media (min-width: 960px) {
  .gallery { display: block; columns: 3; column-gap: 24px; margin: 0; padding: 0; overflow: visible; }
  .g-item { display: block; width: 100%; margin: 0 0 24px; break-inside: avoid; }
  .g-wide { aspect-ratio: 3 / 2; } .g-tall { aspect-ratio: 3 / 4; }
  .g-item:nth-child(4) { aspect-ratio: 1 / 1; }
}
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: var(--ink); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); border-radius: var(--r-sm); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--pill); background: var(--canvas); color: var(--ink); }
.lb-x { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }

/* Transport cards */
.tcards { display: grid; gap: 24px; }
.trans { background: var(--canvas); border-radius: var(--r); padding: 24px; }
.trans h2 a { display: inline-flex; align-items: center; gap: 10px; }
.trans h2 a:hover { color: var(--accent-strong); }
.trans h2 .ic { width: 20px; height: 20px; }
.trans ul { margin-top: 20px; }
.trans li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--hair); color: var(--muted); }
.trans li .ic { color: var(--ink); width: 22px; height: 22px; margin-top: 1px; }
@media (min-width: 960px) { .tcards { grid-template-columns: repeat(3, 1fr); } .trans { padding: 32px; } }

/* Page head for text pages */
.phead { padding: 48px 0 0; }
.phead-in { display: grid; gap: 20px; max-width: calc(var(--max)); }
.phead .display { max-width: 16em; }
.phead .lead { max-width: 36em; color: var(--muted); }
@media (min-width: 960px) { .phead { padding-top: 96px; } }

/* FAQ */
.faq-group { padding: 32px 0; }
.faq-group + .faq-group { border-top: 0; }
.acc details { border-top: 1px solid var(--hair); }
.acc details:last-child { border-bottom: 1px solid var(--hair); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 18px; cursor: pointer; list-style: none; min-height: 44px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { transition: transform .2s; }
.acc details[open] summary .ic { transform: rotate(45deg); }
.acc details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 40em; }

/* Forms */
.card { background: var(--surface); border-radius: var(--r); padding: 24px; }
@media (min-width: 960px) { .card { padding: 32px; } }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 16px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--canvas); font-size: 16px; font-weight: 400; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--accent); outline-offset: 2px; }
.field .help { font-weight: 400; color: var(--muted); }
.field.bad input, .field.bad textarea { border-color: var(--error); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; min-height: 44px; padding-top: 8px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check.bad span { color: var(--error); }
.form-ok { font-weight: 500; }
.form-err, .err { color: var(--error); font-weight: 500; display: flex; gap: 8px; }
.form .btn { justify-self: start; }
.contact .chan { padding: 28px 0; border-top: 1px solid var(--hair); display: grid; gap: 10px; justify-items: start; }
.chan .label { color: var(--muted); }
.chan-v { font-size: 28px; font-weight: 300; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.chan .btn { margin-top: 8px; }

/* Booking flow */
.bk { padding: 40px 0 var(--sec); }
.steps { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps li.on { color: var(--ink); font-weight: 500; }
.bk-grid { display: grid; gap: 32px; margin-top: 32px; }
.bk-main { display: grid; gap: 24px; align-content: start; }
.bk-main > .lead { color: var(--muted); max-width: 36em; }
.bk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.bk-cal { border: 1px solid var(--hair); border-radius: var(--r); padding: 20px; }
.opt { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--hair); border-radius: var(--r); text-align: left; width: 100%; }
.opt:hover:not([disabled]) { border-color: var(--ink); }
.opt.sel { border-color: var(--ink); background: var(--surface); }
.opt[disabled] { cursor: not-allowed; color: var(--muted); background: var(--surface); }
.opt-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.opt-name { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.opt-price { font-size: 20px; font-variant-numeric: tabular-nums; }
.opts { display: grid; gap: 16px; }
.opt > .opt-name { display: block; }
.phead-in > p > .btn { margin-top: 8px; }
.notice { padding: 20px; border-radius: var(--r); background: var(--surface-2); font-weight: 500; }
.test { display: inline-flex; padding: 6px 12px; border-radius: var(--pill); background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 500; justify-self: start; }
.bk-sum { display: grid; gap: 0; align-content: start; }
.bk-sum h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 12px; }
.bk-sum dl { display: grid; }
.bk-sum dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
.bk-sum dt { color: var(--muted); }
.bk-sum .tot { font-size: 20px; font-weight: 500; }
.bk-sum .tot dt { color: var(--ink); font-size: 15px; font-weight: 400; }
.bk-sum ul { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--hair); display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.company { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .bk { padding-top: 64px; }
  .bk-grid { grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; margin-top: 40px; }
  .bk-sum { position: sticky; top: 104px; }
  .bk-main .display { font-size: 56px; }
}

/* Confirmation */
.ref { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl li { display: grid; gap: 8px; padding: 28px 0; border-top: 1px solid var(--hair); }
.tl li:last-child { border-bottom: 1px solid var(--hair); }
.surface .btn-ghost { margin-top: 24px; }
.surface .note + .tlink { display: flex; }

/* Legal */
.legal { display: grid; max-width: 60em; }
.legal div { display: grid; gap: 8px; padding: 28px 0; border-top: 1px solid var(--hair); }
.legal dt { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.legal dd { color: var(--muted); max-width: 44em; }
@media (min-width: 960px) { .legal div { grid-template-columns: 4fr 8fr; gap: 24px; } }
.p-legal main, .p-privacy main, .p-cookies main, .p-terms main, .p-contact main { padding-bottom: var(--sec); }
.p-legal .sec, .p-privacy .sec, .p-cookies .sec, .p-terms .sec, .p-contact .sec { padding-bottom: 0; }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark); padding: 72px 0 40px; }
.band + .footer, main:has(> .band:last-child) + .footer { border-top: 1px solid var(--hair-dark); }
.f-top { display: grid; gap: 48px; }
.f-brand { display: grid; gap: 12px; align-content: start; max-width: 22em; }
.f-brand .wordmark { font-size: 22px; }
.f-brand p:last-child, .f-bottom, .f-col a { color: #b9b1a8; }
.f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.f-col { display: grid; gap: 4px; align-content: start; font-size: 14px; }
.f-col .label { color: var(--on-dark); margin-bottom: 8px; }
.f-col a { padding: 8px 0; }
.f-col a:hover { color: var(--on-dark); }
.f-bottom { display: grid; gap: 12px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair-dark); font-size: 14px; align-items: center; }
.f-bottom .lang { justify-self: start; }
@media (min-width: 960px) {
  .f-top { grid-template-columns: 4fr 8fr; } .f-cols { grid-template-columns: repeat(4, 1fr); }
  .f-bottom { grid-template-columns: auto 1fr auto; gap: 32px; } .f-bottom .lang { justify-self: end; }
}

/* Cookie banner */
.cookie { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; max-width: 560px; display: grid; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); font-size: 14px; box-shadow: var(--float); }
.cookie a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cookie .btn { min-height: 44px; padding: 10px 16px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
