/* ===== KERA CLUB: блоки лендинга поверх дизайна DetailingApp ===== */
.home-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); max-width: 920px; }
/* minmax(0,1fr) и min-width:0 — колонка не растягивается шире экрана из-за длинного содержимого */
.home-page > section { display: grid; gap: var(--s2); min-width: 0; }
.home-page > section > * { min-width: 0; }
html, body { overflow-x: clip; }
h1, h2, h3, .studio-title, .section-title { overflow-wrap: break-word; hyphens: auto; }
.home-page .section-head { margin-bottom: 0; }
.section-sub { color: var(--muted); margin-top: -8px; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.input[aria-invalid="true"] { border-color: var(--danger); }

/* Первый экран */
.home-hero { gap: var(--s3) !important; }
.hero-mark { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(120px, 30vw, 240px); font-weight: 800; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(120, 170, 255, .35); background: radial-gradient(60% 50% at 50% 45%, rgba(var(--accent-rgb), .25), transparent 70%); z-index: 0; }
.hero-text { display: grid; gap: 4px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stats .stat { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.stats .stat b { font-size: 15px; line-height: 1.3; letter-spacing: 0; }
.stat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }

/* Карточки преимуществ с картинкой */
.feature.has-img { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.feature.has-img > div:last-child { padding: 18px 20px 20px; }
.feature-img { aspect-ratio: 16 / 9; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }

/* Наставник */
.mentor { display: flex; gap: var(--s3); align-items: center; }
.mentor-ph { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 44px; font-weight: 800; background: linear-gradient(140deg, rgba(var(--accent-rgb), .45), rgba(var(--accent-rgb), .1)); border: 1px solid rgba(var(--accent-rgb), .4); }
.mentor-role { color: var(--accent-hi); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
@media (max-width: 560px) { .mentor { flex-direction: column; text-align: center; } }

/* Программа: аккордеон */
.acc { display: grid; gap: 10px; }
.acc-item { border-radius: var(--r-md); overflow: hidden; }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: none; border: 0; color: inherit; text-align: left; min-height: 60px; }
.acc-btn .num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); font-weight: 800; font-size: 14px; flex: none; }
.acc-btn b { flex: 1; font-size: 16px; }
.acc-btn svg { width: 18px; height: 18px; color: var(--muted); transition: transform .35s var(--ease-out); flex: none; }
.acc-item.open .acc-btn svg { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { padding: 0 18px 18px 64px; color: var(--muted); font-size: 15px; }

/* Тарифы */
.plan-list { list-style: none; display: grid; gap: 8px; flex: 1; padding: 0; margin: 0; }
.plan-list li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.plan-list svg { width: 18px; height: 18px; color: var(--accent-hi); flex: none; margin-top: 2px; }
.service-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1101px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service { min-width: 0; }
.service-foot { flex-wrap: wrap; row-gap: 10px; }
.service-price { white-space: normal; }
.service.is-hl { border-color: rgba(var(--accent-rgb), .45); background: radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb), .18), transparent 60%), var(--lg-fill); }
.service-price { font-size: 19px; }

/* Тест */
.quiz { display: grid; gap: 12px; }
.quiz-q { font-size: 19px; margin: 6px 0 14px; }
.quiz .link-btn { margin-top: 6px; }

/* Галерея: просмотр фото */
.gallery figure { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 14, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s var(--ease); cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 84dvh; border-radius: var(--r-lg); transform: scale(.94); transition: transform .4s var(--ease-out); }
.zoom figcaption { margin-top: 12px; text-align: center; font-weight: 600; }
.zoom.on { opacity: 1; } .zoom.on img { transform: none; }

/* Фон сайта из редактора */
body.has-site-bg::after { content: ''; position: fixed; inset: 0; z-index: -2; background: linear-gradient(rgba(5, 11, 22, .82), rgba(5, 11, 22, .92)), var(--site-bg) center / cover no-repeat; }

.slot { display: grid; place-items: center; align-content: center; line-height: 1.1; }
.slot-left { font-size: 10px; font-weight: 700; color: var(--warn); }
.slot[aria-pressed="true"] .slot-left { color: #fff; }
.tab-book { border: 0; background: none; color: var(--accent-hi); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.tab-book svg { color: var(--accent-hi); }
@media (max-width: 420px) { .tabbar:has(.tab-book:not([hidden])) .tab { font-size: 10px; letter-spacing: -.01em; white-space: nowrap; } }
/* Голос в помощнике */
.as-head .tts { margin-left: auto; }
.as-head .tts + [data-as-close] { margin-left: 0; }
.as-head .tts[aria-pressed="true"] { color: var(--accent-hi); border-color: rgba(var(--accent-rgb), .45); background: var(--accent-soft); }
.as-form .mic { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--glass-2); color: var(--text); position: relative; transition: background-color .2s, transform .25s var(--ease); }
.as-form .mic svg { width: 20px; height: 20px; }
.as-form .mic:active { transform: scale(.92); }
.as-form .mic.listening { background: var(--danger); border-color: var(--danger); color: #fff; }
.as-form .mic.listening::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--danger); animation: mic-pulse 1.2s ease-out infinite; }
@keyframes mic-pulse { from { opacity: .8; transform: scale(.9); } to { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .as-form .mic.listening::after { animation: none; } }
#as-title .badge { vertical-align: 3px; margin-left: 6px; font-size: 11px; height: 22px; }

/* Контакты в рейле */
[data-rail-contact] { display: grid; gap: 10px; font-size: 13px; line-height: 1.4; }
[data-rail-contact] b { color: var(--text); }
[data-rail-contact] a { color: var(--accent-hi); text-decoration: none; font-weight: 700; }
.brand-mark b { font-size: 18px; color: #fff; }
