:root {
  --purple: #8b7cf0;
  --purple-dark: #6f5ce0;
  --mint: #66c98f;
  --mint-light: #e3f7ec;
  --cream: #f7f6fc;
  --text: #2c2a3d;
  --text-muted: #6b6884;
  --border: #e6e3f5;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(107, 92, 210, 0.1);
  --footer-line: #9184BE;

  /* --- Палитра лендинга (снята пипеткой со скрина хедера/хиро) --- */
  --hero-bg: #f2fff6;
  --hero-purple: #a38bde;
  --hero-mint-border: #89c9aa;
  --hero-mint-text: #3f9973;
  --hero-mint-accent: #61bb94;
  --hero-chip-bg: #cee7db;
  --hero-chip-text: #399568;
  --hero-text-dark: #14161a;
  --hero-text-muted: #4a4d4b;
  --hero-nav-text: #55585c;
  --hero-pill-border: #d7ddda;
  --hero-logo-bio: #65bdab;
  --hero-logo-cats: #9b83bc;
  
  --adv-pink-badge: #fbc9c9;
  --adv-pink-icon: #5f4450;
  --adv-mint-pill-bg: #dff0e4;
  --adv-mint-pill-text: #2f6b4a;
  --adv-card1-header: #c9ecd4;   
  --adv-card1-body: #eaf6ec;
  --adv-card2-header: #d3bfde;   
  --adv-card2-body: #f2ecfa;
  --adv-card3-header: #f1d9a0;   
  --adv-card3-body: #faf0dd;
  --adv-cta-bg: #f6ebfc;
}

html {
    zoom: 1.111;
    width: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
body { background: var(--hero-bg); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000; /* Keeps header above all body content */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px; /* Smooth padding switch */
  margin: 0 auto;
  
  transition: background-color 0.3s ease, 
              backdrop-filter 0.3s ease, 
              box-shadow 0.3s ease, 
              padding 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(242, 255, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-content {
  position: relative;
  z-index: 2;  
}

.footer-brand { text-align: center; }

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 21px;
}

.logo-bio { color: var(--hero-logo-bio); }
.logo-cats { color: var(--hero-logo-cats); }

.nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
  color: var(--hero-nav-text);
}

.nav-link { display: inline-flex; align-items: center; gap: 4px; }
.nav-arrow { width: 10px; height: 10px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Пилюльные кнопки хедера/хиро (только для лендинга, не трогают .btn-primary/.btn-outline из форм) */
.btn-cta,
.btn-outline-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-cta {
  background: var(--hero-purple);
  color: #fff;
  border: 3px solid var(--hero-purple);
}

.btn-outline-mint {
  background: transparent;
  color: var(--hero-mint-text);
  border: 3px solid var(--hero-mint-border);
}

.btn-lg { padding: 14px 26px; font-size: 20px; }
.btn-icon { width: 40px; height: 27px; }
.btn-round-25 { border-radius: 25px !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 124, 240, .35);
}

.btn-outline {
  background: #fff;
  color: var(--purple-dark);
  border: 2px solid var(--purple);
}

.btn-block { width: 100%; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 24px 0 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hero-chip-bg);
  color: var(--hero-chip-text);
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}
.badge-icon { width: 16px; height: 23px; }

.hero-title {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--hero-text-dark);
  margin: 0 0 14px;
}

.hero-title .accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hero-mint-accent);
}
.title-icon { width: 28px; height: 28px; }

.hero-text {
  color: var(--hero-text-muted);
  font-size: 16px;
  max-width: 265px;
  margin: 0 0 22px;
  font-weight: 700;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

.quiz-heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--hero-text-dark);
  margin: 0 0 12px;
}

.quiz-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; margin-right: -100px; }

.pill {
  background: #fff;
  border: 1.5px solid var(--hero-pill-border);
  color: var(--hero-text-muted);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  cursor: pointer;
  max-width: 160px;
  outline: none;
}

.pill:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.pill-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.pill:focus { border: 1px solid var(--hero-purple); }

.pill-primary {
  background: var(--hero-purple);
  border-color: var(--hero-purple);
  color: #fff;
}

