:root {
    --blue: #0D1B2A;
    --text: #2B2D31;
    --muted: #8D99A6;
    --soft: #E6E8EB;
    --accent: #ABC5D9;
    --surface: rgba(230, 232, 235, 0.42);
    --surface-strong: rgba(230, 232, 235, 0.72);
    --shadow: 0 22px 70px rgba(13, 27, 42, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #000000;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg,
            rgba(230, 232, 235, 0.24) 0%,
            rgba(246, 248, 249, 0.64) 31%,
            rgba(246, 248, 249, 0.68) 69%,
            rgba(230, 232, 235, 0.24) 100%),
        url("../img/site-bg-clean.webp") center top / cover no-repeat;
    opacity: 1;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg,
            rgba(230, 232, 235, 0.2),
            rgba(246, 248, 249, 0.05) 38%,
            rgba(230, 232, 235, 0.16));
    pointer-events: none;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

.container {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(230, 232, 235, 0.84);
    border-bottom: 1px solid rgba(141, 153, 166, 0.42);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    gap: 34px;
}

.brand {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.brand span {
    color: #21272c;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: #21272c;
    font-size: 14px;
}

.main-nav a,
.nav-dropdown-toggle {
    position: relative;
    padding: 34px 0 31px;
}

.main-nav a.active,
.main-nav a:hover,
.nav-dropdown-toggle:hover,
.materials-menu.is-open .nav-dropdown-toggle {
    color: var(--blue);
}

.main-nav a.active::after,
.main-nav a:hover::after,
.materials-menu.is-open .nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 2px;
    background: var(--accent);
}

.materials-menu {
    position: relative;
}

.materials-toggle {
    color: inherit;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.nav-dropdown-menu,
.footer-dropdown-menu {
    position: absolute;
    z-index: 40;
    display: grid;
    min-width: 220px;
    padding: 10px;
    border: 1px solid rgba(141, 153, 166, 0.34);
    border-radius: 8px;
    background: rgba(230, 232, 235, 0.94);
    box-shadow: 0 18px 46px rgba(13, 27, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    backdrop-filter: blur(14px);
}

.nav-dropdown-menu {
    top: calc(100% - 14px);
    left: 50%;
    transform: translate(-50%, 10px);
}

.footer-dropdown-menu {
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 10px);
}

.materials-menu.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.materials-menu.is-open .footer-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown-menu a,
.footer-dropdown-menu a {
    padding: 10px 12px !important;
    border-radius: 6px;
    color: var(--text);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.footer-dropdown-menu a:hover {
    color: var(--blue);
    background: rgba(171, 197, 217, 0.28);
}

.nav-dropdown-menu a::after {
    display: none;
}

.header-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--muted);
    border-radius: 6px;
    color: var(--blue);
    background: rgba(230, 232, 235, 0.44);
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(13, 27, 42, 0.12);
}

.btn-dark {
    color: var(--soft);
    background: var(--blue);
    border-color: var(--blue);
}

.btn-light,
.btn-play {
    color: var(--blue);
    background: rgba(230, 232, 235, 0.62);
}

.btn-large {
    min-height: 52px;
    padding: 0 28px;
    font-size: 15px;
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
}

.auth-form-row {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 2px;
}

.auth-inline-link {
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--muted);
    border-radius: 6px;
    background: rgba(230, 232, 235, 0.72);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--blue);
}

.hero {
    position: relative;
    min-height: 620px;
    padding: 42px 0 36px;
    border-bottom: 0;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(
            90deg,
            rgba(230, 232, 235, 0.92) 0%,
            rgba(230, 232, 235, 0.72) 29%,
            rgba(230, 232, 235, 0.28) 50%,
            rgba(230, 232, 235, 0.42) 67%,
            rgba(230, 232, 235, 0.86) 100%
        ),
        url("../img/hero-main.webp");
    background-position: center, 58% 24%;
    background-size: cover, 94% auto;
    background-repeat: no-repeat;
    -webkit-mask-image:
        linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, 0.58) 88%, transparent 100%),
        linear-gradient(to right, #000 0%, #000 82%, rgba(0, 0, 0, 0.55) 92%, transparent 100%);
    mask-image:
        linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, 0.58) 88%, transparent 100%),
        linear-gradient(to right, #000 0%, #000 82%, rgba(0, 0, 0, 0.55) 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.hero::after {
    content: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    min-height: 542px;
    display: grid;
    grid-template-columns: minmax(360px, 620px);
    align-items: center;
    justify-content: start;
}

.hero-copy {
    padding: 22px 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: #21272c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1,
h2,
h3 {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0;
}

h1 {
    max-width: 530px;
    margin: 0;
    font-size: clamp(44px, 4.9vw, 68px);
    line-height: 1.02;
}

.accent-line {
    width: 92px;
    height: 18px;
    margin: 18px 0;
    position: relative;
}

.accent-line::before,
.accent-line::after {
    content: "";
    position: absolute;
    top: 8px;
    height: 2px;
    background: var(--accent);
}

.accent-line::before {
    left: 0;
    width: 58px;
}

.accent-line::after {
    left: 72px;
    width: 10px;
    height: 10px;
    top: 4px;
    border-radius: 50%;
}

.hero-text {
    max-width: 420px;
    margin: 0 0 30px;
    color: #21272c;
    font-size: 18px;
    line-height: 1.48;
}

.play-icon {
    width: 0;
    height: 0;
    margin-right: 10px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid var(--blue);
}

.registration-card {
    justify-self: end;
    width: 100%;
    max-width: 360px;
    padding: 30px;
    border: 1px solid rgba(141, 153, 166, 0.34);
    border-radius: 8px;
    background: rgba(230, 232, 235, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.auth-section {
    min-height: 620px;
    padding: 70px 0;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 380px;
    align-items: center;
    gap: 72px;
}

.auth-copy {
    max-width: 560px;
}

.auth-card {
    max-width: 380px;
}

.registration-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
}

.registration-card p {
    margin: 0 0 22px;
    color: #21272c;
    line-height: 1.42;
}

.signup-form {
    display: grid;
    gap: 12px;
}

.signup-form label span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.signup-form input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    color: var(--text);
    border: 1px solid rgba(141, 153, 166, 0.54);
    border-radius: 6px;
    background: rgba(230, 232, 235, 0.48);
}

.signup-form input::placeholder {
    color: #21272c;
}

.signup-form input:focus {
    outline: 2px solid rgba(171, 197, 217, 0.8);
    border-color: var(--accent);
}

.form-message {
    display: grid;
    gap: 6px;
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid rgba(141, 153, 166, 0.36);
    border-radius: 6px;
    background: rgba(230, 232, 235, 0.62);
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

.form-message p {
    margin: 0;
}

.form-message-error {
    border-color: rgba(141, 153, 166, 0.7);
}

.form-message-success {
    border-color: rgba(171, 197, 217, 0.9);
    background: rgba(171, 197, 217, 0.28);
}

.password-reset-test-link {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid rgba(13, 27, 42, 0.1);
    border-radius: 14px;
    background: rgba(171, 197, 217, 0.18);
    color: #2d3742;
    font-size: 13px;
    line-height: 1.5;
}

.password-reset-test-link a {
    color: var(--blue);
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.register-success-page {
    min-height: 70vh;
    background:
        radial-gradient(circle at 14% 12%, rgba(171, 197, 217, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(246, 248, 250, 0.96), rgba(229, 234, 238, 0.82));
}

.register-success-hero {
    padding: 72px 0 86px;
}

.register-success-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 44px;
    text-align: center;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 70px rgba(13, 27, 42, 0.10);
    backdrop-filter: blur(16px);
}

.register-success-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    color: #0d1b2a;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 50%;
    background: #e7f0f6;
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(13, 27, 42, 0.08);
}

.register-success-title {
    max-width: 760px;
    margin: 8px auto 14px;
    color: #0d1b2a;
    font-family: var(--font-serif);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.02;
}

.register-success-subtitle {
    max-width: 680px;
    margin: 0 auto;
    color: #344150;
    font-size: 18px;
    line-height: 1.65;
}

.register-success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.register-success-button,
.register-success-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.register-success-button {
    color: #fff;
    border: 1px solid #0d1b2a;
    background: #0d1b2a;
    box-shadow: 0 14px 32px rgba(13, 27, 42, 0.16);
}

.register-success-button:hover {
    color: #fff;
    background: #152a40;
    border-color: #152a40;
    transform: translateY(-2px);
}

.register-success-button-secondary {
    color: #0d1b2a;
    border: 1px solid rgba(13, 27, 42, 0.14);
    background: rgba(255, 255, 255, 0.74);
}

.register-success-button-secondary:hover {
    color: #0d1b2a;
    background: #eef4f8;
    border-color: rgba(13, 27, 42, 0.22);
    transform: translateY(-2px);
}

.register-success-next {
    max-width: 1120px;
    margin: 34px auto 0;
}

.register-success-section-head {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.register-success-section-head span {
    color: #6d7c89;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.register-success-section-head h2 {
    margin: 0;
    color: #0d1b2a;
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
}

.register-success-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.register-success-step {
    display: flex;
    flex-direction: column;
    min-height: 252px;
    padding: 22px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 42px rgba(13, 27, 42, 0.07);
}

.register-success-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 30px;
    margin-bottom: 16px;
    color: #41647e;
    border-radius: 999px;
    background: #e7f0f6;
    font-size: 12px;
    font-weight: 900;
}

.register-success-step-title {
    margin: 0 0 10px;
    color: #0d1b2a;
    font-size: 20px;
    line-height: 1.25;
}

.register-success-step-text {
    margin: 0 0 18px;
    color: #384655;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.register-success-step .register-success-button,
.register-success-step .register-success-button-secondary {
    width: fit-content;
    margin-top: auto;
}

.error-page {
    min-height: 68vh;
    background:
        radial-gradient(circle at 10% 10%, rgba(171, 197, 217, 0.22), transparent 28%),
        linear-gradient(135deg, #f7f9fb 0%, #eef2f5 100%);
}

.error-section {
    padding: 96px 0;
}

.error-card {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 58px);
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 70px rgba(13, 27, 42, 0.1);
    text-align: center;
}

.error-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(171, 197, 217, 0.32);
    color: var(--dark);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.error-title {
    margin: 0;
    color: var(--dark);
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
}

.error-text {
    max-width: 520px;
    margin: 18px auto 0;
    color: #4f5d6a;
    font-size: 18px;
    line-height: 1.65;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.error-actions .btn {
    min-width: 160px;
}

@media (max-width: 640px) {
    .error-section {
        padding: 58px 0;
    }

    .error-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
    }
}

.signin-note {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
}

.signin-note a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quick-links,
.section,
.about-section {
    padding: 42px 0;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-card,
.mini-card,
.course-card,
.question-item {
    border: 1px solid rgba(141, 153, 166, 0.32);
    border-radius: 8px;
    background: rgba(230, 232, 235, 0.58);
    box-shadow: 0 10px 36px rgba(13, 27, 42, 0.04);
    backdrop-filter: blur(10px);
}

.quick-card,
.mini-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-card:hover,
.mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(171, 197, 217, 0.78);
    background: rgba(230, 232, 235, 0.72);
    box-shadow: 0 16px 42px rgba(13, 27, 42, 0.08);
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 100px;
    padding: 24px;
}

.quick-icon,
.mini-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: var(--blue);
    border-radius: 50%;
    background: var(--accent);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.quick-card:hover .quick-icon,
.mini-card:hover .mini-icon {
    transform: translateY(-1px);
    background: rgba(171, 197, 217, 0.72);
    box-shadow: 0 10px 24px rgba(13, 27, 42, 0.08);
}

.quick-icon img,
.mini-icon img {
    width: 24px;
    height: 24px;
}

.quick-card h3,
.mini-card h3,
.course-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.quick-card p,
.mini-card p,
.course-card p,
.about-copy p {
    margin: 0;
    color: #21272c;
    line-height: 1.5;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: 32px;
}

.section-heading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.mini-card {
    min-height: 188px;
    padding: 28px 20px;
    text-align: center;
}

.mini-card .mini-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    background: rgba(171, 197, 217, 0.42);
    border: 1px solid rgba(141, 153, 166, 0.5);
}

.section-courses {
    padding-top: 28px;
}

.section-faq {
    padding-top: 12px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.home-courses-carousel {
    position: relative;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    padding: 0 58px;
}

.home-courses-carousel::before {
    display: none;
}

.home-courses-viewport {
    position: relative;
    z-index: 1;
    overflow: visible;
    min-width: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.home-courses-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    min-width: 0;
    padding: 8px 0 12px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.home-courses-track::-webkit-scrollbar {
    display: none;
}

.course-card {
    overflow: hidden;
}

.course-link {
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(13, 27, 42, 0.08);
}

.home-course-card {
    display: flex;
    flex: 0 0 calc((100% - 54px) / 4);
    width: calc((100% - 54px) / 4);
    min-width: 0;
    max-width: none;
    height: 368px;
    scroll-snap-align: start;
    transform-origin: center center;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(13, 27, 42, 0.06);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-course-card:hover {
    position: relative;
    z-index: 5;
    transform: translateY(-3px);
    border-color: rgba(13, 27, 42, 0.12);
    background: #ffffff;
    box-shadow: none;
}

.home-course-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f3f6f8;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border-bottom: 0;
}

.home-course-image-placeholder {
    background:
        linear-gradient(135deg, rgba(171, 197, 217, 0.8), rgba(230, 232, 235, 0.95)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), transparent 32%);
}

.home-course-badge {
    display: inline-flex;
    width: fit-content;
    margin: 14px 16px 8px;
    padding: 4px 8px;
    color: var(--blue);
    border-radius: 4px;
    background: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-course-title {
    margin: 0 0 8px;
    padding: 0 16px;
    font-size: 17px;
    line-height: 1.25;
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.course-card span {
    display: inline-flex;
    margin: 16px 16px 8px;
    padding: 4px 8px;
    color: var(--blue);
    border-radius: 4px;
    background: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.course-card h3,
.course-card p {
    padding: 0 16px;
}

.course-card p {
    padding-bottom: 18px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.home-course-description {
    margin: 0;
    padding: 0 16px 14px;
    min-height: 66px;
    color: #21272c;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

.home-course-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    margin: auto 16px 16px;
    padding: 9px 15px;
    color: #fff;
    border-radius: 10px;
    background: var(--blue);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-course-card:hover .home-course-more {
    background: #0a1624;
}

.home-carousel-arrow {
    position: absolute;
    top: calc(50% + 10px);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--blue);
    border-radius: 50%;
    background: var(--blue);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(13, 27, 42, 0.14);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    appearance: none;
}

.home-carousel-arrow span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.home-carousel-arrow svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-carousel-arrow-left {
    left: 4px;
}

.home-carousel-arrow-right {
    right: 4px;
}

.home-carousel-arrow:hover:not(:disabled) {
    color: #fff;
    border-color: #0a1624;
    background: #0a1624;
    transform: translateY(-50%) scale(1.05);
}

.home-carousel-arrow:disabled {
    color: var(--blue);
    border-color: rgba(13, 27, 42, 0.12);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
    cursor: default;
    opacity: 0.72;
    pointer-events: none;
}

.course-image {
    aspect-ratio: 16 / 9;
    height: auto;
    background-color: rgba(171, 197, 217, 0.32);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(141, 153, 166, 0.22);
}

.course-image-placeholder {
    background:
        linear-gradient(135deg, rgba(171, 197, 217, 0.34), rgba(230, 232, 235, 0.78)),
        radial-gradient(circle at 72% 28%, rgba(13, 27, 42, 0.08), transparent 32%);
}

.course-image-one {
    background-image: url("../img/courses/course-neuro-dlya-chainikov.png");
}

.course-image-two {
    background-image: url("../img/courses/course-ai-business-system.png");
}

.course-image-three {
    background-image: url("../img/courses/course-neuro-photoshoot.png");
}

.course-image-four {
    background-image: url("../img/courses/course-vibecoding.png");
}

.courses-page {
    padding: 72px 0 84px;
}

.courses-page-head {
    max-width: 720px;
    margin-bottom: 42px;
}

.course-category-nav {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 26px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 36px rgba(13, 27, 42, 0.055);
}

.course-category-nav::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -38px;
    width: 104px;
    height: 70px;
    border: 1px solid rgba(112, 153, 183, 0.16);
    border-radius: 24px;
    transform: rotate(-14deg);
    pointer-events: none;
}

.course-category-nav a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid rgba(141, 153, 166, 0.24);
    border-radius: 9px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 14px rgba(13, 27, 42, 0.035);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.course-category-nav a:hover,
.course-category-nav a:focus-visible,
.course-category-nav a:active {
    color: #fff;
    border-color: var(--blue);
    background: var(--blue);
    box-shadow: 0 10px 22px rgba(13, 27, 42, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.course-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.course-category-section {
    position: relative;
    min-width: 0;
    margin-top: 28px;
    padding: 30px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(13, 27, 42, 0.085);
    border-radius: 18px;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.92), rgba(240, 244, 247, 0.72) 72%, rgba(221, 234, 243, 0.62));
    box-shadow: 0 20px 52px rgba(13, 27, 42, 0.07);
    scroll-margin-top: 110px;
}

.course-category-list > .course-category-section {
    margin-top: 0;
}

.course-category-list > .course-category-section:not(.is-compact) {
    grid-column: 1 / -1;
}

.course-category-section.is-new {
    margin-top: 0;
    border-color: rgba(104, 158, 195, 0.3);
    background:
        linear-gradient(112deg, rgba(248, 252, 254, 0.98), rgba(229, 241, 248, 0.86) 68%, rgba(207, 228, 241, 0.72));
    box-shadow: 0 22px 58px rgba(61, 108, 140, 0.1);
}

.course-category-section::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 0;
    width: 3px;
    height: 62px;
    border-radius: 0 3px 3px 0;
    background: #9fc5dd;
}

.course-category-section.is-new::before {
    background: #5f98bd;
}

.course-category-section::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -72px;
    z-index: -1;
    width: 190px;
    height: 132px;
    border: 1px solid rgba(105, 147, 178, 0.18);
    border-radius: 42px;
    box-shadow:
        -25px -20px 0 -24px rgba(105, 147, 178, 0.23),
        -50px -40px 0 -49px rgba(105, 147, 178, 0.15);
    transform: rotate(-16deg);
    pointer-events: none;
}

.course-category-heading {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(112, 149, 178, 0.24);
}

.course-category-heading span {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 7px;
    color: #628dac;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.course-category-heading span::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: #8fb8d4;
}

.course-category-heading span::after {
    content: "";
    width: 30px;
    height: 1px;
    background: rgba(105, 149, 181, 0.52);
}

.course-category-heading h2 {
    max-width: 560px;
    margin: 0;
    color: var(--blue);
    font: 500 clamp(32px, 3vw, 44px)/1.06 Georgia, "Times New Roman", serif;
    text-wrap: balance;
}

.course-category-heading p {
    max-width: 430px;
    margin: 0;
    color: #66717b;
    line-height: 1.55;
    text-align: right;
}

.course-category-summary {
    display: grid;
    gap: 7px;
    justify-items: end;
}

.course-category-summary strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    color: #315f7f;
    border: 1px solid rgba(105, 160, 198, 0.25);
    border-radius: 8px;
    background: rgba(244, 250, 253, 0.92);
    box-shadow: 0 6px 16px rgba(67, 112, 142, 0.06);
    font-size: 13px;
}

.course-category-section.is-compact {
    display: block;
    padding: 26px;
}

.course-category-section.is-compact .course-category-heading {
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
}

.course-category-section.is-compact .course-category-heading h2 {
    font-size: clamp(30px, 2.6vw, 38px);
}

.course-category-section.is-compact .course-category-summary {
    flex: 0 0 auto;
    justify-items: end;
}

.course-category-section.is-compact .courses-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.course-category-section.is-single .courses-showcase-grid {
    grid-template-columns: minmax(0, 1fr);
}

.course-category-section .public-course-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 38px rgba(13, 27, 42, 0.07);
}

.course-category-section .public-course-card:hover {
    box-shadow: 0 22px 48px rgba(13, 27, 42, 0.11);
}

.course-category-empty {
    margin: 0;
    padding: 20px;
    border: 1px dashed rgba(141, 153, 166, 0.34);
    border-radius: 10px;
    color: #66717b;
    background: rgba(255, 255, 255, 0.52);
}

.public-course-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
    align-items: center;
}

.course-category-badge,
.course-free-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.course-category-badge {
    color: #315f7f;
    border: 1px solid rgba(105, 160, 198, 0.28);
    background: #edf6fb;
}

.course-free-badge {
    color: #386957;
    border: 1px solid rgba(100, 155, 132, 0.25);
    background: #eef7f2;
}
.course-detail-list {
    display: grid;
    gap: 28px;
}

.courses-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.public-course-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 45px rgba(13, 27, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.public-course-card:hover {
    transform: translateY(-2px);
    border-color: rgba(171, 197, 217, 0.78);
    box-shadow: 0 22px 52px rgba(13, 27, 42, 0.1);
}

.public-course-image {
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid rgba(141, 153, 166, 0.18);
    text-decoration: none;
}

.public-course-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}

.public-course-body h2 {
    margin: 0;
    color: var(--blue);
    font: 500 28px/1.15 Georgia, "Times New Roman", serif;
}

.public-course-body p {
    display: -webkit-box;
    min-height: 72px;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--text);
    line-height: 1.55;
}

