/* ==============================
   Base
================================ */
:root {
  --color-primary: #FF8645;
  --color-primary-dark: #E96F30;
  --color-dark: #1C1C1C;
  --color-text: #333333;
  --color-muted: #727272;
  --color-light: #F7F5F2;
  --color-white: #ffffff;
  --color-border: #E7E2DC;
  --color-success: #14804a;
  --color-error: #b42318;

  --container: 1200px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shadow: 0 24px 60px rgba(69, 52, 40, 0.10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "TikTok Sans", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section {
  padding: 110px 0;
}

.section--light {
  background: var(--color-light);
}

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

h1,
h2,
h3 {
  color: var(--color-dark);
  line-height: 1.12;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 14px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.eyebrow {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--blue {
  color: var(--color-primary);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 58px;
}

.section-heading > p:last-child {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 19px;
}

.section-heading--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading--row > p {
  max-width: 420px;
}

/* ==============================
   Header
================================ */
.header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  padding: 18px 0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.header.is-scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 30px rgba(22, 34, 51, 0.08);
  backdrop-filter: blur(14px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  position: relative;
  display: inline-flex;
  width: 150px;
  align-items: center;
}

.logo__image {
  display: block;
  width: 150px;
  height: auto;
  transition: opacity 0.2s ease;
}

.logo__image--black {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.header.is-scrolled .logo__image--white {
  opacity: 0;
}

.header.is-scrolled .logo__image--black {
  opacity: 1;
}

.logo--footer {
  width: 165px;
}

.logo--footer .logo__image {
  width: 165px;
}

.logo--footer .logo__image--black {
  display: none;
}


.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
}

.header.is-scrolled .nav {
  color: var(--color-dark);
}

.nav a {
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 0.7;
}

.nav__button {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-dark);
}

.header.is-scrolled .nav__button {
  background: var(--color-primary);
  color: var(--color-white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--color-white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header.is-scrolled .menu-toggle {
  background: var(--color-light);
}

.header.is-scrolled .menu-toggle span {
  background: var(--color-dark);
}

/* ==============================
   Buttons
================================ */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.button--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 14px 30px rgba(255, 134, 69, 0.28);
}

.button--primary:hover {
  background: var(--color-primary-dark);
}

.button--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  backdrop-filter: blur(8px);
}

.button--full {
  width: 100%;
}

.text-link {
  color: var(--color-primary);
  font-weight: 700;
}

.text-link--dark {
  color: var(--color-dark);
}

/* ==============================
   Hero
================================ */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 90px;
  background:
    linear-gradient(120deg, rgba(28, 28, 28, 0.94), rgba(54, 86, 71, 0.82)),
    url("../images/hero-bg.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -220px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(255, 255, 255, 0.04),
    0 0 0 180px rgba(255, 255, 255, 0.025);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 134, 69, 0.28), transparent 38%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.hero h1 {
  max-width: 1050px;
  margin-bottom: 24px;
  color: var(--color-white);
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero__lead {
  max-width: 760px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.2vw, 24px);
}


/* ==============================
   Programs
================================ */
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.program-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow);
}



.program-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
}

.program-card__tag {
  max-width: 300px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}




.program-card h3 {
  margin-bottom: 8px;
  font-size: clamp(32px, 4vw, 46px);
}



.program-card__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: auto;
}

/* ==============================
   Courses
================================ */
.course__intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 70px;
}

.course__intro > p {
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 19px;
}

.course__layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

.course__results {
  padding: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.result-list {
  display: grid;
  gap: 0;
}

.result-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}

.result-item:last-child {
  border-bottom: 0;
}


.result-item p {
  margin: 0;
  font-size: 19px;
}

.course__modules {
  position: sticky;
  top: 100px;
  padding: 38px;
  border-radius: var(--radius-lg);
  background: var(--color-light);
}

.course__modules ol {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding-left: 20px;
}