.consent {
  position: relative;
  left: 510px;
  display: flex;
  flex-wrap: wrap; /* разрешаем перенос */
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--hero-text-muted);
}
.consent-icon { width: 14px; height: 14px; }
.consent a { color: var(--hero-mint-accent); text-decoration: underline; flex-basis: 100%; }

.hero-art {
  margin-left: -200px;
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-top: -100px;
}
.hero-art-img { width: 100%; height: auto; }

.quote-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px 0;
  font-weight: 400;
  font-size: 22px;
  color: var(--hero-text-dark);
  border: 2px solid var(--hero-mint-border);
  border-radius: 15px;
}
.quote-icon { position: relative; width: 25px; height: 25px; flex-shrink: 0; }

.quote-icon-left { top:-20px; }
.quote-icon-right { top:20px; }
/* Advantages */
.section {padding-left: 24px; padding-right: 24px; }
.section-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.section-sub { color: var(--text-muted); margin-bottom: 34px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; }

.card ul { padding-left: 18px; color: var(--text-muted); margin: 0; }

/* Reviews */
.review {
  background-color: rgba(0, 0, 0, 0); 
}
.review .author { font-weight: 700; margin-top: 10px; color: var(--purple-dark); }

.review img { height: 250px;}
/* Footer */
.site-footer {
  position: relative;
  background: #f1f0f8;
  padding: 40px 0;
  color: var(--text-muted);
  z-index: 2;
}

/* Auth pages */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.auth-card h1 { font-size: 24px; margin-top: 0; }
.auth-card .sub { color: var(--text-muted); margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease;
}

.field input:focus { border-color: var(--purple); }

.field-error {
  color: #e0554f;
  font-size: 13px;
  margin-top: 6px;
  min-height: 16px;
}

