/* articles.css (W-0065, Mikhail 13.10): the rich articles /stati/<slug>/, the list /stati/ and the home «Статьи» block.
   Markup: build/gen/pages_articles.py. Loaded after tokens.css by those pages only. Light style of the site: paper #efedea,
   cards #fff, inner tiles #f6f5f2, ink #14161a, notes #5c6169, accent red #d6262d (prices #c8202a). A slot without a picture is a neutral
   light placeholder. */
.ar-slot{position:relative;display:block;aspect-ratio:16/9;border-radius:14px;overflow:hidden;
  background:linear-gradient(135deg,#e2dfda 0%,#f4f2ef 55%,#e9e6e1 100%)}
.ar-slot span{position:absolute;left:50%;top:50%;width:22%;max-width:120px;aspect-ratio:16/10;transform:translate(-50%,-50%);
  border:2px solid rgba(20,22,26,.14);border-radius:10px}
.ar-slot span::after{content:"";position:absolute;left:18%;right:18%;bottom:-14px;height:2px;background:rgba(20,22,26,.14);border-radius:2px}
.ar-slot-cover{max-width:960px;aspect-ratio:21/9;margin:0 0 28px}
.art .ar-slot-pic{margin:26px 0}
/* a slot with a picture (W-0065 step 6): cover and in-text picture keep their own ratio, the card crops to 16:9 */
.ar-has-img{background:none}
.ar-slot.ar-has-img img{display:block;width:100%;height:auto}
.ar-slot-cover.ar-has-img{aspect-ratio:auto}
.ar-slot-pic.ar-has-img{aspect-ratio:auto}
.ar-card .ar-has-img{aspect-ratio:16/9}
.ar-card .ar-has-img img{height:100%;object-fit:cover}

/* callout «Важно» */
.ar-note{margin:24px 0;padding:16px 20px 16px 18px;background:#fff;border-left:4px solid #d6262d;border-radius:4px 12px 12px 4px}
.ar-note b{display:block;margin:0 0 4px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#b41d24}
.art .ar-note p{margin:0;font-size:17px;line-height:1.55;color:#14161a}

/* manufacturer quote */
.ar-quote{position:relative;margin:28px 0;padding:22px 24px 18px 64px;background:#fff;border-radius:14px}
.ar-quote::before{content:"«";position:absolute;left:20px;top:8px;font-family:var(--f-disp);font-size:64px;line-height:1;color:#d6262d}
.ar-quote blockquote{margin:0}
.art .ar-quote blockquote p{margin:0;font-size:19px;line-height:1.5;color:#14161a}
.ar-quote figcaption{margin-top:10px;font-size:14px;color:#5c6169}
.art .ar-quote figcaption a{color:#5c6169;text-decoration:underline;text-underline-offset:2px}

/* model cards: live price, before/after screens -> model page */
.ar-models{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin:24px 0}
.art a.ar-model{display:flex;flex-direction:column;background:#fff;border-radius:14px;overflow:hidden;color:#14161a;text-decoration:none;
  transition:transform .15s var(--ease),box-shadow .2s}
.art a.ar-model:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(20,22,26,.12)}
.ar-ba{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:#e7e5e1}
.ar-ba-car{grid-template-columns:1fr}
.ar-ba>span{position:relative;display:block}
.ar-ba img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.ar-ba small{position:absolute;left:8px;bottom:8px;padding:2px 8px;border-radius:100px;background:#14161a;color:#fff;font-size:12px;font-weight:600}
.ar-mb{display:flex;flex-direction:column;gap:4px;padding:12px 16px 16px}
.ar-mb b{font-size:18px;line-height:1.25}
.ar-price{font-size:16px;font-weight:700;color:#c8202a}
.ar-go{font-size:14px;font-weight:600;color:#5c6169}
.ar-model:hover .ar-go,.ar-card:hover .ar-go{color:#14161a}

/* infographics (HTML, not pictures) */
.ig{margin:28px 0;padding:22px;background:#fff;border-radius:16px}
.art .ig p{margin:0}
.art .ig .ig-t{margin:0 0 16px;font-family:var(--f-disp);font-size:22px;line-height:1.2;font-weight:500;color:#14161a}
.art .ig .ig-note{margin:16px 0 0;font-size:15px;color:#5c6169}
.ig-steps{list-style:none;margin:0;padding:0;counter-reset:none}
.art .ig-steps li{position:relative;display:grid;grid-template-columns:40px 1fr;gap:14px;margin:0;padding:0 0 18px}
.ig-steps li:not(:last-child)::before{content:"";position:absolute;left:19px;top:40px;bottom:0;width:2px;background:#e7e5e1}
.ig-n{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#d6262d;color:#fff;font-family:var(--f-disp);font-size:19px;font-weight:600}
.art .ig-steps p{padding-top:8px;font-size:16px;line-height:1.5}
.ig-steps li:last-child{padding-bottom:0}
.ig-cmp{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ig-col{padding:16px;background:#f6f5f2;border-radius:12px;border-top:3px solid #d6262d}
.ig-col:nth-child(2){border-top-color:#14161a}
.ig-colh{display:block;margin:0 0 10px;font-size:18px}
.ig-col dl{margin:0}
.ig-col dt{font-size:13px;color:#5c6169}
.ig-col dd{margin:2px 0 12px;font-size:16px;line-height:1.4}
.ig-col dd:last-child{margin-bottom:0}
.ig-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.ig-card{display:flex;flex-direction:column;gap:4px;padding:16px;background:#f6f5f2;border-radius:12px;border-top:3px solid #d6262d}
.ig-card b{font-size:17px;line-height:1.3}
.ig-card span{font-size:15px;line-height:1.45;color:#3a3f46}
.art .ig-table table{margin:0;font-size:16px}
.art .ig-table th{font-size:13px;font-weight:600;color:#5c6169}
.art .ig-table td{border-bottom-color:#ecebe7}
.art .ig-table tr:last-child td{border-bottom:0}
.art .ig-table td:first-child{font-weight:600}
.ig-table .ig-p{white-space:nowrap;font-weight:700;color:#c8202a}

/* article cards: /stati/ and the home block */
.ar-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.ar-cards-home{grid-template-columns:repeat(4,1fr)}
.ar-cards li{min-width:0}
a.ar-card{display:flex;flex-direction:column;height:100%;background:#fff;border-radius:14px;overflow:hidden;color:#14161a;text-decoration:none;
  transition:transform .15s var(--ease),box-shadow .2s}
a.ar-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(20,22,26,.12)}
.ar-card .ar-slot{border-radius:0}
.ar-cb{display:flex;flex-direction:column;flex:1 1 auto;gap:8px;padding:16px 18px 18px}
.ar-cb b{font-family:var(--f-disp);font-size:20px;line-height:1.25;font-weight:500}
.ar-cb>span:not(.ar-go){font-size:15px;line-height:1.5;color:#5c6169}
.ar-cb .ar-go{margin-top:auto;color:#c8202a}
.ar-all{margin:22px 0 0;font-size:16px;font-weight:600}
.band .ar-all a{text-decoration:underline;text-underline-offset:3px}
a.ar-model:focus-visible,a.ar-card:focus-visible,.ar-quote a:focus-visible{outline:3px solid #14161a;outline-offset:2px}

@media (max-width:1099px){.ar-cards-home{grid-template-columns:repeat(2,1fr)}}
@media (max-width:759px){
  .ar-slot-cover{aspect-ratio:16/9;margin-bottom:22px}
  .ig{padding:16px;margin:24px -4px}
  .ig-cmp{gap:8px}
  .ig-col{padding:12px}
  .ig-col dd{font-size:15px}
  .art .ig-table table{font-size:15px}
  .art .ig-table th,.art .ig-table td{padding:8px 6px}
  .ar-quote{padding:18px 18px 16px 50px}
  .ar-quote::before{left:14px;font-size:52px}
  .art .ar-quote blockquote p{font-size:17px}
  .ar-models{grid-template-columns:1fr}
  .ar-cards{grid-template-columns:1fr;gap:14px}
  .ar-cb b{font-size:19px}
  /* home phone screen «N статей о русификации» (a dark .m-sec like the FAQ): short rows, the list page */
  .m-arts{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
  .m-arts a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:12px 0;
    border-bottom:1px solid var(--line);color:var(--txt);text-decoration:none}
  .m-arts b{font-size:16px;line-height:1.35;font-weight:600;color:var(--txt)}
  .m-arts .m-chev{flex:0 0 auto;font-size:24px;line-height:1;color:var(--muted)}
}
@media (prefers-reduced-motion:reduce){a.ar-model,a.ar-card{transition:none}a.ar-model:hover,a.ar-card:hover{transform:none}}

/* article hero (W-0065 fix, Mikhail 13.10 «всё влево, справа пустота»): the title smaller, the cover as a light card.
   Up to 1199 px one column in the phone order: title, cover, lead, buttons (the text box is display:contents there);
   from 1200 px two columns: text left, the cover right, as high as the text (the picture fills the card, cropped at the sides;
   narrower two columns would crop more than half of it). */
.ar-split{display:flex;flex-direction:column}
.ar-hero-text{display:contents}
.ar-split .crumbs{order:1}
.ar-split .kicker{order:2}
.ar-split h1{order:3}
.ar-hero-cover{order:4}
.ar-split .sub{order:5}
.ar-split .msgr{order:6}
.ar-split .msgr-free{order:7}
.hero.short .ar-split h1{max-width:none;font-size:clamp(26px,6.6vw,40px);line-height:1.15}
.ar-hero-cover{margin:2px 0 22px;padding:8px;background:#f6f5f2;border-radius:18px}
.ar-hero-cover .ar-slot-cover{max-width:none;margin:0;border-radius:12px}
.ar-hero-cover .ar-cap{display:block;margin:7px 6px 0;font-size:13px;line-height:1.4;color:#5c6169}
@media (min-width:1200px){
  .ar-split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);column-gap:56px;align-items:stretch}
  .ar-hero-text{display:block;grid-column:1}
  .hero.short .ar-split h1{font-size:clamp(34px,3.1vw,46px)}
  .ar-hero-cover{position:relative;grid-column:2;min-height:300px;margin:0}
  .ar-hero-cover .ar-slot-cover{position:absolute;inset:8px}
  .ar-hero-cover:has(.ar-cap){padding-bottom:32px}
  .ar-hero-cover:has(.ar-cap) .ar-slot-cover{inset:8px 8px 32px}
  .ar-hero-cover .ar-cap{position:absolute;left:16px;bottom:8px;margin:0}
  .ar-hero-cover .ar-slot-cover.ar-has-img img{height:100%;object-fit:cover}
}

/* «Читайте также» at the end of an article (W-0065 fix): 2-3 article cards; on the phone short rows with a small cover */
@media (max-width:759px){
  .ar-cards-next a.ar-card{flex-direction:row}
  .ar-cards-next .ar-card .ar-has-img{flex:0 0 112px;min-height:96px;aspect-ratio:auto}
  .ar-cards-next .ar-cb{gap:6px;padding:12px 14px}
  .ar-cards-next .ar-cb b{font-size:17px}
  .ar-cards-next .ar-cb>span:not(.ar-go){display:none}
}

/* article body (W-0071, Mikhail 13.10 «много пустоты»: the text sat in a 620 px column on the left, the right half empty):
   one band, a centred text column (max 760 px; the pictures take its full width) and from 1100 px a right sticky aside:
   the contents (the h2 of the article), «Узнать цену у мастера» with the messenger buttons, «Читайте также».
   Markup: templates/partials/article.html. Below 1100 px no aside; the phone order and look stay as they were. */
.ar-main{max-width:760px;margin:0 auto}
.ar-main .art{max-width:none}
.ar-sec{scroll-margin-top:24px}
.ar-main>.art+.ar-sec,.ar-sec+.ar-sec{margin-top:48px}
.ar-aside{display:none}
@media (max-width:759px){.ar-main>.art+.ar-sec,.ar-sec+.ar-sec{margin-top:40px}}
@media (min-width:760px){
  /* model cards: 2-3 in a row; a single card is one wide row (screens left, name and price right) */
  .ar-main .ar-models{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ar-main .ar-n2,.ar-main .ar-n4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ar-main .ar-n1{grid-template-columns:1fr}
  .ar-main .ar-n1 a.ar-model{flex-direction:row;align-items:stretch}
  .ar-main .ar-n1 .ar-ba{flex:0 0 54%}
  .ar-main .ar-n1 .ar-mb{justify-content:center;gap:8px;padding:18px 24px}
  .ar-main .ar-n1 .ar-mb b{font-size:22px}
}
@media (min-width:1100px){
  .ar-layout{display:grid;grid-template-columns:minmax(0,740px) 340px;column-gap:48px;justify-content:center;align-items:start}
  .ar-main{margin:0}
  .ar-main .art p,.ar-main .art li{font-size:18px}
  .ar-aside{display:block;align-self:stretch}
  /* fits 1440 x 900 without its own scrollbar (W-0071 measure: 760 px of 852); a lower screen scrolls inside it */
  .ar-stick{position:sticky;top:24px;display:grid;gap:10px;max-height:calc(100vh - 48px);overflow-y:auto;scrollbar-width:thin}
}
.ar-toc,.ar-ask,.ar-more{background:#fff;border-radius:14px;padding:14px 16px}
.ar-aside .ar-at{margin:0 0 6px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5c6169}
.ar-toc ol,.ar-more ul{list-style:none;margin:0;padding:0}
.ar-toc li,.ar-more li{margin:0}
.ar-toc a,.ar-more a{display:block;padding:4px 0 4px 12px;border-left:2px solid #e7e5e1;font-size:14px;line-height:1.35;color:#14161a;text-decoration:none}
.ar-toc a:hover,.ar-more a:hover{border-left-color:#d6262d;color:#b41d24}
.ar-more a{border-left-color:#d6262d}
.ar-ask p:not(.ar-at){margin:0 0 10px;font-size:14px;line-height:1.45;color:#3a3f46}
.ar-ask .msgr7{grid-template-columns:1fr;gap:8px;max-width:none}
.ar-ask .msgr7 .cta{min-height:52px;padding:8px 14px}
.ar-toc a:focus-visible,.ar-more a:focus-visible{outline:3px solid #14161a;outline-offset:2px}
/* W-0081: «Подробнее» fold of a card (hand pages /ceny/, /rusifikaciya/prilozheniya/, /obuchenie/; the /chip-tuning/ .ct-fold look):
   closed everywhere, a red chevron, a 44 px tap target */
.ar-fold{margin:8px 0 0}
.ar-fold>summary{display:inline-flex;align-items:center;gap:10px;min-height:44px;list-style:none;cursor:pointer;font-size:15px;font-weight:700;color:#14161a}
.ar-fold>summary::-webkit-details-marker{display:none}
.ar-fold>summary::after{content:"";width:7px;height:7px;margin-top:-4px;border-right:2px solid #d6262d;border-bottom:2px solid #d6262d;transform:rotate(45deg);transition:transform .2s}
.ar-fold[open]>summary::after{margin-top:4px;transform:rotate(225deg)}
.ar-fold>summary:hover{color:#d6262d}
.ar-fold>summary:focus-visible{outline:3px solid #14161a;outline-offset:2px}