.course--blue {
  background:
    linear-gradient(135deg, #5FAE83 0%, #78C39D 100%);
  color: rgba(255, 255, 255, 0.82);
}

.course--blue h2,
.course--blue h3 {
  color: var(--color-white);
}

.course--blue .course__intro > p {
  color: rgba(255, 255, 255, 0.72);
}

.course--blue .course__results {
  border-color: rgba(255, 255, 255, 0.18);
}

.course--blue .result-item {
  border-color: rgba(255, 255, 255, 0.16);
}


.course__modules--light {
  background: var(--color-white);
  color: var(--color-text);
}

.course__modules--light h3 {
  color: var(--color-dark);
}

/* ==============================
   Organization
================================ */
.organization {
  background:
    radial-gradient(circle at 90% 10%, rgba(99, 179, 134, 0.08), transparent 26%),
    var(--color-white);
}

.organization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.organization-card {
  position: relative;
  min-height: 240px;
  height: 100%;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 26px;
  background: var(--color-white);
  box-shadow: 0 10px 28px rgba(57, 45, 36, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.organization-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -60px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 134, 69, 0.055);
  pointer-events: none;
}

.organization-card:nth-child(even)::after {
  background: rgba(99, 179, 134, 0.065);
}

.organization-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 134, 69, 0.28);
  box-shadow: 0 18px 42px rgba(57, 45, 36, 0.09);
}

.organization-card:nth-child(even):hover {
  border-color: rgba(99, 179, 134, 0.30);
}


.organization-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  color: var(--color-muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.organization-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-dark);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
}

.organization-card a {
  color: var(--color-primary);
  overflow-wrap: anywhere;
}

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

@media (max-width: 640px) {
  .organization-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .organization-card {
    min-height: auto;
    padding: 22px;
    border-radius: 22px;
  }

  .organization-card h3 {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .organization-card p {
    font-size: 17px;
  }
}

/* ==============================
   Documents
================================ */
.documents {
  background:
    radial-gradient(circle at 85% 15%, rgba(99, 179, 134, 0.08), transparent 26%),
    radial-gradient(circle at 15% 85%, rgba(255, 134, 69, 0.08), transparent 24%),
    var(--color-light);
}

.documents .section-heading {
  margin-bottom: 38px;
}

.documents .section-heading h2 {
  margin-bottom: 0;
}

.documents-list {
  display: grid;
  gap: 16px;
}

.documents-list a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  gap: 24px;
  min-height: 104px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid rgba(231, 226, 220, 0.95);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 12px 28px rgba(57, 45, 36, 0.06);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.documents-list a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #FF8645, #FFB089);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.documents-list a:nth-child(even)::before {
  background: linear-gradient(180deg, #63B386, #9AD2B3);
}

.documents-list a::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 134, 69, 0.06);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.documents-list a:nth-child(even)::after {
  background: rgba(99, 179, 134, 0.07);
}

.documents-list a:hover {
  transform: translateY(-4px);
  border-color: var(--color-muted);
  box-shadow: 0 18px 40px rgba(57, 45, 36, 0.10);
}

.documents-list a:nth-child(even):hover {
  border-color: rgba(99, 179, 134, 0.32);
}

.documents-list a:hover::before {
  opacity: 1;
}

.documents-list a:hover::after {
  transform: scale(1.08);
}

