/* ==========================================================================
   ACExpert.io вЂ” Global styles
   Vanilla CSS + CSS variables. Ready for WordPress theme migration.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #24385b;
  --color-bg: #f4f7fa;
  --color-surface: #ffffff;
  --color-highlight: #fce89d;
  --color-divider: #e2e8f0;
  --color-error: #c45c5c;
  --color-white: #ffffff;

  /* Typography */
  --font-family: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --color-text: var(--color-primary);

  --fs-h1: clamp(2rem, 1.5rem + 1.5vw, 3rem); /* 32вЂ“48px */
  --fs-h2: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  --fs-h3: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-body: 1rem;
  --fs-ui: 1.125rem; /* 18px */
  --fs-small: 0.875rem; /* 14px */
  --fs-xs: 0.75rem; /* 12px */

  --lh-heading: 1.15;
  --lh-ui: 1.25;
  --lh-body: 1.5;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Layout */
  --wrapper-max: 1440px;
  --wrapper-pad: clamp(1.25rem, 0.5rem + 3vw, 5rem); /* ~20вЂ“80px */
  --section-gap: clamp(3rem, 2rem + 3vw, 5rem);

  /* Radii & shadows */
  --radius-btn: 6px;
  --radius-card: 12px;
  --shadow-card: 0 8px 24px rgba(36, 56, 91, 0.06);
  --shadow-dropdown: 0 10px 30px rgba(0, 0, 0, 0.05);

  /* Motion */
  --transition: all 0.2s ease-in-out;

  /* Header */
  --header-height: 80px;
  --z-header: 100;
  --z-dropdown: 110;
  --z-mobile-nav: 120;
  --z-modal: 200;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  color-scheme: light;
  font-family: var(--font-family);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: none;
}

a:not(.btn):not(.header__logo):not(.header__nav-link):not(.header__dropdown-link):not(.footer__link):not(.footer__brand):hover {
  text-decoration: underline;
  text-decoration-color: var(--color-divider);
  text-underline-offset: 3px;
}

/* Inline legal / content links */
.link {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.link:hover {
  border-bottom-color: var(--color-divider);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrapper {
  width: 100%;
  max-width: var(--wrapper-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--wrapper-pad);
  padding-right: var(--wrapper-pad);
}

.page {
  flex: 1 0 auto;
}

.page__main {
  flex: 1 0 auto;
}

/* Highlight mark (marker stroke under keywords) */
mark,
.mark {
  background: linear-gradient(
    transparent 55%,
    var(--color-highlight) 55%,
    var(--color-highlight) 95%,
    transparent 95%
  );
  color: inherit;
  padding: 0 0.1em;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1,
.h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--color-primary);
}

h2,
.h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--color-primary);
  text-align: center;
}

h3,
.h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-ui);
  color: var(--color-primary);
}

.text-ui {
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
}

.text-small {
  font-size: var(--fs-small);
  line-height: var(--lh-ui);
}

.text-xs {
  font-size: var(--fs-xs);
  line-height: var(--lh-ui);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-btn);
  border: none;
  font-weight: var(--fw-medium);
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

.btn:disabled,
.btn--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--inverse {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--fs-ui);
  font-weight: var(--fw-semibold);
}

/* --------------------------------------------------------------------------
   6. Cards & form controls (global kit)
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-btn);
  background: var(--color-surface);
  transition: var(--transition);
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-primary);
  border-width: 2px;
  padding: calc(0.75rem - 1px) calc(1rem - 1px);
}

.form__input--error,
.form__textarea--error {
  border-color: var(--color-error);
}

.form__hint {
  font-size: var(--fs-xs);
  color: var(--color-error);
}

.form__consent {
  margin-top: 0.75rem;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--color-primary);
  text-align: center;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.form__consent .link {
  font-weight: var(--fw-medium);
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  width: 100%;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
  width: 100%;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex-shrink: 1;
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 0.85rem;
  margin-right: 0.85rem;
  border-right: 1px solid var(--color-divider);
}

.header__logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.header__descriptor {
  font-weight: var(--fw-regular);
  font-size: 0.6875rem; /* 11px вЂ” fits 3 lines without reflow */
  color: var(--color-primary);
  line-height: 1.3;
  max-width: 13.5rem;
  min-width: 11.5rem;
  white-space: normal;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 1;
  min-width: 0;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.header__nav-item:not(:last-child) {
  border-right: 1px solid var(--color-divider);
  margin-right: 0.65rem;
  padding-right: 0.65rem;
}

