/* Base */
:root {
  --bg: #F6F2EA;
  --surface: #FFFFFF;
  --text: #14213D;
  --muted: #4D5870;
  --accent: #9A4F14;
  --accent-text: #F6F2EA;
  --plate-bg: #14213D;
  --plate-text: #F6F2EA;
  --line: #E3DCCB;
  --font-heading: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius-card: 8px;
  --radius-btn: 999px;
  --shell: 1200px;
  --shell-narrow: 760px;
  --pad-side: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 0.4vw + 1.05rem, 1.5rem); }

p { margin: 0 0 1em; max-width: 68ch; }

/* Layout */
.l-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--pad-side);
}

.l-shell-narrow { max-width: var(--shell-narrow); }

.l-block {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 128px);
}

.l-block + .l-block { border-top: 1px solid var(--line); }

.l-block:nth-of-type(even) { background: var(--surface); }

.l-block > .l-shell > h2 { margin-bottom: 12px; }

.c-intro {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 62ch;
  margin-bottom: 40px;
}

.l-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.l-grid-thirds { grid-template-columns: 1fr; }

.l-grid-duo { grid-template-columns: 1fr; align-items: start; gap: 32px; }

/* Background layer */
.l-block::before,
.l-block::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: .16;
  background: var(--accent);
}

.l-block::before {
  width: 300px; height: 300px;
  top: 14%; left: -195px;
  border-top-left-radius: 0;
}

.l-block::after {
  width: 380px; height: 380px;
  bottom: -110px; right: -245px;
  clip-path: inset(0 0 50% 0);
}

.l-block > .l-shell { position: relative; z-index: 1; }

/* Note strip */
.c-note-strip {
  background: var(--plate-bg);
  color: var(--plate-text);
  text-align: center;
  padding: 8px 16px;
}

.c-note-strip-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Masthead */
.c-masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: padding .3s ease;
  padding-block: 18px;
}

.c-masthead.is-compact { padding-block: 4px; }

.c-masthead .l-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.c-brand {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  transition: font-size .3s ease;
}

.c-masthead.is-compact .c-brand { font-size: 1.25rem; }

.c-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  cursor: pointer;
}

.c-menu-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.c-menu-toggle[aria-expanded="true"] .c-menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.c-menu-toggle[aria-expanded="true"] .c-menu-toggle-bar:nth-child(2) { opacity: 0; }
.c-menu-toggle[aria-expanded="true"] .c-menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.c-menu-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-menu-link {
  position: relative;
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  padding: 6px 2px;
}

.c-menu-num {
  color: var(--accent);
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .05em;
  vertical-align: super;
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}

.c-menu-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(0);
  transition: transform .25s ease;
}

.c-menu-link:hover::after,
.c-menu-link[aria-current="page"]::after { transform: translateX(-50%) scale(1); }

.c-menu-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.c-menu.is-open { display: block; }

/* Buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-btn);
  background: linear-gradient(115deg, var(--accent) 0%, #B05E1A 50%, var(--accent) 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  color: var(--accent-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-position .35s ease, transform .15s ease;
}

.c-btn:hover { background-position: 0 0; }

.c-btn:focus-visible {
  outline: 4px solid var(--accent);
  outline-offset: 3px;
}

.c-btn:active { transform: scale(.96); }

.c-btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--text);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, transform .15s ease;
}

.c-btn-quiet:hover { background: var(--text); color: var(--bg); }
.c-btn-quiet:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; }
.c-btn-quiet:active { transform: scale(.96); }

/* Hero */
.c-hero-title {
  font-size: clamp(2.5rem, 5vw + 0.8rem, 4.8rem);
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 16px;
}

.c-hero-lead {
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.35rem);
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 48px;
}

.c-hero-photo {
  margin: 24px 0 0;
}

.c-hero-photo img,
.c-photo img {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
}

.c-hero-photo img { aspect-ratio: 16 / 9; }
.c-photo img { aspect-ratio: 4 / 3; }

/* Cards */
.c-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}

.c-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 20px 44px rgb(0 0 0 / .12);
}

.c-card img {
  width: 100%;
  border-radius: var(--radius-card);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 20px;
  transition: transform .45s ease;
}

.c-card.has-photo { overflow: hidden; }

.c-card:hover img { transform: scale(1.05); }

.c-card h3 { margin-bottom: 8px; }

.c-card p { margin-bottom: 0; }

.c-card p + p { margin-top: 10px; }

/* Accent */
.u-accent {
  color: var(--accent);
  font-weight: 600;
}

.c-accent-word {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 9vw + 1rem, 9rem);
  line-height: 1;
  color: var(--accent);
  font-weight: 800;
}

/* Price list */
.c-price-list {
  list-style: none;
  max-width: 720px;
  margin: 0 0 24px;
  padding: 0;
}

