/* Оболочка кабинета и входа; общий стиль существующего макета. */
.account-header a,.my-orders-button,.login-button { text-decoration: none; }
.account-bonus { color: var(--ui-ink); }
.my-orders-button { align-items: center; justify-content: center; }
.account-footer .text-button { color: inherit; }
.cabinet-main { padding-block: 32px 48px; }
.cabinet-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.order-page .cabinet-heading h1 { width: auto; margin: 0; font-size: clamp(32px,4vw,44px); line-height: 1.05; }
.cabinet-heading p { margin-top: 12px; font-size: 15px; color: var(--color-text-secondary); }
.cabinet-heading .button { padding-inline: 24px; }
.cabinet-layout,.cabinet-aside { display: grid; gap: 24px; min-width: 0; align-items: start; }
.cabinet-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 410px; text-align: center; padding: 36px 24px; }
.cabinet-empty-art { position: relative; margin-bottom: 24px; }
.cabinet-empty-art img { width: 68px; height: 88px; object-fit: contain; transform: rotate(-7deg); }
.cabinet-empty-art span { position: absolute; bottom: 8px; left: 45px; background: var(--ui-yellow); padding: 7px 10px; border: 1.5px solid var(--ui-ink); border-radius: 7px; transform: rotate(7deg); font-size: 13px; font-weight: 650; }
.order-page .cabinet-empty h2 { font-size: clamp(25px,3vw,32px); }
.cabinet-empty>p { max-width: 420px; font-size: 15px; line-height: 1.6; color: var(--color-text-secondary); margin: 16px 0 24px; }
.cabinet-primary { background: var(--ui-yellow); color: var(--ui-ink); border: 1.5px solid var(--ui-ink); box-shadow: 2px 3px 0 var(--ui-ink); padding-inline: 24px; }
.service-secondary-link { display: block; color: var(--color-text-secondary); text-align: center; font-size: 14px; margin-top: 20px; }
.cabinet-offer { position: relative; background: var(--ui-lilac); }
.cabinet-offer>img { position: absolute; right: 20px; top: 24px; width: 48px; height: 60px; object-fit: contain; transform: rotate(8deg); }
.order-page .cabinet-offer h2 { max-width: 70%; font-size: 36px; margin: 18px 0; }
.cabinet-offer h2 span { display: block; }
.cabinet-offer p,.cabinet-help p { font-size: 14px; line-height: 1.6; margin: 14px 0; color: var(--color-text-secondary); }
.cabinet-offer>a,.cabinet-help .text-button { font-size: 14px; color: var(--ui-ink); }
.cabinet-help>img { float: right; }
.order-page .cabinet-help h2 { font-size: 22px; }
.login-main { padding-block: clamp(24px,5dvh,60px); }
.login-layout { max-width: 900px; margin: auto; display: grid; gap: 24px; align-items: center; }
.login-story { display: none; }
.login-card { width: 100%; max-width: 460px; margin: auto; padding: 30px 24px; }
.order-page .login-card h2 { font-size: 30px; }
.login-lead { font-size: 15px; color: var(--color-text-secondary); line-height: 1.6; margin: 16px 0 24px; overflow-wrap: anywhere; }
.login-lead strong { color: var(--ui-ink); }
.login-submit,.login-change { width: 100%; margin-top: 20px; min-height: 48px; }
.login-change { background: var(--ui-yellow); border: 1.5px solid var(--ui-ink); }
.login-footnote { font-size: 14px; line-height: 1.6; color: var(--color-text-secondary); margin-top: 24px; }
.login-back { display: block; width: fit-content; margin: 24px auto 0; font-size: 14px; color: var(--color-text-secondary); }
.service-dialog { width: min(440px,calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1.5px solid var(--ui-ink); border-radius: 20px; padding: 30px; color: var(--ui-ink); background: #fff; box-shadow: var(--ui-shadow); }
.service-dialog::backdrop { background: #10233c85; }
.service-dialog>img { margin-bottom: 20px; }
.service-dialog h2 { font-size: 27px; line-height: 1.1; }
.service-dialog p { font-size: 15px; line-height: 1.6; margin: 16px 0 24px; color: var(--color-text-secondary); }
.service-dialog .button { width: 100%; }
.service-dialog-close { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--color-bg-sheet); color: var(--ui-ink); font: inherit; font-size: 24px; cursor: pointer; }
@media(min-width:800px) {
  .cabinet-layout { grid-template-columns: minmax(0,1fr) 300px; }
  .login-layout { grid-template-columns: 1fr 1fr; gap: 44px; }
  .login-story { display: block; position: relative; padding-bottom: 120px; }
  .login-sticker { display: inline-block; padding: 7px 10px; border: 1.5px solid var(--ui-ink); border-radius: 6px; background: var(--ui-mint); transform: rotate(-3deg); font-size: 13px; font-weight: 650; }
  .order-page .login-story h1 { width: auto; font-size: clamp(36px,4vw,48px); margin-top: 24px; letter-spacing: -1.5px; }
  .login-story p { max-width: 300px; font-size: 16px; line-height: 1.6; margin-top: 20px; color: var(--color-text-secondary); }
  .login-story>img { position: absolute; bottom: 0; right: 40px; width: 100px; height: 124px; object-fit: contain; transform: rotate(9deg); }
  .login-card { padding: 36px 30px; }
}
@media(max-width:599px) { .cabinet-heading .button { width: 100%; } .cabinet-empty { min-height: 380px; } }

.login-documents { max-width: 900px; margin: 24px auto 0; text-align: center; font-size: 12px; line-height: 1.8; color: var(--color-text-secondary); }
.login-documents a,.quiz-help>a { color: inherit; text-underline-offset: 2px; }