.header__nav-item {
  position: relative;
  /* Keep hover zone continuous into dropdown */
  padding-bottom: 0;
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  padding: 0.55rem 0.1rem;
  white-space: nowrap;
  position: relative;
  z-index: calc(var(--z-dropdown) + 1);
}

.header__nav-link:hover {
  opacity: 0.85;
  text-decoration: none;
}

.header__nav-chevron {
  width: 12px;
  height: 12px;
  transition: var(--transition);
}

.header__nav-item:hover .header__nav-chevron,
.header__nav-item:focus-within .header__nav-chevron,
.header__nav-item.is-open .header__nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown вЂ” no gap under trigger (bridge via padding-top) */
.header__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  padding-top: 0.35rem; /* hover bridge, no dead zone */
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.header__dropdown-inner {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-dropdown);
  padding: 0.75rem;
}

.header__nav-item:hover .header__dropdown,
.header__nav-item:focus-within .header__dropdown,
.header__nav-item.is-open .header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header__dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.header__dropdown-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-btn);
  font-size: 0.9375rem;
  color: var(--color-primary);
  white-space: nowrap;
}

.header__dropdown-link:hover {
  background: var(--color-bg);
  text-decoration: none;
}

.header__cta {
  flex-shrink: 0;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
}

/* Burger */
.header__burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  flex-shrink: 0;
}

.header__burger:hover {
  background: var(--color-bg);
}

.header__burger-icon {
  width: 24px;
  height: 24px;
}

/* Mobile drawer */
.header__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-nav);
  pointer-events: none;
}

.header__mobile.is-open {
  pointer-events: auto;
}

.header__mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 56, 91, 0.35);
  opacity: 0;
  transition: var(--transition);
}

.header__mobile.is-open .header__mobile-overlay {
  opacity: 1;
}

.header__mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--color-surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-dropdown);
  transform: translateX(100%);
  transition: var(--transition);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.header__mobile-close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-primary);
  border-radius: var(--radius-btn);
}

.header__mobile-close:hover {
  background: var(--color-bg);
}

.header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.header__mobile-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-weight: var(--fw-medium);
  border-bottom: 1px solid var(--color-divider);
}

.header__mobile-sub {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
}

.header__mobile-sub .header__mobile-link {
  font-weight: var(--fw-regular);
  font-size: 0.9375rem;
  border-bottom: none;
  padding: 0.45rem 0.5rem;
}

.header__mobile-cta {
  margin-top: auto;
  width: 100%;
}

