/* ==========================================================================
   Ecole Theme - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Fonts
   -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Neucha&display=swap');

:root {
  --primary: #2f5aae;
  --primary-dark: #244a8f;
  --accent: #FB5884;
  --accent-dark: #e04470;
  --dark: #020101;
  --light-bg: #F5F5F7;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --body-font: 'Montserrat', sans-serif;
  --heading-font: 'Neucha', cursive;
  --container: 1170px;
  --radius: 12px;
  --transition: 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */

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

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

body {
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 400;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
  margin-bottom: 1em;
  line-height: 1.7;
}

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

a:hover {
  color: var(--accent);
}

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   3. Container
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. Section base
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.4rem;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: -30px auto 50px;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white);
  transition: box-shadow var(--transition), padding var(--transition);
  padding: 10px 0;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 5px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo - <a class="logo"> in header-site.php */
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--dark);
}

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

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--dark);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  font-size: 0.95rem;
}

.header-phone:hover {
  color: var(--primary);
}

.header-phone svg {
  flex-shrink: 0;
}

.header-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #0088cc;
  color: var(--white);
  transition: transform var(--transition), background-color var(--transition);
}

.header-telegram:hover {
  transform: scale(1.1);
  background-color: #006ea6;
  color: var(--white);
}

.header-telegram svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Screen-reader-only text */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav a {
  display: block;
  padding: 10px 15px;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--primary);
  background-color: rgba(47, 90, 174, 0.06);
}

/* Dropdown */
.main-nav .menu-item-has-children {
  position: relative;
}

.main-nav .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
  transition: transform var(--transition);
}

.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  flex-direction: column;
  z-index: 100;
}

.main-nav .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub-menu li {
  width: 100%;
}

.main-nav .sub-menu a {
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 0;
}

.main-nav .sub-menu a:hover {
  background-color: var(--light-bg);
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  text-align: center;
  line-height: 1.4;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(251, 88, 132, 0.35);
  background-color: var(--accent-dark);
  color: var(--white);
}

.btn-primary:active {
  transform: scale(1.02);
}

.btn-cta {
  display: inline-block;
  padding: 16px 40px;
  background-color: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  text-align: center;
  line-height: 1.4;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(251, 88, 132, 0.4);
  background-color: var(--accent-dark);
  color: var(--white);
}

.btn-cta:active {
  transform: scale(1.02);
}

.btn-outline {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 25px;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), color var(--transition);
  text-align: center;
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   8. Hero Section
   -------------------------------------------------------------------------- */

.section-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--light-bg);
  padding-top: 120px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

/* .hero-inner is the grid container (container + hero-inner on same div) */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  padding-right: 20px;
}

/* Hero subtitle block */
.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.hero-subtitle h3 {
  font-size: 1.2rem;
  color: var(--text-light);
  font-family: var(--body-font);
  font-weight: 500;
}

.hero-subtitle-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

/* Hero title */
.hero-title {
  font-size: 3.2rem;
  margin-bottom: 20px;
  color: var(--dark);
  line-height: 1.2;
}

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

/* Hero heading (the <p> description below title) */
.hero-heading {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 480px;
  line-height: 1.8;
}

/* Hero CTA button */
.hero-cta {
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
}

/* Hero image area */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Hero decorative emojis */
.hero-emoji {
  position: absolute;
  font-size: 2.5rem;
  z-index: 2;
  animation: floatEmoji 3s ease-in-out infinite;
}

.hero-emoji--top {
  top: -10px;
  right: 10px;
}

.hero-emoji--bottom {
  bottom: -10px;
  left: 10px;
  animation-delay: 1.5s;
}

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Hero shape divider bottom */
.section-hero .shape-divider-bottom {
  bottom: -1px;
}

.section-hero .shape-divider-bottom svg {
  fill: var(--white);
}

/* --------------------------------------------------------------------------
   9. Intro Section
   -------------------------------------------------------------------------- */

.section-intro {
  background-color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
}

.intro-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-heading {
  font-size: 2.4rem;
  margin-bottom: 20px;
  text-align: center;
}

.section-intro p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   10. Features Section
   -------------------------------------------------------------------------- */

.section-features {
  padding: 0;
  position: relative;
}

.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.features-row--light {
  background-color: var(--light-bg);
}

