@font-face {
  font-family: "BenzinLocal";
  src: url("fonts/Benzin/Benzin-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BenzinLocal";
  src: url("fonts/Benzin/Benzin-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterTight";
  src: url("fonts/Inter/InterTight-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterTight";
  src: url("fonts/Inter/InterTight-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterTight";
  src: url("fonts/Inter/InterTight-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NyghtSerifCyrItalic";
  src: url("fonts/nyght_serif/nyght/TTF/NyghtSerif-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #edf4ff;
  --surface: #ffffff;
  --surface-soft: #f3f8ff;
  --text: #10192a;
  --text-muted: rgba(16, 25, 42, 0.72);
  --line: rgba(16, 25, 42, 0.12);
  --accent: #4a9fff;
  --accent-strong: #2f7ce8;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1160px, calc(100% - 3rem));
  --shadow-soft: 0 16px 50px rgba(9, 17, 33, 0.08);
  --shadow-card: 0 10px 30px rgba(12, 21, 39, 0.08);
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "InterTight", "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(74, 159, 255, 0.18), transparent 30%),
    radial-gradient(circle at 100% 12%, rgba(34, 109, 220, 0.12), transparent 36%),
    var(--bg);
}

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

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

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

.site-wrap {
  min-height: 100dvh;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(226, 239, 255, 0.7), rgba(247, 252, 255, 0.95));
}

.section-contrast {
  background: linear-gradient(180deg, rgba(74, 159, 255, 0.07), rgba(74, 159, 255, 0.13));
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "BenzinLocal", "Trebuchet MS", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.7vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.04rem, 2.1vw, 1.35rem);
}

.nyght-accent {
  font-family: "NyghtSerifCyrItalic", "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.07em;
  line-height: inherit;
  letter-spacing: 0.004em;
  text-transform: none;
}

p {
  margin: 0;
}

.top-stage {
  background:
    linear-gradient(124deg, rgba(6, 28, 70, 0.58), rgba(8, 38, 86, 0.34)),
    url("public/фонone.jpg") center/cover no-repeat;
  color: #fff;
  padding-top: var(--header-height);
  padding-bottom: 2.4rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 35;
  backdrop-filter: blur(9px);
  background: rgba(8, 27, 66, 0.36);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1rem;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  font-family: "BenzinLocal", "Trebuchet MS", sans-serif;
  line-height: 1;
}

.brand-text {
  display: grid;
  align-items: center;
  gap: 0.04rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  font-family: "BenzinLocal", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.36), transparent 46%),
    linear-gradient(155deg, rgba(120, 184, 255, 0.95), rgba(39, 109, 215, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(11, 37, 79, 0.32);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: auto -30% -62% auto;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.brand-logo {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-family: "InterTight", "Segoe UI", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.main-nav a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.83rem 1.35rem;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 24px rgba(74, 159, 255, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 15px 30px rgba(74, 159, 255, 0.42);
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(180deg, #aeb8c6, #959fb0);
  opacity: 1;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  padding: 0.65rem 1.1rem;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--text-muted);
}

.hero {
  padding-top: 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 1.4rem;
  align-items: stretch;
}

.hero-content,
.hero-media {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.hero-content {
  order: 1;
  background: rgba(9, 29, 69, 0.63);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
}

.hero-kicker {
  margin-bottom: 0.6rem;
  color: #d5e8ff;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.hero-subtitle {
  margin-top: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.99rem;
  font-weight: 500;
  max-width: 42ch;
}

.hero-points {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.58rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.92);
}

.point-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(74, 159, 255, 0.26);
  border: 1px solid rgba(136, 196, 255, 0.72);
  color: #fff;
  font-size: 0.8rem;
}

.hero-note {
  margin: 1.2rem 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.01rem;
  max-width: 36ch;
}

.hero-media {
  order: 2;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(13, 40, 88, 0.26);
  padding: 0.8rem;
  min-height: 530px;
}

.image-placeholder {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px dashed rgba(16, 25, 42, 0.25);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(16, 25, 42, 0.02),
      rgba(16, 25, 42, 0.02) 14px,
      rgba(16, 25, 42, 0.05) 14px,
      rgba(16, 25, 42, 0.05) 28px
    ),
    #fdfefe;
  color: rgba(16, 25, 42, 0.68);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "BenzinLocal", "Trebuchet MS", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 1rem;
}

.image-placeholder--hero,
.image-placeholder--about {
  height: 100%;
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.44);
}

.image-placeholder--hero {
  background:
    linear-gradient(152deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01)),
    url("public/demo.png") center/cover no-repeat;
}

.image-placeholder--about {
  background: url("public/s2.jpg") center center / contain no-repeat;
  background-color: #f4f8ff;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.2rem;
  align-items: stretch;
}

.about-media,
.about-content {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.about-media {
  padding: 0;
  min-height: 0;
  align-self: stretch;
  display: flex;
  overflow: hidden;
  background: #f4f8ff;
}

.about-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-content {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  display: grid;
  gap: 0.88rem;
}

.about-content p {
  color: var(--text-muted);
}

.about-content--feature h2,
.about-content--feature p {
  color: #000;
}

.about-content--feature h2 {
  position: relative;
  padding-bottom: 0.55rem;
}

.about-content--feature h2::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.26));
}