/* Header в‰¤1024px */
@media (max-width: 1024px) {
  .header__nav,
  .header__cta {
    display: none;
  }

  .header__burger {
    display: inline-flex;
  }

  .header__mobile {
    display: block;
  }

  .header__inner {
    gap: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .header__brand {
    flex: 1;
    min-width: 0;
  }

  /* Keep descriptor visible вЂ” compact 3 lines */
  .header__logo {
    padding-right: 0.6rem;
    margin-right: 0.6rem;
  }

  .header__descriptor {
    display: block;
    font-size: 0.625rem; /* 10px */
    line-height: 1.25;
    max-width: 11rem;
    min-width: 0;
  }
}

/* Very narrow: hide divider, even tighter tagline */
@media (max-width: 380px) {
  .header__logo {
    border-right: none;
    padding-right: 0.4rem;
    margin-right: 0.4rem;
  }

  .header__descriptor {
    font-size: 0.5625rem;
    max-width: 9.5rem;
  }

  .header__logo-img {
    height: 34px;
  }
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.footer {
  flex-shrink: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  margin-top: auto;
}

.footer__inner {
  padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-bottom: 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__brand:hover {
  opacity: 0.9;
  text-decoration: none;
}

.footer__brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer__brand-text {
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  line-height: 1.3;
}

.footer__about {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  max-width: 28rem;
}

.footer__title {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 1rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__link {
  font-size: var(--fs-small);
  color: var(--color-primary);
}

.footer__link:hover {
  opacity: 0.8;
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
}

.footer__contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer__block + .footer__block {
  margin-top: 1.5rem;
}

.footer__bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__copy,
.footer__disclaimer {
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--color-primary);
  opacity: 0.85;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .footer__col--about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__inner {
    padding-top: 2rem;
    padding-bottom: 1.25rem;
  }

  .footer__bottom {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   9. Legal / content pages
   -------------------------------------------------------------------------- */
.legal {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.legal__title {
  text-align: left;
  margin-bottom: 0.5rem;
}

.legal__updated {
  font-size: var(--fs-small);
  opacity: 0.75;
  margin-bottom: 2rem;
}

.legal__content {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  max-width: 48rem;
}

.legal__content h2 {
  text-align: left;
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.legal__content h2:first-child {
  margin-top: 0;
}

.legal__content p,
.legal__content li {
  font-size: 0.9375rem;
  line-height: var(--lh-body);
  margin-bottom: 0.75rem;
}

.legal__content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal__content a {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-divider);
}

.legal__content a:hover {
  border-bottom-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   10. Placeholder main (landing skeleton)
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   11. Sections common
   -------------------------------------------------------------------------- */
.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.section__title {
  text-align: center;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

/* Yellow marker stroke across the full heading text width */
.section__title-text {
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(
    to top,
    transparent 0.08em,
    var(--color-highlight) 0.08em,
    var(--color-highlight) 0.42em,
    transparent 0.42em
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.2em 0.05em;
}

.section__title mark,
.section__title .mark {
  background: none;
  color: inherit;
  padding: 0;
}

/* --------------------------------------------------------------------------
   12. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 0;
  overflow: hidden;
}

/* Top block: white, flush under header (no white gap) */
.hero__main {
  position: relative;
  background: var(--color-surface);
  padding: 0;
  overflow: hidden;
  min-height: 560px;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 560px;
  padding-top: 1.25rem;
  padding-bottom: 2.25rem;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: min(38rem, 50%);
  padding-right: 1rem;
}

.hero__title {
  font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.85rem);
  font-weight: var(--fw-bold);
  line-height: 1.22;
  color: var(--color-primary);
  margin-bottom: 1.35rem;
  max-width: none;
  text-align: left;
}

/* Hero only: soft highlighter (light yellow, slight tilt вЂ” mockup 1.png) */
.hero__title mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  background: none;
  color: inherit;
  padding: 0.02em 0.12em 0.04em;
  border-radius: 0;
  white-space: nowrap;
}

.hero__title mark::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.1em;
  top: 0.38em;
  bottom: 0.06em;
  z-index: -1;
  /* Lighter pastel yellow, soft edges like a real marker */
  background: linear-gradient(
    100deg,
    rgba(255, 245, 196, 0.25) 0%,
    rgba(255, 240, 170, 0.75) 12%,
    rgba(255, 236, 150, 0.88) 50%,
    rgba(255, 240, 170, 0.72) 88%,
    rgba(255, 245, 196, 0.2) 100%
  );
  border-radius: 0.12em 0.4em 0.18em 0.35em;
  transform: skewX(-10deg) rotate(-1deg);
  filter: blur(0.25px);
  pointer-events: none;
}

/* Keep вЂњРё Duolingo English TestвЂќ on one line */
.hero__title-line {
  white-space: nowrap;
  display: inline-block;
}

.hero__list {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.85rem;
  /* Narrower + darker line (mockup 1.png) */
  border-left: 1.5px solid rgba(36, 56, 91, 0.65);
}

.hero__list-item {
  font-size: var(--fs-ui);
  line-height: 1.2;
  color: var(--color-primary);
  padding-left: 0;
  position: relative;
}

.hero__list-item::before {
  content: none;
}

.hero__cta {
  margin-bottom: 0;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 320px;
}

.hero__trust-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero__trust-text {
  font-size: var(--fs-small);
  line-height: 1.2;
  color: var(--color-primary);
}

/* Photo: full-bleed under header в†’ ribbon, face free of float cards */
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  /* Start from left edge so lamp + man sit further left (mockup 1.png) */
  left: 0;
  z-index: 1;
  margin: 0;
  pointer-events: none;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*
   * Lamp still left; manвЂ™s face sits mid-frame (clear of float cards)
   */
  object-position: 38% center;
  border-radius: 0;
  /* No alpha mask вЂ” white blur only via overlay below */
  -webkit-mask-image: none;
  mask-image: none;
  /* Softer / lighter photo like mockup */
  filter: brightness(1.1) contrast(0.93) saturate(0.9);
}

/* Stronger white veil: lighter photo + soft white blur (mockup 1.png) */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      #ffffff 0%,
      rgba(255, 255, 255, 0.97) 10%,
      rgba(255, 255, 255, 0.88) 20%,
      rgba(255, 255, 255, 0.7) 32%,
      rgba(255, 255, 255, 0.45) 44%,
      rgba(255, 255, 255, 0.22) 56%,
      rgba(255, 255, 255, 0.08) 68%,
      transparent 82%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 30%,
      transparent 70%,
      rgba(255, 255, 255, 0.18) 100%
    );
}



.hero__cards {
  position: absolute;
  right: var(--wrapper-pad);
  /* Lower stack so it doesnвЂ™t cover the face (mockup: cards at mid-chest) */
  top: auto;
  bottom: 12%;
  transform: none;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 250px;
  width: min(250px, 26%);
  pointer-events: auto;
}

.hero__float-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 280px;
}

.hero__float-card img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.hero__float-card span {
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: var(--fw-medium);
}

/* Exam ribbon вЂ” same as page background, flush under hero (no white gap) */
.exam-ribbon {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  padding: 1.35rem 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.exam-ribbon__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.exam-ribbon__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2.25rem;
  border-right: 1px solid var(--color-divider);
  flex-shrink: 0;
}

.exam-ribbon__item:last-child {
  border-right: none;
}

.exam-ribbon__logo {
  height: 24px;
  width: auto;
  vertical-align: middle;
  object-fit: contain;
}

.exam-ribbon__logo--toefl {
  height: 32px;
}

.exam-ribbon__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  line-height: 1.2;
  color: var(--color-primary);
  text-align: left;
  white-space: normal;
}

/* Stats вЂ” white strip + vertical dividers */
.hero-stats {
  background: var(--color-surface);
  padding: 2.75rem 0;
}

.hero-stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.hero-stats__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0 1.75rem;
  border-right: 1px solid var(--color-divider);
}

