:root {
  --page: #f1f0ea;
  --surface: #fbfaf6;
  --ink: #17221e;
  --muted: #52605a;
  --line: #cbd2cb;
  --green: #2f6257;
  --green-dark: #214a41;
  --mint: #cfe0d6;
  --mint-soft: #e1e9e3;
  --warm: #e59a73;
  --yellow: #ead778;
  --shell: min(1210px, calc(100% - 40px));
  --display: "Onest", Arial, sans-serif;
  --body: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: var(--body); line-height: 1.5; }
a { color: inherit; }
button { color: inherit; font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header { min-height: 82px; border-bottom: 1px solid var(--line); background: var(--page); }
.header-inner { position: relative; min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { width: max-content; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font: 600 18px var(--display); }
.brand-copy strong, .brand-copy small { display: block; line-height: 1.1; }
.brand-copy strong { font-size: 14px; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.desktop-nav { display: flex; gap: 30px; }
.desktop-nav a, .account-link { color: #3e4d47; font-size: 13px; font-weight: 650; text-decoration: none; }
.desktop-nav a:hover, .account-link:hover { color: var(--green); }
.account-link { justify-self: end; }
.account-link span { margin-left: 8px; }
.menu-button, .mobile-menu { display: none; }

.welcome { min-height: 600px; margin-top: 28px; }
.welcome-copy { display: flex; flex-direction: column; justify-content: center; padding: 38px 28px; }
.section-kicker { margin: 0 0 15px; color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: var(--display); }
.welcome h1 { max-width: 740px; margin-bottom: 25px; font-size: clamp(48px, 5.5vw, 68px); font-weight: 620; line-height: 1.02; letter-spacing: -.055em; }
.welcome-text { max-width: 700px; margin: 0; color: #2f403a; font-size: 18px; font-weight: 500; line-height: 1.58; }
.welcome-actions { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 0 21px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .18s, background .18s; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: #fff; background: var(--green-dark); }
.button-plain { border-color: rgba(33, 74, 65, .32); }
.button-plain span { font-size: 16px; }

.statement-card { position: relative; min-height: 600px; overflow: hidden; display: grid; place-items: center; padding: 46px; border: 1px solid rgba(255,255,255,.18); border-radius: 34px; color: var(--ink); background: var(--green-dark); }
.statement-card::before { content: ""; position: absolute; width: 315px; height: 315px; right: -105px; top: -85px; border: 1px dashed rgba(255,255,255,.23); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018); }
.statement-card::after { content: ""; position: absolute; width: 92px; height: 18px; left: -18px; bottom: 55px; background: var(--warm); transform: rotate(-8deg); }
.statement-text { position: relative; z-index: 2; width: 100%; margin: 0; font: 620 clamp(38px, 5.5vw, 76px)/1.02 var(--display); letter-spacing: -.05em; text-transform: uppercase; transform: rotate(-1.5deg); }
.statement-text span { display: block; width: max-content; max-width: 100%; margin: 7px auto 0; padding: 7px 11px 8px; background: var(--surface); box-shadow: 7px 7px 0 rgba(229,154,115,.85); }
.statement-text span:nth-child(2) { transform: translateX(9px); }
.statement-text span:nth-child(3) { transform: translateX(-15px); }
.statement-text span:nth-child(4) { transform: translateX(4px); }

.teachers-section, .courses-section { position: relative; overflow: hidden; margin-top: 28px; padding: 70px 34px; border-radius: 34px; }
.teachers-section { padding-block: 54px 58px; }
.teachers-section { color: var(--ink); background: var(--mint-soft); }
.courses-section { background: var(--mint-soft); }
.teachers-section::before { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; top: -230px; border: 1px solid rgba(33,74,65,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(33,74,65,.025), 0 0 0 110px rgba(33,74,65,.014); }
.teachers-section::after { content: "×  +  ×"; position: absolute; left: 38%; top: 32px; color: rgba(33,74,65,.14); font: 600 17px var(--display); letter-spacing: 17px; transform: rotate(4deg); }
.courses-section::before { content: ""; position: absolute; width: 330px; height: 330px; left: -170px; bottom: -155px; border: 1px dashed rgba(33,74,65,.22); border-radius: 50%; box-shadow: 0 0 0 46px rgba(33,74,65,.035), 0 0 0 92px rgba(33,74,65,.02); }
.courses-section::after { content: "x²   +   π   ="; position: absolute; right: 45px; top: 34px; color: rgba(33,74,65,.2); font: italic 19px Georgia, serif; transform: rotate(-4deg); }
.teachers-section > *, .courses-section > * { position: relative; z-index: 2; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 38px; padding-inline: 3px; }
.teachers-section .section-heading { justify-content: center; margin-bottom: 34px; text-align: center; }
.teachers-section .section-heading h2 { font-size: clamp(38px, 4vw, 52px); }
.section-heading h2 { margin: 0; font-size: clamp(45px, 5vw, 64px); font-weight: 620; line-height: 1; letter-spacing: -.05em; }
.section-heading > p { max-width: 430px; margin: 0; color: #3f5048; font-size: 15px; line-height: 1.6; }
.section-heading-light .section-kicker { color: #9fc0b2; }
.section-heading-light > p { color: var(--muted); }

.teacher-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.teacher-card { position: relative; min-height: 400px; overflow: hidden; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--green-dark), var(--green)); box-shadow: 0 22px 50px rgba(33,74,65,.14); }
.teacher-card::before { content: ""; position: absolute; width: 330px; height: 330px; right: -105px; top: -115px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.025); }
.teacher-photo { position: absolute; z-index: 1; right: 0; bottom: 0; width: 50%; height: 100%; overflow: hidden; background: radial-gradient(circle at 58% 40%, rgba(207,224,214,.22), transparent 64%); }
.teacher-photo::before { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--green) 0, rgba(45,105,91,.42) 9%, transparent 32%), linear-gradient(0deg, rgba(23,71,61,.20), transparent 38%); }
.teacher-photo img { position: absolute; right: -1%; bottom: -1%; width: auto; max-width: none; height: 96%; display: block; object-fit: contain; object-position: bottom center; filter: saturate(.84) contrast(.96) brightness(.96); }
.teacher-card-davydov .teacher-photo img,
.teacher-card-knyazev .teacher-photo img { right: -1%; height: 96%; }
.teacher-body { position: relative; z-index: 2; width: 60%; min-height: 400px; display: flex; flex-direction: column; padding: 40px 8px 30px 38px; }
.teacher-subject { margin: 0 0 12px; color: #c6ddd3; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.teacher-body h3 { margin: 0; font-size: clamp(25px, 2.35vw, 32px); font-weight: 650; line-height: 1.05; letter-spacing: -.04em; }
.teacher-facts { display: grid; gap: 7px; margin: 22px 0 24px; padding: 0; list-style: none; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.4; }
.teacher-facts li::before { content: "—"; margin-right: 7px; color: #c6ddd3; }
.teacher-awards { margin-top: auto; }
.teacher-awards-label { margin: 0 0 8px; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.award-list { display: flex; align-items: center; gap: 8px; }
.award-badge { position: relative; width: 35px; height: 35px; display: inline-grid; place-items: center; outline: none; border: 3px solid rgba(255,255,255,.82); border-radius: 50%; color: var(--green-dark); background: #fff; box-shadow: 0 5px 13px rgba(13,42,35,.16); cursor: help; }
.award-emblem { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--yellow); font-size: 11px; font-weight: 900; }
.award-info { position: absolute; right: -5px; top: -5px; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #102d26; font: 800 8px/1 Arial, sans-serif; }
.award-tooltip { position: absolute; z-index: 10; left: 50%; bottom: calc(100% + 12px); width: max-content; max-width: 220px; display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; color: var(--ink); background: #fff; box-shadow: 0 12px 28px rgba(10,38,31,.24); font-size: 10px; line-height: 1.3; opacity: 0; visibility: hidden; transform: translate(-50%,5px); transition: opacity .16s, transform .16s, visibility .16s; pointer-events: none; }
.award-tooltip::after { content: ""; position: absolute; left: 50%; top: 100%; border: 6px solid transparent; border-top-color: #fff; transform: translateX(-50%); }
.award-tooltip strong { font-size: 11px; }
.award-tooltip span { color: #52625b; }
.award-badge:hover .award-tooltip,
.award-badge:focus-visible .award-tooltip { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.teacher-more { width: max-content; min-height: 40px; display: inline-flex; align-items: center; gap: 24px; margin-top: 20px; padding: 0 14px; border: 1px solid rgba(255,255,255,.48); border-radius: 9px; background: rgba(255,255,255,.09); font-size: 12px; font-weight: 800; text-decoration: none; transition: background .18s, color .18s; }
.teacher-more:hover { color: var(--green-dark); background: #fff; }

.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.course-card { min-height: 490px; display: flex; flex-direction: column; padding: 28px; border: 1px solid #bdc8c0; border-radius: 20px; background: var(--surface); }
.course-top { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.course-code { margin: 42px 0 29px; color: var(--green); font: 620 clamp(58px, 7vw, 88px)/.85 var(--display); letter-spacing: -.07em; }
.course-card h3 { max-width: 470px; margin-bottom: 13px; font-size: 28px; font-weight: 620; line-height: 1.08; letter-spacing: -.04em; }
.course-card > p { max-width: 520px; margin: 0; color: #45554e; font-size: 14px; line-height: 1.62; }
.course-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0; padding: 0; list-style: none; }
.course-card li { padding: 7px 10px; border: 1px solid #c4ccc6; border-radius: 999px; font-size: 10px; font-weight: 700; }
.course-action { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); }
.course-action > span { color: var(--muted); font-size: 11px; font-weight: 650; }
.course-action a { font-size: 12px; font-weight: 800; text-decoration: none; }
.course-action i { margin-left: 13px; font-style: normal; }

.help-section { min-height: 260px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; margin-top: 28px; padding: 48px 62px; border-radius: 34px; color: #fff; background: var(--green); }
.help-section .section-kicker { color: #c8ded4; }
.help-section h2 { margin: 0; font-size: 46px; font-weight: 620; letter-spacing: -.05em; }
.help-section p:last-child { margin: 12px 0 0; color: #d5e4dd; font-size: 15px; }
.button-light { color: var(--green-dark); background: var(--surface); }

.footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; border-top: 1px solid var(--line); }
.footer p, .footer nav a { color: var(--muted); font-size: 11px; }
.footer nav { justify-self: end; display: flex; gap: 18px; }
.footer nav a { text-decoration: none; }

@media (max-width: 1000px) {
  .statement-card { min-height: 540px; }
  .teacher-row { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root { --shell: calc(100% - 28px); }
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav, .account-link { display: none; }
  .menu-button { width: 40px; height: 40px; display: grid; place-content: center; gap: 6px; padding: 0; cursor: pointer; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .menu-button i { width: 16px; height: 1px; background: var(--ink); transition: transform .18s; }
  .menu-button[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu { position: absolute; top: 69px; left: 0; right: 0; display: none; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 18px 45px rgba(23,34,30,.12); }
  .mobile-menu.open { display: grid; }
  .mobile-menu a { padding: 12px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; text-decoration: none; }
  .mobile-menu a:last-child { border: 0; }
  .welcome, .teachers-section, .courses-section, .help-section { border-radius: 24px; }
  .welcome { min-height: 520px; }
  .statement-card { min-height: 520px; border-radius: 24px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .teacher-row, .course-grid { grid-template-columns: 1fr; }
  .teacher-card { min-height: 590px; }
  .teacher-body { width: 100%; min-height: 590px; padding: 34px 28px 295px; }
  .teacher-photo { width: 100%; height: 300px; }
  .teacher-photo img, .teacher-card-davydov .teacher-photo img, .teacher-card-knyazev .teacher-photo img { right: 50%; height: 100%; transform: translateX(50%); }
  .help-section { grid-template-columns: 1fr; padding: 40px; }
  .help-section .button { width: max-content; }
  .footer { grid-template-columns: 1fr auto; }
  .footer nav { display: none; }
}

@media (max-width: 500px) {
  .brand-copy small { display: none; }
  .welcome-actions { align-items: flex-start; flex-direction: column; }
  .welcome-text { font-size: 16px; }
  .statement-card { min-height: 430px; padding: 28px 14px; }
  .statement-text { font-size: clamp(27px, 8.5vw, 40px); }
  .teachers-section, .courses-section { padding: 55px 20px; }
  .teachers-section { padding-block: 42px; }
  .teacher-card { min-height: 610px; }
  .teacher-body { min-height: 610px; padding: 29px 22px 290px; }
  .teacher-photo { height: 285px; }
  .course-card { min-height: 470px; padding: 23px; }
  .course-top, .course-action { align-items: flex-start; flex-direction: column; }
  .help-section { padding: 34px 24px; }
  .footer { grid-template-columns: 1fr; padding-block: 34px; }
  .footer p { margin: 0; }
}

/* Full-screen statement and the course-attention map. */
html { scroll-padding-top: 100px; }
body { padding-top: 82px; }
.site-header { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; }
.welcome { width: 100%; min-height: calc(100vh - 82px); min-height: calc(100svh - 82px); margin: 0; }
.statement-card { min-height: calc(100vh - 82px); min-height: calc(100svh - 82px); border-radius: 0; }
.statement-card::before { width: 470px; height: 470px; right: -100px; top: -160px; }
.statement-card::after { width: 150px; height: 22px; left: -25px; bottom: 72px; }
.statement-text { max-width: 1500px; font-size: clamp(48px, 7vw, 106px); }
.statement-text span { margin-top: 11px; padding: 8px 16px 10px; box-shadow: 10px 10px 0 rgba(229,154,115,.85); }

.learning-map { position: relative; overflow: hidden; margin-top: 28px; padding: 88px 52px 100px; border-radius: 34px; background: var(--mint); }
.learning-map::before { content: ""; position: absolute; width: 390px; height: 390px; right: -190px; top: -170px; border: 1px dashed rgba(33,74,65,.2); border-radius: 50%; box-shadow: 0 0 0 52px rgba(33,74,65,.035), 0 0 0 104px rgba(33,74,65,.02); }
.learning-map::after { content: "+  ×  +"; position: absolute; left: 42px; bottom: 35px; color: rgba(33,74,65,.22); font: 600 17px var(--display); letter-spacing: 16px; transform: rotate(-5deg); }
.map-heading { position: relative; z-index: 2; max-width: 790px; margin-bottom: 72px; }
.map-heading h2 { margin: 0; font-size: clamp(47px, 5.7vw, 72px); font-weight: 620; line-height: 1; letter-spacing: -.055em; }
.map-heading > p:last-child { max-width: 660px; margin: 22px 0 0; color: #34463f; font-size: 17px; line-height: 1.6; }
.map-route { position: relative; z-index: 2; max-width: 1030px; margin-inline: auto; }
.map-route::before { content: ""; position: absolute; top: 34px; bottom: 34px; left: 50%; width: 2px; background: rgba(33,74,65,.34); transform: translateX(-50%); }
.map-step { position: relative; width: calc(50% - 58px); min-height: 190px; margin: 0 0 34px; padding: 26px; border: 1px solid rgba(33,74,65,.19); border-radius: 18px; background: var(--surface); box-shadow: 0 15px 35px rgba(33,74,65,.07); }
.map-step:nth-child(even) { margin-left: auto; }
.map-step::before { content: ""; position: absolute; top: 48px; right: -58px; width: 58px; height: 1px; background: rgba(33,74,65,.34); }
.map-step:nth-child(even)::before { right: auto; left: -58px; }
.map-step::after { content: ""; position: absolute; z-index: 3; top: 40px; right: -67px; width: 16px; height: 16px; border: 4px solid var(--mint); border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 1px rgba(33,74,65,.32); }
.map-step:nth-child(even)::after { right: auto; left: -67px; }
.map-number { display: inline-grid; place-items: center; min-width: 34px; height: 27px; padding-inline: 8px; border-radius: 999px; color: #fff; background: var(--green); font-size: 9px; font-weight: 800; }
.map-step h3 { margin: 32px 0 11px; font-size: 25px; font-weight: 620; line-height: 1.12; letter-spacing: -.04em; }
.map-step p { margin: 0; color: #46554f; font-size: 14px; line-height: 1.65; }

@media (max-width: 780px) {
  body { padding-top: 82px; }
  .statement-card { padding: 30px 16px; }
  .statement-text { font-size: clamp(34px, 9vw, 58px); }
  .learning-map { padding: 68px 24px 78px; border-radius: 24px; }
  .map-heading { margin-bottom: 52px; }
  .map-heading > p:last-child { font-size: 15px; }
  .map-route::before { left: 17px; transform: none; }
  .map-step, .map-step:nth-child(even) { width: calc(100% - 51px); margin: 0 0 24px 51px; }
  .map-step::before, .map-step:nth-child(even)::before { right: auto; left: -34px; width: 34px; }
  .map-step::after, .map-step:nth-child(even)::after { right: auto; left: -43px; }
}

@media (max-width: 500px) {
  .statement-text { font-size: clamp(28px, 8.8vw, 42px); }
  .statement-text span { margin-top: 8px; padding: 7px 9px 8px; box-shadow: 6px 6px 0 rgba(229,154,115,.85); }
  .learning-map { width: 100%; margin-top: 16px; border-radius: 0; }
  .map-heading h2 { font-size: 44px; }
  .map-step { min-height: auto; padding: 22px; }
  .map-step h3 { margin-top: 25px; font-size: 22px; }
}

/* More compact headline and a genuinely horizontal course map. */
.statement-text { max-width: 1180px; font-size: clamp(38px, 5vw, 72px); }
.statement-text span { margin-top: 8px; padding: 7px 13px 8px; box-shadow: 7px 7px 0 rgba(229,154,115,.85); }

.learning-map { padding: 62px 44px 68px; }
.map-heading { max-width: 720px; margin-bottom: 40px; }
.map-heading h2 { font-size: clamp(42px, 4.8vw, 58px); }
.map-route { max-width: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-top: 50px; }
.map-route::before { top: 20px; right: 7%; bottom: auto; left: 7%; width: auto; height: 2px; transform: none; }
.map-step,
.map-step:nth-child(even) { width: auto; min-height: 174px; margin: 0; padding: 24px 30px; display: flex; align-items: flex-start; justify-content: center; }
.map-step::before,
.map-step:nth-child(even)::before { display: none; }
.map-step::after,
.map-step:nth-child(even)::after { top: -40px; right: auto; left: 50%; transform: translateX(-50%); }
.map-step h3 { max-width: 235px; margin: 0; color: var(--ink); font-size: 23px; line-height: 1.1; }

@media (max-width: 1050px) {
  .map-route { grid-template-columns: repeat(4, 235px); overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .map-route::before { right: auto; left: 0; width: 982px; }
  .map-step,
  .map-step:nth-child(even) { scroll-snap-align: start; }
}

@media (max-width: 780px) {
  .statement-text { max-width: 650px; font-size: clamp(31px, 7.5vw, 50px); }
  .learning-map { padding: 56px 22px 62px; }
  .map-heading { margin-bottom: 38px; }
  .map-route { grid-template-columns: repeat(4, 235px); padding-top: 48px; }
  .map-route::before { top: 18px; left: 0; width: 982px; }
  .map-step,
  .map-step:nth-child(even) { width: auto; min-height: 174px; margin: 0; padding: 22px; }
  .map-step::after,
  .map-step:nth-child(even)::after { top: -38px; right: auto; left: 50%; }
}

@media (max-width: 500px) {
  .statement-text { font-size: clamp(25px, 7.8vw, 36px); }
  .statement-text span { margin-top: 6px; padding: 6px 8px 7px; box-shadow: 5px 5px 0 rgba(229,154,115,.85); }
  .learning-map { width: 100%; padding: 48px 18px 54px; }
  .map-heading h2 { font-size: 38px; }
  .map-heading > p:last-child { font-size: 14px; }
}

.hero-sticker { position: absolute; z-index: 1; display: grid; place-items: center; user-select: none; }
.sticker-trophy { width: 82px; height: 82px; left: 7%; top: 11%; border: 1px solid rgba(23,34,30,.12); border-radius: 18px; background: var(--surface); box-shadow: 7px 7px 0 var(--warm); font-size: 43px; transform: rotate(-8deg); }
.sticker-score { width: 92px; height: 62px; right: 8%; top: 13%; color: var(--green-dark); background: var(--yellow); box-shadow: 7px 7px 0 rgba(251,250,246,.78); font: 700 25px var(--display); transform: rotate(7deg); }
.sticker-math { width: 67px; height: 67px; left: 10%; bottom: 14%; border-radius: 50%; color: var(--surface); border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); font: italic 27px Georgia, serif; transform: rotate(9deg); }
.hero-more { position: absolute; z-index: 5; left: 50%; bottom: 32px; min-height: 44px; display: inline-flex; align-items: center; gap: 22px; padding: 0 17px; border: 1px solid rgba(255,255,255,.48); border-radius: 999px; color: #fff; background: rgba(255,255,255,.06); font-size: 12px; font-weight: 800; text-decoration: none; transform: translateX(-50%); transition: background .18s, transform .18s; }
.hero-more:hover { background: rgba(255,255,255,.14); transform: translateX(-50%) translateY(-2px); }
.hero-more span { font-size: 17px; }

@media (max-width: 780px) {
  .sticker-trophy { width: 65px; height: 65px; left: 5%; top: 9%; font-size: 34px; }
  .sticker-score { width: 73px; height: 50px; right: 5%; top: 11%; font-size: 20px; }
  .sticker-math { left: 6%; bottom: 13%; }
}

@media (max-width: 500px) {
  .sticker-trophy { width: 52px; height: 52px; top: 7%; font-size: 27px; border-radius: 13px; box-shadow: 5px 5px 0 var(--warm); }
  .sticker-score { width: 61px; height: 42px; top: 8%; font-size: 17px; box-shadow: 5px 5px 0 rgba(251,250,246,.78); }
  .sticker-math { width: 48px; height: 48px; bottom: 12%; font-size: 21px; }
  .hero-more { bottom: 22px; }
}

/* Compact benefits and a direct format comparison. */
.learning-map { padding: 52px 44px 56px; }
.learning-map::before,
.learning-map::after,
.map-route::before,
.map-step::before,
.map-step::after { display: none; }
.map-heading { margin-bottom: 30px; }
.map-heading h2 { max-width: 760px; font-size: clamp(40px, 4.4vw, 56px); }
.map-route { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; overflow: visible; }
.map-step,
.map-step:nth-child(even) { min-height: 132px; padding: 25px 27px; border-color: rgba(33,74,65,.13); border-radius: 17px; box-shadow: none; }
.map-step h3 { max-width: 250px; font-size: 21px; line-height: 1.12; }

.comparison-section { margin-top: 28px; padding: 64px 44px 70px; border: 1px solid var(--line); border-radius: 34px; background: #f3f0e9; }
.comparison-heading { max-width: 900px; margin-bottom: 35px; }
.comparison-heading h2 { margin: 0; font-size: clamp(40px, 4.8vw, 62px); font-weight: 620; line-height: 1; letter-spacing: -.055em; }
.comparison-table-wrap { overflow-x: auto; padding-bottom: 4px; }
.comparison-table { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 9px; table-layout: fixed; }
.comparison-table th,
.comparison-table td { text-align: left; vertical-align: top; }
.comparison-table thead th { height: 92px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.comparison-table thead .comparison-criterion { width: 14%; padding-left: 8px; border-color: transparent; background: transparent; color: #43524c; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; vertical-align: bottom; }
.comparison-table thead strong { display: block; font-size: 19px; line-height: 1.1; }
.comparison-table thead span { display: inline-block; margin-top: 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.comparison-table tbody th { width: 14%; padding: 23px 8px; color: var(--ink); font-size: 13px; letter-spacing: .01em; }
.comparison-table td { height: 128px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.comparison-table td strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.2; }
.comparison-table td span { display: block; margin-top: 9px; color: #42524b; font-size: 13px; line-height: 1.45; }
.comparison-table .comparison-best { border-color: var(--green); background: #dcebe3; }
.comparison-table thead .comparison-best { color: #fff; background: var(--green-dark); }
.comparison-table td.comparison-best strong { color: var(--green-dark); }
.comparison-table .comparison-negative { color: #a15039; }
.comparison-result td { height: auto; padding-block: 19px; }
.comparison-result td:not(.comparison-best) { background: #ebe7df; }

@media (max-width: 1050px) {
  .map-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .learning-map { padding: 48px 24px 52px; }
  .map-heading { margin-bottom: 25px; }
  .map-route { grid-template-columns: 1fr 1fr; }
  .comparison-section { padding: 52px 24px 58px; border-radius: 24px; }
  .comparison-heading { margin-bottom: 27px; }
}

@media (max-width: 560px) {
  .map-route { grid-template-columns: 1fr; }
  .map-step,
  .map-step:nth-child(even) { min-height: 104px; }
  .comparison-section { width: 100%; border-radius: 0; }
}

/* Restore the visual route, keeping the benefit cards fitted to their copy. */
.learning-map { padding: 58px 44px 66px; }
.learning-map::before,
.learning-map::after { display: block; }
.map-heading { margin-bottom: 38px; }
.map-route { align-items: stretch; padding-top: 50px; }
.map-route::before { display: block; }
.map-step,
.map-step:nth-child(even) { min-height: 0; padding: 21px 26px; justify-content: center; border-color: rgba(33,74,65,.17); box-shadow: 0 13px 28px rgba(33,74,65,.055); }
.map-step::before { display: none; }
.map-step::after,
.map-step:nth-child(even)::after { display: block; top: -39px; right: auto; left: 50%; transform: translateX(-50%); }
.map-step h3 { max-width: 250px; }

@media (max-width: 1050px) {
  .map-route { padding-top: 0; }
  .map-route::before,
  .map-step::after,
  .map-step:nth-child(even)::after { display: none; }
}

@media (max-width: 560px) {
  .map-step,
  .map-step:nth-child(even) { min-height: 0; padding-block: 22px; }
}

/* Benefits in the clear icon-led layout of the selected reference. */
.learning-map { padding: 62px 50px 68px; }
.learning-map::before { width: 310px; height: 310px; right: -155px; top: -155px; opacity: .72; }
.learning-map::after { display: none; }
.map-heading { max-width: none; margin: 0 0 54px; text-align: center; }
.map-heading h2 { max-width: none; font-size: clamp(38px, 4vw, 54px); }
.benefits-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.benefit-item { min-width: 0; padding: 4px 30px 8px; border-right: 1px solid rgba(33,74,65,.16); }
.benefit-item:first-child { padding-left: 6px; }
.benefit-item:last-child { padding-right: 6px; border-right: 0; }
.benefit-item h3 { max-width: 235px; margin: 25px 0 0; color: var(--ink); font-size: 20px; font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
.benefit-icon { position: relative; width: 76px; height: 62px; display: flex; align-items: center; color: var(--green-dark); }

.benefit-icon-group { width: 122px; gap: 12px; }
.benefit-icon-group strong { padding: 7px 9px; border: 1px solid rgba(33,74,65,.22); border-radius: 8px; background: rgba(251,250,246,.72); font-size: 13px; letter-spacing: -.02em; }
.people-symbol { position: relative; width: 53px; height: 47px; display: block; }
.people-symbol i { position: absolute; bottom: 3px; width: 23px; height: 18px; border: 3px solid currentColor; border-radius: 14px 14px 7px 7px; background: var(--mint); }
.people-symbol i::before { content: ""; position: absolute; left: 50%; top: -17px; width: 13px; height: 13px; border: 3px solid currentColor; border-radius: 50%; background: var(--mint); transform: translateX(-50%); }
.people-symbol i:nth-child(1) { left: 0; transform: scale(.82); transform-origin: bottom left; }
.people-symbol i:nth-child(2) { z-index: 2; left: 15px; }
.people-symbol i:nth-child(3) { right: 0; transform: scale(.82); transform-origin: bottom right; }

.video-symbol { position: relative; width: 61px; height: 42px; display: block; border: 3px solid currentColor; border-radius: 8px; background: rgba(251,250,246,.58); }
.video-symbol::before { content: ""; position: absolute; left: 24px; top: 11px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid currentColor; }
.video-symbol::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -10px; height: 3px; border-radius: 999px; background: currentColor; }

.practice-symbol { position: relative; width: 48px; height: 58px; display: block; border: 3px solid currentColor; border-radius: 7px; background: rgba(251,250,246,.58); }
.practice-symbol::before { content: ""; position: absolute; left: 10px; top: -7px; width: 22px; height: 9px; border: 3px solid currentColor; border-radius: 5px; background: var(--mint); }
.practice-symbol i { position: absolute; left: 11px; width: 8px; height: 5px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); }
.practice-symbol i::after { content: ""; position: absolute; left: 13px; top: 5px; width: 15px; height: 2px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.practice-symbol i:nth-child(1) { top: 15px; }
.practice-symbol i:nth-child(2) { top: 28px; }
.practice-symbol i:nth-child(3) { top: 41px; }

.chat-symbol { position: relative; width: 61px; height: 48px; display: block; border: 3px solid currentColor; border-radius: 13px; background: rgba(251,250,246,.58); }
.chat-symbol::after { content: ""; position: absolute; left: 9px; bottom: -10px; width: 16px; height: 16px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; background: var(--mint); transform: skewY(-32deg); }
.chat-symbol i { position: absolute; top: 20px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chat-symbol i:first-child { left: 18px; box-shadow: 10px 0 currentColor, 20px 0 currentColor; }

@media (max-width: 1000px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 34px 0; }
  .benefit-item:nth-child(2) { border-right: 0; }
}

@media (max-width: 650px) {
  .learning-map { padding: 48px 24px 54px; }
  .map-heading { margin-bottom: 38px; text-align: left; }
  .benefits-grid { grid-template-columns: 1fr; gap: 0; }
  .benefit-item,
  .benefit-item:first-child,
  .benefit-item:last-child { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 15px; padding: 22px 0; border-right: 0; border-bottom: 1px solid rgba(33,74,65,.16); }
  .benefit-item:last-child { border-bottom: 0; }
  .benefit-item h3 { margin: 0; font-size: 19px; }
}

/* Final alignment pass for the benefits block. */
.learning-map { padding: 50px 44px 54px; }
.learning-map::before { opacity: .42; }
.map-heading { max-width: 820px; margin: 0 0 28px; text-align: left; }
.map-heading h2 { font-size: clamp(36px, 3.6vw, 48px); font-weight: 600; line-height: 1.02; letter-spacing: -.048em; }
.benefits-grid { overflow: hidden; border: 1px solid rgba(33,74,65,.14); border-radius: 23px; background: rgba(251,250,246,.38); }
.benefit-item { min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 27px 30px; border-color: rgba(33,74,65,.13); }
.benefit-item:first-child { padding-left: 30px; }
.benefit-item:last-child { padding-right: 30px; }
.benefit-icon { flex: 0 0 62px; height: 62px; }
.benefit-item h3 { min-height: 69px; display: flex; align-items: flex-start; margin: 19px 0 0; font-size: 19px; line-height: 1.18; }

@media (max-width: 1000px) {
  .benefits-grid { gap: 0; }
  .benefit-item:nth-child(2) { border-right: 0; }
  .benefit-item:nth-child(-n+2) { border-bottom: 1px solid rgba(33,74,65,.13); }
}

@media (max-width: 650px) {
  .learning-map { padding: 42px 22px 46px; }
  .map-heading { margin-bottom: 24px; }
  .map-heading h2 { font-size: clamp(32px, 9vw, 42px); }
  .benefits-grid { border-radius: 18px; }
  .benefit-item,
  .benefit-item:first-child,
  .benefit-item:last-child { min-height: 0; display: grid; grid-template-columns: 112px 1fr; padding: 22px; border-right: 0; border-bottom: 1px solid rgba(33,74,65,.13); }
  .benefit-item:nth-child(2) { border-bottom: 1px solid rgba(33,74,65,.13); }
  .benefit-item:last-child { border-bottom: 0; }
  .benefit-item h3 { min-height: 0; margin: 0; align-items: center; }
}


/* Benefits block — slightly tighter to reduce overall height. */
.learning-map {
  padding: 44px 48px 46px;
  background: var(--mint);
}
.learning-map::before,
.learning-map::after {
  display: none;
}
.map-heading {
  max-width: none;
  margin: 0 0 28px;
  text-align: center;
}
.map-heading h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 20px;
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.map-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #214a41;
}
.benefits-grid {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.benefit-item,
.benefit-item:first-child,
.benefit-item:last-child {
  min-height: 160px;
  padding: 18px 32px 14px;
  background: transparent;
  border-right: 1px solid rgba(33,74,65,.16);
}
.benefit-item:last-child {
  border-right: 0;
}
.benefit-icon {
  flex: 0 0 54px;
  height: 54px;
}
.benefit-icon-group {
  width: 76px;
  gap: 0;
}
.benefit-icon-group strong {
  display: none;
}
.benefit-item h3 {
  min-height: 0;
  max-width: 235px;
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.22;
}

/* Stable chat icon: rounded bubble, three dots and a simple tail. */
.chat-symbol {
  position: relative;
  width: 64px;
  height: 46px;
  display: block;
  border: 3px solid currentColor;
  border-radius: 13px;
  background: transparent;
}
.chat-symbol::before {
  content: "";
  position: absolute;
  left: 10px;
  bottom: -10px;
  width: 16px;
  height: 16px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  background: var(--mint);
  transform: skewY(-34deg);
}
.chat-symbol::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 19px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 11px 0 currentColor, 22px 0 currentColor;
}
.chat-symbol i {
  display: none;
}

@media (max-width: 1000px) {
  .benefit-item:nth-child(2) {
    border-right: 0;
  }
  .benefit-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(33,74,65,.16);
  }
}

@media (max-width: 650px) {
  .learning-map {
    padding: 36px 24px 38px;
  }
  .map-heading {
    margin-bottom: 20px;
    text-align: center;
  }
  .map-heading h2 {
    padding-bottom: 20px;
    font-size: clamp(30px, 8vw, 36px);
  }
  .benefit-item,
  .benefit-item:first-child,
  .benefit-item:last-child {
    min-height: 0;
    grid-template-columns: 92px 1fr;
    padding: 18px 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(33,74,65,.16);
  }
  .benefit-item:last-child {
    border-bottom: 0;
  }
  .benefit-item h3 {
    max-width: none;
    margin: 0;
    font-size: 18px;
  }
}


.learning-divider {
  display: none;
}


/* Teacher cards final layout */
.teachers-section {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 26px;
  padding-right: 26px;
  background: #e4eee9;
}

.teachers-section .section-heading h2 {
  color: var(--ink);
}

.teacher-carousel {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}

.teacher-card {
  background: var(--green-dark);
  border: none;
  color: white;
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
}

.teacher-body {
  width: 55%;
  min-height: 430px;
  padding: 46px 30px 42px 60px;
}

.teacher-subject {
  color: #dbe9e2;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.teacher-body h3 {
  color: white;
  font-size: clamp(30px, 3vw, 42px);
  max-width: 420px;
  margin-top: 12px;
}

.teacher-facts {
  color: rgba(255,255,255,.92);
  margin-top: 26px;
  font-size: 16px;
}

.teacher-facts li::before {
  color: rgba(255,255,255,.8);
}

.teacher-more {
  border-color: rgba(255,255,255,.45);
  color: white;
  margin-top: 70px;
}

.teacher-more:hover {
  background: white;
  color: var(--green-dark);
}

.teacher-photo {
  width: 45%;
  background: transparent;
}

.teacher-photo img {
  height: 100%;
  max-height: 430px;
}

.teacher-carousel-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.teacher-nav {
  pointer-events: auto;
  background: white;
  color: var(--green-dark);
  border: 1px solid rgba(0,0,0,.12);
}

.teacher-nav[data-teacher-prev] {
  left: -8px;
}

.teacher-nav[data-teacher-next] {
  right: -8px;
}

@media (max-width: 780px) {
  .teachers-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .teacher-body {
    padding: 32px 24px 280px;
  }
}


/* Teachers restore: original card style, only wider + smaller typography */
.teachers-section {
  margin-left: 0;
  margin-right: 0;
  padding-left: 34px;
  padding-right: 34px;
  background: #e4eee9;
}

.teacher-carousel {
  padding: 0;
  border: 0;
  background: transparent;
}

.teacher-card {
  min-height: 400px;
  border-radius: 28px;
  overflow: hidden;
}

.teacher-track > .teacher-card {
  flex-basis: calc((100% - 22px) / 2);
}

.teacher-body {
  width: 52%;
  min-height: 400px;
  padding: 34px 20px 34px 38px;
}

.teacher-body h3 {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
  max-width: 340px;
}

.teacher-facts {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.45;
}

.teacher-more {
  margin-top: 42px;
}

.teacher-photo {
  width: 48%;
}

.teacher-photo img {
  height: 92%;
}

.teacher-carousel-controls {
  inset: 0;
}

.teacher-nav[data-teacher-prev] {
  left: -12px;
}

.teacher-nav[data-teacher-next] {
  right: -12px;
}


/* Final teachers section cleanup: wider carousel, no mint backdrop, soft edge fade */
.teachers-section.shell {
  width: min(1510px, calc(100% - 28px));
  max-width: none;
  margin-top: 28px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.teachers-section::before,
.teachers-section::after {
  display: none;
}
.teachers-section .section-heading {
  margin-bottom: 20px;
}
.teacher-carousel {
  position: relative;
  padding: 0;
  background: transparent;
}
.teacher-viewport {
  position: relative;
  overflow: hidden;
}
.teacher-viewport::before,
.teacher-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 62px;
  z-index: 5;
  pointer-events: none;
}
.teacher-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--page) 18%, rgba(241,240,234,0) 100%);
}
.teacher-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--page) 18%, rgba(241,240,234,0) 100%);
}
.teacher-track {
  gap: 22px;
}
.teacher-track > .teacher-card {
  flex-basis: calc((100% - 22px - 124px) / 2);
}
.teacher-card {
  min-height: 400px;
  border-radius: 28px;
}
.teacher-body {
  width: 52%;
  min-height: 400px;
  padding: 34px 18px 34px 40px;
}
.teacher-body h3 {
  font-size: clamp(28px, 2.45vw, 38px);
  max-width: 340px;
}
.teacher-facts {
  margin-top: 22px;
  font-size: 15px;
}
.teacher-photo {
  width: 48%;
}
.teacher-photo img,
.teacher-card-davydov .teacher-photo img,
.teacher-card-knyazev .teacher-photo img {
  height: 94%;
}
.teacher-carousel-controls {
  inset: 0;
}
.teacher-nav[data-teacher-prev] {
  left: 10px;
}
.teacher-nav[data-teacher-next] {
  right: 10px;
}
@media (max-width: 1000px) {
  .teachers-section.shell {
    width: calc(100% - 20px);
  }
  .teacher-track > .teacher-card {
    flex-basis: calc((100% - 18px - 84px) / 2);
  }
  .teacher-viewport::before,
  .teacher-viewport::after {
    width: 40px;
  }
}
@media (max-width: 780px) {
  .teachers-section.shell {
    width: calc(100% - 16px);
  }
  .teachers-section .section-heading {
    margin-bottom: 16px;
  }
  .teacher-track > .teacher-card {
    flex-basis: calc(100% - 34px);
  }
  .teacher-viewport::before,
  .teacher-viewport::after {
    width: 22px;
  }
}


/* Teachers carousel final fix: stretch the section, keep card size, remove backdrop */
.teachers-section.shell {
  width: min(1520px, calc(100% - 36px));
  max-width: none;
  margin-inline: auto;
  margin-top: 28px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.teachers-section::before,
.teachers-section::after {
  display: none;
}
.teachers-section .section-heading {
  margin-bottom: 22px;
  justify-content: center;
  text-align: center;
}
.teachers-section .section-heading h2 {
  font-size: clamp(42px, 4.4vw, 64px);
}
.teacher-carousel {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
}
.teacher-viewport {
  position: relative;
  overflow: hidden;
}
.teacher-viewport::before,
.teacher-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 4;
  pointer-events: none;
}
.teacher-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--page) 10%, rgba(241,240,234,.78) 36%, rgba(241,240,234,0) 100%);
}
.teacher-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--page) 10%, rgba(241,240,234,.78) 36%, rgba(241,240,234,0) 100%);
}
.teacher-track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  will-change: transform;
  transition: transform .55s ease;
}
.teacher-track > .teacher-card {
  flex: 0 0 calc((100% - 22px - 124px) / 2);
}
.teacher-card {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  box-shadow: 0 22px 50px rgba(33,74,65,.14);
}
.teacher-card::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -105px;
  top: -115px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255,255,255,.025);
}
.teacher-body {
  width: 52%;
  min-height: 400px;
  padding: 34px 18px 34px 40px;
}
.teacher-subject {
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.teacher-body h3 {
  max-width: 340px;
  margin-top: 14px;
  color: #fff;
  font-size: clamp(28px, 2.45vw, 38px);
  line-height: 1.05;
}
.teacher-facts {
  margin-top: 22px;
  color: rgba(255,255,255,.92);
  font-size: 15px;
  line-height: 1.45;
}
.teacher-facts li::before {
  color: rgba(255,255,255,.8);
}
.teacher-more {
  margin-top: 42px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 10px;
  background: rgba(255,255,255,.09);
  color: #fff;
}
.teacher-more:hover {
  background: #fff;
  color: var(--green-dark);
}
.teacher-photo {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 58% 40%, rgba(207,224,214,.22), transparent 64%);
}
.teacher-photo::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--green) 0, rgba(45,105,91,.42) 9%, transparent 32%), linear-gradient(0deg, rgba(23,71,61,.20), transparent 38%);
}
.teacher-photo img,
.teacher-card-davydov .teacher-photo img,
.teacher-card-knyazev .teacher-photo img {
  position: absolute;
  right: 50%;
  bottom: -1%;
  width: auto;
  max-width: none;
  height: 94%;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  transform: translateX(50%);
  filter: saturate(.84) contrast(.96) brightness(.96);
}
.teacher-carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.teacher-nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(20,56,49,.66);
  box-shadow: 0 10px 24px rgba(15,42,36,.20);
  transform: translateY(-50%);
  pointer-events: auto;
  backdrop-filter: blur(6px);
}
.teacher-nav[data-teacher-prev] { left: 16px; }
.teacher-nav[data-teacher-next] { right: 16px; }
.teacher-nav:hover {
  color: #fff;
  background: rgba(20,56,49,.84);
  border-color: rgba(255,255,255,.46);
  transform: translateY(-50%) scale(1.03);
}
@media (max-width: 1000px) {
  .teachers-section.shell {
    width: calc(100% - 24px);
  }
  .teacher-viewport::before,
  .teacher-viewport::after {
    width: 46px;
  }
  .teacher-track {
    gap: 18px;
  }
  .teacher-track > .teacher-card {
    flex-basis: calc((100% - 18px - 84px) / 2);
  }
  .teacher-body {
    padding-inline: 34px 16px;
  }
}
@media (max-width: 780px) {
  .teachers-section.shell {
    width: calc(100% - 16px);
  }
  .teachers-section .section-heading {
    margin-bottom: 16px;
  }
  .teacher-viewport::before,
  .teacher-viewport::after {
    width: 24px;
  }
  .teacher-track {
    gap: 16px;
  }
  .teacher-track > .teacher-card {
    flex-basis: calc(100% - 34px);
  }
  .teacher-card {
    min-height: 560px;
  }
  .teacher-body {
    width: 100%;
    min-height: 560px;
    padding: 28px 22px 292px;
  }
  .teacher-photo {
    width: 100%;
    height: 300px;
  }
  .teacher-photo img,
  .teacher-card-davydov .teacher-photo img,
  .teacher-card-knyazev .teacher-photo img {
    right: 50%;
    height: 100%;
    transform: translateX(50%);
  }
  .teacher-carousel-controls {
    inset: auto 0 18px;
    height: 46px;
  }
  .teacher-nav {
    top: auto;
    bottom: 0;
    transform: none;
  }
  .teacher-nav[data-teacher-prev] { left: calc(50% - 56px); }
  .teacher-nav[data-teacher-next] { right: calc(50% - 56px); }
  .teacher-nav:hover { transform: scale(1.03); }
}


/* Teachers redesign: Foxford-inspired editorial carousel */
.teachers-section {
  background: #e5efe8;
  border-radius: 34px;
  padding: 64px 0 56px;
  overflow: hidden;
}
.teachers-section .section-heading {
  padding: 0 34px;
  text-align: center;
  justify-content: center;
  margin-bottom: 34px;
}
.teacher-carousel {
  width: 100%;
  position: relative;
}
.teacher-viewport {
  overflow: hidden;
  cursor: grab;
  padding: 0 0 22px;
}
.teacher-viewport:active { cursor: grabbing; }
.teacher-track {
  display:flex;
  gap:24px;
  padding:0 calc((100% - 1180px)/2);
}
.teacher-card {
  flex:0 0 920px;
  display:grid;
  grid-template-columns: 38% 62%;
  min-height:430px;
  border-radius:0;
  background:#f7f8f3;
  color:#182c28;
  box-shadow:none;
  overflow:hidden;
}
.teacher-card::before {display:none;}
.teacher-photo {
  order:0;
  position:relative;
  width:auto;
  height:100%;
  background:#d8dfdb;
}
.teacher-photo::before {display:none;}
.teacher-photo img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  transform:none;
  filter:none;
}
.teacher-body {
  order:1;
  width:auto;
  min-height:0;
  padding:46px 54px 42px;
  display:flex;
  flex-direction:column;
}
.teacher-subject {
  color:#63746d;
  margin-bottom:16px;
  font-size:14px;
}
.teacher-body h3 {
  color:#172522;
  font-size:clamp(34px,3vw,48px);
  line-height:.98;
  letter-spacing:-.04em;
  max-width:450px;
}
.teacher-facts {
  display:block;
  margin-top:28px;
  color:#697772;
  font-size:18px;
  line-height:1.45;
}
.teacher-facts li::before {display:none;}
.teacher-facts li {margin-bottom:4px;}
.teacher-more {
  margin-top:34px;
  width:max-content;
  color:#173f36;
  border:1px solid #b6c9c0;
  background:transparent;
}
.teacher-carousel::before,
.teacher-carousel::after {
 content:"";
 position:absolute;
 top:0;bottom:0;width:90px;z-index:3;pointer-events:none;
}
.teacher-carousel::before {left:0;background:linear-gradient(90deg,#e5efe8,transparent);}
.teacher-carousel::after {right:0;background:linear-gradient(270deg,#e5efe8,transparent);}
.teacher-nav {z-index:5; background:white;color:#173f36;border:1px solid #d7e1dc;}
.teacher-nav[data-teacher-prev]{left:32px;}
.teacher-nav[data-teacher-next]{right:32px;}
@media(max-width:900px){
 .teacher-card{flex-basis:90vw;grid-template-columns:1fr;min-height:650px;}
 .teacher-photo{height:280px;}
 .teacher-track{padding:0 20px;}
 .teacher-body{padding:30px;}
}


/* Simple teachers carousel */
.teachers-section .section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:32px;
}

.teacher-controls {
  display:flex;
  gap:10px;
}

.teacher-arrow {
  width:42px;
  height:42px;
  border-radius:50%;
  border:0;
  background:#f0f2ef;
  color:#203c35;
  font-size:22px;
  cursor:pointer;
}

.simple-teacher-carousel {
  overflow:hidden;
  cursor:grab;
  background:#e8f1ec;
  padding:0;
  border-radius:32px;
}

.simple-teacher-carousel:active {
  cursor:grabbing;
}

.simple-teacher-track {
  display:flex;
  gap:22px;
  padding:0;
  transition:transform .45s ease;
}

.simple-teacher-card {
  flex:0 0 calc(50% - 11px);
  display:flex;
  align-items:stretch;
  overflow:hidden;
  background:#f7f8f6;
  border-radius:28px;
  min-height:260px;
}

.simple-teacher-card img {
  width:42%;
  object-fit:cover;
  object-position:center top;
}

.simple-teacher-card div {
  padding:32px 28px;
}

.simple-teacher-card h3 {
  margin:0 0 14px;
  font-size:30px;
  line-height:1.05;
  color:#151d1b;
}

.simple-teacher-card p {
  margin:0;
  color:#66716d;
  font-size:17px;
  line-height:1.45;
}

@media(max-width:900px){
 .simple-teacher-card{
   flex-basis:100%;
 }
 .simple-teacher-card h3{
   font-size:26px;
 }
}


/* Teachers section refinement v2 */
.teachers-section {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.teachers-section .section-heading h2 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0;
}

.teacher-controls {
  gap: 12px;
}

.teacher-arrow {
  width: 44px;
  height: 44px;
  border: 1.5px solid #243f37;
  background: #fff;
  color: #243f37;
  font-size: 21px;
  font-weight: 500;
}

.teacher-arrow:hover {
  background: #f5f6f3;
}

.simple-teacher-carousel {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  margin-top: 26px;
}

.simple-teacher-card {
  background: #f7f8f6;
  border: 1px solid #e2e5e1;
  border-radius: 26px;
  min-height: 240px;
}

.simple-teacher-card h3 {
  font-size: 27px;
  line-height: 1.1;
}

.simple-teacher-card p {
  font-size: 16px;
  line-height: 1.5;
}

@media(max-width:900px){
  .teachers-section .section-heading h2 {
    font-size: 34px;
  }
}


/* Teachers — calm Foxford-inspired carousel */
.teachers-showcase {
  margin-top: 28px;
  padding: 66px 0 72px;
}

.teachers-showcase__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding-inline: 3px;
}

.teachers-showcase__header .section-kicker {
  margin-bottom: 10px;
}

.teachers-showcase__header h2 {
  margin: 0;
  font: 620 clamp(42px, 5vw, 64px) / .98 var(--display);
  letter-spacing: -.055em;
}

.teachers-showcase__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  padding-bottom: 2px;
}

.teachers-showcase__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #3f4a46;
  background: #e7e9e6;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.teachers-showcase__arrow:hover {
  color: var(--green-dark);
  background: #dce2dd;
  transform: translateY(-1px);
}

.teachers-showcase__arrow:focus-visible,
.teachers-showcase__viewport:focus-visible {
  outline: 3px solid rgba(47,98,87,.28);
  outline-offset: 4px;
}

.teachers-showcase__arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teachers-showcase__viewport {
  overflow: hidden;
  border-radius: 26px;
  touch-action: pan-y;
  cursor: grab;
}

.teachers-showcase__viewport:active {
  cursor: grabbing;
}

.teachers-showcase__track {
  display: flex;
  gap: 20px;
  will-change: transform;
  transition: transform .48s cubic-bezier(.22,.75,.28,1);
}

.teachers-showcase__card {
  flex: 0 0 calc((100% - 20px) / 2);
  min-width: 0;
  min-height: 292px;
  display: grid;
  grid-template-columns: 50% 50%;
  overflow: hidden;
  border: 1px solid rgba(23,34,30,.07);
  border-radius: 24px;
  background: #f7f7f5;
}

.teachers-showcase__photo {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  background: #d8ded9;
}

.teachers-showcase__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(23,34,30,.025));
}

.teachers-showcase__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 16%;
}

.teachers-showcase__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px 30px 28px;
}

.teachers-showcase__body h3 {
  margin: 0;
  max-width: 310px;
  font: 650 clamp(24px, 2.15vw, 30px) / 1.03 var(--display);
  letter-spacing: -.035em;
}

.teachers-showcase__body p {
  margin: 13px 0 0;
  max-width: 330px;
  color: #65706c;
  font-size: 14px;
  line-height: 1.5;
}

.teachers-showcase__card.is-clone {
  pointer-events: none;
}

@media (max-width: 980px) {
  .teachers-showcase {
    padding-block: 56px 62px;
  }

  .teachers-showcase__header h2 {
    font-size: clamp(38px, 6.5vw, 54px);
  }

  .teachers-showcase__card {
    flex-basis: 78%;
    grid-template-columns: 47% 53%;
  }
}

@media (max-width: 680px) {
  .teachers-showcase {
    padding-block: 48px 54px;
  }

  .teachers-showcase__header {
    align-items: center;
    margin-bottom: 24px;
  }

  .teachers-showcase__header .section-kicker {
    display: none;
  }

  .teachers-showcase__header h2 {
    max-width: 250px;
    font-size: 38px;
  }

  .teachers-showcase__controls {
    gap: 8px;
  }

  .teachers-showcase__arrow {
    width: 40px;
    height: 40px;
  }

  .teachers-showcase__viewport {
    border-radius: 22px;
  }

  .teachers-showcase__track {
    gap: 14px;
  }

  .teachers-showcase__card {
    flex-basis: 88%;
    min-height: 430px;
    grid-template-columns: 1fr;
    grid-template-rows: 250px auto;
    border-radius: 22px;
  }

  .teachers-showcase__photo {
    min-height: 0;
  }

  .teachers-showcase__body {
    padding: 24px 22px 26px;
  }

  .teachers-showcase__body h3 {
    font-size: 27px;
  }

  .teachers-showcase__body p {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teachers-showcase__track,
  .teachers-showcase__arrow {
    transition: none;
  }
}


/* Chat icon — final SVG override. Keeps the bubble crisp and prevents pseudo-element distortion. */
.benefit-icon-chat {
  width: 76px;
  overflow: visible;
}
.benefit-icon-chat .chat-symbol {
  width: 68px;
  height: 58px;
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green-dark);
}
.benefit-icon-chat .chat-symbol::before,
.benefit-icon-chat .chat-symbol::after {
  content: none;
  display: none;
}

/* Courses — calm, compact cards that match the rest of the page. */
.courses-section {
  position: relative;
  overflow: visible;
  margin-top: 28px;
  padding: 66px 0 72px;
  border-radius: 0;
  background: transparent;
}
.courses-section::before,
.courses-section::after {
  content: none;
  display: none;
}
.courses-section > * {
  position: relative;
  z-index: auto;
}
.courses-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 32px;
  padding-inline: 3px;
}
.courses-heading .section-kicker {
  margin-bottom: 10px;
}
.courses-heading h2 {
  margin: 0;
  font: 620 clamp(42px, 5vw, 64px) / .98 var(--display);
  letter-spacing: -.055em;
}
.courses-heading > p {
  max-width: 475px;
  margin: 0 0 3px;
  color: #65706c;
  font-size: 14px;
  line-height: 1.55;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.course-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 28px 30px 24px;
  overflow: hidden;
  border: 1px solid rgba(23,34,30,.09);
  border-radius: 24px;
  background: #f8f8f5;
  box-shadow: 0 10px 32px rgba(23,34,30,.035);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.course-card--accent {
  background: #e6eee9;
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(33,74,65,.20);
  box-shadow: 0 18px 42px rgba(23,34,30,.065);
}
.course-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.course-card__mark {
  min-width: 70px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  padding-inline: 12px;
  border-radius: 15px;
  color: #fff;
  background: var(--green-dark);
  font: 650 19px/1 var(--display);
  letter-spacing: -.035em;
}
.course-card:not(.course-card--accent) .course-card__mark {
  color: var(--green-dark);
  background: #dce9e1;
}
.course-card__mark--symbol {
  font-size: 25px;
  font-weight: 500;
}
.course-card__tags {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.course-card__tags span {
  padding: 7px 10px;
  border: 1px solid rgba(33,74,65,.13);
  border-radius: 999px;
  color: #42534c;
  background: rgba(251,250,246,.56);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .015em;
}
.course-card__copy {
  padding-top: 34px;
}
.course-card__copy h3 {
  max-width: 470px;
  margin: 0;
  font: 620 clamp(27px, 2.45vw, 34px) / 1.06 var(--display);
  letter-spacing: -.045em;
}
.course-card__copy p {
  max-width: 510px;
  margin: 13px 0 0;
  color: #5a6762;
  font-size: 13px;
  line-height: 1.58;
}
.course-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  padding: 18px 0;
  border-top: 1px solid rgba(33,74,65,.13);
  border-bottom: 1px solid rgba(33,74,65,.13);
}
.course-card__facts > div {
  min-width: 0;
  padding: 0 16px;
  border-right: 1px solid rgba(33,74,65,.12);
}
.course-card__facts > div:first-child {
  padding-left: 0;
}
.course-card__facts > div:last-child {
  padding-right: 0;
  border-right: 0;
}
.course-card__facts dt,
.course-card__facts dd {
  margin: 0;
}
.course-card__facts dt {
  margin-bottom: 5px;
  color: #78827e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.course-card__facts dd {
  color: #293832;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 20px;
}
.course-card__footer > span {
  color: #78827e;
  font-size: 10px;
  font-weight: 650;
}
.course-card__footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.course-card__footer a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.course-card__footer a:hover svg {
  transform: translateX(3px);
}
.course-card__footer a:focus-visible {
  outline: 3px solid rgba(47,98,87,.22);
  outline-offset: 5px;
  border-radius: 5px;
}

@media (max-width: 900px) {
  .courses-section {
    padding-block: 56px 62px;
  }
  .courses-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 26px;
  }
  .courses-heading > p {
    max-width: 620px;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .course-card {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .courses-section {
    padding-block: 48px 54px;
  }
  .courses-heading h2 {
    font-size: 38px;
  }
  .courses-heading .section-kicker {
    display: none;
  }
  .course-card {
    min-height: 0;
    padding: 22px 20px 20px;
    border-radius: 20px;
  }
  .course-card__top {
    align-items: flex-start;
  }
  .course-card__mark {
    min-width: 62px;
    height: 48px;
    border-radius: 13px;
    font-size: 17px;
  }
  .course-card__tags {
    max-width: 185px;
  }
  .course-card__copy {
    padding-top: 27px;
  }
  .course-card__copy h3 {
    font-size: 27px;
  }
  .course-card__facts {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 16px 0;
  }
  .course-card__facts > div,
  .course-card__facts > div:first-child,
  .course-card__facts > div:last-child {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: baseline;
    gap: 10px;
    padding: 0;
    border: 0;
  }
  .course-card__facts dt {
    margin: 0;
  }
  .course-card__footer {
    align-items: flex-end;
  }
  .course-card__footer > span {
    max-width: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-card,
  .course-card__footer a svg {
    transition: none;
  }
}


/* Courses v7 — vertical, image-led cards in the site's native visual language. */
.courses-section {
  margin-top: 28px;
  padding: 48px 34px 38px;
  overflow: hidden;
  border: 1px solid rgba(23,34,30,.07);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(23,34,30,.035);
}
.courses-section::before,
.courses-section::after { content: none; display: none; }
.courses-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 26px;
  padding-inline: 2px;
}
.courses-heading .section-kicker { margin-bottom: 8px; }
.courses-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 620 clamp(40px, 4.5vw, 56px)/1 var(--display);
  letter-spacing: -.05em;
}
.courses-heading > p {
  max-width: 360px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.course-card {
  min-width: 0;
  min-height: 570px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 9px;
  border: 1px solid rgba(33,74,65,.13);
  border-radius: 22px;
  background: #fffefa;
  box-shadow: 0 7px 22px rgba(23,34,30,.045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(33,74,65,.24);
  box-shadow: 0 14px 30px rgba(23,34,30,.07);
}
.course-card__media {
  position: relative;
  height: 174px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.6), transparent 34%),
    linear-gradient(145deg, #e9efea, #dfe8e2);
}
.course-card__media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(33,74,65,.10);
  border-radius: 11px;
  pointer-events: none;
}
.course-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.course-card__media-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 42px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(33,74,65,.12);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(251,250,246,.88);
  backdrop-filter: blur(6px);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.course-card__media-icon {
  width: 52px;
  height: 42px;
  fill: none;
  stroke: rgba(33,74,65,.28);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.course-card__body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 11px 10px;
}
.course-card__body h3 {
  min-height: 52px;
  margin: 0;
  color: var(--ink);
  font: 620 23px/1.12 var(--display);
  letter-spacing: -.04em;
}
.course-card__tags {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.course-card__tags span {
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--green-dark);
  background: #e6eee9;
  font-family: var(--body);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.course-card__quick {
  display: grid;
  gap: 0;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(33,74,65,.10);
}
.course-card__quick li {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 1px;
  border: 0;
  border-bottom: 1px solid rgba(33,74,65,.10);
  border-radius: 0;
  color: #405149;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}
.course-card__quick li svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.course-card__link {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 13px 2px 2px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.course-card__link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.course-card__link:hover svg { transform: translateX(3px); }
.course-card__link:focus-visible {
  outline: 3px solid rgba(47,98,87,.20);
  outline-offset: 5px;
  border-radius: 5px;
}

@media (max-width: 1080px) {
  .courses-section { padding: 44px 28px 32px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .course-card { min-height: 530px; }
  .course-card__media { height: 196px; }
  .course-card__body h3 { min-height: 0; font-size: 25px; }
}

@media (max-width: 680px) {
  .courses-section {
    padding: 38px 0 30px;
    border-radius: 24px;
  }
  .courses-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    padding-inline: 20px;
  }
  .courses-heading h2 { font-size: 39px; }
  .courses-heading .section-kicker { display: none; }
  .courses-heading > p { max-width: 300px; font-size: 12px; }
  .course-grid {
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 84vw);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 20px;
    padding: 0 20px 8px;
    scrollbar-width: none;
  }
  .course-grid::-webkit-scrollbar { display: none; }
  .course-card {
    min-height: 520px;
    padding: 8px;
    border-radius: 20px;
    scroll-snap-align: start;
  }
  .course-card__media { height: 170px; border-radius: 14px; }
  .course-card__body { padding: 18px 10px 9px; }
  .course-card__body h3 { font-size: 23px; }
  .course-card__quick li { min-height: 41px; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .course-card,
  .course-card__link svg { transition: none; }
}


/* Courses v9 — wider horizontal cards without an enclosing white slab. */
.courses-section {
  margin-top: 34px;
  padding: 8px 0 10px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.courses-section::before,
.courses-section::after {
  content: none;
  display: none;
}
.courses-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-inline: 3px;
}
.courses-heading__copy {
  display: grid;
  gap: 8px;
}
.courses-heading .section-kicker {
  margin-bottom: 8px;
}
.courses-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 620 clamp(40px, 4.5vw, 56px)/1 var(--display);
  letter-spacing: -.05em;
}
.courses-heading > p,
.courses-heading__copy > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.courses-carousel__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 14px;
}
.courses-carousel__viewport::-webkit-scrollbar {
  display: none;
}
.courses-carousel__track {
  width: max-content;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 360px);
  gap: 18px;
  padding-inline: 3px;
}
.course-card {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(33,74,65,.12);
  border-radius: 26px;
  background: rgba(251,250,246,.98);
  box-shadow: 0 12px 34px rgba(23,34,30,.05);
  scroll-snap-align: start;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(33,74,65,.22);
  box-shadow: 0 20px 44px rgba(23,34,30,.08);
}
.course-card__media {
  height: 208px;
  padding: 12px;
  display: block;
  background: transparent;
}
.course-card__media::after {
  content: none;
}
.course-card__media-frame {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed rgba(33,74,65,.18);
  border-radius: 18px;
  background: linear-gradient(145deg, #e8eee9, #dde6df);
}
.course-card__media-frame span {
  color: rgba(33,74,65,.52);
  font-size: 13px;
  font-weight: 700;
}
.course-card__media-icon {
  width: 56px;
  height: 44px;
  fill: none;
  stroke: rgba(33,74,65,.28);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.course-card__media img,
.course-card__media-badge,
.course-card__tags,
.course-card__quick,
.course-card__link {
  display: none;
}
.course-card__body {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px 22px 24px;
}
.course-card__body h3 {
  min-height: 0;
  margin: 0;
  color: var(--ink);
  font: 620 clamp(28px, 2.2vw, 32px)/1.06 var(--display);
  letter-spacing: -.045em;
}
.course-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--green-dark);
  background: #e2ece6;
}
.course-card__price span {
  color: rgba(33,74,65,.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.course-card__price strong {
  font-family: var(--display);
  font-size: 33px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -.05em;
}
.course-card__price small {
  color: #516059;
  font-size: 12px;
  font-weight: 700;
}
.course-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.course-card__stats > div {
  min-width: 0;
  min-height: 88px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px 13px;
  border: 1px solid rgba(33,74,65,.10);
  border-radius: 17px;
  background: rgba(255,255,255,.75);
}
.course-card__stats dt,
.course-card__stats dd {
  margin: 0;
}
.course-card__stats dt {
  color: #74807a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.course-card__stats dd {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

@media (max-width: 1120px) {
  .courses-carousel__track {
    grid-auto-columns: minmax(332px, 332px);
  }
}

@media (max-width: 760px) {
  .courses-section {
    padding: 4px 0 8px;
  }
  .courses-heading {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
  }
  .courses-heading__copy > p {
    max-width: 360px;
  }
  .courses-carousel__track {
    grid-auto-columns: minmax(300px, 82vw);
    gap: 14px;
  }
  .course-card__media {
    height: 188px;
  }
  .course-card__body {
    padding: 16px 18px 20px;
  }
  .course-card__body h3 {
    font-size: 27px;
  }
  .course-card__price strong {
    font-size: 30px;
  }
  .course-card__stats {
    grid-template-columns: 1fr;
  }
  .course-card__stats > div {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .courses-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .courses-heading h2 {
    font-size: 38px;
  }
  .courses-heading .section-kicker {
    display: none;
  }
  .teachers-showcase__controls {
    align-self: flex-end;
  }
  .courses-carousel__viewport {
    padding-bottom: 10px;
  }
  .courses-carousel__track {
    grid-auto-columns: minmax(284px, 86vw);
    padding-inline: 1px 0;
  }
  .course-card {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-card {
    transition: none;
  }
}


/* Courses v10 — horizontal cards in a vertical list, photo on the left. */
.courses-section {
  margin-top: 34px;
  padding: 6px 0 10px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.courses-section::before,
.courses-section::after {
  content: none;
  display: none;
}
.courses-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding-inline: 3px;
}
.courses-heading__copy {
  display: grid;
  gap: 8px;
}
.courses-heading__copy .section-kicker {
  margin-bottom: 6px;
}
.courses-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 620 clamp(40px, 4.5vw, 56px)/1 var(--display);
  letter-spacing: -.05em;
}
.courses-heading__copy > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.course-list {
  display: grid;
  gap: 18px;
}
.course-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(33,74,65,.12);
  border-radius: 28px;
  background: rgba(251,250,246,.96);
  box-shadow: 0 12px 34px rgba(23,34,30,.05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(33,74,65,.22);
  box-shadow: 0 20px 44px rgba(23,34,30,.08);
}
.course-card__media,
.course-card__media[aria-hidden="true"] {
  height: auto;
  min-height: 230px;
  padding: 14px;
  display: block;
  background: transparent;
}
.course-card__media::after,
.course-card__media img,
.course-card__media-badge,
.course-card__tags,
.course-card__quick,
.course-card__link {
  display: none;
}
.course-card__media-frame {
  width: 100%;
  height: 100%;
  min-height: 202px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed rgba(33,74,65,.18);
  border-radius: 20px;
  background: linear-gradient(145deg, #e8eee9, #dde6df);
}
.course-card__media-frame span {
  color: rgba(33,74,65,.52);
  font-size: 13px;
  font-weight: 700;
}
.course-card__media-icon {
  width: 58px;
  height: 46px;
  fill: none;
  stroke: rgba(33,74,65,.28);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.course-card__body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 24px 28px 24px 8px;
}
.course-card__body h3 {
  min-height: 0;
  margin: 0;
  color: var(--ink);
  font: 620 clamp(30px, 2.6vw, 36px)/1.04 var(--display);
  letter-spacing: -.045em;
}
.course-card__price {
  width: fit-content;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 18px;
  color: var(--green-dark);
  background: #e2ece6;
}
.course-card__price span {
  color: rgba(33,74,65,.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.course-card__price strong {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -.05em;
}
.course-card__price small {
  color: #516059;
  font-size: 12px;
  font-weight: 700;
}
.course-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.course-card__stats > div {
  min-width: 0;
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 15px;
  border: 1px solid rgba(33,74,65,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}
.course-card__stats dt,
.course-card__stats dd {
  margin: 0;
}
.course-card__stats dt {
  color: #74807a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.course-card__stats dd {
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
}

@media (max-width: 980px) {
  .course-card {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .course-card__body {
    padding-right: 22px;
  }
  .course-card__stats {
    grid-template-columns: 1fr;
  }
  .course-card__stats > div {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .courses-section {
    padding: 2px 0 8px;
  }
  .courses-heading {
    margin-bottom: 18px;
  }
  .courses-heading h2 {
    font-size: 40px;
  }
  .course-list {
    gap: 14px;
  }
  .course-card {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
  .course-card__media {
    min-height: 0;
    padding: 12px 12px 0;
  }
  .course-card__media-frame {
    min-height: 180px;
  }
  .course-card__body {
    padding: 18px 18px 20px;
    gap: 14px;
  }
  .course-card__body h3 {
    font-size: 28px;
  }
  .course-card__price {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .courses-heading .section-kicker {
    display: none;
  }
  .courses-heading__copy > p {
    max-width: 320px;
    font-size: 12px;
  }
  .course-card__price strong {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-card {
    transition: none;
  }
}


/* Courses v11 — ровные горизонтальные карточки с фото слева. */
.courses-section {
  margin-top: 34px;
  padding: 8px 0 6px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.courses-section::before,
.courses-section::after {
  content: none;
  display: none;
}
.courses-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding-inline: 3px;
}
.courses-heading__copy {
  display: grid;
  gap: 8px;
}
.courses-heading__copy .section-kicker {
  margin-bottom: 6px;
}
.courses-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 620 clamp(40px, 4.4vw, 56px)/1 var(--display);
  letter-spacing: -.05em;
}
.courses-heading__copy > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.course-list {
  display: grid;
  gap: 18px;
}
.course-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(33,74,65,.12);
  border-radius: 28px;
  background: rgba(251,250,246,.98);
  box-shadow: 0 14px 34px rgba(23,34,30,.05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(33,74,65,.22);
  box-shadow: 0 22px 48px rgba(23,34,30,.08);
}
.course-card__media {
  min-height: 210px;
  background: #e4ebe5;
}
.course-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.course-card__body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 24px 26px;
}
.course-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.course-card__body h3 {
  min-height: 0;
  margin: 0;
  max-width: 420px;
  color: var(--ink);
  font: 620 clamp(29px, 2.5vw, 36px)/1.06 var(--display);
  letter-spacing: -.045em;
}
.course-card__price {
  flex: 0 0 auto;
  display: grid;
  justify-items: start;
  gap: 4px;
  min-width: 170px;
  padding: 14px 18px 15px;
  border-radius: 18px;
  color: var(--green-dark);
  background: #e3ece6;
}
.course-card__price span {
  color: rgba(33,74,65,.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.course-card__price strong {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -.05em;
}
.course-card__price small {
  color: #52605a;
  font-size: 12px;
  font-weight: 700;
}
.course-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.course-card__stats > div {
  min-width: 0;
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(33,74,65,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}
.course-card__stats dt,
.course-card__stats dd {
  margin: 0;
}
.course-card__stats dt {
  color: #75817b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.course-card__stats dd {
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.28;
}

@media (max-width: 980px) {
  .course-card {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .course-card__topline {
    flex-direction: column;
  }
  .course-card__price {
    min-width: 0;
    width: fit-content;
  }
}

@media (max-width: 760px) {
  .courses-section {
    padding-top: 4px;
  }
  .courses-heading {
    margin-bottom: 16px;
  }
  .course-list {
    gap: 14px;
  }
  .course-card {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
  .course-card__media {
    min-height: 180px;
  }
  .course-card__body {
    padding: 18px 18px 20px;
    gap: 14px;
  }
  .course-card__body h3 {
    font-size: 28px;
  }
  .course-card__stats {
    grid-template-columns: 1fr;
  }
  .course-card__stats > div {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .courses-heading .section-kicker {
    display: none;
  }
  .courses-heading__copy > p {
    max-width: 320px;
    font-size: 12px;
  }
  .course-card__price strong {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-card {
    transition: none;
  }
}


/* Courses v12 — cleaner horizontal cards closer to the provided reference. */
.courses-section {
  margin-top: 34px;
  padding: 10px 0 6px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.courses-section::before,
.courses-section::after {
  content: none;
  display: none;
}
.courses-heading {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 18px;
  padding-inline: 3px;
}
.courses-heading__copy {
  display: block;
}
.courses-heading__copy .section-kicker,
.courses-heading__copy > p {
  display: none;
}
.courses-heading h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 10px;
  color: var(--ink);
  font: 620 clamp(34px, 3.4vw, 44px)/1 var(--display);
  letter-spacing: -.045em;
}
.courses-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--green-dark);
}
.course-list {
  display: grid;
  gap: 16px;
}
.course-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 315px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(33,74,65,.12);
  border-radius: 28px;
  background: rgba(251,250,246,.98);
  box-shadow: 0 10px 28px rgba(23,34,30,.04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.course-card:hover {
  transform: translateY(-2px);
  border-color: rgba(33,74,65,.2);
  box-shadow: 0 18px 36px rgba(23,34,30,.06);
}
.course-card__media {
  min-height: 212px;
  border-right: 1px solid rgba(33,74,65,.10);
  background: #e4ebe5;
}
.course-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.course-card__body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 24px 24px 24px 30px;
}
.course-card__topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}
.course-card__body h3 {
  min-height: 0;
  margin: 0;
  max-width: 460px;
  color: var(--ink);
  font: 620 clamp(30px, 2.5vw, 38px)/1.04 var(--display);
  letter-spacing: -.05em;
}
.course-card__price {
  flex: 0 0 auto;
  min-width: 170px;
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 14px 22px 16px;
  border-radius: 22px;
  color: var(--green-dark);
  background: #dce7e1;
}
.course-card__price span {
  color: rgba(33,74,65,.7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.course-card__price strong {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 620;
  line-height: .95;
  letter-spacing: -.055em;
}
.course-card__price small {
  color: #52605a;
  font-size: 12px;
  font-weight: 700;
}
.course-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.course-card__stats > div {
  min-width: 0;
  min-height: 98px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(33,74,65,.11);
  border-radius: 22px;
  background: #f8f9f7;
}
.course-card__stats dt,
.course-card__stats dd {
  margin: 0;
}
.course-card__stats dt {
  color: #7a8681;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.course-card__stats dd {
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.25;
}

@media (max-width: 1040px) {
  .course-card {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .course-card__body {
    padding: 22px;
  }
  .course-card__topline {
    grid-template-columns: 1fr;
  }
  .course-card__price {
    min-width: 0;
    width: fit-content;
  }
}

@media (max-width: 760px) {
  .courses-heading {
    margin-bottom: 16px;
  }
  .courses-heading h2 {
    font-size: 36px;
  }
  .course-list {
    gap: 14px;
  }
  .course-card {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
  .course-card__media {
    min-height: 186px;
    border-right: 0;
    border-bottom: 1px solid rgba(33,74,65,.10);
  }
  .course-card__body {
    gap: 14px;
    padding: 18px;
  }
  .course-card__body h3 {
    font-size: 28px;
  }
  .course-card__price strong {
    font-size: 34px;
  }
  .course-card__stats {
    grid-template-columns: 1fr;
  }
  .course-card__stats > div {
    min-height: 0;
    padding: 16px 18px;
  }
}


/* Courses v13 — final clean pass: centered heading, flush image, no boxed stats. */
.courses-heading {
  justify-content: center !important;
  text-align: center !important;
  margin-bottom: 22px !important;
}
.courses-heading__copy {
  width: 100%;
  text-align: center !important;
}
.courses-heading h2 {
  position: relative;
  display: inline-block;
  margin: 0 auto !important;
  padding-bottom: 12px;
  font: 620 clamp(34px, 3.4vw, 44px)/1 var(--display) !important;
  letter-spacing: -.045em;
}
.courses-heading h2::after {
  content: "";
  position: absolute;
  left: 50% !important;
  right: auto !important;
  bottom: 0;
  width: 64px !important;
  height: 3px;
  border-radius: 999px;
  background: var(--green-dark);
  transform: translateX(-50%);
}

.course-card {
  grid-template-columns: 320px minmax(0, 1fr) !important;
  min-height: 236px;
  border: 1px solid rgba(33,74,65,.13) !important;
  border-radius: 28px;
  background: var(--surface) !important;
  box-shadow: 0 10px 28px rgba(23,34,30,.045);
}
.course-card__media {
  min-height: 236px !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: block !important;
  border: 0 !important;
  border-right: 1px solid rgba(33,74,65,.13) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.course-card__media::before,
.course-card__media::after,
.course-card__media-frame {
  display: none !important;
  content: none !important;
}
.course-card__media img {
  width: 100% !important;
  height: 100% !important;
  min-height: 236px;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.course-card__body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 28px !important;
  padding: 28px 34px !important;
}
.course-card__topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
}
.course-card__body h3 {
  align-self: center;
  max-width: 520px;
  font: 620 clamp(30px, 2.5vw, 38px)/1.04 var(--display) !important;
}
.course-card__price {
  min-width: 165px !important;
  display: grid !important;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: end;
  justify-items: end;
  gap: 2px 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.course-card__price span {
  grid-column: 1;
  align-self: end;
  color: #75817b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.course-card__price strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 40px !important;
  white-space: nowrap;
}
.course-card__price small {
  grid-column: 1;
  color: #75817b;
  font-size: 10px;
  font-weight: 700;
}

.course-card__stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 0 !important;
  padding-top: 18px;
  border-top: 1px solid rgba(33,74,65,.12);
}
.course-card__stats > div {
  min-width: 0;
  min-height: 0 !important;
  display: block !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-right: 1px solid rgba(33,74,65,.12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.course-card__stats > div:first-child {
  padding-left: 0 !important;
}
.course-card__stats > div:last-child {
  padding-right: 0 !important;
  border-right: 0 !important;
}
.course-card__stats dt {
  margin: 0 0 7px !important;
  color: #7a8681;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.course-card__stats dd {
  margin: 0 !important;
  color: var(--ink);
  font-size: 17px !important;
  font-weight: 760;
  line-height: 1.25;
}

@media (max-width: 1040px) {
  .course-card {
    grid-template-columns: 275px minmax(0,1fr) !important;
  }
  .course-card__body {
    padding: 24px !important;
  }
  .course-card__topline {
    grid-template-columns: 1fr auto !important;
    gap: 18px;
  }
  .course-card__price {
    width: auto !important;
  }
  .course-card__stats > div {
    padding-inline: 16px !important;
  }
  .course-card__stats > div:first-child { padding-left: 0 !important; }
  .course-card__stats > div:last-child { padding-right: 0 !important; }
}

@media (max-width: 760px) {
  .courses-heading {
    text-align: center !important;
  }
  .course-card {
    grid-template-columns: 1fr !important;
  }
  .course-card__media {
    min-height: 190px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(33,74,65,.13) !important;
  }
  .course-card__media img {
    min-height: 190px;
    max-height: 230px;
  }
  .course-card__topline {
    grid-template-columns: 1fr !important;
  }
  .course-card__price {
    justify-content: start;
    justify-items: start;
  }
  .course-card__stats {
    grid-template-columns: 1fr !important;
    padding-top: 14px;
  }
  .course-card__stats > div,
  .course-card__stats > div:first-child,
  .course-card__stats > div:last-child {
    display: grid !important;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 10px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(33,74,65,.10) !important;
  }
  .course-card__stats > div:last-child {
    border-bottom: 0 !important;
  }
  .course-card__stats dt {
    margin: 0 !important;
  }
}


/* Courses v14 — photo is inset inside the card, with clean breathing room and no green frame. */
.course-card {
  grid-template-columns: 330px minmax(0, 1fr) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.course-card__media {
  min-height: 236px !important;
  height: auto !important;
  margin: 16px 0 16px 16px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: #e4ebe5 !important;
}

.course-card__media img {
  width: 100% !important;
  height: 100% !important;
  min-height: 204px !important;
  display: block !important;
  border: 0 !important;
  border-radius: 20px !important;
  object-fit: cover !important;
  object-position: center !important;
}

.course-card__body {
  padding: 28px 34px 28px 30px !important;
}

@media (max-width: 1040px) {
  .course-card {
    grid-template-columns: 290px minmax(0, 1fr) !important;
  }

  .course-card__media {
    margin: 14px 0 14px 14px !important;
    border-radius: 18px !important;
  }

  .course-card__media img {
    border-radius: 18px !important;
  }
}

@media (max-width: 760px) {
  .course-card {
    grid-template-columns: 1fr !important;
  }

  .course-card__media {
    min-height: 190px !important;
    margin: 12px 12px 0 !important;
    border: 0 !important;
    border-radius: 18px !important;
  }

  .course-card__media img {
    min-height: 190px !important;
    max-height: 230px;
    border-radius: 18px !important;
  }

  .course-card__body {
    padding: 18px 18px 20px !important;
  }
}


/* Courses v15 — description between title and stats + dark CTA at bottom right. */
.course-card {
  min-height: 340px !important;
}

.course-card__media {
  min-height: 308px !important;
}

.course-card__media img {
  min-height: 308px !important;
}

.course-card__body {
  min-height: 340px;
  align-content: stretch !important;
  grid-template-rows: auto auto auto 1fr !important;
  gap: 16px !important;
  padding: 28px 34px 24px 30px !important;
}

.course-card__topline {
  align-items: start !important;
}

.course-card__description {
  max-width: 700px;
  min-height: 44px;
  margin: 0;
  color: #56645e;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.6;
}

.course-card__stats {
  align-self: start;
  margin-top: 2px !important;
}

.course-card__footer {
  align-self: end;
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.course-card__details {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid var(--green-dark);
  border-radius: 12px;
  color: #fff;
  background: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.course-card__details span {
  font-size: 17px;
  line-height: 1;
  transition: transform .18s ease;
}

.course-card__details:hover {
  transform: translateY(-1px);
  background: #183d35;
  box-shadow: 0 8px 20px rgba(33,74,65,.16);
}

.course-card__details:hover span {
  transform: translateX(3px);
}

.course-card__details:focus-visible {
  outline: 3px solid rgba(47,98,87,.25);
  outline-offset: 4px;
}

@media (max-width: 1040px) {
  .course-card {
    min-height: 360px !important;
  }

  .course-card__media {
    min-height: 332px !important;
  }

  .course-card__media img {
    min-height: 332px !important;
  }

  .course-card__body {
    min-height: 360px;
    padding: 24px !important;
  }
}

@media (max-width: 760px) {
  .course-card {
    min-height: 0 !important;
  }

  .course-card__media {
    min-height: 210px !important;
  }

  .course-card__media img {
    min-height: 210px !important;
    max-height: 250px;
  }

  .course-card__body {
    min-height: 0;
    grid-template-rows: auto !important;
    gap: 14px !important;
    padding: 18px 18px 20px !important;
  }

  .course-card__description {
    min-height: 0;
    font-size: 12.5px;
  }

  .course-card__footer {
    padding-top: 4px;
  }

  .course-card__details {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-card__details,
  .course-card__details span {
    transition: none;
  }
}


/* Courses v16 — same concept, rebuilt on a strict visual grid. */
.course-card {
  min-height: 340px !important;
}

/* Preserve the image concept and dimensions from v15. */
.course-card__media {
  min-height: 308px !important;
  margin: 16px 0 16px 16px !important;
  border-radius: 20px !important;
}
.course-card__media img {
  min-height: 308px !important;
  border-radius: 20px !important;
}

.course-card__body {
  min-height: 340px !important;
  display: grid !important;
  grid-template-rows: auto auto 1fr !important;
  align-content: stretch !important;
  gap: 0 !important;
  padding: 30px 34px 26px 32px !important;
}

.course-card__topline {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 28px !important;
}

.course-card__body h3 {
  max-width: 600px !important;
  margin: 0 !important;
  font: 620 clamp(34px, 2.8vw, 42px)/1.02 var(--display) !important;
  letter-spacing: -.052em !important;
}

/* Price is typographic, not another card/pill. */
.course-card__price {
  min-width: 190px !important;
  display: grid !important;
  grid-template-columns: auto auto !important;
  grid-template-rows: auto auto !important;
  align-items: end !important;
  justify-content: end !important;
  column-gap: 10px !important;
  row-gap: 3px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--green-dark) !important;
}
.course-card__price span {
  align-self: center !important;
  color: #65756e !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  text-transform: lowercase !important;
}
.course-card__price strong {
  font: 620 43px/1 var(--display) !important;
  letter-spacing: -.055em !important;
  white-space: nowrap !important;
}
.course-card__price small {
  grid-column: 2 !important;
  color: #65756e !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

.course-card__description {
  max-width: 760px !important;
  min-height: 0 !important;
  margin: 16px 0 0 !important;
  color: #56665f !important;
  font-size: 15px !important;
  font-weight: 520 !important;
  line-height: 1.55 !important;
}

/* One calm baseline for stats + CTA instead of floating mini blocks. */
.course-card__bottom {
  align-self: end !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 30px !important;
  margin-top: 22px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(33,74,65,.12) !important;
}

.course-card__stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.course-card__stats > div,
.course-card__stats > div:first-child,
.course-card__stats > div:last-child {
  min-height: 70px !important;
  display: block !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-right: 1px solid rgba(33,74,65,.12) !important;
  background: transparent !important;
}
.course-card__stats > div:first-child {
  padding-left: 0 !important;
}
.course-card__stats > div:last-child {
  padding-right: 0 !important;
  border-right: 0 !important;
}
.course-card__stats dt {
  margin: 0 0 8px !important;
  color: #6c7973 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}
.course-card__stats dd {
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 19px !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

.course-card__footer {
  align-self: end !important;
  display: block !important;
  padding: 0 !important;
}
.course-card__details {
  min-width: 196px !important;
  min-height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  padding: 0 20px !important;
  border: 1px solid var(--green-dark) !important;
  border-radius: 13px !important;
  color: #fff !important;
  background: var(--green-dark) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.course-card__details span {
  display: inline-block !important;
  color: #fff !important;
  font-size: 19px !important;
  line-height: 1 !important;
}

@media (max-width: 1100px) {
  .course-card__body {
    padding: 26px 26px 24px !important;
  }
  .course-card__bottom {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .course-card__footer {
    justify-self: end !important;
  }
  .course-card__stats > div,
  .course-card__stats > div:first-child,
  .course-card__stats > div:last-child {
    padding-inline: 18px !important;
  }
  .course-card__stats > div:first-child {
    padding-left: 0 !important;
  }
}

@media (max-width: 760px) {
  .course-card__body {
    min-height: 0 !important;
    padding: 20px 18px !important;
  }
  .course-card__topline {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .course-card__price {
    justify-content: start !important;
  }
  .course-card__body h3 {
    font-size: 30px !important;
  }
  .course-card__description {
    margin-top: 12px !important;
    font-size: 14px !important;
  }
  .course-card__bottom {
    margin-top: 18px !important;
    padding-top: 18px !important;
  }
  .course-card__stats {
    grid-template-columns: 1fr !important;
  }
  .course-card__stats > div,
  .course-card__stats > div:first-child,
  .course-card__stats > div:last-child {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 118px 1fr !important;
    align-items: baseline !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(33,74,65,.10) !important;
  }
  .course-card__stats > div:last-child {
    border-bottom: 0 !important;
  }
  .course-card__stats dt {
    margin: 0 !important;
    font-size: 13px !important;
  }
  .course-card__stats dd {
    font-size: 17px !important;
    white-space: normal !important;
  }
  .course-card__footer,
  .course-card__details {
    width: 100% !important;
  }
}


/* Courses v17 — image + stats on the left, content center, dedicated price/actions rail on the right. */
.courses-section {
  margin-top: 36px;
  padding: 8px 0 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.courses-section::before,
.courses-section::after {
  content: none;
  display: none;
}
.courses-heading {
  justify-content: center;
  margin-bottom: 22px;
  text-align: center;
}
.courses-heading h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 11px;
  font: 620 clamp(34px, 3.4vw, 44px)/1 var(--display);
  letter-spacing: -.045em;
}
.courses-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--green-dark);
  transform: translateX(-50%);
}

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

.course-card {
  min-height: 350px !important;
  display: grid !important;
  grid-template-columns: 330px minmax(0, 1fr) 270px !important;
  align-items: stretch !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(33,74,65,.13) !important;
  border-radius: 28px !important;
  background: rgba(251,250,246,.98) !important;
  box-shadow: 0 12px 32px rgba(23,34,30,.045) !important;
}

.course-card__left {
  min-width: 0;
  display: grid;
  grid-template-rows: 220px auto;
  gap: 0;
  padding: 15px 0 15px 15px;
}

.course-card__media {
  min-height: 0 !important;
  height: 220px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 19px !important;
  background: #e5ebe6 !important;
}

.course-card__media img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: block !important;
  border: 0 !important;
  border-radius: 19px !important;
  object-fit: cover !important;
  object-position: center !important;
}

.course-card__stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 0 !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.course-card__stats > div {
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-right: 1px solid rgba(33,74,65,.13) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.course-card__stats > div:first-child { padding-left: 2px !important; }
.course-card__stats > div:last-child {
  padding-right: 2px !important;
  border-right: 0 !important;
}
.course-card__stats dt {
  margin: 0 0 4px !important;
  color: #6e7b75 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.course-card__stats dd {
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.course-card__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 34px 30px 38px;
}

.course-card__main h3 {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font: 620 clamp(30px, 2.6vw, 40px)/1.05 var(--display);
  letter-spacing: -.05em;
}

.course-card__description {
  max-width: 700px !important;
  min-height: 0 !important;
  margin: 18px 0 0 !important;
  color: #53635d !important;
  font-size: 15px !important;
  font-weight: 520 !important;
  line-height: 1.62 !important;
}

.course-card__aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 28px 26px;
  border-left: 1px solid rgba(33,74,65,.13);
}

.course-card__price {
  min-width: 0 !important;
  width: auto !important;
  display: grid !important;
  justify-items: start !important;
  gap: 2px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.course-card__price span {
  color: #65746d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: lowercase !important;
}
.course-card__price strong {
  color: var(--green-dark) !important;
  font-family: var(--display) !important;
  font-size: 42px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  letter-spacing: -.055em !important;
}
.course-card__price small {
  color: #65746d !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

.course-card__actions {
  display: grid;
  gap: 11px;
}
.course-card__buy,
.course-card__details {
  min-height: 50px !important;
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-align: center;
  text-decoration: none !important;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.course-card__buy {
  border: 1px solid var(--green-dark);
  color: #fff;
  background: var(--green-dark);
}
.course-card__details {
  border: 1px solid var(--ink) !important;
  color: var(--ink) !important;
  background: transparent !important;
}
.course-card__buy:hover,
.course-card__details:hover {
  transform: translateY(-1px);
}
.course-card__buy:hover { background: #183d35; }
.course-card__details:hover { background: rgba(33,74,65,.05) !important; }

@media (max-width: 1100px) {
  .course-card {
    grid-template-columns: 300px minmax(0,1fr) 235px !important;
  }
  .course-card__main {
    padding-inline: 28px;
  }
  .course-card__aside {
    padding-inline: 20px;
  }
}

@media (max-width: 900px) {
  .course-card {
    grid-template-columns: 270px minmax(0,1fr) !important;
  }
  .course-card__aside {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    align-items: center;
    padding: 18px 20px 20px;
    border-left: 0;
    border-top: 1px solid rgba(33,74,65,.13);
  }
}

@media (max-width: 680px) {
  .course-card {
    grid-template-columns: 1fr !important;
  }
  .course-card__left {
    grid-template-rows: 200px auto;
    padding: 12px 12px 0;
  }
  .course-card__media {
    height: 200px !important;
  }
  .course-card__main {
    padding: 22px 18px;
  }
  .course-card__main h3 {
    font-size: 29px;
  }
  .course-card__description {
    margin-top: 12px !important;
    font-size: 13.5px !important;
  }
  .course-card__aside {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .course-card__price strong {
    font-size: 36px !important;
  }
}


/* Courses v18 — tidy price rail and higher action buttons. */
.course-card__aside {
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 34px 28px 28px !important;
}

.course-card__price {
  position: relative;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: start !important;
  gap: 3px !important;
  padding: 0 0 22px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(33,74,65,.14) !important;
}

.course-card__price span {
  display: block !important;
  margin: 0 0 2px !important;
  color: #66766f !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
  letter-spacing: .02em !important;
  text-transform: lowercase !important;
}

.course-card__price strong {
  display: block !important;
  margin: 0 !important;
  color: var(--green-dark) !important;
  font-family: var(--display) !important;
  font-size: 38px !important;
  font-weight: 650 !important;
  line-height: .98 !important;
  letter-spacing: -.045em !important;
  white-space: nowrap;
}

.course-card__price small {
  display: block !important;
  margin-top: 3px !important;
  color: #56665f !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

.course-card__actions {
  width: 100%;
  display: grid !important;
  gap: 10px !important;
  margin-top: 22px !important;
}

.course-card__buy,
.course-card__details {
  min-height: 48px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
}

@media (max-width: 1100px) {
  .course-card__aside {
    padding: 28px 22px !important;
  }

  .course-card__price strong {
    font-size: 36px !important;
  }
}

@media (max-width: 900px) {
  .course-card__aside {
    align-items: start !important;
    gap: 22px !important;
  }

  .course-card__price {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  .course-card__actions {
    margin-top: 0 !important;
  }
}

@media (max-width: 680px) {
  .course-card__aside {
    gap: 18px !important;
    padding: 20px 18px !important;
  }

  .course-card__price {
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(33,74,65,.14) !important;
  }

  .course-card__price strong {
    font-size: 34px !important;
  }

  .course-card__actions {
    margin-top: 0 !important;
  }
}


/* Courses v19 — price composition: "от" directly before the number, caption aligned under it. */
.course-card__aside {
  padding: 34px 30px 28px !important;
}

.course-card__price {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: max-content max-content !important;
  grid-template-rows: auto auto !important;
  align-items: baseline !important;
  justify-content: start !important;
  column-gap: 8px !important;
  row-gap: 4px !important;
  padding: 0 0 22px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(33,74,65,.14) !important;
}

.course-card__price span {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: baseline !important;
  margin: 0 !important;
  color: #62736b !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: lowercase !important;
}

.course-card__price strong {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  color: var(--green-dark) !important;
  font-family: var(--display) !important;
  font-size: 37px !important;
  font-weight: 650 !important;
  line-height: .98 !important;
  letter-spacing: -.04em !important;
  white-space: nowrap !important;
}

.course-card__price small {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  color: #56665f !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

.course-card__actions {
  margin-top: 30px !important;
  gap: 11px !important;
}

@media (max-width: 1100px) {
  .course-card__aside {
    padding: 30px 24px 26px !important;
  }

  .course-card__price strong {
    font-size: 35px !important;
  }

  .course-card__actions {
    margin-top: 27px !important;
  }
}

@media (max-width: 900px) {
  .course-card__price {
    width: fit-content !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  .course-card__actions {
    margin-top: 0 !important;
  }
}

@media (max-width: 680px) {
  .course-card__price {
    padding-bottom: 17px !important;
    border-bottom: 1px solid rgba(33,74,65,.14) !important;
  }

  .course-card__price strong {
    font-size: 34px !important;
  }

  .course-card__actions {
    margin-top: 22px !important;
  }
}


/* Courses v20 — refined price alignment and vertical action placement. */
.course-card__aside {
  padding: 34px 30px 26px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

/* "от" sits around the visual midline of the price, not above it. */
.course-card__price {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: max-content max-content !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-content: start !important;
  column-gap: 8px !important;
  row-gap: 5px !important;
  padding: 0 0 21px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(33,74,65,.14) !important;
}

.course-card__price span {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  transform: translateY(4px);
  margin: 0 !important;
  color: #62736b !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: lowercase !important;
}

.course-card__price strong {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  color: var(--green-dark) !important;
  font-family: var(--display) !important;
  font-size: 36px !important;
  font-weight: 650 !important;
  line-height: .98 !important;
  letter-spacing: -.04em !important;
  white-space: nowrap !important;
}

.course-card__price small {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 0 0 0 10px !important;
  color: #56665f !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

/* Push both buttons lower; align the secondary one near the left-side course properties baseline. */
.course-card__actions {
  width: 100%;
  display: grid !important;
  gap: 11px !important;
  margin-top: 46px !important;
}

.course-card__buy,
.course-card__details {
  min-height: 48px !important;
}

@media (min-width: 901px) {
  .course-card__details {
    margin-top: 18px !important;
  }
}

@media (max-width: 1100px) {
  .course-card__aside {
    padding: 30px 24px 24px !important;
  }

  .course-card__price strong {
    font-size: 34px !important;
  }

  .course-card__actions {
    margin-top: 40px !important;
  }
}

@media (max-width: 900px) {
  .course-card__aside {
    align-items: start !important;
    gap: 22px !important;
  }

  .course-card__price {
    width: fit-content !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  .course-card__actions {
    margin-top: 0 !important;
  }

  .course-card__details {
    margin-top: 0 !important;
  }
}

@media (max-width: 680px) {
  .course-card__price {
    padding-bottom: 17px !important;
    border-bottom: 1px solid rgba(33,74,65,.14) !important;
  }

  .course-card__price strong {
    font-size: 33px !important;
  }

  .course-card__price small {
    margin-left: 8px !important;
  }

  .course-card__actions {
    margin-top: 24px !important;
  }
}


/* Compact contact banner — same design, much less vertical space. */
.help-section {
  min-height: 168px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 34px !important;
  margin-top: 28px !important;
  padding: 27px 52px !important;
  border-radius: 30px !important;
}

.help-section > div {
  align-self: center;
}

.help-section .section-kicker {
  margin: 0 0 7px !important;
  font-size: 10px !important;
}

.help-section h2 {
  margin: 0 !important;
  font-size: 39px !important;
  line-height: 1 !important;
}

.help-section p:last-child {
  margin: 9px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.help-section .button {
  min-height: 48px !important;
  padding-inline: 22px !important;
  border-radius: 10px !important;
}

@media (max-width: 1000px) {
  .help-section {
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 26px 34px !important;
  }
}

@media (max-width: 680px) {
  .help-section {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 26px 22px !important;
    border-radius: 24px !important;
  }

  .help-section h2 {
    font-size: 34px !important;
  }

  .help-section .button {
    width: max-content !important;
  }
}


/* Footer — reference layout: four calm columns with a separate copyright row. */
.site-footer {
  margin-top: 34px;
  padding: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr .86fr .82fr;
  gap: clamp(34px, 5vw, 76px);
  padding: 38px 0 40px;
}

.site-footer__brand,
.site-footer__column,
.site-footer__links {
  min-width: 0;
}

.site-footer__logo {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.site-footer__brand p,
.site-footer__brand span,
.site-footer__column p,
.site-footer__column a,
.site-footer__links a {
  margin: 0;
  color: #69756f;
  font-size: 12px;
  line-height: 1.55;
  text-decoration: none;
}

.site-footer__brand p {
  margin-bottom: 10px;
}

.site-footer__brand span {
  display: block;
}

.site-footer__label {
  margin-bottom: 12px !important;
  color: #88918d !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-footer__column strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.site-footer__support {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 5px;
}

.site-footer__support > a {
  color: var(--ink);
}

.site-footer__hours {
  margin-top: 8px !important;
  color: #8a9490 !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}

.site-footer__links {
  display: grid;
  align-content: start;
  gap: 11px;
}

.site-footer__links a {
  color: var(--ink);
}

.site-footer__logo:hover,
.site-footer__support a:hover,
.site-footer__links a:hover {
  color: var(--green);
}

.site-footer__bottom {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #69756f;
  font-size: 11px;
}

@media (max-width: 980px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 48px;
  }
}

@media (max-width: 620px) {
  .site-footer {
    margin-top: 26px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0;
  }

  .site-footer__bottom {
    min-height: 54px;
  }
}


/* Teachers v22 — finite strip like Foxford: slight teaser on the right, no looping. */
.teachers-showcase {
  margin-top: 28px;
  padding: 66px 0 72px;
}

.teachers-showcase__viewport {
  overflow: hidden;
  border-radius: 26px;
  touch-action: pan-y;
  cursor: grab;
}

.teachers-showcase__viewport:active {
  cursor: grabbing;
}

.teachers-showcase__track {
  --teacher-gap: 20px;
  --teacher-peek: 28px;
  display: flex;
  gap: var(--teacher-gap);
  will-change: transform;
  transition: transform .48s cubic-bezier(.22,.75,.28,1);
}

.teachers-showcase__card {
  flex: 0 0 calc((100% - var(--teacher-gap) - var(--teacher-peek)) / 2);
}

.teachers-showcase__photo--linev {
  background: #d7ddd8;
}

.teachers-showcase__photo--linev img {
  object-position: center 15%;
}

.teachers-showcase__arrow[disabled] {
  opacity: .45;
  cursor: default;
  pointer-events: none;
  transform: none;
}

@media (max-width: 980px) {
  .teachers-showcase__track {
    --teacher-gap: 16px;
  }

  .teachers-showcase__card {
    flex-basis: 82%;
  }
}

@media (max-width: 680px) {
  .teachers-showcase__track {
    --teacher-gap: 14px;
  }

  .teachers-showcase__card {
    flex-basis: 89%;
  }
}


/* Teachers v24 — Linev photo uses the same background tone; teaser is a bit more visible. */
.teachers-showcase__track {
  --teacher-peek: 42px;
}

.teachers-showcase__photo--linev {
  background: #d8ded9;
}
