@font-face {
    font-family: "Far Diplomat";
    src: url("../fonts/Far_Diplomat.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

:root {
    --gold: #b8962e;
    --gold-bright: #d3ae38;
    --gold-soft: #f4ead0;
    --ink: #121a22;
    --muted: #626a70;
    --surface: #ffffff;
    --surface-soft: #f8f8f5;
    --surface-raised: #ffffff;
    --line: #e8e6df;
    --header-bg: rgba(255, 255, 255, 0.92);
    --shadow: 0 18px 50px rgba(17, 24, 32, 0.08);
    --shadow-soft: 0 8px 24px rgba(17, 24, 32, 0.06);
    --dark: #111820;
    --dark-raised: #19232c;
    --white: #ffffff;
    --heading: "Cormorant Garamond", Georgia, serif;
    --body: "Manrope", Arial, sans-serif;
    --container: 1200px;
    --radius: 18px;
    --transition: 220ms ease;
}

html[data-theme="dark"] {
    --ink: #f4f1e8;
    --muted: #aeb5bb;
    --surface: #10171e;
    --surface-soft: #141e26;
    --surface-raised: #19242d;
    --line: #2c3740;
    --header-bg: rgba(16, 23, 30, 0.92);
    --gold-soft: rgba(184, 150, 46, 0.15);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.75;
    transition: background-color var(--transition), color var(--transition);
}

html[lang="fa"] body {
    font-family: "Far Diplomat", Tahoma, Arial, sans-serif;
    font-size: 16px;
}

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

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

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

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--heading);
    line-height: 1.1;
}

html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3 {
    font-family: "Far Diplomat", Tahoma, sans-serif;
    font-weight: 400;
    line-height: 1.45;
}

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

.section {
    padding: 108px 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 999;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--gold);
    color: #111820;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

html[lang="fa"] .eyebrow {
    letter-spacing: 0;
    font-size: 0.92rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: var(--header-bg);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: flex;
    width: 165px;
    flex: 0 0 auto;
    align-items: center;
}

.brand-logo {
    width: 155px;
    height: 68px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    margin-inline: auto;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    position: relative;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    background: var(--gold);
    content: "";
    transform: scaleX(0);
    transition: transform var(--transition);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.header-actions,
.footer-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
}

.theme-toggle svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.sun-icon {
    color: var(--gold);
}

.theme-track {
    position: relative;
    width: 38px;
    height: 21px;
    border: 1px solid rgba(184, 150, 46, 0.5);
    border-radius: 20px;
    background: var(--gold);
}

.theme-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: white;
    transition: transform var(--transition);
}

html[data-theme="dark"] .theme-thumb {
    transform: translateX(17px);
}

.language-switcher {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface-soft);
}

.language-switcher a {
    min-width: 38px;
    padding: 6px 8px;
    font-family: var(--body);
    font-size: 0.68rem;
    line-height: 1.3;
    text-align: center;
}

.language-switcher a.active {
    background: var(--ink);
    color: var(--surface);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-raised);
}

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

.hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 30%, rgba(184, 150, 46, 0.07), transparent 28%),
        var(--surface);
}

.hero-grid {
    display: grid;
    min-height: 650px;
    grid-template-columns: 47% 53%;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 76px 44px 70px 0;
}

[dir="rtl"] .hero-copy {
    padding: 76px 0 70px 44px;
}

.hero h1 {
    max-width: 650px;
    margin-bottom: 24px;
    font-size: clamp(3.5rem, 6vw, 5.65rem);
    letter-spacing: -0.035em;
}

.hero h1 span {
    color: var(--gold);
}

html[lang="fa"] .hero h1 {
    font-size: clamp(2.7rem, 5vw, 4.9rem);
    letter-spacing: 0;
}

.hero-intro {
    max-width: 590px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    box-shadow: 0 8px 22px rgba(184, 150, 46, 0.22);
    color: #111820;
}

.button-primary:hover {
    box-shadow: 0 12px 28px rgba(184, 150, 46, 0.34);
}

.button-secondary {
    border-color: var(--line);
    background: var(--surface-raised);
}

.button-secondary:hover {
    border-color: var(--gold);
}

.hero-features {
    display: flex;
    margin-top: 42px;
    gap: 28px;
}

.hero-features div {
    display: flex;
    max-width: 140px;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.5;
}

.hero-features svg,
.benefit-card svg,
.course-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.hero-features svg {
    width: 31px;
    flex: 0 0 31px;
}