.public-course-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 4px;
    text-align: center;
}

.public-course-more,
.course-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    color: #fff;
    border: 1px solid var(--blue);
    border-radius: 10px;
    background: var(--blue);
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.public-course-more {
    min-width: 150px;
}

.public-course-more:hover,
.course-back-link:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(13, 27, 42, 0.14);
}

.course-empty-card {
    max-width: 760px;
    padding: 30px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 45px rgba(13, 27, 42, 0.06);
}

.course-empty-card h1,
.course-empty-card h2 {
    margin: 0 0 10px;
    color: var(--blue);
    font: 500 34px/1.12 Georgia, "Times New Roman", serif;
}

.course-view-page .course-detail-card {
    grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
}

.course-view-card .course-detail-content h1 {
    margin: 10px 0 14px;
    color: var(--blue);
    font: 500 clamp(34px, 4vw, 54px)/1.05 Georgia, "Times New Roman", serif;
}

.course-back-link {
    min-height: 38px;
    margin-bottom: 14px;
    padding: 0 14px;
    color: var(--blue);
    border-color: rgba(13, 27, 42, 0.16);
    background: #fff;
}

.course-back-link:hover {
    color: var(--blue);
}

.course-public-format {
    display: inline-grid;
    gap: 4px;
    margin: 10px 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.course-public-format span {
    color: var(--muted);
    font-size: 13px;
}

.course-public-format strong {
    color: var(--blue);
}

.course-detail-card {
    scroll-margin-top: 110px;
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    padding: 22px;
    border: 1px solid rgba(141, 153, 166, 0.32);
    border-radius: 8px;
    background: rgba(230, 232, 235, 0.62);
    box-shadow: 0 16px 50px rgba(13, 27, 42, 0.06);
    backdrop-filter: blur(10px);
}

.course-image-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #f3f6f8;
}

.course-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.course-detail-image {
    align-self: start;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(141, 153, 166, 0.24);
    border-radius: 18px;
    background: #f3f6f8;
}

.course-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.course-detail-content {
    padding: 8px 4px;
}

.course-label {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 10px;
    color: var(--blue);
    border-radius: 4px;
    background: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.course-detail-content h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 3vw, 46px);
    line-height: 1.08;
}

.course-detail-content p,
.course-detail-content li {
    color: #21272c;
    font-size: 16px;
    line-height: 1.62;
}

.course-lead {
    margin: 0 0 18px;
    color: var(--blue) !important;
    font-weight: 600;
}

.course-detail-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 26px;
}

.course-detail-columns h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.course-detail-columns ul {
    margin: 0;
    padding-left: 18px;
}

.course-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 8px;
}

.course-meta-item,
.course-info-box,
.course-purchase-row {
    border: 1px solid rgba(141, 153, 166, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.42);
}

.course-meta-item {
    padding: 14px 16px;
}

.course-meta-item span {
    display: block;
    margin-bottom: 5px;
    color: #21272c;
    font-size: 13px;
}

.course-meta-item strong {
    color: var(--blue);
    font-size: 16px;
}

.course-info-box {
    padding: 18px;
}

.course-info-box p {
    margin-bottom: 0;
}

.course-purchase-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding: 18px;
}

.course-purchase-row h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.buy-course-btn {
    min-width: 160px;
}

.course-order-form {
    margin: 0;
}

.course-order-form .buy-course-btn {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.course-order-message {
    margin: 0 0 22px;
    padding: 14px 16px;
    color: var(--blue);
    border: 1px solid rgba(171, 197, 217, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 14px 32px rgba(13, 27, 42, 0.06);
}

.course-order-error {
    color: #2B2D31;
    border-color: rgba(141, 153, 166, 0.45);
}

.course-tariffs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.course-tariff-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(141, 153, 166, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.46);
}

.course-tariff-card span {
    color: var(--blue);
    font-weight: 700;
}

.course-tariff-card strong {
    color: var(--blue);
    font: 500 30px/1.1 Georgia, "Times New Roman", serif;
}

.course-tariff-card p {
    margin: 0;
    min-height: 50px;
    color: #21272c;
}

.course-price {
    color: var(--blue) !important;
    font-weight: 700;
}

.course-detail-page {
    padding: 70px 0 88px;
}

.course-detail-page .container {
    width: min(100% - 40px, 1180px);
}

.course-hero-card,
.course-section {
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 64px rgba(13, 27, 42, 0.08);
    backdrop-filter: blur(12px);
}

.course-hero-card {
    padding: 34px;
}

.course-hero-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
    gap: 34px;
    align-items: start;
}

.course-hero-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.course-hero-cover {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 32px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 26px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.course-hero-content {
    display: grid;
    width: min(100%, 820px);
    min-width: 0;
    margin: 0 auto;
    align-content: start;
    gap: 15px;
    justify-items: center;
    padding: 0;
}

.course-hero-media {
    align-self: start;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.course-hero-content .course-label {
    margin-bottom: 0;
    border-radius: 999px;
}

.course-hero-content h1 {
    margin: 0;
    max-width: 820px;
    color: var(--blue);
    font: 500 clamp(38px, 4.6vw, 64px)/1.02 Georgia, "Times New Roman", serif;
    letter-spacing: 0;
    text-align: center;
}

.course-hero-content .course-lead {
    margin: 0;
    max-width: 760px;
    color: var(--blue) !important;
    font-size: 20px;
    line-height: 1.45;
    text-align: center;
}

.course-hero-description {
    width: 100%;
    max-width: 760px;
    color: #21272c;
    font-size: 17px;
    line-height: 1.68;
    text-align: left;
    overflow-wrap: anywhere;
}

.course-hero-content .course-public-format {
    margin: 0;
    background: rgba(243, 246, 248, 0.82);
}

.course-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--blue);
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.course-cta-button:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(13, 27, 42, 0.18);
}

.course-cta-secondary {
    color: var(--blue);
    background: #fff;
    border-color: rgba(13, 27, 42, 0.16);
}

.course-cta-secondary:hover {
    color: var(--blue);
    background: rgba(230, 232, 235, 0.84);
}

.course-section {
    margin-top: 26px;
    padding: 30px;
}

.course-section-head {
    max-width: 760px;
    margin-bottom: 22px;
}

.course-section-head span,
.course-info-card > span,
.course-price-card > span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.course-section-head h2,
.course-info-card h2 {
    margin: 0;
    color: var(--blue);
    font: 500 clamp(30px, 3vw, 44px)/1.12 Georgia, "Times New Roman", serif;
}

.course-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.course-benefit-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 18px;
    background: rgba(243, 246, 248, 0.72);
}

.course-benefit-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
}

.course-benefit-item p,
.course-info-card p,
.course-price-card p {
    margin: 0;
    color: #21272c;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.course-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.course-info-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 22px;
    background: rgba(243, 246, 248, 0.68);
}

.course-info-card h2 {
    margin-bottom: 14px;
}

