/* №11 «Чистая горница» — сайт для старшего поколения: крупно, контрастно, без анимаций.
   Лента из белых карточек на светло-сером фоне, насыщенный оранжевый акцент. */
:root {
  --bg: #F0F2F5;
  --card: #FFFFFF;
  --ink: #1A1A1A;          /* 17,4:1 на белом, 15,5:1 на фоне — AAA */
  --ink2: #2E2E2E;
  --acc: #EE8208;          /* только иконки и украшения, рядом всегда подпись */
  --btn: #B35300;          /* белый текст на нём — 5,1:1 */
  --btn-h: #8A3F00;        /* 7,5:1 */
  --link: #8A3F00;         /* ссылки: 7,5:1 на белом */
  --soft: #FFF1E0;         /* светлая подложка итога */
  --line: #C9CED6;
  --ok: #17602A; --ok-bg: #E7F4EA;
  --bad: #A1001E; --bad-bg: #FDECEE;
  --r: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .10), 0 2px 8px rgba(0, 0, 0, .06);
  --font: 'Noto Sans', 'Segoe UI', Arial, sans-serif;
}
html { font-size: 21px; -webkit-text-size-adjust: 100%; }
html[data-fs="1"] { font-size: 24px; }
html[data-fs="2"] { font-size: 27px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: 1.62rem; }        /* ≈ 34 px на обычном размере */
h2 { font-size: 1.43rem; }        /* ≈ 30 px */
h3 { font-size: 1.14rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
b, strong { font-weight: 700; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px #FFD27A; border-radius: 4px; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -200px; z-index: 50; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 10px; }
.skip:focus { top: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.wide { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.col { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ── Кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 12px 24px;
  border-radius: 14px; border: 3px solid var(--btn); background: var(--card); color: var(--btn-h); font: inherit; font-weight: 700;
  font-size: 1.05rem; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--soft); color: var(--btn-h); }
.btn--main { background: var(--btn); color: #fff; }
.btn--main:hover { background: var(--btn-h); border-color: var(--btn-h); color: #fff; }
.btn--alt { background: var(--card); }
.btn--sm { min-height: 56px; font-size: 1rem; padding: 10px 18px; }
.btn--block { display: flex; width: 100%; }
.btn--call { min-height: 72px; font-size: 1.1rem; flex-wrap: nowrap; }
.btn--call > span { display: inline-block; }
.btn .ic { flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1rem; }
.actions .btn { flex: 1 1 260px; }

/* ── Шапка ── */
.top { background: var(--card); box-shadow: var(--shadow); position: relative; z-index: 5; }
.top__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 56px; margin-right: auto; }
.brand img { width: 48px; height: 48px; flex: none; }
.brand__t { display: flex; flex-direction: column; line-height: 1.2; }
.brand__t b { font-size: 1.2rem; }
.brand__t span { font-size: .8rem; color: var(--ink2); }
.fs { display: flex; align-items: center; gap: 6px; }
.fs__l { font-size: .85rem; margin-right: 4px; }
.fs button { min-width: 56px; min-height: 56px; padding: 0 8px; border: 2px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--ink); font-family: inherit; font-weight: 700; cursor: pointer; line-height: 1; }
.fs button[data-fs="0"] { font-size: 18px; }
.fs button[data-fs="1"] { font-size: 23px; }
.fs button[data-fs="2"] { font-size: 28px; }
.fs button[aria-pressed="true"] { border-color: var(--btn); background: var(--btn); color: #fff; }
.top__call { min-height: 72px; }

.menu { border-top: 1px solid var(--line); }
.menu ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0 6px; }
.menu li { margin: 0; }
.menu a { display: flex; align-items: center; min-height: 56px; padding: 0 12px; font-weight: 700; color: var(--link); }
.menu a[aria-current="page"] { color: var(--ink); text-decoration: none; background: var(--soft); border-radius: 10px; }
.menu__short { display: none !important; }

/* ── Лента карточек ── */
main.col { padding-top: 16px; padding-bottom: 24px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px 20px; margin: 0 0 16px; }
.card > :last-child { margin-bottom: 0; }
.card h2 { display: flex; align-items: center; gap: 12px; }
.card h2 .ic { color: var(--acc); flex: none; }
.card--hero { border-top: 8px solid var(--acc); }
.card--help { border-left: 8px solid var(--acc); }
.card--hero .lead { font-size: 1.14rem; }
.card--call { border: 3px solid var(--acc); }

.crumbs { margin: 0 0 12px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 1rem; }
.crumbs li { margin: 0; display: flex; align-items: center; }
.crumbs li + li::before { content: '›'; margin: 0 10px; font-size: 1.3rem; color: var(--ink2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 56px; font-weight: 700; }
.crumbs [aria-current] { font-weight: 400; }

.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 1rem; }
.rating__stars { display: inline-flex; color: var(--acc); }

/* Три шага и списки с иконками */
.steps { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-top: 2px solid var(--bg); margin: 0; }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps .sico { width: 72px; height: 72px; border-radius: 50%; background: var(--soft); color: var(--btn-h); display: grid; place-items: center; }
.steps h3 { margin: 4px 0 .3em; }
.steps p { margin: 0; }
.num { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--btn); color: #fff; font-size: .9em; margin-right: 8px; }
.ilist { list-style: none; padding: 0; }
.ilist li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; margin-bottom: .8em; }
.ilist .ic { color: var(--btn-h); margin-top: 2px; }

/* Плитки разделов */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.5em), 1fr)); gap: 12px; }
.tiles li { margin: 0; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 128px; height: 100%; padding: 14px 10px;
  border: 3px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); text-align: center; font-weight: 700; line-height: 1.25; }
