:root {
    --bg: #f4f7f8;
    --surface: #ffffff;
    --ink: #102a33;
    --muted: #5b7078;
    --line: #dbe5e8;
    --brand: #0f5e63;
    --brand-dark: #0a4448;
    --brand-soft: #e3f1f0;
    --accent: #d97706;
    --shadow: 0 20px 50px rgba(15, 42, 51, 0.12);
    --radius: 24px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@supports (overflow-x: clip) {
    html {
        overflow-x: clip;
    }
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

@supports (overflow-x: clip) {
    body {
        overflow-x: clip;
    }
}

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

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
}

.container--wide {
    width: calc(100% - 2rem);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.skip-link:focus {
    top: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #081f22;
    color: #e8f2f2;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 58px;
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #e8f2f2;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.topbar__link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.topbar__link--vk {
    background: var(--brand);
    color: #ffffff;
}

.topbar__link--vk:hover {
    background: var(--brand-dark);
}

.topbar__dropdown {
    position: relative;
}

.topbar__dropdown-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.topbar__dropdown.is-open .topbar__dropdown-toggle svg {
    transform: rotate(180deg);
}

.topbar__dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 70;
    display: grid;
    gap: 0.2rem;
    width: max-content;
    min-width: 280px;
    max-width: min(340px, calc(100vw - 2rem));
    max-width: min(340px, calc(100dvw - 2rem));
    max-height: 70vh;
    padding: 0.6rem;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(8, 31, 34, 0.28);
}

.topbar__dropdown-menu[hidden] {
    display: none;
}

.topbar__dropdown-menu a {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    color: var(--ink);
    font-size: 0.9rem;
    text-decoration: none;
}

.topbar__dropdown-menu a:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(760px, 78vh);
    overflow: hidden;
    background: #0b2a2e;
    color: #ffffff;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    content: "";
}

.hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 32, 36, 0.94) 0%, rgba(7, 32, 36, 0.78) 55%, rgba(7, 32, 36, 0.38) 100%),
        linear-gradient(0deg, rgba(7, 32, 36, 0.35), rgba(7, 32, 36, 0.1));
    content: "";
}

.hero__content {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4.5rem);
    padding: clamp(4rem, 9vw, 8rem) 0;
}

.hero__logo-wrap {
    flex: 0 0 auto;
    padding: clamp(0.9rem, 2vw, 1.4rem);
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

.hero__logo {
    display: block;
    width: clamp(120px, 18vw, 220px);
    height: auto;
}

.program-detail__block {
    display: grid;
    gap: 2rem;
}

.program-detail__text {
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.program-detail__text p {
    margin: 0 0 1rem;
}

.program-detail__text p:last-child {
    margin-bottom: 0;
}

.program-detail__text.is-collapsible.is-collapsed {
    max-height: 16rem;
    overflow: hidden;
    position: relative;
}

.program-detail__text.is-collapsible.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4rem;
    background: linear-gradient(to bottom, rgba(244, 247, 248, 0), var(--bg));
}

.program-detail__toggle {
    justify-self: start;
}

.program-detail {
    display: grid;
    gap: 2rem;
}

.program-institutions {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.program-institutions__item {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.program-institutions__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.program-institutions__item h3 {
    margin: 0;
    font-size: 1.1rem;
}

.program-institutions__doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(217, 119, 6, 0.6);
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.5);
    color: #7c2d12;
}

.program-institutions__doc-icon svg {
    width: 22px;
    height: 22px;
}

.program-institutions__description {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.program-institutions__docs {
    display: grid;
    width: fit-content;
    max-width: 100%;
    margin: 0.75rem 0 0 auto;
    padding: 0;
    list-style: none;
    text-align: right;
}

.program-institutions__docs a {
    color: var(--brand);
    font-weight: 600;
}

.hero__text {
    max-width: 850px;
}

.hero__eyebrow {
    margin: 0 0 0.75rem;
    color: #a7e3df;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero .hero__title {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.1rem, 5.7vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: normal;
}

.hero__since {
    display: inline-flex;
    align-items: center;
    margin: 1.5rem 0 0;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d8efed;
    font-size: 0.9rem;
    font-weight: 600;
}

.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--alt {
    background: #eef5f4;
}

.section__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    text-align: left;
}

.section__head--center {
    align-items: center;
    text-align: center;
}

.section__kicker {
    margin: 0 0 0.35rem;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section__title {
    margin: 0;
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.carousel {
    position: relative;
}

.section--showcase {
    --showcase-gutter: clamp(1rem, 4vw, 3rem);
}

.section--showcase .container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-left: var(--showcase-gutter);
    padding-right: var(--showcase-gutter);
}

.section--showcase .carousel {
    width: 100%;
}

.carousel__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto 1rem;
}

.section--showcase .carousel__toolbar {
    width: 100%;
    max-width: none;
    margin: 0 0 1rem;
    padding-left: var(--showcase-gutter);
    padding-right: var(--showcase-gutter);
    box-sizing: border-box;
}

.carousel__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c5d6d8;
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.carousel__dot[aria-current="true"] {
    width: 30px;
    background: var(--brand);
}

.carousel__buttons {
    display: flex;
    gap: 0.5rem;
}

.carousel__button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--brand);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.carousel__button:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
    transform: translateY(-1px);
}