.course-pricing-section {
    scroll-margin-top: 110px;
}

.course-free-section {
    scroll-margin-top: 110px;
}

.course-free-card {
    display: grid;
    gap: 14px;
    max-width: 760px;
    padding: 28px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(13, 27, 42, 0.06);
}

.course-free-card h2 {
    margin: 0;
    color: var(--blue);
    font: 500 clamp(30px, 3vw, 42px)/1.12 Georgia, "Times New Roman", serif;
}

.course-free-card p {
    margin: 0;
    color: #21272c;
    line-height: 1.65;
}

.course-free-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 28px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(171, 197, 217, 0.44);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.course-free-form,
.course-free-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}

.course-free-form .course-cta-button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
}

.course-free-opened {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(171, 197, 217, 0.34);
    color: var(--blue);
    font-weight: 800;
}

.course-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.course-price-card {
    display: flex;
    min-width: 0;
    min-height: 300px;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(13, 27, 42, 0.06);
}

.course-price-card strong {
    color: var(--blue);
    font: 500 clamp(30px, 3.2vw, 42px)/1.05 Georgia, "Times New Roman", serif;
}

.course-price-card .course-order-form {
    margin-top: auto;
}

.course-price-button {
    width: 100%;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    appearance: none;
}

.faq-panel {
    padding-top: 2px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.question-item {
    overflow: hidden;
}

.question-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 56px;
    padding: 0 20px;
    border: 0;
    color: var(--blue);
    background: transparent;
    text-align: left;
    font: 600 15px/1.3 Georgia, "Times New Roman", serif;
    cursor: pointer;
}

.question-toggle {
    flex: 0 0 auto;
    color: var(--blue);
    font: 400 22px/1 Arial, sans-serif;
    transition: transform 0.22s ease;
}

.question-item.is-open .question-toggle {
    transform: rotate(180deg);
}

.question-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.22s ease;
}

.question-answer p {
    margin: 0;
    padding: 0 20px 18px;
    color: #21272c;
    font-size: 15px;
    line-height: 1.6;
}

.question-item.is-open .question-answer {
    max-height: 240px;
    opacity: 1;
}

.about-section,
.about-page {
    padding-bottom: 64px;
}

.about-page {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 76px 0;
}

.about-page-grid {
    display: grid;
    grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
    gap: 58px;
    align-items: start;
}

.about-photo {
    overflow: hidden;
    border: 1px solid rgba(141, 153, 166, 0.28);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.about-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.about-page-copy h1 {
    margin: 0 0 10px;
    max-width: none;
    font-size: clamp(48px, 5vw, 72px);
}

.about-text {
    display: grid;
    gap: 18px;
    max-width: 740px;
    margin-top: 34px;
}

.about-text p {
    margin: 0;
    color: #21272c;
    font-size: 18px;
    line-height: 1.7;
}

.about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    margin-top: 42px;
}

.about-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 34px;
    align-items: center;
}

.about-media {
    height: 220px;
    border: 1px solid rgba(141, 153, 166, 0.28);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.about-media::before {
    content: "";
    display: block;
    width: 680px;
    height: 420px;
    background: url("../img/main-reference.png") center top / cover no-repeat;
    transform: translate(-220px, -34px);
}

.about-copy h3 {
    margin: 0 0 4px;
    font-size: 24px;
}

.about-copy .role {
    margin-bottom: 14px;
    color: var(--blue);
    font-weight: 600;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.stats strong {
    display: block;
    padding: 14px 18px;
    color: var(--blue);
    border: 1px solid rgba(141, 153, 166, 0.3);
    border-radius: 8px;
    background: rgba(230, 232, 235, 0.54);
    font: 500 28px Georgia, "Times New Roman", serif;
}

.stats span {
    display: block;
    margin-top: 4px;
    color: #21272c;
    font: 12px "Inter", "Segoe UI", Arial, sans-serif;
}

.site-footer {
    padding: 28px 0;
    border-top: 1px solid rgba(141, 153, 166, 0.26);
    background: rgba(230, 232, 235, 0.72);
    backdrop-filter: blur(12px);
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}

.site-footer strong {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.site-footer p {
    margin: 6px 0 0;
    color: #21272c;
    font-size: 13px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    color: #21272c;
    font-size: 14px;
}

.footer-dropdown {
    position: relative;
}

.footer-dropdown-toggle {
    padding: 0;
    color: #21272c;
}

.footer-dropdown-toggle:hover,
.footer-dropdown.is-open .footer-dropdown-toggle {
    color: var(--blue);
}

.materials-page {
    min-height: 620px;
    padding: 72px 0;
}

.materials-page-head,
.simple-page {
    max-width: 760px;
}

.materials-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.material-section-card,
.simple-page-card {
    border: 1px solid rgba(141, 153, 166, 0.32);
    border-radius: 8px;
    background: rgba(230, 232, 235, 0.62);
    box-shadow: 0 16px 50px rgba(13, 27, 42, 0.06);
    backdrop-filter: blur(10px);
}

.material-section-card {
    display: block;
    min-height: 220px;
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.material-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 56px rgba(13, 27, 42, 0.1);
}

.material-section-card span {
    display: inline-flex;
    margin-bottom: 28px;
    color: #21272c;
    font-weight: 700;
}

.material-section-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.material-section-card p {
    margin: 0;
    color: #21272c;
    line-height: 1.55;
}

.simple-page-card {
    margin-top: 34px;
    padding: 28px;
    color: var(--blue);
    font: 500 24px Georgia, "Times New Roman", serif;
}

.contact-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: min(1040px, 100%);
    margin-top: 34px;
}

.contact-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.contact-item {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 18px;
    min-height: 178px;
    padding: 22px;
    border: 1px solid rgba(141, 153, 166, 0.32);
    border-radius: 8px;
    color: var(--text);
    background: rgba(230, 232, 235, 0.62);
    box-shadow: 0 10px 36px rgba(13, 27, 42, 0.04);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-item-content {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(171, 197, 217, 0.78);
    background: rgba(230, 232, 235, 0.76);
    box-shadow: 0 16px 42px rgba(13, 27, 42, 0.08);
}

.contact-item span {
    color: #21272c;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.contact-item strong {
    color: var(--blue);
    font-size: clamp(17px, 1.4vw, 20px);
    font-weight: 500;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contact-link {
    justify-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--blue);
    border-radius: 6px;
    color: var(--soft);
    background: var(--blue);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(13, 27, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover {
    transform: translateY(-1px);
    border-color: var(--blue);
    background: #14263a;
    box-shadow: 0 14px 30px rgba(13, 27, 42, 0.14);
}

.contact-empty {
    display: grid;
    gap: 10px;
    font: inherit;
}

.contact-empty h2 {
    margin: 0;
    color: var(--blue);
    font: 500 28px Georgia, "Times New Roman", serif;
}

.contact-empty p {
    margin: 0;
    color: #21272c;
    line-height: 1.6;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin-top: 34px;
}

.reviews-page .simple-page {
    max-width: 1180px;
}

.reviews-page .hero-text {
    max-width: 680px;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    min-height: 100%;
    padding: 24px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 45px rgba(13, 27, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    border-color: rgba(171, 197, 217, 0.78);
    box-shadow: 0 18px 44px rgba(13, 27, 42, 0.09);
}

.review-card-head {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
    margin-bottom: 2px;
}

.review-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(141, 153, 166, 0.32);
    background: #fff;
}

.review-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    background: rgba(171, 197, 217, 0.36);
    font: 600 28px Georgia, "Times New Roman", serif;
}

.review-author {
    min-width: 0;
}

.review-card h2 {
    margin: 0 0 4px;
    color: var(--blue);
    font: 500 23px Georgia, "Times New Roman", serif;
    overflow-wrap: anywhere;
}

.review-card-head p {
    margin: 0;
    color: #21272c;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.review-rating {
    color: #0D1B2A;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0;
}

.review-rating span {
    color: rgba(141, 153, 166, 0.46);
}

.review-text {
    margin: 0;
    color: #21272c;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.review-course {
    margin-top: auto;
    align-self: flex-start;
    max-width: 100%;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(171, 197, 217, 0.28);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.reviews-empty {
    display: grid;
    gap: 10px;
    max-width: 760px;
    margin-top: 34px;
    padding: 28px;
    font: inherit;
}

.reviews-empty h2 {
    margin: 0;
    color: var(--blue);
    font: 500 28px Georgia, "Times New Roman", serif;
}

.reviews-empty p {
    margin: 0;
    color: #21272c;
    line-height: 1.6;
}

.news-page .simple-page {
    max-width: 1180px;
}

.news-page .hero-text {
    max-width: 680px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin-top: 34px;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 45px rgba(13, 27, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    border-color: rgba(171, 197, 217, 0.78);
    box-shadow: 0 18px 44px rgba(13, 27, 42, 0.09);
}

.news-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(171, 197, 217, 0.2);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.03);
}

.news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    min-width: 0;
}

.news-date {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    color: var(--blue);
    border-radius: 999px;
    background: rgba(171, 197, 217, 0.28);
    font-size: 13px;
    font-weight: 700;
}

.news-card h2 {
    margin: 0;
    color: var(--blue);
    font: 500 25px Georgia, "Times New Roman", serif;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.news-card p {
    margin: 0;
    color: #21272c;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.news-read-link,
.news-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 44px;
    margin-top: auto;
    padding: 0 18px;
    color: #fff;
    border: 1px solid var(--blue);
    border-radius: 10px;
    background: var(--blue);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.news-read-link:hover,
.news-back-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(13, 27, 42, 0.14);
}

.news-empty {
    display: grid;
    gap: 10px;
    max-width: 760px;
    margin-top: 34px;
    padding: 28px;
}

.news-empty h2 {
    margin: 0;
    color: var(--blue);
    font: 500 28px Georgia, "Times New Roman", serif;
}

.news-empty p {
    margin: 0;
    color: #21272c;
    line-height: 1.6;
}

.news-article {
    display: grid;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.news-detail-title {
    max-width: 900px;
    margin: 0 0 6px;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.news-article-image {
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 22px;
    background: rgba(171, 197, 217, 0.18);
    box-shadow: 0 18px 45px rgba(13, 27, 42, 0.06);
}

.news-article-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.news-article-content {
    padding: 28px;
    color: #21272c;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 45px rgba(13, 27, 42, 0.06);
    font-size: 18px;
    line-height: 1.72;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 14px 0 6px;
}

.news-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.news-action-button.primary {
    color: #fff;
    border: 1px solid var(--blue);
    background: var(--blue);
}

.news-action-button.secondary {
    color: var(--blue);
    border: 1px solid rgba(13, 27, 42, 0.18);
    background: rgba(255, 255, 255, 0.78);
}

.news-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(13, 27, 42, 0.14);
}

.news-view-page .news-detail-title {
    max-width: 900px;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.15;
}

.materials-page h1,
.courses-page h1,
.auth-page h1,
.about-page-copy h1 {
    max-width: 860px;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.08;
}

.materials-page .hero-text,
.courses-page .hero-text,
.auth-page .hero-text,
.about-page .hero-text {
    max-width: 680px;
}

.quick-card,
.mini-card,
.course-card,
.question-item,
.course-detail-card,
.material-section-card,
.simple-page-card,
.contact-item,
.registration-card,
.course-meta-item,
.course-info-box,
.course-purchase-row,
.course-tariff-card {
    border-color: rgba(13, 27, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 45px rgba(13, 27, 42, 0.06);
}

.quick-card:hover,
.mini-card:hover,
.course-card:hover,
.material-section-card:hover,
.contact-item:hover {
    border-color: rgba(171, 197, 217, 0.78);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 44px rgba(13, 27, 42, 0.09);
}

.course-detail-card,
.material-section-card,
.simple-page-card,
.contact-item,
.news-card,
.review-card,
.course-tariff-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.course-detail-image,
.about-photo,
.about-media {
    border-radius: 18px;
}

.course-detail-image img,
.about-photo img,
.news-card-image img,
.news-article-image img,
.review-avatar,
.contact-item,
.course-image {
    max-width: 100%;
}

.btn,
.contact-link,
.news-read-link,
.news-back-link,
.news-action-button,
.buy-course-btn,
.course-order-form .buy-course-btn {
    border-radius: 10px;
    appearance: none;
    text-decoration: none;
}

.btn-dark,
.contact-link,
.news-read-link,
.news-back-link,
.news-action-button.primary,
.buy-course-btn {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.btn-light,
.btn-play,
.news-action-button.secondary {
    color: var(--blue);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(13, 27, 42, 0.18);
}

.btn:hover,
.contact-link:hover,
.news-read-link:hover,
.news-back-link:hover,
.news-action-button:hover,
.buy-course-btn:hover {
    background: #14263a;
}

.btn-light:hover,
.btn-play:hover,
.news-action-button.secondary:hover {
    color: var(--blue);
    background: rgba(230, 232, 235, 0.84);
}

.auth-required-modal[hidden] {
    display: none;
}

.auth-required-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-required-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.48);
    backdrop-filter: blur(6px);
}

.auth-required-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 30px;
    border: 1px solid rgba(13, 27, 42, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 70px rgba(13, 27, 42, 0.22);
}

.auth-required-card h2 {
    margin: 8px 0 12px;
    color: var(--blue);
    font: 500 32px/1.15 Georgia, "Times New Roman", serif;
}

.auth-required-card p {
    margin: 0 0 18px;
    color: #2d3742;
    line-height: 1.6;
}

.auth-required-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(13, 27, 42, 0.12);
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font: inherit;
    cursor: pointer;
}

.auth-required-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.public-access-card {
    display: grid;
    gap: 14px;
    max-width: 720px;
    margin-top: 28px;
}

.public-access-card h2 {
    margin: 0;
    color: var(--blue);
    font: 500 30px/1.18 Georgia, "Times New Roman", serif;
}

.public-access-card p {
    margin: 0;
    color: #2d3742;
    line-height: 1.65;
}

.public-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.modal-open {
    overflow: hidden;
}

.signup-form input,
.registration-card input {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.76);
}

.register-documents {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 15px;
    border: 1px solid rgba(13, 27, 42, 0.07);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.62);
    color: #46515d;
    line-height: 1.5;
}

.register-documents.is-invalid {
    border-color: rgba(174, 46, 46, 0.36);
    background: rgba(174, 46, 46, 0.04);
}

.register-documents-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
}

.register-document-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.signup-form .register-document-check > span,
.registration-card .register-document-check > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    color: #46515d;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.register-document-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--blue);
    cursor: pointer;
    flex: 0 0 auto;
}