.tile .ic { color: var(--btn-h); }
.tile:hover { border-color: var(--btn); background: var(--soft); color: var(--ink); }
.tile[aria-current="page"] { border-color: var(--btn); background: var(--soft); text-decoration: none; }
.tile--hot { border-color: var(--btn); background: var(--btn); color: #fff; }
.tile--hot .ic { color: #fff; }
.tile--hot:hover { background: var(--btn-h); color: #fff; }

/* «Узнать цену» */
.calc__q { display: flex; align-items: center; margin-top: 1.2em; }
.picks { display: grid; gap: 12px; margin-bottom: 1rem; }
.picks--sizes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7em), 1fr)); }
.picks--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12em), 1fr)); }
.picks--cities { grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.5em), 1fr)); }
.pick { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 14px 10px;
  border: 3px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); font: inherit; line-height: 1.3; text-align: center; cursor: pointer; }
.pick b { font-size: 1.05rem; }
.pick__t span, .pick span > span { font-weight: 400; }
.pick__t > span { display: block; }
.pick__d { font-size: .95rem; }
.pick .ic { color: var(--btn-h); }
.pick:hover { border-color: var(--btn); }
.pick[aria-pressed="true"] { border-color: var(--btn); background: var(--soft); box-shadow: inset 0 0 0 2px var(--btn); }
.pick[aria-pressed="true"]::before { content: '✓ выбрано'; font-weight: 700; color: var(--btn-h); font-size: .9rem; }
.pick--wide { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; min-height: 72px; }
.pick--wide[aria-pressed="true"]::before { content: '✓'; font-size: 1.1rem; }
.pick--city { min-height: 64px; font-weight: 700; flex-direction: row; gap: 8px; }
.pick--city[aria-pressed="true"]::before { content: '✓'; }
.calc__res { margin: 1rem 0; padding: 20px; border-radius: var(--r); background: var(--soft); border: 3px solid var(--acc); min-height: 120px; }
.calc__res p { margin: 0 0 .5em; }
.calc__res p:last-child { margin: 0; }
.calc__sum { font-size: 1.62rem; font-weight: 700; line-height: 1.25; }
.calc__hint { font-weight: 700; }