.carousel__button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.carousel__button svg {
    width: 20px;
    height: 20px;
}

.carousel__viewport {
    overflow: hidden;
    padding: 4px 0 28px;
    margin-bottom: -24px;
    touch-action: pan-y;
}

.section--showcase .carousel__viewport {
    padding-left: calc(var(--showcase-gutter) - 8px);
    padding-right: calc(var(--showcase-gutter) - 8px);
}

.carousel__track {
    display: flex;
    align-items: stretch;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.carousel__slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 8px;
}

.carousel.is-empty .carousel__track {
    display: block;
    padding: 0 1rem;
}

.carousel.is-empty .carousel__toolbar {
    display: none;
}

.carousel.is-single .carousel__toolbar {
    display: none;
}

.carousel .empty-state {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.programs-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.programs-list .program-card {
    width: 400px;
    max-width: 100%;
}

.program-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(15, 42, 51, 0.18);
}

.program-card h3 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.program-card__description {
    max-width: 72ch;
    color: var(--muted);
}

.program-card__description p {
    margin: 0 0 0.75rem;
}

.program-card__description p:last-child {
    margin-bottom: 0;
}

.news-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    width: 100%;
}

.news-card {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: clamp(1.25rem, 3.5vw, 2.75rem);
    align-items: stretch;
    width: 100%;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.news-card--no-image {
    grid-template-columns: minmax(0, 1fr);
}

.news-card__media {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 220px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: var(--brand-soft);
}

.news-card__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-card__date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    margin-top: auto;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.news-card__body h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.news-card__body p {
    max-width: 72ch;
    margin: 0 0 1.25rem;
    color: var(--muted);
}

.news-card__body .btn {
    align-self: flex-start;
    margin-top: 0.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 0.5rem;
    padding: 0.8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.btn--ghost {
    border-color: var(--line);
    background: transparent;
    color: var(--brand);
}

.btn--ghost:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.empty-state {
    padding: 2.5rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

.page-hero {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(167, 227, 223, 0.2), transparent 35%),
        linear-gradient(135deg, #0b2a2e, #0f5e63);
    color: #ffffff;
}

.page-hero .section__kicker {
    color: #a7e3df;
}

.page-hero .hero__title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: normal;
}

.page-hero__text {
    max-width: 65ch;
    margin: 1rem 0 0;
    color: #cfe5e3;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(15, 42, 51, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), #54b8b0);
}

.service-card:hover {
    border-color: #a7d5d1;
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.service-card__body {
    flex: 1;
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) 1.25rem;
}

.service-card__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.service-card__description p {
    margin: 0 0 0.75rem;
}

.service-card__description p:last-child {
    margin-bottom: 0;
}

.service-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem clamp(1.5rem, 3vw, 2.25rem);
    border-top: 1px solid var(--line);
    background: #f8fbfb;
}

.service-card__price {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.service-card__link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.service-card__link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.services-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: var(--radius);
    background: var(--brand-soft);
}

.services-cta p {
    margin: 0;
    font-weight: 600;
}

.footer {
    margin: 0;
    padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
    background: #0b2a2e;
    color: #e8f2f2;
    scroll-margin-top: 80px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: clamp(2rem, 5vw, 4rem);
}

.footer__brand img {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.footer__brand p {
    max-width: 30ch;
    margin: 0;
    color: #b9d6d6;
}

.footer h2 {
    margin: 0 0 1rem;
    color: #9ed8d4;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer ul {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer li,
.footer a {
    overflow-wrap: anywhere;
}

.footer a {
    color: #e8f2f2;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer a:hover {
    border-color: #ffffff;
}

.footer__person p {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
}

.footer__bottom {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #a9c6c6;
    font-size: 0.9rem;
    text-align: center;
}

.footer__bottom p {
    margin: 0;
}

.chat {
    position: fixed;
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 120;
}

.chat__toggle {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(8, 31, 34, 0.3);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.chat__toggle:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.chat__icon {
    width: 26px;
    height: 26px;
}

.chat__icon--close {
    display: none;
}

.chat.is-open .chat__icon--open {
    display: none;
}

.chat.is-open .chat__icon--close {
    display: block;
}

.chat__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    display: flex;
    flex-direction: column;
    width: min(360px, calc(100vw - 2rem));
    max-width: calc(100dvw - 2rem);
    height: min(480px, calc(100vh - 8rem));
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(8, 31, 34, 0.32);
    border: 1px solid rgba(0, 0, 0, 0.45);
}

.chat__panel[hidden] {
    display: none;
}

.chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--brand);
    color: #ffffff;
}

.chat__header strong {
    display: block;
    font-size: 1rem;
}

.chat__header span {
    display: block;
    color: #c9e5e2;
    font-size: 0.78rem;
}

.chat__close {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
}

.chat__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat__close svg {
    width: 18px;
    height: 18px;
}

.chat__messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
    overflow-y: auto;
    background: #f4f8f8;
}

