/* «Балалар өнер мектебі» КМҚК — layout styles */

:root {
    --pink: #db2777;
    --pink-dark: #be185d;
    --pink-soft: #fdf2f8;
    --cyan: #0891b2;
    --cyan-bright: #22d3ee;
    --cyan-soft: #ecfeff;
    --yellow: #facc15;
    --ink: #1e1b4b;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --bg: #ffffff;
    --tint: #f4fbfd;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(30, 27, 75, 0.05), 0 8px 24px -12px rgba(30, 27, 75, 0.18);
    --font-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

* {
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--cyan-bright);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.narrow {
    max-width: 860px;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.muted {
    color: var(--muted);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
}

.skip-link:focus {
    top: 12px;
}

/* ---------- "To be clarified" marker ---------- */

.tbd {
    display: inline-flex;
    align-items: center;
    padding: 1px 9px;
    border: 1px dashed #d97706;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: help;
}

.draft-note {
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    color: #78350f;
    font-size: 0.85rem;
}

.draft-note-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.draft-note .icon {
    width: 18px;
    height: 18px;
    color: #d97706;
}

/* ---------- Buttons, chips, links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-lg {
    min-height: 52px;
    padding: 12px 28px;
    font-size: 1rem;
}

.btn-sm {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-sm .icon {
    width: 17px;
    height: 17px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: var(--pink);
    color: #fff;
}

.btn-primary:hover {
    background: var(--pink-dark);
}

.btn-ghost {
    background: transparent;
    border-color: #d1d5db;
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--pink);
    color: var(--pink);
}

.btn-dark {
    background: var(--ink);
    color: #fff;
}

.btn-dark:hover {
    background: #312e81;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.chip:hover {
    border-color: var(--pink);
}

.chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.chip-soft {
    padding: 3px 10px;
    border: 0;
    background: var(--pink-soft);
    color: var(--pink-dark);
    font-size: 0.78rem;
    cursor: default;
}

.link-more,
.link-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pink);
    font-weight: 700;
}

.link-more:hover,
.link-back:hover {
    color: var(--pink-dark);
}

.link-more .icon,
.link-back .icon {
    width: 18px;
    height: 18px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--pink);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: var(--cyan-bright);
}

/* ---------- Top bar ---------- */

.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 42px;
}

.topbar-contacts,
.topbar-tools,
.topbar-socials {
    display: flex;
    align-items: center;
}

.topbar-contacts {
    gap: 20px;
    min-width: 0;
}

.topbar-contacts a,
.topbar-address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.topbar-contacts a:hover {
    color: #fff;
}

.topbar .icon {
    width: 16px;
    height: 16px;
}

.topbar-tools {
    gap: 14px;
}

.topbar-socials {
    gap: 4px;
}

.topbar-socials a {
    display: inline-flex;
    padding: 6px;
    border-radius: 6px;
}

.topbar-socials a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.a11y-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.82rem;
    cursor: pointer;
}

.a11y-toggle:hover,
.a11y-toggle[aria-pressed="true"] {
    background: #fff;
    color: var(--ink);
}

