:root {
  --bg: #fff7f0;
  --bg-soft: #fff1e2;
  --text: #1d2640;
  --muted: #4e5876;
  --primary: #f07a13;
  --primary-dark: #cf5e00;
  --accent: #ffb703;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(147, 75, 0, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fffaf4 0%, #fff3e6 55%, #fffaf5 100%);
  line-height: 1.55;
}

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

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  max-width: 750px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(255, 247, 240, 0.9);
  border-bottom: 1px solid rgba(240, 122, 19, 0.14);
}

.topbar--scrolled {
  box-shadow: 0 6px 22px rgba(140, 72, 6, 0.16);
}

.topbar__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
}

.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  font-weight: 600;
  color: var(--muted);
}

.nav a:hover {
  color: var(--primary);
}

.nav--legal {
  display: flex;
  position: static;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.7rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  transition: background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 10px 14px;
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(240, 122, 19, 0.45);
}

.btn--ghost:hover {
  background: rgba(240, 122, 19, 0.09);
  color: var(--primary-dark);
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
}

.hero__content {
  flex: 1 1 54%;
}

.hero__content h1 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.18;
  margin-bottom: 14px;
}

.hero__content p {
  color: var(--muted);
  max-width: 620px;
}

.hero__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  flex: 1 1 46%;
}

.hero__visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 320px;
  object-fit: cover;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.card {
  flex: 1 1 260px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 8px;
}

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

.courses {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.course {
  flex: 1 1 320px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.course img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.course div {
  padding: 18px;
}

.course h3 {
  margin-bottom: 8px;
}

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

.method {
  display: flex;
  align-items: center;
  gap: 30px;
}

.method__visual,
.method__content {
  flex: 1 1 50%;
}

.method__visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 300px;
  object-fit: cover;
}

.method ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 14px;
}

.method li {
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  padding: 10px 12px;
  border-radius: 10px;
}

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.format {
  flex: 1 1 260px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.format h3 {
  margin-bottom: 8px;
}

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

.team {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.teacher {
  flex: 1 1 280px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.teacher img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.teacher p {
  color: var(--muted);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.stat {
  flex: 1 1 220px;
  background: linear-gradient(160deg, #f07a13 0%, #cf5e00 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  line-height: 1;
  margin-bottom: 8px;
}

.reviews {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.review {
  flex: 1 1 300px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.review p {
  margin-bottom: 10px;
}

.review span {
  color: var(--muted);
  font-weight: 700;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid rgba(240, 122, 19, 0.4);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  font-weight: 800;
  color: var(--text);
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer p {
  color: var(--muted);
}

.contact-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-info,
.contact-form {
  flex: 1 1 360px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-info ul {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  font-weight: 700;
  margin-top: 2px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid #f3cfb0;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(240, 122, 19, 0.2);
  border-color: var(--primary);
}

.form-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.form-success {
  min-height: 1.25em;
  color: #0f8c3f;
  font-weight: 700;
}

.footer {
  background: #2d1f11;
  color: #f2ddc7;
  padding: 22px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.92rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer__links a {
  color: #ffe6d2;
  font-weight: 600;
}

.footer__links a:hover {
  color: #ffffff;
}

.footer__payments {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__payments span {
  font-weight: 700;
}

.footer__payments img {
  width: 92px;
  height: 32px;
}

.legal-page main {
  min-height: calc(100vh - 170px);
}

.legal {
  max-width: 900px;
}

.legal h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.legal h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.footer a {
  color: var(--white);
}

@media (max-width: 980px) {
  .hero__inner,
  .method {
    flex-direction: column;
  }

  .hero__content,
  .hero__visual,
  .method__content,
  .method__visual {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }
}

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

  .nav {
    position: absolute;
    top: 76px;
    right: 4%;
    left: 4%;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #ffd7b7;
    box-shadow: var(--shadow);
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav--legal {
    position: static;
    display: flex;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

@media (max-width: 540px) {
  .section {
    padding: 58px 0;
  }

  .hero__content h1 {
    font-size: 1.9rem;
  }

  .stat {
    padding: 20px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__payments img {
    width: 78px;
    height: 28px;
  }
}
