/* ==========================================================
   Главная библиотеки (library/landing.html).
   Оформление — как у главной АИС «Школа» (pages/static/css/index.css):
   те же токены, шапка-плашка, панели секций, карточки, кнопки.
   Outfit — заголовки, Manrope — текст.
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --font-display: "Outfit", "Manrope", "Segoe UI", system-ui, sans-serif;

    --ink: #14294c;
    --ink-strong: #0b1d3c;
    --ink-muted: #5c7196;
    --ink-soft: #8296b8;

    --primary: #2b6fe0;
    --primary-deep: #1a4694;
    --primary-bright: #4f97ff;
    --primary-tint: #e9f1ff;

    --surface: #ffffff;
    --surface-2: #f6f9ff;
    --surface-3: #eef4fe;
    --page: #e9f0fb;

    --line: rgba(116, 150, 205, 0.22);
    --line-strong: rgba(116, 150, 205, 0.4);

    --shadow-sm: 0 2px 8px rgba(17, 48, 99, 0.05);
    --shadow-md: 0 12px 32px rgba(17, 48, 99, 0.09);
    --shadow-lg: 0 28px 64px rgba(17, 48, 99, 0.14);
    --shadow-cta: 0 12px 26px rgba(28, 84, 176, 0.3);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;

    --container: 1200px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 0.22s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    background:
        radial-gradient(circle at 12% -6%, rgba(126, 172, 240, 0.3), transparent 38%),
        radial-gradient(circle at 90% 4%, rgba(112, 158, 233, 0.22), transparent 34%),
        linear-gradient(170deg, #f8fbff 0%, #eef4fd 42%, var(--page) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--ink-strong);
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.i {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Подложки обложек — как в каталоге */
.tint-blue { --tint: #e6edff; }
.tint-amber { --tint: #fff1db; }
.tint-violet { --tint: #eee9fd; }
.tint-rose { --tint: #fde8ee; }
.tint-teal { --tint: #dff3ef; }
.tint-green { --tint: #e4f4e7; }

/* ==========================================================
   ШАПКА
========================================================== */

.ln-header,
main {
    width: min(var(--container), calc(100% - 44px));
    margin: 0 auto;
}

.ln-header {
    position: sticky;
    top: 14px;
    z-index: 30;
    margin-top: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: 0 8px 28px rgba(24, 62, 124, 0.1);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 4px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink-strong);
    white-space: nowrap;
}

.header-logo img {
    width: 40px;
    height: 40px;
    transition: transform var(--t-fast);
}

.header-logo:hover img {
    transform: scale(1.06) rotate(-3deg);
}

.header-login {
    display: flex;
    align-items: center;
}

.header-divs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-sm);
    background: rgba(122, 165, 235, 0.1);
}

.header-divs a,
.header-login a,
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 16px;
    border: 0;
    border-radius: 11px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--t-fast), background-color var(--t-fast),
        color var(--t-fast), box-shadow var(--t-fast);
}

.header-divs a {
    color: #4a648e;
}

.header-divs a:hover {
    color: var(--primary-deep);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.header-login a,
.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-bright) 0%, var(--primary-deep) 100%);
    box-shadow: var(--shadow-cta);
}

.header-login a:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(28, 84, 176, 0.4);
}

.btn-ghost {
    color: var(--primary-deep);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-ghost .i,
.btn-primary .i {
    transition: transform var(--t-fast);
}

.btn-ghost:hover .i,
.btn-primary:hover .i {
    transform: translateX(3px);
}

.header-menu-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: rgba(104, 147, 223, 0.12);
    color: var(--primary-deep);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ---------- мобильное меню ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    padding: 20px;
    display: none;
    grid-template-rows: auto 1fr;
    background: rgba(8, 22, 46, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.mobile-menu.is-open {
    display: grid;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    margin-left: auto;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(196, 212, 243, 0.3);
    background: rgba(112, 149, 210, 0.16);
    color: #ffffff;
    cursor: pointer;
}

.mobile-menu-nav {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 22px;
}

.mobile-menu-nav a {
    font-family: var(--font-display);
    font-size: clamp(30px, 8vw, 52px);
    font-weight: 600;
    color: #eaf2ff;
    letter-spacing: -0.03em;
}

/* ==========================================================
   ГЕРОЙ
========================================================== */

main {
    padding-bottom: 26px;
}

.hero {
    position: relative;
    margin-top: 18px;
    padding: clamp(30px, 5vw, 62px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(30px, 4vw, 58px);
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.66);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.9) 0%, rgba(233, 242, 255, 0.82) 100%);
    box-shadow: var(--shadow-lg);
}