.register-document-check a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.register-document-check a:hover {
    color: #0a1624;
    text-decoration: underline;
}

.register-documents-text {
    overflow-wrap: anywhere;
}

.document-link-muted {
    color: #5f6e7c;
    font-weight: 700;
}

.document-link-muted small {
    display: inline;
    color: #7a8793;
    font-weight: 500;
}

.documents-consent-error {
    margin: -4px 0 0;
    color: #ae2e2e;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.45;
}

.course-detail-content,
.news-card-body,
.review-card,
.contact-item-content,
.simple-page-card {
    min-width: 0;
}

.course-detail-content p,
.course-detail-content li,
.material-section-card p,
.simple-page-card,
.contact-item strong,
.news-card p,
.news-article-content,
.review-text,
.about-text p,
.registration-card p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-mail {
    color: var(--blue);
}
/* Premium contact cards */
.contact-card.contact-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    width: min(1120px, 100%);
}

.contact-item {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    min-height: 238px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 8%, var(--contact-accent-soft, rgba(171, 197, 217, 0.22)), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 251, 0.78));
    box-shadow:
        0 18px 44px rgba(13, 27, 42, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.contact-item::before {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -42px;
    width: 146px;
    height: 146px;
    border-radius: 44px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), var(--contact-accent-soft, rgba(171, 197, 217, 0.16)));
    opacity: 0.72;
    transform: rotate(14deg);
    pointer-events: none;
    z-index: -1;
}

.contact-item::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 76px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 27, 42, 0.08), transparent);
    pointer-events: none;
}

.contact-item:hover {
    transform: translateY(-4px);
    border-color: rgba(171, 197, 217, 0.64);
    background:
        radial-gradient(circle at 88% 8%, var(--contact-accent-soft, rgba(171, 197, 217, 0.3)), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.86));
    box-shadow:
        0 24px 52px rgba(13, 27, 42, 0.105),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.contact-item-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    color: var(--contact-accent, #4B78A8);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.52)),
        var(--contact-accent-soft, rgba(171, 197, 217, 0.22));
    box-shadow:
        0 14px 28px rgba(13, 27, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-weight: 900;
    line-height: 1;
}

.contact-item-icon::before {
    content: "в†—";
    font-size: 20px;
}

.contact-item-email {
    --contact-accent: #4B78A8;
    --contact-accent-soft: rgba(171, 197, 217, 0.28);
}

.contact-item-email .contact-item-icon::before {
    content: "@";
    font-size: 23px;
}

.contact-item-phone {
    --contact-accent: #557B5D;
    --contact-accent-soft: rgba(143, 181, 151, 0.24);
}

.contact-item-phone .contact-item-icon::before {
    content: "вЋ";
    font-size: 21px;
}

.contact-item-telegram {
    --contact-accent: #2A87C7;
    --contact-accent-soft: rgba(42, 135, 199, 0.17);
}

.contact-item-telegram .contact-item-icon::before {
    content: "TG";
    font-size: 16px;
    letter-spacing: 0;
}

.contact-item-vk {
    --contact-accent: #4C75A3;
    --contact-accent-soft: rgba(76, 117, 163, 0.18);
}

.contact-item-vk .contact-item-icon::before {
    content: "VK";
    font-size: 16px;
    letter-spacing: 0;
}

.contact-item-whatsapp {
    --contact-accent: #4D8E68;
    --contact-accent-soft: rgba(77, 142, 104, 0.18);
}

.contact-item-whatsapp .contact-item-icon::before {
    content: "WA";
    font-size: 15px;
    letter-spacing: 0;
}

.contact-item-document {
    --contact-accent: #8A75A8;
    --contact-accent-soft: rgba(138, 117, 168, 0.16);
}

.contact-item-document .contact-item-icon::before {
    content: "PDF";
    font-size: 13px;
    letter-spacing: 0;
}

.contact-item-content {
    gap: 8px;
    align-content: start;
}

.contact-item span {
    color: #657384;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.contact-item strong {
    color: var(--blue);
    font: 500 clamp(18px, 1.45vw, 22px)/1.28 Georgia, "Times New Roman", serif;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contact-link {
    position: relative;
    z-index: 2;
    justify-self: start;
    min-width: 136px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(13, 27, 42, 0.1);
}

@media (max-width: 760px) {
    .contact-card.contact-card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        margin-top: 26px;
    }

    .contact-item {
        min-height: 0;
        padding: 18px;
        gap: 13px;
        border-radius: 18px;
    }

    .contact-item::before {
        right: -52px;
        bottom: -56px;
        width: 132px;
        height: 132px;
    }

    .contact-item::after {
        left: 18px;
        right: 18px;
        bottom: 66px;
    }

    .contact-item-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .contact-item strong {
        font-size: 18px;
        line-height: 1.32;
    }

    .contact-link {
        width: 100%;
        min-height: 42px;
    }
}
/* Premium contact cards v2 */
.materials-page .contact-card.contact-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: min(1080px, 100%);
    margin-top: 42px;
}

.materials-page .contact-item {
    --contact-accent: #4B78A8;
    --contact-accent-soft: rgba(171, 197, 217, 0.24);
    --contact-accent-glow: rgba(94, 140, 197, 0.12);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 92px 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "icon content"
        "icon action";
    align-items: center;
    column-gap: 22px;
    row-gap: 18px;
    min-height: 246px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.95) 0 8%, transparent 9%),
        radial-gradient(circle at 88% 18%, var(--contact-accent-soft) 0 22%, transparent 44%),
        radial-gradient(circle at 70% 112%, var(--contact-accent-glow) 0 28%, transparent 58%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 251, 0.7));
    box-shadow:
        0 28px 70px rgba(13, 27, 42, 0.095),
        0 10px 24px rgba(13, 27, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    transform: translateZ(0);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.materials-page .contact-item::before {
    content: "";
    position: absolute;
    right: -46px;
    top: -54px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.82), transparent 28%),
        radial-gradient(circle, var(--contact-accent-soft), transparent 68%);
    opacity: 0.88;
    transform: none;
    pointer-events: none;
    z-index: -2;
}

.materials-page .contact-item::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(13, 27, 42, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(13, 27, 42, 0.028) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(135deg, transparent 0 24%, #000 56%, transparent 100%);
    opacity: 0.34;
    pointer-events: none;
    z-index: -1;
}

.materials-page .contact-item:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(171, 197, 217, 0.82);
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.98) 0 8%, transparent 9%),
        radial-gradient(circle at 88% 18%, var(--contact-accent-soft) 0 25%, transparent 46%),
        radial-gradient(circle at 70% 112%, var(--contact-accent-glow) 0 32%, transparent 60%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 254, 0.84));
    box-shadow:
        0 34px 84px rgba(13, 27, 42, 0.13),
        0 12px 26px rgba(13, 27, 42, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.materials-page .contact-item-icon {
    grid-area: icon;
    position: relative;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 28px;
    color: var(--contact-accent);
    background:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.58) 34%, transparent 35%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.76), var(--contact-accent-soft));
    box-shadow:
        0 22px 42px rgba(13, 27, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -12px 22px rgba(13, 27, 42, 0.035);
}

.materials-page .contact-item-icon::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    pointer-events: none;
}

.materials-page .contact-item-icon::before {
    content: "LINK";
    font: 900 17px/1 Arial, sans-serif;
    letter-spacing: 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.materials-page .contact-item-email .contact-item-icon::before {
    content: "@";
    font-size: 38px;
}

.materials-page .contact-item-phone .contact-item-icon::before {
    content: "TEL";
    font-size: 18px;
}

.materials-page .contact-item-telegram .contact-item-icon::before {
    content: "TG";
    font-size: 24px;
}

.materials-page .contact-item-vk .contact-item-icon::before {
    content: "VK";
    font-size: 24px;
}

.materials-page .contact-item-whatsapp .contact-item-icon::before {
    content: "WA";
    font-size: 22px;
}

.materials-page .contact-item-document .contact-item-icon::before {
    content: "PDF";
    font-size: 20px;
}

.materials-page .contact-item-email {
    --contact-accent: #4B78A8;
    --contact-accent-soft: rgba(171, 197, 217, 0.34);
    --contact-accent-glow: rgba(75, 120, 168, 0.13);
}

.materials-page .contact-item-phone {
    --contact-accent: #547B60;
    --contact-accent-soft: rgba(143, 181, 151, 0.3);
    --contact-accent-glow: rgba(84, 123, 96, 0.12);
}

.materials-page .contact-item-telegram {
    --contact-accent: #2E83BC;
    --contact-accent-soft: rgba(72, 158, 216, 0.22);
    --contact-accent-glow: rgba(46, 131, 188, 0.12);
}

.materials-page .contact-item-vk {
    --contact-accent: #4C75A3;
    --contact-accent-soft: rgba(76, 117, 163, 0.24);
    --contact-accent-glow: rgba(76, 117, 163, 0.12);
}

.materials-page .contact-item-whatsapp {
    --contact-accent: #4F8B67;
    --contact-accent-soft: rgba(79, 139, 103, 0.24);
    --contact-accent-glow: rgba(79, 139, 103, 0.12);
}

.materials-page .contact-item-document {
    --contact-accent: #7A8290;
    --contact-accent-soft: rgba(171, 177, 184, 0.25);
    --contact-accent-glow: rgba(122, 130, 144, 0.1);
}

.materials-page .contact-item-content {
    grid-area: content;
    display: grid;
    gap: 10px;
    min-width: 0;
    align-content: center;
}

.materials-page .contact-item span {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0 11px;
    color: var(--contact-accent);
    border: 1px solid color-mix(in srgb, var(--contact-accent) 18%, transparent);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.materials-page .contact-item strong {
    max-width: 100%;
    color: var(--blue);
    font: 500 clamp(20px, 1.7vw, 27px)/1.22 Georgia, "Times New Roman", serif;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.materials-page .contact-link {
    grid-area: action;
    justify-self: start;
    display: inline-flex;
    min-width: 154px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid rgba(13, 27, 42, 0.9);
    border-radius: 15px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
        var(--blue);
    box-shadow:
        0 16px 28px rgba(13, 27, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-weight: 850;
    text-decoration: none;
}

.materials-page .contact-link:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent),
        #14263a;
    box-shadow:
        0 20px 34px rgba(13, 27, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (max-width: 980px) {
    .materials-page .contact-card.contact-card-grid {
        grid-template-columns: 1fr;
        width: min(620px, 100%);
    }
}

@media (max-width: 760px) {
    .materials-page .contact-card.contact-card-grid {
        gap: 16px;
        margin-top: 28px;
    }

    .materials-page .contact-item {
        grid-template-columns: 64px 1fr;
        grid-template-areas:
            "icon content"
            "action action";
        column-gap: 14px;
        row-gap: 16px;
        min-height: 0;
        padding: 18px;
        border-radius: 22px;
    }

    .materials-page .contact-item::before {
        right: -62px;
        top: -64px;
        width: 154px;
        height: 154px;
    }

    .materials-page .contact-item::after {
        inset: 10px;
        border-radius: 18px;
        background-size: 28px 28px;
        opacity: 0.24;
    }

    .materials-page .contact-item-icon {
        width: 62px;
        height: 62px;
        border-radius: 20px;
    }

    .materials-page .contact-item-icon::after {
        inset: 9px;
        border-radius: 15px;
    }

    .materials-page .contact-item-email .contact-item-icon::before {
        font-size: 29px;
    }

    .materials-page .contact-item-phone .contact-item-icon::before,
    .materials-page .contact-item-document .contact-item-icon::before {
        font-size: 15px;
    }

    .materials-page .contact-item-telegram .contact-item-icon::before,
    .materials-page .contact-item-vk .contact-item-icon::before,
    .materials-page .contact-item-whatsapp .contact-item-icon::before {
        font-size: 18px;
    }

    .materials-page .contact-item span {
        min-height: 24px;
        padding: 0 9px;
        font-size: 10px;
    }

    .materials-page .contact-item strong {
        font-size: 18px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .materials-page .contact-link {
        width: 100%;
        min-height: 44px;
        border-radius: 14px;
    }
}
/* Registration welcome video */
.register-success-page {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.94), transparent 42%),
        linear-gradient(145deg, rgba(242, 246, 248, 0.98), rgba(224, 230, 235, 0.88));
}

.register-success-hero {
    padding: 58px 0 84px;
}

.register-success-card {
    position: relative;
    max-width: 820px;
    padding: clamp(28px, 4vw, 38px);
    overflow: hidden;
    border-color: rgba(13, 27, 42, 0.09);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 251, 0.84));
    box-shadow: 0 24px 66px rgba(13, 27, 42, 0.10);
}

.register-success-card .register-success-badge {
    width: 50px;
    height: 50px;
    margin-bottom: 13px;
    font-size: 22px;
}

.register-success-card .register-success-title {
    max-width: 680px;
    margin-top: 5px;
    margin-bottom: 11px;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.04;
}

.register-success-card .register-success-subtitle {
    max-width: 620px;
    font-size: 16px;
    line-height: 1.55;
}

.register-success-card .register-success-actions {
    margin-top: 22px;
}
.register-success-card::after {
    content: "";
    position: absolute;
    inset: auto 8% 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(94, 140, 197, 0.36), transparent);
}

.register-success-welcome {
    position: relative;
    display: block;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 54px);
    overflow: hidden;
    border: 1px solid rgba(13, 27, 42, 0.09);
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 8%, rgba(207, 224, 235, 0.58), transparent 30%),
        radial-gradient(circle at 88% 92%, rgba(225, 232, 238, 0.72), transparent 34%),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 66px rgba(13, 27, 42, 0.10);
    backdrop-filter: blur(18px);
}

.register-success-welcome-copy {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    min-width: 0;
    text-align: center;
}