.hero-visual {
    position: relative;
    align-self: stretch;
}

.hero-image-frame {
    position: absolute;
    top: 0;
    right: calc((100vw - min(100vw - 48px, var(--container))) / -2);
    bottom: 0;
    left: 0;
    overflow: hidden;
    border-inline-start: 13px solid var(--gold);
    border-radius: 52% 0 0 52%;
    background: var(--gold-soft);
}

[dir="rtl"] .hero-image-frame {
    right: 0;
    left: calc((100vw - min(100vw - 48px, var(--container))) / -2);
    border-radius: 0 52% 52% 0;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-badge {
    position: absolute;
    right: 6%;
    bottom: 7%;
    display: flex;
    max-width: 190px;
    align-items: center;
    gap: 12px;
    padding: 14px 17px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(17, 24, 32, 0.84);
    box-shadow: var(--shadow);
    color: white;
    backdrop-filter: blur(10px);
}

[dir="rtl"] .hero-badge {
    right: auto;
    left: 6%;
}

.hero-badge strong {
    color: var(--gold-bright);
    font-family: var(--heading);
    font-size: 1.75rem;
}

.hero-badge span {
    font-size: 0.67rem;
    line-height: 1.45;
}

.benefits {
    border-block: 1px solid var(--line);
    background: var(--surface-soft);
}

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

.benefit-card {
    min-height: 205px;
    padding: 38px 34px;
    border-inline-end: 1px solid var(--line);
    text-align: center;
}

.benefit-card:last-child {
    border-inline-end: 0;
}

.benefit-card svg {
    width: 39px;
    margin: 0 auto 18px;
}

.benefit-card h2 {
    margin-bottom: 9px;
    font-size: 1.22rem;
}

.benefit-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.section-heading,
.testimonial-heading {
    display: flex;
    margin-bottom: 44px;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.section-heading h2,
.testimonial-heading h2,
.about h2,
.contact-section h2 {
    margin-bottom: 0;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.section-heading > p {
    max-width: 430px;
    margin-bottom: 7px;
    color: var(--muted);
    text-align: end;
}

.section-heading h2::after,
.testimonial-heading h2::after,
.about-panel > h2::after,
.contact-copy h2::after {
    display: block;
    width: 46px;
    height: 2px;
    margin-top: 14px;
    background: var(--gold);
    content: "";
}

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

.course-card {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    padding: 30px 27px 25px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.course-card:hover {
    border-color: rgba(184, 150, 46, 0.7);
    box-shadow: var(--shadow);
    transform: translateY(-7px);
}

.course-icon {
    display: grid;
    width: 55px;
    height: 55px;
    margin-bottom: 23px;
    place-items: center;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
}

.course-icon svg {
    width: 30px;
}

.course-card h3 {
    margin-bottom: 7px;
    font-size: 1.35rem;
}

.course-card > span {
    color: var(--gold);
    font-size: 0.69rem;
    font-weight: 700;
}

.course-card p {
    margin: 14px 0 25px;
    color: var(--muted);
    font-size: 0.78rem;
}

.course-card a {
    display: flex;
    margin-top: auto;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    font-size: 0.72rem;
    font-weight: 700;
}

.course-card a b {
    color: var(--gold);
    font-size: 1rem;
}

.journey {
    position: relative;
    overflow: hidden;
    padding: 88px 0 98px;
    background:
        radial-gradient(circle at 85% 15%, rgba(184, 150, 46, 0.14), transparent 25%),
        var(--dark);
    color: var(--white);
}

.section-heading.light > p {
    color: #aeb5bb;
}

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

.journey-step {
    position: relative;
    padding: 0 26px;
    text-align: center;
}

.journey-step::before {
    position: absolute;
    top: 22px;
    inset-inline-start: -50%;
    width: 100%;
    border-top: 1px dashed rgba(211, 174, 56, 0.6);
    content: "";
}

.journey-step:first-child::before {
    display: none;
}

.step-number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    place-items: center;
    border: 1px solid #e5c65d;
    border-radius: 50%;
    background: linear-gradient(135deg, #d5ae34, #8f7014);
    box-shadow: 0 0 0 7px rgba(184, 150, 46, 0.09);
    font-family: var(--heading);
    font-size: 1.2rem;
}

.journey-step h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.journey-step p {
    margin: 0;
    color: #c2c7cb;
    font-size: 0.75rem;
}

.journey-decoration {
    position: absolute;
    right: 3%;
    bottom: -20px;
    width: 160px;
    color: rgba(211, 174, 56, 0.28);
}

[dir="rtl"] .journey-decoration {
    right: auto;
    left: 3%;
    transform: scaleX(-1);
}

.journey-decoration svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

.about {
    background: var(--surface-soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 72px;
    align-items: start;
}

.about-panel > p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
}

.about-stats {
    display: grid;
    margin-top: 38px;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.about-stats div {
    padding: 25px 20px 4px;
    border-inline-end: 1px solid var(--line);
}

.about-stats div:last-child {
    border: 0;
}

.about-stats strong,
.about-stats span {
    display: block;
}

.about-stats strong {
    color: var(--gold);
    font-family: var(--heading);
    font-size: 2.25rem;
    line-height: 1;
}

.about-stats span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.7rem;
}

.why-card {
    padding: 38px;
    border: 1px solid rgba(184, 150, 46, 0.4);
    border-radius: var(--radius);
    background: var(--surface-raised);
    box-shadow: var(--shadow);
}

.why-card h2 {
    margin-bottom: 25px;
    font-size: 2.25rem;
}

.why-card ul {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.why-card li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.8rem;
    font-weight: 600;
}

.why-card li span {
    color: var(--gold);
    font-family: var(--heading);
    font-size: 1.05rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 700;
}

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

.teacher-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.teacher-photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-soft);
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.teacher-card:hover img {
    transform: scale(1.035);
}

.teacher-info {
    padding: 19px 20px 21px;
}

.teacher-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.teacher-info p {
    margin: 0;
    color: var(--muted);
    font-size: 0.7rem;
}

.testimonials {
    padding-top: 20px;
}

.slider-controls {
    display: flex;
    gap: 9px;
}

.slider-controls button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-raised);
    transition: border-color var(--transition), background var(--transition);
}

.slider-controls button:hover {
    border-color: var(--gold);
    background: var(--gold-soft);
}

.testimonial-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testimonial-card {
    min-height: 245px;
    margin: 0;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-soft);
}

