:root {
  --ink: #17211d;
  --muted: #65716c;
  --paper: #fbfaf7;
  --paper-2: #f0eee7;
  --line: rgba(23, 33, 29, 0.12);
  --green: #245e4f;
  --green-2: #dfece4;
  --red: #9e1f32;
  --red-2: #f4e4e6;
  --gold: #c7a15b;
  --blue: #dbe9ef;
  --shadow: 0 24px 60px rgba(31, 42, 38, 0.13);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.18s ease, background 0.18s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 10px 30px rgba(31, 42, 38, 0.08);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  color: #33413b;
}

.nav a,
.header-action,
.site-footer a {
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--red);
}

.header-contact {
  display: none;
  color: #33413b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.header-contact:hover {
  color: var(--red);
}

.header-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-weight: 700;
}

.section {
  padding: 92px 0;
}

.section-dark {
  color: #fff;
  background: #0d1714;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 68px 0 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 23, 20, 0.96), rgba(13, 23, 20, 0.78) 44%, rgba(13, 23, 20, 0.3)),
    radial-gradient(circle at 20% 20%, rgba(199, 161, 91, 0.18), transparent 32%),
    linear-gradient(135deg, #15241f, #0d1714 50%, #263c34);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: #f0c16c;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
  font-weight: 740;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  line-height: 1.5;
}

.lead-small {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.button-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 18px 36px rgba(158, 31, 50, 0.24);
}

.button-primary:hover {
  background: #861a2b;
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.button.full {
  width: 100%;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.hero-facts div {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts strong {
  font-size: 23px;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero-portrait {
  position: relative;
  align-self: stretch;
  min-height: 610px;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0 0 54px 0;
  box-shadow: var(--shadow);
}

.portrait-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(13, 23, 20, 0.78);
  backdrop-filter: blur(14px);
}

.portrait-caption strong,
.portrait-caption span {
  display: block;
}

.portrait-caption span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}

.rich-text {
  color: #34413b;
  font-size: 19px;
}

.section-head {
  max-width: 740px;
  margin-bottom: 42px;
}

.section-head.wide {
  max-width: 930px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.results {
  background: #fff;
}

.seo-path {
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

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

.seo-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.seo-grid h3 {
  font-size: 21px;
}

.search-clusters {
  background: var(--paper-2);
}

.search-clusters strong {
  color: var(--green);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.result-grid article,
.format-cards article,
.price-card,
.person-card,
.program-list details,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.result-grid article {
  min-height: 246px;
  padding: 26px;
}

.mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--green-2);
  color: var(--green);
  font-weight: 800;
}

.program {
  background: var(--paper-2);
}

.program-list {
  display: grid;
  gap: 12px;
}

details {
  overflow: hidden;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.program-list summary {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
}

.program-list summary span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.program-list summary strong {
  font-size: 23px;
  line-height: 1.22;
}

.details-body {
  padding: 0 28px 28px 164px;
  color: #34413b;
}

.details-body p {
  max-width: 780px;
}

.details-body ul,
.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.details-body li,
.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 11px 0;
}

.details-body li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.format-grid,
.diploma-grid,
.author-grid,
.price-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 56px;
  align-items: start;
}

.format-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.format-cards article {
  padding: 24px;
}

.format-cards strong,
.format-cards span {
  display: block;
}

.format-cards span {
  margin: 8px 0 12px;
  color: var(--red);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
}

.diploma {
  background: #fff;
}

.diploma-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.diploma-card img {
  border-radius: 5px;
}

.author {
  background: linear-gradient(180deg, var(--paper) 0%, #fff 100%);
}

.author-photo img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.author-copy {
  padding-top: 24px;
}

.check-list {
  color: #34413b;
}

.curators {
  background: var(--paper-2);
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.person-grid.single {
  grid-template-columns: minmax(280px, 420px);
}

.person-card {
  overflow: hidden;
  background: #fff;
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

.person-card h3,
.person-card p {
  margin-left: 22px;
  margin-right: 22px;
}

.person-card h3 {
  margin-top: 22px;
}

.person-card p:last-child {
  margin-bottom: 24px;
}

.role {
  color: var(--red);
  font-weight: 800;
}

.price {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 23, 20, 0.94), rgba(21, 52, 44, 0.92)),
    var(--green);
}

.price .eyebrow {
  color: #f0c16c;
}

.price .lead-small {
  color: rgba(255, 255, 255, 0.75);
}

.price-card {
  padding: 30px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.price-card-top {
  display: grid;
  gap: 8px;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.price-card-top span {
  color: var(--muted);
  font-weight: 800;
}

.price-card-top strong {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.95;
}

.reviews {
  background: #fff;
}

.video-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.video-review-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111a17;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-review-card h3 {
  margin: 18px 20px 20px;
  font-size: 19px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list summary {
  padding: 22px 24px;
  font-weight: 800;
}

.faq-list p {
  padding: 0 24px 22px;
  margin: 0;
  color: #34413b;
}

.site-footer {
  padding: 52px 0;
  border-top: 1px solid var(--line);
  background: #111a17;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.2fr;
  gap: 42px;
  align-items: start;
}

.footer-brand {
  color: #fff;
  margin-bottom: 20px;
}

.site-footer h3 {
  color: #fff;
  font-size: 16px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer span {
  display: block;
  margin: 8px 0;
}

.site-footer p a {
  display: inline;
}

.socials {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.socials img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-contacts {
  justify-self: start;
}

.footer-contact-widget {
  display: grid;
  gap: 18px;
  width: min(100%, 360px);
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.footer-contact-widget .eyebrow {
  color: rgba(255, 255, 255, 0.58);
}

.footer-contact-widget p {
  margin: 0;
}

.footer-contact-widget h3 {
  margin: 4px 0 10px;
}

.footer-contact-widget .button {
  width: 100%;
  color: #fff;
}

.meta-note {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 14, 12, 0.62);
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  padding: 34px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  font-size: 30px;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  cursor: pointer;
  font-size: 24px;
}

.payment-page {
  background: #eef1ea;
}

.payment-section {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}

.payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: start;
}

.payment-copy h1 {
  color: var(--green);
}

.payment-copy .lead {
  color: var(--ink);
}

.payment-summary {
  margin-top: 26px;
}

.payment-widget {
  min-height: 520px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 14px;
  }

  .nav {
    display: none;
  }

  .header-contact {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .two-col,
  .format-grid,
  .diploma-grid,
  .author-grid,
  .price-grid,
  .faq-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    min-height: 520px;
  }

  .seo-grid,
  .result-grid,
  .person-grid,
  .video-review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-body {
    padding-left: 28px;
  }
}

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

  .site-header {
    min-height: 66px;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 12px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .header-contact {
    font-size: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 44px 0 54px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts,
  .format-cards,
  .seo-grid,
  .result-grid,
  .person-grid,
  .video-review-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .hero-portrait {
    min-height: 500px;
  }

  .program-list summary {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px;
  }

  .program-list summary strong {
    font-size: 20px;
  }

  .details-body {
    padding: 0 22px 24px;
  }

  .price-card {
    padding: 24px;
  }

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

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

  .hero-portrait {
    min-height: 430px;
  }

  .portrait-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 360px) {
  h1,
  h2,
  h3,
  p,
  a,
  strong,
  span {
    overflow-wrap: anywhere;
  }

  .brand span {
    display: none;
  }

  .site-header {
    gap: 8px;
  }
}
