:root {
  --paper: #f3efe6;
  --paper-2: #e7e0d2;
  --card: #fffdf8;
  --ink: #17241e;
  --muted: #5c6d64;
  --line: #ddd3c3;
  --forest: #1c4033;
  --forest-2: #275744;
  --cream: #f7f1e4;
  --copper: #b85a32;
  --copper-dark: #8c3e1c;
  --bad: #8d2f2f;
  --shadow: 0 18px 40px rgba(23, 36, 30, 0.08);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.05rem;
  line-height: 1.55;
}

body.admin-page,
body.book-page { padding-bottom: 0; }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0 0 0.8em; }
a { color: var(--forest-2); }
a:hover { color: var(--copper-dark); }

::selection { background: #efd0c2; color: var(--ink); }

:focus-visible {
  outline: 3px solid #c56a3a;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 60;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, 100%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 3px; }
.mark { width: 36px; height: 36px; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; color: var(--forest); }
.nav a.btn { color: var(--cream); text-decoration: none; }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--forest);
  background: transparent;
  color: var(--forest);
  font-weight: 700;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--forest);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover { background: var(--forest-2); color: white; }
.btn-small { min-height: 42px; padding: 0 14px; }
.btn-copper { background: var(--copper); color: white; }
.btn-copper:hover { background: var(--copper-dark); color: white; }
.btn-ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-ghost:hover { background: white; color: var(--forest); }
.btn-ghost-light { background: transparent; color: var(--cream); border: 1.5px solid rgba(247, 241, 228, 0.5); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.hero {
  color: var(--cream);
  background:
    radial-gradient(800px 380px at 100% 0%, rgba(184, 90, 50, 0.28), transparent 60%),
    linear-gradient(165deg, #16382c 0%, #10241c 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 80px;
}

.kicker {
  margin: 0 0 14px;
  color: #efc2a8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  color: #fbf7ef;
  font-size: clamp(2.2rem, 5vw, 4.15rem);
  max-width: 14ch;
}

.lead { font-size: 1.12rem; max-width: 40rem; }
.hero .lead { color: rgba(246, 241, 230, 0.86); }

.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(247, 241, 228, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ddea8;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
  color: rgba(246, 241, 230, 0.88);
}

.english {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--copper);
  color: var(--ink-soft, #3d4f46);
  max-width: 40rem;
}

.hero .english {
  border-left-color: #efc2a8;
  color: rgba(246, 241, 230, 0.86);
}

.case-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.case-card h2 { margin: 0 0 14px; font-size: 1.7rem; }
.case-kicker { margin: 0 0 6px; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.case-card ol { list-style: none; margin: 0; padding: 0; }
.case-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.case-card li.is-done strong { color: #1f7a4d; }
.case-card li.is-now strong { color: var(--copper-dark); }

.section { padding: 72px 0; }
.section-head { max-width: 40rem; margin-bottom: 26px; }
.section-head h2, .page-hero h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0 0 10px; }
.muted { color: var(--muted); }

.ways, .service-grid, .promise-grid, .split {
  display: grid;
  gap: 16px;
}

.ways > *,
.service-grid > *,
.promise-grid > *,
.split > *,
.visit-grid > *,
.pay-grid > *,
.bank-grid > *,
.footer-grid > *,
.admin-layout > * { min-width: 0; }

.ways, .service-grid { grid-template-columns: repeat(3, 1fr); }
.promise-grid { grid-template-columns: repeat(4, 1fr); }
.split { grid-template-columns: 1.1fr 0.9fr; align-items: start; }

.way, .service, .panel, .visit-card, .pay-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.way, .service { display: block; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.way h3, .service h3 { margin: 8px 0; font-size: 1.45rem; }
.way-num { color: var(--copper); font-family: var(--serif); font-size: 1.3rem; }

.band {
  background: #143128;
  color: var(--cream);
}
.band h2, .band h3 { color: #fbf7ef; }
.band p { color: rgba(246, 241, 230, 0.84); }
.promise-grid article { border-top: 2px solid rgba(239, 194, 168, 0.7); padding-top: 12px; }

.page-hero { padding: 46px 0 10px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.price-table td, .price-table th { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:nth-child(2) { white-space: nowrap; }
.group-row td { background: #f6f1e6; font-family: var(--serif); font-size: 1.2rem; }

.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.jump-links a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}
.jump-links a:hover { border-color: var(--forest); }
.price-note { margin: 0; color: var(--muted); max-width: 52rem; }
.price-group { scroll-margin-top: 90px; }
.price-group h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 18px 0 10px; }
.price-matrix th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; margin-top: 2px; }
.price-matrix tbody th { text-align: left; font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--ink); white-space: nowrap; }
.price-matrix td { white-space: nowrap; }
.price-matrix td a { color: var(--forest); font-weight: 600; text-decoration: none; }
.price-matrix td a:hover { text-decoration: underline; }
.price-matrix tbody tr:hover { background: #f8f4ea; }

.repair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.repair-grid .choice { padding: 12px 14px; }
.repair-grid .choice strong { font-size: 1.02rem; font-family: var(--sans); }
.estimate {
  border: 1.5px solid var(--forest);
  background: #e8f3ec;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 16px;
}
.estimate-price { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1.1; margin: 0; color: var(--forest); }
.estimate-meta { margin: 6px 0 0; }
.estimate small { display: block; color: var(--muted); margin-top: 6px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.pay-methods li {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}
.pay-card .btn { margin-top: 6px; }
.price-admin td { white-space: nowrap; padding: 8px 10px; }
.price-admin small { display: block; color: var(--muted); font-size: 0.78rem; }
.price-input { width: 6.5rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: white; }
.price-input.is-own { border-color: var(--copper); background: #fbefe7; }

.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq-item p { margin: 0 0 14px; max-width: 46rem; }

.visit-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 16px; }
.map-frame { width: 100%; min-height: 380px; height: 100%; border: 0; border-radius: 20px; background: #ddd; }

.close-cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.site-footer { background: #12261f; color: #e7efe9; padding: 48px 0 24px; }
.site-footer a { color: #f3e2d4; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9ddd2;
  margin: 0 0 10px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr 1fr 0.8fr; gap: 24px; }
.footer-brand { font-family: var(--serif); font-size: 1.8rem; margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 26px; padding-top: 14px; color: #c9ddd2; font-size: 0.92rem; }

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fffdf8;
  border-top: 1px solid var(--line);
}
.mobile-bar a { flex: 1; }

.stack { display: grid; gap: 16px; }
.stack > * { min-width: 0; }
.panel h2 { margin-top: 0; }

.steps-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.steps-bar span { height: 4px; flex: 1; border-radius: 99px; background: var(--paper-2); display: block; }
.steps-bar span.is-on { background: var(--forest); }
form.is-stepped [data-step]:not(.is-active) { display: none; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 84px;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: white;
  cursor: pointer;
}
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice strong { font-family: var(--serif); font-size: 1.2rem; }
.choice small { color: var(--muted); font-weight: 500; }
.choice:focus-within { outline: 3px solid #c56a3a; outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--forest); background: #e8f3ec; box-shadow: inset 0 0 0 1px var(--forest); }

.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-weight: 700; }
.field input, .field textarea, .field select {
  font-weight: 400;
  background: white;
  border: 1px solid #cfc5b4;
  border-radius: 12px;
  padding: 12px;
  min-height: 48px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 8px 0 16px; }
.check input { width: 20px; height: 20px; margin-top: 3px; }
.form-nav { display: flex; gap: 10px; }
#next, #send { margin-left: auto; }
.form-error, .form-ok { border-radius: 14px; padding: 12px 14px; }
.form-error { color: var(--bad); background: #f8e8e4; }
.form-ok { background: #e7f4ec; }

.bank-grid, .pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bank-dl { display: grid; grid-template-columns: 9rem 1fr; gap: 8px 12px; margin: 0; }
.bank-dl dt { color: var(--muted); }
.bank-dl dd { margin: 0; font-weight: 700; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.timeline { list-style: none; margin: 16px 0; padding: 0; }
.timeline li { padding: 10px 0 10px 14px; border-left: 2px solid var(--line); }
.timeline time { display: block; color: var(--muted); font-size: 0.88rem; }

.chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--paper-2);
  font-size: 0.82rem;
  font-weight: 700;
}
.chip-pay { background: #f3e0d4; color: #6d3318; }
.chip-ok { background: #dceadf; color: #145233; }
.chip-wait { background: #f4edd8; color: #6a4b12; }

.admin-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.sag-button {
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.sag-button.is-current { border-color: var(--forest); background: #e8f3ec; }
.sag-button strong { display: block; }
.login-card { width: min(460px, 100%); margin: 40px auto; }
.guide { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px 18px 18px; }
.guide summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.guide textarea { width: 100%; min-height: 110px; border-radius: 12px; border: 1px solid var(--line); padding: 12px; font: inherit; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.note-list { padding-left: 18px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.4s ease-in-out infinite; }
  .way, .service { transition: transform 0.18s ease, border-color 0.18s ease; }
  .way:hover, .service:hover { transform: translateY(-2px); border-color: #b7c9bf; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 980px) {
  .hero-grid, .ways, .service-grid, .promise-grid, .split, .visit-grid, .footer-grid, .bank-grid, .pay-grid, .admin-layout {
    grid-template-columns: 1fr;
  }
  .close-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .section { padding: 48px 0; }
  .hero-grid { padding: 42px 0 48px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 6px; }
  .choice-grid { grid-template-columns: 1fr; }
  .repair-grid { grid-template-columns: 1fr 1fr; }
  body { padding-bottom: 84px; }
  .mobile-bar { display: flex; }
  body.admin-page .mobile-bar,
  body.book-page .mobile-bar { display: none; }
  .map-frame { min-height: 280px; }
}

@media print {
  .site-header, .mobile-bar, .site-footer, .no-print { display: none !important; }
  body { background: white; padding: 0; }
  .hero, .band { background: white; color: black; }
  a { color: black; text-decoration: none; }
}
