/* Главная: «сервисная книжка». Бумага, графит, моторное масло; линейки вместо карточек, настоящие фото. */

:root {
  --paper: #ECEBE5; --sheet: #F7F6F1; --ink: #1B1D22; --graphite: #22252D; --mute: #5C5F66;
  --oil: #C98A1E; --oil-l: #E0A53D; --teal: #2C6E68; --rust: #B3402A;
  --rule: rgba(27, 29, 34, .14); --rule-d: rgba(239, 239, 236, .14); --on-d: #EFEFEC; --mute-d: rgba(239, 239, 236, .66);
  --f-d: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-b: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-m: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 4vw, 40px); --max: 1240px;
  /* Сетка: широкая колонка текста и инструментов слева, фото справа до края экрана */
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-b); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--oil); }
:focus-visible { outline: 2px solid var(--oil); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--f-d); font-weight: 500; text-wrap: balance; letter-spacing: -.005em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.05; }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 4px; font: 600 .9375rem/1 var(--f-b); text-decoration: none; white-space: nowrap; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-oil { background: var(--oil-l); color: var(--ink); }
.btn:hover { filter: brightness(1.08); }

.kicker { font: 600 .8125rem/1.2 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.kicker-l { color: var(--oil-l); }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--mute); max-width: 36em; }
.lead-d { color: var(--mute-d); }