.register-success-welcome-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-bottom: 15px;
    padding: 0 13px;
    border: 1px solid rgba(65, 100, 126, 0.10);
    border-radius: 999px;
    color: #41647e;
    background: rgba(231, 240, 246, 0.88);
    box-shadow: 0 6px 18px rgba(13, 27, 42, 0.05);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.register-success-welcome-copy h1 {
    max-width: 760px;
    margin: 0 auto 16px;
    color: #0d1b2a;
    font-family: var(--font-serif);
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.05;
}

.register-success-welcome-copy p {
    max-width: 720px;
    margin: 0 auto;
    color: #40505f;
    font-size: 17px;
    line-height: 1.65;
}

.register-success-video {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    min-width: 0;
    margin: 32px auto 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(13, 27, 42, 0.12);
    border-radius: 24px;
    background: #edf2f5;
    box-shadow:
        0 22px 52px rgba(13, 27, 42, 0.15),
        0 2px 8px rgba(13, 27, 42, 0.08);
}

.register-success-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.register-success-video-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 28px;
    color: #526373;
    text-align: center;
    background:
        radial-gradient(circle at 50% 22%, rgba(171, 197, 217, 0.48), transparent 44%),
        linear-gradient(145deg, #f5f8fa, #e8eef2);
}

.register-success-video-placeholder > span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    padding-left: 4px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    color: #fff;
    background: #0d1b2a;
    box-shadow: 0 13px 30px rgba(13, 27, 42, 0.20);
    font-size: 20px;
}

.register-success-video-placeholder strong {
    color: #0d1b2a;
    font-size: 20px;
}

.register-success-video-placeholder p {
    max-width: 410px;
    margin: 8px 0 0;
    color: #526373;
    font-size: 14px;
    line-height: 1.55;
}

.register-success-welcome-actions {
    position: relative;
    z-index: 1;
    margin-top: 28px;
}
.register-success-next {
    max-width: 1120px;
    margin-top: 36px;
}

.register-success-section-head {
    margin-bottom: 22px;
    text-align: center;
}

.register-success-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.register-success-step {
    flex: 0 1 calc((100% - 36px) / 3);
    width: calc((100% - 36px) / 3);
    max-width: calc((100% - 36px) / 3);
    min-height: 230px;
    padding: 24px;
    border-color: rgba(13, 27, 42, 0.085);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 38px rgba(13, 27, 42, 0.065);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.register-success-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(13, 27, 42, 0.09);
}

.register-success-step .register-success-button,
.register-success-step .register-success-button-secondary {
    max-width: 100%;
}

@media (max-width: 980px) {
    .register-success-step {
        flex-basis: calc((100% - 18px) / 2);
        width: calc((100% - 18px) / 2);
        max-width: calc((100% - 18px) / 2);
    }
}

@media (max-width: 760px) {
    .register-success-hero {
        padding: 38px 0 54px;
    }

    .register-success-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .register-success-card .register-success-title {
        font-size: clamp(31px, 9vw, 38px);
    }

    .register-success-card .register-success-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    .register-success-card .register-success-actions {
        margin-top: 19px;
    }

    .register-success-welcome {
        margin-top: 0;
        padding: 22px 18px;
        border-radius: 22px;
    }

    .register-success-welcome-copy h1 {
        font-size: clamp(31px, 9vw, 40px);
        line-height: 1.08;
    }

    .register-success-welcome-copy p {
        font-size: 14px;
        line-height: 1.58;
    }

    .register-success-video {
        width: 100%;
        margin-top: 0;
        border-radius: 15px;
        box-shadow: 0 13px 30px rgba(13, 27, 42, 0.13);
    }

    .register-success-video-placeholder {
        padding: 14px;
    }

    .register-success-video-placeholder > span {
        width: 46px;
        height: 46px;
        margin-bottom: 9px;
        font-size: 15px;
    }

    .register-success-video-placeholder strong {
        font-size: 15px;
    }

    .register-success-video-placeholder p {
        display: none;
    }

    .register-success-welcome-actions {
        margin-top: 20px;
    }

    .register-success-next {
        margin-top: 28px;
    }

    .register-success-section-head {
        text-align: left;
    }

    .register-success-step {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .register-success-step {
        transition: none;
    }
}

/* Email verification */
.verify-email-page {
    overflow-x: clip;
}

.verify-email-page .auth-section {
    display: flex;
    align-items: center;
    min-height: 680px;
    padding: 56px 0 64px;
}

.verify-email-layout {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 660px;
}

.verify-email-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    padding: 44px 46px 38px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(13, 27, 42, 0.11);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 28px 70px rgba(13, 27, 42, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
}

.verify-email-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 42px;
    left: 42px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: #abc5d9;
}