.hero-stats__item:first-child {
  padding-left: 0;
}

.hero-stats__item:last-child {
  border-right: none;
  padding-right: 0;
}

.hero-stats__icon {
  width: 32px;
  height: 32px;
}

.hero-stats__value {
  font-size: 2.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin: 0.75rem 0 0.35rem;
  line-height: 1;
}

.hero-stats__label {
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--color-primary);
  max-width: 12rem;
}

@media (max-width: 1100px) {
  .hero__content {
    max-width: min(34rem, 55%);
  }

  .hero__photo {
    object-position: 35% center;
  }
}

/* ===== Mobile / tablet hero layout ===== */
@media (max-width: 1024px) {
  .hero__main {
    min-height: 0;
    overflow: visible;
  }

  .hero__grid {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
  }

  /* Order: text в†’ photo в†’ benefit cards */
  .hero__content {
    order: 1;
    max-width: none;
    width: 100%;
    padding-right: 0;
    z-index: 2;
  }

  .hero__title {
    font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.1rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero__title-line {
    white-space: normal;
  }

  .hero__list {
    margin-bottom: 1.25rem;
  }

  .hero__list-item {
    font-size: 1rem;
  }

  .hero__media {
    order: 2;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: clamp(220px, 52vw, 340px);
    border-radius: 16px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }

  .hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 18%;
    border-radius: 16px;
    filter: brightness(1.06) contrast(0.95) saturate(0.92);
  }

  /* Soft white fade only at bottom вЂ” face stays clear */
  .hero__media::before {
    border-radius: 16px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 45%,
      rgba(255, 255, 255, 0.25) 72%,
      rgba(255, 255, 255, 0.75) 100%
    );
  }

  .hero__cards {
    order: 3;
    position: static;
    top: auto;
    bottom: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero__float-card {
    max-width: none;
    width: 100%;
    box-shadow: var(--shadow-card);
  }

  .exam-ribbon {
    padding: 1rem 0;
  }

  .exam-ribbon__inner {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 0.25rem;
  }

  .exam-ribbon__inner::-webkit-scrollbar {
    display: none;
  }

  .exam-ribbon__item {
    padding: 0 1.15rem;
  }

  .exam-ribbon__item:first-child {
    padding-left: 0;
  }

  .hero-stats {
    padding: 1.75rem 0;
  }

  .hero-stats__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .hero-stats__item {
    border-right: 1px solid var(--color-divider);
    border-bottom: 1px solid var(--color-divider);
    padding: 1rem 1rem 1.1rem;
  }

  .hero-stats__item:nth-child(2n) {
    border-right: none;
  }

  .hero-stats__item:nth-child(1),
  .hero-stats__item:nth-child(2) {
    padding-top: 0;
  }

  .hero-stats__item:nth-child(3),
  .hero-stats__item:nth-child(4) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .hero-stats__item:first-child {
    padding-left: 0;
  }

  .hero-stats__item:nth-child(2n) {
    padding-right: 0;
  }

  .hero-stats__value {
    font-size: 1.75rem;
    margin: 0.5rem 0 0.25rem;
  }
}

