/* Adilet: palette and typography from the supplied brand manual. Public pages only. */
@font-face { font-family: Geist; src: url('../fonts/brand/Geist-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Geist; src: url('../fonts/brand/Geist-Medium.ttf') format('truetype'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: Geist; src: url('../fonts/brand/Geist-Bold.ttf') format('truetype'); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: Oswald; src: url('../fonts/brand/Oswald-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Oswald; src: url('../fonts/brand/Oswald-Medium.ttf') format('truetype'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: Oswald; src: url('../fonts/brand/Oswald-Bold.ttf') format('truetype'); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
    --brand-ink: #262033;
    --brand-deep: #24104F;
    --brand-purple: #290081;
    --brand-blue: #96C5FF;
    --brand-orange: #FE5200;
    --brand-yellow: #FFF826;
    --brand-surface: #F6F4FA;
    --brand-line: #E5DFF0;
}
body { font-family: Geist, Arial, sans-serif; color: var(--brand-ink); line-height: 1.5; background: #fff; }
h1, h2, h3 { font-family: Oswald, 'Arial Narrow', Arial, sans-serif; font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
h2 { letter-spacing: -.015em; }
button, input, select, textarea { font-family: inherit; }
::selection { color: var(--brand-deep); background: var(--brand-yellow); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--brand-purple); outline-offset: 4px; }
.brand-footer :focus-visible, .brand-hero :focus-visible { outline-color: var(--brand-yellow); }
.container-figma { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 100px); }
.section-1 > .container { max-width: 1240px; padding-inline: 20px; }
.brand-header { border-bottom: 1px solid var(--brand-line); }
.brand-logo { display: block; width: 200px; max-width: 100%; height: auto; }
.brand-header .brand-logo { width: 220px; }
.brand-header .menu_list { border-top: 1px solid var(--brand-line); }
.brand-header .menu_list > div > ul > li > :is(a, button) { font-size: 17px; font-weight: 500; }
.brand-header .menu_list a { transition: color .18s ease; }
.brand-header .menu_list a:hover { color: var(--brand-orange); }
.brand-header :is(.btn-register, a.border-2) { border-radius: 10px; }
.brand-header #lang-toggle { border: 1px solid var(--brand-line); border-radius: 10px; }
.btn-register, .btn-purple { background: var(--brand-purple); color: white; }
.btn-orange { background: var(--brand-orange); color: var(--brand-ink); }
:is(.btn-register, .btn-purple, .btn-orange) { transition: background-color .18s ease, box-shadow .18s ease; }
:is(.btn-register, .btn-purple):hover { background: var(--brand-deep); box-shadow: 0 5px 16px #29008120; }
.btn-orange:hover { background: var(--brand-yellow); }
.brand-home h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
.brand-home h3 { font-size: 1.65rem; }
.brand-home article { box-shadow: none; border: 1px solid var(--brand-line); }
.brand-home article h3 { line-height: 1.25; }
.brand-home article p, .brand-home article li { line-height: 1.5; }
.brand-home .hero-tokayev { background: var(--brand-purple); }
.brand-hero .hero-tokayev::after { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--brand-yellow); }
.brand-hero .hero-tokayev > img[aria-hidden] { display: none; }
.brand-hero .hero-tokayev .container-figma > div:first-child { border-radius: 12px; }
.brand-hero .hero-tokayev p:first-child { font-family: Oswald, 'Arial Narrow', Arial, sans-serif; font-weight: 400; font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.35; }
.brand-home :is(.stat-icon-purple, .stat-blob-purple) { background: var(--brand-purple); }
.brand-home :is(.stat-icon-orange, .stat-blob-orange) { background: var(--brand-orange); }
.brand-home .course-overlay { background: linear-gradient(180deg, transparent, #24104F80); }
.brand-footer { background: var(--brand-deep); border-top: 5px solid var(--brand-purple); }
.brand-footer > div > div:first-child > div:first-child { max-width: 520px; }
.brand-logos { display: flex; align-items: center; gap: 12px; }
.brand-footer > div > div:last-child { border-top: 1px solid #ffffff26; padding-top: 24px; opacity: .8; }
.brand-footer a:hover { color: var(--brand-blue); }
.page-preloader { background: #F6F4FAed; }
.page-preloader__spinner { border-color: var(--brand-line); border-top-color: var(--brand-purple); }
@media (min-width: 1024px) {
    .brand-hero.block2 { height: 680px; }
    .brand-hero .hero-tokayev .container-figma > div:first-child { height: 540px; width: 42%; max-width: 480px; }
}
@media (max-width: 1023px) {
    .brand-header > div:first-child { height: 76px; padding-block: 12px; }
    .brand-header .menu_list { top: 76px; height: calc(100dvh - 76px); }
    .brand-header .brand-logo { width: 168px; }
    .brand-header .menu_list > div > ul > li > :is(a, button) { font-size: 20px; }
    .brand-footer > div > div:first-child { flex-wrap: wrap; }
}
@media (max-width: 639px) {
    .brand-hero.block2 { height: 680px; }
    .brand-hero .hero-tokayev p:first-child { display: block; overflow: visible; -webkit-line-clamp: unset; }
    .brand-hero .hero-tokayev .container-figma { gap: 24px; padding-block: 24px; }
    .brand-hero .hero-tokayev .container-figma > div:first-child { height: 220px; }
    .brand-footer { padding-block: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Keep the original academy mark at its natural aspect ratio. */
.brand-header .brand-logo { width: auto; height: 64px; }
.brand-header .brand-logo-partner { width: auto; height: 52px; }
.brand-footer .brand-logo { width: auto; height: 60px; }
.brand-footer .brand-logo-partner { width: auto; height: 48px; }
#region-select { min-width: 0; max-width: 100%; flex: 1; background: var(--brand-purple); }
.brand-header .menu_toggle,
.brand-header #lang-toggle { flex-shrink: 0; }
@media (max-width: 1023px) {
    .brand-header .brand-logo { width: auto; height: 40px; }
    .brand-header .brand-logo-partner { height: 32px; }
    .brand-logos { gap: 8px; }
}
@media (max-width: 420px) {
    .brand-header .brand-logo { height: 30px; }
    .brand-header .brand-logo-partner { height: 22px; }
    .brand-logos { gap: 6px; }
}
@media (max-width: 639px) {
    .brand-footer .brand-logo { height: 44px; }
    .brand-footer .brand-logo-partner { height: 36px; }
}