.verify-email-header {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.verify-email-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 13px;
    border: 1px solid rgba(71, 111, 137, 0.12);
    border-radius: 999px;
    color: #36566d;
    background: #edf4f7;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.verify-email-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 20px auto 15px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    color: #ffffff;
    background: #0d1b2a;
    box-shadow:
        0 14px 30px rgba(13, 27, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 700;
}

.verify-email-card h1 {
    margin: 0 0 13px;
    color: #0d1b2a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0;
}

.verify-email-intro {
    max-width: 460px;
    margin: 0 auto;
    color: #596570;
    font-size: 15px;
    line-height: 1.65;
}

.verify-email-intro strong {
    color: #0d1b2a;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.verify-email-card .form-message {
    width: 100%;
    margin: 20px 0 0;
    padding: 13px 15px;
    border-radius: 13px;
    text-align: left;
}

.verify-email-card .form-message-success {
    border-color: rgba(58, 128, 91, 0.2);
    background: #edf7f1;
}

.verify-email-card .form-message-error {
    border-color: rgba(155, 70, 70, 0.2);
    background: #fbf0f0;
}

.verify-email-dev {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(151, 112, 35, 0.2);
    border-radius: 14px;
    color: #644b19;
    background: #fff9eb;
    text-align: left;
}

.verify-email-dev div {
    display: grid;
    gap: 3px;
}

.verify-email-dev span {
    font-size: 13px;
    font-weight: 750;
}

.verify-email-dev small {
    color: #846d3e;
    font-size: 12px;
    line-height: 1.35;
}

.verify-email-dev strong {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 9px;
    color: #4e3b15;
    background: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.verify-email-controls {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.verify-email-form {
    display: grid;
    gap: 11px;
    margin: 0;
}

.verify-email-form label {
    color: #263746;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.verify-email-code {
    width: 100%;
    height: 64px;
    padding: 10px 18px;
    border: 1px solid rgba(13, 27, 42, 0.17);
    border-radius: 15px;
    color: #0d1b2a;
    background: #f6f8fa;
    box-shadow: inset 0 1px 2px rgba(13, 27, 42, 0.04);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: 10px;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.verify-email-code::placeholder {
    color: #a5adb5;
}

.verify-email-code:hover {
    border-color: rgba(13, 27, 42, 0.27);
    background: #ffffff;
}

.verify-email-code:focus {
    border-color: #6f94ab;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(111, 148, 171, 0.15);
}

.verify-email-submit,
.verify-email-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: 13px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.verify-email-submit {
    border: 1px solid #0d1b2a;
    color: #ffffff;
    background: #0d1b2a;
    box-shadow: 0 10px 24px rgba(13, 27, 42, 0.17);
}

.verify-email-submit:hover {
    transform: translateY(-1px);
    background: #172b3d;
    box-shadow: 0 13px 28px rgba(13, 27, 42, 0.2);
}

.verify-email-resend {
    margin: 0;
}

.verify-email-secondary-btn {
    border: 1px solid rgba(13, 27, 42, 0.16);
    color: #183044;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(13, 27, 42, 0.06);
}

.verify-email-secondary-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(13, 27, 42, 0.25);
    background: #f2f6f8;
    box-shadow: 0 10px 22px rgba(13, 27, 42, 0.09);
}

.verify-email-submit:focus-visible,
.verify-email-secondary-btn:focus-visible {
    outline: 3px solid rgba(78, 125, 156, 0.24);
    outline-offset: 2px;
}

.verify-email-help {
    max-width: 440px;
    margin: 17px auto 0;
    color: #76808a;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .verify-email-page .auth-section {
        min-height: auto;
        padding: 24px 0 34px;
    }

    .verify-email-layout {
        padding-right: 2px;
        padding-left: 2px;
    }

    .verify-email-card {
        padding: 30px 20px 26px;
        border-radius: 22px;
    }

    .verify-email-card::before {
        right: 24px;
        left: 24px;
    }

    .verify-email-icon {
        width: 58px;
        height: 58px;
        margin-top: 17px;
        border-radius: 17px;
        font-size: 27px;
    }

    .verify-email-card h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .verify-email-intro {
        font-size: 14px;
        line-height: 1.58;
    }

    .verify-email-dev {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .verify-email-dev strong {
        align-self: stretch;
        text-align: center;
    }

    .verify-email-controls {
        margin-top: 21px;
    }

    .verify-email-code {
        height: 60px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 23px;
        letter-spacing: 7px;
    }

    .verify-email-submit,
    .verify-email-secondary-btn {
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .verify-email-code,
    .verify-email-submit,
    .verify-email-secondary-btn {
        transition: none;
    }
}
/* Password recovery */
.login-recovery-link {
    margin: 13px 0 0 !important;
    text-align: center;
}

.login-recovery-link a {
    color: #36566d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(54, 86, 109, 0.3);
    text-underline-offset: 3px;
}

.login-recovery-link a:hover {
    color: #0d1b2a;
    text-decoration-color: currentColor;
}

.password-recovery-page {
    overflow-x: clip;
}

.password-recovery-section {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 680px;
    padding: 56px 0 64px;
}

.password-recovery-layout {
    display: grid;
    place-items: center;
    width: min(calc(100% - 48px), 620px);
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
}

.password-recovery-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 42px 46px 36px;
    overflow: hidden;
    border: 1px solid rgba(13, 27, 42, 0.11);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 28px 70px rgba(13, 27, 42, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    backdrop-filter: blur(18px);
}

.password-recovery-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 42px;
    left: 42px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: #abc5d9;
}

.password-recovery-header {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.password-recovery-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 13px;
    border: 1px solid rgba(71, 111, 137, 0.12);
    border-radius: 999px;
    color: #36566d;
    background: #edf4f7;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.password-recovery-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 20px auto 15px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 19px;
    color: #ffffff;
    background: #0d1b2a;
    box-shadow:
        0 14px 30px rgba(13, 27, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 700;
}

.password-recovery-key {
    letter-spacing: 3px;
}

.password-recovery-card h1 {
    margin: 0 0 13px;
    color: #0d1b2a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: 0;
}

.password-recovery-header > p {
    max-width: 470px;
    margin: 0;
    color: #5c6771;
    font-size: 15px;
    line-height: 1.62;
}

.password-recovery-card .form-message {
    margin: 21px 0 0;
    padding: 13px 15px;
    border-radius: 13px;
    text-align: left;
}

.password-recovery-card .form-message-success {
    border-color: rgba(58, 128, 91, 0.2);
    background: #edf7f1;
}

.password-recovery-card .form-message-error {
    border-color: rgba(155, 70, 70, 0.2);
    background: #fbf0f0;
}

.password-recovery-form {
    gap: 15px;
    margin-top: 24px;
    text-align: left;
}

.password-recovery-form .password-recovery-field {
    display: grid;
    gap: 7px;
}

.password-recovery-form .password-recovery-field > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    color: #263746;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.password-recovery-form input {
    height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(13, 27, 42, 0.17);
    border-radius: 14px;
    color: #0d1b2a;
    background: #f6f8fa;
    font-size: 15px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.password-recovery-form input::placeholder {
    color: #929ca5;
}

.password-recovery-form input:hover {
    border-color: rgba(13, 27, 42, 0.27);
    background: #ffffff;
}

.password-recovery-form input:focus {
    border-color: #6f94ab;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(111, 148, 171, 0.15);
}

.password-recovery-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 13px;
    box-shadow: 0 10px 24px rgba(13, 27, 42, 0.17);
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
}

.password-recovery-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(13, 27, 42, 0.2);
}

.password-recovery-note {
    margin: 17px auto 0;
    color: #77818a;
    font-size: 13px;
    line-height: 1.5;
}

.password-recovery-back {
    display: inline-flex;
    margin-top: 17px;
    color: #36566d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(54, 86, 109, 0.3);
    text-underline-offset: 3px;
}

.password-recovery-back:hover {
    color: #0d1b2a;
    text-decoration-color: currentColor;
}

@media (max-width: 600px) {
    .password-recovery-section {
        min-height: auto;
        padding: 24px 0 34px;
    }

    .password-recovery-layout {
        width: min(calc(100% - 24px), 620px);
    }

    .password-recovery-card {
        padding: 30px 20px 26px;
        border-radius: 22px;
    }

    .password-recovery-card::before {
        right: 24px;
        left: 24px;
    }

    .password-recovery-icon {
        width: 58px;
        height: 58px;
        margin-top: 17px;
        border-radius: 17px;
        font-size: 26px;
    }

    .password-recovery-card h1 {
        font-size: 31px;
        line-height: 1.16;
    }

    .password-recovery-header > p {
        font-size: 14px;
        line-height: 1.56;
    }

    .password-recovery-form {
        margin-top: 21px;
    }

    .password-recovery-primary {
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .password-recovery-form input,
    .password-recovery-primary {
        transition: none;
    }
}
/* Password strength hint */
.password-security-hint {
    margin: -2px 0 2px !important;
    padding: 9px 11px;
    border-left: 3px solid #abc5d9;
    border-radius: 0 9px 9px 0;
    color: #63717d !important;
    background: rgba(237, 244, 247, 0.72);
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-align: left;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {
    .password-security-hint {
        padding: 8px 10px;
        font-size: 11.5px !important;
    }
}
/* Desktop contact cards refinement */
@media (min-width: 981px) {
    .materials-page .contact-card.contact-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: 16px;
        width: min(1320px, calc(100vw - 96px));
        max-width: none;
        margin: 28px 0 0 50%;
        transform: translateX(-50%);
    }

    .materials-page .contact-item {
        --contact-accent: #587fa8;
        --contact-accent-soft: rgba(171, 197, 217, 0.14);
        --contact-accent-glow: rgba(88, 127, 168, 0.05);
        position: relative;
        isolation: isolate;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        grid-template-areas:
            "content"
            "action";
        align-content: center;
        align-items: start;
        gap: 10px;
        min-height: 156px;
        height: 100%;
        padding: 18px 74px 18px 20px;
        overflow: hidden;
        border: 1px solid rgba(13, 27, 42, 0.075);
        border-radius: 20px;
                background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.92));
        box-shadow: 0 10px 24px rgba(13, 27, 42, 0.045);
        backdrop-filter: blur(10px);
    }

        .materials-page .contact-item::before,
    .materials-page .contact-item::after {
        display: none;
    }

    .materials-page .contact-item:hover {
        border-color: rgba(110, 153, 199, 0.27);
                background: linear-gradient(145deg, #fff, rgba(249, 251, 252, 0.98));
        box-shadow: 0 15px 32px rgba(13, 27, 42, 0.065);
        transform: translateY(-3px);
    }

    .materials-page .contact-item-icon {
        grid-area: auto;
        position: absolute;
        top: 50%;
        right: 6px;
        z-index: 0;
        display: grid;
        width: 72px;
        height: 86px;
        place-items: center;
        border: 0;
        border-radius: 0;
        color: #6e99c7;
        background: transparent;
        box-shadow: none;
        opacity: 0.13;
        pointer-events: none;
        transform: translateY(-50%);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .materials-page .contact-item:hover .contact-item-icon {
        opacity: 0.18;
        transform: translateY(-50%) scale(1.03);
    }

    .materials-page .contact-item-icon::after {
        display: none;
    }

    .materials-page .contact-item-icon::before {
        content: "в†—";
        color: currentColor;
        font: 700 48px/1 Georgia, "Times New Roman", serif;
        text-shadow: none;
    }

    .materials-page .contact-item-email .contact-item-icon::before {
        content: "@";
        font-size: 58px;
    }

    .materials-page .contact-item-phone .contact-item-icon::before {
        content: "вЋ";
        font-size: 50px;
    }

    .materials-page .contact-item-telegram .contact-item-icon::before {
        content: "вћ¤";
        font-size: 54px;
        transform: rotate(-18deg);
    }

    .materials-page .contact-item-vk .contact-item-icon::before {
        content: "VK";
        font: 800 35px/1 Arial, sans-serif;
        letter-spacing: 0;
    }

    .materials-page .contact-item-whatsapp .contact-item-icon::before {
        content: "WA";
        font: 800 32px/1 Arial, sans-serif;
        letter-spacing: 0;
    }

    .materials-page .contact-item-document .contact-item-icon::before {
        content: "PDF";
        font: 800 27px/1 Arial, sans-serif;
        letter-spacing: 0;
    }

    .materials-page .contact-item-content {
        grid-area: content;
        position: relative;
        z-index: 1;
        display: grid;
        gap: 5px;
        align-content: center;
        min-width: 0;
    }

    .materials-page .contact-item span {
        display: block;
        width: 100%;
        min-height: 0;
        padding: 0;
        color: #6b7d8d;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        font-size: 10px;
        font-weight: 800;
        line-height: 1.3;
        letter-spacing: 0;
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .materials-page .contact-item strong {
        display: block;
        width: 100%;
        max-width: 100%;
        max-height: none;
        overflow: visible;
        color: var(--blue);
        font: 650 15px/1.35 Arial, sans-serif;
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
        text-overflow: clip;
    }

    .materials-page .contact-link {
        grid-area: action;
        position: relative;
        z-index: 1;
        justify-self: start;
        width: 108px;
        min-width: 108px;
        min-height: 34px;
        padding: 0 13px;
        border-radius: 10px;
        box-shadow: 0 6px 14px rgba(13, 27, 42, 0.075);
        font-size: 12px;
        font-weight: 700;
    }

    .materials-page .contact-link:hover {
        box-shadow: 0 9px 18px rgba(13, 27, 42, 0.11);
        transform: translateY(-1px);
    }
}

@media (min-width: 1200px) {
    .materials-page .contact-item {
        background:
            radial-gradient(circle at var(--contact-decor-x, 88%) var(--contact-decor-y, 50%), transparent 0 36px, rgba(116, 158, 193, 0.2) 37px 38px, transparent 39px 51px, rgba(116, 158, 193, 0.14) 52px 53px, transparent 54px 68px, rgba(116, 158, 193, 0.09) 69px 70px, transparent 71px),
            linear-gradient(118deg, transparent 62%, rgba(185, 208, 226, 0.13) 100%),
            linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(249, 250, 251, 0.94));
    }

    .materials-page .contact-item-email {
        --contact-decor-x: 88%;
        --contact-decor-y: 56%;
    }

    .materials-page .contact-item-phone {
        --contact-decor-x: 86%;
        --contact-decor-y: 45%;
    }

    .materials-page .contact-item-telegram {
        --contact-decor-x: 89%;
        --contact-decor-y: 61%;
    }

    .materials-page .contact-item-vk {
        --contact-decor-x: 85%;
        --contact-decor-y: 43%;
    }

    .materials-page .contact-item::before {
        content: "";
        position: absolute;
        top: -44px;
        right: -34px;
        z-index: 0;
        display: block;
        width: 176px;
        height: 118px;
        border: 1px solid rgba(116, 158, 193, 0.18);
        border-radius: 50%;
        background: transparent;
        pointer-events: none;
        transform: rotate(18deg);
    }

    .materials-page .contact-item::after {
        content: "";
        position: absolute;
        right: -32px;
        bottom: -38px;
        z-index: 0;
        display: block;
        width: 168px;
        height: 84px;
        border: 1px solid rgba(116, 158, 193, 0.15);
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-radius: 50%;
        pointer-events: none;
        transform: rotate(-16deg);
    }

    .materials-page .contact-item:hover {
        background:
            radial-gradient(circle at var(--contact-decor-x, 88%) var(--contact-decor-y, 50%), transparent 0 36px, rgba(116, 158, 193, 0.25) 37px 38px, transparent 39px 51px, rgba(116, 158, 193, 0.17) 52px 53px, transparent 54px 68px, rgba(116, 158, 193, 0.11) 69px 70px, transparent 71px),
            linear-gradient(118deg, transparent 60%, rgba(185, 208, 226, 0.18) 100%),
            linear-gradient(145deg, #fff, rgba(249, 251, 252, 0.98));
    }

    .materials-page .contact-item-icon {
        color: #6b94ba;
        opacity: 0.26;
    }

    .materials-page .contact-item:hover .contact-item-icon {
        opacity: 0.34;
    }

    .materials-page .contact-item-phone::before {
        top: -50px;
        right: -20px;
        transform: rotate(34deg);
    }

    .materials-page .contact-item-phone::after {
        right: -20px;
        bottom: -42px;
        transform: rotate(9deg);
    }

    .materials-page .contact-item-telegram::before {
        top: -40px;
        right: -42px;
        border-radius: 42%;
        transform: rotate(41deg);
    }

    .materials-page .contact-item-telegram::after {
        right: -28px;
        bottom: -32px;
        transform: rotate(-28deg);
    }

    .materials-page .contact-item-vk::before {
        top: -58px;
        right: -22px;
        transform: rotate(-21deg) scale(1.04);
    }

    .materials-page .contact-item-vk::after {
        right: -14px;
        bottom: -44px;
        transform: rotate(22deg);
    }
}
@media (min-width: 1280px) {
    .materials-page .contact-card.contact-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* Soft-edge portrait for the About page */
.about-intro-grid .about-photo {
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.about-intro-grid .about-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    filter: saturate(0.94) contrast(0.98);
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, #000 58%, rgba(0, 0, 0, 0.95) 66%, rgba(0, 0, 0, 0.7) 74%, rgba(0, 0, 0, 0.35) 84%, rgba(0, 0, 0, 0.12) 92%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, #000 58%, rgba(0, 0, 0, 0.95) 66%, rgba(0, 0, 0, 0.7) 74%, rgba(0, 0, 0, 0.35) 84%, rgba(0, 0, 0, 0.12) 92%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
/* About editorial page */
.about-page {
    display: block;
    min-height: 0;
    padding: 72px 0 88px;
}

.about-page-shell {
    width: min(1180px, 100%);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.about-intro-copy h1 {
    margin: 8px 0 14px;
    color: var(--blue);
    font-size: clamp(46px, 5vw, 68px);
    line-height: 1.02;
}

.about-kicker {
    margin: 0;
    color: #60798e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.about-role {
    max-width: 720px;
    margin: 0;
    color: #32485b;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.5;
}

.about-lead {
    display: grid;
    gap: 15px;
    margin-top: 28px;
}

.about-lead p,
.about-chapter-copy p {
    margin: 0;
    color: #27333d;
    font-size: 17px;
    line-height: 1.72;
}

.about-content {
    margin-top: 82px;
}

.about-chapter {
    padding: 58px 0 62px;
    border-top: 1px solid rgba(13, 27, 42, 0.11);
}

.about-chapter-heading {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 20px;
    align-items: baseline;
}

.about-chapter-heading > span {
    color: #7fa6c4;
    font-size: 12px;
    font-weight: 800;
}

.about-chapter-heading h2 {
    margin: 0;
    color: var(--blue);
    font: 500 clamp(34px, 4vw, 50px)/1.1 Georgia, "Times New Roman", serif;
}

.about-chapter-copy,
.about-metrics-title,
.about-metrics-grid {
    margin-left: 72px;
}

.about-chapter-copy {
    display: grid;
    gap: 16px;
    max-width: 940px;
    margin-top: 28px;
}

.about-metrics-title {
    margin-top: 44px;
    margin-bottom: 18px;
    color: var(--blue);
    font: 500 25px/1.25 Georgia, "Times New Roman", serif;
}

.about-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.about-metric {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 152px;
    padding: 22px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 14px 34px rgba(13, 27, 42, 0.05);
}

.about-metric strong {
    color: var(--blue);
    font: 500 38px/1 Georgia, "Times New Roman", serif;
}

.about-metric span {
    color: #40505e;
    font-size: 14px;
    line-height: 1.5;
}

.about-metric-wide {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 0;
}

.about-text-chapter .about-chapter-copy,
.about-gaidra .about-chapter-copy {
    max-width: 860px;
}

.about-gaidra {
    padding-bottom: 0;
}

@media (max-width: 900px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .about-intro-grid .about-photo {
        width: min(480px, 100%);
    }

    .about-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .about-page {
        padding: 42px 0 58px;
    }

    .about-intro-copy h1 {
        font-size: clamp(38px, 12vw, 46px);
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .about-role {
        font-size: 16px;
    }

    .about-lead p,
    .about-chapter-copy p {
        font-size: 16px;
        line-height: 1.65;
    }

    .about-content {
        margin-top: 52px;
    }

    .about-chapter {
        padding: 42px 0 46px;
    }

    .about-chapter-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .about-chapter-heading h2 {
        font-size: 32px;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .about-chapter-copy,
    .about-metrics-title,
    .about-metrics-grid {
        margin-left: 0;
    }

    .about-chapter-copy {
        margin-top: 22px;
    }

    .about-metrics-title {
        margin-top: 34px;
    }

    .about-metrics-grid {
        grid-template-columns: 1fr;
    }

    .about-metric {
        min-height: 0;
        padding: 18px;
    }

    .about-metric-wide {
        grid-column: auto;
        grid-template-columns: 1fr;
        align-items: start;
    }
}
/* Premium About page polish */
.about-page-shell {
    position: relative;
}

.about-intro-grid {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
    gap: 56px;
    margin-inline: -28px;
    padding: 44px 28px 48px;
    overflow: hidden;
    border-top: 1px solid rgba(13, 27, 42, 0.08);
    border-bottom: 1px solid rgba(13, 27, 42, 0.1);
    background: linear-gradient(112deg, rgba(255, 255, 255, 0.46), rgba(230, 235, 239, 0.18) 64%, rgba(190, 211, 227, 0.18));
}

.about-intro-grid::before {
    content: "";
    position: absolute;
    top: 22px;
    right: 18px;
    z-index: -1;
    width: 210px;
    height: 142px;
    background-image:
        linear-gradient(rgba(115, 151, 180, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(115, 151, 180, 0.13) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(135deg, transparent, #000 28%, #000 66%, transparent);
    mask-image: linear-gradient(135deg, transparent, #000 28%, #000 66%, transparent);
}

.about-intro-grid::after {
    content: "";
    position: absolute;
    right: 34px;
    bottom: 30px;
    z-index: -1;
    width: 138px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(105, 145, 176, 0.42), transparent);
    transform: rotate(-18deg);
}

.about-intro-grid .about-photo {
    width: calc(100% + 18px);
    margin-left: -18px;
}

.about-intro-grid .about-photo img {
    filter: saturate(0.97) contrast(1.01);
}

.about-intro-copy {
    position: relative;
    z-index: 1;
}

.about-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #52738d;
}

.about-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #a9cbe2;
    box-shadow: 0 0 0 5px rgba(169, 203, 226, 0.17);
}

.about-intro-copy h1 {
    margin-top: 12px;
    text-wrap: balance;
}

.about-role {
    padding-left: 18px;
    border-left: 2px solid #a9cbe2;
    color: #263c4f;
    font-size: 19px;
    line-height: 1.55;
}

.about-lead {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 32px;
}

.about-lead p {
    padding-top: 16px;
    border-top: 1px solid rgba(13, 27, 42, 0.12);
    font-size: 16px;
    line-height: 1.68;
}

.about-content {
    margin-top: 70px;
}

.about-chapter {
    position: relative;
    isolation: isolate;
    padding: 64px 0 68px;
    overflow: hidden;
}

.about-chapter::before {
    content: "";
    position: absolute;
    top: 24px;
    right: 8px;
    z-index: -1;
    width: 176px;
    height: 70px;
    background: repeating-linear-gradient(158deg, transparent 0 17px, rgba(121, 158, 190, 0.12) 18px 19px);
    opacity: 0.7;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 36%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 36%, transparent);
}

.about-content .about-chapter:nth-child(even) {
    margin-inline: -28px;
    padding-inline: 28px;
    border-top-color: rgba(112, 148, 176, 0.16);
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.54), rgba(222, 231, 238, 0.28));
}

.about-chapter-heading {
    align-items: center;
}

.about-chapter-heading > span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7095b2;
}

.about-chapter-heading > span::after {
    content: "";
    width: 27px;
    height: 1px;
    background: rgba(112, 149, 178, 0.58);
}

.about-chapter-heading h2 {
    text-wrap: balance;
}

.about-chapter-copy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 34px;
    max-width: 1000px;
}

.about-chapter-copy p {
    padding-left: 16px;
    border-left: 1px solid rgba(116, 154, 183, 0.28);
}

.about-chapter-copy p:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 72%;
}

.about-metrics-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 48px;
    font-size: 27px;
}

.about-metrics-title::after {
    content: "";
    width: min(220px, 28vw);
    height: 1px;
    background: linear-gradient(90deg, rgba(118, 157, 187, 0.42), transparent);
}

.about-metrics-grid {
    gap: 16px;
}

.about-metric {
    position: relative;
    isolation: isolate;
    min-height: 164px;
    overflow: hidden;
    padding: 24px;
    border-color: rgba(92, 126, 151, 0.13);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 249, 0.82));
    box-shadow: 0 16px 38px rgba(13, 27, 42, 0.055);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.about-metric::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #8fb8d4, rgba(143, 184, 212, 0.08));
}

.about-metric::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -40px;
    z-index: -1;
    width: 94px;
    height: 94px;
    border: 1px solid rgba(118, 157, 187, 0.16);
    border-radius: 28px;
    transform: rotate(24deg);
}

