/* Root */
:root {
  --bg: #10201B;
  --surface: #172B25;
  --text: #EEF3EF;
  --muted: #A9BDB3;
  --accent: #E9B949;
  --accent-ink: #10201B;
  --plate-bg: #E9B949;
  --plate-ink: #10201B;
  --line: #2A443B;
  --bg-2: #16281F;
  --font-head: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --wrap-text: 760px;
  --pad: clamp(16px, 4vw, 40px);
  --sec-gap: clamp(64px, 9vw, 128px);
  --radius: 0;
  --shadow: 0 1px 2px rgb(0 0 0 / .18), 0 12px 32px rgb(0 0 0 / .25);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
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; object-fit: cover; }
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { max-width: 68ch; margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: none; }
ul, ol { padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.block { padding-block: calc(var(--sec-gap) / 2); }
.skip-line {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; z-index: 100; font-weight: 600;
}
.skip-line:focus { left: 12px; top: 12px; }
.num {
  color: var(--muted); font-size: 0.82em;
  margin-right: 0.5em; font-variant-numeric: tabular-nums;
}
.mark {
  color: var(--accent);
  font-weight: 600;
}

/* Background stripes */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: repeating-linear-gradient(
    115deg,
    var(--bg) 0px,
    var(--bg) 220px,
    var(--bg-2) 220px,
    var(--bg-2) 440px
  );
}

/* Announcement */
.note-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 8px var(--pad);
}
.note-bar p {
  margin: 0; color: var(--muted);
  font-size: 0.875rem; max-width: none;
}

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgb(16 32 27 / .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transition: padding .3s ease;
}
.topbar .wrap { text-align: center; padding-block: 20px; transition: padding .3s ease; }
.brand {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em;
  line-height: 1.2;
}
.menu-list {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 22px;
}
.menu-link {
  color: var(--muted); text-decoration: none;
  font-size: 1rem; padding: 6px 2px; display: inline-block;
  transition: color .2s ease;
}
.menu-link:hover { color: var(--text); }
.menu-link:focus-visible { color: var(--text); outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-link[aria-current="page"] { color: var(--accent); }
.menu-toggle {
  display: none;
  background: none; color: var(--text);
  border: 2px solid var(--line);
  font: inherit; font-size: 1rem;
  padding: 8px 18px; margin-top: 10px;
  cursor: pointer;
}
.menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.topbar.is-compact .wrap { padding-block: 8px; }
.topbar.is-compact .brand { font-size: 1.15rem; }
.topbar.is-compact .menu-list { margin-top: 6px; gap: 6px 18px; }

/* Mobile menu */
@media (max-width: 768px) {
  .menu-toggle { display: inline-block; }
  .menu {
    display: none;
    text-align: left;
    border-top: 1px solid var(--line);
    margin-top: 10px;
  }
  .menu.is-open { display: block; }
  .menu-list { flex-direction: column; gap: 0; align-items: stretch; }
  .menu-link {
    display: block; padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }
  .menu.is-open .menu-link {
    animation: menu-in .25s ease both;
  }
  .menu.is-open li:nth-child(1) .menu-link { animation-delay: .05s; }
  .menu.is-open li:nth-child(2) .menu-link { animation-delay: .1s; }
  .menu.is-open li:nth-child(3) .menu-link { animation-delay: .15s; }
  .menu.is-open li:nth-child(4) .menu-link { animation-delay: .2s; }
  .menu.is-open li:nth-child(5) .menu-link { animation-delay: .25s; }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font: inherit; font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--accent);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.btn:active { background: #c99a2e; border-color: #c99a2e; color: var(--accent-ink); }
.btn-plain { border-color: var(--line); color: var(--muted); }
.btn-plain:hover { background: var(--surface); color: var(--text); }
.btn-plain:active { background: var(--line); border-color: var(--line); color: var(--text); }

/* Hero */
.hero { padding-top: calc(var(--sec-gap) / 2); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: center;
}
.plate {
  background: var(--plate-bg); color: var(--plate-ink);
  padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 64px);
  position: relative; z-index: 2;
  margin-right: clamp(-24px, -3vw, -56px);
  box-shadow: var(--shadow);
}
.hero-title {
  color: var(--plate-ink);
  display: flex; flex-direction: column;
  text-wrap: balance; max-width: 34ch;
  margin-bottom: 0.4em;
}
.hero-line { display: block; animation: rise .5s ease both; }
.hero-line:nth-child(2) { animation-delay: .12s; }
.hero-line:nth-child(3) { animation-delay: .24s; }
@keyframes rise {
  from { transform: translateY(8px); }
  to { transform: none; }
}
.hero-lead { color: var(--plate-ink); font-weight: 500; max-width: 34ch; }
.hero .btn { border-color: var(--plate-ink); color: var(--plate-ink); }
.hero .btn:hover { background: var(--plate-ink); color: var(--plate-bg); }
.hero .btn:focus-visible { outline: 2px solid var(--plate-ink); outline-offset: 4px; }
.hero .btn:active { background: #0a1713; border-color: #0a1713; color: var(--plate-bg); }
.hero-fig { margin: 0; }
.hero-fig img { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); }

/* Split layout */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px); align-items: stretch;
}
.split-side { position: sticky; top: 96px; }
.block-title { max-width: 22ch; }
.block-lead { color: var(--muted); max-width: 56ch; }

