:root {
    --ink: #13212e;
    --muted: #5b6875;
    --paper: #f5f7f2;
    --surface: #ffffff;
    --line: #dfe6de;
    --green: #0f6b5b;
    --green-dark: #083f37;
    --blue: #1f5f9a;
    --yellow: #f2c14e;
    --red: #c45b45;
    --shadow: 0 18px 50px rgba(19, 33, 46, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.55;
}

body.nav-open {
    overflow: hidden;
}

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

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    min-height: 72px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(223, 230, 222, 0.8);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    flex: 0 0 auto;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: var(--green);
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-phones {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.header-phones a {
    white-space: nowrap;
}

.header-phones a:hover {
    color: var(--green-dark);
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-socials a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #eef4f0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-socials a:hover {
    border-color: rgba(15, 107, 91, 0.35);
    box-shadow: 0 8px 18px rgba(16, 78, 64, 0.12);
    transform: translateY(-1px);
}

.header-socials img {
    width: 18px;
    height: 18px;
}

.site-nav a {
    padding: 10px 12px;
    color: var(--muted);
    font-weight: 700;
    border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--green-dark);
    background: #e8f2ee;
}

.site-nav .nav-cta {
    color: #ffffff;
    background: var(--green);
}

.site-nav .nav-cta:hover {
    color: #ffffff;
    background: var(--green-dark);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    min-height: min(78svh, 720px);
    display: grid;
    align-items: center;
    color: #ffffff;
    background-image:
        linear-gradient(90deg, rgba(8, 28, 34, 0.88), rgba(8, 28, 34, 0.42), rgba(8, 28, 34, 0.18)),
        url("../images/hero-komensky.jpg");
    background-position: center;
    background-size: cover;
}

.hero-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0 72px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--yellow);
    font-weight: 800;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: 64px;
    line-height: 1.02;
}

.hero-copy {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    font-weight: 800;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #ffffff;
    background: var(--red);
}

.button-primary:hover {
    background: #a94734;
}

.button-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.button-outline {
    width: 100%;
    color: var(--green-dark);
    border-color: var(--green);
    background: transparent;
}

.button-outline:hover {
    color: #ffffff;
    background: var(--green);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 48px 0 0;
}

.hero-stats div {
    min-width: 120px;
}

.hero-stats dt {
    font-size: 34px;
    font-weight: 900;
}

.hero-stats dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.section {
    padding: 88px 0;
}

.page-hero {
    padding: 86px 0 70px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(8, 28, 34, 0.92), rgba(8, 28, 34, 0.72)),
        url("../images/hero-komensky.jpg") center / cover;
}

.page-hero h1,
.detail-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: 52px;
    line-height: 1.08;
}

.page-hero p:not(.eyebrow),
.detail-hero p:not(.eyebrow) {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

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

.section-alt {
    background: #ffffff;
}

.intro-band {
    padding: 38px 0;
    color: #ffffff;
    background: var(--green-dark);
}

.intro-grid,
.split,
.language-grid,
.calculator-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 34px;
}

.intro-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.intro-grid h2,
.intro-grid p {
    margin: 0;
}

.intro-grid > p {
    color: rgba(255, 255, 255, 0.82);
}

.intro-copy {
    display: grid;
    gap: 10px;
}

.intro-copy p {
    color: rgba(255, 255, 255, 0.82);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading.split {
    max-width: none;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: end;
}

.section h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.12;
}

.section h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
}

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

.service-grid,
.applicant-steps,
.pricing-grid,
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card,
.applicant-step,
.price-card,
.testimonial,
.timeline-item,
.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.service-card {
    min-height: 210px;
    padding: 24px;
}

.service-card h3::before {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin-bottom: 18px;
    background: var(--yellow);
}

.applicant-steps {
    grid-template-columns: repeat(3, 1fr);
}

.applicant-step {
    display: flex;
    min-height: 260px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
}

.applicant-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 34px;
    margin-bottom: 18px;
    color: var(--green-dark);
    background: rgba(242, 193, 78, 0.24);
    border: 1px solid rgba(242, 193, 78, 0.55);
    border-radius: 999px;
    font-weight: 900;
}

.applicant-step h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.22;
}

.applicant-step p {
    margin: 14px 0 22px;
}

.applicant-step .button {
    margin-top: auto;
    padding: 12px 16px;
}

.applicant-step .button-secondary {
    color: var(--green-dark);
    border-color: var(--green);
    background: transparent;
}

.applicant-step .button-secondary:hover {
    color: #ffffff;
    background: var(--green);
}

.university-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
}

.university-cta h2,
.university-cta p {
    margin: 0;
}

.university-cta p:not(.section-kicker) {
    margin-top: 14px;
}

.university-tools {
    display: grid;
    gap: 14px;
}

