/* ===== АлГеоРитъМ — REFINED "warm + credible" theme ===== */
:root {
  --purple: #6d28d9;
  --purple-dark: #4c1d95;
  --purple-light: #8b5cf6;
  --accent: #d98cb3;        /* pink demoted to a quiet accent */
  --cream: #faf6f0;         /* warm off-white base */
  --cream-2: #f3ece1;       /* section alt */
  --line: #e7ddcf;          /* hairline borders */
  --ink: #241f38;
  --ink-soft: #6a637d;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(76, 29, 149, 0.10);
  --shadow-sm: 0 6px 20px rgba(76, 29, 149, 0.07);
  --radius: 12px;
  --radius-lg: 16px;
  --maxw: 1140px;
  --rainbow: linear-gradient(90deg,#f43f5e,#fb923c,#facc15,#34d399,#38bdf8,#8b5cf6);
  --font-head: "Lora", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink);
  background: var(--cream); line-height: 1.7; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.22; color: var(--purple-dark); letter-spacing: -0.01em; }
.brand-name { font-family: var(--font-head); font-weight: 600; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.alt { background: var(--cream-2); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 14px; }
.section-sub { color: var(--ink-soft); margin: 0; font-size: 1.08rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  padding: 13px 28px; border-radius: 8px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px rgba(109,40,217,.22); }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--purple-dark); border-color: var(--purple); }
.btn-ghost:hover { background: rgba(109,40,217,.06); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,246,240,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 9px; }
.brand-name { font-size: 1.35rem; color: var(--purple-dark); letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.main-nav a:hover { color: var(--purple); text-decoration: none; }
.main-nav .nav-cta, .main-nav .nav-cta:hover { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--purple-dark); border-radius: 3px; }

/* ===== Hero ===== */
.hero { background: var(--cream); padding: 84px 0 92px; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-weight: 700; color: var(--purple); font-size: .74rem; margin: 0 0 18px; position: relative; padding-left: 46px; }
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 34px; height: 3px; border-radius: 3px; background: var(--rainbow); transform: translateY(-50%); }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.3rem); margin: 0 0 22px; font-weight: 600; }
.lead { font-size: 1.16rem; color: var(--ink-soft); margin: 0 0 32px; max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin: 24px 0 0; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.hero-visual { display: flex; justify-content: center; }
.hero-logo { width: 330px; max-width: 100%; border-radius: 20px; box-shadow: var(--shadow); }

/* ===== Benefits ===== */
.benefits { padding: 72px 0; background: var(--cream); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.benefit-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; text-align: left; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s; }
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(109,40,217,.07); color: var(--purple); margin-bottom: 18px; }
.benefit-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.benefit-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.benefit-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ===== Courses ===== */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.courses-loading { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 30px; }
.course-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s; position: relative; overflow: hidden; }
.course-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--rainbow); }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.course-badge { align-self: flex-start; background: rgba(109,40,217,.08); color: var(--purple-dark); font-weight: 700; font-size: .76rem; letter-spacing: .02em; padding: 6px 13px; border-radius: 6px; margin-bottom: 16px; text-transform: uppercase; }
.course-card h3 { font-size: 1.32rem; margin: 0 0 10px; }
.course-meta { color: var(--ink-soft); font-size: .9rem; font-weight: 600; margin: 0 0 14px; }
.course-desc { color: var(--ink-soft); margin: 0 0 22px; flex-grow: 1; }
.course-price { font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; color: var(--purple-dark); margin: 0 0 18px; }
.course-price small { font-size: .8rem; color: var(--ink-soft); font-weight: 600; font-family: var(--font-body); }
.courses-hint { text-align: center; color: var(--ink-soft); margin-top: 40px; }

/* ===== How it works ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow-sm); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: transparent; border: 1.5px solid var(--purple); color: var(--purple); font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 16px; }
.step h3 { font-size: 1.12rem; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ===== About ===== */
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-photo img { width: 100%; max-width: 350px; margin: 0 auto; border-radius: var(--radius-lg); background: var(--white); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.about-text h2 { margin: 0 0 6px; }
.about-name { font-family: var(--font-head); font-weight: 600; color: var(--purple); font-size: 1.45rem; margin: 0 0 6px; }
.about-credentials { font-weight: 600; color: var(--purple-dark); font-size: .93rem; margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.about-text p { color: var(--ink-soft); }
.placeholder-note { background: rgba(217,140,179,.12); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 6px; font-style: italic; font-size: .92rem; }

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.testi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; margin: 0; box-shadow: var(--shadow-sm); position: relative; }
.testi::before { content: "\201C"; font-family: var(--font-head); font-size: 3.4rem; line-height: 1; color: var(--accent); opacity: .5; position: absolute; top: 14px; right: 22px; }
.testi-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(109,40,217,.07); color: var(--purple-dark); font-weight: 700; font-size: .74rem; letter-spacing: .02em; text-transform: uppercase; padding: 5px 12px; border-radius: 6px; margin-bottom: 16px; }
.testi p { font-family: var(--font-head); font-style: italic; font-size: 1.12rem; color: var(--ink); margin: 0 0 18px; line-height: 1.55; }
.testi cite { font-style: normal; font-weight: 700; color: var(--purple-dark); font-family: var(--font-body); font-size: .95rem; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-text p { color: var(--ink-soft); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 15px; font-size: 1.05rem; font-weight: 600; }
.contact-list .ci { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; color: var(--purple); flex-shrink: 0; }
.contact-list .ci svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); display: grid; gap: 15px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { font-family: var(--font-body); font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--cream); color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--purple); background: #fff; }
.form-fallback { text-align: center; font-size: .87rem; color: var(--ink-soft); margin: 4px 0 0; }

/* ===== Footer ===== */
.site-footer { background: var(--purple-dark); color: #e6dcff; padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; }
.footer-brand img { background: #fff; border-radius: 8px; padding: 4px; }
.footer-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-contact a, .site-footer a { color: #fff; font-weight: 600; }
.footer-copy { width: 100%; text-align: center; margin: 12px 0 0; color: #b9a6e8; font-size: .86rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-logo { width: 230px; }
  .hero-actions { justify-content: center; }
  .eyebrow { padding-left: 0; }
  .eyebrow::before { display: none; }
  .lead { margin-left: auto; margin-right: auto; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 34px; }
  .about-photo { order: -1; }
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 24px 18px; box-shadow: var(--shadow); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
}
@media (max-width: 520px) {
  .benefits-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
