/* Внутренние страницы: первый экран, карточки, таблицы, ссылки, каталог, карточка модели, прайс, статьи, работы.
   Тот же язык, что на главной: светлые карточки с мягкой тенью, один акцент в заголовке, движение только transform и opacity. */

/* Первый экран */
.sp-hero { position: relative; padding: 0 0 72px; background: linear-gradient(180deg, #F3F8FD 0%, #FFFFFF 85%); overflow: clip; }
.sp-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: stretch; }
.sp-hero-txt { padding-top: 32px; align-self: center; }
.sp-hero--doc .sp-hero-in { padding-top: 0; }
.sp-hero--doc .sp-hero-in { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 20px; color: var(--mute); font-size: var(--t-xs); }
.crumbs a { color: var(--brand-ink); padding-block: 12px; margin-block: -12px; }  /* зона пальца 45 px, строка прежняя (аудит № 24) */
.crumbs .ico { width: 12px; height: 12px; opacity: .6; }
.sp-h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.03em; }
.sp-sub { margin-top: 18px; max-width: 620px; font-size: var(--t-lg); line-height: 1.6; color: var(--mute); }
.sp-facts { display: grid; gap: 10px; margin-top: 24px; }
.sp-facts li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.sp-facts .ico { width: 22px; height: 22px; margin-top: 1px; color: var(--brand); flex: none; }
.sp-facts small { display: block; color: var(--mute); font-weight: 500; font-size: var(--t-sm); }
.sp-hero-body { margin-top: 18px; max-width: 620px; color: var(--mute); }
.sp-hero-body p + p { margin-top: 8px; }
.sp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; }
/* Сцена: синяя плашка от шапки (язык главной), на ней фото настоящей работы и цифра. Ничего не качается. */
.sp-hero-vis { position: relative; max-width: 480px; min-height: 500px; justify-self: end; width: 100%; }
.sp-plate { position: absolute; left: 22%; right: 6%; top: 0; bottom: 10%; border-radius: 0 0 48px 48px;
  background: radial-gradient(70% 90% at 8% 0%, rgb(255 255 255 / .1), rgb(255 255 255 / 0) 70%), rgb(27 113 196); }
.sp-photo { position: absolute; left: 0; bottom: 0; width: 76%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px;
  box-shadow: 0 30px 60px -32px rgb(6 30 70 / .5), 0 0 0 1px rgb(6 30 70 / .04); }
.sp-badge { position: absolute; right: 0; top: 14%; display: grid; padding: 14px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.sp-badge b { font-size: 26px; font-weight: 700; color: var(--brand-ink); letter-spacing: -.02em; line-height: 1; }
.sp-badge span { color: var(--mute); font-size: var(--t-xs); }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -8px; } }
.sp-doc-intro { max-width: none; margin-top: 18px; color: var(--mute); }
.sp-doc-intro p + p { margin-top: 8px; }
/* Документы: одна узкая колонка, без чередования фонов, заголовки разделов слева */
.sp-hero--doc .wrap, .sp-doc .wrap { max-width: calc(860px + var(--gx) * 2); }
.sp-doc { padding-block: 28px; }
.sp-doc .head { margin-bottom: 14px; }
.sp-doc .h2 { font-size: clamp(22px, 2.4vw, 28px); }
.sp-doc .sp-body { margin-top: 0; max-width: none; color: #384656; }
.sp-doc .sp-body p + p { margin-top: 8px; }
.sp-center { text-align: center; padding: 96px 0 120px; }
.sp-center .sp-sub { margin-inline: auto; }
.sp-center .sp-acts { justify-content: center; }
.sp-404 { display: block; font-size: clamp(96px, 16vw, 180px); font-weight: 700; line-height: .9; letter-spacing: -.05em; background: linear-gradient(95deg, var(--brand-ink), #2F8AD8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.done-ic.big { margin: 0 auto 20px; }

/* Секции блоков ТЗ */
.sp .head { margin-bottom: 36px; }
.sp-body { max-width: 780px; margin-top: 28px; color: var(--mute); }
.head--center ~ .sp-body { margin-inline: auto; text-align: left; }
.sp-body p + p, .sp-body p + ul, .sp-body ul + p { margin-top: 10px; }
.sp-body ul, .art-body ul { padding-left: 0; display: grid; gap: 8px; }
.sp-body ul li, .art-body ul li { position: relative; padding-left: 22px; }
.sp-body ul li::before, .art-body ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.sp-body ol, .art-body ol { padding-left: 22px; display: grid; gap: 8px; }
.head--center ~ .sp-acts { justify-content: center; }

/* Карточки */
.sp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-cards--1 { grid-template-columns: minmax(0, 760px); justify-content: center; }
.sp-cards--2, .sp-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 24px; background: var(--surface); box-shadow: 0 14px 34px -28px rgba(15, 27, 42, .45), 0 0 0 1px rgba(27, 116, 194, .07); }
.band .sp-card { box-shadow: 0 14px 34px -28px rgba(15, 27, 42, .45); }
.sp-card .chipicon { margin-bottom: 6px; }
.sp-card h3 { font-size: var(--t-lg); line-height: 1.3; letter-spacing: -.01em; }
.sp-card p { color: var(--mute); font-size: var(--t-sm); line-height: 1.55; }
.sp-points { display: grid; gap: 8px; margin-top: 4px; }
.sp-points li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--t-sm); }
.sp-points .ico { width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--ice); color: var(--brand); flex: none; box-sizing: content-box; }
.sp-card-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 8px; }

