/* «Дубрава» — тёмное благородное дерево, точность раскроя. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/static/fonts/manrope-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  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+2074, 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-weight: 500;
  font-display: optional;
  src: url("/static/fonts/manrope-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  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+2074, 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-weight: 600;
  font-display: optional;
  src: url("/static/fonts/manrope-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  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+2074, 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-weight: 700;
  font-display: optional;
  src: url("/static/fonts/manrope-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/static/fonts/prata-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/static/fonts/prata-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #e2a96b;
  --brand: #c0864f;
  --bg-page: #16120e;
  --bg-card: #211b15;
  --text-primary: #f5eee4;
  --text-muted: #b9aa99;

  --font-body: "Manrope", sans-serif;
  --font-head: "Prata", serif;

  --radius: 12px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 18, 14, 0.92);
  backdrop-filter: none;
  border-bottom: 1px solid rgba(194, 134, 79, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.brand-mark { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { color: var(--text-primary); }
.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22,18,14,0.92) 0%, rgba(22,18,14,0.55) 55%, rgba(22,18,14,0.25) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding-top: 40px; padding-bottom: 40px; }
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-source {
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hero-ruler {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  z-index: 2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary {
  background: var(--accent);
  color: #241a10;
}
.btn-primary:hover {
  background: #f0bb82;
  color: #241a10;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(226, 169, 107, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(245, 238, 228, 0.4);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }

/* Sections */
.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}
.section-sub { color: var(--text-muted); margin: 0; max-width: 560px; }

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid rgba(194, 134, 79, 0.16);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.category-card .ico { width: 28px; height: 28px; color: var(--accent); margin-bottom: 18px; }
.category-name { font-size: 1.5rem; margin-bottom: 8px; }
.category-cta { color: var(--accent); font-weight: 600; margin: 0; }

/* Process */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
.process-step {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(194, 134, 79, 0.12);
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #241a10;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.process-title { font-size: 1.15rem; margin-bottom: 8px; }
.process-text { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Order form */
.order { padding: 96px 0; }
.order-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(194, 134, 79, 0.22);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.order-copy .section-title { margin-bottom: 12px; }
.order-points { list-style: none; padding: 0; margin: 24px 0 0; }
.order-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.order-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.lead-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.field-input {
  background: #16120e;
  border: 1px solid rgba(194, 134, 79, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.18s ease;
}
.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(226, 169, 107, 0.2);
}
.field-input::placeholder { color: rgba(185, 170, 153, 0.6); }
.field-select { appearance: none; }
.btn-submit { width: 100%; }
.form-hint { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.form-status { font-size: 0.95rem; min-height: 1.4em; margin: 0; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #e0866b; }

/* Contacts */
.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(194, 134, 79, 0.18);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ico { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.contact-label { margin: 0 0 4px; font-size: 0.85rem; color: var(--text-muted); }
.contact-value { margin: 0; font-weight: 600; }
.contact-btn { margin-top: 24px; grid-column: 1 / -1; justify-self: start; }

/* Page hero (works/sources) */
.page-hero { padding: 72px 0 32px; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-sub { color: var(--text-muted); max-width: 640px; margin: 0; }

/* Works catalog */
.category-section { padding: 64px 0 0; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.work-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(194, 134, 79, 0.14);
}
.work-img-link { display: block; position: relative; overflow: hidden; }
.work-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.work-img-link:hover .work-img { transform: scale(1.04); }
.work-ruler {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-img-link:hover .work-ruler { opacity: 1; }
.work-body { padding: 24px; }
.work-title { font-size: 1.4rem; margin-bottom: 6px; }
.work-desc { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 12px; }
.work-price { font-family: var(--font-head); font-size: 1.3rem; color: var(--accent); margin: 0 0 16px; }
.work-cta { margin-bottom: 14px; }
.work-source { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.work-source a { color: var(--brand); text-decoration: underline; }

/* Sources list */
.source-list { display: flex; flex-direction: column; gap: 16px; }
.source-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(194, 134, 79, 0.14);
  padding: 28px 32px;
}
.source-title { font-size: 1.25rem; margin-bottom: 6px; }
.source-desc { color: var(--text-muted); margin: 0 0 10px; }
.source-link { color: var(--accent); text-decoration: underline; }
.source-note { margin-top: 32px; font-size: 0.85rem; color: var(--text-muted); max-width: 720px; }

/* Footer */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid rgba(194, 134, 79, 0.18);
  padding: 64px 0 40px;
  background: #120f0b;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-tagline { color: var(--text-muted); max-width: 320px; margin-top: 16px; }
.footer-heading { font-size: 1rem; margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-link { color: var(--text-muted); font-size: 0.92rem; }
.footer-link:hover { color: var(--accent); }
.footer-link.muted { margin: 0; color: var(--text-muted); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(194, 134, 79, 0.12); font-size: 0.8rem; color: var(--text-muted); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .category-grid, .works-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .header-phone span { display: none; }
  .main-nav { gap: 16px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .order-card { padding: 28px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}