.features-row--white {
  background-color: var(--white);
}

.feature-card {
  padding: 30px;
}

.feature-title {
  display: block;
  font-family: var(--body-font);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.feature-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. Pricing Section
   -------------------------------------------------------------------------- */

.section-pricing {
  background-color: var(--primary);
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.section-pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(47, 90, 174, 0.95), rgba(36, 74, 143, 0.98));
  z-index: 0;
}

.pricing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.pricing-heading {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 15px;
}

.pricing-intro {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Trial card wrapper */
.pricing-trial {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* Trial card */
.trial-card {
  max-width: 500px;
  width: 100%;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 35px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.trial-card__image {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.trial-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trial-card__body {
  width: 100%;
}

.trial-card__title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.trial-card__description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.trial-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  font-family: var(--body-font);
}

.trial-card__cta {
  width: 100%;
}

/* After-text between trial and plans */
.pricing-after-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin: 30px auto 40px;
  max-width: 600px;
}

/* Subscription plan cards grid */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.plan-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 35px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.plan-card__image {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.plan-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-card__body {
  width: 100%;
}

.plan-card__title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.plan-card__description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.plan-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  font-family: var(--body-font);
}

.plan-card__cta {
  width: 100%;
}

/* Guarantee text */
.pricing-guarantee {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   12. Lesson Structure Section
   -------------------------------------------------------------------------- */

.section-lesson-structure {
  position: relative;
  padding: 100px 0 120px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  overflow: hidden;
}

.section-lesson-structure::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
  z-index: 0;
}

/* Decorative wave divider at top */
.lesson-wave-divider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: var(--white);
  line-height: 0;
  z-index: 1;
}

.lesson-wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.lesson-structure-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.lesson-label {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 15px;
}

.lesson-heading {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 50px;
}

.lesson-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: transform var(--transition), background var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.step-card__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 15px;
  font-family: var(--body-font);
}

.step-card__title {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.step-card__description {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   13. Benefits Section
   -------------------------------------------------------------------------- */

.section-benefits {
  padding: 80px 0;
  position: relative;
  background-color: var(--white);
}

.benefits-inner {
  text-align: center;
}

/* Benefits header with icon and heading */
.benefits-header {
  margin-bottom: 50px;
}

.benefits-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
}

.benefits-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.benefits-heading {
  font-size: 2.4rem;
  color: var(--dark);
}

/* 3-column layout */
.benefits-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.benefits-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.benefits-column--left .benefit-item {
  text-align: right;
}

.benefits-column--right .benefit-item {
  text-align: left;
}

/* Center column with image */
.benefits-column--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  width: 260px;
  flex-shrink: 0;
}

.benefits-center-image {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1 / 2.5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Decorative wave dividers around center image */
.benefits-center-divider {
  color: var(--accent);
  line-height: 0;
}

.benefits-center-divider svg {
  display: block;
}

/* Benefit items */
.benefit-item__title {
  font-family: var(--body-font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.benefit-item__description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   14. FAQ Section
   -------------------------------------------------------------------------- */

.section-faq {
  background-color: var(--light-bg);
  padding: 80px 0;
  position: relative;
}

.faq-inner {
  text-align: center;
}

.faq-heading {
  font-size: 2.4rem;
  margin-bottom: 40px;
  color: var(--dark);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  border-left: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  transition: color var(--transition);
  -webkit-user-select: none;
  user-select: none;
  gap: 15px;
  text-align: left;
}

.faq-question:hover {
  color: var(--primary);
}

/* FAQ icon - the <span class="faq-icon"> element */
.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--accent);
  transition: transform var(--transition), background-color var(--transition), color var(--transition);
  line-height: 1;
}

.faq-item.active .faq-icon {
  background-color: var(--accent);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

/* Content is directly inside .faq-answer (no .faq-answer-inner wrapper) */
.faq-answer p {
  padding: 0 25px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* FAQ CTA button wrapper */
.faq-cta {
  margin-top: 40px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   15. CTA Section
   -------------------------------------------------------------------------- */

.section-cta {
  padding: 80px 0;
  text-align: center;
  background-color: var(--white);
  position: relative;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-heading {
  font-size: 2.4rem;
  margin-bottom: 25px;
}

.cta-button {
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
}

.section-cta p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 30px;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
  position: relative;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

/* Footer column - About */
.footer-column--about {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 15px;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background-color var(--transition), transform var(--transition);
}

.footer-social__link:hover {
  background-color: var(--accent);
  transform: scale(1.1);
  color: var(--white);
}

.footer-social__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Footer column titles */
.footer-column__title {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 20px;
}

/* Footer nav lists */
.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
  padding-left: 5px;
}

/* Footer contacts */
.footer-contacts li {
  margin-bottom: 12px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-copyright {
  margin-bottom: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

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

/* --------------------------------------------------------------------------
   17. Modal
   -------------------------------------------------------------------------- */

.signup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.signup-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--light-bg);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
  border: none;
  line-height: 1;
}

.modal-close:hover {
  background-color: var(--accent);
  color: var(--white);
}

.modal-content h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-align: center;
}

.modal-content > p {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.modal-description {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.signup-form .form-group {
  margin-bottom: 16px;
}

.signup-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.signup-form .form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--light-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.signup-form .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 90, 174, 0.12);
  background-color: var(--white);
}

.signup-form .form-input::placeholder {
  color: #aaa;
}

.signup-form input,
.signup-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--light-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.signup-form input:focus,
.signup-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 90, 174, 0.12);
  background-color: var(--white);
}

.signup-form input::placeholder,
.signup-form textarea::placeholder {
  color: #aaa;
}

.signup-form textarea {
  resize: vertical;
  min-height: 80px;
}

.signup-form .btn-primary,
.signup-form .form-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 5px;
}