/* Segmented control */
.seg {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 24px 0 16px;
}
.seg-btn {
  background: var(--surface); color: var(--text);
  border: 2px solid rgb(233 185 73 / .4);
  font: inherit; font-size: 0.95rem;
  padding: 14px 28px; min-height: 52px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.seg-btn:hover { color: var(--text); border-color: var(--accent); }
.seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.seg-btn:active { background: var(--line); }
.seg-btn[aria-selected="true"] {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-ink); font-weight: 600;
}
.seg-text { color: var(--text); }

/* Steps */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 32px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step h3 { font-size: 1.25rem; margin-bottom: 0.35em; }
.step p { margin: 0; color: var(--muted); }

/* Tiles */
.tile-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 32px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile h3 { margin-bottom: 16px; }
.tile h3 a { color: var(--text); text-decoration: none; }
.tile h3 a:hover { color: var(--accent); }
.tile h3 a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile p { margin: 0; color: var(--muted); max-width: 32ch; }
.tile-init {
  display: block;
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700; color: var(--accent);
  line-height: 1; margin-bottom: 16px;
}
.tile-fig { margin: 96px 0; }
.tile-fig img { width: 100%; max-height: 560px; aspect-ratio: 16 / 9; border: 1px solid var(--line); }

/* Gallery */
.gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 32px;
  align-items: start;
}
.gal-item { margin: 0; min-width: 0; }
.gal-item img { width: 100%; border: 1px solid var(--line); }
.gal-wide img { aspect-ratio: 16 / 9; }
.gal-tall img { aspect-ratio: 3 / 4; }
.gal-slim img { aspect-ratio: 1 / 1; }
.gal-item figcaption {
  font-size: 0.875rem; color: var(--muted);
  padding-top: 8px;
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 24px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600;
  font-family: var(--font-head); font-size: 1.1rem;
}
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-item p { margin: 12px 0 0; color: var(--muted); }

/* Form */
.lead-form {
  max-width: var(--wrap-text);
  display: grid; gap: 18px;
  margin-top: 24px;
}
.field { display: grid; gap: 6px; }
.field-label { font-weight: 600; font-size: 0.95rem; }
.field-input {
  font: inherit; color: var(--text);
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 12px 14px; width: 100%;
  transition: border-color .2s ease;
}
.field-input::placeholder { color: var(--muted); opacity: 1; }
.field-input:focus { outline: none; border-color: var(--accent); }
.field-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-area { resize: vertical; min-height: 120px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.field-check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.field-check a { color: var(--accent); }
.field-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.is-invalid { border-color: #d98a6a; }
.is-invalid:focus { border-color: #d98a6a; }
.lead-form.is-busy .form-btn { opacity: .6; pointer-events: none; }

/* Contacts */
.contacts-plate {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.contacts-plate ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.contacts-plate li span {
  display: inline-block; min-width: 90px;
  color: var(--muted); font-size: 0.9rem;
}
.contacts-more { color: var(--muted); }

/* Footer */
.bottom {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 48px 24px;
  margin-top: calc(var(--sec-gap) / 2);
}
.bottom-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.bottom-head { font-size: 1.1rem; }
.bottom-text { color: var(--muted); font-size: 0.95rem; }
.owner-box { font-style: normal; color: var(--muted); font-size: 0.95rem; }
.owner-box p { margin-bottom: 8px; }
.bottom-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bottom-col a { color: var(--muted); text-decoration: none; }
.bottom-col a:hover { color: var(--accent); }
.bottom-col a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-line {
  margin: 32px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.875rem;
}

/* Inner pages */
.page-head { padding-top: calc(var(--sec-gap) / 2); }
.page-lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

/* Prose */
.prose { max-width: var(--wrap-text); }
.prose h2 { font-size: clamp(1.5rem, 2vw + 0.8rem, 2.2rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose .brief {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 16px 20px; color: var(--muted);
}
.prose table {
  width: 100%; border-collapse: collapse;
  font-size: 0.95rem; margin: 1.5em 0;
}
.prose th, .prose td {
  text-align: left; padding: 10px 12px;
  border: 1px solid var(--line);
}
.prose th { color: var(--accent); font-weight: 600; }

/* Status pages */
.status-page { text-align: center; padding-block: var(--sec-gap); }
.status-page h1 { font-size: clamp(3rem, 8vw, 5rem); color: var(--accent); }
.status-page .btn { margin-top: 16px; }

/* Big type accent */
.mark-big {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw + 1rem, 5.5rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--accent); font-weight: 700;
}

/* Reveal */
html.has-js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
html.has-js .reveal.is-shown { opacity: 1; transform: none; }

/* Breakpoints */
@media (max-width: 1280px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-side { position: static; }
}
@media (max-width: 1024px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .gal-wide { grid-column: span 2; }
  .tile-fig { margin: 64px 0; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .plate { margin-right: 0; padding: 32px 24px; }
  .hero-title { font-size: clamp(28px, 8vw, 36px); }
  .hero .btn { width: 100%; min-height: 52px; }
  .hero-fig { order: -1; }
  .hero-fig img { aspect-ratio: 16 / 9; }
  .bottom-grid { grid-template-columns: 1fr 1fr; }
  .tile-init { font-size: 40px; }
  .tile { padding: 24px 20px; }
  .tile-grid { gap: 16px; }
}
@media (max-width: 640px) {
  .tile-grid { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr; }
  .gal-wide { grid-column: auto; }
  .bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .note-bar { font-size: 0.8rem; }
  .note-bar p { max-width: 32ch; margin: 0 auto; line-height: 1.6; }
  .plate { padding: 24px 20px; }
  .btn { width: 100%; }
  .contacts-plate li span { display: block; min-width: 0; }
}

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