/* Shared shell. Themes override geometry. */
:root {
  --bg: #f4f0e8;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e0d6;
  --card: #fffdf9;
  --accent: #0f5f5c;
  --accent-ink: #fff;
  --gap: 1rem;
  --btn-gap: .7rem;
  --wrap: min(1120px, calc(100% - 2rem));
  --header-h: 4.25rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.5 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip;
  max-width: 100%;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip {
  position: absolute; left: .5rem; top: -4rem; background: #fff; padding: .4rem .7rem; z-index: 20;
}
.skip:focus { top: .5rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-row {
  width: var(--wrap); margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: .8rem;
  padding: .45rem 0;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 36px; width: auto; }
.nav-toggle {
  margin-left: auto; min-height: 44px; min-width: 44px;
  border: 1px solid var(--line); background: var(--card); border-radius: 10px;
  display: none; cursor: pointer;
}
.nav {
  display: flex; flex-wrap: wrap; gap: var(--btn-gap); align-items: center;
  margin-left: auto;
}
.nav a, .nav .ext {
  text-decoration: none; font-size: .92rem; padding: .35rem .15rem;
  border-bottom: 2px solid transparent;
}
.nav a[aria-current="page"] { border-color: var(--accent); font-weight: 650; }
.phone-link { font-weight: 700; text-decoration: none; white-space: nowrap; }

.hero { padding: 1.25rem 0 1rem; }
.kicker { letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; color: var(--accent); font-weight: 700; margin: 0 0 .4rem; }
h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.12; margin: 0 0 .7rem; font-weight: 560; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.2; margin: 0 0 .6rem; font-weight: 580; }
h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
p { margin: 0 0 .7rem; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 42rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--btn-gap); align-items: center; margin: .8rem 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; border: 0; cursor: pointer; font-weight: 650;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.section { padding: 1.4rem 0; }
.grid { display: grid; gap: var(--gap); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.card .pad { padding: 1rem 1rem 1.1rem; }
.card img.cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.meta { color: var(--muted); font-size: .92rem; }
ul.clean { margin: .2rem 0 .6rem; padding-left: 1.1rem; }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }

.slider { position: relative; }
.slider__track {
  display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; max-width: 100%;
}
.slider__track img { scroll-snap-align: start; flex: 0 0 min(78%, 640px); aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; }
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0 5.5rem; margin-top: 1rem; }
.footer-grid { display: grid; gap: 1rem; grid-template-columns: 1.4fr 1fr 1fr; }
.footer-brand { display: flex; gap: .8rem; align-items: center; }
.footer-brand img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 50%; border: 1px solid var(--line); padding: 6px; }
.fine { font-size: .85rem; color: var(--muted); }

.cookie {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  width: min(520px, calc(100% - 1.5rem)); z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: .8rem .9rem; display: flex; gap: .7rem; align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.cookie p { margin: 0; font-size: .88rem; flex: 1; }
.mascot {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 65;
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.mascot img { width: 100%; height: 100%; object-fit: contain; }
.quiz, .modal {
  position: fixed; inset: 0; z-index: 80; background: rgba(20,16,12,.45);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.quiz.is-open, .modal.is-open { display: flex; }
.quiz__card, .modal__card {
  width: min(460px, 100%); background: #fff; border-radius: 18px; padding: 1.1rem 1.15rem 1.2rem;
  max-height: min(86vh, 720px); overflow: auto;
}
.quiz__opts { display: grid; gap: .55rem; }
.quiz__opts button, .close-x {
  min-height: 46px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: .55rem .8rem;
}
.close-x { width: 44px; text-align: center; font-size: 1.3rem; line-height: 1; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin: .7rem 0 1rem; }
.progress i { height: 4px; border-radius: 99px; background: var(--line); display: block; }
.progress i.on { background: var(--accent); }
.form { display: grid; gap: .7rem; }
label { display: grid; gap: .3rem; font-size: .92rem; }
input, select, textarea {
  min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; background: #fff; width: 100%;
}
textarea { min-height: 96px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .7rem 1rem 1rem; margin: 0; flex-direction: column; align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie { bottom: 5.4rem; }
}
@media (max-width: 390px) {
  .header-row { gap: .45rem; }
  .logo img { height: 30px; }
}