.quote-mark {
    display: block;
    height: 42px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
}

.testimonial-card blockquote {
    margin: 5px 0 24px;
    color: var(--muted);
    font-size: 0.83rem;
}

.testimonial-card figcaption {
    font-family: var(--heading);
    font-size: 1rem;
    font-weight: 700;
}

.contact-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background:
        linear-gradient(120deg, rgba(184, 150, 46, 0.08), transparent 45%),
        var(--dark);
    color: white;
}

.contact-section::before {
    position: absolute;
    bottom: -100px;
    left: 8%;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(184, 150, 46, 0.12);
    border-radius: 50%;
    content: "";
}

.contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.contact-copy h2 {
    max-width: 430px;
    margin-bottom: 22px;
}

.contact-copy > p:not(.eyebrow) {
    max-width: 420px;
    margin-bottom: 30px;
    color: #c2c7cb;
}

.contact-lines {
    display: flex;
    margin-top: 28px;
    gap: 22px;
    color: #d5d9dc;
    font-size: 0.77rem;
}

.contact-form-wrap {
    padding: 35px;
    border: 1px solid #3b4650;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.contact-form-wrap h3 {
    margin-bottom: 20px;
    font-size: 1.65rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

form label {
    display: block;
    margin-bottom: 12px;
}

form label > span {
    display: block;
    margin-bottom: 5px;
    color: #d9dde0;
    font-size: 0.68rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #65717b;
    border-radius: 4px;
    outline: none;
    background: rgba(4, 10, 15, 0.28);
    color: white;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input,
select {
    height: 45px;
    padding: 0 13px;
}

textarea {
    min-height: 112px;
    padding: 11px 13px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #929ba2;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(184, 150, 46, 0.15);
}

select option {
    background: var(--dark);
}

.form-notice {
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 5px;
    font-size: 0.75rem;
}

.form-notice.success {
    border: 1px solid rgba(83, 190, 128, 0.45);
    background: rgba(83, 190, 128, 0.12);
}

.form-notice.error {
    border: 1px solid rgba(222, 103, 103, 0.5);
    background: rgba(222, 103, 103, 0.12);
}

.honeypot {
    position: absolute;
    left: -10000px;
}

.site-footer {
    border-top: 1px solid #2c3740;
    background: #0d141a;
    color: white;
}

.footer-main {
    display: grid;
    padding-block: 58px;
    grid-template-columns: 1.5fr 0.7fr 1fr;
    gap: 70px;
}

.footer-brand img {
    width: 175px;
    height: 75px;
    margin-bottom: 12px;
    object-fit: contain;
    margin-right: -11px;
}

.footer-brand p,
.footer-contact p {
    max-width: 350px;
    color: #aeb5bb;
    font-size: 0.75rem;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links h2,
.footer-contact h2 {
    margin-bottom: 17px;
    color: white;
    font-size: 1.2rem;
}

.footer-links a,
.footer-contact a {
    margin: 3px 0;
    color: #aeb5bb;
    font-size: 0.74rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold-bright);
}

.footer-contact {
    font-style: normal;
}

.footer-bottom {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #2c3740;
    gap: 24px;
}

.footer-bottom p {
    margin: 0;
    color: #8f989f;
    font-size: 0.66rem;
}

.footer-language {
    border-color: #34404a;
    background: #151f27;
}

.footer-language a.active {
    background: var(--gold);
    color: #111820;
}

.footer-theme .moon-icon {
    color: white;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 600ms ease, transform 600ms ease;
    }

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1040px) {
    .main-nav {
        gap: 18px;
    }

    .header-inner {
        gap: 18px;
    }

    .brand {
        width: 135px;
    }

    .brand-logo {
        width: 130px;
    }

    .hero-grid {
        min-height: 590px;
        grid-template-columns: 50% 50%;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 6vw, 4.7rem);
    }

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

    .teacher-grid {
        gap: 14px;
    }

    .contact-grid {
        gap: 45px;
    }
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 72px;
    }

    .menu-toggle {
        display: block;
        margin-inline-start: auto;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        padding: 18px 24px 24px;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--line);
        background: var(--surface-raised);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 8px;
        text-align: center;
    }

    .main-nav a::after {
        display: none;
    }

    .hero-grid {
        display: block;
    }

    .hero-copy {
        padding: 70px 0 52px;
    }

    [dir="rtl"] .hero-copy {
        padding: 70px 0 52px;
    }

    .hero-visual {
        height: 520px;
    }

    .hero-image-frame,
    [dir="rtl"] .hero-image-frame {
        right: -24px;
        left: -24px;
        border-inline-start: 0;
        border-top: 11px solid var(--gold);
        border-radius: 45% 45% 0 0;
    }

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

    .benefit-card:nth-child(2) {
        border-inline-end: 0;
    }

    .benefit-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .journey-step {
        padding: 25px;
    }

    .journey-step::before {
        display: none;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 45px;
    }

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

    .testimonial-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .testimonial-track::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        min-width: calc(50% - 11px);
        scroll-snap-align: start;
    }
}

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

    .section {
        padding: 76px 0;
    }

    .brand,
    .brand-logo {
        width: 112px;
    }

    .brand-logo {
        height: 55px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .theme-toggle svg {
        display: none;
    }

    .language-switcher a {
        min-width: 32px;
        padding-inline: 5px;
    }

    .hero-copy {
        padding-top: 55px;
    }

    .hero h1,
    html[lang="fa"] .hero h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

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

    .hero-features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .hero-features div {
        display: block;
        font-size: 0.62rem;
        text-align: center;
    }

    .hero-features svg {
        display: block;
        margin: 0 auto 8px;
    }

    .hero-visual {
        height: 410px;
    }

    .hero-image-frame,
    [dir="rtl"] .hero-image-frame {
        right: -16px;
        left: -16px;
    }

    .hero-badge {
        right: 12px;
        bottom: 12px;
    }

    [dir="rtl"] .hero-badge {
        left: 12px;
    }

    .benefit-grid,
    .course-grid,
    .journey-grid,
    .teacher-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        min-height: 0;
        border-inline-end: 0;
        border-bottom: 1px solid var(--line);
    }

    .benefit-card:last-child {
        border-bottom: 0;
    }

    .section-heading,
    .testimonial-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading > p {
        text-align: start;
    }

    .course-card {
        min-height: 280px;
    }

    .journey {
        padding: 75px 0;
    }

    .journey-step {
        padding: 12px 10px 35px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-stats div {
        display: flex;
        align-items: center;
        gap: 16px;
        border-inline-end: 0;
        border-bottom: 1px solid var(--line);
    }

    .why-card,
    .contact-form-wrap {
        padding: 27px 22px;
    }

    .testimonial-card {
        min-width: 88%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-lines {
        flex-direction: column;
        gap: 4px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        padding-block: 20px;
        align-items: flex-start;
        flex-direction: column;
    }
}
