/* Лаборатория страницы «Экология» (17.10.2026): общее для вариантов B и D.
   Шрифты, токены, шапка, .btn, .wrap, окно .modal и футер — из /shop/base.css.
   Структура — content/ecology-page-copy.md (согласована 17.10.2026); тексты — черновик. */
:root { --paper: #fbfbfc; }
[hidden] { display: none !important; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.ec { padding-top: 144px; }
@media (max-width: 767px) { .ec { padding-top: 120px; } }
.ec h1, .ec h2, .disp { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); }
.ec h1 { font-size: min(120px, calc((100vw - 96px) / 6.4)); line-height: .95; letter-spacing: -.01em; }
@media (max-width: 767px) { .ec h1 { font-size: calc((100vw - 32px) / 5.6); } }
.ec h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.01em; }
.k { font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lead { max-width: 40ch; font-size: 20px; line-height: 1.5; }
.txt { max-width: 60ch; font-size: 18px; line-height: 1.6; }
@media (max-width: 767px) { .lead { font-size: 18px; } }

.night { background: var(--night); color: var(--night-ink); }
.night .k { color: var(--night-muted); }


.note { max-width: 64ch; font-size: 14px; line-height: 20px; color: var(--muted); }

/* место под фото */
.ph { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: var(--r, 4 / 3); padding: 16px; border: 1px dashed rgb(18 20 24 / .2); border-radius: 12px; background: var(--surface); color: var(--muted); text-align: center; overflow: hidden; }
.ph svg { width: 28px; height: 28px; margin-bottom: 4px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.ph b { font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; }
.ph span { max-width: 30ch; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--ink); }
.ph small { font-size: 12px; line-height: 16px; }
.night .ph { border-color: rgb(255 255 255 / .16); background: rgb(255 255 255 / .05); color: var(--night-muted); }
.night .ph span { color: var(--night-ink); }

/* вопросы и ответы */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 16px 0; font-size: 20px; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; transition: color 150ms var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.faq summary i { position: relative; flex: none; width: 24px; height: 24px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px; background: currentColor; transition: transform 200ms var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq p { max-width: 64ch; padding: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--muted); }
@media (max-width: 767px) { .faq summary { font-size: 18px; min-height: 64px; } }

/* окно «Договориться о сдаче» */
.rt { width: min(600px, calc(100% - 32px)); }
.rt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.rt-step { display: flex; align-items: center; gap: 4px; }
.rt-step .icon-btn { width: 44px; height: 44px; font-size: 22px; font-weight: 500; border-radius: 50%; background: var(--surface); }
.rt-step .icon-btn:hover { background: var(--line); }
.rt-step .m-input { width: 64px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.rt-ways { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; border: 0; }
.rt-ways legend { margin-bottom: 8px; padding: 0; }
.rt-way { position: relative; display: grid; cursor: pointer; }
.rt-way input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rt-way span { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.rt-way b { font-size: 16px; font-weight: 600; line-height: 22px; }
.rt-way small { font-size: 14px; line-height: 20px; color: var(--muted); }
.rt-way:hover span { border-color: var(--muted); }
.rt-way input:checked + span { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.rt-way input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.rt-fields { grid-template-columns: 1fr 1fr; column-gap: 24px; }
@media (max-width: 599px) { .rt-fields { grid-template-columns: 1fr; } }

/* Телефон: шкала шрифтов по эталонным сайтам (Stripe, Linear, Vercel: H1 24–38, H2 22–34, текст 15–16) — 18.10.2026 */
@media (max-width: 767px) {
  .ec h1 { font-size: calc((100vw - 32px) / 8); }
  .ec h2 { font-size: 26px; }
}