.about-content--feature .about-lead {
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  font-weight: 600;
  line-height: 1.55;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.06), rgba(74, 159, 255, 0.1));
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
}

.about-content--feature .about-highlight,
.about-content--feature .about-cert,
.about-content--feature .about-results {
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 255, 0.78));
  padding: 0.9rem 1rem;
  line-height: 1.72;
}

.about-content--feature .about-highlight {
  box-shadow: inset 4px 0 0 #4a9fff;
}

.about-content--feature .about-cert {
  box-shadow: inset 4px 0 0 #2d8eff;
}

.about-content--feature .about-results {
  box-shadow: inset 4px 0 0 #1f78dc;
}

.positioning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.positioning-card,
.positioning-result,
.benefit-card,
.video-card,
.case-card,
.case-name,
.test-shell,
.trial-card,
.flipped-class-card,
.format-card,
.course-card,
.final-cta-card,
.faq-list details {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.positioning-card {
  padding: 1.1rem;
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  background:
    linear-gradient(160deg, rgba(74, 159, 255, 0.08), rgba(74, 159, 255, 0.02)),
    var(--surface);
  position: relative;
  overflow: hidden;
}

.positioning-card::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(74, 159, 255, 0.22), rgba(74, 159, 255, 0));
}

.positioning-index {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: rgba(74, 159, 255, 0.15);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.92rem;
}

.positioning-card h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.34rem);
}

.positioning-card p {
  color: var(--text-muted);
  font-weight: 500;
}

.positioning-result {
  margin-top: 0.9rem;
  padding: 1.1rem;
  display: grid;
  gap: 0.85rem;
  background:
    linear-gradient(160deg, rgba(74, 159, 255, 0.11), rgba(74, 159, 255, 0.03)),
    var(--surface);
}

.positioning-result ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.positioning-result li {
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 159, 255, 0.26);
  background: rgba(74, 159, 255, 0.08);
  font-weight: 600;
  font-size: 0.9rem;
}

.positioning-result p {
  font-size: 1.02rem;
  font-weight: 600;
}

.benefits-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-placeholder--benefit {
  min-height: 172px;
  border-radius: 16px;
  border-color: rgba(74, 159, 255, 0.24);
  background:
    linear-gradient(140deg, rgba(74, 159, 255, 0.11), rgba(74, 159, 255, 0.03)),
    repeating-linear-gradient(
      -45deg,
      rgba(16, 25, 42, 0.01),
      rgba(16, 25, 42, 0.01) 14px,
      rgba(16, 25, 42, 0.03) 14px,
      rgba(16, 25, 42, 0.03) 28px
    ),
    #fafdff;
}

.benefit-card-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(74, 159, 255, 0.2);
  background: #f1f7ff;
  aspect-ratio: 16 / 10;
}

.benefit-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.benefit-card {
  padding: 0.8rem;
  display: grid;
  gap: 0.72rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98)),
    var(--surface);
}

.benefit-card-content {
  padding: 0.1rem 0.1rem 0.2rem;
  display: grid;
  gap: 0.4rem;
}

.benefit-card-content p {
  color: var(--text-muted);
}

.reviews-showcase {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(1rem, 4vw, 3rem);
  padding-block: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 1rem;
}

.reviews-showcase .section-head {
  max-width: 980px;
  margin: 0 auto 1.3rem;
}

.reviews-showcase .section-head p {
  color: rgba(16, 25, 42, 0.78);
}

.photo-reviews,
.video-reviews-slider {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: clamp(0.9rem, 2vw, 1.2rem);
  max-width: min(1220px, 100%);
  margin-inline: auto;
  width: 100%;
}

.photo-reviews {
  display: grid;
  gap: 0.7rem;
}

.photo-reviews-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  text-align: center;
}