/* Первый экран: вопрос, инструмент и фото */
.hero { border-bottom: 1px solid var(--rule); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-top: clamp(28px, 4vw, 56px); }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.2rem); line-height: .98; letter-spacing: -.012em; margin-bottom: 18px; text-transform: none; }
.hero-copy { padding-bottom: clamp(32px, 4vw, 56px); }
.hero-ph { margin: 0 0 clamp(32px, 4vw, 56px); position: relative; align-self: stretch; min-height: 420px; border-radius: 4px; overflow: hidden; background: #d8d6cf; }
.hero-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero-ph figcaption { position: absolute; inset-inline-end: 12px; bottom: 10px; font-size: .75rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.hero-ph figcaption a { color: inherit; }

.due-tool { margin-top: 28px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 20px 22px 18px; box-shadow: 0 18px 40px -28px rgba(27, 29, 34, .5);
}
.due-h { font: 600 .8125rem/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.due-in { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.due-in > label { display: grid; gap: 6px; font-size: .8125rem; line-height: 1.2; font-weight: 500; color: var(--mute); }
.odo { display: inline-flex; align-items: center; gap: 8px; background: var(--graphite); color: var(--on-d); border-radius: 4px; padding: 0 12px; height: 44px; }
.odo input { width: 7.2ch; border: 0; background: transparent; color: var(--on-d); font: 500 1.375rem/1 var(--f-m); letter-spacing: .06em; font-variant-numeric: tabular-nums; padding: 0; }
.odo input:focus { outline: none; }
.odo:focus-within { outline: 2px solid var(--oil); outline-offset: 2px; }
.odo span { font: 500 .8125rem/1 var(--f-m); color: var(--mute-d); }
.seg { border: 0; margin: 0; padding: 0; display: block; min-width: 0; }
.seg legend { font-size: .8125rem; line-height: 1.2; font-weight: 500; color: var(--mute); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.seg label { display: inline-block; clear: none; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border: 1px solid var(--rule); background: #fff; font-size: .9375rem; font-weight: 500; cursor: pointer; margin-inline-end: -1px; }
.seg label:first-of-type span { border-radius: 4px 0 0 4px; }
.seg label:last-of-type span { border-radius: 0 4px 4px 0; }
.seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--oil); outline-offset: 2px; }
.due-list { list-style: none; margin: 0; padding: 0; }
.due { padding: 11px 0; border-bottom: 1px dashed var(--rule); }
.due-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.due-n { font-weight: 600; }
.due-n a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.due-left { font: 500 .9375rem/1.2 var(--f-m); font-variant-numeric: tabular-nums; white-space: nowrap; }
.due-soon .due-left { color: #8A5A0E; }
.due-bar { height: 4px; background: rgba(27, 29, 34, .08); margin: 7px 0 5px; }
.due-bar i { display: block; height: 100%; background: var(--teal); }
.due-soon .due-bar i { background: var(--oil); }
.due-sub { font: 400 .75rem/1.3 var(--f-m); color: var(--mute); }
.due-note { font-size: .8125rem; color: var(--mute); margin-top: 12px; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-in { padding-top: 0; }
  .hero-ph { order: -1; margin: 0 calc(-1 * var(--gut)); min-height: 0; aspect-ratio: 3 / 2; border-radius: 0; }
}

/* Секции */
.sec { padding: clamp(56px, 7vw, 104px) 0; }
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.sh-more { font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.sh-lead { color: var(--mute); max-width: 44em; margin: -10px 0 28px; }
.tag { font: 600 .75rem/1.2 var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.tag-recall { color: var(--rust); }
.tag-story { color: var(--teal); }
.tag-tip { color: #6B5A1E; }
.cr { color: inherit; }
.crline { font-size: .75rem; color: var(--mute); margin-top: 10px; }

/* Эта неделя */
.week { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .85fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.ls-ph { display: block; margin-bottom: 14px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px; background: #d8d6cf; }
.ls-ph img { width: 100%; height: 100%; object-fit: cover; }
.lead-story h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.12; margin-bottom: 10px; }
.lead-story h3 a { text-decoration: none; }
.lead-story > p:not(.tag):not(.crline) { color: var(--mute); }
.heads { list-style: none; margin: 0; padding: 0; }
.heads li { padding: 14px 0; border-top: 1px solid var(--rule); }
.heads li:first-child { border-top: 0; padding-top: 0; }
.heads a { font-weight: 600; line-height: 1.35; text-decoration: none; }
.heads a:hover { text-decoration: underline; }
.fuel { background: var(--graphite); color: var(--on-d); border-radius: 4px; padding: 20px; display: grid; gap: 10px; }
.fuel h3 { font-size: 1.25rem; }
.fuel-sub { font-size: .8125rem; color: var(--mute-d); margin-top: -6px; }
.fuel-nums { display: flex; gap: 20px; flex-wrap: wrap; }
.fuel-nums div { display: grid; }
.fn { font: 500 2.4rem/1 var(--f-m); font-variant-numeric: tabular-nums; color: var(--oil-l); letter-spacing: -.02em; }
.fn-d { font-size: 1.6rem; color: var(--on-d); padding-top: .55rem; }
.fl { font-size: .75rem; color: var(--mute-d); margin-top: 4px; }
.spark { width: 100%; height: auto; }
.spark-a { fill: rgba(224, 165, 61, .16); }
.spark-l { fill: none; stroke: var(--oil-l); stroke-width: 2; stroke-linejoin: round; }
.spark-p { fill: var(--oil-l); stroke: var(--graphite); stroke-width: 2; }
.fuel-d { font-size: .875rem; color: var(--mute-d); }
.fuel-more { font-size: .875rem; font-weight: 600; color: var(--on-d); }
@media (max-width: 1000px) { .week { grid-template-columns: 1fr 1fr; } .lead-story { grid-column: 1 / -1; } }
@media (max-width: 640px) { .week { grid-template-columns: 1fr; } }

/* Отзывы */
.sec-recalls { background: var(--sheet); border-block: 1px solid var(--rule); padding-block: clamp(44px, 5vw, 72px); }
.rc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 64px); }
.rc-list { grid-column: span 2; }
.rc-h p { color: var(--mute); margin-top: 12px; max-width: 30em; }
.rc-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; color: var(--ink) !important; }
.rc-list { list-style: none; margin: 0; padding: 0; }
.rc-list li { display: grid; grid-template-columns: 4.5em auto 1fr; gap: 6px 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.rc-list li:first-child { border-top: 1px solid var(--rule); }
.rc-list li > a { grid-column: 3; font-weight: 600; text-decoration: none; line-height: 1.35; }
.rc-list li > a:hover { text-decoration: underline; }
.rc-list li:not(.rc-stop) > a { grid-column: 2 / 4; }
.rc-date { font: 500 .8125rem/1 var(--f-m); color: var(--mute); }
.stamp { font: 600 .6875rem/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--rust); border: 1.5px solid var(--rust); padding: 4px 6px; border-radius: 2px; transform: rotate(-2deg); white-space: nowrap; }
@media (max-width: 800px) { .rc { grid-template-columns: 1fr; } .rc-list { grid-column: auto; } }

/* Сезон: та же сетка, что у первого экрана, текст на графитовой плашке, фото рядом */
.sec.season { padding-bottom: 0; }
.season-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.season-card { background: var(--graphite); color: var(--on-d); border-radius: 4px; padding: clamp(28px, 4vw, 48px); }
.season h2 { margin-bottom: 20px; }
.season-ph { position: relative; margin: 0; min-height: 360px; border-radius: 4px; overflow: hidden; background: #d8d6cf; }
.season-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.season-ph figcaption { position: absolute; inset-inline-end: 12px; bottom: 10px; font-size: .75rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.season-ph figcaption a { color: inherit; }
@media (max-width: 900px) { .season-in { grid-template-columns: 1fr; } .season-ph { min-height: 0; aspect-ratio: 3 / 2; } }
.check { margin: 0 0 26px; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 12px; }
.check li { counter-increment: c; position: relative; padding-inline-start: 40px; color: var(--mute-d); }
.check li::before { content: ''; position: absolute; inset-inline-start: 0; top: .2em; width: 22px; height: 22px; border: 1.5px solid var(--oil-l); border-radius: 3px; }
.check b { color: var(--on-d); font-weight: 600; }
.check a { color: var(--on-d); white-space: nowrap; }

/* Статьи: оглавление по главам */
.toc { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px clamp(20px, 3vw, 36px); }
.ch-ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: #d8d6cf; margin-bottom: 14px; }
.ch-ph img { width: 100%; height: 100%; object-fit: cover; }
.ch-cr { position: absolute; inset-inline-end: 8px; bottom: 6px; font-size: .6875rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.ch h3 { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.ch-n { font: 500 .875rem/1 var(--f-m); color: var(--oil); }
.ch ul { list-style: none; margin: 0; padding: 0; }
.ch li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ch li a { font-weight: 500; text-decoration: none; }
.ch li a:hover { text-decoration: underline; }
.ch li span { font: 400 .8125rem/1.6 var(--f-m); color: var(--mute); white-space: nowrap; }
@media (max-width: 900px) { .toc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .toc { grid-template-columns: 1fr; } }

/* Приложение */
.sec-app { background: var(--graphite); color: var(--on-d); }
.app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px clamp(28px, 4vw, 64px); align-items: center; }
.app h2 { margin-bottom: 16px; }
.pledge { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 500; }
.pledge li::before { content: '✓'; color: var(--oil-l); margin-inline-end: 8px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.store-badge { display: block; line-height: 0; margin: -10px -6px; }
.store-badge img { width: auto; height: 74px; }
.store-badge:focus-visible { outline: 2px solid var(--oil-l); outline-offset: -6px; }
/* Значок Apple без полей, по высоте совпадает с видимой частью значка Google Play */
.store-badge-as { margin: 0; }
.store-badge-as img { height: 56px; }
.store-badge-as:focus-visible { outline-offset: 2px; }
.price { font-size: .9375rem; color: var(--mute-d); max-width: 34em; }
.price a { color: var(--on-d); }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.phones img { width: 100%; height: auto; border-radius: 18px; border: 6px solid #0f1115; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7); }
.phones img:nth-child(2) { transform: translateY(-28px); }
.ledger { grid-column: 1 / -1; list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-d); }
.ledger li { display: flex; gap: 14px; padding: 18px 18px 18px 0; border-bottom: 1px solid var(--rule-d); }
.lg-n { font: 500 .875rem/1.6 var(--f-m); color: var(--oil-l); }
.ledger a { font-weight: 600; color: var(--on-d); text-decoration: none; }
.ledger a:hover { text-decoration: underline; }
.ledger p { font-size: .875rem; color: var(--mute-d); margin-top: 2px; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } .ledger { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ledger { grid-template-columns: 1fr; } .phones img:nth-child(2) { transform: none; } }

/* Калькуляторы */
.sec-tools { padding-block: clamp(40px, 5vw, 64px); }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px clamp(24px, 4vw, 64px); align-items: start; }
.tools h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.tool { display: grid; gap: 4px; padding: 18px 0; border-top: 2px solid var(--ink); text-decoration: none; }
.tool b { font: 500 1.25rem/1.2 var(--f-d); }
.tool span { color: var(--mute); font-size: .9375rem; }
.tool:hover b { text-decoration: underline; }
@media (max-width: 760px) { .tools { grid-template-columns: 1fr; } }


/* Арабский: свои шрифты, без капса и разрядки, фото и градиенты зеркально */
html[lang="ar"] { --f-d: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif; --f-b: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
html[lang="ar"] .hero h1 { line-height: 1.2; }
html[lang="ar"] .kicker, html[lang="ar"] .tag, html[lang="ar"] .due-h { font-family: var(--f-b); letter-spacing: 0; text-transform: none; }
[dir="rtl"] .seg label:first-of-type span { border-radius: 0 4px 4px 0; }
[dir="rtl"] .seg label:last-of-type span { border-radius: 4px 0 0 4px; }
html[lang="ru"] .hero h1, html[lang="kk"] .hero h1, html[lang="fr"] .hero h1, html[lang="de"] .hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.4rem); }

/* Главы статей: две сверху, остальные по количеству */
.ch-top { grid-column: span 3; }
.ch-s2 { grid-column: span 2; } .ch-s3 { grid-column: span 3; } .ch-s6 { grid-column: span 6; }
.ch-s6 .ch-ph { aspect-ratio: 21 / 8; }
@media (max-width: 900px) { .ch-top, .ch-s2, .ch-s3, .ch-s6 { grid-column: span 1; } .ch-top:first-child { grid-column: 1 / -1; } .ch-s6 { grid-column: 1 / -1; } }
@media (max-width: 600px) { .ch-top:first-child, .ch-s6 { grid-column: auto; } }

/* Подписка на выход в магазинах, внутри блока приложения */
.nf { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px clamp(24px, 4vw, 64px); padding: 28px; border: 1px solid var(--rule-d); border-radius: 6px; margin-top: 8px; }
.nf .notify { grid-column: span 2; }
.nf h3 { font-size: 1.5rem; margin-bottom: 6px; }
.nf-copy p { color: var(--mute-d); }
.nf-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; }
.fld { display: grid; gap: 6px; flex: 1 1 240px; font-size: .8125rem; color: var(--mute-d); }
.fld input { height: 44px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--rule-d); background: rgba(255, 255, 255, .06); color: var(--on-d); font: 400 1rem/1 var(--f-b); }
.fld input:focus { outline: 2px solid var(--oil-l); outline-offset: 1px; }
.seg-d legend { color: var(--mute-d); }
.seg-d span { background: transparent; color: var(--on-d); border-color: var(--rule-d); }
.seg-d input:checked + span { background: var(--on-d); color: var(--ink); border-color: var(--on-d); }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: .8125rem; color: var(--mute-d); }
.chk input { margin-top: 3px; accent-color: var(--oil-l); }
.hp { position: absolute; inset-inline-start: -9999px; }
.nf-end { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.btn { border: 0; cursor: pointer; }
.nf-msg { font-size: .875rem; color: var(--mute-d); }
.nf-msg.ok { color: var(--teal-l, #5FBFB6); } .nf-msg.err { color: #E0735C; }
.nf-msg a { color: var(--on-d); }
@media (max-width: 800px) { .nf { grid-template-columns: 1fr; padding: 20px; } .nf .notify { grid-column: auto; } }

/* Вопросы и ответы */
.sec-faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 64px); align-items: start; }
.faq-grid .faq { grid-column: span 2; }
.faq-grid h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.4rem/1 var(--f-m); color: var(--oil); }
.faq details[open] summary::after { content: '−'; }
.faq p { padding: 0 0 18px; color: var(--mute); max-width: 44em; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .faq { grid-column: auto; } }


/* Пометка «заголовки на английском» на других языках */
.sh .en-note { margin-inline-start: 12px; margin-inline-end: auto; font: 600 .75rem/1.2 var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
html[lang="ar"] .sh .en-note { font-family: var(--f-b); letter-spacing: 0; }