/* Мебель */
.furn { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11em), 1fr)); gap: 12px; }
.furn__i { margin: 0; padding: 18px; border: 3px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; align-items: flex-start; }
.furn__i .ic { color: var(--btn-h); }
.furn__i h3 { margin: 6px 0 0; }
.furn__i .furn__p { font-size: 1.43rem; font-weight: 700; margin: 0 0 .3em; }
.furn__i .btn { margin-top: auto; }

/* Таблица цен */
.ptable { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 1rem; }
.ptable caption { text-align: left; font-weight: 700; font-size: 1.14rem; padding: 0 0 .4em; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 2px solid var(--line); }
.ptable td:last-child, .ptable th:last-child { text-align: right; font-weight: 700; }
.ptable td:first-child { width: 60%; }
.ptable thead th { font-size: .9rem; border-bottom: 3px solid var(--ink); }
.print-only { display: none; }

/* Отзывы */
.revs { list-style: none; padding: 0; margin: 0; }
.revs li { margin: 0 0 14px; padding: 18px; background: var(--bg); border-radius: var(--r); border-left: 6px solid var(--acc); }
.revs blockquote { margin: 0; }
.revs p { margin: 0 0 .4em; }
.revs footer { font-weight: 700; }

/* Вопросы — все ответы открыты */
.faq__i { padding: 16px 0; border-top: 2px solid var(--bg); }
.faq__i:first-child { border-top: 0; padding-top: 0; }
.faq__i h3 { margin-bottom: .4em; }
.faq__i p { margin: 0; }

/* Города */
.towns { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8em), 1fr)); gap: 10px; }
.towns li { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bg); font-weight: 700; font-size: 1.1rem; }
.sat { font-size: 1.14rem; padding: 18px 20px; border-radius: var(--r); background: var(--soft); border: 3px solid var(--acc); }

/* Контакты */
.bigphone { display: block; font-size: min(1.9rem, 9vw); font-weight: 700; line-height: 1.2; margin: .2em 0 .5em; }
.msgrs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 1rem; }

