/* =========================================================
   PETAMASH — стили сайта
   Палитра бренда: белый / жёлтый / чёрный. Шрифт: Inter (SIL OFL).
   ========================================================= */

/* ---------- Шрифт Inter (локально, латиница + кириллица) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/inter-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/inter-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 600; src: url(/assets/fonts/inter-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 600; src: url(/assets/fonts/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/inter-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/inter-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 900; src: url(/assets/fonts/inter-cyrillic-900-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 900; src: url(/assets/fonts/inter-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Токены ---------- */
:root {
  --yellow: #ffd100;
  --yellow-hover: #ffdb33;
  --black: #000000;
  --ink: #0a0a0a;
  --grey: #5f5f5a;
  --line: #dcdcd6;
  --paper: #ffffff;
  --soft: #f3f3ef;

  --font: 'Inter', Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-press: 160ms;
  --t-ui: 200ms;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 18px/1.6 var(--font); font-feature-settings: 'cv11';
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-weight: 900; line-height: 1.16; letter-spacing: 0.03em; font-kerning: none; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 22px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--yellow); color: var(--black);
  font: 700 16px/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 18px 26px; border: 0; text-decoration: none; cursor: pointer;
}
.btn { transition: background-color var(--t-ui) ease, color var(--t-ui) ease, box-shadow var(--t-ui) ease, transform var(--t-press) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { transform: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--yellow-hover); } }

:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.hero :focus-visible, .cat-hero :focus-visible, .service :focus-visible, .cat-cta :focus-visible,
.site-footer :focus-visible, .cookie :focus-visible, .cat:focus-visible, .oth:focus-visible { outline-color: var(--yellow); }
.cat:focus-visible, .oth:focus-visible { outline-offset: -3px; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 4px solid var(--yellow); }
.site-header .bar { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.site-header .logo { display: block; flex: none; }
@media (max-width: 370px) {
  .site-header .bar { gap: 10px; }
  .site-header .logo img { height: 28px !important; }
  .lang a { padding: 9px 9px; }
  .burger { padding: 10px 6px; }
}
.site-header .logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-weight: 600; font-size: 17px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color var(--t-ui) ease; }
.nav a:hover, .nav a[aria-current='page'] { border-color: var(--yellow); }

.drop { position: relative; }
.drop ul {
  position: absolute; top: 100%; left: -20px; min-width: 280px; margin: 0; padding: 10px 0; list-style: none;
  background: var(--paper); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transform-origin: top left;
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility var(--t-ui);
}
.drop:hover ul, .drop:focus-within ul { opacity: 1; visibility: visible; transform: none; }
.drop li a { display: block; padding: 10px 20px; border: 0; font-weight: 500; transition: background-color var(--t-ui) ease; }
.drop li a:hover, .drop li a[aria-current='page'] { background: var(--soft); }

