/* HIGOLD — главная страница. Направление: технический editorial, hairline-сетка, графит + брендовый синий. */

:root {
  --ink: #12161C;
  --ink-2: #1B2029;
  --ink-line: #2C333E;
  --paper: #F4F5F7;
  --surface: #FFFFFF;
  --line: #DCE0E6;
  --line-strong: #B9C0CA;
  --muted: #5A6472;
  --muted-dark: #98A2B0;
  --brand: #223E6E;
  --brand-2: #2F5494;
  --brand-soft: #E9EEF7;
  --brass: #B8863B;
  --max: 1240px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
  --s7: 128px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Golos Text', 'Golos Text VF', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}
.label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--line-strong);
}
.dark .label { color: var(--muted-dark); }
.dark .label::before { background: #4A535F; }

.label .num { color: var(--brand-2); }
.dark .label .num { color: #7FA3DC; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-2); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.dark .btn-ghost { border-color: #414A57; color: #fff; }
.dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #a5762f; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: var(--muted-dark);
  border-bottom: 1px solid var(--ink-line);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 40px;
  font-size: 13px;
}
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 24px; align-items: center; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 22, 28, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 76px;
}
.logo { flex: 0 0 auto; }
.logo img { height: 26px; width: 126px; }
.nav { display: flex; gap: 22px; margin-left: 4px; }
.nav a { font-size: 15px; white-space: nowrap; color: #D6DBE3; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav a:hover { color: #fff; border-color: var(--brass); }
.header-contact { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.header-phone { font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap; }
.header-phone span { display: block; font-size: 11px; font-weight: 400; color: var(--muted-dark); letter-spacing: .08em; text-transform: uppercase; font-family: 'IBM Plex Mono', monospace; }
.burger { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, #12161C 0%, #12161C 46%, rgba(34, 62, 110, .55) 100%);
  opacity: 1;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 88px 0 72px;
}
.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: #8FB2E6; }
.hero-lead { font-size: 18px; color: #C3CBD6; max-width: 46ch; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-line);
}
.hero-facts div { padding: 22px 18px 0 0; }
.hero-facts b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.hero-facts span { color: var(--muted-dark); font-size: 13px; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(1.02);
}
.hero-figure figcaption {
  margin-top: 12px;
  color: var(--muted-dark);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--ink-line);
  padding-top: 10px;
}

/* ---------- Audience ---------- */
.audience { padding: var(--s7) 0; }
.aud-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.aud-head h2 {
  margin: 18px 0 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 700;
}
.aud-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.aud-card { background: var(--paper); display: flex; flex-direction: column; }
.aud-card .media { aspect-ratio: 16 / 11; overflow: hidden; }
.aud-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.aud-card:hover .media img { transform: scale(1.03); }
.aud-body { padding: 26px 28px 32px; }
.aud-body h3 { margin: 12px 0 10px; font-size: 21px; font-weight: 700; }
.aud-body p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.aud-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--brand); }
.aud-link::after { content: "→"; transition: transform .2s ease; }
.aud-link:hover::after { transform: translateX(5px); }

/* ---------- Catalog ---------- */
.catalog { background: var(--surface); padding: var(--s7) 0; border-top: 1px solid var(--line); }
.cat-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.tile {
  grid-column: span 4;
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.tile:hover { border-color: var(--brand); transform: translateY(-3px); }
.tile .media { aspect-ratio: 4 / 3; overflow: hidden; background: #E7EAEE; }
.tile .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .media img { transform: scale(1.04); }
.tile-body { padding: 20px 22px 24px; }
.tile-body h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.tile-body p { margin: 0; color: var(--muted); font-size: 14px; }
.tile-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--brand); }
.tile-wide { grid-column: span 6; }
.tile-wide .media { aspect-ratio: 16 / 9; }