.chat__message {
    max-width: 85%;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.chat__message--bot {
    align-self: flex-start;
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
    background: #ffffff;
}

.chat__message--user {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: var(--brand);
    color: #ffffff;
}

.chat__form {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.chat__input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f7fafa;
    color: var(--ink);
}

.chat__input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 94, 99, 0.15);
}

.chat__send {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #ffffff;
    cursor: pointer;
}

.chat__send:hover {
    background: var(--brand-dark);
}

.chat__send svg {
    width: 19px;
    height: 19px;
}

@media (max-width: 900px) {
    .hero__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero .hero__title {
        max-width: 100%;
    }

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

    .news-card {
        grid-template-columns: minmax(0, 1fr);
    }

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

@media (max-width: 640px) {
    .topbar__inner {
        justify-content: center;
        min-height: auto;
        padding: 0.25rem 0;
    }

    .topbar__nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.2rem 0.35rem;
        padding: 0.35rem 0;
    }

    .topbar__link {
        padding: 0.45rem 0.55rem;
        font-size: 0.8rem;
    }

    .topbar__dropdown-menu {
        right: auto;
        left: 0;
        min-width: min(300px, calc(100vw - 2rem));
        min-width: min(300px, calc(100dvw - 2rem));
        max-width: calc(100dvw - 2rem);
    }

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

    .section__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .carousel__button {
        width: 40px;
        height: 40px;
    }


    .section--showcase .carousel__track {
        padding: 0;
    }

    .chat {
        right: calc(1rem + env(safe-area-inset-right, 0px));
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }

    .chat__toggle {
        width: 54px;
        height: 54px;
    }

    .chat__panel {
        height: min(520px, calc(100vh - 6rem));
        height: min(520px, calc(100dvh - 7rem));
    }

    .services-cta {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .carousel__track,
    .carousel__button,
    .btn,
    .chat__toggle,
    .service-card,
    .program-card {
        transition: none;
    }

    .carousel__button:hover,
    .btn:hover,
    .chat__toggle:hover,
    .service-card:hover,
    .program-card:hover {
        transform: none;
    }
}