.lang { display: flex; border: 1px solid var(--line); }
.lang a { font-size: 15px; font-weight: 600; line-height: 1; padding: 9px 11px; text-decoration: none; color: var(--grey); }
.lang a[aria-current='true'] { background: var(--black); color: #fff; }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--black); transition: transform .2s, opacity .2s; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-header .bar { gap: 16px; }
  .site-header .logo img { height: 34px; }
  .lang { margin-left: auto; }
  .burger { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav > a, .drop > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .drop ul { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 8px 16px; min-width: 0; }
  .drop li a { padding: 10px 0; }
}

/* ---------- Подвал ---------- */
.site-footer { background: var(--black); color: #b5b5ae; font-size: 16px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.site-footer .blurb { margin-top: 18px; max-width: 30ch; color: #8a8a83; }
.site-footer .brand img { height: 32px; width: auto; }
.site-footer .brand p { margin: 14px 0 0; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #8a8a83; }
.site-footer .h { color: #fff; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid #1c1c1b; font-size: 14px; color: #77776f; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Общие элементы секций ---------- */
.arr { width: 26px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; }
.btn .arr { transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arr { transform: translateX(4px); } }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: #fff; color: var(--black); } }

.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 56px; }
.sec-head p { margin: 0; color: var(--grey); font-size: 20px; }

/* ---------- Главная: 1. первый экран ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff; background: #0b0b0a; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.12) 100%), linear-gradient(0deg, rgba(0,0,0,.55), transparent 50%); }
.hero-in { position: relative; z-index: 1; width: 100%; padding-block: 72px 140px; }
.hero h1 { margin: 20px 0 24px; max-width: 20ch; font-size: clamp(36px, 5.8vw, 76px); }
/* EN: заголовок заглавными, как надпись на логотипе */
.hero h1.caps { text-transform: uppercase; max-width: none; font-size: clamp(32px, 4.9vw, 64px); letter-spacing: 0.02em; }
.hero-lead { margin: 0 0 40px; max-width: 44ch; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: #ecece6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }


/* ---------- 3. о компании ---------- */
.about { padding-block: clamp(88px, 11vw, 152px); }
.about-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.about-ph { position: relative; min-height: 560px; background: #8a8a83; overflow: hidden; }
.about-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }
.about-text { display: flex; flex-direction: column; gap: 18px; }
.about-text h2 { margin-bottom: 6px; }
.about-text p { margin: 0; font-size: 20px; color: var(--grey); max-width: 56ch; }
.marks { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.marks li { display: flex; flex-direction: column; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.marks b { font-size: 20px; }
.marks span { color: var(--grey); }

/* ---------- 4. техника ---------- */
.catalog { background: var(--soft); padding-block: clamp(88px, 11vw, 152px); }
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cat { position: relative; display: flex; align-items: flex-end; min-height: 460px; overflow: hidden; background: radial-gradient(120% 90% at 70% 35%, #232321 0%, #0b0b0a 55%, #000000 100%); color: #fff; text-decoration: none; }
.cat img { position: absolute; inset: 6% 5% 37% 5%; width: 90%; height: 57%; object-fit: contain; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.cat::after { content: none; }
@media (hover: hover) and (pointer: fine) { .cat:hover img { transform: scale(1.03); } .cat:hover .cat-go .arr { transform: translateX(4px); } }
.cat-in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 24px; width: 100%; min-width: 0; }
.cat-h { font-size: clamp(17px, 1.35vw, 20px); font-weight: 800; line-height: 1.25; letter-spacing: 0.02em; font-kerning: none; hyphens: auto; overflow-wrap: break-word; min-height: 2.5em; display: flex; align-items: flex-end; }
.cat-n { font-size: 16px; color: #d6d6cf; }
.cat-go { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; align-self: flex-start; background: var(--yellow); color: var(--black); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 12px 16px; white-space: nowrap; }
.cat-go .arr { transition: transform var(--t-ui) var(--ease-out); }

/* ---------- 5. сервис ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; background: var(--black); color: #fff; }
.service-ph { position: relative; min-height: 640px; background: radial-gradient(120% 90% at 70% 35%, #232321 0%, #0b0b0a 55%, #000000 100%); }
.service-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% center; }
.service-in { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 96px); }
.service-in > p { margin: 0; color: #c9c9c2; max-width: 48ch; font-size: 19px; }
.service-list { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; width: 100%; }
.service-list li { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid #2a2a28; }
.service-list span { font-size: 16px; color: #a9a9a2; }

/* ---------- 6. заявка + 7. контакты ---------- */
.request { padding-block: clamp(72px, 9vw, 124px); }
.request-in { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form label { display: flex; flex-direction: column; gap: 7px; font-size: 15px; font-weight: 600; min-width: 0; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; font: 18px/1.4 var(--font); color: var(--ink); background: #fff;
  border: 1px solid #bdbdb6; border-radius: 0; padding: 14px; appearance: none;
}
.lead-form select { background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.lead-form [aria-invalid='true'] { border-color: #c0392b; }
.lead-form .full { grid-column: 1 / -1; }
.lead-form .consent { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; color: var(--grey); font-size: 16px; }
.lead-form .consent input { width: 20px; height: 20px; flex: none; padding: 0; margin: 1px 0 0; appearance: auto; accent-color: var(--black); }
.form-note { margin: 0; min-height: 1.6em; font-size: 17px; }
.form-note.ok { padding: 14px 16px; background: var(--soft); }
.form-note.err { color: #c0392b; }

.contacts { display: flex; flex-direction: column; gap: 16px; }
.krows { margin-top: 12px; border-top: 1px solid var(--ink); }
.krow { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.krow span { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); padding-top: 3px; }
.krow b { font-weight: 600; font-size: 19px; overflow-wrap: anywhere; }
.krow b.tbd { font-weight: 400; font-style: italic; color: var(--grey); }

/* ---------- Главная: адаптив ---------- */

@media (max-width: 1024px) {
  .cat { min-height: 380px; }
}
@media (max-width: 860px) {
  .about-in, .request-in, .service { grid-template-columns: 1fr; }
  .about-ph { min-height: 320px; order: -1; }
  .service-ph { min-height: 300px; }
}
@media (max-width: 560px) {
  .hero { min-height: 0; }
  .hero-in { padding-block: 112px 56px; }
  .hero h1 { font-size: clamp(22px, 6.7vw, 34px); max-width: none; hyphens: auto; }
  .hero h1.caps { font-size: clamp(20px, 6.2vw, 30px); hyphens: none; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .cats { grid-template-columns: 1fr; }
  .cat { min-height: 340px; }
  .service-list { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .krow { grid-template-columns: 1fr; gap: 4px; }
}


/* ---------- Страница направления ---------- */
.cat-hero { position: relative; display: flex; align-items: flex-end; min-height: min(62vh, 560px); color: #fff; background: radial-gradient(120% 90% at 70% 35%, #232321 0%, #0b0b0a 55%, #000000 100%); overflow: hidden; }
.cat-hero-img { position: absolute; top: 14%; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: min(42%, 560px); height: 76%; object-fit: contain; object-position: right center; }
.cat-hero::after { content: none; }
.cat-hero-in { position: relative; z-index: 1; width: 100%; padding-block: 120px 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; color: #c9c9c2; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); }
.crumbs [aria-current] { color: var(--yellow); }
.cat-hero h1 { font-size: clamp(32px, 4vw, 54px); max-width: min(14ch, 54%); }
.cat-lead { max-width: 34ch; }
.cat-lead { margin: 0; max-width: min(48ch, 52%); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: #ecece6; }
.cat-count { font-size: 17px; font-weight: 600; color: #ecece6; }

/* Список моделей — по образцу Liebherr: фото слева, характеристики справа */
.models { padding-block: clamp(56px, 7vw, 96px) clamp(72px, 9vw, 124px); }
.models-note { margin: 0 0 8px; font-size: 16px; color: var(--grey); }
.model { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.model:first-of-type { border-top: 1px solid var(--line); margin-top: 24px; }
.model-ph { position: relative; aspect-ratio: 3 / 2; background: var(--soft); overflow: hidden; }
.model-ph img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; transition: opacity var(--t-ui) ease; }
.model-ph img.swapping { opacity: 0; }
.model-body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.model-h { font-size: clamp(28px, 3.2vw, 40px); }
.specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(max-content, 34%); margin: 6px 0 8px; width: 100%; border-top: 1px solid var(--ink); }
.specs dt, .specs dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; padding-right: 24px; min-width: 0; overflow-wrap: break-word; }
.specs dd { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.specs[hidden] { display: none; }
.cfg { display: inline-flex; border: 1px solid var(--black); }
.cfg button { background: none; border: 0; font: 600 16px/1 var(--font); padding: 12px 16px; cursor: pointer; color: var(--ink); }
.cfg button[aria-selected='true'] { background: var(--black); color: #fff; }
.model-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.dl { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* Заявка */
.cat-cta { background: var(--black); color: #fff; }
.cat-cta-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px 64px; padding-block: clamp(48px, 6vw, 80px); }
.cat-cta h2 { max-width: 24ch; }
@media (max-width: 720px) { .cat-cta-in { grid-template-columns: 1fr; justify-items: start; } }
.cat-cta h2 { font-size: clamp(26px, 3vw, 36px); }
.cat-cta p { margin: 12px 0 0; color: #c9c9c2; }

/* Другие направления */
.others { background: var(--soft); padding-block: clamp(64px, 8vw, 112px); }
.others-h { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 32px; }
.oths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.oth { position: relative; display: flex; align-items: flex-end; min-height: 300px; overflow: hidden; color: #fff; text-decoration: none; background: radial-gradient(120% 90% at 70% 35%, #232321 0%, #0b0b0a 55%, #000000 100%); }
.oth img { position: absolute; inset: 7% 6% 40% 6%; width: 88%; height: 53%; object-fit: contain; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.oth::after { content: none; }
@media (hover: hover) and (pointer: fine) { .oth:hover img { transform: scale(1.03); } }
.oth-in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 24px; }
.oth-h { font-size: 22px; font-weight: 900; letter-spacing: 0.02em; font-kerning: none; line-height: 1.2; }
.oth-n { font-size: 16px; color: #d6d6cf; }

@media (max-width: 860px) {
  .model { grid-template-columns: 1fr; }
  .oths { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cat-hero-in { padding-bottom: 40px; }
  .cat-hero h1 { font-size: clamp(26px, 8vw, 36px); max-width: none; hyphens: auto; }
  .oths { grid-template-columns: 1fr; }
  .oth { min-height: 220px; }
  .model-actions .btn { flex: 1 1 100%; justify-content: center; }
  .cfg { display: flex; width: 100%; }
  .cfg button { flex: 1; padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: color, background-color, border-color, opacity, box-shadow !important; }
  .btn:active { transform: none; }
}

/* Пара «дл» в заголовках: у Inter «л» стоит слишком близко к ножке «д».
   В HTML: <span class="kd">д</span>ля */
.kd { letter-spacing: 0.1em; }

/* Второстепенная кнопка (чёрная рамка) */
.btn-line { background: transparent; color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { background: var(--black); color: #fff; } }

/* Контакты: две группы — офис и сервис */
.contacts .kgroup { margin-top: 28px; }
.contacts .kgroup + .kgroup { margin-top: 40px; }
.kgroup h3 { font-size: 22px; }
.kgroup p { margin: 6px 0 0; color: var(--grey); }
.kgroup .krows { margin-top: 16px; }

/* Подвал: строка про сервис */
.site-footer .fsep { margin-top: 8px; padding-top: 12px; border-top: 1px solid #1c1c1b; color: #8a8a83; }

/* Шапка направления на планшете и телефоне: техника сверху, текст снизу */
@media (max-width: 860px) {
  .cat-hero-img { top: 40px; left: var(--gutter); right: var(--gutter); width: auto; height: min(40vw, 280px); object-position: center; }
  .cat-lead { max-width: none; }
  .cat-hero-in { padding-top: calc(40px + min(40vw, 280px) + 28px); }
  .cat-hero h1 { max-width: none; }
}

/* ---------- Форма: служебное ---------- */
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form button[disabled] { opacity: .6; cursor: progress; }
.form-note.wait { color: var(--grey); }

/* ---------- Плашка cookie ---------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--black); color: #d9d9d3; border-top: 1px solid #1f1f1e;
  transform: translateY(0); opacity: 1; transition: transform 420ms var(--ease-out), opacity 420ms var(--ease-out); }
@starting-style { .cookie { transform: translateY(100%); opacity: 0; } }
.cookie-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 18px; flex-wrap: wrap; }
.cookie p { margin: 0; font-size: 16px; max-width: 70ch; }
.cookie a { color: #fff; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 13px 18px; font-size: 14px; }
.btn-line-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
@media (hover: hover) and (pointer: fine) { .btn-line-light:hover { background: #fff; color: var(--black); } }
@media (max-width: 560px) {
  .cookie-in { padding-block: 14px; gap: 12px; }
  .cookie p { font-size: 15px; line-height: 1.45; }
  .cookie-btns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie .btn { justify-content: center; padding: 12px 8px; font-size: 13px; letter-spacing: .06em; }
}

/* ---------- Текстовая страница (политика) ---------- */
.doc { padding-block: clamp(56px, 7vw, 96px) clamp(72px, 9vw, 124px); }
.doc-in { max-width: 820px; }
.crumbs-dark { color: var(--grey); margin-bottom: 24px; }
.crumbs-dark a:hover { color: var(--ink); }
.crumbs-dark [aria-current] { color: var(--ink); }
.doc h1 { font-size: clamp(26px, 4vw, 52px); hyphens: auto; overflow-wrap: break-word; }
.doc-meta { margin: 14px 0 40px; color: var(--grey); font-size: 16px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc p, .doc li { color: #3c3c38; font-size: 18px; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--grey); }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(96px, 14vw, 180px); }
.nf h1 { font-size: clamp(34px, 5vw, 64px); margin: 18px 0 20px; }
.nf p { margin: 0 0 8px; font-size: 20px; color: var(--grey); }
.nf .nf-en { font-size: 17px; }
.nf-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Заявка во всплывающем окне (страницы техники) ---------- */
.lead-modal {
  width: min(680px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 48px);
  padding: clamp(28px, 4vw, 44px); border: 0; border-top: 0; background: var(--paper); color: var(--ink);
  overflow: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
  opacity: 1; transform: translateY(0) scale(1);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
.lead-modal:not([open]) { opacity: 0; transform: translateY(8px) scale(0.98); }
@starting-style { .lead-modal[open] { opacity: 0; transform: translateY(8px) scale(0.98); } }
.lead-modal::backdrop { background: rgba(17,17,17,.62); transition: background 220ms ease, overlay 220ms allow-discrete, display 220ms allow-discrete; }
@starting-style { .lead-modal[open]::backdrop { background: rgba(17,17,17,0); } }
.lead-modal h2 { font-size: clamp(24px, 3vw, 32px); padding-right: 40px; }
.lead-modal-sub { margin: 10px 0 24px; color: var(--grey); font-weight: 600; }
.lead-modal-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--ink); transition: background-color var(--t-ui) ease;
}
.lead-modal-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .lead-modal-close:hover { background: var(--soft); } }
body:has(.lead-modal[open]) { overflow: hidden; }
@media (max-width: 560px) {
  .lead-modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; padding: 24px var(--gutter) 32px; }
}

/* Подвал: две юридические ссылки */
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Согласие не отмечено */
.lead-form .consent input[aria-invalid='true'] { outline: 2px solid #c0392b; outline-offset: 2px; }