.documents-list__title {
  position: relative;
  z-index: 1;
  max-width: 820px;
  color: var(--color-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.documents-list__arrow {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-dark);
  box-shadow: 0 8px 20px rgba(57, 45, 36, 0.06);
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.documents-list__arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.documents-list a:hover .documents-list__arrow {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
  transform: translate(3px, -3px);
}

.documents-list a:nth-child(even):hover .documents-list__arrow {
  border-color: #63B386;
  background: #63B386;
}

@media (max-width: 640px) {
  .documents-list {
    gap: 12px;
  }

  .documents-list a {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 16px;
    min-height: 92px;
    padding: 22px 20px;
    border-radius: 22px;
  }

  .documents-list__title {
    font-size: 18px;
  }

  .documents-list__arrow {
    width: 42px;
    height: 42px;
  }
}

/* ==============================
   Footer
================================ */
.footer {
  padding: 70px 0 24px;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.72);
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 50px;
}

.logo--footer {
  margin-bottom: 20px;
  color: var(--color-white);
}

.footer__top p {
  max-width: 480px;
  margin-bottom: 0;
}

.footer__contacts {
  display: grid;
  gap: 10px;
  color: var(--color-white);
  font-weight: 700;
  text-align: right;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.scroll-top {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 14px 30px rgba(255, 134, 69, 0.30);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==============================
   Responsive
================================ */
@media (max-width: 1024px) {
  .section {
    padding: 90px 0;
  }

  .course__layout {
    grid-template-columns: 1fr 360px;
  }

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

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 390px);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    padding: 80px 28px 40px;
    background: var(--color-white);
    color: var(--color-dark);
    box-shadow: -20px 0 50px rgba(17, 24, 39, 0.16);
    transform: translateX(105%);
    transition: transform 0.25s ease;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 19px;
  }

  .nav__button {
    margin-top: 14px;
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
  }

  .menu-toggle.is-active {
    position: fixed;
    z-index: 1100;
    top: 16px;
    right: 20px;
    background: var(--color-light);
  }

  .menu-toggle.is-active span {
    background: var(--color-dark);
  }

  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 700px;
  }

  .program-grid,
  .course__intro,
  .course__layout {
    grid-template-columns: 1fr;
  }

  .course__intro {
    gap: 18px;
  }

  .course__modules {
    position: static;
  }

  .section-heading--row {
    display: block;
  }

  .documents-list {
    grid-template-columns: 1fr;
  }
}

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

  .section {
    padding: 72px 0;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 38px;
  }

  .hero {
    min-height: 680px;
    padding-top: 120px;
  }

  .program-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .program-card__actions .button,
  .program-card__actions .text-link {
    width: 100%;
    text-align: center;
  }

  .hero__meta {
    display: grid;
  }

  .program-card,
  .course__results,
  .course__modules {
    padding: 26px;
    border-radius: 24px;
  }

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

  .program-card__top {
    margin-bottom: 44px;
  }

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

  .footer__top,
  .footer__bottom {
    flex-direction: column;
  }

  .footer__contacts {
    text-align: left;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero {
    min-height: 720px;
  }

  .program-card h3 {
    font-size: 32px;
  }

  .documents-list a {
    align-items: flex-start;
  }
}


/* ==============================
   BStudy palette refinements
================================ */

.program-card:first-child {
  border-color: rgba(99, 179, 134, 0.28);
  background:
    linear-gradient(180deg, rgba(99, 179, 134, 0.07), rgba(255, 255, 255, 0) 42%),
    var(--color-white);
}

.program-card:first-child .program-card__number,
.program-card:first-child .text-link,
.course:not(.course--blue) .result-item span {
  color: #63B386;
}

.advantages-grid article:nth-child(even) span,


.documents-list a:nth-child(even) .documents-list__icon {
  background: #EAF5EF;
  color: #4C9A70;
}


.header.is-scrolled .nav__button {
  background: linear-gradient(145deg, #FF8645, #FF9A62);
}

.scroll-top {
  background: linear-gradient(145deg, #FF8645, #FF9A62);
}


@media (max-width: 640px) {
  .logo {
    width: 128px;
  }

  .logo__image {
    width: 128px;
  }

  .logo--footer {
    width: 145px;
  }

  .logo--footer .logo__image {
    width: 145px;
  }
}


/* ==============================
   Hero legal address
================================ */
.hero__address {
  max-width: 880px;
  margin-bottom: 0;
  font-weight: 500;
  line-height: 1.55;
  text-transform: uppercase;
}

/* ==============================
   Hero scroll arrow
================================ */
.hero-scroll {
  position: absolute;
  z-index: 3;
  right: 50%;
  bottom: 28px;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-white);
  transform: translateX(50%);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  animation: hero-arrow-float 1.8s ease-in-out infinite;
}

.hero-scroll:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-scroll svg {
  width: 30px;
  height: 16px;
  overflow: visible;
}

.hero-scroll path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes hero-arrow-float {
  0%,
  100% {
    transform: translate(50%, 0);
  }

  50% {
    transform: translate(50%, 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hero-scroll {
    bottom: 20px;
    width: 48px;
    height: 48px;
  }

  .hero-scroll svg {
    width: 26px;
  }
}


/* ==============================
   Yandex map and contact card
================================ */
.map-section {
  background: var(--color-white);
}

.map-frame {
  overflow: hidden;
  height: 580px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-light);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .map-frame {
    height: 440px;
  }
}

@media (max-width: 640px) {
  .map-frame {
    height: 360px;
    border-radius: 24px;
  }
}


/* ==============================
   Footer contacts
================================ */
.footer__contact-info {
  width: min(100%, 520px);
}

.footer__contact-info h3 {
  margin-bottom: 24px;
  color: var(--color-white);
  font-size: 28px;
}

.footer__contact-item {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__contact-item span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__contact-item p,
.footer__contact-item a {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.55;
}

.footer__contact-item a {
  color: var(--color-white);
  font-weight: 700;
}

@media (max-width: 820px) {
  .footer__top {
    flex-direction: column;
  }

  .footer__contact-info {
    width: 100%;
  }
}


@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.035em;
  }
}


/* ==============================
   Program cards refinement
================================ */
#programs .section-heading {
  margin-bottom: 36px;
}

