/* static/css/home-mobile.css — компактная главная только для мобильных экранов. */
/* ✏️ ИЗМЕНЕНО: desktop-разметка и геометрия сохраняются через display:contents. */
.home-mobile-only { display: none !important; }
.home-hero__title > .home-desktop-copy { color: inherit; }
.home-hero__title > .home-desktop-copy > span { color: var(--dark-accent); }
.home-responsive-details { display: contents; }
.home-responsive-details > summary { display: none; }
@media (max-width: 760px) {
  /* 💡 Этот файл загружается только на главной. Компактная шапка освобождает первый экран. */
  body:has(.home-page) .topbar, body:has(.home-page) .header__actions { display: none; }
  body:has(.home-page) .header__inner { padding-top: 12px; padding-bottom: 12px; }
  .home-mobile-only { display: block !important; }
  .home-page .home-desktop-copy { display: none !important; }
  .home-page .h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.6px; }
  .home-page .section { padding: 32px 0; }
  .home-page section[id] { scroll-margin-top: 64px; }
  .home-page #video, .home-page #partners { display: none; }
  /* Прямые старые якоря остаются рабочими, если пользователь явно открывает такой блок. */
  .home-page #video:target, .home-page #services:target, .home-page #prices:target, .home-page #partners:target { display: block; }
  .home-page .home-hero { padding: 28px 0; }
  .home-page .home-hero__layout { min-height: 0; gap: 0; }
  .home-page .home-hero__copy { gap: 14px; }
  .home-page .home-hero__title { font-size: clamp(28px, 7.5vw, 34px); letter-spacing: -.7px; line-height: 1.12; }
  .home-page .home-hero__title > .home-mobile-only { color: #fff; }
  .home-mobile-region { font-size: 13px; color: #c7dfce; }
  .home-page .home-mobile-lead { font-size: 16px; line-height: 1.5; color: #e0e8e3; }
  .home-page .home-hero__copy > .badge, .home-page .home-hero__visual,
  .home-page .home-hero__note, .home-page .home-hero__prices { display: none; }
  .home-page .home-hero__actions { margin-top: 4px; width: 100%; }
  .home-page .home-hero__actions > .btn { width: 100%; }
  .home-page .home-mobile-phone { color: #fff; font-size: 21px; font-weight: 700; text-decoration: none; min-height: 44px; align-content: center; }
  .home-page .home-mobile-audit { font-size: 13px; line-height: 1.5; color: #c7dfce; margin-top: -6px; }
  .home-page #situacii > .container { padding-top: 28px; padding-bottom: 24px !important; gap: 16px !important; }
  .home-page #situacii .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .home-page #situacii .card { display: grid; grid-template-columns: 76px minmax(0, 1fr); padding: 12px; gap: 8px 14px; align-items: center; }
  .home-page #situacii .home-problem-image { width: 76px; height: 76px; margin: 0; grid-row: 1 / 3; aspect-ratio: 1; border-radius: 10px; }
  .home-page #situacii .card__title { font-size: 16px; line-height: 1.3; }
  .home-page #situacii .card__text { display: none; }
  .home-page #situacii .card__more { grid-column: 2; padding: 0; font-size: 12px; }
  .home-page .home-mobile-links { display: grid !important; gap: 0; }
  .home-mobile-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--border-2); color: var(--accent-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
  .home-page #suot > .container { gap: 22px !important; }
  .home-page #suot .eyebrow { display: none; }
  .home-page .home-workflow-layout { flex-direction: column; gap: 16px !important; }
  .home-page .home-workflow-grid { order: 1; flex: none !important; width: 100%; grid-template-columns: minmax(0, 1fr) !important; gap: 10px; }
  .home-page .workflow-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 14px; }
  .home-page .workflow-card .card__top { display: grid; justify-items: center; gap: 2px; grid-row: 1 / 3; }
  .home-page .workflow-card__icon { width: 44px; height: 44px; margin: 0; }
  .home-page .workflow-card .card__num { padding: 0; border: 0; border-radius: 0; background: none; font-size: 10px; }
  .home-page .workflow-card > b { font-size: 15px !important; line-height: 1.3; grid-column: 2; }
  .home-page .workflow-card > .card__text { grid-column: 2; font-size: 13px; line-height: 1.45; }
  .home-responsive-details { display: block; }
  .home-responsive-details > summary { display: list-item; cursor: pointer; min-height: 48px; padding: 14px 0; font-size: 15px; font-weight: 600; }
  .home-responsive-details > summary { list-style: none; }
  .home-responsive-details > summary::-webkit-details-marker { display: none; }
  .home-responsive-details > summary::after { content: '+' / ''; float: right; margin-left: 10px; }
  .home-responsive-details[open] > summary::after { content: '−' / ''; }
  .home-documents-details { order: 2; width: 100%; border-top: 1px solid #ffffff30; }
  .home-documents-details > div { padding-bottom: 14px; }
  .home-documents-details b { display: none; }
  .home-documents-details .checklist { font-size: 14px; }
  .home-page #service > .container { gap: 20px !important; }
  .home-page #service > .container > .row { gap: 0 !important; }
  .home-page #service .eyebrow { display: none; }
  .home-page .home-service-actions { display: none; }
  .home-page .home-service-intro { font-size: 15px; line-height: 1.55; color: var(--text-2); }
  .home-page .online-service-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .home-page .online-service-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); padding: 12px; gap: 12px; border-radius: 14px; align-items: start; }
  .home-page .online-service-card > img { width: 72px; height: 72px; aspect-ratio: 1; border-radius: 9px; }
  .home-page .online-service-card__body { padding: 0; }
  .home-page .online-service-card__category { display: none; }
  .home-page .online-service-card h3 { font-size: 16px; line-height: 1.3; margin-bottom: 6px; }
  .home-page .online-service-card p { font-size: 13px; line-height: 1.45; }
  .home-page .home-online-toggle[hidden] { display: none !important; }
  .home-page .home-online-toggle { grid-column: 1 / -1; padding: 12px 16px; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--accent-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
  .home-page.home-mobile-ready .online-service-card:nth-of-type(n+4) { display: none; }
  .home-page.home-mobile-ready .home-online-expanded .online-service-card { display: grid; }
  .home-page #faq > .container { gap: 16px !important; }
  .home-page #faq > .container > .stack, .home-page #faq .faq { flex: auto !important; width: 100%; }
  .home-page #faq .eyebrow { display: none; }
  .home-page #faq .faq > details:nth-child(n+4) { display: none; }
  .home-page #faq .faq summary { font-size: 15px; }
  .home-page #faq .faq__answer { font-size: 14px; }
  .home-page #useful { padding: 8px 0 20px; }
  .home-page .home-useful-details > summary { padding: 14px var(--gutter); }
  .home-page #useful .container.row { gap: 20px !important; }
  .home-page #useful .h2--md { font-size: 20px; }
  .home-page #useful .toplist { font-size: 14px; }
  .home-page #useful .chip { font-size: 13px; padding: 8px 12px; }
  .home-page .home-contact { padding: 32px 0; }
  .home-page .home-contact__background { display: none; }
  .home-page .home-contact::before { background: #142b23; }
  .home-page .home-contact__layout { min-height: 0; gap: 18px; }
  .home-page .home-contact__copy { gap: 0; }
  .home-page .home-contact__copy > .eyebrow, .home-page .home-contact__copy > p,
  .home-page .home-contact__phone, .home-page .home-contact__messengers,
  .home-page .home-contact__panel > h3 { display: none; }
  .home-page .home-contact__copy h2 { font-size: 27px; }
  .home-page .home-contact__panel { padding: 22px; }
  .home-page .home-contact__panel > p { margin-bottom: 18px; font-size: 14px; }
  .home-page .home-contact label:has(select[name="headcount"]) { display: none; }
  .home-page .home-contact .check { font-size: 13px; }
  .home-footer-partners { border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
  .home-footer-partners > summary { padding: 14px 0; min-height: 48px; cursor: pointer; color: #fff; font-weight: 600; }
  .home-footer-partners > div { display: grid; gap: 4px; padding-bottom: 12px; }
  .home-footer-partners a { display: flex; align-items: center; min-height: 44px; }
}

/* ✏️ ИЗМЕНЕНО: услуги и цены доступны в компактных мобильных аккордеонах. */
@media (max-width: 760px) {
 .home-extra-details { background: var(--surface); border-top: 1px solid var(--border); }
 .home-extra-details > summary { margin: 0 24px; }
 .home-page .home-extra-details section { padding-top: 20px; padding-bottom: 24px; }
 .home-page .home-extra-details .section__head { display: none; }
 .home-page .home-extra-details .grid { grid-template-columns: minmax(0, 1fr); }
 .home-page .home-extra-details .card { padding: 18px; }
 .home-page .home-extra-details .service-card-icon { display: none; }
}
