/* Шрифты IBM Plex (SIL OFL 1.1), локально: кириллица и латиница. Sans вариативный (400–600). */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin.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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-400-latin.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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-500-latin.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 {
  --ground: #F3F4F1;
  --ink: #13171B;
  --muted: #55606B;
  --line: #D5D9D3;
  --soft: #E4E7E1;
  --white: #FFFFFF;
  --accent: #C2410C;
  --dark-line: #2B323A;
  --dark-text: #D5D9D3;
  --dark-muted: #A9B2BA;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--ground); }
a { color: var(--ink); }
a:hover { color: var(--muted); }
a:focus-visible, button:focus-visible, input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; }

/* Шапка */
.header { border-bottom: 1px solid var(--line); }
.header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--mono); font-weight: 500; font-size: 18px; text-decoration: none; color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nav a { text-decoration: none; padding: 10px 0; font-size: 15px; }
.nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 4px; font-family: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { color: var(--white); filter: brightness(0.92); }
.btn-light { background: var(--ground); color: var(--ink); }
.btn-outline { background: var(--white); color: var(--ink); border: 1px solid var(--ink); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.link { padding: 10px 0; font-weight: 500; font-size: 15px; }

/* Первый экран */
.hero { padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.duo { display: flex; flex-wrap: wrap; gap: 24px; }
.panel { flex: 1 1 340px; min-width: 0; padding: 36px; border-radius: 6px; display: flex; flex-direction: column; gap: 20px; }
.panel h2 { font-size: 30px; line-height: 1.15; font-weight: 600; }
.panel ul { display: flex; flex-direction: column; gap: 10px; }
.panel li { padding-bottom: 10px; border-bottom: 1px solid var(--soft); }
.panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.panel .btn { margin-top: auto; align-self: flex-start; }
.panel-dark { background: var(--ink); color: var(--ground); }
.panel-dark .mono { color: var(--dark-muted); }
.panel-dark ul { color: var(--dark-text); }
.panel-dark li { border-color: var(--dark-line); }
.panel-light { background: var(--white); border: 1px solid var(--line); }

/* Секции */
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.section-head h1 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.cat { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cat h3 { font-size: 21px; font-weight: 600; }
.cat p { color: var(--muted); font-size: 15px; }
.cat .links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: auto; }
.photo { height: 200px; background: var(--soft); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: contain; background: var(--white); display: block; }

.steps { display: flex; flex-wrap: wrap; gap: 20px; }
.steps li { flex: 1 1 200px; min-width: 0; border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.steps .n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.steps strong { font-size: 18px; font-weight: 600; }
.steps span:last-child { color: var(--muted); font-size: 15px; }
.note { padding: 16px 20px; background: var(--soft); border-radius: 6px; font-size: 15px; color: #3A434C; }

/* Каталог */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 4px; background: var(--white); color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; }
.card .photo { height: 180px; border-radius: 0; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card h2 { font-size: 19px; line-height: 1.25; font-weight: 600; }
.card p { font-size: 14px; color: var(--muted); }
.card .price { font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 4px; }
.card .links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; }
.cta { background: var(--ink); color: var(--ground); border-radius: 6px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { font-size: 24px; font-weight: 600; }
.cta p { color: var(--dark-text); }
.cta > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

/* Заявка */
.request { background: var(--ink); color: var(--ground); }
.request .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; }
.request-info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.request-info h2 { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.request-info p { color: var(--dark-text); font-size: 18px; }
.request-info ul { display: flex; flex-direction: column; gap: 12px; color: var(--dark-text); margin-top: 12px; }
.request-info a { color: var(--ground); }
.form-card { flex: 1 1 460px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 6px; padding: 32px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.toggle { display: flex; gap: 8px; padding: 4px; background: var(--soft); border-radius: 6px; }
.toggle button { flex: 1 1 0; min-height: 44px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { min-height: 46px; padding: 0 12px; border: 1px solid #8A949E; border-radius: 4px; font-family: inherit; font-size: 16px; color: var(--ink); background: var(--white); width: 100%; }
.field textarea { padding: 10px 12px; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 18px; }
.group { display: flex; flex-direction: column; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .small { font-size: 13px; color: var(--muted); }
.form-error { padding: 12px 14px; background: #FDECEC; color: #8A1C1C; border-radius: 4px; font-size: 15px; }
.done { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; }
.done h3 { font-size: 26px; font-weight: 600; }

/* Подвал */
.footer { background: var(--ink); color: var(--dark-muted); border-top: 1px solid var(--dark-line); font-size: 14px; }
.footer .wrap { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer .col { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--ground); }
.footer .logo { color: var(--ground); font-size: 16px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Страница модели */
.product { display: flex; flex-wrap: wrap; gap: 40px; }
.product > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.photo-large { height: 440px; font-size: 13px; }
.product-info h1 { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.product-info .lead { font-size: 18px; color: var(--muted); }
.product h2, .more h2 { font-size: 26px; font-weight: 600; }
.buy { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; gap: 14px; }
.buy > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.buy strong { font-size: 24px; font-weight: 600; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.buy-actions .btn { flex: 1 1 200px; }
.small { font-size: 14px; }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.specs { margin: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); padding-right: 16px; }
.product-service .panel { flex: 0 0 auto; }
.more { gap: 16px; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }

/* ---------- Текстовые страницы (политика) ---------- */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.prose h2 { font-size: 21px; font-weight: 600; margin-top: 18px; }
.prose ul { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; list-style: disc; }
.prose a { overflow-wrap: anywhere; }
.photo-empty img { object-fit: cover; background: var(--soft); }

/* ---------- Страницы ремонта ---------- */
.chip-group { display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font-size: 15px; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.panel-dark .link-light { color: var(--ground); align-self: flex-start; }