@media (max-width: 560px) {
  .hero__grid {
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }

  .hero__title mark {
    white-space: normal;
  }

  .hero__media {
    height: clamp(200px, 56vw, 280px);
  }

  .hero__photo {
    object-position: 40% 15%;
  }

  .hero__float-card {
    padding: 0.85rem 1rem;
  }

  .hero__float-card span {
    font-size: 0.8125rem;
  }

  .section {
    padding-top: clamp(2rem, 6vw, 3rem);
    padding-bottom: clamp(2rem, 6vw, 3rem);
  }

  .section__title {
    margin-bottom: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   13. Steps
   -------------------------------------------------------------------------- */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.steps__card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}

.steps__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.steps__num {
  font-size: 1.75rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  opacity: 0.2;
  line-height: 1;
}

.steps__icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps__icon-wrap img {
  width: 48px;
  height: 48px;
}

.steps__name {
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 0.75rem;
}

.steps__badge {
  display: inline-flex;
  align-self: flex-start;
  background: #e8eef6;
  color: var(--color-primary);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  margin-bottom: 1rem;
}

.steps__text {
  font-size: 0.9375rem;
  line-height: 1.45;
  flex: 1;
  margin-bottom: 1.25rem;
}

.steps__card .btn {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .steps__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .steps__card {
    padding: 1.35rem;
  }
}

/* --------------------------------------------------------------------------
   14. Pricing
   -------------------------------------------------------------------------- */
.pricing__tabs {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  background: #e8eef6;
  border-radius: 6px;
  padding: 0.2rem;
  width: fit-content;
  margin: 0 auto 2rem;
}

.pricing__tab {
  border: none;
  background: transparent;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: var(--fw-medium);
  font-size: 0.9375rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: var(--transition);
}

.pricing__tab.is-active {
  background: var(--color-primary);
  color: var(--color-white);
}

.pricing__panel {
  display: none;
}

.pricing__panel.is-active {
  display: block;
}

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.pricing__card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
}

.pricing__card--featured {
  outline: 2px solid var(--color-highlight);
}

.pricing__star {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 22px;
  height: 22px;
}

.pricing__plan {
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 0.5rem;
}

.pricing__price {
  font-size: 1.75rem;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.pricing__price span {
  font-size: 1rem;
  font-weight: var(--fw-regular);
}

.pricing__term {
  font-size: var(--fs-small);
  opacity: 0.8;
  line-height: 1.35;
}

.pricing__features {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  margin-bottom: 2rem;
  text-align: center;
}

.pricing__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.pricing__feature-icon {
  width: 40px;
  height: 40px;
}

.pricing__feature-title {
  font-weight: var(--fw-semibold);
  font-size: 1rem;
}

.pricing__feature-text {
  font-size: 0.875rem;
  line-height: 1.4;
  max-width: 16rem;
}

.pricing__plus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: var(--fw-regular);
  color: var(--color-primary);
  opacity: 0.55;
  line-height: 1;
  padding-top: 0.5rem;
  user-select: none;
}

.pricing__action {
  text-align: center;
}