#programs .section-heading .eyebrow {
  margin-bottom: 0;
}

.program-card h3 {
  margin-bottom: 28px;
}



.program-card__actions {
  margin-top: auto;
}

.program-card__actions .button {
  min-width: 210px;
}


/* ==============================
   Secondary program buttons
================================ */
.button--outline {
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-dark);
  box-shadow: none;
}

.button--outline:hover {
  border-color: var(--color-primary);
  background: #FFF7F2;
}

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

.button--outline-light:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.10);
}

.program-card__actions {
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .program-card__actions .button {
    width: 100%;
  }
}


/* ==============================
   Program card themes
================================ */
.program-card--data {
  border-color: var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
}

.program-card--data h3,
.program-card--data strong {
  color: var(--color-dark);
}

.program-card--business {
  border-color: rgba(99, 179, 134, 0.28);
  background: linear-gradient(135deg, #5FAE83 0%, #78C39D 100%);
  color: rgba(255, 255, 255, 0.88);
}

.program-card--business h3,
.program-card--business strong {
  color: var(--color-white);
}

.program-card--business .program-card__tag {
  color: rgba(255, 255, 255, 0.68);
}

/* ==============================
   Result icons
================================ */
.result-item {
  grid-template-columns: 44px 1fr;
}

.result-item__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #FFF0E8;
  color: var(--color-primary);
}

.result-item__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course--blue .result-item__icon {
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
}

.course__modules ol {
  margin-bottom: 0;
}


/* ==============================
   Data-driven courses
================================ */
.course {
  scroll-margin-top: 78px;
}



/* ==============================
   Trial CTA
================================ */
.trial-cta {
  padding: 84px 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(99, 179, 134, 0.18), transparent 28%),
    radial-gradient(circle at 82% 50%, rgba(255, 134, 69, 0.10), transparent 30%),
    #F7F5F2;
}

.trial-cta__inner {
  display: flex;
  justify-content: center;
}

.trial-cta__button {
  display: inline-flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100%, 760px);
  padding: 22px 26px 22px 34px;
  border: 1px solid rgba(99, 179, 134, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(135deg, #63B386 0%, #7FC49F 100%);
  color: var(--color-white);
  box-shadow: 0 24px 56px rgba(99, 179, 134, 0.28);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.trial-cta__button:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 66px rgba(99, 179, 134, 0.36);
}

.trial-cta__icon {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease;
}

.trial-cta__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trial-cta__button:hover .trial-cta__icon {
  transform: translate(3px, -3px);
}

@media (max-width: 640px) {
  .trial-cta {
    padding: 64px 0;
  }

  .trial-cta__button {
    min-height: 82px;
    gap: 18px;
    padding: 20px 20px 20px 24px;
    border-radius: 24px;
    font-size: 24px;
  }

  .trial-cta__icon {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }
}


/* ==============================
   Aligned program card rows
================================ */
.program-grid {
  align-items: stretch;
}

.program-card {
  display: grid;
  grid-template-rows:
    auto
    minmax(112px, auto)
    1fr
    auto;
}

.program-card__top {
  min-height: 62px;
}

.program-card h3 {
  min-height: 92px;
  display: flex;
  align-items: flex-start;
}

.program-card__facts {
  display: grid;
  gap: 0;
  margin: 0 0 26px;
}

.program-card__fact {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 28, 28, 0.10);
}

