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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* ===============================
   Стили для Hero-секции
   =============================== */

/* 1) Змінні для Hero */
:root {
  --hero-bg-start: #eafaf1;
  --hero-bg-end: #ffffff;
  --hero-text-black: #222222;
  --hero-text-gray: #555555;
  --hero-button-hover: #1e7e34;
  --primary-green: #28a745;
  --primary-green-dark: #1e7e34;
  --text-muted: #9CA3AF;
  --text-charcoal: #374151;
  --font: 'Inter', sans-serif;
}

/* 2) Основні властивості секції */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh; /* займає весь екран по висоті */
  background: linear-gradient(135deg, #eafaf1 0%, #f8fffc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 0;
}

/* 3) Накладення над фоном (щоб трохи "розмити" зображення або градієнт) */
.hero__overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

/* 4) Контейнер із текстом поверх накладення */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out; /* плавне з'явлення зверху-вниз */
}

/* 4.1) Анімація появи контенту */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 5) Стиль для головного заголовка */
h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.15;
  color: #102216; /* можна замінити на var(--hero-text-black) */
  margin-bottom: 32px;
  text-align: center;
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(34px, 5vw, 56px);
  }
}

/* 5.1) Акцентний текст із градієнтною заливкою */
.accent {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* 6) Стиль для підзаголовка */
.hero-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.6;
  color: #375246;
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* 6.1) Стилізація "пігулки" для цифр (див. <span class="pill">) */
.pill {
  background: #E6F7F0;
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: 600;
  color: #0F5132;
}

/* 6.2) Виділення важливих фраз маркером (див. <span class="marker-wide">) */
.marker-wide {
  position: relative;
  font-weight: 600;
  color: #0A1C12;
  white-space: nowrap;
  padding: 0 2px;
}

.marker-wide::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 3px;
  height: 10px;
  background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  opacity: .25;
  border-radius: 4px;
  z-index: -1;
  transition: .3s;
}

.marker-wide:hover::after {
  opacity: .4;
  transform: scaleX(1.03);
}

/* 6.3) Нотатка під заголовком («*Середній результат…») */
.hero__note {
  display: block;
  color: #9CA3AF;
  font-size: 0.9rem;
  margin-top: 1rem;
  font-weight: 400;
}

small {
  color: var(--text-muted);
}

/* 7) Список переваг (Benefits list) */
.hero__benefits {
  list-style: none;
  margin: 0 auto 42px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 18px;
  font-weight: 500;
  max-width: 700px;
  align-items: center;
}

.hero__benefits li {
  position: relative;
  padding-left: 36px;
  cursor: default;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 50px;
  padding: 16px 24px 16px 56px;
  box-shadow: 0 4px 16px rgba(22, 148, 106, 0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  margin: 0 auto;
  max-width: 400px;
}

.hero__benefits li span {
  position: relative;
  transition: color 0.2s ease;
}

.hero__benefits li:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(22, 148, 106, 0.15);
}

.hero__benefits li:hover span {
  color: var(--text-charcoal);
  font-weight: 600;
}

.hero__benefits li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #5ED371 0%, var(--primary-green) 100%);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M6.173 14.727 1.23 9.783l1.285-1.285 3.658 3.66 7.314-7.315 1.285 1.285z'/%3E%3C/svg%3E") center/16px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M6.173 14.727 1.23 9.783l1.285-1.285 3.658 3.66 7.314-7.315 1.285 1.285z'/%3E%3C/svg%3E") center/16px no-repeat;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(47, 168, 76, 0.3);
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .hero__benefits li {
    padding: 14px 20px 14px 50px;
    width: 80%;
    text-align: center;
  }
  .hero__benefits li span {
    display: block;
    text-align: center;
  }
  .hero__benefits li::before {
    left: 15px;
    width: 24px;
    height: 24px;
    mask-size: 14px;
    -webkit-mask-size: 14px;
  }
}

/* 8) Кнопка CTA у Hero */
.hero__button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 22px 50px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.25);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hero__button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.hero__button:hover {
  background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(40, 167, 69, 0.35);
}

.hero__button:hover::before {
  transform: translateX(100%);
}

.hero__button:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

/* 9) Нотатка під кнопкою */
.hero__small-note {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--hero-text-gray);
  margin-top: 0.5rem;
  font-style: italic;
  font-weight: 500;
  display: inline-block;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  padding: 10px 20px;
  max-width: 450px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.hero__small-note:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Pricing Section */
.pricing-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.pricing-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: #2d3436;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.pricing-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 2px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card--featured {
    position: relative;
    border: 2px solid #3b82f6;
}

.pricing-card--premium {
    position: relative;
    border: 2px solid #10b981;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
    text-align: center;
    min-width: fit-content;
}

.pricing-badge--featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.pricing-badge--premium {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.pricing-card__header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.pricing-card__header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.pricing-card__content {
    padding: 30px;
    flex: 1;
}

.pricing-description {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 25px;
}

.pricing-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #374151;
    line-height: 1.5;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2310b981"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat center;
    background-size: contain;
}

.pricing-audience {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.pricing-audience p {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

.pricing-card__footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pricing-price {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
}

.pricing-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.pricing-btn--featured {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.pricing-btn--premium {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.pricing-btn--premium:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero__benefits {
        flex-direction: column;
        gap: 15px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .pricing-card {
        order: 2;
    }
    
    .pricing-card--featured {
        order: 1;
    }
    
    .pricing-card--premium {
        order: 3;
    }
    
    .pricing-card__footer {
        flex-direction: column;
        gap: 20px;
    }
    
    .pricing-btn {
        width: 100%;
        padding: 15px 20px;
    }
    
    .pricing-badge {
        font-size: 12px;
        padding: 6px 16px;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 60px 0;
    }
    
    .pricing-card__header,
    .pricing-card__content,
    .pricing-card__footer {
        padding: 20px;
    }
}