@media (max-width: 900px) {
  .pricing__cards {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing__features {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pricing__plus {
    display: none;
  }

  .pricing__tabs {
    width: 100%;
    max-width: 360px;
  }

  .pricing__tab {
    flex: 1;
    text-align: center;
  }

  .pricing__feature-text {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   15. Experts
   -------------------------------------------------------------------------- */
.experts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.experts__card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 0;
  display: grid;
  grid-template-columns: minmax(140px, 38%) 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  min-height: 280px;
}

.experts__photo-wrap {
  min-height: 100%;
  align-self: stretch;
}

.experts__photo {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Equal headroom from top of head to frame top */
.experts__photo--marine {
  object-position: center top;
}

.experts__photo--tatiana {
  object-position: center top;
}

.experts__info {
  padding: 1.35rem 1.35rem 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.experts__name {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  margin-bottom: 0.65rem;
}

.experts__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.experts__badge {
  display: inline-flex;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  line-height: 1.2;
}

.experts__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.experts__list-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.4;
}

.experts__list-item img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .experts__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .experts__card {
    grid-template-columns: minmax(110px, 32%) 1fr;
    min-height: 240px;
  }

  .experts__info {
    padding: 1rem 1rem 1rem 0.9rem;
  }

  .experts__name {
    font-size: 1.25rem;
  }
}

@media (max-width: 520px) {
  .experts__card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .experts__photo-wrap {
    height: 220px;
    width: 100%;
  }

  .experts__photo {
    height: 220px;
    width: 100%;
    object-position: center 12%;
  }

  .experts__info {
    padding: 1.1rem 1.15rem 1.25rem;
  }

  .experts__list-item {
    font-size: 0.8125rem;
  }
}

/* --------------------------------------------------------------------------
   16. Platform
   -------------------------------------------------------------------------- */
.platform {
  background: #eef1f7;
}

.platform__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.platform__card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.platform__screen {
  background: #f0f2f6;
  border-radius: 10px 10px 4px 4px;
  border: 2px solid var(--color-primary);
  border-bottom-width: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.platform__screen::after {
  content: "";
  display: block;
  height: 8px;
  background: var(--color-primary);
  border-radius: 0 0 8px 8px;
  width: 40%;
  margin: 6px auto 0;
  position: absolute;
  left: 30%;
  bottom: -16px;
}

.platform__screen-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.platform__card-title {
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 0.5rem;
}

.platform__card-text {
  font-size: 0.9rem;
  line-height: 1.45;
}

.platform__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}

.platform__footer-text {
  font-size: 0.95rem;
  line-height: 1.45;
  flex: 1;
  min-width: 220px;
}

.platform__disclaimer {
  margin-top: 1rem;
  font-size: 0.7rem;
  line-height: 1.4;
  opacity: 0.65;
  text-align: center;
}

@media (max-width: 900px) {
  .platform__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .platform__footer {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .platform__footer .btn {
    width: 100%;
  }

  .platform__screen-img {
    height: 180px;
  }
}

/* --------------------------------------------------------------------------
   17. Reviews + carousel
   -------------------------------------------------------------------------- */
.reviews__carousel {
  position: relative;
  margin-bottom: 2rem;
}

.reviews__track-wrap {
  overflow: hidden;
}

.reviews__track {
  display: flex;
  transition: transform 0.35s ease-in-out;
  will-change: transform;
}

.reviews__slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 0.25rem;
  box-sizing: border-box;
}

.reviews__card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.reviews__media {
  position: relative;
  background: #f3f5f8;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.reviews__score-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.reviews__quote {
  position: absolute;
  inset: 0;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 55%, transparent 100%);
  font-size: 0.8rem;
  line-height: 1.4;
  overflow: hidden;
}

.reviews__body {
  padding: 1rem 1.15rem 1.25rem;
}

.reviews__author {
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  line-height: 1.35;
}

.reviews__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition);
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1;
}

.reviews__nav:hover {
  background: var(--color-bg);
}

.reviews__nav--prev {
  left: -0.5rem;
}

.reviews__nav--next {
  right: -0.5rem;
}

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.25rem 0 1.5rem;
}

.reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-divider);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.reviews__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.15);
}

.reviews__action {
  text-align: center;
}

.reviews__stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.reviews__stat {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.reviews__stat img {
  width: 28px;
  height: 28px;
  opacity: 0.9;
}

.reviews__stat-text {
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: var(--fw-medium);
}

.reviews__about {
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
}

.reviews__about a {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-divider);
}

@media (max-width: 1024px) {
  .reviews__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews__carousel {
    padding: 0 0.25rem;
  }
}

@media (max-width: 900px) {
  .reviews__slide {
    grid-template-columns: 1fr;
    max-width: min(380px, 100%);
    margin-left: auto;
    margin-right: auto;
    gap: 1rem;
  }

  .reviews__nav {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .reviews__nav--prev {
    left: 0;
  }

  .reviews__nav--next {
    right: 0;
  }

  .reviews__media {
    min-height: 240px;
  }

  .reviews__quote {
    font-size: 0.75rem;
  }
}

@media (max-width: 560px) {
  .reviews__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .reviews__stat {
    padding: 0.9rem 0.6rem;
  }

  .reviews__stat-text {
    font-size: 0.75rem;
  }

  .reviews__about {
    font-size: 0.875rem;
    text-align: left;
  }

  .reviews__nav--prev {
    left: -0.15rem;
  }

  .reviews__nav--next {
    right: -0.15rem;
  }
}

/* --------------------------------------------------------------------------
   18. FAQ (chat style)
   -------------------------------------------------------------------------- */
.faq__chat {
  max-width: 720px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__row {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}

.faq__row--question {
  justify-content: flex-end;
}

.faq__row--answer {
  justify-content: flex-start;
}

.faq__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-surface);
}

.faq__avatar img {
  width: 18px;
  height: 18px;
}

.faq__avatar--expert {
  background: #eef2f8;
}

.faq__bubble {
  max-width: min(520px, 85%);
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .faq__chat {
    gap: 0.85rem;
  }

  .faq__avatar {
    width: 30px;
    height: 30px;
  }

  .faq__avatar img {
    width: 15px;
    height: 15px;
  }

  .faq__bubble {
    max-width: calc(100% - 2.5rem);
    padding: 0.7rem 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.4;
  }
}