/* ── Форма ── */
.form { margin: 0; }
.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input { width: 100%; min-height: 60px; padding: 10px 16px; border: 3px solid #6B7078; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.field input::placeholder { color: #5A5F66; }
.field input:focus { border-color: var(--ink); }
/* Крупнее то, что добавляет ядро: фото и согласие */
.form .cg-extra { font-size: 1rem; line-height: 1.5; margin: 0 0 16px; }
.form .cg-photo label { min-height: 60px; padding: 12px 16px; border: 3px dashed #6B7078; opacity: 1; font-size: 1rem; gap: 8px; }
.form .cg-photo small { font-size: .9rem; opacity: 1; }
.form .cg-thumbs img { width: 72px; height: 72px; }
.form .cg-thumbs button { width: 40px; height: 40px; line-height: 40px; font-size: 22px; top: -12px; right: -12px; }
.form .cg-consent { grid-template-columns: 40px 1fr; gap: 12px; font-size: .95rem; align-items: start; padding: 12px; border-radius: 12px; background: var(--bg); }
.form .cg-consent input { width: 34px !important; height: 34px !important; margin: 2px 0 0; accent-color: var(--btn); cursor: pointer; }
.form .cg-consent label { opacity: 1; cursor: pointer; }
.form .cg-consent a { color: var(--link); }
.form .cg-err { font-size: 1rem; color: var(--bad); background: var(--bad-bg); border: 3px solid var(--bad); border-radius: 12px; padding: 12px 14px; margin-top: 8px; }
.form button[type="submit"] { margin-top: 4px; }
.msg { display: none; margin: 16px 0 0; padding: 16px 18px; border-radius: 12px; font-size: 1.05rem; }
.msg--ok { background: var(--ok-bg); color: var(--ok); border: 3px solid var(--ok); }
.msg--ok .ic { flex: none; }
.msg--bad { background: var(--bad-bg); color: var(--bad); border: 3px solid var(--bad); font-weight: 700; }
.msg--wait { background: var(--bg); font-weight: 700; }
.form[data-state="sending"] .msg[data-for="sending"],
.form[data-state="bad-phone"] .msg[data-for="bad-phone"],
.form[data-state="error"] .msg[data-for="error"] { display: block; }
.form[data-state="ok"] .msg[data-for="ok"] { display: flex; gap: 12px; align-items: flex-start; }

/* ── Подвал ── */
.foot { background: #262626; color: #fff; padding: 28px 0 32px; }
.foot a { color: #fff; }
.foot .btn--main { background: var(--btn); border-color: #fff; }
.foot__brand { font-size: 1.1rem; }
.foot__list { list-style: none; padding: 0; margin: 20px 0; }
.foot__list li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.foot__list .ic { color: #FFB25B; }

/* Липкая панель на телефоне */
.bar { display: none; }

@media (max-width: 759px) {
  body { padding-bottom: 96px; }
  .bar { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--card); box-shadow: 0 -2px 10px rgba(0, 0, 0, .15); }
  .bar .btn { min-height: 64px; padding: 8px 10px; font-size: 20px; gap: 8px; border-radius: 12px; }
  .bar .btn--alt { font-size: 18px; }
  .top__row { gap: 10px 12px; }
  .brand__t span { display: none; }
  .brand { margin-right: auto; gap: 10px; }
  .brand__t b { width: min-content; line-height: 1.15; }
  .fs { gap: 4px; }
  .fs button { padding: 0 4px; }
  .fs button[data-fs="2"] { font-size: 24px; }
  .top__row { column-gap: 8px; }
  .fs__l { display: none; }
  .top__call { width: 100%; }
  .menu__all { display: none !important; }
  .menu__short { display: flex !important; justify-content: space-between; flex-wrap: wrap; }
  .menu__short a { padding: 0 6px; }
  .card { padding: 20px 16px; }
}
@media (min-width: 760px) {
  html { font-size: 21px; }
  html[data-fs="1"] { font-size: 24px; }
  html[data-fs="2"] { font-size: 27px; }
  h1 { font-size: 1.9rem; }
  .card { padding: 32px 36px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ── Печать цен: одна страница А4, крупно, телефон и адрес, без меню и кнопок ── */
@media print {
  @page { size: A4; margin: 12mm 14mm; }
  html, html[data-fs] { font-size: 14pt; }
  body { background: #fff; color: #000; padding: 0; line-height: 1.35; }
  .top, .menu, .crumbs, .bar, .foot, .skip, .btn, .actions, .no-print, #zvonok, .card--call, #razdely, .calc { display: none !important; }
  main.col { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; margin: 0 0 8pt; border-radius: 0; }
  .card h2 { font-size: 15pt; margin: 0 0 4pt; }
  .card h2 .ic { display: none; }
  h1 { font-size: 24pt; margin: 0 0 8pt; }
  a, .cg-autolink { color: #000; text-decoration: none !important; }
  .print-only { display: block; }
  .print-head { border: 2pt solid #000; padding: 8pt 10pt; margin: 0 0 10pt; }
  .print-head b { font-size: 19pt; }
  .print-head .pphone { font-size: 28pt; font-weight: 700; display: block; }
  .ptable { font-size: 13pt; margin: 0 0 6pt; page-break-inside: avoid; }
  .ptable caption { font-size: 15pt; padding: 0 0 2pt; }
  .ptable th, .ptable td { padding: 2pt 4pt; border-bottom: .8pt solid #777; }
  .ptable thead th { font-size: 11pt; border-bottom: 1.5pt solid #000; }
  .p-ceny .card:not(.card--prices) { display: none !important; }
  .cols-print { columns: 2; column-gap: 12mm; }
  .cols-print .ptable { break-inside: avoid; }
  .card--prices p { margin: 0 0 4pt; }
}
.after-call { margin-top: 1rem; }
.form .cg-err a, .msg a { white-space: nowrap; }
