:root {
  --bg: #f4efe6;
  --ink: #1c1914;
  --muted: #5c564c;
  --accent: #b44a2a;
  --accent-d: #8c351c;
  --card: #fffdf8;
  --line: #e4dacb;
  --ink-soft: #3a342c;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 18px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}
a { color: var(--accent-d); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(244, 239, 230, .9);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s var(--ease), border-color .3s;
}
header.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(28, 25, 20, .06);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
}
.logo {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 18px;
  border-radius: 999px;
  min-height: 44px;
  border: 1.5px solid var(--accent);
  transition: transform .25s var(--ease), background .2s, box-shadow .25s var(--ease);
}
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(140, 53, 28, .25); }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.hero { position: relative; overflow: hidden; padding: 64px 0 36px; isolation: isolate; }
.hero-bg {
  position: absolute;
  inset: -25% -10% -20%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(180, 74, 42, .16), transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(28, 25, 20, .08), transparent 45%);
  will-change: transform;
  pointer-events: none;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent-d);
  margin: 0 0 12px;
}
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 3.3rem); margin: 0 0 16px; max-width: 16ch; }
.hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.fine { font-size: .9rem; color: var(--muted); margin: 0; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0 0; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.stat b { display: block; font-family: Georgia, serif; font-size: 1.7rem; }
.stat > span { color: var(--muted); font-size: .9rem; }

section { padding: 56px 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0 0 22px; max-width: 40em; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(28, 25, 20, .08); }
}

.price { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #faf6ef; font-family: Georgia, serif; }
tr:last-child td { border-bottom: 0; }
.price .amt { font-weight: 800; white-space: nowrap; }

.fit { display: grid; gap: 14px; grid-template-columns: 1fr; }
.fit .card { position: relative; }
.fit .tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-d);
  background: #f3e0d6;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.fit .price-line { font-family: Georgia, serif; font-size: 1.6rem; margin: 0 0 8px; }
.fit ul { margin: 12px 0 16px; padding: 0 0 0 1.1em; color: var(--ink-soft); }
.fit li { margin: 0 0 6px; }
.recommend { border: 2px solid var(--accent); box-shadow: 0 10px 28px rgba(180, 74, 42, .12); }

/* Style switcher / live preview */
.switcher { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.switch-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.switch-row strong { width: 100%; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 700 14px/1 system-ui, sans-serif;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.preview-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.frame-wrap {
  background: #1c1914;
  border-radius: 16px;
  padding: 12px 12px 16px;
  min-height: 520px;
}
.frame-wrap iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  margin: 0 auto;
  transition: width .35s var(--ease);
}
.frame-wrap.is-mobile iframe { width: 390px; max-width: 100%; height: 680px; }

.note { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.note li { margin: 0 0 8px; }

.contact-box {
  background: var(--ink);
  color: #f4efe6;
  border-radius: 20px;
  padding: 36px 24px;
}
.contact-box h2, .contact-box a { color: #fff; }
.contact-box p { color: #d9d0c3; margin: 0 0 16px; max-width: 36em; }
.contact-box .email {
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  word-break: break-word;
}
.contact-box .email:hover { text-decoration: underline; }

footer { padding: 28px 0 40px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-animate].in { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .grid, .fit, .stats { grid-template-columns: repeat(2, 1fr); }
  .fit { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 80px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .frame-wrap iframe, header.site-header { transition: none; }
  .btn:hover, .card:hover { transform: none; }
  .hero-bg { transform: none !important; }
}