.faq__bubble--question {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-bottom-right-radius: 4px;
}

.faq__bubble--answer {
  background: var(--color-highlight);
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.faq__bubble--answer p {
  flex: 1;
}

.faq__checks {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.faq__action {
  text-align: center;
}

/* --------------------------------------------------------------------------
   19. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: clamp(3.5rem, 3rem + 3vw, 5.5rem) 0;
}

.cta-band__title {
  color: var(--color-white);
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: center;
}

.cta-band__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}



/* --------------------------------------------------------------------------
   20. Modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 56, 91, 0.45);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 50px rgba(36, 56, 91, 0.18);
  padding: 1.75rem 1.5rem 1.5rem;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
}

.modal__close:hover {
  background: var(--color-bg);
}

.modal__close img {
  width: 18px;
  height: 18px;
}

.modal__note {
  font-size: 0.875rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
}

.modal__note a {
  color: var(--color-primary);
  font-weight: var(--fw-medium);
  border-bottom: 1px solid var(--color-divider);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal__form .form__input,
.modal__form .form__textarea {
  border-radius: 10px;
}

.modal__form .form__textarea {
  min-height: 90px;
  resize: vertical;
}

.modal__hint {
  font-size: var(--fs-xs);
  line-height: 1.4;
  opacity: 0.7;
  text-align: center;
}

.modal__form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.modal__form .form__consent {
  margin-top: 0.5rem;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .modal {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .modal__dialog {
    max-width: 100%;
    padding: 1.35rem 1.1rem 1.25rem;
    border-radius: 16px 16px 12px 12px;
  }

  .cta-band {
    padding: 2.75rem 0;
  }

  .cta-band__title {
    font-size: clamp(1.4rem, 1.1rem + 2vw, 1.85rem);
  }

  .cta-band__subtitle {
    font-size: 0.95rem;
  }
}

/* --------------------------------------------------------------------------
   21. Inner service pages (Mock IELTS, Audit PRO)
   -------------------------------------------------------------------------- */
.service-page {
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-bottom: clamp(3rem, 2rem + 2vw, 4.5rem);
}

.service-page__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  align-items: start;
}

.service-page__title {
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--color-primary);
  text-align: left;
  margin-bottom: 1rem;
  max-width: 18em;
}

.service-page__title mark {
  background: linear-gradient(
    transparent 55%,
    var(--color-highlight) 55%,
    var(--color-highlight) 95%,
    transparent 95%
  );
  color: inherit;
  border-radius: 3px;
  padding: 0 0.1em;
}

.service-page__lead {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
  max-width: 36rem;
  color: var(--color-primary);
}

.service-page__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.15rem 1.25rem;
}

.service-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #eef2f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-feature__icon img {
  width: 28px;
  height: 28px;
}

.service-feature__title {
  font-size: 1.1rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.service-feature__text {
  font-size: 0.925rem;
  line-height: 1.45;
}

.service-page__aside {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.35rem 1.5rem;
  position: sticky;
  top: 100px;
}

.service-page__aside-title {
  font-size: 1.2rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 1.15rem;
  line-height: 1.3;
}

.service-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.15rem;
}

.service-timeline__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.65rem;
  position: relative;
  padding-bottom: 1.1rem;
}

.service-timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 1.5rem;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}

.service-timeline__icon {
  font-size: 1.1rem;
  line-height: 1.2;
  text-align: center;
}

.service-timeline__text {
  font-size: 0.925rem;
  line-height: 1.4;
}

.service-timeline__text strong {
  font-weight: var(--fw-semibold);
}

.service-page__note {
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 1.15rem;
  color: var(--color-primary);
}

.service-page__quote {
  font-size: 0.9rem;
  line-height: 1.45;
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 1.35rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--color-highlight);
}

.service-page__price {
  font-size: 1.35rem;
  font-weight: var(--fw-bold);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.service-page__aside .btn {
  width: 100%;
}

.service-page--centered {
  text-align: center;
}

.service-page--centered .service-page__title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 16em;
}

.service-page--centered .service-page__lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 2rem;
  text-align: left;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.25rem;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.service-card__text {
  font-size: 0.9rem;
  line-height: 1.45;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.service-card__list li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.service-page__footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin-top: 0.5rem;
}

