/* Внутренние страницы: общие стили и адаптивные экраны установки/кабинета. */
:root { --page-border: #efdbcf; --page-muted: #765f53; --page-tint: #fff4ed; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.page--inner { background: linear-gradient(180deg, #fff8f4 0, #fffdfb 310px, #fffaf7 100%); }
.inner-header { justify-content: center; align-items: center; }
.inner-back { position: absolute; left: 17px; top: 23px; width: 35px; height: 35px; display: grid; place-items: center; color: #371d15; text-decoration: none; border-radius: 12px; }
.inner-back svg { width: 25px; height: 25px; }
.inner-back:hover { background: #f7e9e1; }
.inner-header__title { font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: -.7px; }
.inner-header .brand { display: none; }
.inner-header .nav { display: none; }
.inner-main { width: 100%; padding: 0 12px; min-width: 0; }
.page--inner .inner-main { flex: 1 0 auto; }
.inner-intro { text-align: center; padding: 4px 0 20px; }
.inner-intro__eyebrow { display: none; }
.inner-intro h1 { margin: 0 0 9px; font-size: clamp(22px, 6.5vw, 26px); line-height: 1.14; font-weight: 850; letter-spacing: -.95px; }
.inner-intro p { font-size: 13.5px; line-height: 18px; margin: 0 auto; color: #5d514b; max-width: 330px; }
/* Ровно четыре раздела: обнаруженное устройство, расширение, TG, другие устройства. */
.install-nav { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; margin-bottom: 20px; }
.install-nav__tab { min-width: 0; min-height: 78px; padding: 10px 2px 8px; border: 1px solid #f1e1d8; border-radius: 15px; background: #fff3ec; color: #554037; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; font-size: 11px; line-height: 13px; font-weight: 600; text-align: center; transition: background .18s, border-color .18s, box-shadow .18s; }
.install-nav__tab .tab-icon { width: 26px; height: 26px; display: block; }
.install-nav__tab .tab-icon svg { width: 100%; height: 100%; }
.install-nav__tab[aria-selected="true"] { background: #fff9f4; border: 1.5px solid #7c4226; box-shadow: 0 2px 4px #8a51312a; color: #3e2015; }
.install-nav__tab:hover { background: #fffaf7; }
.tab-name { display: block; min-height: 25px; align-content: center; }
.platform-picker { margin: -6px 0 22px; padding: 14px; border: 1px solid #efdacc; border-radius: 20px; background: #fffaf7; box-shadow: 0 9px 24px #70452e0d; }
.platform-picker__title { margin: 0 0 11px; font-weight: 750; font-size: 14px; }
.platform-picker__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.platform-picker__item { border: 1px solid #edd7c9; background: #fff1e9; border-radius: 12px; padding: 11px 5px; font-size: 12px; color: #49281c; font-weight: 650; }
.platform-picker__item:hover, .platform-picker__item[aria-pressed="true"] { border-color: #945c3b; background: #f7e4d7; }
.install-content { min-height: 275px; }
.install-content__heading { font-size: 18px; font-weight: 800; letter-spacing: -.5px; margin: 3px 0 16px; display: none; }
.install-steps { margin: 0; padding: 0; list-style: none; counter-reset: install; }
.install-steps__item { position: relative; display: grid; grid-template-columns: 39px minmax(0,1fr); gap: 9px; padding-bottom: 24px; }
.install-steps__item:last-child { padding-bottom: 1px; }
.install-steps__item:not(:last-child)::after { content: ""; position: absolute; top: 34px; bottom: -4px; left: 19px; border-left: 1.5px solid #ddbda9; }
.install-steps__number { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; line-height: 1; font-weight: 800; color: #fff; background: #895034; box-shadow: inset 0 1px 2px #fff6; }
.install-steps__body { padding-top: 2px; min-width: 0; }
.install-steps__body h3 { margin: 0 0 3px; font-size: 16px; font-weight: 800; letter-spacing: -.25px; }
.install-steps__body p { margin: 0; font-size: 13.3px; line-height: 18px; color: #5d524d; }
.install-steps__body p strong { color: #4b3022; }
.install-steps__action { width: min(100%, 306px); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 35px; margin-top: 10px; padding: 8px 13px; border-radius: 30px; border: 0; background: #f7e6dc; font-size: 12.8px; line-height: 17px; color: #69391f; font-weight: 750; text-decoration: none; text-align: center; }
.install-steps__action:hover { background: #eed4c3; }
.install-steps__action svg { width: 18px; height: 18px; flex: none; }
.install-note { margin: 12px 0 0 48px; border: 1px solid #f0dbcc; background: #fff8f3; padding: 10px 12px; border-radius: 14px; color: #856451; font-size: 12px; line-height: 17px; }
.install-details { display: flex; align-items: center; gap: 12px; margin-top: 14px; min-height: 50px; border-radius: 15px; padding: 10px 17px; background: #fff0e6; border: 1px solid #efded3; text-decoration: none; color: #5e3424; font-weight: 750; font-size: 14px; }
.install-details svg { width: 23px; height: 23px; flex: 0 0 auto; }
.install-details .chevron { margin-left: auto; width: 18px; height: 18px; }
.install-help { margin-top: 7px; font-size: 12px; color: #8d7467; text-align: center; }
.install-preview { display: none; }
/* Вход */
.account-main { display: flex; flex-direction: column; justify-content: flex-start; }
.account-intro { padding-bottom: 18px; }
.account-intro h1 { margin: 0 0 10px; }
.auth-card { background: #fffaf7; border: 1px solid #efd9cc; border-radius: 25px; padding: 22px 19px; box-shadow: 0 12px 40px #875d4011; }
.auth-card__cat { width: 65px; height: 50px; margin: 0 auto 12px; display: block; object-fit: contain; background: transparent; }
.auth-card__heading { margin: 0; text-align: center; font-size: 21px; font-weight: 800; letter-spacing: -.7px; }
.auth-card__description { color: #796255; font-size: 13px; line-height: 18px; margin: 9px auto 19px; text-align: center; max-width: 300px; }
.auth-steps { display: flex; align-items: center; gap: 7px; justify-content: center; margin-bottom: 19px; }
.auth-steps span { display: block; height: 5px; width: 30px; background: #efddd1; border-radius: 50px; }
.auth-steps span.is-active { background: #905434; width: 36px; }
.auth-form { display: flex; flex-direction: column; gap: 11px; }
.auth-form label { display: block; margin: 2px 0 0; font-size: 12px; font-weight: 800; color: #523627; }
.auth-form input { min-height: 49px; width: 100%; border: 1px solid #e9d1c2; border-radius: 14px; background: #fff; padding: 0 15px; font-size: 16px; color: #321c14; outline: none; }
.auth-form input:focus { border-color: #925639; box-shadow: 0 0 0 3px #ae76491d; }
.auth-form .auth-form__code { text-align: center; font-size: 27px; font-weight: 800; letter-spacing: 7px; font-variant-numeric: tabular-nums; }
.auth-submit { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 50px; width: 100%; border-radius: 15px; background: #854b30; color: #fff; font-size: 15px; font-weight: 800; border: 0; box-shadow: 0 7px 14px #80482b21; text-decoration: none; }
.auth-submit:hover { filter: brightness(1.08); }
.auth-submit:disabled { opacity: .55; cursor: not-allowed; }
.auth-link { display: inline-flex; margin-top: 2px; align-self: center; border: 0; background: transparent; padding: 6px; color: #885339; font-size: 13px; font-weight: 650; }
.auth-link:disabled { opacity: .55; }
.auth-error { background: #fff0eb; color: #8f301c; border: 1px solid #ebc4b5; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; line-height: 18px; }
.auth-info { border: 1px solid #f0dacb; padding: 10px 12px; background: #fff5ed; color: #825a47; border-radius: 12px; font-size: 12px; line-height: 17px; }
.auth-meta { margin-top: 14px; text-align: center; font-size: 12px; line-height: 17px; color: #8a7367; }
.account-selected { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 15px; padding: 14px; border: 1px solid #efd8ca; border-radius: 17px; background: #fff2e9; }
.account-selected strong { font-size: 14px; }
.account-selected span { color: #875133; font-weight: 800; }
.account-selected small { display: block; margin-top: 3px; font-size: 11px; color: #796153; }
.profile-card { padding: 20px; border-radius: 24px; background: #fff9f5; border: 1px solid #ecd3c3; }
.profile-head { display: flex; align-items: center; gap: 13px; }
.profile-avatar { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 17px; background: #f9e8dc; padding: 8px; }
.profile-head h2 { margin: 0 0 3px; font-size: 20px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.profile-head p { margin: 0; color: #7a6153; font-size: 12px; overflow-wrap: anywhere; }
.profile-subscription { background: linear-gradient(115deg,#fff3e9,#fbe7d9); border: 1px solid #edcfbc; border-radius: 17px; padding: 18px; margin-top: 18px; }
.profile-subscription h3 { margin: 0 0 8px; font-size: 17px; }
.profile-subscription p { margin: 0; color: #785d4f; font-size: 13px; line-height: 19px; }
.profile-subscription .auth-submit { margin-top: 16px; }
.profile-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.profile-actions button { border: 0; background: none; color: #865238; padding: 10px; font-size: 13px; font-weight: 650; }
.profile-notice { margin-top: 18px; font-size: 12px; line-height: 18px; color: #806655; text-align: center; }
/* Главная: сохранить предыдущий вид, но привести ссылки к сквозной навигации. */
@media (max-width: 767px) {
 .page--inner .bottom-nav { margin-top: 30px; }
 .page--inner .site-footer { margin-top: 18px; }
 .inner-header { height: 61px; padding-top: 0; }
 .inner-back { top: 13px; }
 .account-main { padding-top: 6px; }
}
@media (max-width: 350px) {
 .inner-main { padding: 0 7px; }
 .install-nav { gap: 5px; }
 .install-nav__tab { padding: 7px 1px; font-size: 10px; }
 .install-steps__item { grid-template-columns: 38px minmax(0,1fr); gap: 6px; }
 .install-steps__body h3 { font-size: 15px; }
 .auth-card { padding: 20px 13px; }
}
@media (min-width: 768px) {
 .page--inner .header { width: 100%; max-width: 1240px; height: 100px; padding: 18px 30px 0; justify-content: space-between; }
 .page--inner .inner-header__title, .page--inner .inner-back { display: none; }
 .page--inner .header .brand { display: inline-flex; }
 .page--inner .header .nav { display: block; }
 .page--inner main.inner-main { width: calc(100% - 60px); max-width: 1160px; margin: 0 auto; padding: 18px 0 0; }
 .page--inner .inner-intro { padding: 16px 0 28px; }
 .page--inner .inner-intro__eyebrow { display: block; text-transform: uppercase; letter-spacing: 2.6px; font-weight: 800; font-size: 12px; color: #a57457; margin: 0 0 11px; }
 .page--inner .inner-intro h1 { font-size: clamp(36px,4vw,48px); letter-spacing: -2px; margin-bottom: 13px; }
 .page--inner .inner-intro p { font-size: 16px; line-height: 24px; max-width: 600px; }
 .install-panel { border: 1px solid #efdfd6; background: #fffaf7; border-radius: 29px; padding: 26px; min-height: 465px; box-shadow: 0 10px 40px #70482e08; }
 .install-nav { max-width: 850px; margin: 0 auto 30px; gap: 12px; }
 .install-nav__tab { min-height: 104px; border-radius: 20px; font-size: 15px; line-height: 18px; gap: 9px; }
 .install-nav__tab .tab-icon { width: 31px; height: 31px; }
 .tab-name { min-height: 25px; }
 .platform-picker { max-width: 850px; margin: -12px auto 24px; }
 .platform-picker__grid { grid-template-columns: repeat(5,1fr); }
 .install-content { max-width: 900px; margin: 0 auto; }
 .install-content__heading { display: block; font-size: 22px; margin-bottom: 21px; }
 .install-steps__item { grid-template-columns: 52px minmax(0,1fr); gap: 13px; padding-bottom: 28px; }
 .install-steps__item:not(:last-child)::after { left: 20px; }
 .install-steps__number { width: 40px; height: 40px; font-size: 19px; }
 .install-steps__body h3 { font-size: 19px; }
 .install-steps__body p { font-size: 15px; line-height: 21px; max-width: 590px; }
 .install-steps__action { min-height: 43px; font-size: 14px; margin-top: 14px; }
 .install-details { margin-top: 20px; min-height: 65px; padding: 16px 22px; }
 .install-extra { margin: 0 auto; max-width: 900px; }
 .install-note { margin-left: 65px; }
 .account-main { align-items: center; }
 .account-intro { width: 100%; }
 .auth-card, .profile-card { width: min(100%,460px); margin: 0 auto; padding: 32px; }
 .auth-card__cat { width: 76px; height: 58px; }
 .auth-card__heading { font-size: 26px; }
 .profile-card { width: min(100%,520px); }
}

/* Подсказка о доставке кода на шаге подтверждения почты. */
.code-delivery-hint {
  margin: -1px 0 2px;
  padding: 11px 12px;
  border: 1px solid #eddace;
  border-radius: 12px;
  background: #fff4ec;
  color: #6d5243;
  font-size: 12.5px;
  line-height: 1.5;
}

/* Компактная форма входа без отдельного вступления */
.account-main { padding-top: 10px; }
.account-intro[hidden] { display: none; }
.auth-card { max-width: 460px; margin: 0 auto; width: 100%; }
.auth-card__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.auth-card__header .auth-card__heading { flex: 1; min-width: 0; text-align: left; }
.auth-card__header .auth-card__cat { margin: 0; width: 64px; height: 49px; flex: 0 0 64px; }
.auth-card__description[hidden] { display: none; }
.auth-card__description:not([hidden]) { margin: 0 0 13px; text-align: left; max-width: 100%; }
.auth-card .account-selected { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 17px; padding: 12px 13px; }
.account-selected__label { color: #4f3021 !important; font-size: 12.5px; line-height: 17px; font-weight: 700; }
.account-selected__price { color: #824c30; white-space: nowrap; font-size: 13px; font-weight: 800; }
.auth-card .auth-steps { margin-bottom: 19px; }
@media (min-width: 768px) {
 .account-main { padding-top: 18px !important; }
 .auth-card__header .auth-card__cat { width: 70px; height: 54px; flex-basis: 70px; }
}
@media (max-width: 350px) {
 .auth-card__header { gap: 8px; }
 .auth-card__header .auth-card__cat { width: 54px; height: 42px; flex-basis: 54px; }
 .auth-card .account-selected { padding: 10px; }
 .account-selected__label { font-size: 11.5px; }
 .account-selected__price { font-size: 12px; }
}

/* Приветствие отделено от названия шага входа — одинаково на телефоне и ПК. */
.auth-card__welcome {
  margin: 0 0 19px;
  color: #2c1812;
  font-size: clamp(21px, 5.8vw, 25px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.8px;
}
.auth-card__welcome + .auth-card__header { margin-bottom: 14px; }
@media (min-width: 768px) {
  .auth-card__welcome { margin-bottom: 24px; }
}

/* Вход: приветствие и выбор тарифа находятся СНАРУЖИ карточки. */
.account-entry {
  width: min(100%, 460px);
  margin: 0 auto 16px;
}
.account-entry__title {
  margin: 0 0 17px;
  font-size: clamp(25px, 6.8vw, 33px);
  line-height: 1.14;
  letter-spacing: -1px;
  font-weight: 800;
  color: #2c1812;
}
.account-entry .account-selected {
  margin: 0;
  padding: 13px 15px;
  border-radius: 16px;
  background: #fff1e8;
  border: 1px solid #f0d9c9;
  box-shadow: 0 3px 14px #6f43240b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-entry .account-selected__label { font-size: 13px; line-height: 18px; }
.account-entry .account-selected__price { font-size: 13px; }
/* Индикатор этапов теперь между вводом и кнопкой, а не над формой. */
.auth-form .auth-steps {
  margin: 6px 0 3px;
  min-height: 12px;
}
.auth-form .auth-steps span { transition: background .18s ease, width .18s ease; }
@media (max-width: 767px) {
  .account-entry { margin-bottom: 13px; padding: 0 5px; }
  .account-entry__title { margin-bottom: 14px; }
}
@media (max-width: 350px) {
  .account-entry__title { font-size: 25px; }
  .account-entry .account-selected { padding: 11px 10px; gap: 8px; }
  .account-entry .account-selected__label { font-size: 11.5px; }
  .account-entry .account-selected__price { font-size: 12px; }
}
@media (min-width: 768px) {
  .account-entry { margin-bottom: 22px; }
  .account-entry__title { margin-bottom: 20px; }
}

/* Установка Happ и расширения: компактные действия в каждом шаге. */
.install-steps__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-width: 700px; }
.install-steps__actions .install-steps__action { width: auto; min-width: min(100%, 198px); margin-top: 0; padding-inline: 16px; }
.install-steps__action--secondary { background: #fffaf7; border: 1px solid #e8cbbb; }
.install-steps__action--secondary:hover { background: #f7e9df; }
.access-entry { margin-top: 12px; max-width: 500px; padding: 12px; border: 1px solid #e7ccb9; background: #fff7f1; border-radius: 14px; }
.access-entry label { display: block; font-weight: 750; margin-bottom: 7px; color: #5d3423; font-size: 13px; }
.access-entry__row { display: flex; gap: 7px; }
.access-entry__row input { min-width: 0; flex: 1 1 auto; padding: 10px; border-radius: 10px; border: 1px solid #dfc4b3; background: #fff; font-size: 14px; }
.access-entry__row input:focus-visible { outline: 2px solid #a8704f; outline-offset: 2px; }
.access-entry__row button { border: 0; padding: 10px 13px; border-radius: 10px; background: #895034; color: #fff; font-weight: 750; }
.access-entry > p { margin-top: 8px; font-size: 12px; line-height: 16px; }
.install-feedback { margin: 14px 0 0 48px; max-width: 550px; border: 1px solid #e3cdbb; color: #603e2e; background: #fff6ee; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; line-height: 18px; }
.install-feedback--error { color: #9a3b24; border-color: #eed2c6; }
@media (max-width: 767px) { .install-steps__actions .install-steps__action { flex: 1 1 auto; } .install-feedback { margin-left: 42px; } }
@media (max-width: 350px) { .access-entry__row { flex-wrap: wrap; } .access-entry__row button { width: 100%; } .install-feedback { margin-left: 0; } }

/* Новый личный кабинет: карточки по референсу, без блока LTE. */
.profile-dashboard { width: 100%; max-width: 480px; margin: 0 auto; padding: 3px 0 14px; color: #321c17; }
.profile-dashboard__title { margin: 3px 3px 15px; font-size: 24px; font-weight: 820; letter-spacing: -.8px; line-height: 1.17; }
.dashboard-user, .dashboard-status, .dashboard-stat, .dashboard-menu, .dashboard-details { border: 1px solid #eddcd1; background: #fff5ef; box-shadow: 0 3px 16px rgba(100,58,35,.045); }
.dashboard-user { display: flex; align-items: center; min-height: 76px; gap: 12px; padding: 12px 13px; border-radius: 19px; }
.dashboard-user__avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: grid; place-items: center; background: #ab6c46; color: #fff; }
.dashboard-user__avatar svg { width: 28px; height: 28px; }
.dashboard-user__info { flex: 1; min-width: 0; }
.dashboard-user__info h2 { font-size: 17px; margin: 0 0 4px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.dashboard-user__info p { font-size: 11.5px; margin: 0; color: #866f61; line-height: 1.3; overflow-wrap: anywhere; }
.dashboard-user__copy { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; color: #8a4b2c; border-radius: 10px; }
.dashboard-user__copy:hover { background: #f4e4d8; }
.dashboard-user__copy svg { width: 22px; height: 22px; }
.dashboard-status { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: 17px; margin-top: 12px; }
.dashboard-status__symbol { color: #99725a; width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; background: #f0e1d6; border-radius: 50%; }
.dashboard-status__symbol svg { width: 22px; height: 22px; }
.dashboard-status__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dashboard-status__text strong { font-size: 13px; line-height: 1.2; font-weight: 800; }
.dashboard-status__text small { font-size: 11.5px; color: #796354; }
.dashboard-chevron { width: 19px; height: 19px; flex: 0 0 auto; color: #995c3c; }
.dashboard-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.dashboard-stat { min-width: 0; border-radius: 17px; padding: 13px 12px 12px; min-height: 86px; display: flex; flex-direction: column; gap: 7px; }
.dashboard-stat__heading { display: flex; align-items: center; gap: 6px; color: #715344; font-size: 12px; line-height: 1.2; }
.dashboard-stat__heading svg { color: #a05e3c; width: 20px; height: 20px; flex: 0 0 20px; }
.dashboard-stat strong { font-size: 18px; font-weight: 800; line-height: 1.05; letter-spacing: -.4px; }
.dashboard-stat small { margin-top: -3px; color: #97664d; font-size: 11px; }
.dashboard-menu { display: flex; flex-direction: column; border-radius: 18px; margin-top: 15px; overflow: hidden; padding: 4px 0; }
.dashboard-menu__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 14px; border: 0; text-decoration: none; color: #412820; background: transparent; text-align: left; font-size: 14px; font-weight: 650; }
.dashboard-menu__item:hover, .dashboard-menu__item[aria-expanded="true"] { background: #f8e8dd; }
.dashboard-menu__item + .dashboard-menu__item { border-top: 1px solid #efded3; }
.dashboard-menu__item .dashboard-menu__icon { flex: 0 0 20px; width: 20px; height: 20px; color: #934f31; }
.dashboard-menu__item span { flex: 1; }
.dashboard-details { margin-top: 12px; border-radius: 18px; padding: 17px; }
.dashboard-details h3 { margin: 0 0 8px; font-size: 16px; }
.dashboard-details p { margin: 0 0 12px; color: #745a4e; font-size: 13px; line-height: 1.5; }
.dashboard-details__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-details button, .dashboard-details a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 9px 12px; border-radius: 11px; border: 1px solid #dfc4b3; background: #fff9f5; color: #753e24; font-size: 12px; font-weight: 750; text-decoration: none; }
.dashboard-details .dashboard-details__primary { background: #874c2f; border-color: #874c2f; color: #fff; }
.dashboard-feedback { margin-top: 10px; border-radius: 12px; padding: 10px 12px; background: #f4e4d7; color: #653a27; font-size: 12px; line-height: 17px; }
@media (max-width: 767px) {
 .page--inner:has(.profile-dashboard:not([hidden])) .inner-header { justify-content: space-between; padding-inline: 15px; }
 .page--inner:has(.profile-dashboard:not([hidden])) .inner-header__title,
 .page--inner:has(.profile-dashboard:not([hidden])) .inner-back { display: none; }
 .page--inner:has(.profile-dashboard:not([hidden])) .inner-header .brand { display: inline-flex; }
 .page--inner:has(.profile-dashboard:not([hidden])) .inner-header .brand__logo { width: 36px; height: 28px; }
 .page--inner:has(.profile-dashboard:not([hidden])) .inner-header .brand__name { font-size: 18px; }
 .page--inner:has(.profile-dashboard:not([hidden])) .inner-header .nav { display: block; }
 .page--inner:has(.profile-dashboard:not([hidden])) .nav__toggle { width: 40px; height: 40px; padding: 9px; border-radius: 13px; }
 .page--inner:has(.profile-dashboard:not([hidden])) .nav__bar { width: 20px; }
 .page--inner:has(.profile-dashboard:not([hidden])) .nav__toggle[aria-expanded="true"] .nav__bar:first-child { transform: translateY(5.4px) rotate(45deg); }
 .page--inner:has(.profile-dashboard:not([hidden])) .nav__toggle[aria-expanded="true"] .nav__bar:last-child { transform: translateY(-5.4px) rotate(-45deg); }
 .profile-dashboard__title { font-size: 22px; }
}
@media (min-width: 768px) {
 .page--inner .profile-dashboard { max-width: 520px; padding: 6px 0 26px; }
 .page--inner .profile-dashboard__title { font-size: 28px; margin-bottom: 18px; }
 .page--inner .dashboard-stat { min-height: 102px; }
}
@media (max-width: 340px) {
 .dashboard-user { padding: 10px; gap: 9px; }
 .dashboard-menu__item { gap: 9px; padding-inline: 10px; font-size: 13px; }
 .dashboard-stat { padding: 11px 9px; }
 .dashboard-stat__heading { font-size: 11px; }
 .dashboard-stat strong { font-size: 16px; }
}

/* Чистый логотип без белой плашки */
.brand__logo,
.auth-card__cat {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* SVG logo: no backdrop and clean vector rendering */
.brand__logo,.auth-card__cat { object-fit:contain; background:none!important; border:0!important; box-shadow:none!important; image-rendering:auto; }
/* Personal dashboard: two-column desktop, original mobile stack */
@media (min-width: 900px) {
  .page--inner .account-main { max-width: 1160px; align-items:stretch; }
  .page--inner .profile-dashboard { max-width: 1060px; width:100%; display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, .86fr); grid-template-rows:auto auto auto 1fr; align-items:start; column-gap:26px; row-gap:17px; padding:28px 0 60px; }
  .profile-dashboard__title { grid-column:1 / -1; font-size:34px!important; margin:0 0 7px!important; }
  .dashboard-user { grid-column:1; grid-row:2; min-height:105px; padding:20px 23px; border-radius:23px; }
  .dashboard-user__avatar { width:58px; height:58px; flex-basis:58px; }
  .dashboard-user__info h2 { font-size:22px; }
  .dashboard-user__info p { font-size:14px; }
  .dashboard-status { grid-column:1; grid-row:3; margin:0; padding:20px; min-height:96px; border-radius:22px; }
  .dashboard-status__text strong { font-size:17px; }
  .dashboard-status__text small { font-size:13px; }
  .dashboard-stats { grid-column:1; grid-row:4; margin:0; gap:15px; }
  .dashboard-stat { padding:22px!important; min-height:135px!important; border-radius:22px; }
  .dashboard-stat strong { font-size:24px; }
  .dashboard-stat__heading { font-size:14px; }
  .dashboard-menu { grid-column:2; grid-row:2 / 5; margin:0; padding:8px 0; border-radius:23px; }
  .dashboard-menu__item { min-height:73px; padding:18px 22px; font-size:16px; }
  .dashboard-menu__item .dashboard-menu__icon { width:24px;height:24px;flex-basis:24px; }
  .dashboard-feedback { grid-column:1 / -1; }
}
.detail-main { padding-top:12px!important; }
.detail-backrow { max-width:1020px; margin: 0 auto 18px; }
.detail-back { color:#8b5135; text-decoration:none; font-weight:750; font-size:14px; }
.detail-layout { max-width:1020px; margin:0 auto; }
.detail-heading { margin-bottom:20px; }
.detail-eyebrow { color:#9e6d52; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:1.2px; }
.detail-heading h1 { margin:8px 0; font-size:clamp(26px,4vw,39px); letter-spacing:-1.2px; }
.detail-heading p { margin:0; font-size:14px; color:#846b5d; line-height:1.5; }
.detail-card { padding:23px; border:1px solid #ecd7c8; border-radius:23px; background:#fff7f1; }
.detail-info h2 { font-size:20px; margin:0 0 10px; }
.detail-info p { color:#765b4c; font-size:14px; line-height:1.6; }
.detail-action { display:inline-flex; justify-content:center; align-items:center; width:auto; min-height:43px; border:0; padding:12px 18px; margin-top:12px; border-radius:12px; background:#864b30; color:white; text-decoration:none; font-weight:750; font-size:14px; cursor:pointer; }
.detail-plan-list { display:grid; gap:10px; margin-top:18px; }
.detail-plan-list a { display:flex;justify-content:space-between;gap:10px;padding:15px 16px;border-radius:14px;background:#fff;border:1px solid #e9d2c2;color:#41281c;text-decoration:none; }
.detail-bonus { display:flex; justify-content:space-between; gap:12px; padding:16px 0; border-bottom:1px solid #ebd6c8; font-size:14px; }
.detail-bonus strong { color:#8b5032; white-space:nowrap; }
.detail-small { font-size:12px!important; }
.detail-settings-form { display:flex;flex-direction:column;align-items:start;gap:10px;margin-top:20px; }
.detail-settings-form label { font-size:13px;font-weight:750; }
.detail-settings-form input { width:100%;border:1px solid #dfc5b6;background:#fff;border-radius:12px;padding:13px 14px;font-size:15px; }
.detail-logout { display:block; margin-top:20px; background:transparent; border:1px solid #d8baa8;color:#82452b;border-radius:12px;min-height:43px;padding:10px 18px;cursor:pointer;font-weight:700; }
.detail-feedback { color:#6a4a37; }
@media (min-width:900px) {
 .detail-layout { display:grid;grid-template-columns: minmax(0,.76fr) minmax(0,1.24fr);align-items:start;gap:32px; margin-top:34px; }
 .detail-card { padding:32px; }
}
@media (max-width:767px) {
 .page--detail .detail-main { padding:10px 12px 32px!important; }
 .detail-backrow { margin:0 0 15px; }
 .detail-card { padding:18px; }
 .page--detail .inner-header__title { font-size:17px; }
}