.c-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.c-price-value {
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

/* Steps */
.c-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-steps li {
  position: relative;
  padding-left: 56px;
  margin-bottom: 24px;
  counter-increment: step;
}

.c-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.c-steps h3 { margin-bottom: 6px; }
.c-steps p { margin: 0; }

/* FAQ */
.c-qa details {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 4px 24px;
  margin-bottom: 14px;
  max-width: var(--shell-narrow);
}

.c-qa summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 16px 0;
}

.c-qa summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.c-qa p { margin: 0 0 20px; }

/* Plate */
.c-plate {
  background: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 56px);
  max-width: 880px;
}

.c-plate h2 { color: var(--plate-text); }

.c-plate a { color: #E8C49B; }

.c-plate p { color: var(--plate-text); opacity: .92; }

/* Form */
.c-form {
  display: grid;
  gap: 20px;
  max-width: var(--shell-narrow);
}

.c-field { display: grid; gap: 6px; }

.c-field-label { font-weight: 600; font-size: 15px; }

.c-input,
.c-textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  width: 100%;
}

.c-input::placeholder { color: var(--muted); opacity: 1; }

.c-input:focus-visible,
.c-textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

.c-field.is-invalid .c-input,
.c-field.is-invalid .c-textarea { border-color: #A33B1E; }

.c-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}

.c-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }

.c-form-note { color: var(--muted); font-size: 14px; margin: 0; }

.c-form-btn { width: 100%; max-width: 320px; }

.c-form.is-sending .c-form-btn {
  opacity: .6;
  pointer-events: none;
}

/* Prose */
.c-prose { max-width: var(--shell-narrow); }

.c-prose h2 { margin-top: 48px; }
.c-prose h3 { margin-top: 32px; }

.c-prose ul, .c-prose ol { padding-left: 1.4em; }
.c-prose li { margin-bottom: 8px; }

.c-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.c-prose th, .c-prose td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}

.c-prose th { background: var(--surface); }

/* Inner page header */
.c-page-head {
  padding-block: clamp(48px, 7vw, 96px) clamp(24px, 3vw, 40px);
}

.c-page-head h1 { margin-bottom: 16px; }

.c-page-head p { color: var(--muted); font-size: 1.1rem; }

/* Contacts */
.c-contact-block {
  display: grid;
  gap: 16px;
  max-width: var(--shell-narrow);
}

.c-contact-item {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}

/* Skip link */
.c-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plate-bg);
  color: var(--plate-text);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-card) 0;
  z-index: 100;
}

.c-skip:focus { left: 0; }

/* Utility */
.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Footer */
.c-foot {
  background: var(--plate-bg);
  color: var(--plate-text);
  padding-block: clamp(48px, 6vw, 80px) 24px;
}

.c-foot a { color: #E8C49B; }
.c-foot a:hover { color: var(--plate-text); }

.l-foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.c-foot-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 14px;
}

.c-foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-foot-list li { margin-bottom: 8px; font-size: 15px; }

.c-foot address { font-style: normal; font-size: 15px; }
.c-foot address p { margin: 0 0 8px; }

.c-foot ul li span { opacity: .7; margin-right: 4px; }

.c-foot-copy {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgb(246 242 234 / .2);
  font-size: 14px;
  opacity: .85;
}

/* Reveal */
html.has-js .c-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

html.has-js .c-reveal.is-shown {
  opacity: 1;
  transform: none;
}

.c-center {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
}

/* Breakpoints */
@media (min-width: 480px) {
  .c-form-btn { width: auto; }
}

@media (min-width: 640px) {
  .l-grid { grid-template-columns: repeat(2, 1fr); }
  .l-foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .l-grid-duo { grid-template-columns: 1fr 1fr; }
  .c-contact-block { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .l-grid-thirds { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .l-grid-thirds .l-span-two { grid-column: span 2; }
  .l-grid-thirds .l-span-two p { max-width: 52ch; }
  .l-foot-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .c-masthead .l-shell { gap: 8px; }

  .c-menu-toggle { display: flex; }

  .c-menu {
    display: none;
    width: 100%;
  }

  .c-menu.is-open { display: block; }

  .c-menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .c-menu-link {
    display: block;
    padding: 12px 4px;
    font-size: 17px;
  }
}

@media (min-width: 1280px) {
  .l-block::before { width: 420px; height: 420px; }
  .l-block::after { width: 520px; height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html.has-js .c-reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .l-grid { gap: 16px; }
  .c-card { padding: 20px; }
  .c-card img { margin-bottom: 14px; }
}

@media (min-width: 1280px) {
  .l-block::before { width: 360px; height: 360px; left: -235px; }
  .l-block::after { width: 440px; height: 440px; right: -285px; }
}