/* Таблицы цен */
.sp-table { display: grid; gap: 8px; }
.sp-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 1.5fr); gap: 8px 24px; align-items: center; padding: 18px 22px; border-radius: 18px; background: var(--surface); transition: box-shadow .25s var(--ease-std); }
.sec .sp-row { box-shadow: inset 0 0 0 1px var(--line); }
.sp-row-t { font-weight: 600; }
.sp-row-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; color: var(--mute); font-size: var(--t-sm); }
.sp-row-v .sp-row-price { margin-left: auto; text-align: right; }
.sp-row-price { color: var(--ink); font-weight: 700; font-size: var(--t-md); }
@media (hover: hover) and (pointer: fine) { .sp-row:hover { box-shadow: 0 10px 24px -18px rgba(15, 27, 42, .45), inset 0 0 0 1px rgba(27, 116, 194, .2); } }
.sp-breakdown { padding: 22px 24px; border-radius: 20px; background: linear-gradient(160deg, #EEF6FE, #E2EFFB); }
.sp-breakdown h3 { font-size: var(--t-md); }
.sp-breakdown ul { display: grid; gap: 6px; margin-top: 12px; }
.sp-breakdown li { color: #384656; font-size: var(--t-sm); }

/* Шаги */
.sp-steps { max-width: 760px; margin-inline: auto; }
.sp-steps .sp-points { margin-top: 10px; }

/* Ссылки */
.sp-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sp-links--center { max-width: 900px; margin: 32px auto 0; text-align: left; }
.sp-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s var(--ease-std), transform .35s var(--ease); }
.sp-link b { display: block; font-size: var(--t-md); }
.sp-link small { display: block; margin-top: 4px; color: var(--mute); font-size: var(--t-xs); line-height: 1.45; }
.sp-link-go { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ice); color: var(--brand); transition: background-color .25s var(--ease-std), color .25s var(--ease-std), transform .35s var(--ease); }
.sp-link-go .ico { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .sp-link:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -24px rgba(15, 27, 42, .5), 0 0 0 1px rgba(27, 116, 194, .25); }
  .sp-link:hover .sp-link-go { background: var(--brand); color: #fff; transform: translateX(3px); }
}

/* Контакты */
.sp-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sp-contacts li { display: grid; gap: 4px; padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sp-contacts small { color: var(--mute); font-size: var(--t-xs); }
.sp-contacts b { font-size: var(--t-md); }
.sp-contacts span { color: var(--mute); font-size: var(--t-sm); }

/* Отзывы и работы сеткой */
.sp-revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.sp-revs .rev { flex: none; }
.sp-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sp-works .work { flex: none; }
.sp-works--all { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Каталог */
.mfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.mf { height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-size: var(--t-sm); font-weight: 600; transition: background-color .2s var(--ease-std), border-color .2s var(--ease-std), color .2s var(--ease-std); }
.mf.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (hover: hover) and (pointer: fine) { .mf:not(.is-on):hover { border-color: var(--brand); color: var(--brand-ink); } }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mcard { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: 0 14px 34px -28px rgba(15, 27, 42, .5), 0 0 0 1px rgba(27, 116, 194, .07); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mcard[hidden] { display: none !important; }
.mcard-img { display: grid; place-items: center; height: 150px; margin-bottom: 8px; border-radius: 16px; background: linear-gradient(180deg, #F4F8FC, #fff); overflow: hidden; }
.mcard-img img { max-height: 120px; max-width: 88%; width: auto; object-fit: contain; transition: transform .6s var(--ease); }
.mcard-tag { color: var(--brand-ink); font-size: var(--t-xs); font-weight: 600; }
.mcard-name { font-size: var(--t-lg); line-height: 1.25; letter-spacing: -.01em; }
.mcard-model { color: var(--mute); font-size: var(--t-xs); }
.mcard-ben { display: grid; gap: 4px; margin: 8px 0 4px; }
.mcard-ben li { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); font-weight: 500; }
.mcard-ben .ico { width: 14px; height: 14px; color: var(--brand); flex: none; }
.mcard-price, .mcard-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mcard-price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--mute); font-size: var(--t-xs); }
.mcard-price b { color: var(--ink); font-size: var(--t-sm); }
.mcard-total small { color: var(--mute); font-size: var(--t-xs); }
.mcard-total b { font-size: var(--t-xl); color: var(--brand-ink); letter-spacing: -.02em; }
@media (hover: hover) and (pointer: fine) { .mcard:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(15, 27, 42, .55), 0 0 0 1px rgba(27, 116, 194, .2); } .mcard:hover .mcard-img img { transform: scale(1.05); } }

/* Карточка модели */
.md-hero { padding-top: 32px; }   /* страница модели не липнет к шапке (Максим 26.10) */
.md-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.md-vis { position: sticky; top: 100px; display: grid; gap: 16px; }
.md-gallery { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .9; border-radius: 32px; background: linear-gradient(160deg, #F4F9FE, #E6F1FB); box-shadow: inset 0 0 0 1px rgba(27, 116, 194, .08); overflow: hidden; }
.md-gallery img { width: auto; height: auto; max-width: 82%; max-height: 70%; object-fit: contain; }  /* width/height в теге — только для пропорций */
.md-gallery--photo { position: static; aspect-ratio: 4 / 3; }
.md-gallery--photo img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
.md-type { position: absolute; left: 18px; top: 18px; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; color: var(--brand-ink); font-size: var(--t-xs); font-weight: 600; }
.md-code { margin-top: 8px; color: var(--mute); font-size: var(--t-sm); }
.md-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
.md-facts li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.md-facts .ico { width: 22px; height: 22px; color: var(--brand); }
.md-facts b { display: block; font-size: var(--t-sm); }
.md-facts small { display: block; color: var(--mute); font-size: var(--t-xs); }
.md-price { margin-top: 24px; padding: 24px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px rgba(27, 116, 194, .08); }
.md-lines { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.md-lines div { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); font-size: var(--t-sm); }
.md-lines b { color: var(--ink); font-weight: 600; }
.md-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.md-total span { font-weight: 600; }
.md-total b { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -.03em; color: var(--brand-ink); }
.md-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; }
.md-note { margin-top: 14px; color: var(--mute); font-size: var(--t-xs); line-height: 1.5; }

/* Прайс */
.pr-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 26px; padding: 0 18px; height: 56px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.pr-search .ico { width: 20px; height: 20px; color: var(--brand); }
.pr-search input { flex: 1; height: 100%; border: 0; background: none; font-size: var(--t-md); outline: none; }
.pr-sec { padding-top: 40px; }
.pr { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.pr-nav { position: sticky; top: 100px; display: grid; gap: 2px; }
.pr-nav a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 12px; color: var(--mute); font-size: var(--t-sm); font-weight: 500; transition: background-color .2s var(--ease-std), color .2s var(--ease-std); }
.pr-nav a small { color: #5B6776; }
.pr-nav a.is-on { background: var(--ice); color: var(--brand-ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .pr-nav a:hover { color: var(--ink); background: var(--panel); } }
.pr-cat { scroll-margin-top: 100px; }
.pr-cat + .pr-cat { margin-top: 44px; }
.pr-cat[hidden] { display: none; }
.pr-cat h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; }
.pr-intro { margin-top: 6px; color: var(--mute); font-size: var(--t-sm); }
.pr-rows { margin-top: 16px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.pr-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 130px; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); transition: background-color .2s var(--ease-std); }
.pr-row:last-child { border-bottom: 0; }
.pr-row[hidden] { display: none; }
.pr-name { font-weight: 500; }
.pr-name small { display: block; margin-top: 2px; color: var(--mute); font-size: var(--t-xs); font-weight: 400; }
.pr-unit { color: var(--mute); font-size: var(--t-sm); }
.pr-price { text-align: right; font-size: var(--t-md); }
@media (hover: hover) and (pointer: fine) { .pr-row:hover { background: #F7FAFD; } }
.pr-empty, .pr-foot { margin-top: 24px; color: var(--mute); font-size: var(--t-sm); }

/* Статьи */
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.art-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px; background: var(--surface); box-shadow: 0 14px 34px -28px rgba(15, 27, 42, .45), 0 0 0 1px rgba(27, 116, 194, .07); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.art-card b { font-size: var(--t-lg); line-height: 1.3; letter-spacing: -.01em; }
.art-ans { color: var(--mute); font-size: var(--t-sm); line-height: 1.55; }
.art-card .link { margin-top: auto; }
.art-author { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: var(--t-xs); font-weight: 600; }
.art-author .crew-av { width: 32px; height: 32px; font-size: var(--t-xs); }
@media (hover: hover) and (pointer: fine) { .art-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(15, 27, 42, .55); } }
/* Хаб советов: три инструмента сверху и группы по ситуации */
.art-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.art-tool { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--ice); color: var(--ink); transition: background-color .2s var(--ease-std); }
.art-tool > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.art-tool b { font-size: var(--t-md); line-height: 1.3; }
.art-tool small { color: var(--mute); font-size: var(--t-xs); }
.art-tool > svg { flex: none; width: 18px; height: 18px; color: var(--brand); }
.art-tool-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--brand); }
.art-tool-ic svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .art-tool:hover { background: #DCEBFA; } }
.art-group { margin: 48px 0 16px; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; }
@media (max-width: 900px) { .art-tools { grid-template-columns: 1fr; } .art-group { margin-top: 36px; } }
.art-wrap { max-width: 900px; }
.art-meta { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.art-meta b { display: block; }
.art-meta small { display: block; color: var(--mute); font-size: var(--t-xs); }
.art-answer { margin-top: 22px; padding: 22px 24px; border-radius: 20px; background: linear-gradient(160deg, #EEF6FE, #E2EFFB); font-size: var(--t-lg); line-height: 1.6; }
.art-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 48px; padding-bottom: var(--sec); }
.art-toc { position: sticky; top: 100px; display: grid; gap: 6px; align-self: start; font-size: var(--t-sm); }
.art-toc b { margin-bottom: 6px; }
.art-toc a { color: var(--mute); line-height: 1.4; transition: color .2s var(--ease-std); }
@media (hover: hover) and (pointer: fine) { .art-toc a:hover { color: var(--brand-ink); } }
.art-body { font-size: var(--t-md); line-height: 1.7; }
.art-body h2 { margin: 40px 0 14px; font-size: clamp(24px, 2.4vw, 30px); scroll-margin-top: 100px; }
.art-body h3 { margin: 24px 0 10px; font-size: var(--t-lg); }
.art-body p + p, .art-body p + ul, .art-body ul + p, .art-body p + ol { margin-top: 12px; }
.art-body table { width: 100%; margin: 18px 0; border-collapse: collapse; font-size: var(--t-sm); }
.art-body caption { margin-bottom: 8px; color: var(--mute); text-align: left; font-size: var(--t-xs); }
.art-body th, .art-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.art-body th { background: var(--panel); font-weight: 600; }

@media (max-width: 1000px) {
  .sp-hero-in, .md-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sp-hero-vis { justify-self: center; max-width: 400px; }
  .md-vis { position: static; }
  .sp-cards, .sp-links, .sp-contacts, .mgrid, .sp-revs, .sp-works, .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr { grid-template-columns: minmax(0, 1fr); }
  .pr-nav { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .pr-nav::-webkit-scrollbar { display: none; }
  .pr-nav a { flex: none; background: var(--panel); white-space: nowrap; }
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .art-toc { position: static; }
}
@media (max-width: 760px) {
  .sp-hero { padding: 20px 0 48px; }
  .sp-cards, .sp-cards--2, .sp-cards--4, .sp-links, .sp-contacts, .mgrid, .sp-revs, .sp-works, .sp-works--all, .art-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-row { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .sp-row-v { justify-content: flex-start; text-align: left; }
  .sp-acts .btn { width: 100%; }
  .pr-row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .pr-unit { display: none; }
  .md-price { padding: 18px; }
  .sp-chip { left: 0; }
}
@media (prefers-reduced-motion: reduce) { .sp-chip, .sp-badge { animation: none; } }
/* Фото производителей бывают на белом: белый растворяется в светлой подложке карточки */
.mcard-img img, .md-gallery:not(.md-gallery--photo) img { mix-blend-mode: multiply; }

/* Каталог на телефоне: компактная строка (фото слева, название и цена под ключ), иначе 28 моделей это 13 экранов */
@media (max-width: 760px) {
  .mgrid { gap: 10px; }
  .mcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 12px; border-radius: 18px; }
  .mcard-img { grid-row: 1 / span 4; height: 96px; margin: 0; align-self: center; }
  .mcard-img img { max-height: 70px; }
  .mcard-name { font-size: var(--t-md); }
  .mcard-ben, .mcard-price { display: none; }
  .mcard-total { margin-top: 4px; }
  .mcard-total b { font-size: var(--t-lg); }
}

/* Страница работы: кадры галереей, портретные, со скруглением */
.wk-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-self: start; }
.wk-gal img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; background: var(--panel); }
.wk-gal--1 { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
.wk-gal--3 img:first-child, .wk-gal--5 img:first-child, .wk-gal--7 img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .wk-gal { gap: 8px; } .wk-gal img { border-radius: 16px; } }
.wk-gal--6, .wk-gal--7 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Каталог: сначала 9 моделей, остальные по кнопке */
.mcard.is-more { display: none; }
.mmore { display: flex; justify-content: center; margin-top: 28px; }
.mmore .ico { width: 18px; height: 18px; }
@media (max-width: 760px) { .mcard-total { flex-direction: column; align-items: flex-start; gap: 0; } }

/* Раздел прайса ссылкой на страницу услуги */
.pr-cat h2 a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s var(--ease-std); }
.pr-cat h2 a .ico { width: 20px; height: 20px; color: var(--brand); transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .pr-cat h2 a:hover { color: var(--brand-ink); } .pr-cat h2 a:hover .ico { transform: translateX(3px); } }

/* «Работы»: сетка сразу под заголовком (правка Максима 24.10) */
.sp-hero--tight { padding-bottom: 24px; }
.sp-works-sec { padding-top: 16px; }

/* Все работы одной страницей (25.10): объект карточкой, слева что сделали и «Хочу так же», справа все кадры.
   Кадры с Авито маленькие (150–330 px), поэтому плитки не крупнее 200 px: на ретине не мутнеют */
.wk-list { display: grid; gap: 20px; }
.wk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: start; padding: 32px; border-radius: var(--r-lg);
  background: var(--panel); scroll-margin-top: 96px; }
.wk:target { box-shadow: 0 0 0 2px var(--brand); }
.wk-txt { display: grid; justify-items: start; gap: 12px; }
.wk-h { font-size: var(--t-xl); letter-spacing: -.02em; }
.wk-what { color: var(--mute); font-size: var(--t-md); }
.wk-story { color: var(--ink); font-size: var(--t-sm); line-height: 1.55; }
.wk-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; font-size: var(--t-xs); font-weight: 600; }
.wk-facts .ico { width: 16px; height: 16px; color: var(--brand); }
.wk-txt .btn { margin-top: 8px; }
.wk .wk-gal { grid-template-columns: repeat(3, minmax(0, 200px)); justify-content: end; gap: 10px; }
.wk .wk-gal img { aspect-ratio: 1; border-radius: 16px; }
.wk .wk-gal--1 { grid-template-columns: minmax(0, 260px); }  /* один маленький кадр не растягиваем: мутнеет */
.wk .wk-gal--2 { grid-template-columns: repeat(2, minmax(0, 200px)); }
.wk .wk-gal--3 img:first-child, .wk .wk-gal--5 img:first-child, .wk .wk-gal--7 img:first-child { grid-column: auto; aspect-ratio: 1; }
@media (max-width: 900px) {
  .wk { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; border-radius: 24px; }
  .wk .wk-gal, .wk .wk-gal--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; gap: 6px; }
  .wk .wk-gal img { border-radius: 12px; }
  .wk-txt { order: 2; }
}
/* Работы на узком экране: два кадра в два столбца, одиночный кадр не сжимается в треть (критик 25.10) */
@media (max-width: 900px) {
  .wk .wk-gal--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk .wk-gal--1 { grid-template-columns: minmax(0, 260px); }
}
@media (max-width: 760px) { .wk { scroll-margin-top: 80px; } }
/* Плавающая «Хочу так же» на странице работ: справа внизу, прячется у формы; на телефоне её заменяет нижняя панель */
.wk-float { position: fixed; right: 32px; bottom: 32px; z-index: 40; box-shadow: 0 18px 36px -14px rgba(27, 116, 194, .8);
  transition: transform .4s var(--ease), opacity .3s var(--ease-std); }