.service-page__quote-block {
  max-width: 44rem;
  margin: 0 auto 1.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .service-page {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }

  .service-page__grid {
    grid-template-columns: 1fr;
  }

  .service-page__aside {
    position: static;
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-page__title {
    font-size: clamp(1.45rem, 1.1rem + 2vw, 2rem);
  }

  .service-page__footer-row {
    flex-direction: column;
  }

  .service-page__footer-row .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   22. The ACE Room page
   -------------------------------------------------------------------------- */
.ace {
  background: linear-gradient(180deg, #f7f4ff 0%, var(--color-bg) 28%, #faf7ff 100%);
}

.ace-hero {
  padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.ace-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}

.ace-hero__title {
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.12;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
  text-align: left;
}

.ace-hero__title-line {
  display: block;
}

.ace-hero__title-accent {
  display: inline;
  background-image: linear-gradient(
    to top,
    transparent 0.06em,
    var(--color-highlight) 0.06em,
    var(--color-highlight) 0.38em,
    transparent 0.38em
  );
  padding: 0 0.05em;
}

.ace-hero__lead {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.45;
  max-width: 28rem;
  color: var(--color-primary);
}

.ace-hero__card {
  background: var(--color-surface);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(36, 56, 91, 0.08);
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
}

.ace-hero__tag {
  font-size: 0.8rem;
  color: rgba(36, 56, 91, 0.55);
  margin-bottom: 0.75rem;
}

.ace-hero__card-title {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.ace-hero__card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-primary);
}

.ace-hero__card-text strong {
  font-weight: var(--fw-semibold);
}

.ace-hero__caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(36, 56, 91, 0.75);
  max-width: 22rem;
}

.ace-quotes {
  padding-top: 1rem;
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.ace-quotes__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.ace-quote {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 20px;
  border: 2px solid #e8c84a;
  padding: 1.5rem 1.4rem;
  font-size: 1.05rem;
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(36, 56, 91, 0.12);
}

.ace-quote strong {
  font-weight: var(--fw-semibold);
  color: #fce89d;
}

.ace-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.ace-compare__col {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.35rem 1.1rem;
  overflow: hidden;
}

.ace-compare__title {
  font-size: 1.05rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-primary);
}

.ace-compare__title--ok {
  color: #2f9e5b;
}

.ace-compare__check {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #2f9e5b;
  color: #fff;
  font-size: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ace-compare__list {
  display: flex;
  flex-direction: column;
}

.ace-compare__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.95rem;
  line-height: 1.35;
}

.ace-compare__item:last-child {
  border-bottom: none;
}

.ace-compare__bar {
  width: 4px;
  min-height: 1.1em;
  border-radius: 2px;
  background: #e8a33d;
  flex-shrink: 0;
  margin-top: 0.2em;
}

.ace-compare__col--ok .ace-compare__item {
  padding-left: 0;
}

.ace-topics {
  padding-top: 1rem;
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.ace-topics__stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
}

.ace-topic {
  border-radius: 6px;
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: 0 14px 36px rgba(36, 56, 91, 0.12);
  position: relative;
}

.ace-topic--orange {
  background: #f4a574;
  color: #1a1a1a;
  transform: rotate(-2.5deg);
  z-index: 1;
}

.ace-topic--yellow {
  background: #f5e14a;
  color: #1a1a1a;
  transform: rotate(3deg);
  margin-top: 1.5rem;
  z-index: 2;
}

.ace-topic__tag {
  display: inline-flex;
  background: rgba(36, 56, 91, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  float: right;
  margin-left: 0.75rem;
}

.ace-topic__title {
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  margin-bottom: 0.85rem;
  clear: none;
}

.ace-topic__text {
  font-size: 0.9rem;
  line-height: 1.45;
  clear: both;
}

.ace-topic__text em {
  font-style: italic;
  opacity: 0.9;
}

.ace-topics__meta {
  text-align: center;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.ace-topics__action {
  text-align: center;
}

@media (max-width: 900px) {
  .ace-hero {
    padding-top: 1.75rem;
  }

  .ace-hero__grid,
  .ace-quotes__grid,
  .ace-compare,
  .ace-topics__stack {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ace-hero__title {
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
  }

  .ace-topic--orange,
  .ace-topic--yellow {
    transform: none;
    margin-top: 0;
  }

  .ace-quote {
    font-size: 0.95rem;
    padding: 1.2rem 1.1rem;
  }
}
/* Уменьшаем и верхние, и нижние отступы для указанных секций */
.section.steps,
.section.pricing,
.section.experts,
.section.platform,
.section.reviews,
.section.faq {
  padding-top: calc(var(--section-gap) / 2) !important;
  padding-bottom: calc(var(--section-gap) / 2) !important;
}