.photo-reviews-head h3,
.video-reviews-slider h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.photo-reviews-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
}

.photo-reviews-nav--bottom {
  margin-top: 0.5rem;
}

.photo-nav-btn {
  min-height: 48px;
  border-radius: 14px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.72rem 1.05rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #2f7ce8, #145bbb);
  box-shadow: 0 14px 26px rgba(20, 91, 187, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.photo-nav-btn--back {
  min-width: 46px;
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0;
  font-size: 1.2rem;
  color: #7da0d3;
  background: #f0f5ff;
  box-shadow: inset 0 0 0 1px rgba(125, 160, 211, 0.25);
}

.photo-nav-btn--next {
  min-width: 132px;
  border-radius: 999px;
  padding-inline: 1.2rem;
  background: linear-gradient(180deg, #78b8ff, #4a9fff);
  box-shadow: 0 14px 26px rgba(74, 159, 255, 0.32);
}

.photo-nav-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px rgba(20, 91, 187, 0.46);
  filter: saturate(1.08);
}

.photo-nav-btn:active {
  transform: translateY(0);
}

.photo-nav-btn[disabled] {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.photo-reviews-viewport {
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  border: 0;
  background: #eaf2ff;
}

.photo-reviews-track {
  display: flex;
  transition: transform 0.42s ease;
}

.photo-review-slide {
  min-width: 100%;
  position: relative;
  background: #fff;
  aspect-ratio: 23 / 8;
  display: grid;
  place-items: center;
  padding: 0;
}

.photo-review-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.photo-review-card {
  border-radius: 24px;
  border: 1px solid rgba(16, 25, 42, 0.12);
  overflow: hidden;
  background: #fff;
}

.photo-review-info {
  padding: clamp(1rem, 2.4vw, 1.5rem);
  display: grid;
  gap: 0.75rem;
  background:
    radial-gradient(circle at 78% 84%, rgba(74, 159, 255, 0.08), transparent 40%),
    #fff;
}

.photo-review-info h4 {
  margin: 0;
  font-family: "BenzinLocal", "Trebuchet MS", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  letter-spacing: -0.01em;
  color: #16335f;
}

.photo-review-info p {
  margin: 0;
  color: #385e95;
  font-size: clamp(0.98rem, 1.5vw, 1.05rem);
}

.photo-review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.photo-review-tags span {
  border-radius: 999px;
  border: 1px solid rgba(74, 159, 255, 0.38);
  color: #1d4d93;
  padding: 0.34rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(74, 159, 255, 0.06);
}

.photo-review-caption {
  position: absolute;
  inset: auto 0 0 0;
  color: #fff;
  padding: 0.95rem 0.95rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(7, 15, 32, 0.9));
  display: grid;
  gap: 0.3rem;
}

.photo-review-caption p {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.9);
}

.photo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(16, 25, 42, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.photo-dot.is-active {
  background: #2f7ce8;
  transform: scale(1.35);
}

.video-reviews-slider {
  display: grid;
  gap: 0.75rem;
  max-width: min(1020px, 100%);
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% -10%, rgba(74, 159, 255, 0.2), transparent 42%),
    radial-gradient(circle at 88% 110%, rgba(120, 184, 255, 0.18), transparent 40%),
    #fff;
  border: 1px solid rgba(74, 159, 255, 0.2);
  box-shadow: 0 20px 44px rgba(34, 83, 153, 0.14);
}

.video-reviews-slider-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
}

.video-reviews-slider-head h3 {
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  color: #153968;
}