.search-field span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.search-field input,
.lead-form input,
.lead-form select,
.lead-form textarea,
.calculator select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

.search-field input:focus,
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.calculator select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(15, 107, 91, 0.16);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    min-height: 40px;
    padding: 8px 12px;
    color: var(--green-dark);
    font-weight: 800;
    background: #edf4f1;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
    color: #ffffff;
    background: var(--green);
}

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

.university-card {
    overflow: hidden;
    min-height: 100%;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(19, 33, 46, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.university-card[hidden] {
    display: none;
}

.university-card.clickable-card {
    cursor: pointer;
}

.university-card.clickable-card:hover,
.university-card.clickable-card:focus-visible {
    transform: scale(1.025);
    border-color: rgba(15, 107, 91, 0.35);
    box-shadow: 0 22px 54px rgba(19, 33, 46, 0.16);
    outline: none;
}

.university-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.university-card-body {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.university-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.university-meta span:first-child {
    color: var(--blue);
    font-weight: 800;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    color: var(--green-dark);
    font-weight: 900;
    background: #fff1bd;
    border-radius: 8px;
}

.university-card-body h3 {
    margin-top: 0;
}

.university-card-body p {
    margin: 0;
}

.university-link {
    margin-top: 6px;
    color: var(--green-dark);
    font-weight: 900;
}

.university-link:hover {
    color: var(--red);
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.card-actions .button {
    min-height: 42px;
    padding: 9px 12px;
}

.empty-state {
    margin-top: 18px;
    padding: 18px;
    background: #fff7df;
    border: 1px solid #f0d990;
    border-radius: 8px;
}

.news-hero {
    background:
        linear-gradient(90deg, rgba(8, 28, 34, 0.9), rgba(8, 28, 34, 0.54), rgba(8, 28, 34, 0.22)),
        url("../images/students-session.jpeg") center / cover;
}

.news-featured {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    overflow: hidden;
    margin-bottom: 56px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 52px rgba(19, 33, 46, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.news-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 62px rgba(19, 33, 46, 0.16);
}

.news-featured img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

.news-featured-body {
    display: flex;
    padding: 38px;
    flex-direction: column;
    justify-content: center;
}

.news-featured-body h2 {
    font-size: 38px;
}

.news-featured-body p {
    margin: 18px 0 28px;
}

.news-heading {
    margin-top: 0;
}

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

.news-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 107, 91, 0.35);
    box-shadow: 0 20px 48px rgba(19, 33, 46, 0.14);
}

.news-card a {
    display: grid;
    min-height: 100%;
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-card-body {
    display: flex;
    padding: 20px;
    flex-direction: column;
}

.news-card h3 {
    margin: 14px 0 0;
    font-size: 21px;
    line-height: 1.24;
}

.news-card p {
    margin: 12px 0 22px;
}

.news-meta,
.news-author {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.news-meta {
    justify-content: space-between;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    color: var(--green-dark);
    background: #e8f2ee;
    border-radius: 999px;
}

.news-author {
    justify-content: space-between;
    margin-top: auto;
}

.news-author span:last-child,
.news-read-more {
    color: var(--red);
    font-weight: 900;
}

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

.timeline-item {
    position: relative;
    min-height: 210px;
    padding: 28px;
    box-shadow: 0 14px 38px rgba(19, 33, 46, 0.08);
}

.timeline-item::before {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    margin-bottom: 22px;
    background: var(--yellow);
}

.timeline-item:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -39px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background: var(--green);
    border: 3px solid var(--paper);
    border-radius: 999px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 10px 24px rgba(15, 107, 91, 0.22);
}

.timeline-item h3 {
    margin-top: 0;
    font-size: 22px;
    line-height: 1.22;
}

.timeline-item p {
    margin-bottom: 0;
}

.language-section {
    background: #eef4f0;
}

.language-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
}

.media-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
}

.calculator-grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
}

.calculator {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.calculator label,
.lead-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
}

.calculator-result {
    grid-column: 1 / -1;
    padding: 18px;
    color: var(--green-dark);
    font-weight: 800;
    background: #e3f2ec;
    border-radius: 8px;
}

.pricing-grid {
    grid-template-columns: repeat(4, 1fr);
}

.price-card {
    display: grid;
    gap: 16px;
    padding: 26px;
}

.price-card .price {
    margin: 0;
    color: var(--green-dark);
    font-size: 32px;
    font-weight: 900;
}

.price-card ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.price-card li {
    padding-left: 22px;
    position: relative;
    color: var(--muted);
}

.price-card li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--yellow);
    border-radius: 50%;
}

.course-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 34px;
}

.course-grid h2,
.course-grid p {
    margin: 0;
}

