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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: #222222;
  background-color: #FAFAF8;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.content-width {
  max-width: 720px;
}

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

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

ul, ol {
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: #FAFAF8;
  border-bottom-color: #E8E8E8;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar-brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #222222;
}

.navbar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #214E3B;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar-link:hover {
  background: #214E3B;
  color: #FAFAF8;
}

/* ===== Hero ===== */
.hero {
  padding-top: 140px;
  padding-bottom: 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55% 42%;
  gap: 3%;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.hero-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(33, 78, 59, 0.15);
  border-radius: 24px;
  pointer-events: none;
  z-index: 1;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.15) 100%);
  border-radius: 24px;
  pointer-events: none;
  z-index: 2;
}

.hero-image {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  background-color: #E8E8E8;
  filter: saturate(0.87) contrast(1.04);
  display: block;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #214E3B;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #222222;
  margin-bottom: 12px;
}

.hero-categories {
  font-size: 14px;
  font-weight: 500;
  color: #B08A45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 15px;
  line-height: 1.7;
  color: #666666;
  margin-bottom: 16px;
}

.hero .btn {
  margin-top: 12px;
}

/* ===== Gold accent ===== */
.gold {
  color: #B08A45;
}

/* ===== Section Divider ===== */
.section-divider {
  width: 48px;
  height: 1px;
  background: #B08A45;
  margin: 0 auto;
  opacity: 0.5;
}

/* ===== Button Group (Telegram + VK) ===== */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn-group-label {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  margin-bottom: 2px;
}

.btn-group .btn {
  flex: 0 1 auto;
}

.btn-vk {
  background: #0077FF;
  color: #FAFAF8;
}

.btn-vk:hover {
  background: #0066DD;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 15px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #214E3B;
  color: #FAFAF8;
}

.btn-primary:hover {
  background: #1a3f2e;
}

/* ===== Sections ===== */
.section {
  padding: 120px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #214E3B;
  margin-bottom: 28px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #214E3B;
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #666666;
  margin-bottom: 1em;
}

.section-body ul,
.section-body ol {
  font-size: 15px;
  line-height: 1.8;
  color: #666666;
  margin-bottom: 1em;
}

/* ===== Accordion ===== */
.accordion-item {
  border-bottom: 1px solid #E8E8E8;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #222222;
  padding: 22px 0;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  transition: color 0.2s ease;
}

.accordion-trigger:hover {
  color: #214E3B;
}

.accordion-trigger:focus-visible {
  outline: 2px solid #214E3B;
  outline-offset: 2px;
}

.accordion-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 16px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: #214E3B;
  border-radius: 1px;
  transition: transform 0.35s ease;
}

.accordion-icon::before {
  top: 9px;
  left: 1px;
  right: 1px;
  height: 2px;
}

.accordion-icon::after {
  top: 1px;
  left: 9px;
  bottom: 1px;
  width: 2px;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: rotate(90deg);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::before {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.4s ease, margin 0.3s ease;
  margin-bottom: 0;
}

.accordion-panel.open {
  max-height: 9999px;
  opacity: 1;
  margin-bottom: 8px;
}

.accordion-content {
  padding: 4px 0 20px 0;
  font-size: 15px;
  line-height: 1.8;
  color: #666666;
}

.accordion-content ul,
.accordion-content ol {
  padding-left: 1.25em;
}

/* ===== Benefits ===== */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
}

.benefit-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 10px;
  height: 5px;
  border-left: 2px solid #214E3B;
  border-bottom: 2px solid #214E3B;
  transform: rotate(-45deg);
}

.benefit-list li strong {
  color: #222222;
  font-weight: 500;
}

/* ===== Education ===== */
.edu-list > p {
  margin-bottom: 1em;
  line-height: 1.7;
}

.edu-heading {
  font-size: 16px;
  font-weight: 600;
  color: #214E3B;
  margin-top: 28px;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E8E8E8;
}

.edu-entry {
  margin-bottom: 18px;
  padding-left: 4px;
}

.edu-title {
  font-weight: 600;
  color: #222222;
  margin-bottom: 2px;
}

.edu-meta {
  font-size: 14px;
  color: #666666;
  margin-bottom: 1px;
}

.edu-year {
  font-size: 13px;
  color: #B08A45;
  font-weight: 500;
}

/* ===== Plans / Варианты работы ===== */
.plans-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #666666;
  margin-bottom: 32px;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.plan-card {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.plan-card-featured {
  border-color: #214E3B;
  background: #F8FAF7;
}

.plan-card-free {
  border-color: #E8E8E8;
  background: #FFFDF8;
}

.plan-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FAFAF8;
  background: #214E3B;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.plan-badge-free {
  background: #B08A45;
  color: #FAFAF8;
}

