/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ===== Vars ===== */
:root {
  --primary: #7C3520;
  --primary-dark: #5E2716;
  --accent: #D4A45C;
  --accent-dark: #B9863C;
  --bg: #FAF6F1;
  --bg-alt: #F2EBE0;
  --surface: #FFFFFF;
  --text: #2A1810;
  --muted: #6E5344;
  --line: #E3D7C9;
  --radius: 4px;
  --shadow: 0 8px 24px rgba(42, 24, 16, 0.06);
  --wrap: 1200px;
  --gutter: 20px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ===== Typography ===== */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.kicker {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.lede { font-size: 1.0625rem; max-width: 56ch; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; }
.brand-sub { display: block; font-family: var(--font-body); font-size: 0.6875rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin-top: 1px; }

.nav-list { display: none; }
.nav-link { font-size: 0.9375rem; font-weight: 500; color: var(--text); padding: 6px 0; position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.lang-btn {
  border: 0; background: transparent; cursor: pointer; padding: 7px 11px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted);
}
.lang-btn[aria-pressed="true"] { background: var(--primary); color: #fff; }

.burger {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; display: grid; place-content: center; gap: 5px;
}
.burger span { display: block; width: 19px; height: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: var(--bg);
  padding: 12px var(--gutter) 22px;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-menu a:last-of-type { border-bottom: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #2A1810; }
.btn-accent:hover { background: var(--accent-dark); }

/* ===== Sections ===== */
.section { padding: 60px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 34px; }

#services { background: var(--bg-alt); border-top-color: #DCCFBD; }

#process { background: var(--primary); color: #F3E5D8; border-top: 0; }
#process .kicker { color: var(--accent); }
#process h2, #process h3 { color: #fff; }
#process p { color: rgba(243, 229, 216, 0.82); }
#process .step-num { color: var(--accent); }
#process .step { border-bottom-color: rgba(243, 229, 216, 0.22); }
#process .step:first-child, #process .step:nth-child(2) { border-top-color: rgba(243, 229, 216, 0.22); }

/* ===== Hero (asymmetric split) ===== */
.hero { padding: 26px 0 44px; border-top: 0; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 15% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 80% at 15% 0%, #000 0%, transparent 70%);
  opacity: .7; pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 34px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); border: 1px solid var(--line); background: var(--surface);
  padding: 7px 13px; border-radius: var(--radius); margin-bottom: 20px;
}
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex: none; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 1.125rem; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-side { display: grid; gap: 18px; }
.hero-visual {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(135deg, #2E1811 0%, #5C2716 58%, #38190E 100%);
}
.hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.gallery-grid figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface);
}
.gallery-grid img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figure:first-child { grid-column: 1 / -1; }
.gallery-grid figure:first-child img { aspect-ratio: 16 / 9; }

.credentials {
  background: var(--primary); color: #F3E5D8; border-radius: var(--radius);
  padding: 26px 24px; position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.credentials::after {
  content: ""; position: absolute; right: -46px; top: -46px; width: 190px; height: 190px;
  border: 22px solid rgba(212, 164, 92, 0.16); transform: rotate(45deg);
}
.credentials h2 {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.cred-list { position: relative; display: grid; gap: 13px; }
.cred-list div { display: grid; gap: 2px; }
.cred-list dt, .cred-key { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243, 229, 216, 0.84); }
.cred-val { font-weight: 600; color: #fff; font-size: 0.9375rem; word-break: break-word; }

/* ===== About ===== */
.about-grid { display: grid; gap: 28px; }
.about-text p + p { margin-top: 16px; }
.facts { display: grid; gap: 14px; }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 15px 17px;
}
.fact-key { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fact-val { font-weight: 600; margin-top: 3px; word-break: break-word; }

/* ===== Services (icon row) ===== */
.services-row { display: grid; gap: 26px; align-items: start; }
.service { display: flex; flex-direction: column; gap: 12px; }
.service-icon {
  width: 56px; height: 56px; flex: none; align-self: start; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); display: grid; place-content: center; color: var(--primary);
}
.service h3 { line-height: 1.3; margin: 0; }
.service p { font-size: 0.9375rem; }
.service-index { font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--primary); font-weight: 600; }

/* ===== Process ===== */
.process-list { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.step:first-child { border-top: 1px solid var(--line); }
.step-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--accent-dark); line-height: 1; padding-top: 2px; }
.step p { font-size: 0.9375rem; margin-top: 4px; }

/* ===== Contact ===== */
.contact-grid { display: grid; gap: 30px; }
.contact-list { display: grid; gap: 16px; margin-bottom: 22px; }
.contact-item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.contact-item svg { color: var(--primary); margin-top: 2px; }
.contact-label { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-weight: 600; word-break: break-word; }
a.contact-value:hover { color: var(--primary); }
.map-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.map-card__media { position: relative; height: 150px; }
.map-card__art { display: block; width: 100%; height: 150px; object-fit: cover; }
.map-card__embed { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.map-card__body { padding: 14px 17px 16px; border-top: 1px solid var(--line); }
.map-card__addr { font-weight: 600; color: var(--text); font-size: 0.9375rem; margin-top: 4px; }
.map-card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--primary); font-weight: 600; font-size: 0.875rem; }
.map-card__link::after { content: "\2192"; }
.map-card__link:hover { text-decoration: underline; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); font-size: 0.9375rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 108px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8125rem; color: var(--muted); margin-bottom: 16px; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--primary); }
.consent a { color: var(--primary); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.8125rem; margin-top: 12px; min-height: 20px; }
.form-note.ok { color: #2E6B3E; font-weight: 600; }
.form-note.err { color: #A3301C; font-weight: 600; }
.form-card .btn { width: 100%; }

/* ===== Footer ===== */
.site-footer { background: var(--primary); color: #EADDD1; padding: 46px 0 24px; }
.footer-grid { display: grid; gap: 26px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand-row { display: flex; align-items: center; gap: 11px; }
.footer-brand p { color: rgba(234, 221, 209, 0.78); font-size: 0.875rem; margin-top: 12px; max-width: 40ch; }
.footer-col h2 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 13px; }
.footer-col li { margin-bottom: 8px; font-size: 0.875rem; color: rgba(234, 221, 209, 0.86); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(234, 221, 209, 0.2);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: 0.8125rem; color: rgba(234, 221, 209, 0.85);
}
.footer-bottom a:hover { color: #fff; }

/* ===== Legal page ===== */
.legal-page { padding: 48px 0 64px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 10px; }
.legal-meta { font-size: 0.8125rem; color: var(--muted); margin-bottom: 34px; }
.legal-page h2 { font-size: 1.25rem; margin: 30px 0 10px; }
.legal-page p, .legal-page li { font-size: 0.9375rem; color: var(--muted); }
.legal-page ul { margin: 10px 0 0 18px; list-style: disc; }
.legal-page li { margin-bottom: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 600; font-size: 0.875rem; margin-top: 34px; }
.back-link:hover { text-decoration: underline; }

/* ===== Media queries ===== */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .services-row { grid-template-columns: repeat(2, 1fr); gap: 30px 26px; }
  .service h3 { min-height: 2.93rem; }
  .form-card .btn { width: auto; min-width: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --gutter: 36px; }
  .burger, .mobile-menu { display: none !important; }
  .nav-list { display: flex; gap: 26px; align-items: center; }
  .section { padding: 104px 0; }
  .section > .wrap { width: 100%; }
  .hero { padding: 56px 0 80px; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
  .credentials { padding: 34px 32px; }
  .about-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:first-child { grid-column: 1 / -1; }
  .services-row { grid-template-columns: repeat(4, 1fr); gap: 30px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .gallery-grid figure:first-child { grid-column: span 2; }
  .gallery-grid figure:first-child img { aspect-ratio: 2 / 1; }
  .process-list { grid-template-columns: repeat(2, 1fr); column-gap: 44px; }
  .step:nth-child(2) { border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: start; }
  .map-card__media { height: 180px; }
  .map-card__art { height: 180px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
  .legal-page { padding: 64px 0 80px; }
}

@media (min-width: 1200px) {
  .hero-inner { gap: 72px; }
  .credentials { padding: 38px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
