/* ============================================================
   object-app.css — страницы объектов (/almaty/ohrana-*) на смартфоне.
   Подключается после встроенных стилей страницы.
   • карточки в каруселях шире, отступы компактнее — текст не зажат;
   • длинные слова (особенно в казахской версии) не вылезают за карточку;
   • «+ 2 000 ₸ / мес.» и метка «Дополнительно» не ломаются в столбик.
   ============================================================ */

/* длинные слова переносятся, а не выходят за край — на всех экранах */
.cat h1, .cat h2, .cat h3, .cat p, .cat li, .cat b, .cat span { overflow-wrap: break-word; }
.cat .tcard__t, .cat .pcard__t, .cat .scard__t, .cat .tr__t, .cat .ecard__t, .cat .step__t, .cat .faq__btn h3 { hyphens: auto; -webkit-hyphens: auto; }

@media (max-width: 699px) {
  /* поля страницы и карусели */
  html body .cat .wrap { width: calc(100% - 32px); }
  html body .cat .car { grid-auto-columns: 88%; gap: 10px; margin-top: 14px; }
  html body .cat .carx--up { grid-auto-columns: 86%; }
  html body .cat .carx--sys { grid-auto-columns: 90%; }
  html body .cat .car__btn { width: 40px; height: 40px; }
  html body .cat .car__nav { gap: 8px; }
  html body .cat .h2 { font-size: 26px; line-height: 1.12; }
  html body .cat .car__head .h2 { min-width: 0; }

  /* ---- тарифы ---- */
  html body .cat .tcard { padding: 22px 18px 18px; border-radius: 24px; background-size: 170% 55%; }
  html body .cat .tcard__t { font-size: 25px; line-height: 1.1; margin-bottom: 10px; }
  html body .cat .tcard__d { font-size: 14px; line-height: 1.4; margin-bottom: 16px; }
  html body .cat .feat { padding: 14px 14px; border-radius: 16px; gap: 10px; margin-bottom: 8px; }
  html body .cat .feat img { width: 20px; height: 20px; margin-top: 0; }
  html body .cat .feat p { font-size: 15px; line-height: 1.3; }
  html body .cat .feat > div[style*="display:flex"] { gap: 10px !important; }
  html body .cat .feat__extra { flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-left: 30px !important; }
  html body .cat .feat__extra b { white-space: nowrap; font-size: 14px; }
  html body .cat .feat__badge { font-size: 13px; padding: 5px 10px; border-radius: 8px; white-space: nowrap; }
  html body .cat .tcard__plabel { font-size: 13px; margin-bottom: 4px; }
  html body .cat .tcard__price { margin-bottom: 16px; }
  html body .cat .tcard__price b { font-size: 28px; white-space: nowrap; }
  html body .cat .tcard__price span { font-size: 15px; white-space: nowrap; }
  html body .cat .tcard .btn--light { padding: 16px 20px; font-size: 15px; }

  /* ---- остальные карточки: меньше пустоты по краям ---- */
  html body .cat .pcard { padding: 22px 20px; border-radius: 24px; min-height: 300px; }
  html body .cat .pcard__t { font-size: 20px; margin-top: 24px; }
  html body .cat .scard { border-radius: 24px; }
  html body .cat .scard__b { padding: 20px 20px 22px; }
  html body .cat .scard__t { font-size: 21px; }
  html body .cat .scard__d { font-size: 15px; }
  html body .cat .ecard { padding: 22px 20px; border-radius: 24px; }
  html body .cat .ecard__ic { width: 52px; height: 52px; margin-bottom: 28px; }
  html body .cat .ecard__t { font-size: 21px; margin-bottom: 14px; }
  html body .cat .ecard__d { font-size: 15px; }
  html body .cat .step { padding: 24px 20px; border-radius: 24px; min-height: 0; }
  html body .cat .tr { padding: 22px 20px; border-radius: 24px; min-height: 320px; }
  html body .cat .tr__badge { padding: 10px 16px; font-size: 14px; }
  html body .cat .tr__t { font-size: 22px; }
  html body .cat .faq__q { border-radius: 20px; }
  html body .cat .faq__btn { padding: 20px 18px; gap: 14px; }
  html body .cat .faq__btn h3 { font-size: 16px; }
  html body .cat .faq__a-in { padding: 0 18px 20px; font-size: 14px; }
  html body .cat .up { border-radius: 24px; }
  html body .cat .up__badge { left: 18px; top: 18px; padding: 8px 14px; font-size: 13px; }
  html body .cat .up__t { left: 18px; right: 18px; bottom: 18px; font-size: 18px; }
  html body .cat .note { border-radius: 18px; padding: 18px; }
  html body .cat .band { border-radius: 24px; }
  html body .cat .band__lead { font-size: 26px; }
  html body .cat .cta { border-radius: 24px; padding: 64px 20px; }
  html body .cat .cta__t { font-size: 34px; }
  html body .cat .hero { border-radius: 24px; }
  html body .cat .hero__h1 { font-size: 32px; }

  /* кнопки во всю ширину удобнее нажимать большим пальцем */
  html body .cat .hero__cta .btn { flex: 1 1 100%; }
}

/* казахские слова длиннее — заголовки чуть мельче, чтобы помещались целиком */
@media (max-width: 699px) {
  html.lang-kk body .cat .tcard__t { font-size: 22px; }
  html.lang-kk body .cat .h2 { font-size: 24px; }
  html.lang-kk body .cat .hero__h1 { font-size: 28px; }
  html.lang-kk body .cat .cta__t { font-size: 30px; }
  html.lang-kk body .cat .band__lead { font-size: 23px; }
}

/* совсем узкие телефоны (360 и меньше) */
@media (max-width: 380px) {
  html body .cat .wrap { width: calc(100% - 24px); }
  html body .cat .car { grid-auto-columns: 90%; }
  html body .cat .tcard { padding: 20px 16px 16px; }
  html body .cat .tcard__t { font-size: 22px; }
  html.lang-kk body .cat .tcard__t { font-size: 20px; }
  html body .cat .h2 { font-size: 23px; }
}

/* ---------- SEO-текст внизу: свёрнут до превью, кнопка «Читать полностью» (js/object-app.js) ---------- */
.cat .seo__body { position: relative; overflow: hidden; transition: max-height .45s ease; }
.cat .seo.is-collapsed .seo__body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, #0a0a0a 90%);
}
.cat .seo__toggle {
  margin: clamp(20px, 2vw, 32px) auto 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 26px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer;
  font-family: inherit; font-weight: 500; font-size: 15px; line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s ease, background .2s ease, transform .12s ease;
}
.cat .seo__toggle:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.cat .seo__toggle:active { transform: scale(.97); }
.cat .seo__chev { width: 16px; height: 16px; flex: none; transition: transform .3s ease; }
.cat .seo:not(.is-collapsed) .seo__chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .cat .seo__body, .cat .seo__chev { transition: none; } }