.hero-text {
    position: relative;
    min-width: 0;
}

.eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(120, 165, 235, 0.34);
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.hero-text h1 {
    margin: 20px 0 0;
    font-size: clamp(36px, 4.4vw, 62px);
    font-weight: 700;
}

.hero-line {
    display: block;
    width: 96px;
    height: 5px;
    margin: 22px 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(79, 151, 255, 0.15) 100%);
}

.hero-text > p {
    max-width: 560px;
    margin: 20px 0 0;
    color: var(--ink-muted);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.7;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 560px;
    margin-top: 26px;
    padding: 6px 6px 6px 16px;
    border-radius: 15px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.hero-search:focus-within {
    border-color: rgba(43, 111, 224, 0.55);
    box-shadow: 0 0 0 4px rgba(43, 111, 224, 0.12);
}

.hero-search__ic {
    display: flex;
    color: var(--ink-soft);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    outline: none;
}

.hero-search input::placeholder {
    color: var(--ink-soft);
}

.hero-search .btn-primary {
    padding: 9px 22px;
}

.hero-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-quick a {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink-muted);
    font-size: 13px;
    font-weight: 600;
    transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}

.hero-quick a:hover {
    color: var(--primary-deep);
    border-color: rgba(96, 146, 224, 0.44);
    background: #ffffff;
}

.hero-notes {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.hero-notes span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-muted);
    font-size: 13px;
    font-weight: 600;
}

.hero-notes i {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--primary-tint);
    color: var(--primary);
}

.hero-notes .i {
    stroke-width: 3.2;
}

/* ---------- окно «Новое в каталоге» — как превью журнала у АИС ---------- */
.hero-visual {
    position: relative;
    min-width: 0;
}

.preview {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2) 0%, #eff5ff 100%);
}

.preview-dots {
    display: inline-flex;
    gap: 5px;
}

.preview-dots i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(88, 133, 205, 0.32);
}

.preview-dots i:first-child {
    background: rgba(232, 106, 106, 0.5);
}

.preview-dots i:nth-child(2) {
    background: rgba(232, 178, 90, 0.5);
}

.preview-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-muted);
}