.lang {
    display: flex;
    gap: 2px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.lang-item {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.lang-item.is-active {
    background: #fff;
    color: var(--ink);
}

/* ---------- Header ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo,
.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--cyan-bright);
}

.brand-logo {
    width: 54px;
    height: 54px;
}

.brand-logo img,
.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Monogram until the real logo file is added */
.brand-logo.no-logo,
.hero-logo.no-logo {
    background: radial-gradient(circle at 50% 50%, #fffbeb 0 56%, var(--cyan-bright) 57%);
    border: 2px solid #67e8f9;
}

.brand-logo.no-logo::before,
.hero-logo.no-logo::before {
    content: 'БӨМ';
    color: var(--pink);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.9rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.12rem;
    line-height: 1.2;
}

.brand-sub {
    color: var(--muted);
    font-size: 0.78rem;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 11px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.93rem;
    white-space: nowrap;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--pink-soft);
    color: var(--pink-dark);
}

.nav-link.is-active {
    color: var(--pink);
}

.icon-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.15s;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu,
.has-sub.is-open .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-sub:hover .icon-chevron,
.has-sub.is-open .icon-chevron {
    transform: rotate(180deg);
}

.sub-link {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.93rem;
}

.sub-link:hover {
    background: var(--pink-soft);
    color: var(--pink-dark);
}

.sub-link.is-active {
    color: var(--pink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.header-emblem {
    width: 40px;
    height: 40px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.menu-toggle .icon {
    width: 24px;
    height: 24px;
}

.menu-toggle .icon-close,
.menu-open .menu-toggle .icon-open {
    display: none;
}

.menu-open .menu-toggle .icon-close {
    display: block;
}

/* ---------- Page head ---------- */

.page-head {
    padding: 36px 0 40px;
    background: linear-gradient(135deg, var(--cyan-soft) 0%, var(--pink-soft) 100%);
    border-bottom: 1px solid var(--line);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.crumbs a:hover {
    color: var(--pink);
}

.crumbs-current {
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.page-title {
    max-width: 900px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.page-lead {
    max-width: 760px;
    margin-top: 10px;
    color: #475569;
    font-size: 1.08rem;
}

/* ---------- Sections ---------- */

.section {
    padding: 72px 0;
}

.section-first {
    padding-top: 48px;
}

.section-tint {
    background: var(--tint);
}

.section-dark {
    background: var(--ink);
    color: #fff;
}

.section-head {
    margin-bottom: 32px;
}

.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.section-title {
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
}

.section-dark .section-title {
    color: #fff;
}

.section-lead {
    max-width: 720px;
    margin-top: 10px;
    color: #475569;
    font-size: 1.05rem;
}

.section-dark .section-lead {
    color: rgba(255, 255, 255, 0.78);
}

.block-title {
    margin: 36px 0 16px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 72px;
    background:
        radial-gradient(circle at 88% 20%, rgba(34, 211, 238, 0.28) 0, rgba(34, 211, 238, 0) 42%),
        radial-gradient(circle at 70% 95%, rgba(219, 39, 119, 0.14) 0, rgba(219, 39, 119, 0) 40%),
        linear-gradient(180deg, #ffffff 0%, var(--tint) 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 48px;
}

.hero-title {
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.12;
}

.hero-lead {
    max-width: 640px;
    margin-top: 18px;
    color: #475569;
    font-size: 1.12rem;
}

.key-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.key-facts-wide {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
}

.key-fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.key-fact-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--pink-soft);
    color: var(--pink);
}

.key-fact-label {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.key-fact-value {
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
}

.key-fact-note {
    margin-top: 4px;
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-logo-wrap {
    position: relative;
    width: min(380px, 100%);
    aspect-ratio: 1;
}

.hero-logo {
    width: 100%;
    height: 100%;
    box-shadow: 0 30px 60px -30px rgba(8, 145, 178, 0.6);
}

.hero-logo.no-logo::before {
    font-size: 4.2rem;
}

.hero-star {
    position: absolute;
    color: var(--yellow);
}

.hero-star .icon {
    width: 100%;
    height: 100%;
    fill: var(--yellow);
    stroke: #eab308;
}

.hero-star-1 {
    left: -6%;
    bottom: 22%;
    width: 64px;
    height: 64px;
}

.hero-star-2 {
    right: -4%;
    bottom: 26%;
    width: 52px;
    height: 52px;
}

/* ---------- Notice strip ---------- */

.notice-strip {
    background: var(--pink);
    color: #fff;
}

.notice-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.notice-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.notice-text {
    flex: 1;
}

.notice-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.15rem;
}

.notice-strip .btn-dark {
    background: #fff;
    color: var(--pink-dark);
}

/* ---------- Specialty cards ---------- */

.sp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.sp-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--c);
    border-radius: var(--radius);
    background: #fff;
    transition: box-shadow 0.15s, transform 0.15s;
}

.sp-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.sp-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--c) 12%, #fff);
    color: var(--c);
}

.sp-icon .icon {
    width: 28px;
    height: 28px;
}

.sp-icon-lg {
    width: 76px;
    height: 76px;
    border-radius: 20px;
}

.sp-icon-lg .icon {
    width: 40px;
    height: 40px;
}

.sp-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sp-group {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sp-name {
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.sp-about {
    color: #475569;
    font-size: 0.95rem;
}

.sp-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c);
    font-weight: 700;
    font-size: 0.92rem;
}

.sp-more .icon {
    width: 17px;
    height: 17px;
}

.filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

/* ---------- Benefits ---------- */

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.benefit {
    padding: 22px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
}

.benefit-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--cyan-soft);
    color: var(--cyan);
}

.benefit h3 {
    margin-bottom: 6px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 800;
}

.benefit p {
    color: #475569;
    font-size: 0.93rem;
}

/* ---------- News ---------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.filter-item {
    display: flex;
}

.news-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.news-media {
    display: block;
}

.news-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 0.85rem;
}

.news-title {
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.news-title a:hover {
    color: var(--pink);
}

.news-excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: #475569;
    font-size: 0.93rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-body .link-more {
    margin-top: auto;
}

/* Image placeholders */
.ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--cyan-soft), var(--pink-soft));
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.ph .icon {
    width: 34px;
    height: 34px;
}

