/* Base */
:root {
  --bg: #FFF8F4;
  --surface: #FFFFFF;
  --text: #2B1D14;
  --muted: #6B5545;
  --accent: #B53A0B;
  --accent-text: #FFFFFF;
  --plate-bg: #2B1D14;
  --plate-text: #FFE8D6;
  --line: #E7D7CB;
  --font-heading: Optima, Candara, 'Segoe UI', 'Noto Sans', sans-serif;
  --font-body: Georgia, Cambria, 'Times New Roman', serif;
  --radius-card: 14px;
  --radius-btn: 6px;
  --shadow-soft: 0 1px 2px rgb(43 29 20 / .06), 0 12px 32px rgb(43 29 20 / .08);
  --pad-side: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  max-width: 100%;
  overflow-x: clip;
  margin: 0;
  background-color: var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  position: relative;
}

h1, h2, h3, p, li, summary, figcaption, address {
  overflow-wrap: break-word;
  max-width: 100%;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }
h3 { font-size: clamp(1.2rem, 1vw + 0.6rem, 1.5rem); }

p { max-width: 62ch; }

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

/* Layout */
.l-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad-side);
  padding-right: var(--pad-side);
}

.l-block { padding: clamp(64px, 7vw, 96px) 0; }
.l-block:nth-child(even) { background: #FFFDFC; }

.l-hero > *,
.l-zigzag > *,
.c-rubric-list > *,
.l-foot-grid > *,
.l-topbar-row > * { min-width: 0; }

.u-prose { max-width: 760px; }
.u-prose p, .u-prose ul, .u-prose ol { max-width: 68ch; }
.u-prose ol { padding-left: 1.4rem; }
.u-prose li { margin: 8px 0; }
.u-prose table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.u-prose th, .u-prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }

.u-lead { font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem); color: var(--muted); margin: 12px 0 32px; }

.u-accent {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw + 1rem, 5.2rem);
  line-height: 1.05;
}

.u-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-btn);
  z-index: 60;
}
.u-skip:focus { left: 8px; color: var(--accent); }

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

/* Header */
.l-topbar {
  background: var(--surface);
  min-height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.l-topbar-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.l-topbar-rule {
  width: 100%;
  height: 4px;
  background: var(--accent);
}

.c-brand {
  margin-left: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.c-brand-foot { margin: 0 0 16px; }

/* Menu */
.c-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.c-menu-toggle-bar {
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}
.has-menu-open .c-menu-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.has-menu-open .c-menu-toggle-bar:nth-child(2) { opacity: 0; }
.has-menu-open .c-menu-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.c-menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.c-menu-link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 0;
  background-position: bottom left;
  transition: background-size .28s ease, color .28s ease;
}
.c-menu-link:hover { background-size: 100% 100%; color: var(--accent-text); }
.c-menu-link[aria-current="page"] { color: var(--accent); }
.c-menu-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 2px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: menu-dot .6s ease;
}
@keyframes menu-dot { from { transform: scale(0); } to { transform: scale(1); } }

/* Note under header */
.c-note {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 16px 20px;
  margin: 16px 0 0;
}
.c-note p { margin: 0; font-size: 0.95rem; }

/* Hero */
.l-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.l-hero-copy p { font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.3rem); }

.c-hero-photo {
  margin: 32px 0 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.c-hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius-card) - 6px);
}

/* Steps / zigzag */
.l-zigzag {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.c-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3vw, 32px);
  transition: transform .3s ease, box-shadow .3s ease;
}
.c-step:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(43 29 20 / .08), 0 18px 40px rgb(43 29 20 / .12); }
.c-step-no {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  margin-right: 8px;
}
.c-step p { margin-bottom: 0; }

/* Rubrics */
.c-rubric-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.c-rubric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3vw, 32px);
  overflow: hidden;
  transition: transform .3s ease;
}
.c-rubric:hover { transform: translateY(-4px); }
.c-rubric a { font-weight: 600; }

/* Prices */
.c-price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}
.c-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.c-price:first-child { border-top: 1px solid var(--line); }
.c-price-val { color: var(--accent); font-weight: 600; text-align: right; }

/* Plate */
.c-slab {
  background: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}
.c-slab-title { color: var(--plate-text); }
.c-slab p { color: var(--plate-text); }
.c-slab a { color: #FFC9A6; }
.c-slab-contacts {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
}
.c-slab-contacts span {
  display: inline-block;
  min-width: 88px;
  color: #EFCDB4;
}

/* FAQ */
.c-qa { max-width: 760px; }
.c-qa-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  overflow: hidden;
}
.c-qa-item summary {
  cursor: pointer;
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  list-style-position: inside;
}
.c-qa-item[open] summary { color: var(--accent); }
.c-qa-item p { padding: 0 24px 18px; margin: 0; }
.c-qa-item summary::marker { color: var(--accent); }

/* Buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 220px;
  max-width: 100%;
  padding: 14px 28px;
  text-align: center;
  white-space: normal;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
  background-image: linear-gradient(120deg, var(--accent) 0%, #8F2E09 50%, var(--accent) 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  transition: background-position .35s ease, color .25s ease, background-color .15s ease, filter .15s ease;
}
.c-btn:hover {
  background-position: 0 0;
  background-repeat: no-repeat;
  color: var(--accent-text);
}
.c-btn:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
.c-btn:active { filter: brightness(.82); }

.c-btn-alt {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  padding: 0 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--plate-text);
  border: 2px solid var(--plate-text);
  border-radius: var(--radius-btn);
  text-decoration: none;
  background-image: linear-gradient(120deg, var(--plate-text) 0%, #FFF3E6 50%, var(--plate-text) 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  transition: background-position .35s ease, color .25s ease, filter .15s ease;
}
.c-btn-alt:hover { background-position: 0 0; background-repeat: no-repeat; color: var(--plate-bg); }
.c-btn-alt:focus-visible { outline: 3px solid #FFF3E6; outline-offset: 4px; }
.c-btn-alt:active { filter: brightness(.85); }

/* Form */
.c-inquiry {
  max-width: 480px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 3vw, 32px);
}
.l-hero-form .c-inquiry h2, .c-inquiry h2 { margin-top: 0; }
.c-inquiry-row { margin-bottom: 16px; }
.c-inquiry-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.c-inquiry-input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
}
.c-inquiry-input::placeholder { color: #7A6555; }
.c-inquiry-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.is-invalid .c-inquiry-input, .c-inquiry-input.is-invalid { border-color: #8F2E09; }
.c-inquiry-area { resize: vertical; min-height: 140px; }
.c-inquiry-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 0.95rem; }
.c-inquiry-consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); flex-shrink: 0; }
.c-inquiry-note { font-size: 0.9rem; color: var(--muted); margin: 0 0 16px; }
.c-inquiry-send { width: 100%; color: #FFE8D6; font-weight: 600; padding: 14px 24px; }
.c-inquiry-send.is-busy { opacity: .65; pointer-events: none; }

/* Cards with zooming image */
.c-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .3s ease;
}
.c-tile:hover { transform: translateY(-4px); }
.c-tile figure { margin: 0; overflow: hidden; }
.c-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}
.c-tile:hover img { transform: scale(1.06); }
.c-tile-body { padding: clamp(20px, 3vw, 28px); }

/* Photos with mat frame */
.c-photo-frame {
  margin: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.c-photo-frame img {
  width: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-card) - 6px);
}

/* Reveal */
html.has-js .c-fade { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.has-js .c-fade.is-visible { opacity: 1; transform: none; }

/* Inner page head */
.c-page-head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 48px); }
.c-page-head p { color: var(--muted); font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem); }

/* Contacts block */
.c-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-contacts li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.c-contacts span { display: inline-block; min-width: 88px; color: var(--muted); }

.c-status {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.c-status-code {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3.5rem, 8vw + 1rem, 7rem);
  color: var(--accent);
  line-height: 1;
}

/* Footer */
.l-foot {
  background: var(--surface);
  border-top: 4px solid var(--accent);
  padding: clamp(40px, 6vw, 72px) 0 24px;
  margin-top: clamp(48px, 7vw, 96px);
}
.l-foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.l-foot-title {
  font-size: 1.1rem;
  margin: 0 0 16px;
}
.l-foot-col address { font-style: normal; }
.l-foot-col address p { margin: 0 0 8px; font-size: 0.95rem; }
.l-foot-links { list-style: none; margin: 0; padding: 0; }
.l-foot-links li { margin-bottom: 10px; }
.l-foot-copy {
  border-top: 1px solid var(--line);
  margin: 32px 0 0;
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Breakpoints */
@media (min-width: 480px) {
  .c-rubric-list { grid-template-columns: 1fr 1fr; }
  .l-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .l-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
  .l-zigzag { grid-template-columns: 1fr 1fr; }
  .l-foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 767px) {
  .c-menu-toggle { display: flex; }
  .c-menu-list {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 8px;
  }
  .has-menu-open .c-menu-list { display: flex; }
  .c-menu-link { display: block; padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .l-topbar-row { flex-wrap: wrap; }
  .c-brand { margin-left: 0; order: -1; width: 100%; }
}

@media (min-width: 768px) {
  .l-zigzag { grid-template-columns: 1fr 1fr; gap: 28px; }
  .c-inquiry-send { width: auto; }
}

@media (min-width: 1024px) {
  .l-zigzag { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
  .c-rubric-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .l-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

@media (max-height: 600px) {
  .l-block:first-of-type { padding-top: 32px; }
  h1 { font-size: clamp(2rem, 3vw + 0.5rem, 3.2rem); }
}

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

/* Hero copy */
.l-hero-copy { text-align: center; }
.l-hero-copy h1 { text-align: center; margin: 0 auto; max-width: 16ch; }
.l-hero-copy p { margin-left: auto; margin-right: auto; }

/* Step cards */
.c-step { display: flex; flex-direction: column; }
.c-step h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.c-step-no { flex-shrink: 0; }

/* Slab content */
.c-slab-title { text-align: center; }
.c-slab p { font-size: 1.0625rem; line-height: 1.7; max-width: 640px; margin-left: auto; margin-right: auto; }
.c-slab-contacts { max-width: 640px; margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
  .l-zigzag { gap: 16px; }
  .c-step { padding: 20px; }
}

/* Header wrap guard */
@media (min-width: 768px) and (max-width: 1024px) {
  .c-menu-list { gap: 2px; }
  .c-menu-link { padding: 8px 8px; }
  .c-brand { padding-left: 8px; }
}

/* Background layer */
body {
  background-image:
    radial-gradient(520px 520px at 8% 12%, rgb(181 58 11 / .18), transparent 70%),
    radial-gradient(640px 640px at 92% 32%, rgb(181 58 11 / .14), transparent 70%),
    radial-gradient(560px 560px at 30% 88%, rgb(181 58 11 / .12), transparent 70%),
    radial-gradient(480px 480px at 75% 78%, rgb(181 58 11 / .16), transparent 70%);
  background-attachment: scroll;
}
@media (min-width: 1280px) {
  .c-fade { transition: opacity .6s ease, transform .6s ease; }
}
