/* Education content only; the shared site header keeps its existing styles. */
.EDU_page {
    --color-bg-page: #F5F7FA;
    --color-bg-surface: #FFFFFF;
    --color-bg-subtle: #F8FAFC;
    --color-text-primary: #172033;
    --color-text-secondary: #667085;
    --color-text-muted: #98A2B3;
    --color-text-inverse: #FFFFFF;
    --color-border-default: #DDE3EC;
    --color-border-hover: #C5CEDA;
    --color-divider: #EAECF0;
    --color-action-primary: #2563EB;
    --color-action-primary-hover: #1D4ED8;
    --color-action-primary-subtle: #EFF6FF;
    --color-status-blue-bg: #EAF2FF;
    --color-status-blue-text: #2458B8;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --control-height: 40px;
    --radius-card: 10px;
    --radius-control: 8px;
    --radius-small: 6px;
    --radius-round: 9999px;
    --sidebar-width: 240px;
    --sidebar-width-collapsed: 72px;
    --shadow-hover: 0 4px 12px rgba(23, 32, 51, 0.08);
    --shadow-dropdown: 0 8px 24px rgba(23, 32, 51, 0.12);
    --input-focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.14);
    --duration-fast: 150ms;
    --ease-standard: ease-out;
    --color-education-hero: #0D1B26;
    --color-education-hero-light: #1C303F;
    --color-education-hero-text: #BDD0DE;
    --color-education-wave: #228BC0;
    --color-education-glow: rgba(0, 157, 137, 0.14);
    --education-anchor-offset: 96px;
    --education-width: 1310px;
    margin: 0;
    padding: var(--education-anchor-offset) var(--space-4) calc(var(--space-8) * 2);
    min-height: 100vh;
    background: var(--color-bg-page);
    color: var(--color-text-primary);
    font-family: 'Yandex Sans Display', Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
}

