/* ==========================================================================
   ZUNFT — фирменная палитра
   Источник цвета — логотип: медь (copper) + глубокий синий (navy/blue).
   Медь и синий — комплементарная пара, нейтрали — тёплые (бумага/песок).
   Правило распределения 60/30/10: нейтраль / синий / медь.
   ========================================================================== */
/* ==========================================================================
   Шрифты (self-hosted, Fontsource variable)
   Заголовки — Montserrat, текст/интерфейс — Inter. Оба с полным кириллическим набором.
   ========================================================================== */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-display: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Медь (основной акцент) */
  --copper-50:  #FBF1E8;
  --copper-100: #F6E1CE;
  --copper-200: #EDC39E;
  --copper-300: #E0A06A;
  --copper-400: #C9834B;
  --copper-500: #B87333; /* бренд-медь */
  --copper-600: #9A5C22; /* для текста/кнопок на белом (AA) */
  --copper-700: #7C481A;

  /* Синий (структура, текст, тёмные блоки) */
  --blue-50:  #F0F6FB;
  --blue-100: #DCEAF5;
  --blue-200: #B9D2E8;
  --blue-300: #8BB4D4;
  --blue-400: #4F8DBB;
  --blue-500: #1C6EA4;
  --blue-600: #0E4A78; /* бренд-синий */
  --blue-700: #0E3A66;
  --blue-800: #0A2C52;
  --blue-900: #06213F; /* тёмный (подвал) */

  /* Тёплые нейтрали */
  --ink:    #182230;
  --muted:  #64707F;
  --line:   #E7E2DB;
  --paper:  #FFFFFF;
  --sand:   #F7F6F3;
  --sand-2: #F1EDE6;

  /* Семантика */
  --bg: var(--paper);
  --fg: var(--ink);
  --alt: var(--sand);
  --accent: var(--copper-500);
  --accent-dark: var(--copper-600);
  --link: var(--blue-600);
  --ok: #1A7F37;
  --err: #B42318;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  color: var(--blue-800);
}
h3 { font-size: 18px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: 14px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--copper-500), var(--blue-600));
  opacity: .85;
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; }
.logo__img { height: 60px; width: auto; }
.logo__mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--blue-700); color: #fff; font-weight: 800;
}
.logo__text { text-transform: uppercase; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { padding: 6px 0; color: var(--ink); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--copper-500); transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.nav a:hover { color: var(--copper-600); }
.nav a:hover::after { transform: scaleX(1); }
.phone { font-weight: 600; white-space: nowrap; color: var(--blue-700); }
.phone:hover { color: var(--copper-600); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* hero */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 320px at 85% -10%, var(--copper-50), transparent 70%),
    linear-gradient(180deg, #fff, var(--blue-50));
}
.hero h1 { font-size: clamp(25px, 3.6vw, 40px); margin: 0 0 16px; max-width: 900px; color: var(--blue-800); }
.lead { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer;
  color: var(--blue-700); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .05s ease;
}
.btn:hover { border-color: var(--blue-400); box-shadow: 0 2px 10px rgba(14,74,120,.10); }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--copper-400), var(--copper-600));
  border-color: var(--copper-600); color: #fff;
  box-shadow: 0 4px 14px rgba(154,92,34,.28);
}
.btn--primary:hover {
  background: linear-gradient(180deg, var(--copper-500), var(--copper-700));
  border-color: var(--copper-700); box-shadow: 0 6px 18px rgba(124,72,26,.34);
}

/* sections */
.section { padding: 56px 0; }
.section--alt { background: var(--alt); }
.section h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 20px; color: var(--blue-800); position: relative; padding-bottom: 10px; }
.section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px;
  background: var(--copper-500); border-radius: 2px;
}

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--copper-300); box-shadow: 0 10px 26px rgba(24,34,48,.10); transform: translateY(-2px); }
.card__img { aspect-ratio: 4 / 3; background: var(--blue-50); object-fit: cover; width: 100%; }
.card__body { padding: 16px; }
.card__title { font-weight: 700; margin: 0 0 6px; color: var(--blue-700); }
.card__text { color: var(--muted); font-size: 14px; margin: 0; }

/* map */
.map { height: 460px; border-radius: 14px; border: 1px solid var(--line); }
.map-pin span {
  display: block; width: 16px; height: 16px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--copper-500); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer;
}
.map-popup { width: 220px; }
.map-popup img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.map-popup b { display: block; margin-bottom: 4px; color: var(--blue-700); }
.map-popup div { font-size: 13px; color: var(--muted); }

/* form */
.form { display: grid; gap: 14px; max-width: 520px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--blue-800); }
.form input, .form textarea {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--copper-400);
  box-shadow: 0 0 0 3px rgba(184,115,51,.18);
}
.form .checkbox { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--muted); }
.form .checkbox input { accent-color: var(--copper-500); }
.form-status { font-size: 14px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* footer */
.site-footer { background: var(--blue-900); color: #C7D2DF; padding: 0 0 24px; margin-top: 64px; }
.footer-cta {
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
  padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer-cta h3 { color: #fff; margin: 0; font-size: clamp(18px, 2.4vw, 24px); }
.footer-cta p { color: #9FB0C4; margin: 4px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px 28px; padding: 40px 0 8px; }
.footer-brandcol { max-width: 320px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 18px; }
.footer-logo img { height: 34px; width: auto; }
.footer-about { color: #9FB0C4; font-size: 14px; margin: 14px 0 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #C7D2DF;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.footer-social a:hover { background: var(--copper-600); border-color: var(--copper-600); color: #fff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-col h4 {
  font-family: var(--font-display); color: #fff; text-transform: uppercase;
  letter-spacing: .08em; font-size: 12px; margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #C7D2DF; font-size: 14px; }
.footer-col a:hover { color: var(--copper-300); }
.footer-contacts li { color: #C7D2DF; font-size: 14px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.10);
  font-size: 13px; color: #8FA1B6;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal a { color: #8FA1B6; }
.footer-legal a:hover { color: var(--copper-300); }

@media (max-width: 860px) {
  .logo__img { height: 44px; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .phone { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brandcol { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
}
