/* Лендинг калькулятора на телефоне — своя раскладка, а не сжатая копия компьютерной
   (владелец 14.10: «проработай мобилку нормально»):
   - шапка: логотип и тема, кнопка скачивания — плавающая внизу экрана (.m-dock);
   - первый экран: заголовок → короткий текст → кнопка в одну строку → «Подробнее» → ролик;
   - баннер — компактная карточка, листается пальцем;
   - «Что считает» — один список с разделителями вместо шести высоких карточек;
   - «Скачать» — плотная плита, без дубля карточки файла;
   - подвал — раскрывающиеся разделы, документы — одной кнопкой. */

/* плавающая кнопка и раскрывающиеся разделы подвала на компьютере — как обычные колонки */
.m-dock { display: none; }
.foot-col { display: block; }
.foot-col summary { margin-bottom: 15px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  list-style: none; pointer-events: none; }
.foot-col summary::-webkit-details-marker { display: none; }
.foot-links { display: grid; gap: 9px; justify-items: start; }

@media (max-width: 700px) {
  /* шапка */
  .nav-cta .btn-white { display: none; }

  /* первый экран */
  .calc-hero { gap: 14px; padding-top: 88px; padding-bottom: 28px; }
  .calc-hero .eyebrow { font-size: 11px; letter-spacing: 0.08em; }
  .calc-hero .sp-copy h1 { font-size: 30px; line-height: 1.06; }
  .calc-hero .sp-copy h1 span { white-space: normal; }
  .calc-hero .lead { order: 4; font-size: 15.5px; line-height: 1.5; }
  .calc-hero .hero-actions { order: 5; gap: 2px; margin-top: 4px; }
  .calc-hero .hero-video { order: 6; margin-top: 8px; }
  /* длинная кнопка скачивания — в одну строку (владелец 14.10: «не в 2 этажа»): кегль от ширины экрана */
  .calc-hero .btn-primary, .m-dock .btn-primary { gap: 6px; padding-left: 18px; font-size: min(15.5px, 3.75vw); white-space: nowrap; }
  .calc-hero .btn-primary .knob, .m-dock .btn-primary .knob { flex: none; }
  .calc-hero .btn-ghost { height: 44px; background: none; border: 0; box-shadow: none; color: var(--ink-2); font-size: 15px; }
  .hv-sound { right: 12px; bottom: 12px; width: 34px; height: 34px; }
  .hv-sound svg { width: 15px; height: 15px; }

  /* баннер: значок и название в строку, заголовок и перечень на всю ширину, кнопка внизу */
  .promo-row { padding: 0 16px; gap: 10px; }
  .promo { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 0; padding: 18px 18px 20px; border-radius: 24px; touch-action: pan-y; }
  .promo-ic { width: 40px; height: 40px; }
  .promo-copy { display: contents; }
  .pc-br { display: none; }
  .promo-copy em { grid-column: 2; align-self: center; font-size: 11px; letter-spacing: 0.12em; }
  .promo-copy b { grid-column: 1 / -1; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.32; }
  .promo-copy span { grid-column: 1 / -1; margin-top: -4px; font-size: 14px; line-height: 1.45; }
  .promo-go { grid-column: 1 / -1; align-self: end; justify-self: stretch; justify-content: center; height: 44px; font-size: 15px; }

  /* заголовки разделов */
  .section-page .sec-head { gap: 10px; }
  .section-page .sec-head h2 { font-size: 24px; line-height: 1.15; }
  .section-page .sec-head .lead { font-size: 15px; line-height: 1.5; }

  /* «Что считает»: один список */
  #calc { padding-top: 40px; padding-bottom: 8px; }
  #calc .feats { gap: 0; margin-top: 18px; border-radius: 24px; overflow: hidden; background: var(--card); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
  #calc .feat-card { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 16px 18px; border-radius: 0; background: transparent; border: 0; box-shadow: none; }
  #calc .feat-card + .feat-card { border-top: 1px solid var(--glass-line); }
  #calc .fc-ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 12px; }
  #calc .fc-ic svg { width: 18px; height: 18px; }
  #calc .feat-card h3 { margin: 0; font-size: 16px; line-height: 1.3; }
  #calc .feat-card p { grid-column: 2; font-size: 14px; line-height: 1.5; }

  /* «Скачать» */
  #download { padding: 24px 16px; }
  #download .offer { gap: 18px; padding: 24px 20px; border-radius: 26px; }
  #download .offer-copy { gap: 14px; }
  #download .offer h2 { font-size: 24px; line-height: 1.12; }
  #download .offer-lead { font-size: 15px; }
  #download .offer-actions { justify-self: stretch; }
  #download .offer-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  #download .dl-file { display: none; }
  #download .audit-list { padding: 6px; gap: 4px; border-radius: 20px; }
  #download .audit-list li { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-radius: 14px; }
  #download .audit-list i { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
  #download .audit-list b { font-size: 15px; }
  #download .audit-list span { font-size: 13px; }

  /* ролик о сервисе: заголовок по центру (владелец 14.10), окно во всю ширину */
  .svc-sec { gap: 18px; padding-top: 32px; padding-bottom: 40px; }
  .svc-sec .sec-head h2 { text-wrap: balance; }
  .section-page .svc-sec .sec-head h2 { font-size: 22px; line-height: 1.18; }
  .svc-video { padding: 5px; border-radius: 22px; }
  .svc-video .hv-screen { border-radius: 18px; }

  /* подвал: раскрывающиеся разделы, документы — одной кнопкой */
  .site-foot { padding: 0 12px 20px; }
  .foot-plate { gap: 22px; padding: 24px 18px 20px; border-radius: 28px; }
  .foot-main { gap: 18px; }
  .foot-brand { gap: 12px; }
  .foot-tagline { font-size: 14px; }
  .foot-cols { display: grid; grid-template-columns: 1fr; gap: 0; }
  .foot-col { border-top: 1px solid var(--glass-line); }
  .foot-col summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; font-size: 12px; pointer-events: auto; cursor: pointer; }
  .foot-col summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease); }
  .foot-col[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
  .foot-links { gap: 2px; padding-bottom: 12px; }
  .foot-links a { padding: 7px 0; font-size: 15px; }
  .foot-legal { padding: 0; background: none; border: 0; }
  .foot-legal a:not(.foot-legal-all) { display: none; }
  .foot-legal-all { height: 44px; padding: 0 16px; }
  .foot-bottom { flex-direction: row; align-items: center; gap: 12px; }
  .foot-quick { display: none; }

  /* плавающая кнопка скачивания */
  .m-dock { display: block; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateY(calc(100% + 24px)); transition: transform 0.45s var(--ease); }
  .m-dock.show { transform: none; }
  .m-dock .btn { width: 100%; justify-content: space-between; box-shadow: 0 18px 40px -12px rgba(21, 53, 237, 0.75), 0 2px 8px rgba(11, 19, 36, 0.18); }
}

@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .m-dock { transition: none; }
}