.form-message {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}
.form-message.error { background: #fdecea; color: #b3261e; display: block; }
.form-message.success { background: var(--mint-light); color: #2f9560; display: block; }

.auth-links { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.auth-links a { color: var(--purple-dark); font-weight: 700; }

.code-input {
  letter-spacing: 8px;
  font-size: 22px;
  text-align: center;
  font-weight: 700;
}

.resend-link {
  background: none;
  border: none;
  color: var(--purple-dark);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}
.resend-link:disabled { color: var(--text-muted); cursor: default; }

/* Cabinet */
.cabinet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.cabinet-placeholder {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cabinet-placeholder .emoji { font-size: 60px; margin-bottom: 16px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .nav { display: none; }
}

.advantages-section { background: transparent; margin-top: -50px; position: relative; }

.adv-grid {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: 32px;
  align-items: start;
}

.adv-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 42px;
  font-weight: 800;
  color: var(--hero-text-dark);
  margin: 0 0 10px;
}
.adv-title-icon { width: 60px; height: 60px; }

.adv-subtitle {
  color: #7E7A93;
  font-size: 14px;
  margin: 0 0 24px;
  max-width: 220px;
}

.adv-statement {
  position: relative;
  margin-bottom: 26px;
}
.adv-statement p {
  margin: 0;
  color: var(--hero-text-dark);
  font-size: 16px;
  line-height: 1.4;
  max-width: 235px;
}
.adv-statement-cat {
  position: absolute;
  top: -34px;
  right: 0;
  width: 46px;
  height: 46px;
}

.adv-statement-purple-star {
  position: absolute;
  top: -64px;
  right: 0;
  width: 50px;
  height: 50px;
}

.adv-statement-purple-star-review {
  position: absolute;
  top: 70px;
  right: 0;
  width: 50px;
  height: 50px;
}

.adv-statement-green-effect {
  position: relative;
  top: -800px;
  right: -220px;
  width: 50px;
  height: 50px;
}

.adv-statement-green-review-paw {
  position: relative;
  top: -530px;
  right: -140px;
}

.adv-statement-green-review-cat {
  position: relative;
  top: -330px;
  right: -130px;
  z-index: 2;
}

.adv-statement-purple-effect {
  position: relative;
  top: -1100px;
  right: -710px;
  width: 80px;
  height: 80px;
}

.adv-statement-arrow-review-1 {
  position: relative;
  top: -790px;
  right: 150px;
  width: 120px;
  height: 120px;
}

.adv-statement-arrow-review-2 {
  position: relative;
  top: -400px;
  right: 180px;
  width: 150px;
}

.adv-statement-dna-spot-review {
  position: relative;
  top: -450px;
  right: 200px;
  width: 100px;
}

.adv-statement-dna-review {
  position: relative;
  top: -465px;
  right: 290px;
  width: 70px;
}

.adv-statement-purple-review-spot {
  position: relative;
  top: -375px;
  left: -600px;
  width: 80px;
}

.adv-statement-purple-left-spot {
  position: absolute;
  top: 300px;
  left: -10px;
  width: 120px;
}

.adv-statement-green-right-spot-review {
  position: relative;
  bottom: 430px;
  right: -822px;
  z-index: 1;
  width: 250px;
}

.adv-statement-final-drop {
  position: absolute;
  bottom: 400px;
  left: 300px;
  z-index: 1;
  width: 25px;
  transform: rotate(30deg);
}

.adv-statement-final-eye {
  position: absolute;
  bottom: 400px;
  left: 500px;
  z-index: 1;
  width: 75px;
  transform: rotate(-10deg);
}

.adv-statement-final-leaf-mirror {
  position: absolute;
  bottom: 400px;
  left: 750px;
  z-index: 1;
  width: 40px;
  transform: rotate(-90deg);
}

.adv-statement-final-background {
  position: relative;
  bottom: 0px;
  right: 0px;
  z-index: 1;
  width: 1070px;
}

.adv-statement-final {
  position: absolute;
  bottom: 15px;
  right: 210px;
  z-index: 2;
  width: 600px;
}

.adv-statement-final-line {
  position: absolute;
  bottom: 370px;
  left: 0px;
  z-index: 2;
}
.adv-statement-cat-on-card {
  position: absolute;
  top: -20px;
  left: 545px;
  z-index: 2;
  width: 120px;
}

.adv-statement-heart-on-card {
  position: absolute;
  top: 10px;
  left: 495px;
  z-index: 1;
  width: 40px;
}

.adv-statement-footer-back {
  position: absolute;
  bottom: -266px;
  width: 1100px;
  left: 0px;
}

.adv-statement-yellow-star {
  position: absolute;
  top: -25px;
  right: 0px;
  z-index: 1;
  width: 75px;
}

.adv-statement-down-card-button {
  position: absolute;
  bottom: -14px;
  left: 360px;
  z-index: 1;
  height: 90px;
}

.adv-statement-green-right-spot {
  position: absolute;
  top: 200px;
  right: 0px;
  z-index: 0;
}

.adv-statement-microscope {
  position: absolute;
  top: -170px;
  right: -20px;
  z-index: 2;
  height: 150px;
}

.adv-statement-green-drops {
  position: absolute;
  top: -120px;
  right: 100px;
  z-index: 3;
}

.adv-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: 150px;
  left: 300px;
}
.adv-features li { display: flex; align-items: center; gap: 10px; }

.adv-feature-icon {
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-feature-icon img { width: 150px;}

.adv-feature-label {
  background: var(--adv-mint-pill-bg);
  color: var(--adv-mint-pill-text);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  flex: 1;
}

.adv-mascot { width: 100%; max-width: 270px; height: auto; }

.adv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.adv-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.adv-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 16px;
}
.adv-card-header-icon { width: 18px; height: 18px; }

.adv-card-list {
  list-style: none;
  margin: 0;
  padding: 14px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  flex: 1;
}

.adv-card-biocats .adv-card-header { background: var(--adv-card1-header); color: var(--adv-card1-header-text); }
.adv-card-biocats .adv-card-list { background: var(--adv-card1-body); color: var(--adv-card1-header-text); }

.adv-card-other .adv-card-header { background: var(--adv-card2-header); color: var(--adv-card2-header-text); }
.adv-card-other .adv-card-list { background: var(--adv-card2-body); color: var(--adv-card2-header-text); }

.adv-card-tutor .adv-card-header { background: var(--adv-card3-header); color: var(--adv-card3-header-text); }
.adv-card-tutor .adv-card-list { background: var(--adv-card3-body); color: var(--adv-card3-header-text); }

.adv-bottom-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.adv-cta-bar {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--adv-cta-bg);
  color: var(--hero-text-dark);
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 999px;
}
.adv-cta-icon { width: 20px; height: 20px; flex-shrink: 0; }

.adv-illustration {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 140px;
  pointer-events: none;
}
.adv-illustration-img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .adv-grid { grid-template-columns: 1fr; }
  .adv-cards { grid-template-columns: 1fr; }
}