.plan-title {
  font-size: 20px;
  font-weight: 600;
  color: #222222;
  line-height: 1.3;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 28px;
  font-weight: 700;
  color: #214E3B;
  line-height: 1.2;
  margin-bottom: 12px;
}

.plan-price-period {
  font-size: 14px;
  font-weight: 400;
  color: #999999;
  margin-left: 4px;
}

.plan-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
}

.plan-features {
  margin-bottom: 24px;
  flex: 1;
}

.plan-features-heading {
  font-size: 13px;
  font-weight: 600;
  color: #222222;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 6px;
}

.plan-features-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid #214E3B;
  border-bottom: 1.5px solid #214E3B;
  transform: rotate(-45deg);
}

.plan-card-free .plan-features-list li::before {
  border-color: #B08A45;
}

.plan-note {
  font-size: 13px;
  line-height: 1.5;
  color: #999999;
  margin-bottom: 20px;
  font-style: italic;
}

.plans-cta {
  margin-top: 48px;
  text-align: center;
  padding: 40px 32px;
  border: 1px solid #E8E8E8;
  border-radius: 20px;
  background: #FAFAF8;
}

.plans-cta-title {
  font-size: 20px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 12px;
}

.plans-cta-text {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.plans-cta .btn {
  margin-top: 4px;
}

/* ===== Tests / Анализы ===== */
.tests-quote {
  background: #F8FAF7;
  border: 1px solid #E8E8E8;
  border-radius: 16px;
  padding: 24px 28px;
  margin: 28px 0;
}

.tests-quote p {
  font-size: 15px;
  line-height: 1.7;
  color: #222222;
  font-weight: 500;
  margin: 0;
}

.tests-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border: 1px solid #E8E8E8;
  border-radius: 16px;
}

.tests-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
}

.tests-table thead {
  background: #FAFAF8;
}

.tests-table th {
  text-align: left;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #222222;
  border-bottom: 1px solid #E8E8E8;
}

.tests-table td {
  padding: 12px 20px;
  border-bottom: 1px solid #F2F2F0;
}

.tests-table tbody tr:last-child td {
  border-bottom: none;
}

.tests-price-col {
  text-align: right;
  white-space: nowrap;
  width: 120px;
  font-feature-settings: "tnum";
}

.tests-table tbody tr:hover {
  background: #F8FAF7;
}

.tests-total {
  background: #FAFAF8;
  border: 1px solid #E8E8E8;
  border-radius: 16px;
  padding: 20px 28px;
  margin: 28px 0;
}

.tests-total p {
  font-size: 15px;
  line-height: 1.6;
  color: #222222;
  margin-bottom: 6px;
}

.tests-total p:last-child {
  margin-bottom: 0;
}

.tests-total strong {
  color: #214E3B;
}

.tests-final {
  border-left: 3px solid #B08A45;
  padding: 16px 24px;
  margin: 28px 0;
  background: #FFFDF8;
  border-radius: 0 12px 12px 0;
}

.tests-final p {
  font-size: 15px;
  line-height: 1.7;
  color: #222222;
  font-weight: 500;
  margin: 0;
}

.tests-footnote {
  font-size: 12px;
  line-height: 1.5;
  color: #999999;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #E8E8E8;
}

/* ===== Reviews ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.review-card {
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: left;
}

.review-rating {
  margin-bottom: 8px;
}

.review-stars {
  color: #B08A45;
  font-size: 16px;
  letter-spacing: 2px;
}

.review-author {
  font-weight: 600;
  font-size: 14px;
  color: #222222;
  margin-bottom: 10px;
}

.review-text {
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
}

/* ===== Contact ===== */
.contact-intro {
  font-size: 17px;
  font-weight: 500;
  color: #222222;
  margin-bottom: 24px;
}

.contact-details {
  margin: 24px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 15px;
}

.contact-label {
  font-weight: 500;
  color: #222222;
  white-space: nowrap;
}

.contact-link {
  color: #214E3B;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-link:hover {
  border-bottom-color: #214E3B;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid #E8E8E8;
}

.footer-text {
  font-size: 13px;
  color: #999999;
  text-align: center;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-image-wrapper {
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 80px;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .hero-description {
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
    white-space: normal;
    padding: 14px 24px;
    font-size: 14px;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .section {
    padding: 60px 0;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

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

  .plans-cta {
    padding: 28px 20px;
  }

  .tests-table th,
  .tests-table td {
    padding: 10px 14px;
    font-size: 14px;
  }

  .tests-quote,
  .tests-total,
  .tests-final {
    padding: 18px 20px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    padding: 24px 20px;
  }

  .accordion-trigger {
    font-size: 16px;
    padding: 18px 0;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-tagline {
    font-size: 15px;
  }

  .section-title {
    font-size: 22px;
  }

  .navbar-brand {
    font-size: 16px;
  }

  .navbar-inner {
    height: 60px;
  }
}
