/* Сайт не должен двигаться вбок на телефоне. В Safari overflow-x только у html не держит — ставим и на body;
   clip (в отличие от hidden) не ломает position: sticky и не создаёт свою прокрутку. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { position: relative; touch-action: pan-y pinch-zoom; }

/* форма заявки */
.modal-form { display: flex; flex-direction: column; gap: 10px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin: 2px 0 0; font-size: 0.75rem; line-height: 1.4; color: var(--muted-2); text-align: center; }
.consent a { text-decoration: underline; }

/* заголовок со словом-барабаном */
.hero h1.hero-title-sm { line-height: 1.25; }

/* шапка без названия и бургера: на телефоне в ней ничего нет — скрываем, чтобы не висела пустая полоса */
/* верхнего меню нет ни на телефоне, ни на компьютере */
.site-header { display: none; }

/* заголовок ближе к большому шару */
.hero { row-gap: 0; padding-top: 2.5rem; }
.dbm-hero-logo { margin-bottom: -0.75rem; }

/* ---------- компьютерная версия: ровный первый экран и полные сетки ---------- */
@media (min-width: 900px) {
  /* первый экран: шар сверху по центру, ниже — текст слева и карта справа, всё по одной линии */
  .hero { column-gap: 4rem; align-items: center; padding-bottom: 4rem; }
  .dbm-hero-logo { margin-bottom: 1.5rem; }
  .hero h1.hero-title-sm { font-size: 2.9rem; letter-spacing: -0.025em; text-align: left; }
  .hero-copy-center .dbm-roll { justify-content: flex-start; }
  .hero-copy-center { gap: 1.1rem; }
  .hero-copy .hero-desc { font-size: 1.05rem; max-width: 30rem; }
  .hero-art { align-self: center; }
  .hero-art-img { transform: rotate(-3deg); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
  .hero-art-img:hover { transform: rotate(0deg) scale(1.02); }
}
@media (min-width: 700px) {
  /* «Что входит в Клуб?»: 5 карточек — три сверху, две шире снизу, без дыры */
  #about .grid-3 { grid-template-columns: repeat(6, 1fr); }
  #about .grid-3 > * { grid-column: span 2; }
  #about .grid-3 > *:nth-child(4), #about .grid-3 > *:nth-child(5) { grid-column: span 3; }
  /* «База знаний»: если последний модуль остался один в строке — растягиваем его на всю ширину */
  #materials .grid-3 > .module-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  #materials .grid-3 > .module-card:last-child:nth-child(3n+1) .module-toggle { display: grid; grid-template-columns: auto 1fr; column-gap: 2rem; align-items: start; text-align: left; }
  #materials .grid-3 > .module-card:last-child:nth-child(3n+1) .skill-number { grid-row: span 3; }
}

/* тариф: список «что входит» слева, карточка с ценой справа, в одном блоке */
.plan-overview .dbm-plan { margin: 0 auto; }
@media (min-width: 700px) {
  .plan-overview { grid-template-columns: 1fr; }
  .plan-overview .bonus-block { grid-column: auto; }
}
@media (min-width: 960px) {
  .plan-overview { grid-template-columns: 1fr 380px; column-gap: 3rem; align-items: center; }
  .plan-overview .plan-overview-content { grid-column: 1; grid-row: 1; }
  .plan-overview .bonus-block { grid-column: 1; grid-row: 2; }
  .plan-overview .dbm-plan { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 100%; }
}
/* голосовое — по левому краю, как текст основателя */
@media (min-width: 700px) { .founder-content .dbm-voice { align-items: flex-start; } .founder-content .dbm-voice .bars-box { margin-left: -2px; } }

/* «База знаний»: 8 модулей — 2 колонки на планшете, 4 на компьютере, без пустых мест */
@media (min-width: 700px) { #materials .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { #materials .modules-grid { grid-template-columns: repeat(4, 1fr); } }