.wave-wrapper {
  width: 100%;
  background: #F7FBFA;
}

.advantages-fullwidth {
  width: 100%;
  background: #F7FBFA;
}

.container-padding-bottom {
    padding-bottom: 20px;
}

.test-tube { fill: var(--hero-purple); opacity: 0.5; }  
.dna { fill: var(--hero-purple); opacity: 0.5; }
.bacteria { fill: var(--hero-purple); opacity: 0.5; }
.microscope { fill: var(--hero-mint-text); opacity: 0.5; }

.virus { fill: var(--hero-purple); opacity: 0.5; }  
.chromosome { fill: var(--hero-purple); opacity: 0.2; } 
.heart { fill: var(--adv-pink-badge); opacity: 0.5; } 
.notebook { fill: var(--hero-chip-text); opacity: 0.7; }
.glass { fill: var(--hero-purple); opacity: 0.5; }
.petri { fill: var(--hero-purple); opacity: 0.7; }
.cell { fill: var(--hero-chip-text); opacity: 0.9; }

.main-comparison-card {
  width: 650px;
  top: 25px;
  left: 470px;
  position: absolute;
  z-index: 1;
}

:root {
  --footer-page-bg: #f3eff9;
  --footer-card-bg: #f4eaf5;
  --footer-heading: #4a3b6f;
  --footer-text-muted: #8573b2;
  --footer-divider: #ddd0e8;
  --footer-border: #e4d9eb;
}

.footer-card {
  position: relative;
  background: var(--footer-card-bg);
  border-radius: 40px; /* Уменьшено со 100px для пропорциональности */
  padding: 20px 32px; /* Уменьшено с 36px 40px */
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 16px; /* Уменьшено с 24px */
  z-index: 2;
  border: 2px solid var(--footer-line);
}

.footer-col { min-width: 0; }

.footer-contacts,
.footer-docs,
.footer-help {
  border-left: 1px solid var(--footer-divider);
  padding-left: 16px; /* Уменьшено с 24px */
}

/* Логотип */
.footer-brand .logo-mark {
  height: 28px; /* Ограничиваем высоту логотипа */
  width: auto;
}

.footer-text {
  color: var(--footer-text-muted);
  font-size: 12px; /* Уменьшено с 13px */
  line-height: 1.35;
  margin: 6px 0 10px; /* Уменьшено с 12px 0 16px */
}

.footer-socials { 
  display: flex; 
  gap: 8px; 
  justify-content: center; /* Выравнивание по левому краю для аккуратности */
}
.footer-socials img { width: 20px; height: 20px; } /* Уменьшено с 26px */

.footer-heading {
  color: var(--footer-heading);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 8px; /* Уменьшено с 14px */
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--footer-text-muted);
  font-size: 12px;
  margin-bottom: 6px; /* Уменьшено с 12px */
}
.footer-row-icon { width: 18px; height: 18px; flex-shrink: 0; } /* Уменьшено с 25px */

.footer-help {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.footer-help-img { width: 90px; height: auto; margin-bottom: 6px; } /* Уменьшено со 150px */
.footer-help-text {
  color: var(--footer-text-muted);
  font-size: 12px;
  line-height: 1.3;
  margin: 0;
}

.footer-bottom {
  text-align: center;
  color: var(--footer-text-muted);
  font-size: 12px;
  padding-top: 10px; /* Уменьшено с 20px */
  margin-top: 4px; /* Уменьшено с 8px */
  border-top: 1px solid var(--footer-border);
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  .footer-card { grid-template-columns: 1fr 1fr; }
  .footer-contacts, .footer-docs { border-left: none; padding-left: 0; }
  .footer-help { grid-column: 1 / -1; border-left: none; padding-left: 0; }
}

.advantages-fullwidth,
#final {
  position: relative;
}