/* МетанМастерСервис — компонентный слой поверх дизайн-токенов (layouts/tokens).
   Соответствует визуалу .dc.html-референсов. Подключается в layouts/app. */

/* --- Секции --- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--contrast { background: var(--bg-contrast); color: var(--on-contrast); }
.section--contrast .h2, .section--contrast h2 { color: #fff; }

/* --- Типографика --- */
.h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); margin: 0 0 18px; }
.h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; color: var(--ink); margin: 0 0 14px; }
.h3 { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); margin: 0 0 12px; }
.price { font-weight: 800; color: var(--brand); font-family: var(--font-head); }

/* --- Кнопки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(14,158,126,.28); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--light { background: #fff; color: var(--ink); }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* --- Карточки --- */
.card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 24px; }
.card--pad-lg { padding: 32px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-50); color: var(--brand-700); font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); }
.pill { border-radius: var(--r-pill); }

/* --- Сетки --- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --- Числа доверия --- */
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 4vw, 46px); color: var(--brand); line-height: 1; }
.stat__label { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* --- Логотипы клиентов/партнёров --- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.logo-strip img { height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-strip img:hover { filter: none; opacity: 1; }

/* --- Плейсхолдеры фото --- */
.ph { background: repeating-linear-gradient(45deg, var(--stripe-a), var(--stripe-a) 14px, var(--stripe-b) 14px, var(--stripe-b) 28px); border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; min-height: 200px; }

/* --- FAQ-аккордеон --- */
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.faq__q::after { content: '+'; color: var(--brand); font-size: 22px; line-height: 1; }
.faq__item[data-open] .faq__q::after { content: '–'; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); line-height: 1.6; }
.faq__item[data-open] .faq__a { max-height: 600px; padding-bottom: 18px; }

/* --- FAQ: нативный <details> (как в дизайне), знак +/× --- */
details[data-faq-item] > summary { list-style: none; cursor: pointer; }
details[data-faq-item] > summary::-webkit-details-marker { display: none; }
details[data-faq-item] > summary::marker { content: ''; }
.mms-sign { display: inline-block; transition: transform .2s ease; }
details[data-faq-item][open] > summary .mms-sign { transform: rotate(45deg); }

/* --- Слайдер отзывов --- */
.reviews__viewport { overflow: hidden; }
.reviews__track { display: flex; gap: 16px; transition: transform .4s ease; }
.reviews__track > * { flex: 0 0 calc((100% - 32px) / 3); }
@media (max-width: 760px) { .reviews__track > * { flex: 0 0 100%; } }

/* --- Сообщение формы --- */
[data-form-msg][data-state="ok"] { background: var(--brand-50); color: var(--brand-700); }
[data-form-msg][data-state="err"] { background: rgba(220,38,38,.1); color: var(--danger); }

/* --- Хлебные крошки --- */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