.EDU_page *, .EDU_page *::before, .EDU_page *::after { box-sizing: border-box; font-family: inherit; }
.EDU_page :where(h1, h2, h3, h4, p, ul, ol, dl, dd) { margin: 0; padding: 0; color: inherit; letter-spacing: normal; }
.EDU_page :where(a, summary) { -webkit-tap-highlight-color: transparent; transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
.EDU_page a { color: inherit; text-decoration: none; }
.EDU_page #max-channel a { color: var(--color-action-primary); text-decoration: underline; }
.EDU_page #max-channel a:hover { color: var(--color-action-primary-hover); }
.EDU_page :where(a, summary):focus-visible { outline: 2px solid var(--color-action-primary); outline-offset: 2px; box-shadow: var(--input-focus-ring); }
.EDU_page [id] { scroll-margin-top: var(--education-anchor-offset); }
.EDU_page strong { font-weight: 600; }
.EDU_page summary { cursor: pointer; list-style: none; }
.EDU_page summary::-webkit-details-marker { display: none; }
.EDU_sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.EDU_icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.EDU_skip { position: fixed; top: var(--education-anchor-offset); left: var(--space-4); z-index: 10; padding: var(--space-2) var(--space-4); border-radius: var(--radius-control); background: var(--color-bg-surface); clip-path: inset(50%); }
.EDU_skip:focus { clip-path: none; }
.EDU_shell { width: 100%; max-width: var(--education-width); margin-inline: auto; }
.EDU_hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: var(--space-8);
    padding: calc(var(--space-6) * 2);
    border-radius: var(--radius-card);
    background: radial-gradient(ellipse at 100% 100%, var(--color-education-glow), transparent 55%), linear-gradient(120deg, var(--color-education-hero-light), var(--color-education-hero) 70%);
    color: var(--color-text-inverse);
}
.EDU_waves { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; color: var(--color-education-wave); opacity: 0.38; pointer-events: none; }
.EDU_heroCopy { min-width: 0; }
.EDU_heroLabel { display: block; margin-bottom: var(--space-3); color: var(--color-education-hero-text); font-size: 14px; line-height: 20px; }
.EDU_hero h1 { font-size: 40px; line-height: 48px; font-weight: 600; }
.EDU_hero p { margin-top: var(--space-4); color: var(--color-education-hero-text); font-size: 16px; line-height: 24px; }
.EDU_hero .EDU_button { margin-top: var(--space-6); }
.EDU_button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-height); padding: var(--space-2) var(--space-4); border-radius: var(--radius-control); font-size: 16px; line-height: 24px; font-weight: 500; }
.EDU_page .EDU_buttonPrimary { color: var(--color-text-inverse); background: var(--color-action-primary); }
.EDU_page .EDU_buttonPrimary:hover { background: var(--color-action-primary-hover); }
.EDU_hero .EDU_button:focus-visible { outline-color: var(--color-text-inverse); }
.EDU_heroBrand { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.EDU_heroBrand img { display: block; width: 160px; height: 160px; object-fit: contain; }
.EDU_heroBrand span { font-size: 26px; line-height: 34px; font-weight: 600; }
.EDU_Body { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); align-items: start; gap: var(--space-8); padding-top: var(--space-8); }
.EDU_sidebar { min-width: 0; position: sticky; top: var(--education-anchor-offset); max-height: calc(100vh - var(--education-anchor-offset) - var(--space-4)); overflow-y: auto; }
.EDU_navHeading { display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-height); padding: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--color-text-secondary); border-radius: var(--radius-control); }
.EDU_navHeading > .EDU_icon:first-child { color: var(--color-action-primary); }
.EDU_chevron { margin-left: auto; width: 16px; height: 16px; flex-basis: 16px; }
.EDU_page details[open] > summary > .EDU_chevron { transform: rotate(90deg); }
.EDU_navigationBody { padding-top: var(--space-3); }
.EDU_navItem { display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-height); padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); font-size: 16px; line-height: 24px; }
.EDU_navItem > .EDU_icon { margin-left: auto; }
.EDU_page .EDU_navItemActive { background: var(--color-action-primary-subtle); color: var(--color-action-primary); font-weight: 500; }
.EDU_page .EDU_navItemActive:hover { background: var(--color-status-blue-bg); }
.EDU_page summary:hover { background: var(--color-bg-surface); }
.EDU_contents { margin: var(--space-6) 0; padding-inline: var(--space-3); }
.EDU_navCaption { display: block; margin-bottom: var(--space-2); font-size: 13px; line-height: 18px; color: var(--color-text-secondary); }
.EDU_contents a { display: flex; align-items: center; min-height: var(--control-height); padding: var(--space-2) 0 var(--space-2) var(--space-3); border-left: 1px solid var(--color-border-default); color: var(--color-text-secondary); font-size: 14px; line-height: 20px; }
.EDU_contents a:hover { color: var(--color-action-primary); border-left-color: var(--color-action-primary); }
.EDU_otherTopics { padding-top: var(--space-3); border-top: 1px solid var(--color-border-default); color: var(--color-text-secondary); }
.EDU_navHint { padding: var(--space-2) var(--space-3); font-size: 13px; line-height: 18px; }
.EDU_topicList { list-style: none; padding: 0 var(--space-3); }
.EDU_topicList li { padding: var(--space-2) 0; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.EDU_MainBox { min-width: 0; }
.EDU_container { padding: var(--space-8); border: 1px solid var(--color-border-default); border-radius: var(--radius-card); background: var(--color-bg-surface); overflow-wrap: anywhere; }
.EDU_articleHeader { display: block; padding-bottom: var(--space-6); border-bottom: 1px solid var(--color-divider); }
.EDU_eyebrow { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-secondary); font-size: 14px; line-height: 20px; margin-bottom: var(--space-3); }
.EDU_articleHeader h2 { max-width: 720px; font-size: 26px; line-height: 34px; font-weight: 600; }
.EDU_articleHeader p { margin-top: var(--space-3); max-width: 720px; color: var(--color-text-secondary); }
.EDU_section { margin-top: var(--space-6); }
.EDU_section h3 { margin-bottom: var(--space-3); font-size: 18px; line-height: 26px; font-weight: 600; }
.EDU_section > p { max-width: 720px; }
.EDU_fields { margin-top: var(--space-6); }
.EDU_fields h4 { margin-bottom: var(--space-3); font-size: 16px; line-height: 24px; font-weight: 600; }
.EDU_list { display: grid; gap: var(--space-2); list-style: disc; padding-left: var(--space-6); }
.EDU_list li { padding-left: var(--space-1); }
.EDU_list li::marker { color: var(--color-action-primary); }
.EDU_fieldDescription { display: block; max-width: 640px; margin-top: var(--space-1); font-size: 14px; line-height: 20px; color: var(--color-text-secondary); }
.EDU_explanations { display: grid; gap: var(--space-4); }
.EDU_explanations dt { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font-weight: 600; margin-bottom: var(--space-1); }
.EDU_explanations dd { max-width: 720px; color: var(--color-text-secondary); }
.EDU_badge { padding: var(--space-1) var(--space-2); border-radius: var(--radius-round); background: var(--color-status-blue-bg); color: var(--color-status-blue-text); font-size: 12px; line-height: 16px; font-weight: 500; }
.EDU_note { display: flex; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-6); padding: var(--space-4); border-left: 2px solid var(--color-action-primary); border-radius: 0 var(--radius-small) var(--radius-small) 0; background: var(--color-bg-subtle); }
.EDU_note > .EDU_icon { color: var(--color-action-primary); }
.EDU_note h3 { margin-bottom: var(--space-1); font-size: 16px; line-height: 24px; font-weight: 600; }
.EDU_note p { max-width: 720px; color: var(--color-text-secondary); }
@media (max-width: 1023px) {
    .EDU_hero { grid-template-columns: minmax(0, 1fr) 160px; padding: var(--space-8); }
    .EDU_heroBrand img { width: 128px; height: 128px; }
    .EDU_Body { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding-top: var(--space-6); }
    .EDU_sidebar { position: static; max-height: none; overflow: visible; }
    .EDU_navHeading { padding-inline: var(--space-3); }
    .EDU_navigationBody { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); align-items: start; gap: var(--space-4); }
    .EDU_contents { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
    .EDU_otherTopics { grid-column: 1; }
}
@media (max-width: 767px) {
    .EDU_page { padding-inline: var(--space-4); padding-bottom: var(--space-8); }
    .EDU_hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-6); }
    .EDU_hero h1 { font-size: 26px; line-height: 34px; }
    .EDU_heroBrand { order: -1; flex-direction: row; justify-content: flex-start; gap: var(--space-3); }
    .EDU_heroBrand img { width: 48px; height: 48px; }
    .EDU_heroBrand span { font-size: 18px; line-height: 26px; }
    .EDU_hero .EDU_button { width: 100%; }
    .EDU_navigationBody { display: block; padding-top: var(--space-2); }
    .EDU_contents { margin-block: var(--space-4); }
    .EDU_container { padding: var(--space-4); }
    .EDU_articleHeader h2 { font-size: 22px; line-height: 30px; }
    .EDU_waves { opacity: 0.22; }
}
@media (prefers-reduced-motion: reduce) {
    .EDU_page :where(a, summary) { transition: none; }
}

.EDU_container > .EDU_section { display: none; margin-top: 0; }
.EDU_container > .EDU_section:target,
.EDU_container > .EDU_section:has(:target),
.EDU_container:not(:has(.EDU_section:target, .EDU_section :target)) > .EDU_section:first-child { display: block; }
.EDU_container > .EDU_section > h3 { font-size: 22px; line-height: 30px; }
.EDU_section > h4 { margin-top: var(--space-6); margin-bottom: var(--space-2); }

#iphone-push > p { line-height: 1.55; }
#iphone-push > p + p { margin-top: var(--space-3); }
#iphone-push > a { display: block; width: fit-content; max-width: 100%; }
#iphone-push > img, #iphone-push > a { margin-top: var(--space-4); }
#iphone-push img { display: block; max-width: 100%; height: auto; }
