:root {
    --primary: #140b47;
    --primary-soft: #29235c;
    --navy: #211d3d;
    --gold: #c5a059;
    --red: #e30613;
    --surface: #f8f9fa;
    --surface-2: #eef0f2;
    --text: #191c1d;
    --muted: #565865;
    --line: #d9dbe2;
    --white: #fff;
    --shadow: 0 18px 60px rgba(20, 11, 71, .12);
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font-family: "Source Serif 4", Georgia, serif;
    overflow-x: hidden;
}

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

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

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

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, .82);
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 13px;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-note {
    margin-left: auto;
    color: rgba(255, 255, 255, .62);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--primary);
    box-shadow: 0 8px 28px rgba(20, 11, 71, .16);
}

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

.brand img {
    height: 50px;
    width: auto;
}

.desktop-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 26px;
    font-family: "Hanken Grotesk", Arial, sans-serif;
}

.desktop-nav a,
.mobile-nav a {
    color: rgba(255, 255, 255, .88);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .03em;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--gold);
}

.header-action,
.mobile-action {
    background: var(--red);
    color: var(--white);
    border-radius: 8px;
    padding: 12px 20px;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(227, 6, 19, .25);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .18);
    background: transparent;
    border-radius: 8px;
    padding: 9px;
}

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

.mobile-nav {
    display: none;
    padding: 8px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
}

.mobile-nav.is-open {
    display: block;
}

.hero,
.hero-slider-container {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--primary);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.is-active,
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(20, 11, 71, .92), rgba(20, 11, 71, .48), rgba(20, 11, 71, .04));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    color: var(--white);
    text-align: left;
    margin-left: max(20px, calc((100vw - var(--container)) / 2));
    margin-right: auto;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    color: var(--gold);
    border: 1px solid rgba(197, 160, 89, .35);
    background: rgba(197, 160, 89, .13);
    border-radius: 999px;
    padding: 8px 14px;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
.btn,
.text-link {
    font-family: "Hanken Grotesk", Arial, sans-serif;
}

.hero h1,
.hero h2 {
    margin: 18px 0 18px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.hero p {
    max-width: 620px;
    font-size: 20px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .84);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 8px;
    padding: 14px 22px;
    font-weight: 800;
    border: 2px solid transparent;
}

.btn.gold {
    background: var(--gold);
    color: var(--primary);
}

.btn.outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, .55);
}

.btn.light {
    background: var(--white);
    color: var(--red);
}

.btn.outline-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, .7);
}

.hero-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .22);
    color: var(--white);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    cursor: pointer;
}

.hero-control.prev {
    left: 28px;
}

.hero-control.next {
    right: 28px;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .38);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 34px;
    border-radius: 999px;
    background: var(--gold);
}

.level-banner {
    background:
        linear-gradient(135deg, rgba(20, 11, 71, .96), rgba(227, 6, 19, .9)),
        url("https://izmiramerikankultur.com/trex/assets/img/slayt/2332826820.jpg") center/cover;
    color: var(--white);
    padding: 42px 0;
}

.level-banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.level-banner-copy h2 {
    max-width: 820px;
    margin: 16px 0 10px;
    color: var(--white);
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.12;
}

.level-banner-copy p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
    line-height: 1.65;
}

.about-band {
    background: linear-gradient(180deg, var(--white), var(--surface));
}

.elevated-copy {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(26px, 4vw, 44px);
    box-shadow: var(--shadow);
}

.with-action {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.section {
    padding: 88px 0;
}

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

.programs-direct-section {
    padding-top: 74px;
}

.section.surface {
    background: var(--surface-2);
}

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

.feature-card,
.program-card,
.branch-card,
.content-card,
.iframe-card,
.contact-branch {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.feature-card {
    padding: 34px;
}

.feature-card i {
    color: var(--gold);
    font-size: 42px;
    margin-bottom: 22px;
}

.feature-card h3,
.program-card h3,
.program-card h2,
.branch-card h2,
.contact-branch h2 {
    color: var(--primary);
    margin: 0 0 12px;
}

.feature-card p,
.program-card p,
.branch-card p,
.contact-branch p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

.split,
.two-column,
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
}

.align-start {
    align-items: start;
}

.split h2,
.section-heading h2,
.two-column h2,
.page-hero h1 {
    color: var(--primary);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.08;
    margin: 16px 0;
}

.prose p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.text-link,
.program-card a {
    color: var(--gold);
    font-weight: 800;
}

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

.section-heading p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

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

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

.program-card {
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.program-card:hover,
.exam-card:hover,
.branch-card:hover,
.contact-branch:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(197, 160, 89, .45);
}

.program-card img {
    height: 210px;
    width: 100%;
    object-fit: cover;
}

.program-card div {
    padding: 24px;
}

.program-card p {
    min-height: 104px;
    margin-bottom: 20px;
}

.premium-card img {
    height: 230px;
}

.cta-band {
    background: var(--red);
    color: var(--white);
    padding: 68px 0;
    text-align: center;
}

.cta-band h2 {
    margin: 0 0 8px;
    text-transform: uppercase;
    font-size: clamp(30px, 4vw, 48px);
}

.cta-band p {
    margin: 0 0 26px;
    font-size: 20px;
    color: rgba(255, 255, 255, .86);
}

.exam-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.exam-showcase {
    position: relative;
}

.exam-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.exam-card-grid.page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.exam-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.exam-card h2,
.exam-card h3 {
    color: var(--primary);
    margin: 14px 0 10px;
    font-size: 21px;
}

.exam-card p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 20px;
}

