/* Мобильная оболочка по макету Reels: лента, нижняя панель, кремовый экран. */

.reel,
.reel-segments,
.mnav,
.pwa-hint,
.nav-burger,
.nav-layer { display: none; }

@media (max-width: 820px) {
  body.tone-care {
    background: #ffffff;
    color: #1A1A22;
    font-family: Manrope, Inter, sans-serif;
  }
  body.tone-care .top .nav,
  body.tone-care .nav-select,
  body.tone-care .price-btn,
  body.tone-care .care-nav,
  body.tone-care .care-pill { display: none !important; }

  body.tone-care .top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    border-bottom: 0;
  }
  body.tone-care .top-in { height: auto; padding: 12px 16px 4px; }
  body.tone-care .tools { display: none; }
  body.tone-care .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0 11px;
    border: 0;
    border-radius: 14px;
    background: #F5F7FD;
    flex: none;
    position: relative;
    z-index: 3;
  }
  body.tone-care .nav-burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #1A1A22;
    transition: transform 0.16s ease, opacity 0.16s ease;
  }
  body.tone-care .nav-burger.is-on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.tone-care .nav-burger.is-on span:nth-child(2) { opacity: 0; }
  body.tone-care .nav-burger.is-on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.tone-care.nav-open .top { z-index: 45; }
  body.tone-care.nav-open .top-in { position: relative; z-index: 3; }
  body.tone-care.nav-open .nav-layer { display: block; }
  body.tone-care .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    border: 0;
    background: rgba(26, 26, 34, 0.35);
  }
  body.tone-care .nav-layer {
    position: relative;
    z-index: 2;
    padding: 8px 12px 12px;
  }
  body.tone-care .nav-sheet {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 4px;
    max-height: min(70vh, 560px);
    overflow: auto;
    padding: 8px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(26, 26, 34, 0.18);
  }
  body.tone-care .nav-sheet button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    padding: 0 16px;
    text-align: left;
    font: 800 16px/1.2 Manrope, sans-serif;
    color: #1A1A22;
  }
  body.tone-care .nav-sheet button.is-on {
    background: #d1e8e0;
    color: #008271;
  }
  body.tone-care .nav-sheet button.nav-sheet-out { color: #73737F; font-weight: 700; }
  body.tone-care .nav-sheet-mail {
    margin: 8px 16px 0;
    color: #73737F;
    font-size: 13px;
    font-weight: 700;
    word-break: break-all;
  }
  body.tone-care .asof { display: none; }
  body.tone-care .page {
    padding: 8px 16px 108px;
    max-width: 520px;
  }
  body.tone-care .footer { margin-bottom: 88px; padding-bottom: 12px; }
  body.tone-care h1,
  body.tone-care .hero .big,
  body.tone-care .reel-copy h1,
  body.tone-care .care-gate h2,
  body.tone-care .auth-card h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.03em;
  }
  body.tone-care .btn.primary,
  body.tone-care .reel-btn {
    background: #00a88b;
    color: #fff;
    border: 0;
    border-radius: 28px;
    min-height: 52px;
    font-weight: 800;
  }

  .mnav {
    display: flex !important;
    position: fixed;
    left: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 40;
    height: 64px;
    box-sizing: border-box;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(26, 26, 34, 0.16);
    align-items: center;
    overflow: hidden;
    padding: 0 4px;
  }
  .mnav button,
  .mnav a {
    flex: 1 1 0;
    min-width: 0;
    border: 0;
    background: none;
    color: #73737F;
    font: 700 10px/1.15 Manrope, sans-serif;
    padding: 6px 1px;
    text-align: center;
    text-decoration: none;
    white-space: normal;
  }
  .mnav button.is-on,
  .mnav a.is-on { color: #00a88b; }

  .pwa-hint {
    display: block !important;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #1A1A22;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
  }

  body.tone-care:has(.care) { background: #ffffff; }
  body.tone-care.is-narrow .reel,
  .reel {
    display: block !important;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 16px;
    height: auto;
    min-height: 560px;
    border-radius: 28px;
    overflow: hidden;
    color: #ffffff;
  }
  .reel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 18%;
  }
  .reel-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    width: 100%;
    padding: 72px 18px 18px;
    background: linear-gradient(180deg, rgba(26, 26, 34, 0) 0%, rgba(26, 26, 34, 0.82) 46%);
  }
  .reel-chip {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
  }
  .reel-copy h1 {
    margin: 12px 0 8px;
    max-width: 100%;
    font-size: 30px;
    line-height: 1.05;
    color: #ffffff;
    overflow-wrap: break-word;
  }
  .reel-copy p, .reel-price { margin: 0 0 14px; max-width: 100%; font-size: 15px; line-height: 1.4; overflow-wrap: normal; word-break: normal; }
  .reel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  body.tone-care.is-narrow .reel-segments,
  .reel-segments { display: block !important; padding: 8px 16px 20px; }
  .reel-segments h2 {
    margin: 0 0 6px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
  }
  .reel-segments > p { margin: 0 0 12px; color: #73737F; }
  .reel-segments div { display: grid; gap: 10px; }
  .reel-segments a {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    padding: 8px;
    text-decoration: none;
    color: #1A1A22;
  }
  .reel-segments img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
  .reel-segments b { font-size: 16px; }
  .reel-segments span { color: #00a88b; font-weight: 800; font-size: 13px; }
  .reel-note { margin-top: 12px !important; font-size: 13px; }

  body.tone-care .care { display: flex; flex-direction: column; width: 100%; max-width: 100%; padding: 0 0 128px; overflow-x: hidden; }
  body.tone-care .care img { max-width: 100%; }
  body.tone-care .reel img { max-width: none; height: 100%; }
  body.tone-care .care-bar { order: 0; }
  body.tone-care .reel { order: 1; }
  body.tone-care .care-bento { order: 2; }
  body.tone-care .reel-segments { order: 3; }
  body.tone-care .care-queries { order: 4; }
  body.tone-care .care-values { order: 5; }
  body.tone-care .care-phone { order: 6; }
  body.tone-care .care-offer { order: 7; }
  body.tone-care .care-foot { order: 8; }
  body.tone-care .care-shot { display: none; }
  body.tone-care .reel-price { margin: 0 0 14px; font-size: 14px; font-weight: 700; line-height: 1.35; }
  body.tone-care .split,
  body.tone-care .work,
  body.tone-care .path-layout,
  body.tone-care .claims-layout,
  body.tone-care .kb,
  body.tone-care .tariffs,
  body.tone-care .tariffs-one,
  body.tone-care .metrics,
  body.tone-care .metrics.cols-3,
  body.tone-care .match-grid,
  body.tone-care .kind-grid,
  body.tone-care .bgrid,
  body.tone-care .reg-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.tone-care .care .auth-card h2 { font-size: 34px; }
  body.tone-care .care-side .auth-card { padding: 28px 20px 32px; margin-bottom: 96px; }
  body.tone-care .care-bar { padding: 12px 16px; background: rgba(255, 255, 255, 0.94); }
  body.tone-care .care-bento,
  body.tone-care .care-values,
  body.tone-care .care-phone,
  body.tone-care .care-offer { margin-left: 12px; margin-right: 12px; }
  body.tone-care .care-bento { grid-template-columns: 1fr; min-height: 0; }
  body.tone-care .care-value-photo,
  body.tone-care .care-phone { display: block; }
  body.tone-care .care-gate { min-height: 100vh; padding: 24px 16px 40px; }
  body.tone-care .auth-card,
  body.tone-care .core-card {
    border-radius: 28px;
    background: #fff;
    box-shadow: none;
  }
  body.tone-care .wizard-q { display: grid; gap: 8px; }
  body.tone-care .wizard-q button {
    border-radius: 16px;
    min-height: 48px;
    border: 1px solid #E0E2EB;
    background: #fff;
    font-weight: 800;
  }

  body.tone-care .prompts { display: flex; flex-wrap: wrap; gap: 8px; }
  body.tone-care .prompts button {
    border-radius: 16px;
    border: 1px solid #E0E2EB;
    background: #fff;
    color: #1A1A22;
    font-weight: 700;
  }
  body.tone-care .chatbar {
    position: sticky;
    bottom: 88px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #ffffff;
    padding-top: 8px;
  }
  body.tone-care .chatbar .btn {
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 26px;
    background: #00a88b;
    color: #fff;
    font-size: 0;
  }
  body.tone-care .chatbar .btn::before { content: "›"; font-size: 24px; color: #fff; }
  body.tone-care .hero {
    background: #fff;
    border-radius: 24px;
    padding: 18px;
  }
  body.tone-care .hero .big { font-size: 42px; color: #1A1A22; }
  body.tone-care .split,
  body.tone-care .path-layout { display: block; }
  body.tone-care .side { margin-top: 16px; }
  body.tone-care .card,
  body.tone-care .mrow,
  body.tone-care .bcard {
    border-radius: 20px;
    border-color: #E0E2EB;
    background: #fff;
  }

  /* Keep main landing page (.lp) crisp with Unbounded + Manrope on mobile */
  body.tone-care:has(.lp) {
    background: #F6F7FB;
    font-family: Manrope, Inter, sans-serif;
  }
  body.tone-care .lp h1,
  body.tone-care .lp h2,
  body.tone-care .lp .lp-auth-card h2 {
    font-family: Unbounded, Manrope, sans-serif;
    letter-spacing: -0.035em;
  }
  body.tone-care .lp .lp-auth-card {
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(26, 26, 34, 0.055);
  }
}