.ph[data-cat="Марапаттар"] {
    background: linear-gradient(135deg, #fef9c3, var(--pink-soft));
}

.ph[data-cat="Қабылдау"] {
    background: linear-gradient(135deg, var(--pink-soft), #ede9fe);
}

.ph-cover {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
}

.ph-video {
    aspect-ratio: 9 / 12;
    background: linear-gradient(160deg, #312e81, var(--pink-dark));
    color: rgba(255, 255, 255, 0.85);
}

.ph-video .icon {
    width: 46px;
    height: 46px;
}

/* ---------- People ---------- */

.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.people-grid-sm {
    grid-template-columns: repeat(2, 1fr);
}

.person {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.person-compact {
    flex-direction: row;
    align-items: center;
}

.person-photo {
    display: flex;
    width: 100%;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #cffafe, #fce7f3);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
}

.person-compact .person-photo {
    width: 64px;
    flex-shrink: 0;
    font-size: 1.1rem;
    border-radius: 50%;
}

.person-photo-empty {
    color: #94a3b8;
}

.person-photo-empty .icon {
    width: 48px;
    height: 48px;
}

.person-name {
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
}

.person-role {
    margin-top: 4px;
    color: #475569;
    font-size: 0.9rem;
}

.person-subject {
    margin-top: 6px;
    color: var(--pink);
    font-size: 0.88rem;
    font-weight: 600;
}

.person-placeholder {
    border-style: dashed;
    background: transparent;
}

/* ---------- FAQ ---------- */

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.faq-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.faq {
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.faq-item[open] {
    border-color: #f9a8d4;
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: var(--ink);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-icon {
    color: var(--pink);
    transition: transform 0.15s;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-a {
    display: grid;
    gap: 8px;
    padding: 0 20px 18px;
    color: #475569;
}

/* ---------- Social band ---------- */

.social-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.social-cards {
    display: grid;
    gap: 12px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.social-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.social-card-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--pink);
    color: #fff;
}

.social-card-name {
    display: block;
    font-weight: 700;
}

.social-card-handle {
    display: block;
    font-size: 0.88rem;
    opacity: 0.75;
}

.social-card-arrow {
    margin-left: auto;
    opacity: 0.7;
}

.social-cards-light {
    margin-top: 24px;
}

.social-cards-light .social-card {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.social-cards-light .social-card:hover {
    border-color: var(--pink);
}

/* ---------- Contacts ---------- */

.contact-band {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-list {
    display: grid;
    gap: 16px;
    margin: 24px 0 28px;
}

.contact-list li {
    display: flex;
    gap: 14px;
}

.contact-list b {
    display: block;
    color: var(--ink);
    font-size: 0.85rem;
}

.contact-list a:hover {
    color: var(--pink);
}

.contact-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--pink-soft);
    color: var(--pink);
}

.map {
    overflow: hidden;
    min-height: 340px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--tint);
}

.map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
}

.map-lg,
.map-lg iframe {
    min-height: 420px;
}

.contact-page {
    display: grid;
    gap: 24px;
}

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

.contact-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.contact-card h2 {
    margin: 12px 0 4px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.contact-card p {
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-card a:hover {
    color: var(--pink);
}

/* ---------- Two-column layouts, cards ---------- */

.two-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.stack {
    display: grid;
    gap: 16px;
}

.info-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.info-card-accent {
    border-color: #f9a8d4;
    background: var(--pink-soft);
}

.info-card-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #fff;
    color: var(--pink);
}

.info-card h3 {
    margin-bottom: 6px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 800;
}

.info-card p + p {
    margin-top: 8px;
}

.steps {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.step {
    display: flex;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.step-num {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
}

.step h3 {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 700;
}

.step p {
    margin-top: 2px;
    color: #475569;
}

.step a {
    color: var(--pink);
    font-weight: 600;
}

.placeholder-block {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border: 1px dashed #f59e0b;
    border-radius: var(--radius);
    background: #fffdf5;
    color: #475569;
}

.placeholder-block > .icon {
    width: 26px;
    height: 26px;
    color: #d97706;
}

.placeholder-block h3 {
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 1rem;
}

/* Facts card */
.facts-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.facts-card-accent {
    border-top: 4px solid var(--c, var(--pink));
}

.facts-title {
    margin-bottom: 14px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
}

.facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 16px;
    margin-bottom: 18px;
    font-size: 0.94rem;
}

.facts dt {
    color: var(--muted);
}

.facts dd {
    color: var(--ink);
    font-weight: 600;
}

.facts-card .btn + .btn {
    margin-top: 10px;
}

/* About */
.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.about-text .placeholder-block {
    margin-top: 24px;
}

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

.achievement {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.achievement-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fef9c3;
    color: #a16207;
}

.achievement time {
    color: var(--muted);
    font-size: 0.85rem;
}

.achievement h3 {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.achievement h3 a:hover {
    color: var(--pink);
}

.symbols {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 64px;
}

.symbol {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 260px;
    text-align: center;
}

.symbol img {
    height: 90px;
    width: auto;
}

.symbol figcaption {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.data-table,
.req-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
.data-table td,
.req-table th,
.req-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table tr:last-child > *,
.req-table tr:last-child > * {
    border-bottom: 0;
}

.data-table thead th {
    background: var(--tint);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table tbody th {
    color: var(--ink);
    font-weight: 700;
}

.data-table tbody th a:hover {
    color: var(--pink);
}

.req-table th {
    width: 220px;
    color: var(--muted);
    font-weight: 600;
}

.req-table td {
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.req-table a:hover {
    color: var(--pink);
}

/* Specialty page */
.sp-detail {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: start;
}

.sp-detail-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.sp-detail-about {
    margin-top: 8px;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 600;
}

.sp-side {
    position: sticky;
    top: 100px;
}

/* Article */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.article {
    min-width: 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 20px;
    color: var(--muted);
}

.article-meta time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-body {
    display: grid;
    gap: 16px;
    margin: 28px 0;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.article-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 28px;
    border-radius: 14px;
    background: var(--tint);
    color: #475569;
    font-size: 0.93rem;
}

.article-side {
    position: sticky;
    top: 100px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.side-title {
    margin-bottom: 14px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 800;
}

.side-news {
    display: grid;
    gap: 14px;
}

.side-news li + li {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.side-news time {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.side-news a {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.45;
}

.side-news a:hover {
    color: var(--pink);
}

/* Gallery */
.tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: var(--tint);
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
}

.tab.is-active {
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--pink);
}

.gallery-note {
    margin-bottom: 18px;
}

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

.gallery-tile {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.gallery-tile .ph {
    aspect-ratio: 4 / 3;
}

.gallery-caption {
    display: block;
    padding: 10px 14px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.93rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.video-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.video-card:hover {
    box-shadow: var(--shadow);
}

.video-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
}

.video-body time {
    color: var(--muted);
    font-size: 0.8rem;
}

.video-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Documents */
.doc-list {
    display: grid;
    gap: 12px;
}

.doc {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.doc-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.doc-pdf {
    background: #dc2626;
}

.doc-docx {
    background: #2563eb;
}

.doc-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.doc-title {
    color: var(--ink);
    font-weight: 700;
}

.doc-meta {
    color: var(--muted);
    font-size: 0.86rem;
}

.narrow .placeholder-block {
    margin-bottom: 8px;
}

/* ---------- Form ---------- */

.form-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-full {
    grid-column: 1 / -1;
}

.field-label {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
}

.req {
    color: var(--pink);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.15);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: #dc2626;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #475569;
    font-size: 0.92rem;
    cursor: pointer;
}

.checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--pink);
}

.checkbox.is-invalid {
    color: #dc2626;
}

.form-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 300;
    max-width: 360px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow);
    font-size: 0.93rem;
}

/* ---------- Footer ---------- */

.footer {
    background: #15123a;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.93rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.3fr;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 40px;
}

.brand-footer .brand-name {
    color: #fff;
}

.brand-footer .brand-sub {
    color: rgba(255, 255, 255, 0.6);
}

.footer-text {
    margin-top: 16px;
}

.footer-symbols {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.footer-title {
    margin-bottom: 14px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a:hover,
.footer-contact-list a:hover {
    color: #fff;
}

.footer-contact-list {
    display: grid;
    gap: 12px;
}

.footer-contact-list li {
    display: flex;
    gap: 10px;
}

.footer-contact-list .icon {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--cyan-bright);
}

.footer .tbd {
    white-space: normal;
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.footer-socials a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.footer-socials a:hover {
    background: var(--pink);
    color: #fff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ---------- Accessibility mode (for visually impaired visitors) ---------- */

html.a11y {
    font-size: 20px;
}

html.a11y body {
    --pink: #000;
    --pink-dark: #000;
    --pink-soft: #fff;
    --cyan: #000;
    --cyan-bright: #000;
    --cyan-soft: #fff;
    --ink: #000;
    --text: #000;
    --muted: #000;
    --line: #000;
    --tint: #fff;
    --shadow: none;
    letter-spacing: 0.02em;
}

html.a11y .hero,
html.a11y .page-head,
html.a11y .section-dark,
html.a11y .notice-strip,
html.a11y .footer,
html.a11y .topbar {
    background: #fff;
    color: #000;
}

html.a11y .section-dark .section-title,
html.a11y .section-dark .section-lead,
html.a11y .brand-footer .brand-name,
html.a11y .brand-footer .brand-sub,
html.a11y .footer-title,
html.a11y .footer,
html.a11y .footer a,
html.a11y .topbar a,
html.a11y .a11y-toggle,
html.a11y .social-card {
    color: #000;
}

html.a11y a:not(.btn):not(.sp-card):not(.social-card):not(.video-card) {
    text-decoration: underline;
}

html.a11y .btn-primary,
html.a11y .btn-dark,
html.a11y .notice-strip .btn-dark,
html.a11y .chip.is-active,
html.a11y .step-num,
html.a11y .social-card-icon,
html.a11y .doc-icon {
    background: #000;
    color: #fff;
}

html.a11y img,
html.a11y .ph,
html.a11y .person-photo {
    filter: grayscale(1);
}

html.a11y .a11y-toggle[aria-pressed="true"] {
    background: #000;
    color: #fff;
}

html.a11y *,
html.a11y *::before,
html.a11y *::after {
    border-color: #000 !important;
    box-shadow: none !important;
}

/* ---------- Responsive ---------- */

@media (min-width: 1241px) {
    .nav-item-home {
        display: none;
    }
}

@media (max-width: 1240px) {
    .menu-toggle {
        display: inline-flex;
    }
    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 60;
        display: block;
        width: min(360px, 100%);
        padding: 90px 20px 24px;
        overflow-y: auto;
        background: #fff;
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.15);
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.2s, visibility 0.2s;
    }
    .menu-open .nav {
        visibility: visible;
        transform: translateX(0);
    }
    .menu-open .menu-toggle {
        position: relative;
        z-index: 70;
    }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 1.02rem;
    }
    .sub-menu {
        position: static;
        display: none;
        min-width: 0;
        padding: 4px 0 4px 14px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .has-sub.is-open .sub-menu {
        display: block;
    }
    .has-sub:hover .icon-chevron {
        transform: none;
    }
    .has-sub.is-open .icon-chevron {
        transform: rotate(180deg);
    }
    .people-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 960px) {
    .topbar-address,
    .a11y-toggle span {
        display: none;
    }
    .hero-inner,
    .faq-layout,
    .social-band,
    .contact-band,
    .two-col,
    .about-intro,
    .sp-detail,
    .article-layout {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        order: -1;
    }
    .hero-logo-wrap {
        width: 220px;
    }
    .sp-side,
    .article-side {
        position: static;
    }
    .sp-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .key-facts-wide,
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 680px) {
    .container {
        padding: 0 16px;
    }
    .topbar-contacts a:nth-child(2) span,
    .header-emblem,
    .btn-question span {
        display: none;
    }
    .btn-question {
        width: 44px;
        padding: 0;
    }
    .section {
        padding: 52px 0;
    }
    .section-first {
        padding-top: 32px;
    }
    .hero {
        padding: 36px 0 48px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .page-title {
        font-size: 1.7rem;
    }
    .section-title {
        font-size: 1.55rem;
    }
    .key-facts,
    .key-facts-wide,
    .sp-grid,
    .news-grid,
    .benefits,
    .contact-cards,
    .achievements,
    .form-grid,
    .people-grid-sm {
        grid-template-columns: 1fr;
    }
    .people-grid,
    .gallery-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .notice-inner {
        flex-wrap: wrap;
    }
    .notice-strip .btn {
        width: 100%;
    }
    .req-table th {
        width: 40%;
    }
    .doc {
        flex-wrap: wrap;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .brand-name {
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .header-inner {
        gap: 10px;
        min-height: 68px;
    }
    .brand {
        flex-shrink: 1;
        min-width: 0;
        gap: 10px;
    }
    .brand-text {
        min-width: 0;
    }
    .brand-logo {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    .brand-name {
        font-size: 0.95rem;
    }
    .brand-sub {
        font-size: 0.72rem;
    }
    .header-actions {
        gap: 8px;
        flex-shrink: 0;
    }
}

/* ---------- Landing: anchors and combined sections ---------- */

section[id] {
    scroll-margin-top: 90px;
}

.sp-card:hover {
    transform: none;
}

.steps-flush {
    margin-top: 0;
}

.section-tint .step,
.section-tint .info-card:not(.info-card-accent) {
    background: #fff;
}

#admission .table-wrap {
    margin-top: 0;
}

.question-block {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 90px;
}

.official {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.block-title-top {
    margin-top: 0;
}

.symbols-inline {
    justify-content: flex-start;
    gap: 32px;
    margin-top: 28px;
}

.symbols-inline .symbol img {
    height: 64px;
}

@media (max-width: 960px) {
    .question-block,
    .official {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Grid children may shrink below their content width (long words, fact tables) */
.question-block > *,
.official > *,
.hero-inner > *,
.faq-layout > *,
.social-band > *,
.contact-band > *,
.two-col > *,
.about-intro > *,
.sp-detail > *,
.article-layout > * {
    min-width: 0;
}

@media (max-width: 420px) {
    .facts {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .facts dd {
        margin-bottom: 10px;
    }
    .req-table th,
    .req-table td {
        display: block;
        width: auto;
        padding: 8px 14px;
    }
    .req-table th {
        padding-top: 12px;
        border-bottom: 0;
    }
}

@media (max-width: 400px) {
    .btn-question {
        display: none;
    }
    .people-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .topbar-socials {
        display: none;
    }
}

.news-meta time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-meta .icon {
    width: 16px;
    height: 16px;
}

.brand-logo,
.hero-logo {
    background: #fff;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.symbols-official {
    justify-content: center;
    margin-top: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

@media (max-width: 680px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
/* ---------- Daulearn CMS: dynamic content ---------- */
.news-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.article-cover {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--tint);
}

.article-cover img {
    width: 100%;
    max-height: 640px;
    object-fit: contain;
}

.article-body h2,
.article-body h3 {
    color: var(--ink);
    font-family: var(--font-head);
    line-height: 1.3;
}

.article-body h2 {
    font-size: 1.45rem;
}

.article-body h3 {
    font-size: 1.2rem;
}

.article-body ul,
.article-body ol {
    display: grid;
    gap: 6px;
    padding-left: 1.4em;
}

.article-body a {
    color: var(--pink-dark);
    text-decoration: underline;
}

.article-body img {
    height: auto;
    border-radius: var(--radius-sm);
}

.article-body blockquote {
    padding: 12px 18px;
    border-left: 4px solid var(--pink);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--pink-soft);
}

.news-empty {
    padding: 40px 0;
    color: var(--muted);
    text-align: center;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-weight: 600;
}

a.page-link:hover {
    border-color: var(--pink);
    color: var(--pink);
}

.page-link.is-active {
    border-color: var(--pink);
    background: var(--pink);
    color: #fff;
}

.page-link.is-disabled {
    border-color: transparent;
    color: var(--muted);
}

.preview-notice {
    padding: 12px 16px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 600;
    text-align: center;
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    line-height: 1.5;
}

.form-alert .icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.form-alert-ok {
    background: #dcfce7;
    color: #166534;
}

.form-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Hidden trap field for spam bots */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn[disabled] {
    opacity: 0.65;
    pointer-events: none;
}