.wk-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (max-width: 760px) { .wk-float { display: none; } }
.wk-story p { margin: 0; }
/* Совет мастера: отдельная строка-ссылка **[Вызвать мастера…](/…)** оформлена главной кнопкой (призыв в блоке «Когда звать мастера») */
.art-body p > b:only-child > a:only-child { display: inline-flex; align-items: center; min-height: var(--h-btn-sm); padding: 0 22px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 10px 24px -12px rgba(27, 116, 194, .75); transition: background-color .2s var(--ease-std); }
@media (hover: hover) and (pointer: fine) { .art-body p > b:only-child > a:only-child:hover { background: var(--brand-d); } }

/* ===== Совет мастера как журнальная статья (Максим 25.10: «полотно, хаос»; ориентир — статьи Т—Ж и Дзена) =====
   Одна колонка 720 px, текст 18 px, разделы с воздухом, шаги с номерами-квадратами, таблицы и врезки карточками */
.art-col { max-width: calc(720px + var(--gx) * 2); }
.art-head { padding: 28px 0 8px; background: linear-gradient(180deg, #F3F8FD 0%, #fff 100%); }
.art-h1 { margin-top: 18px; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.art-by { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.art-av { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.art-by-t b { display: block; font-size: var(--t-md); }
.art-by-t small { display: block; margin-top: 2px; color: var(--mute); font-size: var(--t-sm); }
.art-by-m { display: flex; gap: 14px; margin-left: auto; color: var(--mute); font-size: var(--t-xs); }
.art-by-m span + span::before { content: '·'; margin-right: 14px; }
.art-cover { margin: 28px 0 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--panel); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.art-short { display: flex; gap: 16px; margin-top: 24px; padding: 22px 24px; border-radius: 20px; background: var(--ice); }
.art-short-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--brand); }
.art-short-ic .ico { width: 22px; height: 22px; }
.art-short b { display: block; margin-bottom: 6px; font-size: var(--t-md); }
.art-short p { font-size: var(--t-md); line-height: 1.65; }
.art-toc { position: static; display: block; margin-top: 20px; padding: 18px 22px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); font-size: var(--t-sm); }
.art-toc summary { cursor: pointer; font-weight: 700; font-size: var(--t-md); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.art-toc summary::-webkit-details-marker { display: none; }
.art-toc summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .25s var(--ease); }
.art-toc[open] summary::after { transform: rotate(-135deg); }
.art-toc ol { display: grid; gap: 8px; margin: 14px 0 0; padding-left: 22px; }
.art-toc li a { padding-block: 4px; }  /* у строчной ссылки поле не сдвигает строку: зона пальца 28 px (аудит № 24) */
.art-toc li::marker { color: var(--brand); font-weight: 700; }
.art-toc a { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .art-toc a:hover { color: var(--brand-ink); } }

.art-body { padding: 8px 0 var(--sec); font-size: 18px; line-height: 1.65; }
.art-sec { padding-top: 44px; }
.art-sec + .art-sec { margin-top: 0; }
.art-body h2 { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: 96px; }
.art-body p + p, .art-body p + ul, .art-body ul + p, .art-body p + ol, .art-body ol + p { margin-top: 14px; }
/* Шаги: номера квадратами, как номера шагов на главной */
.art-body ol { counter-reset: st; display: grid; gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.art-body ol li { counter-increment: st; position: relative; min-height: 36px; padding: 4px 0 0 52px; }
.art-body ol li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; }
.art-body ul li::before { top: .72em; }
/* Ссылки на соседние советы и услуги видно в тексте: цвет бренда и тонкое подчёркивание (25.10: в таблице ссылка сливалась с текстом) */
:is(.art-body, .art-short, .sp-doc .sp-body) :is(p, li, td) a, .faq-sec .qa-a a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { :is(.art-body, .art-short, .sp-doc .sp-body) :is(p, li, td) a:hover, .faq-sec .qa-a a:hover { color: var(--brand-d); } }
/* Таблица карточкой: рамка, шапка на светлой подложке, на телефоне листается вбок */
.art-table { margin: 18px 0; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; }
.art-table table { margin: 0; min-width: 520px; font-size: var(--t-sm); line-height: 1.5; }
.art-table th { background: var(--ice); color: var(--brand-ink); }
.art-table th, .art-table td { padding: 12px 16px; }
.art-table tr:last-child td { border-bottom: 0; }
/* На телефоне таблица из двух колонок («что видите — что проверить») идёт строками-карточками: признак жирным, под ним действие.
   Листать вбок таблицу с длинным текстом неудобно, половина ответа пряталась за край (25.10). Три колонки и цены в CTA не трогаем */
@media (max-width: 600px) {
  :not(.art-sec--cta) > .art-table:has(tr > :nth-child(2):last-child) { overflow: visible; }
  :not(.art-sec--cta) > .art-table:has(tr > :nth-child(2):last-child) table { min-width: 0; }
  :not(.art-sec--cta) > .art-table:has(tr > :nth-child(2):last-child) tr:has(th) { display: none; }
  :not(.art-sec--cta) > .art-table:has(tr > :nth-child(2):last-child) :is(tr, td) { display: block; }
  :not(.art-sec--cta) > .art-table:has(tr > :nth-child(2):last-child) tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  :not(.art-sec--cta) > .art-table:has(tr > :nth-child(2):last-child) tr:last-child { border-bottom: 0; }
  :not(.art-sec--cta) > .art-table:has(tr > :nth-child(2):last-child) td { padding: 0; border: 0; }
  :not(.art-sec--cta) > .art-table:has(tr > :nth-child(2):last-child) td:first-child { margin-bottom: 4px; color: var(--ink); font-weight: 600; }
}
/* Врезка «Важно» */
.art-note { position: relative; margin: 18px 0; padding: 16px 20px 16px 56px; border-radius: 16px; background: #FFF7E8; color: #5A4210; font-size: var(--t-md); line-height: 1.55; }
.art-note::before { content: '!'; position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #F2A900; color: #fff; font-weight: 800; font-size: 15px; }
/* «Когда звать мастера»: карточка с кнопкой в конце статьи */
.art-sec--cta { margin-top: 44px; padding: 32px; border-radius: 28px; background: linear-gradient(135deg, #1F7BC8 0%, #1767AE 60%, #12528C 100%); color: #fff; box-shadow: 0 30px 60px -34px rgba(27, 116, 194, .9); }
.art-sec--cta h2 { color: #fff; }
.art-sec--cta ul li::before { background: #CFE8FF; }
.art-sec--cta a { color: #fff; }
.art-sec--cta p > b:only-child > a:only-child { margin-top: 8px; background: #fff; color: var(--ink); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .art-sec--cta p > b:only-child > a:only-child:hover { background: #EAF4FD; } }
@media (max-width: 760px) {
  .art-head { padding-top: 16px; }
  .art-by-m { margin-left: 64px; }
  .art-cover { margin-top: 20px; border-radius: 18px; aspect-ratio: 4 / 3; }
  .art-short { padding: 18px; gap: 12px; }
  .art-body { font-size: 17px; }
  .art-sec { padding-top: 36px; }
  .art-sec--cta { padding: 22px 18px; border-radius: 22px; }
  .art-sec--cta p > b:only-child > a:only-child { width: 100%; justify-content: center; }
}
.art-sec + .art-sec--cta { margin-top: 48px; }  /* отступ от текста над карточкой */
/* Автор: аватар и подпись всегда в одну строку, дата и время чтения ниже (на телефоне блок разъезжался) */
.art-by-t { flex: 1 1 260px; min-width: 0; }
@media (max-width: 760px) {
  .art-by { flex-wrap: wrap; }
  .art-by-t { flex: 1 1 0; }
  .art-by-t small { font-size: var(--t-xs); }
  .art-by-m { width: 100%; margin-left: 0; }
}

/* «Коротко» строками: подпись жирным, под ней суть; между строками тонкий разделитель (Максим 25.10: абзац с цифрами не читался) */
.art-short { align-items: flex-start; padding: 24px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ice-2), 0 18px 40px -32px rgba(27, 116, 194, .6); }
.art-short-ic { background: var(--ice); }
.art-short > div { flex: 1; min-width: 0; }
.art-short > div > b { margin-bottom: 4px; color: var(--brand-ink); font-size: var(--t-sm); letter-spacing: .02em; }
.art-short ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.art-short li { padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--t-md); line-height: 1.55; }
.art-short li:first-child { border-top: 0; padding-top: 6px; }
.art-short li::before { display: none; }
.art-short li b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 700; }

/* «Когда звать мастера»: светлая карточка вместо белого текста на синем. Признаки сеткой с иконкой,
   цены плашками, кнопка синяя (Максим 25.10: «нечитаемо») */
.art-sec--cta { padding: 32px; border-radius: 28px; background: linear-gradient(160deg, #F3F8FE 0%, #E6F1FB 100%); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ice-2); }
.art-sec--cta h2 { color: var(--ink); }
.art-sec--cta a { color: var(--brand-ink); }
.art-sec--cta ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 20px; }
.art-sec--cta ul li { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px 14px 14px; border-radius: 16px; background: #fff;
  font-size: var(--t-sm); font-weight: 600; line-height: 1.45; box-shadow: 0 10px 24px -22px rgba(15, 27, 42, .5); }
.art-sec--cta ul li::before { content: '!'; position: static; display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: -1px;
  border-radius: 50%; background: #FDECC8; color: #A36A00; font-size: 13px; font-weight: 800; }
.art-sec--cta p { font-size: var(--t-md); }
.art-sec--cta .art-table { margin: 16px 0 6px; box-shadow: none; overflow: visible; }
.art-sec--cta .art-table table { min-width: 0; border-collapse: separate; border-spacing: 10px 0; margin: 0 -10px; width: calc(100% + 20px); }
.art-sec--cta .art-table th { padding: 14px 16px 2px; border: 0; border-radius: 16px 16px 0 0; background: #fff; color: var(--mute); font-size: var(--t-xs); font-weight: 600; }
.art-sec--cta .art-table td { padding: 0 16px 14px; border: 0; border-radius: 0 0 16px 16px; background: #fff; color: var(--ink); font-size: var(--t-md); font-weight: 700; }
.art-sec--cta p > b:only-child > a:only-child { margin-top: 14px; background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(27, 116, 194, .75); }
@media (hover: hover) and (pointer: fine) { .art-sec--cta p > b:only-child > a:only-child:hover { background: var(--brand-d); } }
@media (max-width: 760px) {
  .art-short { padding: 18px; }
  .art-sec--cta { padding: 22px 16px; }
  .art-sec--cta ul { grid-template-columns: minmax(0, 1fr); }
  .art-sec--cta .art-table table { border-spacing: 6px 0; margin: 0 -6px; width: calc(100% + 12px); }
}
.art-sec--cta ul li:last-child:nth-child(odd) { grid-column: 1 / -1; }  /* нечётный последний признак на всю ширину */

/* «Все характеристики» в карточке модели (Максим 02.11): кнопка под основными строками, таблица по разделам.
   Раскрытие плавное (grid 0fr → 1fr), содержимое всегда в коде страницы */
.sp-all { margin-top: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sp-all summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 22px; cursor: pointer; list-style: none;
  color: var(--brand-ink); font-weight: 600; }
.sp-all summary::-webkit-details-marker { display: none; }
.sp-all summary .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.sp-all[open] summary .ico { transform: rotate(180deg); }
.sp-all-close, .sp-all[open] .sp-all-open { display: none; }
.sp-all[open] .sp-all-close { display: inline; }
.sp-all-body { display: grid; gap: 28px; padding: 8px 22px 24px; animation: spAllIn .35s var(--ease) both; }
@keyframes spAllIn { from { opacity: 0; transform: translateY(-6px); } }
.sp-all-g h3 { margin: 0 0 10px; font-size: var(--t-md); }
.sp-all-g dl { display: grid; margin: 0; }
.sp-all-g dl > div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.sp-all-g dt { color: var(--mute); }
.sp-all-g dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-all-src { margin: 0; color: var(--mute); font-size: var(--t-xs); }
/* Две колонки как газета: разделы разной длины встают плотно, без дыр между ними */
@media (min-width: 900px) { .sp-all-body { display: block; columns: 2; column-gap: 40px; } .sp-all-g { break-inside: avoid; margin-bottom: 28px; } .sp-all-src { column-span: all; } }
@media (max-width: 560px) { .sp-all-g dl > div { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .sp-all-body { animation: none; } .sp-all summary .ico { transition: none; } }

/* Кнопка после «Коротко» в совете (аудит 04.11) */
.art-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.art-cta span { color: var(--mute); font-size: var(--t-sm); }