.exam-card a {
    margin-top: auto;
    color: var(--gold);
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-weight: 800;
}

.exam-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--primary);
    background: rgba(197, 160, 89, .18);
    font-size: 22px;
}

.mini-branch-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.mini-branch-list a {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    color: var(--primary);
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-weight: 800;
}

.mini-branch-list span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 600;
}

.exam-list span {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--white);
    color: var(--primary);
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-weight: 800;
}

.iframe-card {
    padding: 28px;
    box-shadow: var(--shadow);
}

.iframe-card h2,
.iframe-card h3 {
    margin: 0 0 18px;
    color: var(--primary);
}

.iframe-card iframe,
.inline-form iframe {
    width: 100%;
    min-height: 520px;
    border: 0;
    background: var(--surface);
}

.iframe-card.tall iframe {
    min-height: 720px;
}

.page-hero {
    position: relative;
    padding: 98px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 25%, rgba(197, 160, 89, .2), transparent 30%),
        linear-gradient(135deg, var(--primary), var(--navy));
    overflow: hidden;
}

.refined-hero::after {
    content: "";
    position: absolute;
    right: max(20px, calc((100vw - var(--container)) / 2));
    bottom: -45px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(197, 160, 89, .25);
    border-radius: 50%;
}

.page-hero.image-hero {
    background-image: linear-gradient(90deg, rgba(20, 11, 71, .9), rgba(20, 11, 71, .48)), var(--bg);
    background-size: cover;
    background-position: center;
}

.page-hero h1 {
    color: var(--white);
    max-width: 880px;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, .84);
    font-size: 20px;
    line-height: 1.65;
}

.content-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
}

.side-menu {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 10px;
}

.refined-menu {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 14px 42px rgba(20, 11, 71, .08);
}

.refined-menu strong {
    display: block;
    color: var(--primary);
    font-family: "Hanken Grotesk", Arial, sans-serif;
    padding: 12px 12px 16px;
}

.side-menu a {
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--primary);
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-weight: 800;
}

.refined-menu a {
    border-color: transparent;
    background: var(--surface);
}

.refined-menu a:hover {
    background: var(--primary);
    color: var(--white);
}

.content-card {
    padding: clamp(28px, 4vw, 54px);
}

.refined-content {
    box-shadow: var(--shadow);
}

.article-head {
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
    padding-bottom: 22px;
}

.article-head span {
    color: var(--gold);
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 12px;
}

.article-head h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    margin-top: 10px;
}

.detail-section {
    background: linear-gradient(180deg, var(--surface), var(--white));
}

.compact-form iframe {
    min-height: 560px;
}

.content-card h2 {
    color: var(--primary);
    margin: 0 0 10px;
}

.inline-form {
    margin-top: 36px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

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

.branch-card {
    padding: 30px;
}

.branch-card p {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.branch-card i {
    color: var(--gold);
    width: 18px;
    margin-top: 4px;
}

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

.contact-branch {
    padding: 24px;
}

.contact-branch a {
    display: inline-block;
    margin: 12px 14px 0 0;
    color: var(--primary);
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-weight: 800;
}

.contact-hero {
    padding-bottom: 128px;
}

.contact-shell {
    background: linear-gradient(180deg, var(--surface) 0, var(--white) 58%);
    padding: 0 0 88px;
}

.contact-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: -58px;
    position: relative;
    z-index: 3;
}

.quick-contact-card {
    min-height: 138px;
    background: var(--white);
    border: 1px solid rgba(197, 160, 89, .34);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 18px 55px rgba(20, 11, 71, .12);
    display: grid;
    align-content: start;
    gap: 8px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.quick-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 70px rgba(20, 11, 71, .16);
}

.quick-contact-card i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(197, 160, 89, .16);
    color: var(--primary);
}