.about-metric:hover {
    border-color: rgba(118, 157, 187, 0.32);
    box-shadow: 0 20px 44px rgba(13, 27, 42, 0.08);
    transform: translateY(-3px);
}

.about-metric strong {
    position: relative;
    color: #163047;
    font-size: 44px;
}

.about-metric span {
    position: relative;
    max-width: 92%;
    color: #3c4d5b;
    font-size: 14.5px;
}

.about-metric:not(.about-metric-wide) {
    min-height: 192px;
}

.about-metric-wide {
    min-height: 100px;
    padding-inline: 28px;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.94), rgba(210, 225, 236, 0.55));
}

.about-metric-wide strong {
    min-width: 58px;
}

.about-text-chapter {
    margin-inline: -28px;
    padding-inline: 28px;
    border-bottom: 1px solid rgba(112, 148, 176, 0.16);
    background: linear-gradient(108deg, rgba(255, 255, 255, 0.7), rgba(214, 226, 235, 0.34));
}

.about-text-chapter .about-chapter-copy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: none;
}

.about-text-chapter .about-chapter-copy p {
    padding: 18px 0 0;
    border-top: 2px solid rgba(143, 184, 212, 0.5);
    border-left: 0;
}

.about-gaidra {
    margin: 0 -28px;
    padding: 72px 28px 74px;
    border-top: 1px solid rgba(112, 148, 176, 0.18);
    border-bottom: 1px solid rgba(112, 148, 176, 0.18);
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.76), rgba(200, 219, 232, 0.42));
}

.about-gaidra::before {
    top: 0;
    right: 0;
    width: 260px;
    height: 100%;
    background-image:
        linear-gradient(rgba(107, 148, 178, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 148, 178, 0.12) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.56;
}

.about-gaidra .about-chapter-heading h2 {
    font-size: clamp(42px, 5vw, 58px);
}

.about-gaidra .about-chapter-copy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    max-width: 980px;
}

@media (max-width: 960px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-inline: 0;
        padding-inline: 24px;
    }

    .about-intro-grid .about-photo {
        width: min(500px, 100%);
        margin-left: 0;
    }

    .about-lead,
    .about-chapter-copy,
    .about-text-chapter .about-chapter-copy,
    .about-gaidra .about-chapter-copy {
        grid-template-columns: 1fr;
    }

    .about-chapter-copy p:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .about-intro-grid {
        padding: 24px 0 38px;
        overflow: visible;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
    }

    .about-intro-grid::before {
        right: -8px;
        width: 130px;
        height: 104px;
        background-size: 22px 22px;
    }

    .about-intro-grid::after {
        display: none;
    }

    .about-role {
        padding-left: 13px;
        font-size: 16px;
    }

    .about-lead {
        gap: 18px;
        margin-top: 26px;
    }

    .about-content {
        margin-top: 44px;
    }

    .about-chapter,
    .about-content .about-chapter:nth-child(even),
    .about-text-chapter,
    .about-gaidra {
        margin-inline: 0;
        padding: 44px 0 48px;
    }

    .about-chapter::before {
        right: -34px;
        width: 132px;
    }

    .about-chapter-heading > span::after {
        width: 34px;
    }

    .about-chapter-copy p,
    .about-text-chapter .about-chapter-copy p {
        padding: 0 0 0 13px;
        border-top: 0;
        border-left: 1px solid rgba(116, 154, 183, 0.28);
    }

    .about-metrics-title {
        align-items: flex-start;
        font-size: 24px;
    }

    .about-metrics-title::after {
        display: none;
    }

    .about-metric,
    .about-metric:not(.about-metric-wide) {
        min-height: 0;
        padding: 20px;
    }

    .about-metric strong {
        font-size: 40px;
    }

    .about-metric-wide {
        padding: 20px;
    }

    .about-gaidra {
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(200, 219, 232, 0.34));
    }
}
/* About page scale and depth pass */
.about-page-shell {
    width: min(1280px, 100%);
    max-width: 1280px;
}

.about-intro-grid {
    grid-template-columns: minmax(350px, 430px) minmax(0, 1fr);
    gap: 64px;
    padding: 54px 40px 58px;
    border: 1px solid rgba(93, 126, 151, 0.1);
    border-radius: 18px;
    background: linear-gradient(112deg, rgba(255, 255, 255, 0.66), rgba(239, 243, 246, 0.42) 62%, rgba(197, 217, 231, 0.25));
    box-shadow: 0 22px 54px rgba(13, 27, 42, 0.045);
}

.about-intro-copy h1 {
    font-size: clamp(52px, 5vw, 74px);
}

.about-role {
    font-size: 20px;
    line-height: 1.6;
}

.about-lead {
    gap: 28px;
    margin-top: 36px;
}

.about-lead p,
.about-chapter-copy p {
    color: #282d31;
    font-size: 18px;
    line-height: 1.76;
}

.about-chapter {
    padding-top: 72px;
    padding-bottom: 76px;
}

.about-chapter-heading h2 {
    font-size: clamp(38px, 4vw, 54px);
}

.about-chapter-copy {
    gap: 24px 40px;
    max-width: 1120px;
}

.about-content .about-chapter:nth-child(even),
.about-text-chapter,
.about-gaidra {
    border: 1px solid rgba(101, 137, 164, 0.11);
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(13, 27, 42, 0.04);
}

.about-metrics-title {
    margin-top: 54px;
    font-size: 29px;
}

.about-metrics-grid {
    gap: 18px;
}

.about-metric {
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(13, 27, 42, 0.065);
}

.about-metric:not(.about-metric-wide) {
    min-height: 210px;
}

.about-metric strong {
    font-size: 50px;
}

.about-metric span {
    max-width: 94%;
    font-size: 16px;
    line-height: 1.58;
}

.about-metric::after {
    right: -24px;
    bottom: -34px;
    width: 112px;
    height: 112px;
    border-color: rgba(118, 157, 187, 0.21);
}

.about-metric-wide {
    min-height: 116px;
    padding-inline: 32px;
}

.about-text-chapter,
.about-gaidra {
    padding-inline: 40px;
}

.about-gaidra .about-chapter-copy {
    max-width: 1100px;
}

@media (max-width: 1440px) {
    .about-intro-grid,
    .about-content .about-chapter:nth-child(even),
    .about-text-chapter,
    .about-gaidra {
        margin-inline: 0;
    }
}

@media (max-width: 960px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 38px 30px 44px;
    }

    .about-lead,
    .about-chapter-copy,
    .about-text-chapter .about-chapter-copy,
    .about-gaidra .about-chapter-copy {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .about-intro-grid {
        padding: 24px 0 38px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .about-intro-copy h1 {
        font-size: clamp(38px, 12vw, 46px);
    }

    .about-role {
        font-size: 16px;
        line-height: 1.55;
    }

    .about-lead p,
    .about-chapter-copy p {
        font-size: 16px;
        line-height: 1.68;
    }

    .about-chapter,
    .about-content .about-chapter:nth-child(even),
    .about-text-chapter,
    .about-gaidra {
        padding: 44px 0 48px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .about-metric,
    .about-metric:not(.about-metric-wide) {
        min-height: 0;
        padding: 20px;
    }

    .about-metric strong {
        font-size: 42px;
    }

    .about-metric span {
        font-size: 15px;
    }

    .about-metric-wide {
        min-height: 0;
        padding: 20px;
    }
}
/* About page density and emphasis pass */
.about-page {
    padding-top: 56px;
    padding-bottom: 68px;
}

.about-content {
    margin-top: 46px;
}

.about-chapter {
    padding-top: 56px;
    padding-bottom: 60px;
}

.about-metrics-title {
    margin-top: 44px;
}

.about-text-chapter,
.about-gaidra {
    position: relative;
    overflow: hidden;
}

.about-text-chapter::after {
    content: "";
    position: absolute;
    right: -46px;
    bottom: -58px;
    z-index: -1;
    width: 190px;
    height: 136px;
    border: 1px solid rgba(113, 153, 184, 0.2);
    border-radius: 46px;
    box-shadow:
        -26px -22px 0 -25px rgba(113, 153, 184, 0.35),
        -54px -44px 0 -53px rgba(113, 153, 184, 0.24);
    transform: rotate(18deg);
}

.about-text-chapter .about-chapter-heading h2 {
    font-size: clamp(42px, 4.4vw, 58px);
}

.about-text-chapter .about-chapter-copy {
    gap: 22px 32px;
}

.about-gaidra {
    padding-top: 62px;
    padding-bottom: 64px;
    background:
        linear-gradient(90deg, rgba(143, 184, 212, 0.22) 0 3px, transparent 3px),
        linear-gradient(118deg, rgba(255, 255, 255, 0.84), rgba(195, 216, 231, 0.5));
}

.about-gaidra::after {
    content: "";
    position: absolute;
    right: 48px;
    bottom: -74px;
    z-index: -1;
    width: 224px;
    height: 170px;
    border: 1px solid rgba(103, 145, 177, 0.22);
    border-radius: 52px;
    transform: rotate(-16deg);
}

.about-gaidra .about-chapter-heading h2 {
    font-size: clamp(48px, 5.4vw, 66px);
}

.about-gaidra .about-chapter-copy p {
    font-size: 18.5px;
}

.about-metric strong {
    letter-spacing: 0;
    text-shadow: 0 8px 22px rgba(13, 27, 42, 0.08);
}

@media (max-width: 960px) {
    .about-page {
        padding-top: 46px;
    }

    .about-content {
        margin-top: 38px;
    }
}

@media (max-width: 600px) {
    .about-page {
        padding: 40px 0 54px;
    }

    .about-content {
        margin-top: 38px;
    }

    .about-chapter,
    .about-content .about-chapter:nth-child(even),
    .about-text-chapter,
    .about-gaidra {
        padding-top: 40px;
        padding-bottom: 44px;
    }

    .about-text-chapter::after,
    .about-gaidra::after {
        opacity: 0.62;
        transform: scale(0.72) rotate(16deg);
        transform-origin: right bottom;
    }

    .about-text-chapter .about-chapter-heading h2,
    .about-gaidra .about-chapter-heading h2 {
        font-size: 34px;
    }

    .about-gaidra .about-chapter-copy p {
        font-size: 16px;
    }
}
/* About lower section separation */
.about-content > .about-chapter:nth-child(2) {
    margin-block: 30px;
    border-color: rgba(105, 146, 177, 0.17);
    background: linear-gradient(132deg, rgba(255, 255, 255, 0.94), rgba(220, 232, 240, 0.58));
    box-shadow: 0 24px 58px rgba(13, 27, 42, 0.065);
}

.about-content > .about-chapter:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 72px;
    width: 132px;
    height: 3px;
    background: linear-gradient(90deg, #8fb8d4, rgba(143, 184, 212, 0.08));
}

.about-content > .about-text-chapter {
    margin-block: 0 30px;
    border-color: rgba(13, 27, 42, 0.1);
    background: linear-gradient(132deg, rgba(255, 255, 255, 0.96), rgba(239, 243, 246, 0.78));
    box-shadow: 0 22px 52px rgba(13, 27, 42, 0.055);
}

.about-content > .about-chapter.about-gaidra {
    margin-block: 0 16px;
    border-color: rgba(104, 146, 177, 0.2);
    background:
        linear-gradient(90deg, rgba(143, 184, 212, 0.28) 0 3px, transparent 3px),
        linear-gradient(125deg, rgba(255, 255, 255, 0.94), rgba(190, 214, 231, 0.62));
    box-shadow: 0 26px 62px rgba(13, 27, 42, 0.07);
}

@media (max-width: 600px) {
    .about-content > .about-chapter:nth-child(2),
    .about-content > .about-text-chapter,
    .about-content > .about-chapter.about-gaidra {
        margin-block: 18px;
    }

    .about-content > .about-chapter:nth-child(2)::after {
        left: 14px;
        width: 92px;
        height: 2px;
    }
}
/* Home premium sections */
.home-page .quick-links {
    padding-top: 34px;
    padding-bottom: 34px;
}

.home-page .quick-card,
.home-page .mini-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    border-color: rgba(13, 27, 42, 0.085);
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.94), rgba(238, 243, 247, 0.74));
    box-shadow: 0 18px 46px rgba(13, 27, 42, 0.065);
}

.home-page .quick-card::before,
.home-page .mini-card::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    width: 3px;
    height: 46px;
    border-radius: 0 3px 3px 0;
    background: #9fc5dd;
}

.home-page .quick-card::after,
.home-page .mini-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -46px;
    z-index: -1;
    width: 112px;
    height: 82px;
    border: 1px solid rgba(105, 147, 178, 0.17);
    border-radius: 28px;
    box-shadow: -22px -18px 0 -21px rgba(105, 147, 178, 0.2);
    transform: rotate(-15deg);
    pointer-events: none;
}

