/* UX-правки для мобильных — 18.11.2026.
   Подключаются после style.css; чтобы откатить, уберите строку с ux-fixes.css из HTML. */

/* Cookie: читаемый текст и нормальная кнопка закрытия на любом экране */
.cookie-banner p{font-size:12px;line-height:1.5;color:#4f6152}
.cookie-banner .icon-btn{width:40px;height:40px;flex:0 0 40px}

@media(max-width:760px){
  /* 1. Мелкий текст — не меньше 12px (было до 9–10px) */
  .eyebrow,.hero-badge,.hero-path,.hero-small,.assistant-header small,.assistant-subline,
  .message-author,.principles-bar span,.case-category,.case-hint,
  .article-card-content .article-topic,.article-toolbar,.article-meta,
  .form-note,.consent,.footer-top nav,.footer-contact small,.legal-links,.brand small{font-size:12px}
  .assistant-note,.assistant-footer{font-size:13px}
  .orbit-label,.article-cover-label{font-size:11px}

  /* 2. Первый экран компактнее — чат с выбором темы виден раньше */
  .home-hero{padding-top:20px}
  .hero-copy h1{font-size:34px;line-height:1.12;letter-spacing:-.04em}
  .hero-lead{font-size:16px;line-height:1.6;margin-top:12px}
  .hero-path{display:none}

  /* 3. Кнопки тем — крупнее, удобнее нажимать пальцем */
  .topic-options button{font-size:15px;min-height:52px}
  .topic-filters button{min-height:44px}

  /* 4. Без анимации появления: карточки не выглядят бледными при прокрутке */
  .reveal,.reveal:not(.is-visible){opacity:1!important;transform:none!important;transition:none!important}

  /* 5. Cookie — тонкая полоса над нижней кнопкой, а не карточка на пол-экрана */
  .cookie-banner{left:12px;right:12px;width:auto;bottom:calc(78px + env(safe-area-inset-bottom));
    padding:8px 8px 8px 14px;gap:8px;align-items:center;border-radius:12px}
  .assistant-in-view .cookie-banner{bottom:calc(12px + env(safe-area-inset-bottom))}
  .cookie-banner strong{display:none}
  .cookie-banner p{margin:0}
  .cookie-banner .icon-btn{width:44px;height:44px;flex:0 0 44px}

  /* 6. Поля ввода 16px — iPhone не увеличивает страницу при вводе */
  input,textarea,select{font-size:16px}

  /* 7. Низ страницы не прячется под закреплённой кнопкой */
  body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}


  /* 9. Отступы по краям на первом экране: раньше текст и чат прилипали к краю экрана */
  .home-hero .hero-layout{width:min(100% - 32px,640px);max-width:none;margin-inline:auto}
}

/* Форма заявки: согласие — крупная зона нажатия, понятный акцент на кнопке */
.chat-contact .consent{display:flex;gap:12px;align-items:flex-start;padding:8px 0;cursor:pointer}
.chat-contact .consent input{width:22px;height:22px;flex:0 0 22px;margin:2px 0 0;accent-color:#0c884e}
.chat-contact .form-note{display:block;margin-top:10px}
@media(max-width:760px){
  .chat-contact .consent{font-size:13px;line-height:1.5}
  .chat-contact .btn-full{min-height:54px;font-size:16px}
  .chat-form-fields input{min-height:50px}
}

/* Посадочная «Расторжение контракта» */
.landing-intro .actions{margin-top:22px}
.landing-copy{min-width:0}
.landing-copy>section{margin-bottom:36px}
.landing-copy h2{font-size:28px;line-height:1.2;letter-spacing:-.03em;margin:0 0 16px}
.landing-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.landing-list li{display:flex;gap:12px;align-items:flex-start;font-size:17px;line-height:1.5}
.landing-list .icon{flex:0 0 22px;width:22px;height:22px;color:#0c884e;margin-top:2px}
.landing-steps{margin:0;padding:0;list-style:none;counter-reset:step;display:grid;gap:14px}
.landing-steps li{counter-increment:step;display:grid;grid-template-columns:40px 1fr;column-gap:14px;align-items:start}
.landing-steps li::before{content:counter(step);grid-row:span 2;width:40px;height:40px;border-radius:12px;background:#e7f3ea;color:#0c884e;font-weight:600;display:grid;place-items:center}
.landing-steps strong{font-size:17px}
.landing-steps span{color:#5b6b60;font-size:15px;line-height:1.5}
.landing-note{color:#5b6b60;font-size:14px;line-height:1.6;margin:0 0 20px}
@media(max-width:760px){
  .landing-intro h1{font-size:34px;line-height:1.12;letter-spacing:-.04em}
  .landing-copy h2{font-size:22px}
  .landing-list li,.landing-steps strong{font-size:16px}
  .landing-cta{width:100%;justify-content:center}
}

/* На посадочной — обычная форма заявки вместо оформления чата */
.landing-page .assistant-header,.landing-page .assistant-subline,.landing-page .chat-context,
.landing-page .assistant-footer,.landing-page .external-option,.landing-page .chat-back{display:none!important}
.landing-page .assistant-shell{padding-top:8px}
.landing-page .chat-contact h3{margin-top:12px}

/* Одностраничник: шапка с кнопкой, без меню */
.landing-page .header-inner{justify-content:space-between}
.landing-header-cta{min-height:44px;padding:10px 18px;white-space:nowrap}
.landing-footer .footer-bottom{padding-top:28px}
.landing-req{margin:0 0 12px;font-size:13px}
@media(max-width:760px){
  .landing-page .brand small{display:none}
  .landing-header-cta{display:none}
}

/* Необязательный вопрос в форме заявки */
.landing-question{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px;margin-bottom:14px}
.landing-question span{font-weight:400;color:#7a897f}
.landing-question textarea{font:inherit;font-weight:400;font-size:16px;line-height:1.5;padding:12px 14px;border:1px solid #d3e0c7;border-radius:14px;background:#fbfdf9;resize:vertical;min-height:84px}
.landing-question textarea:focus{outline:2px solid #11794b;outline-offset:0;border-color:#11794b}
