/* ПроМебель: внутренние страницы, блог и конструктор в «тёплом» дизайне. Дополняет teplo.css */

/* подвал полного сайта: четыре колонки */
.foot2-grid--site { grid-template-columns: 4fr 3fr 3fr 4fr; }
@media (max-width: 1100px) { .foot2-grid--site { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .foot2-grid--site { grid-template-columns: 1fr; } }

/* шапка страницы */
.inner h1 { margin-top: 0; font-size: clamp(34px, 4.4vw, 88px); line-height: 1.06; max-width: 18em; }
.inner .lead { color: var(--ink-2); font-size: clamp(19px, 1.5vw, 28px); margin-top: clamp(16px, 1.6vw, 28px); max-width: 36em; }
.page-head { padding-top: clamp(28px, 3.4vw, 64px); }
.page-head--img { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: center; }
.page-head-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; color: var(--ink-2); margin-bottom: clamp(16px, 1.8vw, 28px); }
.crumbs a { color: var(--ink-2); text-underline-offset: 4px; text-decoration-color: var(--line); text-decoration-thickness: 2px; }
.crumbs a:hover { color: var(--ink); text-decoration-color: var(--deep); }
.page-cta-head { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 2.4vw, 40px); }
.page-anchor { display: inline-flex; flex-direction: column; margin-top: clamp(20px, 2vw, 32px); text-decoration: none; }
.page-anchor b { font-size: clamp(32px, 3vw, 56px); line-height: 1.05; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.page-anchor span { margin-top: 6px; font-size: 17px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--deep); text-decoration-thickness: 2px; }
.inner section.sec-first { padding-top: clamp(36px, 4vw, 72px); }
.inner .facts { padding-top: clamp(36px, 4vw, 72px); }
.facts--n4 { grid-template-columns: repeat(4, 1fr); }
.facts--n2 { grid-template-columns: repeat(2, 1fr); }
.h2-small { font-size: clamp(26px, 2.4vw, 44px); }
.sec-head .sec-note .go { white-space: nowrap; }

/* работы в сетке */
.works-grid .sum--none { font-size: clamp(22px, 1.8vw, 32px); letter-spacing: -0.01em; color: var(--ink-2); white-space: normal; }
.works-grid { grid-template-rows: none; }

/* отзывы без крупного первого */
.rev-grid--plain .rev:first-child { grid-column: auto; background: none; border-top: 2px solid var(--line); border-radius: 0; padding: clamp(24px, 2.4vw, 40px) 0; margin-bottom: 0; }
.rev-grid--plain .rev:first-child p { font-size: var(--txt); line-height: 1.5; font-weight: 400; letter-spacing: 0; max-width: none; }
.rev-grid--plain .rev:first-child footer { margin-top: auto; color: var(--ink-2); }

/* текст страницы и боковая карточка */
.prose-wrap { display: grid; grid-template-columns: 8fr 4fr; gap: var(--gap); align-items: start; }
.prose { font-size: var(--txt); line-height: 1.6; max-width: 46em; min-width: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(26px, 2.4vw, 44px); line-height: 1.12; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { text-underline-offset: 4px; text-decoration-color: var(--deep); text-decoration-thickness: 2px; }
.prose strong, .prose b { font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92em; line-height: 1.4; }
.prose th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 0.9em; }
.prose th, .prose td { padding: 12px 16px 12px 0; border-bottom: 2px solid var(--line); vertical-align: top; }
.prose figure { margin-top: 1.6em; margin-bottom: 1.6em; }
.prose figure img { width: 100%; height: auto; border-radius: var(--r); }
.prose figcaption { margin-top: 10px; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.aside-card { position: sticky; top: 132px; background: var(--soft); border-radius: var(--r); padding: clamp(24px, 2.2vw, 40px); display: grid; gap: 14px; }
.aside-card p { font-size: 18px; line-height: 1.45; }
.aside-card .btn { width: 100%; white-space: normal; }
.aside-tel { font-size: 22px; font-weight: 500; text-decoration: none; text-align: center; }
.article-cover { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r); margin-top: clamp(28px, 3vw, 52px); }
.inner--article section.prose-sec { padding-top: clamp(36px, 4vw, 72px); }