.home-page .quick-card:hover,
.home-page .mini-card:hover {
    border-color: rgba(105, 157, 193, 0.42);
    background: linear-gradient(118deg, #fff, rgba(235, 244, 249, 0.88));
    box-shadow: 0 24px 54px rgba(13, 27, 42, 0.1);
    transform: translateY(-3px);
}

.home-page .quick-card {
    min-height: 118px;
    padding: 25px 23px;
}

.home-page .quick-card h3,
.home-page .mini-card h3 {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0;
}

.home-page .quick-card h3 {
    margin-bottom: 7px;
    font-size: 20px;
}

.home-page .quick-icon,
.home-page .mini-icon {
    border: 1px solid rgba(105, 153, 187, 0.28);
    background: rgba(231, 241, 247, 0.88);
    box-shadow: 0 10px 24px rgba(72, 115, 144, 0.07);
}

.home-page .section-audience > .container,
.home-page .section-courses > .container,
.home-page .faq-panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 32px;
    border: 1px solid rgba(13, 27, 42, 0.085);
    border-radius: 18px;
    background: linear-gradient(112deg, rgba(255, 255, 255, 0.91), rgba(239, 244, 247, 0.73) 72%, rgba(220, 234, 243, 0.58));
    box-shadow: 0 22px 56px rgba(13, 27, 42, 0.07);
}

.home-page .section-audience > .container::before,
.home-page .section-courses > .container::before,
.home-page .faq-panel::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 0;
    width: 3px;
    height: 64px;
    border-radius: 0 3px 3px 0;
    background: #8fb8d4;
}

.home-page .section-audience > .container::after,
.home-page .section-courses > .container::after,
.home-page .faq-panel::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -70px;
    z-index: -1;
    width: 188px;
    height: 132px;
    border: 1px solid rgba(105, 147, 178, 0.17);
    border-radius: 42px;
    box-shadow:
        -25px -20px 0 -24px rgba(105, 147, 178, 0.22),
        -50px -40px 0 -49px rgba(105, 147, 178, 0.14);
    transform: rotate(-16deg);
    pointer-events: none;
}

.home-page .section-audience,
.home-page .section-courses,
.home-page .section-faq {
    padding-top: 28px;
    padding-bottom: 28px;
}

.home-page .section-heading {
    position: relative;
    z-index: 2;
    gap: 14px;
    margin-bottom: 26px;
}

.home-page .section-heading h2 {
    color: var(--blue);
    font: 500 clamp(34px, 3.5vw, 46px)/1.08 Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.home-page .section-heading span {
    position: relative;
    width: 42px;
    height: 1px;
    border-radius: 0;
    background: rgba(105, 149, 181, 0.56);
}

.home-page .section-heading span::after {
    content: "";
    position: absolute;
    top: -3px;
    right: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9fc5dd;
}

.home-page .audience-grid,
.home-page .home-courses-carousel,
.home-page .faq-list {
    position: relative;
    z-index: 1;
}

.home-page .mini-card {
    min-height: 206px;
    padding: 27px 20px;
}

.home-page .mini-card h3 {
    font-size: 20px;
}

.home-page .section-courses > .container {
    background: linear-gradient(112deg, rgba(250, 253, 254, 0.96), rgba(230, 241, 247, 0.79) 70%, rgba(210, 230, 242, 0.65));
}

.home-page .home-course-card {
    border-color: rgba(13, 27, 42, 0.085);
    box-shadow: 0 14px 34px rgba(13, 27, 42, 0.065);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-page .home-course-card:hover {
    border-color: rgba(105, 157, 193, 0.42);
    box-shadow: 0 22px 46px rgba(13, 27, 42, 0.11);
}

.home-page .faq-panel {
    padding-top: 32px;
}

.home-page .question-item {
    position: relative;
    z-index: 1;
    border-color: rgba(13, 27, 42, 0.075);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 28px rgba(13, 27, 42, 0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-page .question-item:hover,
.home-page .question-item.is-open {
    border-color: rgba(105, 157, 193, 0.36);
    box-shadow: 0 16px 34px rgba(13, 27, 42, 0.075);
    transform: translateY(-1px);
}

.home-page .question-button {
    min-height: 64px;
    padding: 0 19px 0 22px;
    font-size: 17px;
}

.home-page .question-toggle {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(105, 153, 187, 0.28);
    border-radius: 50%;
    background: rgba(232, 242, 248, 0.82);
    font-size: 19px;
}

.home-page .question-answer p {
    padding: 0 22px 21px;
}


/* Student help center */
.help-page {
    padding: 54px 0 0;
}

.help-hero {
    position: relative;
    padding: 42px 0 36px;
    overflow: hidden;
}

.help-hero::after {
    content: "";
    position: absolute;
    right: 7%;
    bottom: 12px;
    width: 170px;
    height: 92px;
    border-top: 1px solid rgba(116, 160, 190, 0.26);
    border-right: 1px solid rgba(116, 160, 190, 0.16);
    transform: skewX(-24deg);
    pointer-events: none;
}

.help-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    gap: 64px;
    align-items: end;
}

.help-hero-copy h1 {
    max-width: 760px;
    margin: 10px 0 14px;
    color: var(--blue);
    font: 500 58px/1.05 Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.help-hero-copy > p:last-child {
    max-width: 720px;
    margin: 22px 0 0;
    color: #4d5965;
    font-size: 18px;
    line-height: 1.75;
}

.help-search {
    position: relative;
    padding: 24px;
    border: 1px solid rgba(13, 27, 42, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 46px rgba(13, 27, 42, 0.08);
}

.help-search label {
    display: block;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.help-search-control {
    position: relative;
}

.help-search-control > span {
    position: absolute;
    top: 50%;
    left: 17px;
    width: 15px;
    height: 15px;
    border: 2px solid #6d879a;
    border-radius: 50%;
    transform: translateY(-58%);
    pointer-events: none;
}

.help-search-control > span::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: #6d879a;
    transform: rotate(45deg);
}

.help-search input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px 12px 48px;
    color: var(--text);
    border: 1px solid rgba(108, 139, 160, 0.26);
    border-radius: 7px;
    background: rgba(247, 250, 252, 0.94);
    font: inherit;
    outline: none;
}

.help-search input:focus {
    border-color: rgba(74, 126, 163, 0.62);
    box-shadow: 0 0 0 4px rgba(143, 184, 212, 0.18);
}

.help-search p {
    min-height: 20px;
    margin: 10px 0 0;
    color: #73808b;
    font-size: 13px;
    line-height: 1.5;
}

.help-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 54px;
}

.help-quick-card {
    position: relative;
    min-height: 118px;
    padding: 22px 52px 21px 22px;
    overflow: hidden;
    color: var(--text);
    border: 1px solid rgba(13, 27, 42, 0.085);
    border-radius: 8px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(236, 244, 248, 0.76));
    box-shadow: 0 13px 32px rgba(13, 27, 42, 0.055);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-quick-card::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    width: 3px;
    height: 48px;
    background: #91bdd8;
}

.help-quick-card span {
    display: block;
    margin-bottom: 7px;
    color: var(--blue);
    font: 500 20px/1.25 Georgia, "Times New Roman", serif;
}

.help-quick-card p {
    margin: 0;
    color: #65717c;
    font-size: 14px;
    line-height: 1.55;
}

.help-quick-card b {
    position: absolute;
    top: 22px;
    right: 20px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #4f7893;
    border: 1px solid rgba(111, 158, 190, 0.3);
    border-radius: 50%;
    background: rgba(233, 243, 248, 0.9);
    font-size: 14px;
}

.help-quick-card:hover {
    color: var(--text);
    border-color: rgba(87, 143, 181, 0.4);
    box-shadow: 0 19px 40px rgba(13, 27, 42, 0.09);
    transform: translateY(-2px);
}

.help-quick-card:focus-visible,
.help-faq-item summary:focus-visible {
    outline: 3px solid rgba(94, 140, 197, 0.32);
    outline-offset: 3px;
}

.help-content {
    max-width: 1120px;
    padding-bottom: 58px;
}

.help-faq-section {
    padding: 38px 0 44px;
    border-top: 1px solid rgba(91, 126, 150, 0.22);
    scroll-margin-top: 94px;
}

.help-faq-section[hidden],
.help-faq-item[hidden],
.help-results-empty[hidden] {
    display: none !important;
}

.help-section-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 22px;
}

.help-section-head > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #567c96;
    border: 1px solid rgba(111, 158, 190, 0.3);
    border-radius: 50%;
    background: rgba(232, 242, 248, 0.82);
    font-size: 12px;
    font-weight: 800;
}

.help-section-head h2 {
    margin: 0 0 7px;
    color: var(--blue);
    font: 500 34px/1.15 Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.help-section-head p {
    max-width: 790px;
    margin: 0;
    color: #66727d;
    line-height: 1.65;
}

.help-faq-list {
    display: grid;
    gap: 9px;
    padding-left: 74px;
}

.help-faq-item {
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 9px 26px rgba(13, 27, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-faq-item[open] {
    border-color: rgba(92, 145, 181, 0.34);
    box-shadow: 0 15px 34px rgba(13, 27, 42, 0.07);
}

.help-faq-item summary {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 17px 15px 21px;
    color: var(--blue);
    cursor: pointer;
    font-size: 16px;
    font-weight: 750;
    list-style: none;
}

.help-faq-item summary::-webkit-details-marker {
    display: none;
}

.help-faq-item summary b {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    color: #4f7893;
    border: 1px solid rgba(111, 158, 190, 0.3);
    border-radius: 50%;
    background: rgba(233, 243, 248, 0.9);
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.help-faq-item[open] summary b {
    transform: rotate(45deg);
}

.help-faq-answer {
    border-top: 1px solid rgba(13, 27, 42, 0.065);
}

.help-faq-answer p {
    max-width: 870px;
    margin: 0;
    padding: 18px 64px 21px 21px;
    color: #4e5964;
    font-size: 15px;
    line-height: 1.75;
}

.help-results-empty {
    margin: 0 0 42px;
    padding: 28px;
    text-align: center;
    border: 1px dashed rgba(94, 140, 173, 0.36);
    border-radius: 8px;
    background: rgba(248, 251, 253, 0.78);
}

.help-results-empty h2 {
    margin: 0 0 8px;
    color: var(--blue);
    font: 500 30px/1.2 Georgia, "Times New Roman", serif;
}

.help-results-empty p {
    margin: 0 0 18px;
    color: #66727d;
}

.help-actions-band {
    padding: 50px 0;
    border-top: 1px solid rgba(13, 27, 42, 0.08);
    background: rgba(235, 242, 246, 0.62);
}

.help-actions-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.help-actions-inner h2 {
    margin: 7px 0 7px;
    color: var(--blue);
    font: 500 34px/1.18 Georgia, "Times New Roman", serif;
}

.help-actions-inner > div:first-child > p:last-child {
    margin: 0;
    color: #65717c;
}

.help-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.business-details-section {
    padding: 4px 0 58px;
}

.business-details-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.business-details-panel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 34px 36px 32px;
    border: 1px solid rgba(141, 153, 166, 0.28);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(171, 197, 217, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 251, 0.9));
    box-shadow:
        0 18px 48px rgba(13, 27, 42, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.business-details-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 42%);
    pointer-events: none;
}

.business-details-heading {
    position: relative;
    display: grid;
    gap: 7px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}

.business-details-heading .eyebrow {
    margin: 0;
    color: #6a7f8f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.business-details-heading h2 {
    margin: 0;
    color: var(--blue);
    font: 500 clamp(30px, 4vw, 44px)/1.08 Georgia, "Times New Roman", serif;
}

.business-details-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    margin: 0;
}

.business-detail-row {
    min-width: 0;
    padding: 18px 20px 19px;
    border: 1px solid rgba(141, 153, 166, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.business-detail-row dt {
    margin: 0 0 8px;
    color: #657384;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.business-detail-row dd {
    margin: 0;
    color: var(--blue);
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.business-detail-row a {
    color: inherit;
    text-decoration-color: rgba(75, 120, 168, 0.42);
    text-underline-offset: 4px;
}

.business-detail-row a:hover {
    color: #4b78a8;
}

@media (max-width: 920px) {
    .business-details-container {
        width: min(100%, calc(100% - 24px));
    }
}

@media (max-width: 760px) {
    .business-details-section {
        padding-bottom: 46px;
    }

    .business-details-panel {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .business-details-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .business-detail-row {
        padding: 16px 16px 17px;
        border-radius: 16px;
    }
}

.materials-page.contacts-page {
    position: relative;
    isolation: isolate;
}

.materials-page.contacts-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(171, 197, 217, 0.18), transparent 24%),
        radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.88), transparent 26%),
        radial-gradient(circle at 52% 104%, rgba(171, 197, 217, 0.08), transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.materials-page.contacts-page > .container {
    position: relative;
    z-index: 1;
}

.materials-page.contacts-page .contact-card.contact-card-grid {
    gap: 18px;
}

.materials-page.contacts-page .contact-item {
    border-color: rgba(141, 153, 166, 0.3);
    box-shadow:
        0 16px 36px rgba(13, 27, 42, 0.065),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.materials-page.contacts-page .contact-item:hover {
    border-color: rgba(114, 149, 188, 0.34);
    box-shadow:
        0 22px 46px rgba(13, 27, 42, 0.095),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.materials-page.contacts-page .contact-link {
    box-shadow: 0 10px 22px rgba(13, 27, 42, 0.09);
}

.materials-page.contacts-page .contact-link:hover {
    box-shadow: 0 14px 26px rgba(13, 27, 42, 0.12);
}

.materials-page.contacts-page .business-details-panel {
    border-color: rgba(141, 153, 166, 0.3);
    box-shadow:
        0 24px 58px rgba(13, 27, 42, 0.085),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.materials-page.contacts-page .business-detail-row {
    border-color: rgba(141, 153, 166, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.7));
    box-shadow:
        0 10px 24px rgba(13, 27, 42, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.materials-page.contacts-page .business-detail-row:hover {
    box-shadow:
        0 14px 32px rgba(13, 27, 42, 0.065),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}