.quick-contact-card span {
    color: var(--muted);
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.quick-contact-card strong {
    color: var(--primary);
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.2;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    gap: 34px;
    align-items: start;
    margin-top: 56px;
}

.contact-panel,
.contact-form-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-panel {
    padding: clamp(26px, 4vw, 42px);
}

.contact-panel-head {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.contact-panel-head h2 {
    max-width: 780px;
    color: var(--primary);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    margin: 0;
}

.refined-contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.refined-contact-branch {
    padding: 24px;
    background: linear-gradient(180deg, var(--white), var(--surface));
    min-height: 250px;
}

.branch-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.branch-title-row h3 {
    color: var(--primary);
    margin: 0;
    font-size: 24px;
}

.branch-title-row i {
    color: var(--gold);
    font-size: 26px;
}

.refined-contact-branch p {
    display: flex;
    gap: 10px;
    min-height: 74px;
}

.refined-contact-branch p i {
    color: var(--gold);
    margin-top: 5px;
}

.branch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.branch-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--primary);
}

.branch-actions a:hover {
    background: var(--primary);
    color: var(--white);
}

.contact-form-panel {
    position: sticky;
    top: 112px;
    overflow: hidden;
}

.form-panel-head {
    padding: 28px 28px 20px;
    background:
        radial-gradient(circle at 92% 12%, rgba(197, 160, 89, .22), transparent 32%),
        linear-gradient(135deg, var(--primary), var(--navy));
    color: var(--white);
}

.form-panel-head span {
    color: var(--gold);
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.form-panel-head h2 {
    margin: 10px 0 8px;
    color: var(--white);
    font-size: 30px;
    line-height: 1.1;
}

.form-panel-head p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.55;
}

.contact-form-panel iframe {
    width: 100%;
    min-height: 760px;
    border: 0;
    display: block;
    background: var(--surface);
}

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr 1.1fr;
    gap: 38px;
    padding: 70px 0;
}

.footer-logo {
    height: 46px;
    margin-bottom: 22px;
}

.site-footer h3 {
    color: var(--gold);
    margin: 0 0 20px;
}

.site-footer a {
    display: block;
    margin-bottom: 12px;
}

.site-footer p {
    line-height: 1.65;
}

.socials {
    display: flex;
    gap: 12px;
}

.socials a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 22px 0;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 13px;
}

@media (max-width: 1060px) {
    .desktop-nav,
    .header-action,
    .topbar-note {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .program-grid,
    .program-grid.wide,
    .feature-grid,
    .exam-card-grid,
    .exam-card-grid.page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .contact-quick-grid,
    .contact-layout,
    .refined-contact-list {
        grid-template-columns: 1fr;
    }

    .contact-form-panel {
        position: static;
    }

    .level-banner-inner {
        grid-template-columns: 1fr;
    }

    .level-banner-inner .btn {
        width: fit-content;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .topbar {
        display: none;
    }

    .header-inner {
        min-height: 72px;
    }

    .brand img {
        height: 40px;
    }

    .hero,
    .hero-slider-container {
        min-height: 620px;
        height: calc(100vh - 72px);
    }

    .slide-overlay {
        background: linear-gradient(to bottom, rgba(20, 11, 71, .52), rgba(20, 11, 71, .94));
    }

    .hero-control {
        display: none;
    }

    .hero h1,
    .hero h2 {
        font-size: 38px;
    }

    .hero p,
    .page-hero p {
        font-size: 17px;
    }

    .section {
        padding: 58px 0;
    }

    .split,
    .two-column,
    .content-layout,
    .feature-grid,
    .program-grid,
    .program-grid.wide,
    .exam-card-grid,
    .exam-card-grid.page-grid,
    .branch-grid,
    .footer-grid,
    .mini-branch-list {
        grid-template-columns: 1fr;
    }

    .with-action {
        display: block;
    }

    .side-menu {
        position: static;
    }

    .program-card p {
        min-height: auto;
    }

    .page-hero {
        padding: 64px 0;
    }

    .iframe-card {
        padding: 18px;
    }

    .contact-hero {
        padding-bottom: 92px;
    }

    .contact-shell {
        padding-bottom: 58px;
    }

    .quick-contact-card,
    .contact-panel,
    .refined-contact-branch {
        padding: 20px;
    }

    .contact-form-panel iframe {
        min-height: 680px;
    }

    .level-banner {
        padding: 34px 0;
    }

    .level-banner-inner .btn {
        width: 100%;
        text-align: center;
    }
}