.course-grid p:not(.section-kicker) {
    margin-top: 16px;
}

.course-points {
    display: grid;
    gap: 14px;
}

.course-points article {
    padding: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.course-points h3,
.course-points p {
    margin: 0;
}

.course-points p {
    margin-top: 8px;
}

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

.testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
}

.testimonial {
    margin: 0;
    padding: 24px;
}

.testimonial blockquote {
    margin: 0;
    color: var(--ink);
}

.testimonial figcaption {
    margin-top: 18px;
    color: var(--blue);
    font-weight: 800;
}

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

.faq-item {
    overflow: hidden;
}

.faq-item button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 22px;
    color: var(--ink);
    font-weight: 900;
    text-align: left;
    background: #ffffff;
    border: 0;
    cursor: pointer;
}

.faq-item button span:last-child {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #ffffff;
    background: var(--green);
    border-radius: 50%;
}

.faq-answer {
    padding: 0 22px 22px;
}

.faq-answer p {
    margin: 0;
}

.contact-section {
    color: #ffffff;
    background: var(--green-dark);
}

.detail-hero {
    padding: 72px 0;
    color: #ffffff;
    background: var(--green-dark);
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 42px;
}

.detail-hero img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-content {
    max-width: 980px;
}

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

.specialties-grid span {
    padding: 14px 16px;
    color: var(--green-dark);
    font-weight: 800;
    background: #e8f2ee;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.program-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.program-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

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

.program-table th {
    color: var(--ink);
    font-weight: 900;
    background: #ebe7dd;
}

.program-table tr:last-child td {
    border-bottom: 0;
}

.program-table td {
    color: var(--muted);
}

.program-table td:first-child {
    color: var(--ink);
    font-weight: 800;
}

.info-panel {
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.info-panel h2,
.info-panel p {
    margin: 0;
}

.info-panel p {
    margin-top: 14px;
}

.back-row {
    margin-top: 24px;
}

.contact-section .section-kicker {
    color: var(--yellow);
}

.contact-section p {
    color: rgba(255, 255, 255, 0.78);
}

.contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
}

.contact-links {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    color: #ffffff;
    font-weight: 800;
}

.contact-links a:hover {
    color: var(--yellow);
}

.lead-form {
    display: grid;
    gap: 16px;
    padding: 26px;
    color: var(--ink);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.lead-form textarea {
    resize: vertical;
}

.checkbox-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
}

.checkbox-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
    accent-color: var(--green);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.form-status {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.form-status.success {
    color: var(--green);
}

.form-status.error {
    color: var(--red);
}

.site-footer {
    padding: 24px 0;
    color: rgba(255, 255, 255, 0.78);
    background: #081c22;
}

.footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.footer-grid p {
    margin: 0;
}

.footer-grid a {
    color: #ffffff;
    font-weight: 800;
}

@media (max-width: 980px) {
    .site-header {
        padding: 12px 20px;
    }

    .header-contacts {
        margin-left: auto;
    }

    .header-phones {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: 72px 16px auto;
        display: none;
        grid-template-columns: 1fr;
        padding: 16px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: grid;
    }

    .site-nav a {
        padding: 14px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .intro-grid,
    .section-heading.split,
    .news-featured,
    .university-cta,
    .language-grid,
    .calculator-grid,
    .course-grid,
    .contact-grid,
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .applicant-steps,
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .timeline-item:not(:last-child)::after {
        content: "↓";
        top: auto;
        right: auto;
        bottom: -44px;
        left: 50%;
        transform: translateX(-50%);
    }

    .university-grid,
    .news-grid,
    .pricing-grid,
    .testimonial-grid,
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-featured img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 680px) {
    .container,
    .hero-inner {
        width: min(100% - 28px, 1120px);
    }

    .section {
        padding: 64px 0;
    }

    .site-header {
        gap: 10px;
        padding: 10px 14px;
    }

    .brand {
        font-size: 18px;
    }

    .header-socials a {
        width: 28px;
        height: 28px;
    }

    .header-socials img {
        width: 16px;
        height: 16px;
    }

    .hero {
        min-height: 78svh;
        background-position: center top;
    }

    .hero-inner {
        padding: 58px 0 54px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-copy {
        font-size: 18px;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .section h2 {
        font-size: 32px;
    }

    .service-grid,
    .applicant-steps,
    .timeline,
    .university-grid,
    .news-grid,
    .pricing-grid,
    .course-pricing-grid,
    .testimonial-grid,
    .calculator,
    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1,
    .detail-hero h1 {
        font-size: 36px;
    }

    .news-featured-body {
        padding: 24px;
    }

    .news-featured-body h2 {
        font-size: 30px;
    }

    .card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .calculator {
        padding: 18px;
    }

    .lead-form {
        padding: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