.video-reviews-viewport {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(16, 25, 42, 0.12);
  background: linear-gradient(180deg, #f5f9ff, #fbfdff);
  width: min(760px, 100%);
  margin-inline: auto;
}

.video-reviews-track {
  display: flex;
  transition: transform 0.42s ease;
}

.video-review-slide {
  min-width: 100%;
  padding: 0.7rem 0.7rem 0.8rem;
  display: grid;
  place-items: center;
}

.video-review-frame {
  width: min(330px, 100%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(16, 25, 42, 0.16);
  box-shadow: 0 10px 20px rgba(10, 22, 42, 0.12);
  background: #000;
}

.video-review-frame video {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  background: #000;
}

.video-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.video-card {
  padding: 0.65rem;
  display: grid;
  gap: 0.68rem;
}

.video-card-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.video-card-preview {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 16px;
  border: 1px solid rgba(74, 159, 255, 0.22);
  background:
    radial-gradient(circle at 20% 16%, rgba(74, 159, 255, 0.26), transparent 45%),
    radial-gradient(circle at 84% 84%, rgba(74, 159, 255, 0.2), transparent 50%),
    linear-gradient(145deg, #f8fbff, #ecf5ff);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card-trigger:hover .video-card-preview {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47, 124, 232, 0.16);
}

.video-card-play {
  width: 66px;
  aspect-ratio: 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.24rem;
  padding-left: 0.2rem;
  color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 22px rgba(47, 124, 232, 0.3);
}

.video-card-meta {
  display: grid;
  gap: 0.2rem;
  padding: 0 0.2rem 0.25rem;
}

.video-card-meta p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.video-modal,
.course-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.video-modal-backdrop,
.course-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 23, 48, 0.62);
}

.video-modal-dialog,
.course-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(12, 24, 44, 0.26);
  padding: clamp(1rem, 2vw, 1.35rem);
  display: grid;
  gap: 0.85rem;
  animation: fade-up 0.28s ease;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.video-modal-dialog p,
.course-modal-dialog p {
  color: var(--text-muted);
}

.video-modal-player {
  border-radius: 16px;
  border: 1px solid rgba(74, 159, 255, 0.25);
  overflow: hidden;
  min-height: 320px;
  background: #f7fbff;
}

.video-modal-player iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.video-modal-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.2rem;
  color: var(--text-muted);
  background:
    radial-gradient(circle at 26% 20%, rgba(74, 159, 255, 0.25), transparent 45%),
    linear-gradient(160deg, #f6faff, #eef6ff);
}

.modal-close {
  width: 36px;
  height: 36px;
  justify-self: end;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 1.18rem;
  line-height: 1;
}

.modal-close:hover {
  border-color: rgba(74, 159, 255, 0.4);
  background: rgba(74, 159, 255, 0.1);
}

body.modal-open {
  overflow: hidden;
}

.cases-layout {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1rem;
  align-items: start;
}

.cases-sidebar {
  display: grid;
  gap: 0.75rem;
}

.case-thumb {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 0.55rem 0.5rem;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.case-thumb:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(74, 159, 255, 0.16);
}

.case-thumb.is-active {
  border-color: rgba(74, 159, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(74, 159, 255, 0.16), var(--shadow-card);
}

.case-thumb-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: "BenzinLocal", "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(74, 159, 255, 0.95), rgba(47, 124, 232, 0.95)),
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.28), transparent 46%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.case-thumb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-thumb-meta {
  display: grid;
  line-height: 1.08;
  justify-items: center;
  gap: 0.2rem;
}

.case-thumb-meta strong {
  font-size: 0.85rem;
  font-family: "BenzinLocal", "Trebuchet MS", sans-serif;
  font-weight: 600;
}

.case-thumb-meta small {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.case-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) 1fr 1fr;
  grid-template-areas:
    "photo intro plan"
    "photo point-a point-b";
  gap: 0.85rem;
  animation: case-in 0.35s ease;
}

.case-main[hidden] {
  display: none;
}

.case-photo {
  grid-area: photo;
  border-radius: 24px;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
}

.case-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.case-photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(74, 159, 255, 0.34), transparent 44%),
    radial-gradient(circle at 82% 18%, rgba(16, 25, 42, 0.2), transparent 52%),
    linear-gradient(160deg, #f7fafc, #edf3f8);
}

.case-card {
  padding: 1rem 1.05rem;
}

.case-card h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1rem, 1.7vw, 1.24rem);
}

.case-card p {
  margin: 0;
  color: var(--text-muted);
}

.case-card ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
}

.case-card-intro {
  grid-area: intro;
}

.case-card-plan {
  grid-area: plan;
}

.case-card-point-a {
  grid-area: point-a;
}

.case-card-point-b {
  grid-area: point-b;
  background: linear-gradient(180deg, rgba(74, 159, 255, 0.12), rgba(74, 159, 255, 0.06));
  border-color: rgba(74, 159, 255, 0.34);
}

