:root {
  --blue: #6b2fb3;
  --yellow: #f2b705;
  --bg: #f4f6f8;
  --white: #ffffff;
  --text: #111111;
  --muted: #596273;
  --border: #d9e0ea;
  --panel: #f8fafc;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 16px 38px rgba(15, 25, 45, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 84% -10%, rgba(132, 194, 34, 0.34), transparent 35%),
    linear-gradient(180deg, #f9fbfd 0%, #f1f4f8 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(68px);
}

.bg-shape-1 {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -130px;
  background: rgba(132, 194, 34, 0.4);
}

.bg-shape-2 {
  width: 320px;
  height: 320px;
  left: -130px;
  bottom: 10%;
  background: rgba(107, 47, 179, 0.2);
}

.container {
  width: min(1240px, 92%);
  margin: 0 auto;
}

.section {
  padding: 94px 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
.logo-text,
.btn {
  font-family: "Manrope", "Montserrat", sans-serif;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

h1 span {
  display: block;
  color: var(--blue);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  color: #2a1e46;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.45);
  background: rgba(242, 183, 5, 0.15);
  color: #5f4500;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header {
  position: sticky;
  top: 10px;
  z-index: 30;
  padding: 10px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 14px;
  border-radius: 22px;
  border: 1px solid rgba(217, 224, 234, 0.9);
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(12, 22, 40, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--blue);
  font-weight: 800;
  flex: 0 0 auto;
}

.logo-image {
  display: block;
  width: clamp(32px, 3.8vw, 45px);
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: #35235a;
  font-size: 0.94rem;
  font-weight: 600;
  position: relative;
  padding: 6px 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4fa0, #ff9acb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 15px;
  border: 0;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-nav {
  color: #fff;
  background: linear-gradient(145deg, #4a1f7a 0%, #7d37c9 100%);
  box-shadow: 0 12px 24px rgba(27, 44, 72, 0.24);
}

.btn-primary {
  color: #2a2100;
  background: linear-gradient(145deg, #f2b705 0%, #ffd976 100%);
  box-shadow: 0 14px 28px rgba(242, 183, 5, 0.34);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue);
}

.hero {
  padding-top: 106px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 30px;
  align-items: stretch;
}

.hero .container {
  padding: 44px;
  border-radius: 36px;
  border: 1px solid rgba(217, 224, 234, 0.8);
  background:
    radial-gradient(circle at 88% 0%, rgba(132, 194, 34, 0.34), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: var(--shadow-soft);
}

.hero-subtitle {
  max-width: 620px;
  margin-top: 18px;
  color: #4f5b6f;
  font-size: 1.08rem;
}

.hero-facts {
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 660px;
}

.hero-facts div {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}

.hero-card {
  border-radius: 24px;
  padding: 26px;
  color: #eaf0ff;
  background:
    radial-gradient(circle at 10% 120%, rgba(255, 79, 160, 0.3), transparent 45%),
    linear-gradient(155deg, #2b1249 0%, #5e2a99 100%);
  box-shadow: 0 20px 36px rgba(18, 29, 51, 0.34);
}

.hero-card h2 {
  color: #ffffff;
  font-size: 1.42rem;
  margin-bottom: 14px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.section:nth-of-type(even):not(.hero):not(.section-cta) {
  background: rgba(255, 255, 255, 0.48);
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(217, 224, 234, 0.94);
  box-shadow: 0 10px 24px rgba(15, 25, 45, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.card p {
  color: var(--muted);
}

.tariff-grid {
  margin-top: 26px;
}

.tariff-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100%;
}

.tariff-lessons {
  font-family: "Manrope", "Montserrat", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  color: #2f1b4f;
  margin-bottom: 14px;
}

.tariff-old {
  font-size: 1.15rem;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: #5f6b81;
}

.tariff-new {
  margin-top: 4px;
  font-family: "Manrope", "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #d6524b;
}

.tariff-meta {
  margin-top: 8px;
  color: #4d2482;
  font-weight: 700;
}

.tariff-list {
  margin: 18px 0 20px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #455269;
}

.tariff-btn {
  width: 100%;
  margin-top: auto;
}

.tariff-popular {
  border-color: rgba(242, 183, 5, 0.6);
  box-shadow: 0 16px 30px rgba(242, 183, 5, 0.18);
}

.tariff-badge {
  position: absolute;
  right: 16px;
  top: 14px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5b3f00;
  background: rgba(242, 183, 5, 0.22);
  border: 1px solid rgba(242, 183, 5, 0.4);
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 26px;
  align-items: center;
}

.list {
  margin: 22px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.format-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(217, 224, 234, 0.9);
  background: linear-gradient(150deg, #ffffff 0%, #f2f6fc 100%);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.format-panel div {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e4eaf3;
  padding: 14px;
}

.format-panel span {
  display: block;
  color: #6f7a8f;
  font-size: 0.84rem;
}

.format-panel strong {
  color: var(--blue);
  font-family: "Manrope", "Montserrat", sans-serif;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.chips span {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  color: #35235a;
}

.test-card {
  border-left: 4px solid var(--yellow);
}

.review strong {
  display: block;
  margin-top: 12px;
  color: var(--blue);
}

.section-cta {
  background:
    radial-gradient(circle at 100% 20%, rgba(255, 79, 160, 0.25), transparent 35%),
    linear-gradient(180deg, #f0f4fb 0%, #e9eef6 100%);
}

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.signup-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid rgba(217, 224, 234, 0.95);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.signup-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.signup-form input,
.signup-form select {
  width: 100%;
  min-height: 48px;
  border-radius: 13px;
  border: 1px solid #d1d9e7;
  background: #fafcff;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.95rem;
}

.signup-form input:focus,
.signup-form select:focus {
  outline: 2px solid rgba(107, 47, 179, 0.2);
  border-color: var(--blue);
}

.form-note {
  min-height: 1.2em;
  margin-top: 2px;
  color: var(--blue);
  font-size: 0.9rem;
}

.footer {
  padding: 56px 0;
  color: #dbe5f8;
  background:
    radial-gradient(circle at 82% 5%, rgba(255, 79, 160, 0.24), transparent 30%),
    linear-gradient(155deg, #2a1248 0%, #4d2482 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 24px;
}

.footer h3,
.footer h4 {
  color: #ffffff;
  margin-bottom: 10px;
}

.footer ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.footer a {
  color: #dbe5f8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .container {
    width: min(1240px, 95%);
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 0.88rem;
  }

  .photo-split,
  .photo-split--reverse {
    gap: 30px;
  }

  .photo-split .cards.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero .container {
    padding: 34px;
  }
}

@media (max-width: 1060px) {
  .hero-grid,
  .split,
  .signup-grid,
  .cards.four {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: calc(100% + 6px);
    left: 4%;
    right: 4%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .btn-nav {
    display: none;
  }

  .cards.two,
  .cards.three,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

  .section {
    padding: 74px 0;
  }

  .hero .container {
    padding: 30px;
    border-radius: 28px;
  }
}

@media (max-width: 560px) {
  .header {
    top: 8px;
  }

  .section {
    padding: 64px 0;
  }

  .card,
  .signup-form,
  .hero .container {
    padding: 20px;
  }

  .logo-image {
    width: 35px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.9rem);
  }
}

/* ── FAQ ───────────────────────────────────────────────── */

.faq-list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 224, 234, 0.94);
  background: linear-gradient(165deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 6px 18px rgba(15, 25, 45, 0.05);
  overflow: hidden;
  transition: box-shadow 0.24s ease;
}

.faq-item[open] {
  box-shadow: 0 14px 30px rgba(107, 47, 179, 0.1);
  border-color: rgba(107, 47, 179, 0.28);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-family: "Manrope", "Montserrat", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #2a1e46;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(107, 47, 179, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.24s, transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item[open] .faq-icon {
  background: rgba(107, 47, 179, 0.18);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 26px 24px;
  display: grid;
  gap: 14px;
  color: #455269;
  line-height: 1.7;
  font-size: 0.97rem;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.faq-answer p {
  margin: 0;
}

.faq-example {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(107, 47, 179, 0.05);
  border-left: 3px solid var(--blue);
  display: grid;
  gap: 8px;
}

/* ── Photo Split Layout ───────────────────────────────── */

.photo-split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 48px;
  align-items: center;
}

.photo-split--reverse {
  grid-template-columns: 1fr 0.85fr;
}

.side-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

@media (max-width: 980px) {
  .photo-split,
  .photo-split--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .photo-split--reverse img {
    order: -1;
  }

  .side-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .side-photo {
    border-radius: 14px;
  }
}

/* ── Photos ───────────────────────────────────────────── */

.section-photo {
  display: block;
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.format-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

.reviews-grid .cards.three {
  grid-template-columns: 1fr;
}

.hero-student-photo {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 16px;
  margin-bottom: 18px;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.about-photo-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.about-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.format-photo-strip {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 24px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-soft);
}

.reviews-photo-strip {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1060px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .format-photo-strip { height: 210px; }
  .reviews-photo-strip { height: 190px; }
  .hero-student-photo { height: 160px; }
}

@media (max-width: 560px) {
  .format-photo-strip,
  .reviews-photo-strip {
    height: 160px;
    border-radius: 16px;
  }
  .hero-student-photo { height: 130px; border-radius: 12px; }
  .about-photo-wrap { border-radius: 16px; }
}