.program-card--business .program-card__fact {
  border-color: rgba(255, 255, 255, 0.18);
}

.program-card__fact dt {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.program-card--business .program-card__fact dt {
  color: rgba(255, 255, 255, 0.64);
}

.program-card__fact dd {
  margin: 0;
  color: var(--color-dark);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.program-card--business .program-card__fact dd {
  color: var(--color-white);
}


.program-card__actions {
  align-self: end;
  min-height: 54px;
}

@media (max-width: 820px) {
  .program-card {
    grid-template-rows: auto auto auto auto;
  }

  .program-card__top,
  .program-card h3,
  .program-card__actions {
    min-height: auto;
  }

  .program-card__facts {
    grid-template-rows: none;
  }

  .program-card__fact--empty {
    display: none;
  }
}


.program-card__facts {
  align-content: start;
}

.program-card__fact dt {
  margin: 0;
}

.program-card__fact dd {
  margin: 0;
}

@media (max-width: 820px) {
  .program-card h3 {
    min-height: auto;
  }
}


/* ==============================
   Mobile hero title overflow fix
================================ */
.hero__content,
.hero h1 {
  min-width: 0;
  max-width: 100%;
}

.hero h1 {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 640px) {
  .hero {
    overflow-x: hidden;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.7vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 28px;
  }
}


/* ==============================
   Centered section headings
================================ */
.section-heading--center {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading--center h2 {
  margin-bottom: 0;
}

/* ==============================
   Footer education links
================================ */
.footer__top > div:first-child {
  flex: 1 1 620px;
  min-width: 0;
}

.footer__education-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin-top: 26px;
}

.footer__education-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.4;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer__education-links a:hover {
  color: var(--color-white);
  transform: translateX(3px);
}

.footer__bottom--center {
  justify-content: center;
  text-align: center;
}

@media (max-width: 1024px) {
  .footer__top {
    align-items: flex-start;
  }

  .footer__education-links {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 820px) {
  .footer__top > div:first-child {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .footer__education-links {
    grid-template-columns: 1fr;
  }
}



/* ==============================
   Education table
================================ */
.education-table-section {
  padding-top: 72px;
  background: var(--color-white);
}

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

.education-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: 0 14px 36px rgba(57, 45, 36, 0.06);
  scrollbar-width: thin;
  scrollbar-color: #CFC8C1 transparent;
}

.education-table-wrap:focus {
  outline: 3px solid rgba(99, 179, 134, 0.22);
  outline-offset: 4px;
}

.education-table {
  width: 100%;
  min-width: 1900px;
  border-collapse: collapse;
  table-layout: fixed;
}

.education-table th,
.education-table td {
  padding: 18px 20px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.education-table th:last-child,
.education-table td:last-child {
  border-right: 0;
}

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

.education-table th {
  background: #F7F5F2;
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.education-table td {
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.55;
}

.education-table tbody tr:nth-child(even) td {
  background: rgba(99, 179, 134, 0.035);
}

.education-table th:nth-child(1),
.education-table td:nth-child(1) {
  width: 190px;
}

.education-table th:nth-child(2),
.education-table td:nth-child(2) {
  width: 240px;
}

.education-table th:nth-child(3),
.education-table td:nth-child(3) {
  width: 210px;
}

.education-table th:nth-child(4),
.education-table td:nth-child(4) {
  width: 350px;
}

.education-table th:nth-child(5),
.education-table td:nth-child(5) {
  width: 250px;
}

.education-table th:nth-child(6),
.education-table td:nth-child(6) {
  width: 150px;
}

.education-table th:nth-child(7),
.education-table td:nth-child(7) {
  width: 390px;
}

.education-table th:nth-child(8),
.education-table td:nth-child(8) {
  width: 310px;
}

@media (max-width: 640px) {
  .education-table-section {
    padding-top: 56px;
  }

  .education-table-wrap {
    border-radius: 20px;
  }

  .education-table th,
  .education-table td {
    padding: 16px;
  }

  .education-table th {
    font-size: 13px;
  }

  .education-table td {
    font-size: 14px;
  }
}


/* ==============================
   Prevent splitting words in hero title
================================ */
.hero h1 {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(27px, 7.8vw, 38px);
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 25px;
  }
}