.case-point {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(74, 159, 255, 0.15);
  color: #111318;
  padding: 0.34rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.case-name {
  position: relative;
  z-index: 2;
  padding: 0.85rem 0.95rem;
  max-width: 440px;
  width: 100%;
  border-width: 1.5px;
  border-color: rgba(74, 159, 255, 0.5);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(3px);
  transform: rotate(-2deg);
}

.case-name h3 {
  margin: 0 0 0.35rem;
  font-size: 1.18rem;
}

.case-name p {
  margin: 0;
  color: var(--text-muted);
}

@keyframes case-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.test-shell {
  padding: clamp(1rem, 2.4vw, 1.7rem);
}

.test-panel {
  display: none;
  gap: 0.9rem;
}

.test-panel.is-active {
  display: grid;
  animation: fade-up 0.28s ease;
}

.test-label {
  display: inline-flex;
  justify-self: start;
  border-radius: 999px;
  border: 1px solid rgba(74, 159, 255, 0.26);
  background: rgba(74, 159, 255, 0.08);
  padding: 0.26rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.test-intro-text {
  color: var(--text-muted);
  max-width: 64ch;
}

.test-discount {
  margin-top: -0.1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(74, 159, 255, 0.3);
  background: rgba(74, 159, 255, 0.1);
  color: #144489;
  font-weight: 600;
}

.test-discount--result {
  margin-top: 0.2rem;
}

.test-warning {
  margin: 0.2rem 0 0;
  color: #b5382e;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid rgba(181, 56, 46, 0.28);
  background: rgba(181, 56, 46, 0.08);
  padding: 0.55rem 0.72rem;
}

.exam-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.exam-picker--cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.exam-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  padding: 0.9rem;
  display: grid;
  gap: 0.35rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.exam-card strong {
  font-family: "BenzinLocal", "Trebuchet MS", sans-serif;
  font-size: 0.97rem;
}

.exam-card span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.exam-card:hover,
.exam-card.is-active {
  border-color: rgba(74, 159, 255, 0.38);
  background: rgba(74, 159, 255, 0.09);
  transform: translateY(-2px);
}

.test-progress-head {
  display: grid;
  gap: 0.45rem;
}

.test-progress {
  color: var(--text-muted);
}

.test-progress-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(16, 25, 42, 0.12);
}

.test-progress-value {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.25s ease;
}

.test-question-topic {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 600;
}

.test-options {
  display: grid;
  gap: 0.55rem;
}

.option-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  padding: 0.72rem 0.92rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.option-btn:hover,
.option-btn.is-active {
  border-color: rgba(74, 159, 255, 0.36);
  background: rgba(74, 159, 255, 0.11);
}

.test-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.test-result {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.test-recommendations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.test-recommendations li {
  border-radius: 12px;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(74, 159, 255, 0.2);
  background: rgba(74, 159, 255, 0.08);
  color: var(--text);
}

.lead-form {
  margin-top: 0.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.lead-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.lead-form input {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.72rem 0.78rem;
  color: var(--text);
}

.exam-choice-set {
  margin: 0;
  padding: 0;
  border: 0;
  grid-column: 1 / -1;
  display: grid;
  gap: 0.4rem;
}

.exam-choice-set legend {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.exam-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.exam-choice {
  cursor: pointer;
}

.exam-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.exam-choice span {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbfdff;
  min-height: 54px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.exam-choice input:checked + span {
  border-color: rgba(74, 159, 255, 0.4);
  background: rgba(74, 159, 255, 0.12);
}

.lead-form button {
  grid-column: 1 / -1;
  justify-self: start;
}

.consent-set {
  margin: 0;
  padding: 0;
  border: 0;
  grid-column: 1 / -1;
  display: grid;
  gap: 0.48rem;
}

.consent-set legend {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.consent-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 0.55rem;
  cursor: pointer;
}

.consent-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(74, 159, 255, 0.42);
  background: #fff;
  margin-top: 0.1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.consent-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.consent-item input:checked + .consent-box {
  border-color: rgba(74, 159, 255, 0.7);
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.consent-item input:checked + .consent-box::after {
  transform: rotate(45deg) scale(1);
}

.consent-item input:focus-visible + .consent-box {
  box-shadow: 0 0 0 3px rgba(74, 159, 255, 0.2);
}

.consent-text {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.consent-text a {
  color: #1c5fd4;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit-status {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 12px;
  padding: 0.62rem 0.74rem;
  border: 1px solid var(--line);
  font-weight: 500;
}

.form-submit-status.is-pending {
  border-color: rgba(74, 159, 255, 0.3);
  background: rgba(74, 159, 255, 0.1);
  color: #123c7d;
}

.form-submit-status.is-success {
  border-color: rgba(33, 144, 83, 0.35);
  background: rgba(33, 144, 83, 0.12);
  color: #1a5d39;
}

.form-submit-status.is-error {
  border-color: rgba(184, 62, 62, 0.35);
  background: rgba(184, 62, 62, 0.12);
  color: #7b1f1f;
}

.trial-card {
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;
  display: grid;
  gap: 0.45rem;
  background:
    linear-gradient(160deg, rgba(74, 159, 255, 0.12), rgba(74, 159, 255, 0.04)),
    var(--surface);
}

.trial-badge {
  justify-self: start;
  border-radius: 999px;
  padding: 0.24rem 0.65rem;
  border: 1px solid rgba(74, 159, 255, 0.32);
  background: rgba(74, 159, 255, 0.12);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trial-card p {
  color: var(--text-muted);
  max-width: 60ch;
}

.flipped-class-card {
  padding: 1rem 1.05rem;
  margin-bottom: 0.9rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  background:
    linear-gradient(160deg, rgba(74, 159, 255, 0.11), rgba(74, 159, 255, 0.03)),
    var(--surface);
}

.flipped-class-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-strong);
  border: 1px solid rgba(74, 159, 255, 0.28);
  background: rgba(74, 159, 255, 0.11);
}

.flipped-class-card p {
  margin-top: 0.32rem;
  color: var(--text-muted);
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.format-card {
  padding: 1rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.55rem;
  align-content: stretch;
  height: 100%;
}

.format-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74, 159, 255, 0.3);
  background: rgba(74, 159, 255, 0.11);
  color: var(--accent-strong);
  font-family: "BenzinLocal", "Trebuchet MS", sans-serif;
  font-size: 1rem;
}

.format-card p {
  color: var(--text-muted);
}

.format-price {
  justify-self: start;
  margin-top: -0.05rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 159, 255, 0.35);
  background: rgba(74, 159, 255, 0.12);
  color: #1f4f94;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.24rem 0.62rem;
}

.format-media {
  min-height: 126px;
  margin-top: 0.35rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(74, 159, 255, 0.2);
  background: #f2f8ff;
  aspect-ratio: 1 / 1;
  align-self: end;
}

.format-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.course-card {
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.course-media {
  min-height: 170px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(74, 159, 255, 0.22);
  background: #f4f9ff;
  aspect-ratio: 16 / 10;
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-card p {
  color: var(--text-muted);
}

.course-footer {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.course-price {
  font-family: "BenzinLocal", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  color: var(--text);
}

.course-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-actions .btn {
  width: auto;
}

#course-modal-examples {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
}

.course-modal-dialog {
  width: min(820px, 100%);
}

.course-modal-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(74, 159, 255, 0.24);
  background: #f3f8ff;
}

.course-modal-media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.course-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-modal-tags span {
  border-radius: 999px;
  border: 1px solid rgba(74, 159, 255, 0.34);
  background: rgba(74, 159, 255, 0.08);
  color: #23508f;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.28rem 0.7rem;
}

.course-modal-block {
  border-radius: 14px;
  border: 1px solid rgba(16, 25, 42, 0.1);
  background: #fbfdff;
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.course-modal-block h4 {
  margin: 0;
  font-size: 0.9rem;
  font-family: "BenzinLocal", "Trebuchet MS", sans-serif;
  color: #163a6b;
}

.course-modal-block--accent {
  border-color: rgba(74, 159, 255, 0.3);
  background:
    radial-gradient(circle at 90% 20%, rgba(74, 159, 255, 0.14), transparent 38%),
    #f4f9ff;
}

#course-modal-result {
  margin: 0;
  color: #2b5186;
  line-height: 1.5;
}

.course-modal-actions {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.course-selected-note {
  grid-column: 1 / -1;
  border-radius: 12px;
  border: 1px solid rgba(74, 159, 255, 0.28);
  background: rgba(74, 159, 255, 0.1);
  padding: 0.62rem 0.74rem;
  color: #144489;
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 0.62rem;
}

.faq-list details {
  padding: 0.9rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.final-cta {
  padding-bottom: 6rem;
}

.final-cta-card {
  padding: clamp(1.2rem, 2.8vw, 1.9rem);
  text-align: left;
  display: grid;
  gap: 0.8rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(74, 159, 255, 0.16), transparent 44%),
    var(--surface);
}

.final-cta-card p {
  color: var(--text-muted);
}

.legal-doc {
  max-width: 920px;
  margin: 0 auto;
  gap: 0.9rem;
}

.legal-doc h1 {
  font-size: clamp(1.6rem, 3.8vw, 2.45rem);
}

.legal-doc h2 {
  margin-top: 0.45rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.legal-meta {
  font-size: 0.9rem;
  color: rgba(16, 25, 42, 0.68);
}

.legal-doc p,
.legal-doc li {
  line-height: 1.55;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.legal-doc a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(440px, calc(100% - 2rem));
  z-index: 70;
  border-radius: 16px;
  border: 1px solid rgba(74, 159, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 249, 255, 0.96)),
    #fff;
  box-shadow: 0 18px 36px rgba(10, 25, 50, 0.18);
  padding: 0.9rem 0.95rem;
  display: grid;
  gap: 0.8rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cookie-banner-btn {
  min-width: 110px;
  justify-self: end;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer-grid {
  border-radius: 20px;
  border: 1px solid rgba(74, 159, 255, 0.22);
  background:
    radial-gradient(circle at 8% 8%, rgba(74, 159, 255, 0.16), transparent 36%),
    linear-gradient(180deg, #f7fbff, #eff6ff);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 0.85rem;
  align-items: start;
}

.footer-company,
.footer-contacts,
.footer-policies {
  display: grid;
  gap: 0.35rem;
}

.footer-company p,
.footer-contacts a,
.footer-policies a {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contacts a,
.footer-policies a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  justify-self: end;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 159, 255, 0.35);
  background: rgba(74, 159, 255, 0.14);
  color: #1f4f94;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.44rem 0.72rem;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-btn-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.42);
}

.footer-btn:hover {
  transform: translateY(-1px);
  background: rgba(74, 159, 255, 0.22);
}

.footer-btn--telegram {
  border-color: rgba(42, 171, 238, 0.52);
  background: linear-gradient(180deg, #2cb2f1, #2098d8);
  color: #fff;
  box-shadow: 0 9px 18px rgba(32, 152, 216, 0.3);
}

.footer-btn--telegram .footer-btn-icon {
  color: #1c8cc7;
}

.footer-btn--telegram:hover {
  background: linear-gradient(180deg, #39baf5, #249fde);
  box-shadow: 0 12px 22px rgba(32, 152, 216, 0.36);
}

.footer-btn--max {
  border-color: rgba(25, 32, 51, 0.58);
  background: linear-gradient(180deg, #1b2130, #101626);
  color: #f4f8ff;
  box-shadow: 0 9px 18px rgba(16, 22, 38, 0.32);
}

.footer-btn--max .footer-btn-icon {
  color: #9fd0ff;
  background: rgba(106, 163, 255, 0.18);
  border: 1px solid rgba(135, 194, 255, 0.36);
}

.footer-btn--max:hover {
  background: linear-gradient(180deg, #242c3f, #131a2d);
  box-shadow: 0 12px 22px rgba(16, 22, 38, 0.4);
}

.footer-policies {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.5rem 1.1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 420px;
  }

  .about-media {
    width: min(100%, 560px);
    margin-inline: auto;
    align-self: start;
  }

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

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

  .video-reviews-grid,
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .course-footer {
    display: grid;
  }

  .course-actions {
    flex-wrap: wrap;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-form button,
  .exam-choice-set {
    grid-column: auto;
  }

  .consent-set {
    grid-column: auto;
  }

  .exam-choice-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .cookie-banner {
    right: 0.7rem;
    bottom: 0.7rem;
    width: min(460px, calc(100% - 1.4rem));
  }
}

@media (max-width: 860px) {
  :root {
    --container: min(1160px, calc(100% - 1.4rem));
  }

  .section {
    padding: 4rem 0;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    left: 0.7rem;
    right: 0.7rem;
    margin-left: 0;
    background: rgba(8, 27, 66, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0.6rem;
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 40;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    border-radius: 10px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .positioning-grid,
  .formats-grid,
  .benefits-grid,
  .video-reviews-grid,
  .exam-picker--cards {
    grid-template-columns: 1fr;
  }

  .section-head {
    margin-bottom: 1.4rem;
  }

  .hero-content,
  .about-content {
    padding: 1.05rem;
  }

  .hero-media {
    order: 1;
    min-height: 320px;
  }

  .image-placeholder--hero {
    background:
      linear-gradient(152deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01)),
      url("public/demo.png") center 18% / cover no-repeat;
    background-color: rgba(9, 29, 69, 0.45);
  }

  .image-placeholder--about {
    background: url("public/s2.jpg") center center / contain no-repeat;
    background-color: #f4f8ff;
  }

  .hero-content {
    order: 2;
  }

  .about-media {
    min-height: 0;
    padding: 0;
    width: min(100%, 520px);
  }

  .about-photo {
    height: auto;
    object-fit: contain;
    object-position: center center;
  }

  .benefit-card,
  .format-card,
  .course-card {
    display: flex;
    flex-direction: column;
  }

  .benefit-card-media,
  .format-media,
  .course-media {
    order: 1;
  }

  .benefit-card-content {
    order: 2;
  }

  .format-card {
    grid-template-columns: 1fr;
  }

  .format-icon {
    order: 2;
  }

  .format-media {
    order: 1;
    margin-top: 0;
  }

  .format-card h3 {
    order: 3;
    margin-top: 0.15rem;
  }

  .format-card p {
    order: 4;
  }

  .course-card h3 {
    order: 2;
  }

  .course-card p {
    order: 3;
  }

  .course-footer {
    order: 4;
  }

  .reviews-showcase {
    padding-inline: 0.3rem;
    gap: 0.85rem;
  }

  .case-main {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "photo photo"
      "intro plan"
      "point-a point-b";
  }

  .cases-layout {
    grid-template-columns: 1fr;
  }

  .cases-sidebar {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .case-thumb {
    min-width: 106px;
  }

  .case-photo {
    min-height: 400px;
  }

  .case-name {
    max-width: 420px;
  }

  .photo-review-slide {
    aspect-ratio: 22 / 9;
  }

  .photo-reviews,
  .video-reviews-slider {
    row-gap: 0.65rem;
  }

  .photo-reviews-nav--bottom {
    justify-content: center;
  }

  .video-reviews-viewport {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 3.3rem 0;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-media {
    min-height: 300px;
  }

  .about-media {
    width: min(100%, 420px);
    margin-inline: auto;
    padding: 0;
  }

  .image-placeholder--hero {
    background-position: center 16%;
    background-size: cover;
  }

  .image-placeholder--about {
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .hero-content,
  .hero-media,
  .about-content,
  .about-media,
  .reviews-showcase,
  .photo-reviews,
  .video-reviews-slider,
  .video-review-frame,
  .positioning-card,
  .positioning-result,
  .benefit-card,
  .video-card,
  .case-card,
  .case-name,
  .test-shell,
  .trial-card,
  .flipped-class-card,
  .format-card,
  .course-card,
  .faq-list details,
  .final-cta-card {
    border-radius: 18px;
  }

  .btn {
    width: 100%;
  }

  .brand-sub {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.86rem;
  }

  .video-modal-dialog,
  .course-modal-dialog {
    border-radius: 18px;
  }

  .video-modal-player,
  .video-modal-player iframe,
  .video-modal-placeholder {
    min-height: 240px;
  }

  .photo-nav-btn {
    width: auto;
    min-height: 46px;
    border-radius: 14px;
    font-size: 1.02rem;
    padding: 0.62rem 0.88rem;
  }

  .photo-nav-btn--back {
    min-width: 48px;
    padding-inline: 0.8rem;
  }

  .photo-nav-btn--next {
    min-width: 120px;
  }

  .photo-review-slide {
    aspect-ratio: 18 / 10;
  }

  .photo-review-info {
    padding: 0.95rem;
    gap: 0.62rem;
  }

  .video-reviews-viewport {
    width: min(240px, 100%);
  }

  .case-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "intro"
      "plan"
      "point-a"
      "point-b";
  }

  .case-thumb {
    min-width: 94px;
    border-radius: 14px;
    padding: 0.45rem;
  }

  .case-thumb-avatar {
    width: 64px;
    height: 64px;
  }

  .case-photo {
    min-height: 320px;
    border-radius: 18px;
  }

  .case-name {
    max-width: 100%;
    transform: rotate(-1deg);
  }

  .course-modal-dialog {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: calc(100dvh - 1rem);
  }

  #course-modal-media {
    order: 1;
  }

  #course-modal-title {
    order: 2;
  }

  #course-modal-description {
    order: 3;
  }

  #course-modal-tags {
    order: 4;
  }

  .course-modal-block {
    order: 5;
  }

  .course-modal-actions {
    order: 6;
  }

  .test-actions {
    display: grid;
  }

  .lead-form button,
  #test-start,
  #test-prev,
  #test-next {
    width: 100%;
    justify-self: stretch;
  }

  .consent-item {
    grid-template-columns: 18px 1fr;
    gap: 0.5rem;
  }

  .consent-box {
    width: 18px;
    height: 18px;
  }

  .consent-box::after {
    left: 5px;
    top: 1px;
  }

  .cookie-banner {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    width: auto;
    border-radius: 14px;
    padding: 0.82rem;
  }

  .cookie-banner-btn {
    width: 100%;
    justify-self: stretch;
  }
}