.signup-form .form-note {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin-top: 12px;
}

.signup-form .form-note a {
  color: var(--primary);
}

.form-message {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 12px;
  padding: 8px;
  border-radius: 6px;
}

.form-message.success {
  color: #155724;
  background-color: #d4edda;
}

.form-message.error {
  color: #721c24;
  background-color: #f8d7da;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   18. Shape Dividers
   -------------------------------------------------------------------------- */

.shape-divider {
  position: absolute;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.shape-divider-top {
  top: -1px;
}

.shape-divider-bottom {
  bottom: -1px;
}

.shape-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: auto;
  position: relative;
}

/* Waves */
.shape-divider-waves svg {
  height: 60px;
}

.shape-divider-waves .shape-fill {
  fill: var(--white);
}

/* Waves pattern (hero) */
.shape-divider-waves-pattern svg {
  height: 60px;
}

.shape-divider-waves-pattern .shape-fill {
  fill: var(--white);
}

/* Tilt */
.shape-divider-tilt svg {
  height: 80px;
}

.shape-divider-tilt .shape-fill {
  fill: var(--white);
}

/* Curve */
.shape-divider-curve svg {
  height: 70px;
}

.shape-divider-curve .shape-fill {
  fill: var(--light-bg);
}

/* Flip variants */
.shape-divider.flip {
  transform: rotateY(180deg);
}

/* --------------------------------------------------------------------------
   19. Scroll to Top
   -------------------------------------------------------------------------- */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background-color var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(251, 88, 132, 0.35);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   20. Animations
   -------------------------------------------------------------------------- */

/* data-animate="fadeIn" */
[data-animate="fadeIn"] {
  opacity: 0;
  transition: opacity 0.6s ease;
}

[data-animate="fadeIn"].animated {
  opacity: 1;
}

/* data-animate="fadeInUp" */
[data-animate="fadeInUp"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fadeInUp"].animated {
  opacity: 1;
  transform: translateY(0);
}

/* data-animate="fadeInLeft" */
[data-animate="fadeInLeft"] {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fadeInLeft"].animated {
  opacity: 1;
  transform: translateX(0);
}

/* data-animate="fadeInRight" */
[data-animate="fadeInRight"] {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fadeInRight"].animated {
  opacity: 1;
  transform: translateX(0);
}

/* data-animate="zoomIn" */
[data-animate="zoomIn"] {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="zoomIn"].animated {
  opacity: 1;
  transform: scale(1);
}

/* Legacy class-based animations (keep for backward compatibility) */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.animated {
  opacity: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-in.animated {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animation delays for children */
[data-animate-stagger] > *:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger] > *:nth-child(2) { transition-delay: 0.1s; }
[data-animate-stagger] > *:nth-child(3) { transition-delay: 0.2s; }
[data-animate-stagger] > *:nth-child(4) { transition-delay: 0.3s; }
[data-animate-stagger] > *:nth-child(5) { transition-delay: 0.4s; }
[data-animate-stagger] > *:nth-child(6) { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   21. Utility Classes
   -------------------------------------------------------------------------- */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: var(--white); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --------------------------------------------------------------------------
   22. WordPress-specific
   -------------------------------------------------------------------------- */

.alignwide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Admin bar offset */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* --------------------------------------------------------------------------
   23. Responsive - Tablet (max-width: 960px)
   -------------------------------------------------------------------------- */

@media screen and (max-width: 960px) {

  /* Header */
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 300px;
  }

  .main-nav a {
    padding: 14px 20px;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
  }

  /* Dropdown mobile */
  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 5px 0;
    min-width: 100%;
  }

  .main-nav .sub-menu a {
    font-size: 1rem;
    padding: 10px 30px;
  }

  .main-nav .menu-item-has-children > a::after {
    display: none;
  }

  .header-contacts {
    gap: 10px;
  }

  .header-phone {
    display: none;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-content {
    padding-right: 0;
    order: 2;
  }

  .hero-subtitle {
    justify-content: center;
  }

  .hero-heading {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    order: 1;
  }

  .hero-image img {
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  /* Features */
  .features-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing */
  .pricing-plans {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Lesson structure */
  .lesson-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Benefits */
  .benefits-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefits-column--center {
    width: 200px;
    margin: 0 auto;
    order: -1;
  }

  .benefits-center-image {
    aspect-ratio: 1 / 2;
  }

  .benefits-column--left .benefit-item,
  .benefits-column--right .benefit-item {
    text-align: center;
  }

  /* Footer */
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* Section titles */
  .section-title {
    font-size: 2rem;
  }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
}

/* --------------------------------------------------------------------------
   24. Responsive - Mobile (max-width: 576px)
   -------------------------------------------------------------------------- */

@media screen and (max-width: 576px) {

  /* Base */
  body {
    font-size: 15px;
  }

  .section {
    padding: 50px 0;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Header */
  .site-header {
    padding: 8px 0;
  }

  .logo img {
    height: 38px;
  }

  .header-telegram {
    width: 36px;
    height: 36px;
  }

  /* Hero */
  .section-hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-heading {
    font-size: 1rem;
  }

  .hero-image img {
    max-width: 280px;
  }

  .hero-cta {
    width: 100%;
    max-width: 280px;
  }

  /* Intro */
  .intro-icon {
    width: 80px;
    height: 80px;
  }

  .intro-heading {
    font-size: 1.8rem;
  }

  /* Features */
  .features-row {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 20px;
  }

  /* Pricing */
  .pricing-plans {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .trial-card {
    max-width: 100%;
  }

  .plan-card {
    padding: 25px 20px;
  }

  .pricing-heading {
    font-size: 1.8rem;
  }

  /* Lesson structure */
  .lesson-steps {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .step-card {
    padding: 30px 20px;
  }

  .step-card__number {
    font-size: 2.5rem;
  }

  .lesson-heading {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  /* Benefits */
  .benefits-column--center {
    width: 160px;
  }

  .benefit-item__title {
    font-size: 1rem;
  }

  .benefits-heading {
    font-size: 1.8rem;
  }

  /* FAQ */
  .faq-question {
    padding: 15px 18px;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 0 18px 15px;
    font-size: 0.9rem;
  }

  .faq-heading {
    font-size: 1.8rem;
  }

  /* CTA */
  .cta-heading {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .footer-column--about {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contacts li {
    justify-content: center;
  }

  .footer-contact {
    justify-content: center;
  }

  .footer-description {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Modal */
  .modal-content {
    padding: 25px 20px;
  }

  .modal-content h3 {
    font-size: 1.3rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-top: -15px;
    margin-bottom: 30px;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }

  /* Scroll to top */
  .scroll-to-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 20px;
  }

  /* Shape dividers smaller on mobile */
  .shape-divider-waves svg { height: 35px; }
  .shape-divider-waves-pattern svg { height: 35px; }
  .shape-divider-tilt svg { height: 50px; }
  .shape-divider-curve svg { height: 40px; }
}

/* --------------------------------------------------------------------------
   25. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .scroll-to-top,
  .signup-modal,
  .shape-divider {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
}