/* что важно знать */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gap); }
.feat { padding: clamp(22px, 2.2vw, 36px) 0; border-top: 2px solid var(--line); }
.feat p { margin-top: 10px; font-size: var(--txt); color: var(--ink-2); }

/* таблица цен */
.price-table { width: 100%; border-collapse: collapse; font-size: var(--txt); }
.price-table td { padding: clamp(14px, 1.4vw, 24px) 0; border-bottom: 2px solid var(--line); vertical-align: top; }
.price-table tr:first-child td { border-top: 2px solid var(--line); }
.price-table td:last-child { text-align: right; font-weight: 500; white-space: nowrap; padding-left: 24px; font-variant-numeric: tabular-nums; }

/* шаги без фото */
.steps-grid--text { grid-template-rows: none; }
.steps-grid--text .step-card { grid-row: auto; display: flex; padding: clamp(22px, 2.2vw, 36px) 0 0; border-top: 2px solid var(--line); }
.steps-grid--text .step-num { margin-top: 0; }
.steps-grid--n3 { grid-template-columns: repeat(3, 1fr); }
.steps-grid--n2 { grid-template-columns: repeat(2, 1fr); }

/* ссылки-метки */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 2vw, 32px); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid #d9c8a6; border-radius: 12px; font-size: 18px; font-weight: 500; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.chip:hover { background: var(--soft); border-color: var(--soft); }
.chip.is-active { background: var(--sun); border-color: var(--sun); }
.chip small { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.inner section.rel-sec { padding-top: clamp(48px, 5vw, 96px); }
.catalog-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; font-size: 18px; color: var(--ink-2); }
.catalog-filter select { font: 400 18px "Commissioner", Arial, sans-serif; color: var(--ink); background: #fff; border: 1px solid #d9c8a6; border-radius: 12px; padding: 12px 14px; max-width: 100%; }
.empty { padding: 40px 0; font-size: var(--txt); display: grid; gap: 16px; justify-items: start; }
.inner section.cta-sec { padding-top: 0; }

/* блог: карточки статей */
.blog-grid { gap: clamp(40px, 4.4vw, 72px) var(--gap); }
.blog-grid .task-card h3 { font-size: clamp(22px, 1.7vw, 32px); }
.blog-grid .task-card img { aspect-ratio: 3 / 2; }

/* приглашение в конструктор на главной */
.kon-band { background: var(--soft); border-radius: var(--r); padding: clamp(28px, 3.4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.kon-band p { margin-top: 14px; font-size: var(--txt); color: var(--ink-2); max-width: 38em; }
.kon-band .btn { flex: none; }

/* конструктор мебели */
.quiz { display: grid; grid-template-columns: 8fr 4fr; gap: var(--gap); align-items: start; }
.quiz-main { min-width: 0; border: 1px solid #d9c8a6; border-radius: var(--r); padding: clamp(22px, 2.6vw, 48px); background: #fff; }
.quiz-top { display: flex; align-items: center; gap: 16px; }
.quiz-count { flex: none; font-size: 17px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.quiz-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 20%; background: var(--acc); border-radius: 3px; transition: width .3s var(--ease); }
.quiz-step { border: 0; margin-top: clamp(20px, 2vw, 32px); min-width: 0; }
.quiz-step[hidden] { display: none; }
.quiz-q { display: block; width: 100%; font-size: clamp(24px, 2.2vw, 40px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; margin-bottom: clamp(16px, 1.6vw, 28px); }
.quiz-sub { font-size: 18px; color: var(--ink-2); margin: -8px 0 16px; }
.quiz-sub--gap { margin: 24px 0 12px; color: var(--ink); font-weight: 500; }
.quiz-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); }
.quiz-kind { position: relative; display: block; cursor: pointer; border-radius: 12px; overflow: hidden; border: 2px solid transparent; }
.quiz-kind input { position: absolute; opacity: 0; inset: 0; }
.quiz-kind img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.quiz-kind span { display: block; padding: 12px 14px 14px; font-size: clamp(17px, 1.2vw, 21px); font-weight: 500; line-height: 1.2; background: var(--soft); }
.quiz-kind:hover { border-color: var(--sun); }
.quiz-kind:has(input:checked) { border-color: var(--acc); }
.quiz-kind:has(input:checked) span { background: var(--sun); }
.quiz-kind:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-opt { position: relative; cursor: pointer; }
.quiz-opt input { position: absolute; opacity: 0; inset: 0; }
.quiz-opt span { display: block; padding: 14px 20px; border: 1px solid #d9c8a6; border-radius: 12px; font-size: clamp(18px, 1.2vw, 21px); font-weight: 500; line-height: 1.2; transition: background-color .15s ease, border-color .15s ease; }
.quiz-opt:hover span { background: var(--soft); }
.quiz-opt input:checked + span { background: var(--sun); border-color: var(--sun); }
.quiz-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.quiz-contact { display: grid; gap: 14px; margin-top: 24px; max-width: 460px; }
.quiz-contact .f-row > label:not(.f-consent) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.quiz-contact .f-row { position: relative; }
.quiz-contact .btn { width: 100%; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: clamp(24px, 2.4vw, 40px); }
.quiz-nav [data-q-next] { margin-left: auto; }
.quiz-nav .btn[disabled] { opacity: .45; cursor: default; }
.quiz-nav .btn[hidden] { display: none; }
.q-ok h3 { font-size: clamp(24px, 2.2vw, 40px); }
.q-ok p { margin-top: 12px; font-size: var(--txt); color: var(--ink-2); max-width: 34em; }
.q-ok[hidden] { display: none; }
.quiz--done .quiz-top { display: none; }
.quiz-side { position: sticky; top: 132px; background: var(--soft); border-radius: var(--r); overflow: hidden; }
.quiz-pic { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.quiz-side h3 { padding: 20px clamp(20px, 2vw, 32px) 0; }
.quiz-sum { padding: 8px clamp(20px, 2vw, 32px) 0; }
.quiz-sum div { display: grid; grid-template-columns: 5fr 7fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(61, 50, 41, 0.14); font-size: 17px; line-height: 1.35; }
.quiz-sum dt { color: var(--ink-2); }
.quiz-sum dd { font-weight: 500; }
.quiz-sum .quiz-sum-empty { display: block; border: 0; }
.quiz-sum .quiz-sum-empty dd { font-weight: 400; color: var(--ink-2); }
.quiz-side-note { padding: 16px clamp(20px, 2vw, 32px) 24px; font-size: 16px; color: var(--ink-2); }

/* страница работы и раздела */
.inner section.page-body { padding-top: clamp(36px, 4vw, 72px); }
.page-price { margin-top: clamp(18px, 1.8vw, 28px); font-size: clamp(36px, 3.6vw, 68px); line-height: 1.05; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.page-price-note { display: block; margin-top: 8px; font-size: 17px; line-height: 1.4; font-weight: 400; letter-spacing: 0; color: var(--ink-2); max-width: 34em; }
.page-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: start; }
.page-gallery { display: grid; gap: var(--gap); }
.page-gallery img { width: 100%; height: auto; border-radius: var(--r); }
.page-info { position: sticky; top: 132px; }
.page-info h2 { font-size: clamp(24px, 2vw, 36px); margin: 32px 0 14px; }
.page-info h2:first-child { margin-top: 0; }
.page-info p { font-size: var(--txt); color: var(--ink-2); margin-bottom: 12px; }
.page-specs dt, .page-specs dd { font-size: 18px; }
.page-specs dd { font-weight: 500; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.rel-card { display: flex; flex-direction: column; text-decoration: none; }
.rel-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.rel-name { margin-top: 16px; font-size: clamp(20px, 1.5vw, 26px); font-weight: 500; line-height: 1.2; }
.rel-price { margin-top: 6px; font-size: clamp(22px, 1.8vw, 32px); font-weight: 500; font-variant-numeric: tabular-nums; }
.works-grid .price-card, .section-grid .price-card { grid-row: span 4; }

/* политика */
.legal { padding-top: clamp(28px, 3.4vw, 64px); max-width: none; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: clamp(22px, 1.8vw, 32px); margin: 36px 0 12px; }
.legal p, .legal li { font-size: 18px; color: var(--ink-2); max-width: 46em; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 22px; }
.legal .contacts { margin-top: 16px; max-width: 900px; }
.legal .contacts dd { font-size: 19px; }

/* карта по кнопке */
.map-holder--btn { margin-top: var(--gap); display: grid; place-items: center; min-height: 260px; }
.map-ask { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 32px; font-size: var(--txt); }
.map-holder--btn + iframe, .wrap > iframe { display: block; width: 100%; height: clamp(360px, 34vw, 560px); border: 0; border-radius: var(--r); margin-top: var(--gap); }

@media (max-width: 1100px) {
  .page-head--img { grid-template-columns: 1fr; }
  .page-head-img { aspect-ratio: 16 / 9; }
  .prose-wrap, .quiz, .page-grid { grid-template-columns: 1fr; }
  .aside-card, .quiz-side, .page-info { position: static; }
  .quiz-side { order: -1; display: grid; grid-template-columns: 200px 1fr; align-items: start; }
  .quiz-side .quiz-pic { grid-row: 1 / 4; height: 100%; aspect-ratio: auto; }
  .quiz-side-note { display: none; }
  .quiz-sum { padding-bottom: 16px; }
  .feat-grid, .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid--text, .steps-grid--n3 { grid-template-columns: repeat(2, 1fr); }
  .facts--n4 { grid-template-columns: repeat(2, 1fr); }
  .kon-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .inner h1 { font-size: 34px; }
  .inner .lead { font-size: 18px; }
  .page-cta-head .btn { flex: 1 1 100%; }
  .feat-grid, .rel-grid, .steps-grid--text, .steps-grid--n3, .steps-grid--n2 { grid-template-columns: 1fr; }
  .facts--n4, .facts--n2, .inner .facts { grid-template-columns: 1fr; gap: 16px; }
  .quiz-main { padding: 20px 16px; }
  .quiz-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-kind span { font-size: 16px; padding: 10px 10px 12px; }
  .quiz-opts { display: grid; grid-template-columns: 1fr; }
  .quiz-opt span { font-size: 17px; padding: 13px 16px; }
  .quiz-q { font-size: 24px; }
  .quiz-side { display: none; }
  .quiz-nav .btn { flex: 1; }
  .prose table { display: block; overflow-x: auto; font-size: 16px; }
  .prose th, .prose td { min-width: 130px; }
  .price-table td:last-child { white-space: normal; }
  .chip { font-size: 16px; padding: 9px 14px; }
  .kon-band .btn { width: 100%; }
  .article-cover { aspect-ratio: 3 / 2; }
  .catalog-filter select { width: 100%; }
}

/* картинки с атрибутами размеров: высота по пропорции */
.inner img, .blog-grid img { height: auto; }
.page-head--img .page-head-img { max-height: min(70vh, 640px); }

/* шапка полного сайта: семь пунктов меню, на средних ширинах плотнее */
.brand > span { min-width: 0; }
@media (min-width: 1101px) and (max-width: 1520px) {
  .top-in { gap: 16px; }
  .top-nav { gap: 14px; }
  .top-nav a { font-size: 17px; }
  .brand-name { font-size: 25px; }
}
@media (min-width: 1101px) and (max-width: 1260px) {
  .top-nav { gap: 11px; }
  .top-nav a { font-size: 15px; }
  .brand-name { font-size: 22px; }
  .top .top-tel span { display: none; }
}
@media (max-width: 640px) {
  .kon-band .btn, .page-cta-head .btn { white-space: normal; }
}
.prose figure img { width: auto; max-width: 100%; max-height: 760px; }

/* конструктор 11.11.2026: шаги с возвратом, схемы вариантов, образцы фасадов */
.quiz-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.quiz-steps button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-bottom: 3px solid var(--line); background: none; font-size: 16px; font-weight: 500; color: var(--ink-2); text-align: left; cursor: pointer; }
.quiz-steps button i { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--line); font-style: normal; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.quiz-steps button[disabled] { cursor: default; opacity: .55; }
.quiz-steps button.done { border-color: var(--sun); color: var(--ink); }
.quiz-steps button.done i { background: var(--sun); font-size: 0; }
.quiz-steps button.done i::before { content: "\2713"; font-size: 14px; }
.quiz-steps button[aria-current] { border-color: var(--acc); color: var(--ink); }
.quiz-steps button[aria-current] i { background: var(--acc); }
.quiz-steps button:not([disabled]):hover { background: var(--page); }
.quiz-chips { display: none; }
.quiz-top { display: none; }
.quiz-sub { margin: -6px 0 18px; max-width: 40em; }
.quiz-q2 { margin: 26px 0 12px; font-size: clamp(20px, 1.5vw, 26px); font-weight: 500; }
.quiz-ico { display: block; width: 100%; max-width: 132px; height: auto; margin: 0 auto; color: var(--ink); }
.quiz-ico .s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quiz-ico .f { fill: #ffd98f; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.quiz-ico .w { fill: #e9dcc6; stroke: #b9a88c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quiz-ico path.w:not([d$="z"]) { fill: none; stroke-width: 3; }
.quiz-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1vw, 16px); }
.quiz-cards[hidden] { display: none; }
.quiz-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; }
.quiz-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 10px 14px; border: 1px solid #d9c8a6; border-radius: 12px; background: var(--page); cursor: pointer; text-align: center; transition: background-color .15s ease, border-color .15s ease; }
.quiz-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.quiz-card span { font-size: clamp(16px, 1.1vw, 19px); font-weight: 500; line-height: 1.2; }
.quiz-card:hover { border-color: var(--acc); }
.quiz-card:has(input:checked) { border-color: var(--acc); background: var(--soft); box-shadow: inset 0 0 0 1px var(--acc); }
.quiz-card:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.quiz-kind input, .quiz-opt input, .quiz-len input { width: 100%; height: 100%; cursor: pointer; }
.quiz-lens { display: grid; gap: 8px; max-width: 560px; }
.quiz-len { position: relative; cursor: pointer; }
.quiz-len input { position: absolute; opacity: 0; inset: 0; }
.quiz-len span { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid #d9c8a6; border-radius: 12px; transition: background-color .15s ease, border-color .15s ease; }
.quiz-len b { font-size: clamp(17px, 1.2vw, 20px); font-weight: 500; white-space: nowrap; }
.quiz-len span:not(:has(i)) { grid-template-columns: 1fr; }
.quiz-len i { display: block; height: 10px; width: var(--w); border-radius: 3px; background: #ffd98f; border: 1.5px solid var(--ink); }
.quiz-len:hover span { border-color: var(--acc); }
.quiz-len input:checked + span { background: var(--soft); border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.quiz-len input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.quiz-via { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; color: var(--ink-2); }
.quiz-opt--s span { padding: 9px 16px; font-size: 17px; }
.quiz-contact textarea { font: 400 18px/1.4 "Commissioner", Arial, sans-serif; color: var(--ink); background: #fff; border: 1px solid #d9c8a6; border-radius: 12px; padding: 12px 14px; width: 100%; resize: vertical; min-height: 64px; }
.quiz-contact textarea:focus { outline: none; border-color: var(--ink); }
.quiz-contact textarea::placeholder { color: #8d7f6c; }
.quiz-contact .f-row input[type="text"], .quiz-contact .f-row input[type="tel"] { font-size: 18px; padding: 13px 14px; }
.quiz-nav { align-items: center; }
.quiz-hint { margin-left: auto; font-size: 16px; color: var(--ink-2); }
.quiz-hint[hidden] { display: none; }
.quiz-hint + [data-q-next] { margin-left: 0; }
.quiz-sum button { font: inherit; font-weight: 500; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(61, 50, 41, 0.3); text-underline-offset: 4px; }
.quiz-sum button:hover { text-decoration-color: var(--deep); }
.quiz--done .quiz-steps, .quiz--done .quiz-chips { display: none; }
@media (max-width: 1100px) {
  .quiz-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .quiz-steps { gap: 4px; }
  .quiz-steps button { justify-content: center; padding: 6px 0 8px; }
  .quiz-steps button span { display: none; }
  .quiz-steps button[aria-current] span { display: none; }
  .quiz-chips { display: block; margin-top: 10px; font-size: 15px; line-height: 1.35; color: var(--ink-2); }
  .quiz-chips[hidden] { display: none; }
  .quiz-cards, .quiz-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .quiz-card { padding: 12px 6px 10px; gap: 6px; }
  .quiz-card span { font-size: 15px; }
  .quiz-ico { max-width: 104px; }
  .quiz-len span { grid-template-columns: 7.5em minmax(0, 1fr); padding: 11px 12px; }
  .quiz-len b { font-size: 16px; }
  .quiz-hint { display: none; }
  .quiz-nav [data-q-next] { margin-left: auto; }
  .quiz-via > span { width: 100%; }
  .quiz-via .quiz-opt { flex: 1; }
  .quiz-via .quiz-opt span { text-align: center; padding: 10px 6px; }
  .quiz-opts { display: grid; grid-template-columns: 1fr; }
}

/* страница «Спасибо»: подтверждение и подписка на группу VK */
.thanks-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; margin-bottom: 20px; }
.thanks-ok svg { width: 34px; height: 34px; }
.thanks-static { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--soft); font-size: 17px; max-width: 46em; }
.thanks-static[hidden] { display: none; }
.vk-band { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: center; background: var(--soft); border-radius: var(--r); padding: clamp(28px, 3.4vw, 64px); }
.vk-who { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(16px, 1.6vw, 28px); }
.vk-who img { width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.vk-who b { display: block; font-size: 20px; font-weight: 500; line-height: 1.2; }
.vk-who span span { display: block; font-size: 16px; color: var(--ink-2); }
.vk-say h2 { font-size: clamp(28px, 2.8vw, 52px); line-height: 1.08; }
.vk-say > p:not(.vk-who) { margin-top: 16px; font-size: var(--txt); color: var(--ink-2); max-width: 34em; }
.vk-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(22px, 2.2vw, 36px); }
.btn.vk-btn { display: inline-flex; align-items: center; gap: 10px; background: #0077ff; border-color: #0077ff; color: #fff; }
.btn.vk-btn:hover { background: #0066dd; border-color: #0066dd; }
.vk-btn svg { width: 26px; height: 26px; flex: none; }
.vk-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vk-pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
@media (max-width: 1100px) {
  .vk-band { grid-template-columns: 1fr; }
  .vk-pics { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .vk-band { padding: 24px 18px; }
  .vk-pics { grid-template-columns: 1fr 1fr; }
  .btn.vk-btn { width: 100%; justify-content: center; white-space: normal; }
}
@media (min-width: 641px) and (max-width: 1360px) {
  .quiz-steps button { gap: 6px; padding: 8px 4px; font-size: 14px; }
  .quiz-steps button i { width: 22px; height: 22px; font-size: 13px; }
  .quiz-steps button span { min-width: 0; }
}

/* хаб: группа из 4 видов в один ряд, без одинокой карточки; 5 шагов в один ряд */
@media (min-width: 1101px) { .task-grid--n4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1321px) { .steps-grid--n5 { grid-template-columns: repeat(5, 1fr); } }
/* хаб: на планшете и телефоне виды кухонь компактными плитками в 2 колонки, а не лентой во всю ширину */
@media (max-width: 1100px) {
  .task-grid[class*="task-grid--n"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .task-grid[class*="task-grid--n"] .task-card { display: flex; flex-direction: column; align-items: stretch; text-align: left; }
  .task-grid[class*="task-grid--n"] .task-card .ph { grid-row: auto; }
  .task-grid[class*="task-grid--n"] .task-card img { aspect-ratio: 4 / 3; }
  .task-grid[class*="task-grid--n"] .task-card h3 { margin-top: 14px; align-self: auto; }
  .task-grid[class*="task-grid--n"] .task-card .go { align-self: auto; padding-top: 10px; }
}
@media (max-width: 640px) {
  .task-grid[class*="task-grid--n"] { gap: 22px 12px; }
  .task-grid[class*="task-grid--n"] .task-card h3 { margin-top: 10px; font-size: 17px; line-height: 1.25; }
  .task-grid[class*="task-grid--n"] .task-card p, .task-grid[class*="task-grid--n"] .task-card .go { display: none; }
}
