/*
 * kamaz-remont.ru — общие стили сайта СТО «Автовектор».
 * Фирстиль ПАО «КАМАЗ»: токены как на kamaz.ru / azkamaz.ru v4 (Golos Text + PT Mono, #003055 / #005682 / #141515).
 * Один акцент — синий КАМАЗ (#005682) для кнопок и ссылок; глубокий синий #003055 — фон тёмных секций и логотип.
 */

@font-face { font-family: "Golos Text"; src: url(../fonts/golostext-cyrillic.woff2) format("woff2"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url(../fonts/golostext-latin.woff2) format("woff2"); font-weight: 400 900; font-display: swap;
  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: "PT Mono"; src: url(../fonts/ptmono-cyrillic.woff2) format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Mono"; src: url(../fonts/ptmono-latin.woff2) format("woff2"); font-weight: 400; font-display: swap;
  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 {
  /* Палитра КАМАЗ */
  --k-black: #0a0f0e;
  --k-ink: #141515;
  --k-deep: #003055;
  --k-blue: #005682;
  --k-mute: #a5a5a5;
  --k-silver: #e2e2e2;
  --k-soft: #f3f3f3;
  --k-paper: #fafafa;

  /* Роли (светлая тема) */
  --bg: #fff;
  --bg-soft: var(--k-soft);
  --text: var(--k-ink);
  --text-2: rgb(20 21 21 / .7);
  --line: rgb(20 21 21 / .12);
  --accent: var(--k-blue);
  --accent-ink: #fff;
  --accent-hover: var(--k-deep);
  --logo: var(--k-deep);
  --focus: #1f7fb8;

  --on-dark: #fff;
  --on-dark-2: rgb(255 255 255 / .72);
  --line-dark: rgb(255 255 255 / .18);

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "PT Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-body: 18px;
  --fs-h1: clamp(40px, 6.4vw, 96px);
  --fs-h2: clamp(32px, 3.8vw, 56px);
  --fs-h3: clamp(20px, 1.6vw, 24px);
  --fs-lead: clamp(18px, 1.4vw, 21px);
  --fs-label: 14px;

  --r: 12px;
  --r-s: 8px;
  --r-pill: 999px;
  --wrap: 1400px;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(80px, 10vw, 144px);
  --hdr-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--k-black);
    --bg-soft: var(--k-ink);
    --text: #f4f4f4;
    --text-2: rgb(244 244 244 / .7);
    --line: rgb(255 255 255 / .14);
    --accent: #2b86bd;
    --accent-hover: #4a9ccc;
    --logo: #fff;
    --focus: #6bb6e3;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--k-ink); color: #fff; padding: 12px 16px; border-radius: var(--r-s); }
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sec { padding-block: var(--sec); background: var(--bg); }
.sec--soft { background: var(--bg-soft); }
.sec--deep { background: var(--k-deep); color: var(--on-dark); }

/* Типографика */
.label {
  font: 400 var(--fs-label)/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 20px;
}
.label--on-dark, .sec--deep .label { color: var(--on-dark-2); }
.h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.note { font-size: 15px; line-height: 1.5; color: var(--text-2); }

/* Кнопки — как на kamaz.ru: PT Mono заглавными, разрядка 0,04em */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill);
  border: 1px solid transparent; font: 400 14px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 15px; }
