/* ============================================================================
 * МОК — дизайн сайта-визитки. Палитра от логотипа: золото + тёмно-синий
 * (клиентка: «лейбл золотой, можно добавить серый, синий или винный»).
 * ==========================================================================*/
:root {
  --gold: #b8924a;
  --gold-2: #d6b97c;
  --gold-soft: #f3ead8;
  --navy: #1b2a44;
  --navy-2: #24375a;
  --ink: #1e2430;
  --text: #3d4452;
  --muted: #747b88;
  --line: #e6dfd1;
  --bg: #faf8f4;
  --white: #ffffff;
  --radius: 18px;
  --serif: "PT Serif", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.18; margin: 0; }
h1 { font-size: 50px; letter-spacing: -.01em; }
h2 { font-size: 38px; }
h3 { font-size: 19px; font-family: var(--sans); font-weight: 700; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main section { position: relative; padding: 96px 0; }
.sec-label { display: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.lead { font-size: 18px; color: var(--text); max-width: 680px; margin-top: 18px; }
.sec-head { max-width: 780px; margin-bottom: 44px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border-radius: 999px;
  font: 700 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: .2s; white-space: nowrap; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a37f3c; }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- шапка ----------------------------------------------------------*/
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(250,248,244,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 30px; height: 82px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo img { width: 52px; height: 52px; }
.logo b { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: .08em; line-height: 1; }
.logo small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.gold-logo { filter: grayscale(1) sepia(1) saturate(1.5) hue-rotate(-8deg) brightness(.92); }
.nav { display: flex; gap: 26px; margin: 0 auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav a:hover { color: var(--gold); }
.hdr-r { display: flex; align-items: center; gap: 20px; flex: none; }
.hdr-tel { text-decoration: none; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hdr .btn { padding: 12px 22px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }

/* ---------- 1. первый экран --------------------------------------------------*/
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--gold); }
.hero-pic { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.hero-pic::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0 56%, var(--gold-soft) 56.2% 100%); }
.hero-pic::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--gold-2); }
.hero-pic img { position: relative; width: 92%; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.fact { padding: 26px 22px 0 0; }
.fact b { display: block; font-family: var(--serif); font-size: 34px; color: var(--navy); line-height: 1.1; }
.fact span { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.hero .facts { grid-column: 1 / -1; }

/* ---------- 2. руководитель --------------------------------------------------*/
.leader { background: var(--navy); color: #d9deea; }
.leader .wrap { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: center; }
.leader h2 { color: #fff; }
.leader .eyebrow { color: var(--gold-2); }
.leader .eyebrow::before { background: var(--gold-2); }
.portrait { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; display: grid; place-items: center; }
.portrait::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(214,185,124,.55); }
.portrait::after { content: ""; position: absolute; inset: 22px; border-radius: 50%;
  background: linear-gradient(160deg, #2c4168, #1f3150); border: 2px solid var(--gold-2); }
.portrait span { position: relative; z-index: 1; font-size: 14px; color: rgba(255,255,255,.55); text-align: center; letter-spacing: .04em; }
.role { color: var(--gold-2); font-weight: 600; margin-top: 10px; }
.leader p { font-size: 17px; color: #cfd6e4; margin-top: 18px; max-width: 640px; }
.quote { margin-top: 30px; padding: 22px 26px; border-left: 2px solid var(--gold-2); background: rgba(255,255,255,.04);
  font-family: var(--serif); font-size: 21px; font-style: italic; color: #fff; line-height: 1.45; border-radius: 0 12px 12px 0; }
.l-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.l-stats b { display: block; font-family: var(--serif); font-size: 36px; color: var(--gold-2); line-height: 1; }
.l-stats span { display: block; font-size: 14px; color: #aab3c5; margin-top: 8px; }

/* ---------- 3. о компании ----------------------------------------------------*/
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about p { font-size: 17px; margin-top: 16px; }
.who { display: grid; gap: 14px; margin-top: 30px; }
.who div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; }
.who .n { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-weight: 800;
  display: grid; place-items: center; font-size: 15px; }
.who b { display: block; color: var(--ink); font-size: 16px; }
.who span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.about-pic { background: #fff; border-radius: 28px; border: 1px solid var(--line); padding: 40px; position: relative; }
.about-pic img { width: 100%; }
.about-pic figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 4. направления --------------------------------------------------*/
.dirs { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dir { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg); display: flex; flex-direction: column; transition: .2s; }
.dir:hover { border-color: var(--gold-2); box-shadow: 0 18px 40px rgba(27,42,68,.08); transform: translateY(-2px); }
.dir-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--navy); display: grid; place-items: center; margin-bottom: 20px; }
.dir-ic svg { width: 26px; height: 26px; stroke: var(--gold-2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dir ul { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 8px; }
.dir li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; }
.dir li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.dir-brands { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.center-btn { text-align: center; margin-top: 44px; }

/* ---------- 5. с кем работаем ----------------------------------------------*/
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partner { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 92px; padding: 18px 20px; text-decoration: none;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: .2s; }
.partner b { font-size: 15px; color: var(--ink); line-height: 1.35; }
.partner span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.partner:hover { background: var(--gold-soft); }
.partner:hover span { color: var(--gold); }
.note { margin-top: 26px; padding: 20px 24px; border-radius: 14px; background: var(--gold-soft); color: var(--ink); font-size: 15.5px; }

/* ---------- 6. каталоги ------------------------------------------------------*/
.cats { background: #fff; border-top: 1px solid var(--line); }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cat { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; padding: 26px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); text-decoration: none; transition: .2s; }
.cat:hover { border-color: var(--gold-2); box-shadow: 0 18px 40px rgba(27,42,68,.08); }
.cat img { width: 150px; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.cat small { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.cat b { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink); margin-top: 8px; line-height: 1.25; }
.cat span { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.cat em { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-style: normal; font-weight: 700; color: var(--navy); font-size: 15px; }

/* ---------- 7. контакты ------------------------------------------------------*/
.contacts { background: var(--navy); color: #cfd6e4; }
.contacts .wrap { display: grid; grid-template-columns: 1fr 480px; gap: 64px; align-items: start; }
.contacts h2 { color: #fff; }
.contacts .eyebrow { color: var(--gold-2); }
.contacts .eyebrow::before { background: var(--gold-2); }
.contacts .lead { color: #cfd6e4; }
.c-list { display: grid; gap: 22px; margin-top: 40px; }
.c-list div small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.c-list div a, .c-list div span { display: block; font-size: 19px; color: #fff; text-decoration: none; margin-top: 4px; }
.c-list div a:hover { color: var(--gold-2); }
.c-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.form { background: #fff; color: var(--text); border-radius: 22px; padding: 34px; }
.form h3 { font-family: var(--serif); font-size: 25px; color: var(--ink); }
.form p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 16px 0 6px; }
.form input, .form textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; background: var(--bg); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form textarea { min-height: 96px; resize: vertical; }
.form .btn { width: 100%; margin-top: 22px; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted) !important; font-size: 12.5px !important; line-height: 1.45; }
.consent input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--gold); }

/* ---------- подвал -----------------------------------------------------------*/
.ftr { background: #142036; color: #8f9ab0; padding: 56px 0 34px; font-size: 14px; }
.ftr .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.ftr .logo { color: #fff; }
.ftr .logo small { color: #8f9ab0; }
.ftr h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 14px; }
.ftr a { display: block; color: #cfd6e4; text-decoration: none; margin-bottom: 8px; }
.ftr a:hover { color: var(--gold-2); }
.ftr p { margin-top: 14px; line-height: 1.55; }
.ftr .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; margin-top: 10px; }

/* ---------- модалка ---------------------------------------------------------*/
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: rgba(15,22,36,.6); padding: 16px; }
.modal.open { display: flex; }
.modal .form { width: 100%; max-width: 460px; position: relative; max-height: calc(100vh - 32px); overflow: auto; }
.modal-x { position: absolute; top: 14px; right: 18px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
#proto-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px;
  border-radius: 12px; font-size: 14px; opacity: 0; transition: .3s; z-index: 100; pointer-events: none; max-width: calc(100% - 32px); }
#proto-toast.show { opacity: 1; }

/* слой комментариев поверх дизайна */
main section .cmt-btn { top: 18px; right: 18px; z-index: 5; }
main section .cmt-list { max-width: 1200px; margin: 24px auto 0; padding: 0 24px; }

/* ---------- адаптив --------------------------------------------------------*/
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .hdr-tel { display: none; }
}
@media (max-width: 1020px) {
  h1 { font-size: 40px; } h2 { font-size: 32px; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 82px; left: 0; right: 0; background: var(--bg);
    padding: 18px 24px 24px; border-bottom: 1px solid var(--line); gap: 14px; }
  .burger { display: block; }
  .hdr-r { margin-left: auto; }
  .hero .wrap, .leader .wrap, .about .wrap, .contacts .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-pic { max-width: 460px; margin: 0 auto; width: 100%; }
  .portrait { max-width: 340px; margin: 0 auto; }
  .dir-grid { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
  .ftr .wrap { grid-template-columns: 1fr 1fr; }
  .ftr .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  main section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  h1 { font-size: 31px; } h2 { font-size: 27px; }
  .lead { font-size: 16px; }
  .hdr .wrap { height: 70px; gap: 12px; }
  .nav.open { top: 70px; }
  .logo img { width: 42px; height: 42px; }
  .logo b { font-size: 19px; }
  .logo small { display: none; }
  .hdr .btn { padding: 10px 16px; font-size: 14px; }
  .hdr .btn .full { display: none; }
  .btns .btn { width: 100%; }
  .fact b { font-size: 28px; }
  .fact { padding: 20px 12px 0 0; }
  .l-stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .l-stats b { font-size: 28px; }
  .l-stats span { font-size: 12.5px; }
  .quote { font-size: 18px; padding: 18px 20px; }
  .dir-grid, .partners-grid { grid-template-columns: 1fr; }
  .partner { min-height: 0; }
  .dir { padding: 22px; }
  .about-pic { padding: 22px; }
  .cat { grid-template-columns: 96px 1fr; gap: 18px; padding: 18px; }
  .cat img { width: 96px; }
  .cat b { font-size: 18px; }
  .form { padding: 24px 20px; }
  .ftr .wrap { grid-template-columns: 1fr; }
  .c-btns .btn { flex: 1 1 100%; }
  main section .cmt-btn { position: static; display: inline-block; margin: 18px 16px 0; }
}
@media (min-width: 641px) { .hdr .btn .short { display: none; } }

/* --- правки после проверки 1440 --- */
.hdr .wrap { max-width: 1320px; }
.hdr .logo small { display: none; }
.nav { gap: 24px; }
@media (max-width: 1499px) { .hdr-tel { display: none; } }
.hero-pic { aspect-ratio: auto; display: block; background: #fff; border-radius: 28px; border: 1px solid var(--line); padding: 36px 28px; }
.hero-pic::before { content: none; }
.hero-pic::after { inset: auto -18px -18px auto; width: 70%; height: 70%; border-radius: 28px; border: 1px solid var(--gold-2); z-index: -1; }
.hero .wrap > div:first-child { position: relative; z-index: 1; }
.hero-pic img { width: 100%; margin: 0 auto; }
.hero .wrap { position: relative; }
@media (max-width: 1020px) { .hero-pic::after { right: -10px; bottom: -10px; } }
.ftr a.logo { display: inline-flex; margin-bottom: 0; }
.hero .wrap > *, .leader .wrap > *, .about .wrap > *, .contacts .wrap > * { min-width: 0; }
@media (max-width: 640px) {
  .eyebrow { font-size: 11px; letter-spacing: .1em; gap: 10px; }
  .eyebrow::before { width: 22px; }
  h1 { font-size: 29px; }
  .fact b { font-size: 24px; }
}
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; } .hdr .btn { white-space: nowrap; } }

/* ============================================================================
 * v2 — по референсам prorehabilitation.ru и monolit-russia.ru:
 * рубленые заголовки заглавными в два тона, моно-подписи, блок цифр, сетка с крестиками
 * ==========================================================================*/
:root {
  --head: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Onest", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --tone: #9aa3b2;
}
body { font-family: var(--sans); }
h1, h2 { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .005em; line-height: 1.04; }
h1 { font-size: 60px; }
h2 { font-size: 46px; }
h1 .tone, h2 .tone { color: var(--tone); }
.hero h1 span.tone { color: var(--tone); }
.leader h2 .tone, .contacts h2 .tone { color: #7f8db0; }
.lead { font-size: 17px; }
.logo b { font-family: "PT Serif", Georgia, serif; }

/* моно-подписи блоков: «● О компании» */
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .04em; text-transform: none; color: var(--muted); gap: 10px; }
.eyebrow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.leader .eyebrow, .contacts .eyebrow, .stats .eyebrow { color: #a9b3c7; }
.leader .eyebrow::before, .contacts .eyebrow::before, .stats .eyebrow::before { background: var(--gold-2); }

/* кнопки — прямоугольные, как в референсах */
.btn { border-radius: 10px; font-family: var(--sans); font-weight: 600; letter-spacing: .01em; }

/* 1.1 блок цифр */
.stats { background: var(--navy); color: #cfd6e4; padding: 72px 0; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 120px 120px; background-position: center; }
.stats .wrap { position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.stat { padding: 30px 24px 6px 0; border-right: 1px solid rgba(255,255,255,.14); position: relative; }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat::after { content: "+"; position: absolute; top: -12px; right: -6px; color: var(--gold-2); font: 300 18px/1 var(--mono); }
.stat:last-child::after { content: none; }
.stat b { display: block; font-family: var(--head); font-weight: 500; font-size: 72px; line-height: 1; color: var(--gold-2); }
.stat b.sm { font-size: 44px; line-height: 1.12; padding-top: 14px; text-transform: uppercase; }
.stat span { display: block; margin-top: 14px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: #aab3c5; max-width: 230px; }

/* руководитель: цитата без засечек */
.quote { font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 20px; }
.role { font-family: var(--mono); font-size: 13px; }

/* о компании: номера в моно */
.who .n { font-family: var(--mono); border-radius: 8px; }

/* 4. направления: сетка тонкими линиями, номера, крестики */
.dir-grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dir { position: relative; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; padding: 34px 30px 28px; }
.dir:hover { transform: none; box-shadow: none; background: var(--bg); border-color: var(--line); }
.dir::before { content: "+"; position: absolute; left: -6px; top: -11px; color: var(--gold); font: 300 18px/1 var(--mono); z-index: 2; }
.dir-num { position: absolute; top: 30px; right: 28px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.dir-ic { border-radius: 10px; }
.dir h3 { font-family: var(--head); font-weight: 500; text-transform: uppercase; font-size: 21px; letter-spacing: .01em; line-height: 1.15; padding-right: 30px; }
.dir-brands { font-family: var(--mono); font-size: 12px; line-height: 1.55; }

/* 5. с кем работаем: крестики на сетке */
.partners-grid { position: relative; }
.partner { position: relative; }
.partner::before { content: "+"; position: absolute; left: -6px; top: -11px; color: var(--gold); font: 300 16px/1 var(--mono); }
.partner b { font-weight: 600; }
.partner span { font-family: var(--mono); font-size: 12px; }

/* 6. каталоги */
.cat { border-radius: 12px; }
.cat small { font-family: var(--mono); letter-spacing: .04em; text-transform: none; font-weight: 500; }
.cat b { font-family: var(--head); font-weight: 500; text-transform: uppercase; font-size: 24px; line-height: 1.12; }
.cat span { font-family: var(--mono); font-size: 12.5px; }

/* 7. контакты и форма */
.c-list div small { font-family: var(--mono); letter-spacing: .04em; text-transform: none; font-weight: 500; font-size: 12.5px; }
.form { border-radius: 14px; }
.form h3 { font-family: var(--head); font-weight: 500; text-transform: uppercase; font-size: 26px; }
.form input, .form textarea { border-radius: 8px; }
.ftr h4 { font-family: var(--mono); letter-spacing: .04em; text-transform: none; font-weight: 500; font-size: 12.5px; }

.hero-pic, .about-pic { border-radius: 14px; }
.hero-pic::after { border-radius: 14px; }

@media (max-width: 1020px) {
  h1 { font-size: 46px; } h2 { font-size: 38px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 26px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat::after { content: none; }
}
@media (max-width: 640px) {
  h1 { font-size: 34px; } h2 { font-size: 30px; }
  .stats { padding: 52px 0; }
  .stat b { font-size: 52px; }
  .stat b.sm { font-size: 28px; padding-top: 12px; }
  .stat { padding: 22px 12px 20px 0; }
  .stat + .stat { padding-left: 14px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat span { font-size: 12px; }
  .dir { padding: 28px 22px 24px; }
  .dir-num { top: 26px; right: 20px; }
  .cat b { font-size: 19px; }
}
/* v2.1: руководитель светлым блоком, чтобы не сливался с блоком цифр */
.leader { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.leader h2 { color: var(--ink); }
.leader h2 .tone { color: var(--tone); }
.leader p { color: var(--text); }
.leader .eyebrow { color: var(--muted); }
.leader .eyebrow::before { background: var(--gold); }
.role { color: var(--gold); }
.quote { background: var(--gold-soft); color: var(--ink); border-left-color: var(--gold); }
.portrait::before { border-color: var(--gold-2); }
.portrait::after { background: linear-gradient(160deg, #eef0f4, #dde2ea); border-color: var(--gold); }
.portrait span { color: var(--muted); }
.hero .wrap { grid-template-columns: 1.2fr .8fr; }
.hero h1 { font-size: 56px; }
.lead { margin-top: 22px; }
@media (max-width: 1020px) { .hero .wrap { grid-template-columns: 1fr; } .hero h1 { font-size: 46px; } }
@media (max-width: 640px) { .hero h1 { font-size: 34px; } }

/* ============================================================================
 * v3 (правки Веры): синяя палитра без золотых кнопок, логотип целиком,
 * фото на половину экрана, цифры без сетки, фото руководителя прямоугольником
 * ==========================================================================*/
:root {
  --navy: #17294a;
  --navy-2: #22396a;
  --blue: #3c5f96;
  --tone: #6f87b0;
  --sky: #e9eff7;
  --sky-2: #dce6f2;
  --bg: #f5f7fa;
  --line: #e1e6ee;
  --gold-soft: #e9eff7;
}
body { background: var(--bg); }
h1 .tone, h2 .tone, .hero h1 span.tone { color: var(--tone); }
.leader h2 .tone { color: var(--tone); }
.contacts h2 .tone { color: #8fa6cf; }

/* кнопки: синие, золото убрали */
.btn-gold { background: var(--navy); color: #fff; }
.btn-gold:hover { background: var(--blue); }
.contacts .btn-gold, .stats .btn-gold { background: #fff; color: var(--navy); }
.contacts .btn-gold:hover { background: var(--sky-2); }
.btn-line { border-color: var(--navy); color: var(--navy); }

/* золото — только в мелких акцентах */
.eyebrow::before { background: var(--gold); }
.dir li::before { background: var(--blue); }
.dir-ic { background: var(--sky); }
.dir-ic svg { stroke: var(--navy); }
.who .n { background: var(--sky); color: var(--navy); }
.quote { background: var(--sky); border-left-color: var(--navy); }
.role { color: var(--blue); }
.note { background: var(--sky); }
.partner:hover { background: var(--sky); }
.partner:hover span { color: var(--blue); }
.cat small { color: var(--blue); }
.cat:hover, .dir:hover { border-color: var(--line); }
.form input:focus, .form textarea:focus { border-color: var(--blue); }
.consent input { accent-color: var(--navy); }
.ftr h4, .c-list div small { color: #9fb3d6; }
.ftr a:hover, .c-list div a:hover { color: #fff; text-decoration: underline; }
.contacts .eyebrow::before, .stats .eyebrow::before, .ftr .eyebrow::before { background: var(--gold-2); }

/* шапка: логотип целиком — знак + подпись, как на логотипе; меню Manrope, не жирное */
.hdr { background: rgba(255,255,255,.96); }
.hdr .wrap { height: 88px; }
.logo { gap: 14px; }
.logo img { width: 60px; height: 60px; }
.logo-cap { font-family: "PT Serif", Georgia, serif; font-weight: 700; font-size: 13px; line-height: 1.25; letter-spacing: .07em;
  text-transform: uppercase; color: #3a3f4a; }
.ftr .logo-cap { color: #e6e9ef; }
.nav a { font-family: "Manrope", var(--sans); font-weight: 500; font-size: 15px; color: #2b3240; }
.nav a:hover { color: var(--blue); }
.nav.open { top: 88px; }

/* 1. первый экран: фото на правую половину экрана */
.hero { padding: 0; min-height: 680px; display: flex; align-items: center; background: #fff; }
.hero .wrap { grid-template-columns: 1fr; width: 100%; }
.hero .wrap > div:first-child { width: 50%; padding: 88px 56px 96px 0; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
  background: radial-gradient(120% 90% at 60% 55%, #ffffff 0%, var(--sky) 55%, var(--sky-2) 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-media img { width: 88%; max-width: 760px; mix-blend-mode: multiply; }
.hero h1 { font-size: 58px; }

/* 1.1 цифры: без сетки на фоне */
.stats::before { content: none; }
.stat::after { color: var(--gold-2); }

/* 2. руководитель: прямоугольное фото */
.portrait { aspect-ratio: 4 / 5; border-radius: 14px; background: linear-gradient(160deg, #eef2f7, #dde5f0); border: 1px solid var(--line); }
.portrait::before { content: ""; inset: 14px; border-radius: 8px; border: 1px solid var(--sky-2); }
.portrait::after { content: none; }
.portrait span { color: var(--muted); line-height: 1.5; }
.leader .wrap { grid-template-columns: 380px 1fr; }

/* 3. о компании: фото целиком, плашки в один ряд */
.about .wrap + .wrap { display: block; margin-top: 48px; }
.about-pic { padding: 28px; background: #fff; }
.about-pic img { width: 100%; height: auto; object-fit: contain; }
.who { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 0; }
.who div { display: flex; flex-direction: column; gap: 18px; padding: 28px 26px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--navy); }
.who .n { width: auto; height: auto; background: none; color: var(--tone); font-family: var(--mono); font-size: 13px; display: block; text-align: left; border-radius: 0; }
.who b { font-family: var(--head); font-weight: 500; text-transform: uppercase; font-size: 20px; line-height: 1.15; letter-spacing: .01em; }
.who span { font-size: 15px; margin-top: 8px; }

@media (max-width: 1020px) {
  .hero { display: block; min-height: 0; }
  .hero .wrap > div:first-child { width: 100%; padding: 56px 0 40px; }
  .hero-media { position: relative; width: 100%; height: 420px; }
  .hero-media img { width: 80%; }
  .leader .wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; }
  .who { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hdr .wrap { height: 72px; }
  .nav.open { top: 72px; }
  .logo img { width: 46px; height: 46px; }
  .logo-cap { font-size: 10.5px; letter-spacing: .05em; }
  .hero .wrap > div:first-child { padding: 40px 0 32px; }
  .hero-media { height: 300px; }
  .hero h1 { font-size: 34px; }
  .who b { font-size: 18px; }
}
@media (max-width: 380px) { .logo-cap { display: none; } }
.hero .wrap { position: static; } @media (max-width: 1020px) { .hero .wrap { position: relative; } }
@media (max-width: 1180px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 88px; left: 0; right: 0; background: #fff;
    padding: 18px 24px 24px; border-bottom: 1px solid var(--line); gap: 14px; }
  .burger { display: block; }
  .hdr-r { margin-left: auto; }
}
@media (max-width: 640px) { .nav.open { top: 72px; } }
@media (max-width: 380px) { .logo-cap { display: block; } }
@media (max-width: 420px) { .hdr .btn { display: none; } }

/* ============================================================================
 * v4 — палитра Веры: золото #C9A35F (металлическое), глубокий синий #1F3A5F,
 * холодный серый #8E97A3, тёплый серый #D9D4CC, винный #7A3E4D, слоновая кость #F7F4EF,
 * графит #1F232B. Шрифт Manrope везде.
 * ==========================================================================*/
:root {
  --gold: #c9a35f; --gold-2: #e3c587; --gold-dark: #a37a35;
  --gold-metal: linear-gradient(135deg, #a8782f 0%, #d9b46a 28%, #f1d9a0 48%, #c9a35f 66%, #9c712c 100%);
  --navy: #1f3a5f; --navy-2: #284a76; --blue: #1f3a5f;
  --cool: #8e97a3; --warm: #d9d4cc; --wine: #7a3e4d;
  --bg: #f7f4ef; --ink: #1f232b; --text: #3b404a; --muted: #8e97a3;
  --line: #e4ded4; --sky: #efeae2; --sky-2: #e4ded4; --gold-soft: #f3ead9;
  --head: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tone: #1f3a5f;
}
body { background: var(--bg); color: var(--text); }
h1, h2 { font-family: var(--head); font-weight: 800; text-transform: none; letter-spacing: -.02em; line-height: 1.12; color: var(--ink); }
h1 { font-size: 54px; } h2 { font-size: 42px; }
.hero h1 { font-size: 54px; }
h1 .tone, h2 .tone, .hero h1 span.tone, .leader h2 .tone { color: var(--navy); }
.contacts h2, .contacts h2 .tone { color: #fff; }
.contacts h2 .tone { color: var(--gold-2); }

/* подписи блоков: разрядка заглавными, холодный серый */
.eyebrow { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cool); }
.eyebrow::before { width: 28px; height: 2px; border-radius: 2px; background: var(--gold-metal); }
.leader .eyebrow { color: var(--cool); }
.contacts .eyebrow, .stats .eyebrow { color: #b9c3d3; }

/* кнопки как на макете палитры */
.btn { border-radius: 12px; font-family: var(--sans); font-weight: 700; font-size: 15.5px; padding: 17px 28px; gap: 12px; }
.btn-gold, .contacts .btn-gold, .stats .btn-gold { background: var(--gold-metal); background-size: 160% 160%; background-position: 0% 50%; color: #fff;
  text-shadow: 0 1px 1px rgba(90,60,15,.35); box-shadow: 0 8px 22px rgba(169,122,47,.32), inset 0 1px 0 rgba(255,255,255,.35); border: 0; transition: background-position .5s, box-shadow .2s; }
.btn-gold:hover, .contacts .btn-gold:hover { background-position: 100% 50%; box-shadow: 0 10px 26px rgba(169,122,47,.42), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-blue { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(31,58,95,.25); }
.btn-blue:hover { background: var(--navy-2); }
.btn-line { border: 1.5px solid var(--navy); color: var(--navy); background: #fff; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost { background: #efeae2; color: var(--ink); }
.btns .btn::after, .center-btn .btn::after, .c-btns .btn-gold::after { content: "→"; font-weight: 600; }
.hdr .btn { padding: 12px 22px; font-size: 14.5px; }

/* шапка и меню */
.hdr { background: rgba(247,244,239,.96); border-bottom-color: var(--line); }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--gold-dark); }
.logo-cap { color: var(--ink); }
.gold-logo { filter: grayscale(1) sepia(1) saturate(2.1) hue-rotate(-6deg) brightness(.95) contrast(1.05); }

/* первый экран */
.hero { background: var(--bg); }
.hero-media { background: radial-gradient(120% 90% at 60% 55%, #ffffff 0%, #f3efe8 55%, #e7e1d7 100%); }

/* цифры: синий фон, металлическое золото в цифрах */
.stats { background: var(--navy); }
.stats-grid { border-top-color: rgba(255,255,255,.16); }
.stat { border-right-color: rgba(255,255,255,.16); }
.stat b { font-family: var(--head); font-weight: 800; letter-spacing: -.02em; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat b.sm { text-transform: none; font-size: 40px; }
.stat span { font-family: var(--sans); font-size: 14px; color: #c4cddb; }
.stat::after { color: var(--gold-2); font-family: var(--sans); }

/* руководитель */
.leader { background: #fff; }
.role { color: var(--wine); font-family: var(--sans); font-weight: 600; font-size: 14px; }
.quote { background: var(--bg); border-left: 3px solid var(--gold); color: var(--ink); }
.portrait { background: linear-gradient(160deg, #f4f0ea, #e6e0d6); }
.portrait::before { border-color: var(--warm); }

/* о компании */
.who div { border-top: 3px solid transparent; border-image: var(--gold-metal) 1; border-image-slice: 1; border-radius: 0; }
.who .n { color: var(--gold-dark); font-family: var(--sans); font-weight: 700; }
.who b { font-family: var(--head); font-weight: 800; text-transform: none; letter-spacing: -.01em; font-size: 19px; }

/* направления */
.dir { background: #fff; }
.dir:hover { background: #fcfaf6; }
.dir::before, .partner::before { color: var(--gold-dark); font-family: var(--sans); }
.dir-num { font-family: var(--sans); font-weight: 700; color: var(--cool); }
.dir-ic { background: var(--navy); }
.dir-ic svg { stroke: var(--gold-2); }
.dir h3 { font-family: var(--head); font-weight: 800; text-transform: none; letter-spacing: -.01em; font-size: 19px; }
.dir li::before { background: var(--gold); }
.dir-brands, .partner span, .cat span, .cat small { font-family: var(--sans); }
.cat small { color: var(--wine); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-size: 11.5px; }
.cat b, .form h3 { font-family: var(--head); font-weight: 800; text-transform: none; letter-spacing: -.01em; }
.note { background: var(--gold-soft); }
.partner:hover { background: var(--gold-soft); }
.partner:hover span { color: var(--gold-dark); }

/* контакты и подвал */
.contacts { background: var(--navy); }
.c-list div small { color: var(--gold-2); font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: 11.5px; }
.form input:focus, .form textarea:focus { border-color: var(--gold); }
.consent input { accent-color: var(--gold-dark); }
.ftr { background: var(--ink); }
.ftr h4 { color: var(--gold-2); font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: 11.5px; }

@media (max-width: 1020px) { h1, .hero h1 { font-size: 42px; } h2 { font-size: 34px; } }
@media (max-width: 640px) { h1, .hero h1 { font-size: 31px; } h2 { font-size: 27px; } .stat b.sm { font-size: 26px; } .btn { padding: 15px 20px; } }

/* ============================================================================
 * v5 — визуал galarmed.ru: тёмно-синие блоки со свечением, центрированный первый экран,
 * Manrope 500, шапка из «плиток», стекло-кнопки и чипы. Золото МОК — акцент.
 * ==========================================================================*/
:root { --deep: #07142a; --deep-2: #0c1f3d; --glass: rgba(222,236,255,.08); --glass-line: rgba(222,236,255,.14); }
h1, h2 { font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
h1 .tone, h2 .tone { color: inherit; opacity: .55; }
.leader h2 .tone, .dirs h2 .tone, #partnery h2 .tone, .cats h2 .tone { color: var(--navy); opacity: 1; }
.btn { border-radius: 6px; font-weight: 600; font-size: 15px; padding: 15px 24px; }
.btns .btn::after, .center-btn .btn::after, .c-btns .btn-gold::after { content: "›"; font-size: 20px; line-height: 0; margin-left: 4px; }
.btn-glass { background: var(--glass); color: #fff; border: 1px solid var(--glass-line); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(222,236,255,.16); }
.spark { display: inline-block; width: 14px; height: 14px; position: relative; flex: none; }
.spark::before, .spark::after { content: ""; position: absolute; background: var(--gold-2); border-radius: 1px; }
.spark::before { left: 6px; top: 0; width: 2px; height: 14px; box-shadow: 0 0 6px rgba(227,197,135,.6); }
.spark::after { top: 6px; left: 0; width: 14px; height: 2px; box-shadow: 0 0 6px rgba(227,197,135,.6); }
.spark-label { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.62); margin-bottom: 26px; }

/* шапка: тёмная, пункты меню — «плитки» */
.hdr { background: rgba(7,20,42,.92); border-bottom: 1px solid var(--glass-line); backdrop-filter: blur(12px); }
.hdr .wrap { height: 76px; gap: 10px; max-width: 1360px; }
.logo-cap { color: #eef1f6; }
.nav { gap: 6px; margin: 0 0 0 auto; }
.nav a { color: rgba(255,255,255,.78); background: var(--glass); border: 1px solid transparent; padding: 10px 16px; border-radius: 4px; font-size: 14px; font-weight: 500; }
.nav a:hover { color: #fff; border-color: var(--glass-line); }
.hdr-tel { display: inline-flex !important; color: rgba(255,255,255,.85); background: var(--glass); padding: 10px 16px; border-radius: 4px; font-size: 14px; font-weight: 500; }
.hdr .btn { padding: 11px 20px; border-radius: 4px; font-size: 14px; }
.burger { background: var(--glass); border-color: var(--glass-line); }
.burger span { background: #fff; }
.nav.open { background: var(--deep); }
@media (max-width: 1499px) { .hdr-tel { display: none !important; } }

/* 1. первый экран — тёмный, по центру, со свечением */
.hero-dark { background: radial-gradient(60% 55% at 50% 100%, rgba(70,120,200,.55) 0%, rgba(30,60,120,.25) 40%, transparent 70%),
  radial-gradient(80% 70% at 50% 30%, var(--deep-2) 0%, var(--deep) 70%); color: #fff; min-height: 820px; display: flex; align-items: center; padding: 120px 0 110px; overflow: hidden; }
.hero-dark .wrap { display: block; }
.hero-c { text-align: center; position: relative; z-index: 1; max-width: 1000px; }
.hero-dark h1 { color: #fff; font-size: 64px; margin: 0 auto; max-width: 980px; }
.hero-dark .lead { color: rgba(255,255,255,.62); margin: 26px auto 0; max-width: 640px; font-size: 18px; }
.hero-dark .btns { justify-content: center; margin-top: 40px; }
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbits ellipse { fill: none; stroke: rgba(227,197,135,.16); stroke-width: 1; }
.orbits ellipse:nth-child(2) { stroke: rgba(150,180,230,.14); }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 56px auto 0; max-width: 820px; }
.chips li { background: var(--glass); border: 1px solid var(--glass-line); color: rgba(255,255,255,.72); font-size: 13.5px; padding: 8px 14px; border-radius: 4px; }
.hero-dark .cmt-btn { z-index: 3; }

/* 1.1 цифры — светлый блок «01 / …» */
.stats { background: var(--bg); color: var(--text); padding: 80px 0; }
.stats .eyebrow { color: var(--cool); }
.stats-grid { border-top: 0; gap: 24px; }
.stat { border: 0; border-top: 1px solid var(--warm); padding: 18px 0 0 !important; }
.stat::after { content: none !important; }
.stat::before { content: attr(data-n); display: block; font-size: 13px; color: var(--cool); margin-bottom: 26px; }
.stat b { font-weight: 500; font-size: 64px; }
.stat b.sm { font-size: 38px; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* 2. руководитель */
.leader { background: #fff; }
.quote { border-left-color: var(--gold); border-radius: 0 6px 6px 0; }

/* 3. о компании — тёмный блок со свечением и стеклянными плашками */
.about-dark { background: radial-gradient(55% 60% at 50% 0%, rgba(70,120,200,.45) 0%, rgba(30,60,120,.18) 45%, transparent 75%), var(--deep); color: rgba(255,255,255,.7); }
.about-dark h2 { color: #fff; }
.about-dark p { color: rgba(255,255,255,.66); }
.about-dark .eyebrow { color: rgba(255,255,255,.55); }
.about-dark .about-pic { border-color: transparent; border-radius: 10px; }
.about-dark .who div { background: var(--glass); border: 1px solid var(--glass-line); border-image: none; border-radius: 6px; border-top: 1px solid var(--glass-line); }
.about-dark .who b { color: #fff; font-weight: 600; }
.about-dark .who span { color: rgba(255,255,255,.6); }
.about-dark .who .n { color: var(--gold-2); }

/* 4–6. заголовки карточек полегче */
.dir h3, .who b, .cat b, .form h3 { font-weight: 600; }
.dir, .partner, .cat { border-radius: 0; }
.cat { border-radius: 6px; }
.dir-ic { border-radius: 6px; background: var(--deep); }

/* 7. контакты — тёмный со свечением, поля с линией снизу */
.contacts { background: radial-gradient(55% 60% at 30% 100%, rgba(70,120,200,.4) 0%, transparent 70%), var(--deep); }
.form { background: var(--glass); border: 1px solid var(--glass-line); color: #fff; border-radius: 6px; backdrop-filter: blur(8px); }
.form h3 { color: #fff; }
.form p, .form label { color: rgba(255,255,255,.6); }
.form input, .form textarea { background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.22); border-radius: 0; color: #fff; padding: 12px 2px; }
.form input:focus, .form textarea:focus { background: transparent; border-bottom-color: var(--gold-2); }
.consent { color: rgba(255,255,255,.55) !important; }
.consent a { color: #fff; }
.modal .form { background: var(--deep-2); }
.ftr { background: #050e1e; }

@media (max-width: 1180px) { .nav.open a { background: transparent; padding: 6px 0; } }
@media (max-width: 1020px) {
  .hero-dark { min-height: 0; padding: 96px 0 80px; }
  .hero-dark h1 { font-size: 46px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}
@media (max-width: 640px) {
  .hdr .wrap { height: 68px; }
  .hero-dark { padding: 72px 0 64px; }
  .hero-dark h1 { font-size: 32px; }
  .hero-dark .lead { font-size: 16px; }
  .chips { margin-top: 36px; }
  .chips li { font-size: 12.5px; padding: 7px 11px; }
  .stat b { font-size: 46px; } .stat b.sm { font-size: 26px; }
  .stat::before { margin-bottom: 14px; }
}
.hero-dark h1 .tone, .about-dark h2 .tone { opacity: 1; color: #93a6c6; }
.contacts h2 .tone { opacity: 1; color: var(--gold-2); }
.stats h2 .tone { opacity: 1; }
.hero-dark h1 span.tone { color: #93a6c6; opacity: 1; }
.hero-dark { flex-direction: column; justify-content: center; }
.hero-dark .wrap > div:first-child { width: auto; padding: 0; }
.hero-dark .wrap { width: 100%; }
@media (max-width: 640px) { .spark-label { font-size: 13px; } .hero-dark .btns .btn { width: 100%; } }

/* ============================================================================
 * v6 (правки Веры): первый экран ровно на экран, матовое золото без перелива,
 * единый стиль блоков как у Галар, новая цитата, плашки-линии, компактные компании,
 * короткая форма с галочкой перед кнопкой
 * ==========================================================================*/
:root { --gold-flat: #c9a35f; --gold-hover: #d4b274; --light: #f3f1ed; --card: #e9e5de; }

/* золото — ровный матовый цвет, тёмный текст */
.btn-gold, .contacts .btn-gold { background: var(--gold-flat); color: #0f1a2e; text-shadow: none; box-shadow: none; }
.btn-gold:hover, .contacts .btn-gold:hover { background: var(--gold-hover); box-shadow: none; }
.eyebrow::before { background: var(--gold-flat); }

/* 1. первый экран = высота окна */
.hero-dark { min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); padding: 64px 0; }
.chips { margin-top: 44px; }

/* общие светлые блоки — один фон и одна сетка */
.leader, .dirs, #partnery, .cats { background: var(--light); border: 0; }
.dirs { background: #fff; }
main section { padding: 104px 0; }

/* 2. руководитель */
.leader .wrap { grid-template-columns: 420px 1fr; gap: 72px; align-items: center; }
.portrait { background: var(--card); border: 0; border-radius: 6px; }
.portrait::before { border-color: rgba(31,58,95,.12); border-radius: 4px; }
.l-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 30px; border-top: 1px solid #d9d4cc; }
.l-facts div { padding: 16px 16px 0 0; }
.l-facts b { display: block; font-size: 34px; font-weight: 500; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.l-facts span { font-size: 13.5px; color: var(--cool); }
.q-card { margin: 34px 0 0; position: relative; background: radial-gradient(70% 120% at 0% 0%, rgba(70,120,200,.35), transparent 60%), var(--deep);
  color: #fff; border-radius: 6px; padding: 34px 34px 26px 34px; overflow: hidden; }
.q-mark { position: absolute; right: 26px; top: -18px; font: 500 140px/1 "PT Serif", Georgia, serif; color: var(--gold-flat); opacity: .9; }
.q-card blockquote { margin: 0; font-size: 21px; line-height: 1.45; font-weight: 500; max-width: 560px; letter-spacing: -.01em; }
.q-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px;
  padding-top: 18px; border-top: 1px solid var(--glass-line); }
.q-who b { display: block; font-size: 15px; font-weight: 600; }
.q-who small { display: block; font-size: 13px; color: rgba(255,255,255,.55); }
.q-wa { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-size: 14.5px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-line); padding: 11px 16px; border-radius: 6px; }
.q-wa:hover { background: rgba(222,236,255,.16); }

/* 3. о компании — строки «01 / …» вместо карточек */
.about .wrap + .wrap { margin-top: 64px; }
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.lines div { border-top: 1px solid var(--glass-line); padding-top: 18px; }
.lines small { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.5); }
.lines small::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-flat); margin-top: 5px; }
.lines b { display: block; margin-top: 34px; font-size: 22px; font-weight: 500; color: #fff; letter-spacing: -.01em; }
.lines span { display: block; margin-top: 8px; font-size: 14.5px; color: rgba(255,255,255,.58); line-height: 1.5; }

/* 5. с кем работаем — компактные плашки-ссылки */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; background: #fff; border: 1px solid #e3ded5; border-radius: 6px;
  text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 500; transition: .2s; }
.pill i { font-style: normal; color: var(--cool); font-size: 13px; }
.pill:hover { background: var(--deep); color: #fff; border-color: var(--deep); }
.pill:hover i { color: var(--gold-flat); }
#partnery .note { background: transparent; padding: 0; margin-top: 22px; color: var(--muted); }

/* 6. каталоги в том же стиле */
.cat { background: #fff; border-color: #e3ded5; }

/* 7. контакты — короткая форма, заканчивается на уровне кнопок */
.contacts .wrap { grid-template-columns: 1fr 1fr; align-items: center; }
.form-short { padding: 30px; }
.form-short h3 { font-size: 22px; margin-bottom: 18px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-short input[type=text], .form-short input[type=tel] { margin-top: 6px; }
.form-short input::placeholder { color: rgba(255,255,255,.45); }
.form-short .consent { margin: 18px 0 0; }
.form-short .btn { margin-top: 18px; }
.modal .consent { margin-top: 16px; }
.c-list { gap: 18px; margin-top: 32px; }

@media (max-width: 1020px) {
  .leader .wrap { grid-template-columns: 1fr; }
  .lines { grid-template-columns: 1fr; gap: 28px; }
  .lines b { margin-top: 16px; }
  .contacts .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main section { padding: 72px 0; }
  .hero-dark { padding: 48px 0; }
  .q-card { padding: 26px 22px 22px; }
  .q-card blockquote { font-size: 18px; }
  .q-mark { font-size: 100px; right: 16px; }
  .l-facts b { font-size: 28px; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .pill { font-size: 13.5px; padding: 9px 12px; }
}
.contacts .wrap { align-items: end; } @media (max-width: 1020px) { .contacts .wrap { align-items: start; } }
/* каталоги — 6 штук сеткой по 3 */
.cat-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-grid-3 .cat { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.cat-img { display: block; height: 220px; background: var(--card); overflow: hidden; }
.cat-grid-3 .cat img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; box-shadow: none; transition: transform .4s; }
.cat-grid-3 .cat:hover img { transform: scale(1.03); }
.cat-grid-3 .cat > div { padding: 22px 24px 24px; }
.cat-grid-3 .cat b { font-size: 19px; line-height: 1.3; }
@media (max-width: 1020px) { .cat-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cat-grid-3 { grid-template-columns: 1fr; } .cat-img { height: 200px; } .cat-grid-3 .cat img { width: 100%; } }
.btn-gold, .contacts .btn-gold, .stats .btn-gold, .btn-gold:hover, .contacts .btn-gold:hover { color: #fff; }
/* обложки каталогов целиком, без обрезки */
.cat-img { height: 260px; padding: 18px; background: #ebe7e0; display: flex; align-items: center; justify-content: center; }
.cat-grid-3 .cat img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 8px 22px rgba(15,26,46,.16); border-radius: 3px; }
@media (max-width: 640px) { .cat-img { height: 230px; } .cat-grid-3 .cat img { width: auto; } }
.form-short .f-row + .f-row { margin-top: 6px; }
/* «О компании»: карточки с полосой сверху, как в прошлой версии, заголовки в 2 строки */
.lines { gap: 20px; }
.lines div { background: var(--glass); border: 1px solid var(--glass-line); border-top: 3px solid var(--gold-flat); border-radius: 6px; padding: 26px 26px 28px; }
.lines small::after { content: none; }
.lines small { color: var(--gold-2); }
.lines b { margin-top: 22px; line-height: 1.2; font-size: 22px; }
.lines span { margin-top: 12px; }
.portrait.has-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--card); }
.portrait.has-photo::before { content: none; }
.portrait.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
/* руководитель: текст по высоте фото */
.leader .wrap { align-items: stretch; }
.leader .wrap > div:last-child { display: flex; flex-direction: column; justify-content: space-between; }
.leader .portrait.has-photo { aspect-ratio: auto; height: 100%; min-height: 520px; }
.leader .eyebrow { margin-bottom: 12px; }
.leader p { font-size: 16px; margin-top: 12px; line-height: 1.55; }
.l-facts { margin-top: 20px; }
.l-facts div { padding-top: 12px; }
.l-facts b { font-size: 30px; }
.q-card { margin-top: 22px; padding: 26px 30px 20px; }
.q-card blockquote { font-size: 19px; }
.q-card figcaption { margin-top: 18px; padding-top: 14px; }
.q-mark { font-size: 110px; top: -14px; }
@media (max-width: 1020px) { .leader .portrait.has-photo { aspect-ratio: 4 / 5; height: auto; min-height: 0; } }
/* единые отступы: подпись → заголовок 18px, заголовок → текст 22px, шапка блока → контент 44px */
.eyebrow { margin-bottom: 18px !important; }
.leader .wrap > div:last-child { justify-content: flex-start; }
.leader .q-card { margin-top: auto; }
.leader .l-facts { margin-bottom: 22px; }
.leader h2 + p, .about h2 + p, .contacts h2 + .lead, .sec-head h2 + .lead { margin-top: 22px; }
.about p + p, .leader p + p { margin-top: 14px; }
.sec-head { margin-bottom: 44px; }
.leader .q-card { margin-top: 0; }
.leader .portrait.has-photo { min-height: 0; height: auto; }
.leader .wrap > .portrait.has-photo { align-self: stretch; position: relative; }
.leader .portrait.has-photo img { position: absolute; inset: 0; }
@media (max-width: 1020px) { .leader .portrait.has-photo img { position: static; } }
@media (max-width: 1020px) { .leader .portrait.has-photo img { position: absolute; } }
/* «С кем работаем» и «Каталоги» на одном фоне — общий отступ между ними как между остальными блоками */
#partnery { padding-bottom: 0; }
#katalogi { padding-top: 88px; }
@media (max-width: 640px) { #katalogi { padding-top: 64px; } }
/* боевая версия: скрытое поле-ловушка, две галочки согласия */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.consents { display: grid; gap: 10px; margin-top: 18px; }
.consents .consent { margin: 0 !important; }
/* «О компании»: фото со стендов на выставках */
.about-pic.expo { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; padding: 0; background: transparent; border: 0; }
.about-pic.expo img { width: 100%; height: 420px; object-fit: cover; border-radius: 8px; }
.about-pic.expo .ex-2 { object-position: 50% 30%; }
.about-pic.expo figcaption { grid-column: 1 / -1; margin-top: 4px; color: rgba(255,255,255,.5); text-align: left; }
@media (max-width: 640px) { .about-pic.expo { grid-template-columns: 1fr 1fr; } .about-pic.expo img { height: 240px; } }
.c-list div a + a { margin-top: 2px; }

/* выставки: фото целиком, без обрезки (ширины пропорциональны 4:3 и 3:4) */
.about-pic.expo { grid-template-columns: 16fr 9fr; align-items: start; }
.about-pic.expo img { height: auto; aspect-ratio: auto; object-fit: contain; }
@media (max-width: 640px) { .about-pic.expo { grid-template-columns: 1fr; } .about-pic.expo img { height: auto; } }
.ftr .copy { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.ftr .copy .credit { display: inline; margin: 0; color: #8f9ab0; }
.ftr .copy .credit:hover { color: #fff; }
/* о компании: фото рядом с текстом, целиком */
#kompaniya > .wrap:first-of-type { grid-template-columns: 1fr 1.3fr; align-items: center; }
#kompaniya .about-pic.expo { width: 100%; max-width: none; justify-self: stretch; margin: 0; }
@media (max-width: 1020px) { #kompaniya > .wrap:first-of-type { grid-template-columns: 1fr; } }
