/* Страничный CSS: сетка товаров, карточка товара, фото в разделах. Цвета только из токенов system.css. */
.nav__phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 1180px) { .nav__phone { display: none; } }

/* товары: одна высота плитки, все фото в одном кадре 6:5 и с одной обработкой */
.prod-grid { row-gap: var(--s-7); margin-top: var(--s-6); }
.prod { --tile-ratio: 6 / 5; appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; text-align: left; cursor: pointer;
  display: grid; gap: var(--s-2); align-content: start; color: var(--ink); transition: transform 240ms var(--ease, ease); }
.prod:hover { transform: translateY(-2px); }
.prod:hover .tile__media > img { transform: scale(1.03); }
.prod:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; border-radius: var(--r-lg); }
.prod .tile__media { margin-bottom: var(--s-2); background: #0b1220; }
.prod .tile__media > img { filter: saturate(1.08) contrast(1.04); }
.prod .tile__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px rgba(5, 10, 25, .35); }
.prod__badge { position: absolute; z-index: 1; top: 12px; left: 12px; height: 26px; padding: 0 10px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--action); color: var(--action-ink, #fff); font-size: 13px; font-weight: 500; }
.prod__name { font-weight: 500; font-size: var(--t-body); line-height: 1.35; }
.prod .tile__facts { margin-top: 0; }
.prod__price { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.more-row { display: flex; justify-content: center; margin-top: var(--s-7); }
.more-row .btn[hidden] { display: none; }

.cat-tabs { margin-top: var(--s-5); }
.cat-tabs .tab { min-height: 44px; }
.cat-tabs .tab[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab__n { opacity: .6; font-variant-numeric: tabular-nums; margin-left: 4px; }

.side-photo, .faq-photo { border-radius: var(--r-lg); overflow: clip; aspect-ratio: 4 / 5; background: #0b1220; }
.faq-photo { aspect-ratio: 6 / 5; margin-top: var(--s-6); }
.side-photo img, .faq-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease, ease); }
.side-photo:hover img, .faq-photo:hover img { transform: scale(1.02); }
.steps .rows__value { color: var(--accent); font-weight: 600; }

.terms .rows__value { white-space: normal; text-align: right; }
.terms h3 { font-weight: 500; }

.lead-form .field--check { grid-column: 1 / -1; }
.field--check label { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: 400; line-height: 1.45; }
.field--check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--action); }

/* карточка товара */
.pd { width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--ink); overflow: auto; }
.pd::backdrop { background: rgba(0, 0, 0, .6); }
.pd__inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s-6); padding: var(--s-6); }
.pd__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.pd__close:hover { background: var(--line, #e5e5e5); }
.pd__main { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--r-md, 12px); background: #0b1220; }
.pd__thumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.pd__thumb { width: 72px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: clip; cursor: pointer; background: none; }
.pd__thumb[aria-pressed="true"] { border-color: var(--action); }
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd__title { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; padding-right: 44px; }
.pd__price { font-size: 24px; font-weight: 600; color: var(--accent); }
.pd .rows__value { white-space: normal; text-align: right; }
@media (max-width: 820px) {
  .pd__inner { grid-template-columns: 1fr; padding: var(--s-5) var(--s-4); gap: var(--s-5); }
}
@media (max-width: 1023px) { .prod.span-3 { grid-column: span 6; } }
@media (max-width: 639px) { .prod.span-3 { grid-column: 1 / -1; } }

/* разделы каталога растут вместе с числом карточек и никогда не ложатся на следующий раздел */
main > .section.section--grow { height: auto; min-height: 100vh; min-height: 100svh; }
main > .section.section--grow > .wrap { height: auto; }
.more-row .btn { white-space: normal; text-align: center; max-width: 100%; }
.btn.btn--secondary { box-shadow: inset 0 0 0 1px var(--ink); }
.tab__n { opacity: 1; color: var(--muted); }
.cat-tabs .tab[aria-pressed="true"] .tab__n { color: inherit; }
.terms-photo, .order-photo { border-radius: var(--r-lg); overflow: clip; background: #0b1220; }
.terms-photo { aspect-ratio: 16 / 4; margin-top: var(--s-7); }
.order-photo { aspect-ratio: 6 / 4; }
.terms-photo img, .order-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease, ease); }
.terms-photo:hover img, .order-photo:hover img { transform: scale(1.02); }
.terms-cta { margin-top: var(--s-6); }
@media (max-width: 639px) { .terms-photo { aspect-ratio: 16 / 9; } }
footer.closing .btn--xl { white-space: normal; text-align: center; }
.lead-form select { width: 100%; min-height: 48px; font: inherit; padding: 0 12px; border: 1px solid var(--line-strong, #bbb); border-radius: var(--r-sm, 8px); background: var(--bg); color: var(--ink); }
#order .rows__value { white-space: normal; text-align: right; }
.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 820px) { .pd__main { max-height: 38vh; } .pd__thumb { width: 56px; height: 47px; } }

/* Типографика под Manrope: без сжатия букв, больше воздуха между строками */
body { line-height: 1.6; }
p, li, dd, .t-lead, .hero__lead, .rows > li > p, .faq p, .tile__facts, .prod__name { letter-spacing: 0; }
p, .rows > li > p, .faq p { line-height: 1.6; }
.t-lead, .hero__lead { line-height: 1.55; }
h1, h2 { line-height: 1.12; }
.hero h1 { line-height: 1.08; }
h2 .muted { display: inline; }
h3, .t-card, .faq .faq__item > h3 { line-height: 1.35; letter-spacing: 0; }
.footer__lede, .closing__links .footer__lede { font-family: var(--font-text); font-size: var(--t-lead); line-height: 1.55; letter-spacing: 0; max-width: 34ch; }
.closing__cta h2 { line-height: 1.15; }
.prod__name { line-height: 1.4; }
.tile__facts { line-height: 1.45; }
.rows > li { row-gap: var(--s-2); }
.mo-wh__text { line-height: 1.3; letter-spacing: -0.005em; }
.nav__logo { letter-spacing: 0; }
.pd__title { line-height: 1.15; letter-spacing: 0; }
.pd p { line-height: 1.6; }
.statement .t-label { margin-bottom: var(--s-5); display: block; }

/* Все разделы под первым экраном растут вместе с текстом и не заходят под соседний */
main > .section:not(.hero) { height: auto; min-height: 100vh; min-height: 100svh; }
main > .section:not(.hero) > .wrap { height: auto; }
.faq-photo + .faq-photo { margin-top: var(--s-5); }
footer.closing { height: auto; min-height: 100vh; min-height: 100svh; }
footer.closing > .wrap { height: auto; }
@media (max-width: 1023px) { .faq-photo + .faq-photo { display: none; } }