/* ---------- Guide ---------- */
.guide { padding: var(--s7) 0; }
.guide-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.guide-card { border-top: 2px solid var(--ink); padding-top: 26px; }
.guide-card .media { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 22px; }
.guide-card .media img { width: 100%; height: 100%; object-fit: cover; }
.guide-card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.guide-card ul { margin: 0 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.guide-card li { padding: 9px 0 9px 20px; border-bottom: 1px solid var(--line); position: relative; }
.guide-card li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 1px; background: var(--brass); }
.guide-card a { color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---------- B2B ---------- */
.b2b { background: var(--ink); color: #fff; padding: var(--s7) 0; }
.b2b-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.b2b h2 { margin: 18px 0 20px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.02em; }
.b2b p.lead { color: #C3CBD6; margin: 0 0 30px; font-size: 17px; }
.b2b-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.spec { width: 100%; border-collapse: collapse; }
.spec tr { border-top: 1px solid var(--ink-line); }
.spec tr:last-child { border-bottom: 1px solid var(--ink-line); }
.spec th, .spec td { text-align: left; padding: 18px 0; vertical-align: top; }
.spec th { width: 34%; color: var(--muted-dark); font-weight: 500; font-size: 14px; }
.spec td { font-size: 15px; color: #E6EAF0; }
.spec td strong { color: #fff; font-weight: 600; }

/* ---------- Numbers / brand ---------- */
.numbers { padding: var(--s7) 0; }
.numbers-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.numbers h2 { margin: 18px 0 18px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.02em; }
.numbers p { color: var(--muted); max-width: 48ch; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--surface); padding: 30px 28px; }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; color: var(--brand); }
.stat span { color: var(--muted); font-size: 14px; }
.brand-media { position: relative; }
.brand-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.brand-media figcaption { margin-top: 12px; color: var(--muted); }

/* ---------- Expo ---------- */
.expo { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s7) 0; }
.expo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.expo h2 { margin: 18px 0 16px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.02em; }
.expo p { color: var(--muted); max-width: 46ch; }
.expo-meta { margin: 28px 0 0; padding: 0; list-style: none; }
.expo-meta li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.expo-meta li span { color: var(--muted); width: 150px; flex: none; }
.expo-media { position: relative; }
.expo-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.note {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 2px solid var(--brass);
  background: #F7F3EA;
  color: #6A5326;
  font-size: 13.5px;
}

/* ---------- Form ---------- */
.request { padding: var(--s7) 0; }
.request-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.request h2 { margin: 18px 0 16px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.02em; }
.request p { color: var(--muted); }
.contacts { margin: 28px 0 0; padding: 0; list-style: none; }
.contacts li { padding: 14px 0; border-top: 1px solid var(--line); }
.contacts li b { display: block; font-size: 18px; font-weight: 700; }
.contacts li span { color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 62, 110, .12);
}
.field textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.field-legend { font-size: 13px; color: var(--muted); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.checks .check { grid-column: auto; }
.checks .check input { flex: 0 0 auto; }
.partnerform { background: var(--surface-2, #F5F6F8); }
.partnerform .contacts li b { font-size: 16px; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.form-status { grid-column: 1 / -1; font-size: 14px; color: var(--brand); min-height: 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-dark); padding: var(--s6) 0 40px; }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 16px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer li { padding: 6px 0; }
.footer a:hover { color: #fff; }
.footer-logo img { height: 24px; width: 116px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header .wrap { gap: 16px; }
  .header-phone span { display: none; }
  .header-contact .btn { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--ink-line);
    padding: 8px 32px 20px;
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--ink-line); }
  .hero-grid, .aud-head, .numbers-grid, .b2b-grid, .expo-grid, .request-grid { grid-template-columns: 1fr; gap: 40px; }
  .aud-grid { grid-template-columns: 1fr 1fr; }
  .aud-card:last-child { grid-column: 1 / -1; }
  .tile { grid-column: span 6; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .hero-grid { padding: 56px 0 48px; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 4px; }
  .hero-facts b { font-size: 26px; }
  .audience, .guide, .numbers, .expo, .request, .catalog, .b2b { padding: 64px 0; }
  .aud-grid { grid-template-columns: 1fr; }
  .aud-card:last-child { grid-column: auto; }
  .tile, .tile-wide { grid-column: span 12; }
  .guide-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; gap: 32px; }
  .topbar-right span { display: none; }
  .expo-meta li { flex-direction: column; gap: 2px; }
  .expo-meta li span { width: auto; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 380px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { padding-right: 0; }
}

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

/* ---------- Slogan / chips / partner levels ---------- */
.hero-slogan {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 500;
  color: #E4B771;
  letter-spacing: .01em;
}
.hero-lead { margin-top: 0; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.chips a {
  font-size: 14px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.chips a:hover { border-color: var(--brand); background: var(--brand); color: #fff; }

.levels { display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.level { background: var(--ink); padding: 30px 32px 32px; }
.level-num { color: var(--brass); margin-bottom: 14px; }
.level h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.level p { margin: 0; color: var(--muted-dark); font-size: 15px; }

@media (max-width: 720px) {
  .level { padding: 24px 22px 26px; }
}

.spec-attach { display: grid; gap: 10px; }
.spec-attach-link { font-weight: 500; color: #1b2530; text-decoration: underline; text-underline-offset: 3px; }
.spec-attach-link:hover { color: #c9a227; }
.spec-attach .check { font-size: 13px; }

/* ---------- Навигация с выпадающими подменю ---------- */
.nav { position: relative; }
.nav-item { position: relative; }
.nav-item > a { display: inline-block; }
.nav .sub {
  position: absolute; top: 100%; left: -12px;
  min-width: 220px; background: #fff;
  border: 1px solid var(--line); padding: 6px 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  box-shadow: 0 18px 40px rgba(18, 22, 28, .10);
}
.nav-item:hover .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a {
  display: block; padding: 9px 16px; font-size: 14px; color: var(--ink);
  border-bottom: 0; white-space: nowrap;
}
.nav .sub a:hover { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 1100px) {
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav.open .sub a { border-bottom: 0; }
}

/* ---------- Адаптив: шапка и общие блоки на узких экранах ---------- */
@media (max-width: 900px) {
  .hero-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 96px; }
  .hero-mosaic .m-big { grid-column: span 2; grid-row: span 3; }
  .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b-grid { grid-template-columns: 1fr; }
  .expo-grid { grid-template-columns: 1fr; }
  .request-grid { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .header .wrap { gap: 12px; }
  .logo img { height: 22px; width: 106px; }
  .logo-sub { font-size: 9px; letter-spacing: .1em; }
  .header-phone { font-size: 14px; }
  .header-contact { gap: 10px; }
  .burger { padding: 6px 2px; }
  .burger span { width: 20px; margin: 4px 0; }
  .topbar .wrap { font-size: 12px; gap: 12px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers-grid { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .cat-stats, .price-stats { gap: 20px 28px; }
  .cat-stats div b, .price-stats div b { font-size: 22px; }
}

@media (max-width: 460px) {
  .header-phone { font-size: 13px; }
  .hero-mosaic { grid-auto-rows: 84px; }
  .cat-grid { gap: 12px; }
}
