/* Base */
:root {
  --bg: #10201B;
  --surface: #172B25;
  --text: #EEF3EF;
  --muted: #A9BDB3;
  --accent: #E9B949;
  --accent-text: #10201B;
  --plate-bg: #E9B949;
  --plate-text: #10201B;
  --line: #2A3F36;
  --font-head: 'Gill Sans', 'Gill Sans MT', Calibri, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius-card: 20px;
  --radius-btn: 14px;
  --pad-side: clamp(16px, 4vw, 40px);
  --shadow-soft: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
  --shadow-glow: 0 10px 34px rgb(233 185 73 / .16);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -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;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

figure { margin: 0; }
address { font-style: normal; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  overflow-wrap: break-word;
}

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, 1vw + 0.9rem, 1.5rem); }

p { margin: 0 0 16px; max-width: 68ch; overflow-wrap: break-word; }
li { overflow-wrap: break-word; }

section[id] { scroll-margin-top: 96px; }

/* Backdrop layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 12% 8%, rgb(233 185 73 / .18), transparent 70%),
    radial-gradient(38vw 38vw at 88% 32%, rgb(233 185 73 / .15), transparent 70%),
    radial-gradient(46vw 46vw at 70% 92%, rgb(233 185 73 / .12), transparent 72%);
}

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

.block { padding-block: clamp(64px, 9vw, 128px); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-btn) 0;
  z-index: 60;
}
.skip:focus { left: 0; color: var(--accent-text); }

/* Header */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px var(--pad-side) 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.topbar-capsule {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 720px;
  background: rgb(17 32 27 / .92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: var(--shadow-soft);
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}
.brand:hover { color: var(--text); opacity: .85; }

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.menu-btn-line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.menu-open .menu-btn-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn-line:nth-child(2) { opacity: 0; }
.menu-open .menu-btn-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-btn:hover { border-color: var(--accent); }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-btn:active { transform: translateY(1px); }

/* Fullscreen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(16 32 27 / .97);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 88px var(--pad-side) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu.menu-open,
body.menu-open .menu {
  display: flex;
  animation: menu-in .3s ease;
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.menu-link {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness .3s ease, color .3s ease;
}
.menu-link:hover,
.menu-link[aria-current="page"] {
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 4px;
}
.menu-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu ul li { color: var(--muted); }
.menu ul li span { color: var(--muted); margin-right: 6px; }
.menu ul li a { color: var(--muted); }
.menu ul li a:hover { color: var(--accent); }

/* Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  position: relative;
  z-index: 0;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  border-radius: inherit;
  transform: scale(0);
  opacity: 0;
  transition: transform .45s ease, opacity .45s ease;
}
.cta:hover::before { transform: scale(1.4); opacity: .18; }
.cta:hover { color: var(--accent-text); background: #F2C563; }
.cta:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.cta:active { transform: translateY(1px); }

.cta-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  border-radius: 6px;
  transition: color .3s ease;
}
.cta-quiet:hover { color: var(--accent); }
.cta-quiet:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta-quiet:active { transform: translateY(1px); }

/* Reveal */
html.is-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
html.is-ready .reveal.is-shown {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
#hero { padding-top: clamp(120px, 16vw, 168px); padding-bottom: clamp(72px, 8vw, 120px); }

.hero-collage {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: clamp(28px, 5vw, 48px);
}
.hero-collage img { width: 100%; border-radius: var(--radius-card); aspect-ratio: 16 / 9; }
.hero-collage img:last-child { aspect-ratio: 3 / 4; height: 100%; }

.hero-lead {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.hero-lead h1 { max-width: 14ch; margin-bottom: 20px; }
.hero-lead p { margin-top: -0.4em; }

.hero-line { display: inline-block; }

html.is-ready .hero-line { animation: rise .7s ease both; }
html.is-ready .hero-line:nth-child(2) { animation-delay: .18s; }
@keyframes rise {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* Accent typography */
.accent {
  display: block;
  font-size: clamp(2.6rem, 5.2vw + 1rem, 5.4rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Plate */
.plate {
  background: var(--plate-bg);
  color: var(--plate-text);
  padding: 20px 24px;
  border-radius: 16px;
  font-weight: 500;
  max-width: 52ch;
}
.plate a { color: var(--plate-text); text-decoration: underline; text-underline-offset: 3px; }
.plate a:hover { color: var(--plate-text); }

/* Two columns */
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.two-col .prose p { max-width: 52ch; }

.mat-frame {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.mat-frame img { border-radius: 12px; aspect-ratio: 4 / 3; }
.mat-frame figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Panels */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: box-shadow .35s ease, transform .35s ease;
}
.panel:hover { box-shadow: var(--shadow-glow); transform: translateY(-3px); }

.panel.is-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.panel-initial {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.panel-list {
  margin: 0 0 8px;
  padding-left: 20px;
  color: var(--muted);
  flex-grow: 1;
}
.panel-list li { margin-bottom: 6px; }

.panel-price {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.panel .cta, .panel .cta-quiet { margin-top: auto; }

/* Stages */
.stage-list { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

.stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow .35s ease;
}
.stage:hover { box-shadow: var(--shadow-glow); }

.stage-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 24px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.stage-btn::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .3s ease;
  flex: none;
}
.stage-btn[aria-expanded="true"]::after { transform: rotate(225deg); }
.stage-btn:hover { color: var(--accent); }
.stage-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.stage-btn:active { transform: translateY(1px); }

.stage-body { padding: 0 24px 20px; color: var(--muted); }
.stage-body p { margin: 0; }

/* Form */
.form-wrap { max-width: 760px; }

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 40px);
}

.field { display: flex; flex-direction: column; gap: 8px; }

.label { font-weight: 600; font-size: .95rem; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  font: inherit;
}
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus { border-color: var(--accent); outline: none; }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.textarea { resize: vertical; min-height: 120px; }

.field-error .input { border-color: #E06A5A; }
.field-error .label { color: #E8907F; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check a { color: var(--accent); }

.form-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.form-btn { align-self: flex-start; }
.form.is-sending .form-btn,
.form-btn.is-sending { opacity: .6; pointer-events: none; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 4px 24px;
  transition: box-shadow .35s ease;
}
.faq-item[open] { box-shadow: var(--shadow-glow); }

.faq-item summary {
  cursor: pointer;
  min-height: 56px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1.1rem;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.faq-item p { color: var(--muted); margin: 0 0 16px; }

/* Prose */
.prose { max-width: 68ch; }
.prose h2, .prose h3 { margin-top: 32px; }
.prose ul, .prose ol { color: var(--muted); padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .95rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.prose th { font-family: var(--font-head); color: var(--text); }
.prose td { color: var(--muted); }
.prose a { text-decoration: underline; text-underline-offset: 4px; }

/* Inner page head */
.page-head { padding-top: clamp(128px, 17vw, 176px); }
.page-head p { color: var(--muted); font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem); max-width: 56ch; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
.gallery img { width: 100%; border-radius: var(--radius-card); }
.gallery figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); }

/* Contacts */
.contacts-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contacts-list li { color: var(--muted); }
.contacts-list span { color: var(--muted); margin-right: 8px; }

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  background: rgb(23 43 37 / .6);
  padding: clamp(48px, 7vw, 88px) 0 32px;
  margin-top: clamp(48px, 7vw, 88px);
}

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

.foot-title {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--text);
}

.foot-note { color: var(--muted); font-size: .95rem; }

.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--accent); }
.foot-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.foot address { margin: 16px 0 24px; }
.foot address p { color: var(--muted); font-size: .95rem; margin: 0 0 8px; }
.foot address a { color: var(--accent); }
.foot ul li span { color: var(--muted); }

.foot-copy-row {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot-copy { color: var(--muted); font-size: .875rem; margin: 0; }

/* Thanks & 404 */
.center-block { text-align: center; }
.center-block p { margin-inline: auto; }
.next-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 32px; }

/* Breakpoints */
@media (max-width: 767px) {
  .block { padding-block: clamp(56px, 12vw, 88px); }
  .hero-collage { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .hero-collage img:last-child { aspect-ratio: 16 / 9; height: auto; }
  .accent { font-size: clamp(2.1rem, 8vw, 2.4rem); line-height: 1.1; }
  .hero-lead { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col .prose p { margin-bottom: 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-quiet { display: flex; width: 100%; justify-content: center; padding: 12px 8px; text-align: center; }
  .form-btn { align-self: stretch; }
}

@media (max-width: 479px) {
  .brand { font-size: .95rem; letter-spacing: 0; }
  .topbar-capsule { gap: 10px; padding: 10px 12px; }
  .cta { padding: 0 16px; font-size: .92rem; white-space: nowrap; }
}

@media (max-width: 419px) {
  .topbar-capsule { gap: 6px; padding: 10px; }
  .brand { font-size: .9rem; }
  .cta { padding: 0 12px; font-size: .85rem; }
}

@media (min-width: 640px) {
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
  .panel.is-featured { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .foot-copy-row { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  .panel-grid { grid-template-columns: repeat(3, 1fr); }
  .panel.is-featured { grid-column: auto; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.2fr 0.9fr 1.1fr 1.3fr; gap: 32px; }
}

@media (min-width: 1280px) {
  .menu-list { gap: 12px; }
}

@media (max-height: 620px) {
  .menu { justify-content: flex-start; padding-top: 96px; gap: 20px; }
  .menu-list { gap: 4px; }
  .menu-link { font-size: clamp(1.25rem, 3vh, 1.8rem); }
  #hero { padding-top: 112px; }
  .page-head { padding-top: 120px; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.is-ready .reveal { opacity: 1; transform: none; }
  html.is-ready .hero-line { animation: none; transform: none; }
}

/* Plate contrast guard */
.shell .plate,
.prose .plate,
.shell .plate *,
.prose .plate * { color: var(--plate-text); }
