/* Новые страницы по ТЗ от 16.11.2026: меню с группами услуг, пометки черновика, макеты кейсов, фильтр кейсов. Только для страниц из NOVOE. */
.draft-bar { background: #fff6c2; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 10px 14px; margin: 0 0 18px; font-size: 14px; }
.draft-bar a { color: var(--red); }
mark.todo { background: #ffe14d; color: var(--ink); padding: 0 4px; font-size: .92em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.demo-ph { display: grid; gap: 10px; padding: 24px; border: 2px dashed var(--ink); margin-bottom: 18px; }

/* меню: «Услуги» с тремя группами */
.dd-groups { flex-direction: row; gap: 8px; min-width: 640px; padding: 14px 6px; }
.dd-g { display: flex; flex-direction: column; min-width: 200px; }
.dd-h { font: 800 11px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--red); padding: 4px 18px 8px; }
.nav-tg { display: none; }
@media (max-width: 900px) {  /* на телефоне «Услуги» ведут на страницу с тремя группами, в строке меню — без длинного списка */
  .nav .dd-m.dd-groups { display: none; }
  .nav-tg { display: inline-flex; color: var(--red); font-weight: 700; }
}

/* услуги: «входит / не входит» в две колонки */
.duty.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .duty.two-col { grid-template-columns: minmax(0, 1fr); } }

/* кейсы: паспорт, макет «ноутбук + телефон», решение по шагам, галерея, цифры */
.passport { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 2px solid var(--ink); }
.passport > div { padding: 16px 18px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin: 0 -2px -2px 0; }
.passport dt { font: 800 11px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.passport dd { margin: 0; font-weight: 600; }
.mockup { position: relative; display: flex; align-items: flex-end; gap: 0; padding: 10px 0 0; }
.mk-laptop { width: 82%; }
.mk-screen { border: 10px solid #1c1c1c; border-bottom-width: 14px; border-radius: 14px 14px 0 0; overflow: hidden; background: #1c1c1c; }
.mk-screen img, .mk-phone img { display: block; width: 100%; height: auto; }
.mk-base { height: 14px; margin: 0 -5%; background: linear-gradient(#cfcfcf, #9b9b9b); border-radius: 0 0 12px 12px; }
.mk-phone { width: 24%; margin-left: -6%; border: 8px solid #1c1c1c; border-radius: 26px; overflow: hidden; background: #1c1c1c; box-shadow: 6px 6px 0 var(--red); aspect-ratio: 390 / 844; }
.mk-phone img { height: 100%; object-fit: cover; object-position: top; }
.mk-empty { display: grid; place-items: center; background: var(--fill); padding: 10px; }
.sol { display: grid; gap: 22px; }
.sol-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; }
.sol-step .n { width: 48px; height: 48px; display: grid; place-items: center; background: var(--red); color: #fff; font: 900 20px/1 var(--display); border: 2px solid var(--ink); }
.sol-step h3 { margin: 4px 0 8px; }
.sol-step img { display: block; width: 100%; max-width: 760px; height: auto; margin-top: 14px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.result p { font-size: 18px; }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gal img { width: 100%; height: auto; border: 2px solid var(--ink); }
@media (max-width: 760px) { .gal { grid-template-columns: minmax(0, 1fr); } .mk-phone { width: 34%; } .mk-laptop { width: 76%; } }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.figs a { display: grid; gap: 6px; padding: 22px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--red); text-decoration: none; color: var(--text); background: var(--paper); }
.figs b { font: 900 48px/1 var(--display); color: var(--red); }
@media (max-width: 760px) { .figs { grid-template-columns: minmax(0, 1fr); } }
.card .fig { font: 800 18px/1.25 var(--display); color: var(--red); margin: 0; }

/* список кейсов: фильтр по нишам */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button { font: 700 14px/1 var(--body); padding: 10px 14px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; }
.filters button.on { background: var(--ink); color: #fff; }
.card.hide { display: none; }

/* список черновиков */
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; border: 2px solid var(--ink); font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--ink); color: #fff; font: 700 13px/1.2 var(--body); }

/* фото и макеты к страницам: site/img/foto/<страница>/ */
.hero-foto { margin: 22px 0 0; }
.hero-foto img { display: block; width: 100%; max-height: 560px; object-fit: cover; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--red); }
.hero-foto figcaption, .foto-gal figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.foto-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.foto-gal figure { margin: 0; }
.foto-gal img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--ink); }
.foto-slot { padding: 22px; border: 2px dashed var(--ink); background: var(--fill); }
.team-foto { display: block; width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); margin: 6px 0 12px; }
