html { scroll-padding-top: 92px; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid #9fc7ff; outline-offset: 3px; }

@media (max-width: 680px) {
  body { font-size: 15px; overflow-x: hidden; }
  .topbar {
    height: 116px; min-height: 116px; padding: 0 16px 7px;
    display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 60px 48px;
    gap: 0; align-content: start;
  }
  .brand { min-width: 0; grid-row: 1; grid-column: 1; gap: 7px; font-size: 17px; }
  .brand-image { width: 26px; height: 26px; }
  .header-account { width: 168px; min-width: 0; max-width: 168px; min-height: 54px; grid-column: 2; grid-row: 1; grid-template-columns: 26px minmax(0,1fr); gap: 3px 7px; padding: 5px 8px; border-radius: 11px; }
  .header-account:not(.is-guest) .header-account-avatar { width: 26px; min-height: 38px; flex-basis: 26px; border-radius: 8px; }
  .header-account-main { gap: 6px; }
  .header-account-identity b { font-size: 10px; }
  .header-plan-status { font-size: 8px; }
  .header-device-status { gap: 5px; }
  .header-device-status small { font-size: 7px; }
  .header-account-arrow { font-size: 11px; }
  .header-account.is-guest { width: auto; min-width: 88px; min-height: 39px; max-width: none; display: flex; padding: 6px 10px; }
  .header-account.is-guest .header-account-avatar { width: 22px; height: 22px; min-height: 22px; flex-basis: 22px; }
  .main-nav.content-tabs {
    display: flex; position: static; grid-row: 2; grid-column: 1 / -1;
    width: max-content; max-width: 100%; min-width: 0; justify-content: flex-start; gap: 2px;
    padding: 3px; margin: 0; overflow: hidden;
  }
  .main-nav .content-tab {
    flex: 1 1 0; min-width: 0; min-height: 40px; padding: 8px 4px;
    font-size: 10px; text-align: center;
  }
  .hero { padding: 43px 20px 54px; }
  .hero h1 { font-size: clamp(43px, 12vw, 54px); line-height: 1.04; letter-spacing: -2.6px; margin: 21px 0 15px; }
  .hero-text { font-size: 14px; line-height: 1.65; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 22px; }
  .hero-actions .button { width: 100%; min-height: 49px; justify-content: space-between; font-size: 13px; }
  .hero-note { margin-top: 19px; font-size: 11px; }
  .hero-art { width: min(100%, 390px); height: 300px; margin: 12px auto 0; transform: scale(.82); transform-origin: center top; }
  .hero-bottom { bottom: 14px; left: 20px; right: 20px; font-size: 8px; gap: 15px; }
  .hero-bottom span:last-child { text-align: right; }
  .how-section, .plans-section { padding: 57px 20px 62px; }
  .section-heading { margin: 12px 0 26px; }
  .section-heading h2 { font-size: 30px; line-height: 1.2; letter-spacing: -1px; }
  .section-heading p { margin-top: 13px; font-size: 14px; line-height: 1.65; }
  .steps-grid { gap: 10px; }
  .step-card { min-height: 180px; padding: 20px; }
  .step-card h3 { font-size: 17px; }
  .step-card p { font-size: 13px; line-height: 1.6; }
  .step-foot { font-size: 9px; bottom: 17px; left: 20px; }
  .plans-grid { grid-template-columns: 1fr; gap: 12px; }
  .plan-card { min-height: 0; padding: 22px 20px 18px; }
  .plan-name { font-size: 10px; }
  .plan-card h3 { font-size: 19px; }
  .plan-desc { font-size: 12px; margin-bottom: 17px; }
  .plan-price { font-size: 29px; }
  .plan-price small { font-size: 11px; }
  .plan-card ul { margin: 13px 0 17px; }
  .plan-card li { font-size: 13px; line-height: 1.45; padding: 7px 0 7px 20px; }
  .plan-button { min-height: 46px; font-size: 12px; }
  .popular-tag { font-size: 8px; }
  .privacy-band { margin: 0 20px 48px; padding: 20px; gap: 15px; }
  .privacy-band h2 { font-size: 21px; }
  .privacy-band p { font-size: 13px; }
  .privacy-band .button { min-height: 46px; font-size: 12px; }
  .footer { padding: 19px 20px; font-size: 10px; }
  .cabinet { padding: 35px 16px 48px; }
  .cabinet-topline { align-items: flex-start; gap: 10px; }
  .cabinet h1 { font-size: clamp(36px, 10vw, 45px); line-height: 1.06; margin: 15px 0 10px; letter-spacing: -2px; }
  .cabinet-intro { font-size: 13px; line-height: 1.55; }
  .cabinet-topline > .button { flex: 0 0 auto; min-height: 40px; margin-top: 26px; font-size: 11px; }
  .cabinet-note { padding: 13px; margin: 20px 0 13px; gap: 9px; }
  .cabinet-note p { font-size: 12px; line-height: 1.55; }
  .cabinet-grid { grid-template-columns: 1fr; gap: 12px; }
  .cabinet-main { gap: 12px; }
  .cabinet-side { display: flex; flex-direction: column; gap: 12px; }
  .panel { padding: 17px; border-radius: 15px; }
  .panel-heading { align-items: center; margin-bottom: 15px; }
  .panel-heading h2 { font-size: 17px; }
  .section-kicker { font-size: 9px; }
  .status-pill { padding: 8px 10px; font-size: 10px; }
  .device-row { gap: 10px; padding: 12px; }
  .device-icon { width: 40px; height: 40px; flex: 0 0 40px; }
  .device-row b { font-size: 12px; }
  .device-row span { font-size: 11px; line-height: 1.45; }
  .device-time { display: none; }
  .progress-head { margin: 17px 0 8px; font-size: 11px; }
  .progress-track { height: 6px; }
  .device-summary { flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 10px; }
  .topic-chip { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .topic-chip b { font-size: 12px; }
  .topic-chip small { font-size: 9px; }
  .source-row { min-height: 52px; gap: 10px; }
  .source-favicon { width: 32px; height: 32px; flex: 0 0 32px; font-size: 12px; }
  .source-row b { font-size: 12px; }
  .source-row small, .source-state { font-size: 10px; }
  .panel-note { font-size: 10px; line-height: 1.5; }
  .empty-state { padding: 22px 15px; }
  .empty-state > b { font-size: 13px; }
  .empty-state p { font-size: 12px; line-height: 1.6; }
  .empty-state .text-button { font-size: 12px; }
  .account-user b { font-size: 13px; }
  .account-user span, .account-detail span { font-size: 10px; }
  .account-detail b { font-size: 12px; }
  .side-button { min-height: 47px; font-size: 12px; }
  .account-foot, .help-panel p { font-size: 11px; }
  .help-panel h3 { font-size: 17px; }
  .hero, .how-section, .plans-section, .cabinet { scroll-margin-top: 120px; }
}

@media (max-width: 380px) {
  .topbar { padding-left: 12px; padding-right: 12px; }
  .header-account:not(.is-guest) { width: 150px; max-width: 150px; }
  .brand { font-size: 16px; }
  .main-nav .content-tab { font-size: 9px; padding-left: 2px; padding-right: 2px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero-art { margin-left: -5%; width: 110%; transform: scale(.76); height: 270px; }
  .hero-bottom { left: 16px; right: 16px; }
  .how-section, .plans-section { padding-left: 16px; padding-right: 16px; }
  .privacy-band { margin-left: 16px; margin-right: 16px; }
}

@media (min-width: 681px) {
  .plan-card, .step-card, .panel { transition: border-color .2s, background .2s, transform .2s; }
  .plan-card:hover, .step-card:hover { transform: translateY(-2px); border-color: rgba(173,205,248,.2); }
  .cabinet-grid { grid-template-columns: minmax(0, 1fr) 280px; }
}