.preview-more {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.preview-more:hover {
    color: var(--primary-deep);
}

.preview-list {
    list-style: none;
    margin: 0;
    padding: 6px 8px;
}

.preview-list li + li {
    border-top: 1px solid var(--line);
}

.preview-list a {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 14px;
    transition: background-color var(--t-fast);
}

.preview-list a:hover {
    background: var(--surface-2);
}

.pv-cover {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: var(--tint, var(--surface-3));
    border: 1px solid var(--line);
}

.pv-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pv-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.pv-kind {
    width: fit-content;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary-tint);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pv-txt b {
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pv-txt small {
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 600;
}

.preview-foot .i {
    color: var(--primary);
}

/* ==========================================================
   ЦИФРЫ
========================================================== */

.stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat {
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.stat b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1;
    color: var(--primary-deep);
    letter-spacing: -0.02em;
}

.stat span {
    display: block;
    margin-top: 8px;
    color: var(--ink-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

/* ==========================================================
   СЕКЦИИ
========================================================== */

.section {
    position: relative;
    margin-top: 22px;
    padding: clamp(34px, 5vw, 68px) clamp(22px, 4vw, 60px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(246, 250, 255, 0.92) 100%);
    box-shadow: var(--shadow-md);
}

.section-soft {
    background: linear-gradient(180deg, rgba(240, 246, 255, 0.9) 0%, rgba(232, 241, 254, 0.94) 100%);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(22px, 3vw, 36px);
}

.section-head-text {
    min-width: 0;
}

.section-label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-head h2 {
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
}

.section-intro {
    max-width: 670px;
    margin: 12px 0 0;
    color: var(--ink-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================
   КАРТОЧКИ МАТЕРИАЛОВ
========================================================== */

.mat-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.mat-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.mat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 146, 224, 0.44);
    box-shadow: var(--shadow-md);
}

.mat-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--tint, var(--surface-3));
    border-bottom: 1px solid var(--line);
}

.mat-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mat-card__flag {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-deep);
    font-size: 11px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.mat-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 16px;
}

.mat-card__kind {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mat-card__title {
    margin: 6px 0 4px;
    font-family: var(--font-display);
    color: var(--ink-strong);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mat-card__meta {
    color: var(--ink-muted);
    font-size: 13px;
}

.mat-card__foot {
    display: flex;
    gap: 14px;
    margin-top: auto;
    padding-top: 12px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.mat-card__foot span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================
   ВИДЫ МАТЕРИАЛОВ — карточки возможностей АИС
========================================================== */

.function-cards,
.adv-cards {
    display: grid;
    gap: 16px;
}

.function-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.adv-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.func-card,
.adv-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
        border-color 0.4s var(--ease);
}

.func-card::after,
.adv-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(120, 170, 245, 0.16) 0%, transparent 55%);
    opacity: 0;
    transition: opacity var(--t-fast);
}

.func-card:hover,
.adv-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 146, 224, 0.44);
    box-shadow: var(--shadow-md);
}

.func-card:hover::after,
.adv-card:hover::after {
    opacity: 1;
}

.func-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.func-card.featured {
    grid-row: span 2;
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-tint) 190%);
    border-color: rgba(96, 146, 224, 0.34);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: linear-gradient(150deg, #ffffff 0%, var(--primary-tint) 100%);
    border: 1px solid rgba(120, 165, 235, 0.28);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease);
}

.func-card:hover .card-icon,
.adv-card:hover .card-icon {
    transform: scale(1.08) rotate(-4deg);
}

.card-count {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--primary-tint);
    color: var(--primary-deep);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

.func-card h3,
.adv-card h3 {
    margin: 18px 0 8px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
}

.func-card p,
.adv-card p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.6;
}

.func-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.func-card:hover .func-card-link {
    color: var(--primary-deep);
}

.lesson-flow {
    display: grid;
    gap: 8px;
    align-self: stretch;
    margin-top: 20px;
}

.lesson-flow span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.lesson-flow i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}

.lesson-flow em {
    margin-left: auto;
    color: var(--ink-soft);
    font-style: normal;
    font-size: 12px;
}

/* ==========================================================
   ПРЕДМЕТЫ
========================================================== */

.subject-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.subject-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px 12px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    color: var(--ink-soft);
    transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}

.subject-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 146, 224, 0.44);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.subject-card__mono {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(150deg, #ffffff 0%, var(--primary-tint) 100%);
    border: 1px solid rgba(120, 165, 235, 0.28);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.subject-card__txt {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.subject-card__txt b {
    color: var(--ink-strong);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subject-card__txt small {
    color: var(--ink-muted);
    font-size: 12px;
}

/* ==========================================================
   КАК РАБОТАТЬ
========================================================== */

.step-num {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary-bright) 0%, var(--primary-deep) 100%);
    box-shadow: var(--shadow-cta);
    color: #fff;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.roles {
    margin-top: 16px;
}

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.5;
}

.check-list .i {
    margin-top: 3px;
    color: var(--primary);
    stroke-width: 2.6;
}

/* ==========================================================
   ПРИЗЫВ — как баннер вакансий АИС
========================================================== */

.cta {
    position: relative;
    margin-top: 22px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    border: 1px solid rgba(120, 165, 235, 0.35);
    border-radius: var(--radius-lg);
    background: linear-gradient(115deg, #eef5ff 0%, #fff 65%);
    box-shadow: var(--shadow-sm);
}

.cta::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    right: 12%;
    top: -130px;
    border-radius: 50%;
    background: rgba(79, 151, 255, 0.1);
    pointer-events: none;
}

.cta-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
}