.btn--dark { background: var(--accent); color: var(--accent-ink); }
.btn--dark:hover { background: var(--accent-hover); }
.btn--light { background: #fff; color: var(--k-ink); }
.btn--light:hover { background: var(--k-silver); }
.btn--ghost-light { color: #fff; border-color: rgb(255 255 255 / .5); }
.btn--ghost-light:hover { border-color: #fff; background: rgb(255 255 255 / .08); }

/* Круглая стрелка как на kamaz.ru */
.arr {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid currentColor; opacity: .5; position: relative;
  transition: opacity .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.arr::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 7h11M7.5 2.5 12 7l-4.5 4.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 7h11M7.5 2.5 12 7l-4.5 4.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.link-arr { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arr:hover .arr { opacity: 1; background: var(--accent); border-color: var(--accent); color: #fff; }

/* Логотипы: маска + currentColor, чтобы перекрашивать на тёмном и светлом */
.logo-kamaz { display: inline-flex; align-items: center; gap: 10px; color: var(--logo); }
.logo-kamaz__symbol, .logo-kamaz__word, .logo-av__img { display: block; background: currentColor; }
.logo-kamaz__symbol { width: 27px; height: 36px;
  -webkit-mask: url(../img/logo/kamaz-symbol.svg) center/contain no-repeat; mask: url(../img/logo/kamaz-symbol.svg) center/contain no-repeat; }
.logo-kamaz__word { width: 92px; height: 23px;
  -webkit-mask: url(../img/logo/kamaz-wordmark.svg) center/contain no-repeat; mask: url(../img/logo/kamaz-wordmark.svg) center/contain no-repeat; }
.logo-av { display: inline-flex; flex-direction: column; gap: 4px; color: var(--logo); }
.logo-av__img { width: 115px; height: 44px;
  -webkit-mask: url(../img/logo/avtovector.svg) left center/contain no-repeat; mask: url(../img/logo/avtovector.svg) left center/contain no-repeat; }
.logo-av__cap { font-size: 14px; line-height: 1.2; font-weight: 500; opacity: .82; white-space: nowrap; }
.hdr__sep { width: 1px; align-self: stretch; background: currentColor; opacity: .25; margin-inline: 4px; }
/* В шапке и подвале — знак КАМАЗ и логотип Автовектора одной высоты, как на телефоне */
.hdr__brand .logo-kamaz__symbol, .ftr__brand .logo-kamaz__symbol { width: 36px; height: 48px; }
.hdr__brand .logo-av__img, .ftr__brand .logo-av__img { width: 115px; height: 44px; }
.hdr__brand .hdr__sep, .ftr__brand .hdr__sep { align-self: center; height: 32px; }

/* Шапка: прозрачная над видео, плотная после прокрутки */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr-h);
  color: #fff; --logo: #fff;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.hdr::before { /* лёгкое затемнение сверху, чтобы меню читалось на любом кадре */
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgb(10 15 14 / .55), rgb(10 15 14 / 0));
  transition: opacity .25s var(--ease);
}
.hdr.is-solid { background: var(--bg); color: var(--text); --logo: var(--k-deep); box-shadow: 0 1px 0 var(--line); }
.hdr.is-solid::before { opacity: 0; }
@media (prefers-color-scheme: dark) { .hdr.is-solid { --logo: #fff; } }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 32px; width: min(100% - 2 * var(--gut), 1600px); margin-inline: auto; }
.hdr__brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; flex: none; color: inherit; min-height: 44px; }
.hdr__nav { display: flex; gap: 4px; margin-left: auto; }
/* Меню — как на kamaz.ru: PT Mono 14 px заглавными, разрядка 0,04em (тот же шрифт, что у меток .label) */
.hdr__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-s); text-decoration: none; font: 400 14px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.hdr__nav a:hover { background: rgb(127 127 127 / .14); }
.hdr__nav .hdr__nav-phone { display: none; }
.hdr__actions { display: flex; align-items: center; gap: 20px; flex: none; }
.hdr__phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.25; min-height: 44px; justify-content: center; }
.hdr__phone-num { font-weight: 600; font-size: 17px; white-space: nowrap; }
.hdr__phone-cap { font: 400 14px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; opacity: .72; white-space: nowrap; }
.hdr.is-solid .hdr__cta { background: var(--accent); color: #fff; }
.hdr.is-solid .hdr__cta:hover { background: var(--accent-hover); }
.hdr__burger { display: none; width: 48px; height: 48px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; color: inherit; }
.hdr__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.hdr__burger span:first-child { top: 19px; }
.hdr__burger span:last-child { top: 27px; }
.hdr__burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1560px) {
  .hdr__phone-cap { display: none; }
  .hdr__nav a { padding-inline: 9px; }
}
@media (max-width: 1220px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: block; }
  .hdr__actions { margin-left: auto; }
  .hdr.is-open { background: var(--bg); color: var(--text); --logo: var(--k-deep); }
  .hdr.is-open::before { opacity: 0; }
  .hdr.is-open .hdr__nav {
    display: flex; flex-direction: column; gap: 0; position: fixed; inset: var(--hdr-h) 0 0; overflow-y: auto;
    background: var(--bg); padding: 16px var(--gut) 40px; border-top: 1px solid var(--line);
  }
  .hdr.is-open .hdr__nav a { display: flex; font-size: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hdr.is-open .hdr__nav-phone { display: flex; font: 600 22px/1.2 var(--font) !important; letter-spacing: 0 !important; text-transform: none !important; border-bottom: 0 !important; margin-top: 12px; }
}
@media (prefers-color-scheme: dark) and (max-width: 1220px) { .hdr.is-open { --logo: #fff; } }
@media (max-width: 960px) {
  .hdr__phone { display: none; }
}
@media (max-width: 720px) {
  :root { --hdr-h: 64px; --fs-body: 17px; }
  .hdr__phone { display: none; }
  .hdr__cta { display: none; }
  .hdr__brand { gap: 10px; }
  .hdr__brand .logo-kamaz__symbol { width: 26px; height: 34px; }
  .hdr__brand .logo-av__img { width: 84px; height: 32px; }
  .hdr__brand .hdr__sep { height: 24px; }
}

/* Подвал */
.ftr { background: var(--k-black); color: var(--on-dark); padding: clamp(56px, 7vw, 96px) 0 32px; --logo: #fff; position: relative; z-index: 1; }
.ftr__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.ftr__brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
/* Блок дилера КАМАЗ: логотип, статус, обязательные ссылки */
.ftr__dealer { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 24px 48px; padding-block: 40px; border-bottom: 1px solid var(--line-dark); }
.ftr__kamaz { display: inline-flex; padding: 8px 0; color: inherit; }
.ftr__kamaz .logo-kamaz { gap: 14px; }
.ftr__kamaz .logo-kamaz__symbol { width: 36px; height: 48px; }
.ftr__kamaz .logo-kamaz__word { width: 136px; height: 34px; }
.ftr__status { color: var(--on-dark-2); font-size: 16px; line-height: 1.5; }
.ftr__status-h { color: #fff; font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.ftr__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.ftr__links a { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 0; color: #fff; text-decoration: none; font-size: 16px; line-height: 1.35; font-weight: 500; }
.ftr__dom { font: 400 14px/1.4 var(--mono); color: var(--on-dark-2); letter-spacing: .02em; }
.ftr__links a:hover .ftr__dom { color: #fff; text-decoration: underline; }
@media (max-width: 1100px) { .ftr__dealer { grid-template-columns: auto 1fr; } .ftr__links { grid-column: 1 / -1; } }
@media (max-width: 600px) { .ftr__dealer { grid-template-columns: 1fr; } .ftr__links { grid-template-columns: 1fr; gap: 0; } }

.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 48px; }
.ftr__cols a, .ftr__cols p { display: block; color: var(--on-dark-2); text-decoration: none; font-size: 16px; line-height: 1.5; padding-block: 6px; }
.ftr__cols a:hover { color: #fff; }
.ftr__h { font: 400 var(--fs-label)/1.3 var(--mono) !important; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .55) !important; margin-bottom: 12px; }
.ftr__phone { color: #fff !important; font-size: 22px !important; font-weight: 600; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: rgb(255 255 255 / .6); }
.ftr__bottom { align-items: center; }
.ftr__bottom a { color: inherit; }
/* «Продвижение сайта — Неткам»: знак Неткам (звезда с курсором) + название текстом, скромно, в строку с реквизитами */
.ftr__dev { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; margin-left: auto; }
.ftr__dev-brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 16px; }
.ftr__dev-brand img { width: 20px; height: 24px; display: block; }
.ftr__dev:hover .ftr__dev-brand { color: #97caff; }
@media (max-width: 900px) { .ftr__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__cols { grid-template-columns: 1fr; gap: 24px; } }
.nw { white-space: nowrap; }
