.identity-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  max-width: 960px;
  margin: clamp(0px, 3vw, 32px) auto 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 55px #1831290e;
  overflow: hidden;
}
.identity-story {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 27px;
  padding: clamp(28px, 5vw, 59px);
  color: #fff;
  background: radial-gradient(ellipse at 90% 110%, #2d6250, transparent 70%), #142e2d;
  overflow: hidden;
}
.identity-story h2 { max-width: 13ch; font-size: clamp(35px, 4vw, 52px); font-weight: 590; line-height: 1.04; }
.identity-story p { margin-top: 15px; max-width: 31ch; color: #d3e0da; }
.identity-story-mark, .access-icon {
  display: inline-grid;
  place-items: center;
  align-self: flex-start;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #e7f1e7;
  color: #254c3d;
}
.identity-story-mark { background: #c8ef8f; }
.identity-story-mark .icon, .access-icon .icon { width: 24px; height: 24px; }
.identity-benefits { display: grid; gap: 12px; }
.identity-benefits span { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #eff6ee; }
.identity-benefits .icon { color: #caecaa; }
.identity-wave { margin: auto -24px -18px; min-height: 115px; display: flex; align-items: flex-end; opacity: .85; }
.identity-wave svg { display: block; }
.identity-form.card { border: 0; border-radius: 0; padding: clamp(26px, 4vw, 49px); }
.identity-form .back { margin-bottom: 21px; }
.identity-tabs { margin-bottom: 20px; }
.identity-form h1 { font-size: clamp(30px, 3.4vw, 42px); }
.identity-form h1:focus { outline: none; }
.identity-lead { margin: 10px 0 19px; color: var(--muted); overflow-wrap: anywhere; }
#identity-form { display: grid; gap: 8px; }
#identity-form label { font-size: 14px; font-weight: 650; }
#identity-form input:not([type=checkbox]) {
  color: var(--ink);
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #a7bdb0;
  border-radius: 9px;
  background: #fbfcfb;
}
#identity-form input + label { margin-top: 5px; }
#identity-form #identity-code { font: 600 21px var(--mono); letter-spacing: .24em; }
.identity-hint { color: var(--muted); font-size: 14px; }
.identity-consent { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0 5px; font-size: 14px; }
.identity-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.identity-consent label { cursor: pointer; }
.identity-consent a, .identity-policy { display: block; font-size: 13px; margin-top: 4px; }
.identity-policy { margin-top: 16px; }
.privacy-footer { flex-wrap: wrap; }
html[data-portable] .online-privacy { display: none; }
.privacy-document { width: min(100%, 800px); margin: 0 auto; padding: clamp(20px, 5vw, 54px); overflow-wrap: anywhere; }
.privacy-document h1 { font-size: clamp(29px, 5vw, 48px); margin-bottom: 20px; }
.privacy-document h2 { margin: 28px 0 10px; font-size: clamp(21px, 3vw, 26px); }
.privacy-document h3 { margin: 20px 0 7px; font-size: 18px; }
.privacy-document p + p, .privacy-document li + li { margin-top: 9px; }
.privacy-document ul { padding-inline-start: 22px; margin: 8px 0 12px; }
.privacy-document a { color: var(--green); text-decoration: underline; }
.privacy-document .privacy-version { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.privacy-draft { margin-bottom: 14px; font-weight: 650; }
.identity-status:not(:empty) { color: #79522f; font-size: 14px; }
#identity-form .btn { width: 100%; margin-top: 4px; min-height: 46px; }
.identity-form .btn:disabled { opacity: .58; }
.identity-divider { display: flex; gap: 11px; align-items: center; margin: 19px 0 12px; color: var(--muted); font-size: 13px; }
.identity-divider::before, .identity-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.identity-providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.identity-provider { min-height: 45px; padding-inline: 8px; white-space: nowrap; }
.provider-id { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; font-weight: 800; }
.provider-yandex { background: #f22327; color: white; }
.provider-vk { background: #0069e6; color: white; font: 800 10px var(--font); }
.identity-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px 14px; margin-top: 18px; }
.identity-controls button { border: 0; padding: 0; background: transparent; font-size: 14px; }
.identity-controls button:disabled { text-decoration: none; color: var(--muted); }
.access-card { max-width: 660px; padding: clamp(23px, 4.5vw, 44px); }
.access-card h1, .access-card h2 { margin: 15px 0 10px; }
.access-card p { color: var(--muted); }
.access-card .ask-actions { margin-top: 20px; }
.lesson-locked { background: #fbfcfa; }
.lesson-status, .lesson-row .done { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; text-align: right; }
.lesson-status > span { max-width: 85px; }
.guest-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 13px 16px;
  margin: 10px 0 18px;
  background: #eaf3e8;
  border: 1px solid #cadbca;
  border-radius: 11px;
}
.guest-meter p { display: grid; gap: 2px; }
.guest-meter p span { font-size: 13px; color: #42594d; }
.guest-meter .btn { min-height: 36px; }
.account-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.account-title .eyebrow { color: var(--green); margin-bottom: 7px; }
.account-title h1, .account-title p { overflow-wrap: anywhere; }
.account-title p { margin-top: 6px; color: var(--muted); }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 17px; align-items: start; }
.account-completion { border-radius: 7px; padding: 4px 8px; background: #eaf3e8; color: #335749; font: 600 14px var(--mono); white-space: nowrap; }
.account-course progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 8px; color: var(--green); overflow: hidden; background: #e9eeea; }
.account-course progress::-webkit-progress-bar { background: #e9eeea; }
.account-course progress::-webkit-progress-value { background: #55876a; }
.account-course progress::-moz-progress-bar { background: #55876a; }
.account-lessons { margin-top: 17px; }
.account-lessons summary { width: fit-content; color: #355c4c; cursor: pointer; font-size: 14px; font-weight: 650; }
.account-course li a > span { color: var(--muted); font: 600 12px var(--mono); }
.account-lesson-state { display: inline-flex; align-items: center; flex: none; gap: 6px; color: var(--muted); font-size: 13px; }
.account-score { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 16px; }
.account-score div { display: grid; background: #eaf4e8; border-radius: 9px; color: #2f5747; padding: 10px 13px; }
.account-score div + div { background: #f7eee5; color: #69492e; }
.account-score strong { font-size: clamp(25px, 3vw, 34px); line-height: 1.13; }
.account-score span { font-size: 13px; }
.account-answers table { border-collapse: collapse; width: 100%; font-size: 14px; }
.account-answers :is(th, td) { padding: 8px 4px; text-align: right; border-bottom: 1px solid var(--line); }
.account-answers th:first-child { text-align: left; }
.account-answers tbody th { font-weight: 500; }
.account-answers thead th { font-size: 12px; color: var(--muted); }
.account-activity h2 { margin-bottom: 12px; }
.account-activity p { display: flex; justify-content: space-between; gap: 9px; font-size: 14px; }
.account-activity strong { flex: none; }

@media (max-width: 750px) {
  .identity-layout, .account-layout { grid-template-columns: 1fr; }
  .identity-story { display: none; }
  .identity-layout { max-width: 520px; }
  .lesson-status > span, .lesson-row .done > span { display: none; }
}
@media (max-width: 390px) {
  .identity-form.card { padding: 20px; }
  .account-lesson-state > span { display: none; }
}