.cta-text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.cta-label {
    display: block;
    margin-bottom: 2px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.cta h2 {
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.2;
}

.cta p {
    margin: 5px 0 0;
    color: var(--ink-muted);
    font-size: 14px;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==========================================================
   ПОДВАЛ
========================================================== */

.footer {
    width: min(var(--container), calc(100% - 44px));
    margin: 26px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-bottom: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(238, 245, 255, 0.94) 100%);
    box-shadow: 0 -10px 30px rgba(24, 62, 124, 0.07);
}

.footer-inner {
    width: min(var(--container), calc(100% - 48px));
    margin: auto;
    padding: 40px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    gap: 14px;
}

.footer-brand img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.footer-title {
    margin-bottom: 5px;
    font-family: var(--font-display);
    color: var(--ink-strong);
    font-size: 17px;
    font-weight: 600;
}

.footer-description {
    max-width: 420px;
    margin: 0;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-column h4 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    width: fit-content;
    color: var(--ink-muted);
    font-size: 14px;
    transition: color var(--t-fast), transform var(--t-fast);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 13px;
}

/* ==========================================================
   АДАПТИВНОСТЬ
========================================================== */

@media (max-width: 1120px) {
    .header-divs a .i { display: none; }
    .mat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .subject-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
    .header-divs { display: none; }
    .header-login { margin-left: auto; }
    .header-menu-btn { display: inline-flex; }
    .hero { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .function-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .func-card.featured { grid-row: auto; grid-column: 1 / -1; }
    .adv-cards { grid-template-columns: minmax(0, 1fr); }
    .subject-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta { grid-template-columns: auto minmax(0, 1fr); }
    .cta-actions { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .ln-header,
    main,
    .footer { width: calc(100% - 24px); }
    .ln-header { top: 8px; margin-top: 8px; padding: 8px 10px; gap: 10px; }
    .header-logo { font-size: 15px; gap: 8px; }
    .header-logo img { width: 34px; height: 34px; }
    .header-login a { min-height: 38px; padding: 8px 12px; }
    .hero { padding: 26px 18px; border-radius: var(--radius-lg); }
    .eyebrow { font-size: 10px; letter-spacing: 0.06em; }
    .hero-search { padding-left: 12px; }
    .hero-search .btn-primary { padding: 9px 14px; }
    .preview-list a { grid-template-columns: 76px minmax(0, 1fr); gap: 11px; }
    .stats { gap: 10px; }
    .stat { padding: 16px; border-radius: var(--radius); }
    .section { padding: 30px 16px; border-radius: var(--radius-lg); }
    .section-head { flex-direction: column; align-items: flex-start; }
    .mat-cards { gap: 10px; }
    .mat-card { border-radius: var(--radius); }
    .mat-card__body { padding: 10px 11px 12px; }
    .mat-card__title { font-size: 15px; }
    .mat-card__meta { font-size: 12px; }
    .mat-card__foot { gap: 10px; font-size: 11px; }
    .mat-card__flag { left: 6px; bottom: 6px; font-size: 10px; padding: 2px 7px; }
    .function-cards,
    .subject-cards { grid-template-columns: minmax(0, 1fr); }
    .func-card,
    .adv-card { padding: 20px; }
    .cta { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
    .cta-icon { display: none; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 680px) {
    .mat-card__kind { font-size: 11px; letter-spacing: 0; text-transform: none; }
}

@media (max-width: 340px) {
    .header-logo span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
