/* ===== Fonts: self-hosted woff2 with Cyrillic subsets ===== */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/static/fonts/manrope-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/static/fonts/manrope-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/static/fonts/manrope-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/static/fonts/manrope-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/static/fonts/manrope-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/static/fonts/manrope-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/static/fonts/manrope-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/static/fonts/manrope-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+20AC,U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/static/fonts/cormorant-garamond-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/static/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/static/fonts/cormorant-garamond-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/static/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ===== Design tokens ===== */
:root {
  --accent: #e5b97b;
  --brand: #b8743c;
  --bg-card: #251e18;
  --bg-page: #191412;
  --text-muted: #c9baa8;
  --text-primary: #f5ede3;
  --font-display: 'Cormorant Garamond', 'Alice', Georgia, serif;
  --font-body: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 0.9rem;
  --container: 72rem;
  --gap: clamp(5rem, 8vw, 7.5rem);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; font-weight: 600; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

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

.ico { width: 1.4rem; height: 1.4rem; }
.ico-lg { width: 3rem; height: 3rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #241a10;
  border-color: var(--accent);
}
.btn-primary:hover { background: #f0c894; border-color: #f0c894; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(229, 185, 123, 0.5);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 1.25rem 0;
  background: linear-gradient(to bottom, rgba(25,20,18,0.85), rgba(25,20,18,0));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-mark { width: 1.75rem; height: 1.75rem; color: var(--accent); }
.logo-word { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.02em; }
.site-nav { display: flex; gap: 2rem; }
.site-nav a { text-decoration: none; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: color .2s ease; }
.site-nav a:hover { color: var(--accent); }
.header-cta { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #241a12 0%, #2a2018 40%, #191412 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(25,20,18,0.2) 0%, rgba(25,20,18,0.75) 70%),
    linear-gradient(to top, rgba(25,20,18,0.95) 0%, rgba(25,20,18,0.35) 45%, rgba(25,20,18,0.25) 100%);
}
.hero-measure {
  position: absolute;
  left: 6%;
  bottom: 18%;
  width: 2px; height: 40%;
  background-image: linear-gradient(to bottom, var(--accent) 50%, transparent 50%);
  background-size: 2px 14px;
  opacity: 0.5;
}
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(4rem, 10vw, 7rem); }
.hero-eyebrow {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  max-width: 18ch;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted); max-width: 42ch; margin-bottom: 2rem; }

/* ===== Perks ===== */
.perks { background: var(--bg-page); padding: 0 0 var(--gap); }
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: calc(var(--gap) * -0.35); }
.perk {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(229, 185, 123, 0.14);
}
.perk .ico { color: var(--accent); margin-bottom: 1rem; }
.perk-title { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.perk-text { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Sections ===== */
section { padding: var(--gap) 0; }
.section-head { margin-bottom: 3rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin-bottom: 0.75rem; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 52ch; }

/* ===== Catalog ===== */
.catalog { background: var(--bg-page); }
.category { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.category-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.category-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.category-count { color: var(--text-muted); font-size: 0.9rem; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.work-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(229, 185, 123, 0.12);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.work-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.work-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.work-card:hover .work-img { transform: scale(1.04); }
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(25,20,18,0.85) 0%, rgba(25,20,18,0.15) 55%, rgba(25,20,18,0) 100%);
  opacity: 0.85;
  transition: opacity .25s ease;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-passport {
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.work-material { color: var(--text-primary); font-weight: 600; font-size: 0.95rem; }
.work-size { color: var(--text-muted); font-size: 0.85rem; }
.work-price {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: var(--accent);
  color: #241a10;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
}
.work-body { padding: 1.25rem 1.25rem 1.5rem; }
.work-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.4rem; }
.work-source { color: var(--text-muted); font-size: 0.8rem; }
.catalog-cta { text-align: center; margin-top: 1rem; }

/* ===== Process ===== */
.process { background: var(--bg-card); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.step {
  position: relative;
  display: flex; gap: 1.5rem;
  padding-left: 0;
}
.step::before {
  content: '';
  position: absolute; left: 1.15rem; top: 3rem; bottom: -2rem;
  width: 2px;
  background: rgba(229, 185, 123, 0.25);
}
.step:last-child::before { display: none; }
.step-num {
  flex-shrink: 0;
  width: 2.4rem; height: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--bg-page);
}
.step-title { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.step-text { color: var(--text-muted); font-size: 0.95rem; max-width: 52ch; }

/* ===== Lead form ===== */
.lead { background: var(--bg-page); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.lead-copy .section-title { margin-bottom: 1rem; }
.lead-text { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 42ch; }
.lead-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.lead-points li { position: relative; padding-left: 1.6rem; color: var(--text-primary); }
.lead-points li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); }

.lead-form {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(229, 185, 123, 0.16);
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(201, 186, 168, 0.3);
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: rgba(201, 186, 168, 0.55); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229, 185, 123, 0.2); }
.field input[aria-invalid="true"] { border-color: #e0735a; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: #e9a08c; font-size: 0.85rem; margin-top: 0.4rem; }
.form-status { margin: 1rem 0 0; font-size: 0.95rem; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #e9a08c; }
.form-note { color: var(--text-muted); font-size: 0.78rem; margin-top: 1rem; }

/* ===== Contacts ===== */
.contacts { background: var(--bg-card); }
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.contact {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-page);
  border: 1px solid rgba(229, 185, 123, 0.12);
  text-decoration: none;
}
.contact .ico { color: var(--accent); }
.contact-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.contact-value { font-size: 1.15rem; font-weight: 600; color: var(--text-primary); }
.contact-value a { color: var(--accent); text-decoration: none; }
.contact-phone .contact-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.contact-phone:hover .contact-value { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.contacts-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Thanks ===== */
.thanks { min-height: 70vh; display: flex; align-items: center; padding-top: 7rem; }
.thanks-inner { text-align: center; max-width: 40rem; }
.thanks-badge {
  width: 5rem; height: 5rem; margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #241a10;
}
.thanks-text { color: var(--text-muted); font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.thanks-sub { color: var(--text-muted); margin-bottom: 2rem; }
.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.thanks-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { background: #14100d; padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; border-top: 1px solid rgba(229, 185, 123, 0.12); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; max-width: 28ch; }
.footer-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.5rem; }
.footer-link { color: var(--text-primary); text-decoration: none; transition: color .2s ease; }
.footer-link:hover { color: var(--accent); }
.footer-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid rgba(201, 186, 168, 0.12); color: var(--text-muted); font-size: 0.8rem; }

/* ===== Responsive ===== */
@media (max-width: 60rem) {
  .site-nav { display: none; }
  .perks-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 40rem) {
  .footer-inner { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
}

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