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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #faf9f8;
  color: #2e2e2e;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

:root {
  --primary: #eae5e1;
  --secondary: #87937f;
  --primary-light: #f5f2ef;
  --text-dark: #2e2e2e;
  --text-muted: #4a4a4a;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.04);
  --radius: 20px;
  --transition: 0.25s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1e1e1e;
  display: inline-block;
  letter-spacing: -0.3px;
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary);
  border-radius: 4px;
}

h3 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #1e1e1e;
  display: inline-block;
  letter-spacing: -0.3px;
  position: relative;
}

p {
  margin-bottom: 8px;
}

ul, ol {
  margin-bottom: 16px;
}

ul li, ol li {
  margin-left: 20px;
}

section {
  padding: 50px 0;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.8rem;
  border-radius: 40px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(135,147,127,0.25);
  gap: 6px;
  white-space: nowrap;
}

.btn:hover {
  background: #778267;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--secondary);
  color: white;
}

/* Header */
.header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 110;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  width: 100%;
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  width: 100%;
}
.logo {
  font-weight: 700;
  font-size: 1.6rem;
  color: #3a3a3a;
  text-decoration: none;
}
.logo span { color: var(--secondary); }

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: #3a3a3a;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--secondary); }

.nav-links a.btn {
  color: #fff;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #3a3a3a;
  z-index: 130;
}

/* Drawer */
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -8px 0 24px rgba(0,0,0,0.08);
  z-index: 120;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem;
}
.drawer.open {
  right: 0;
}
.drawer a {
  display: block;
  padding: 0.9rem 0;
  font-weight: 500;
  color: #2e2e2e;
  text-decoration: none;
  border-bottom: 1px solid #f0ede8;
}
.drawer .close-drawer {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 115;
  display: none;
}
.overlay.show {
  display: block;
}

/* Hero */
.hero-grid {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  background: var(--primary);
  border-radius: 2.5rem;
  padding: 2.5rem;
  margin-top: 20px;
  width: 100%;
}
.hero-photo {
  flex: 0 0 300px;
  max-width: 100%;
}
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #d9d2ca;
  display: block;
}
.hero-text {
  flex: 1;
  min-width: 250px;
}
.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.1rem;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

/* Проблемы */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  width: 100%;
}
.problem-card {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.problem-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #dcd5cc;
}
.problem-card h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.problem-card p {
  font-size: 0.9rem;
  color: #4a4a4a;
  margin-bottom: 1.2rem;
  flex: 1;
}

/* Статистика */
.stats {
  /*display: flex;*/
  /*justify-content: flex-wrap;*/
  /*flex-wrap: wrap;*/
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  /*gap: 1rem;*/
  background: var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  text-align: center;
  width: 100%;
}
.stat-item {
  /*flex-basis: 30%;*/
  /*background: red;*/
  padding: 16px;
}

.stat-item h3 {
  font-size: 1.2rem;
  line-height: 120%;
  font-weight: 700;
  /*margin-bottom: 8px;*/
  color: var(--secondary);
}

.stat-item p {
  /*font-size: 14px;*/
}

/* Тарифы */
.tariffs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  width: 100%;
}
.tariff-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  flex: 1 1 260px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0ede8;
  display: flex;
  flex-direction: column;
}
.tariff-card.featured {
  border: 2px solid var(--secondary);
  background: #fbfaf8;
}
.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}
.discount {
  color: #b85c5c;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Слайдер Slick */
.slick-slider {
  width: 100%;
  margin: 0 auto;
}
.slick-slide {
  padding: 0 10px;
  box-sizing: border-box;
}
.doc-slide {
  /*background: #f1ede8;*/
  border-radius: 60px;
  overflow: hidden;
  /*box-shadow: var(--shadow-sm);*/
}
.doc-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.slick-prev:before, .slick-next:before {
  color: var(--secondary) !important;
  font-size: 28px;
}
.slick-dots li button:before {
  color: var(--secondary) !important;
}

/* Отзывы */
.reviews {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}
.review-card {
  background: white;
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex: 1 1 280px;
}

/* CTA */
.cta-block {
  background: var(--secondary);
  color: white;
  border-radius: 2.5rem;
  padding: 3.5rem 2rem;
  text-align: center;
  width: 100%;
}
.cta-block h2 {
  color: white;
}
.cta-block h2:after {
  background: white;
}

.cta-block__text {
  display: flex;
  justify-content: center;
}
.cta-block__text p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-align: center;
  max-width: 70%;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
.cta-form input {
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  flex: 1 1 200px;
  min-width: 180px;
}

.footer {
  background: #f5f2ef;
  padding: 3rem 0 2rem;
  width: 100%;
  margin-top: 2rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
}
.social i {
  font-size: 1.6rem;
  margin-right: 16px;
  color: #4a4a4a;
  transition: 0.2s;
}
.social i:hover {
  color: var(--secondary);
}

@media (max-width: 868px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: block;
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  section {
    padding: 20px 0;
  }
  h2 {
    font-size: 1.3rem;
  }

  /* Hero без фона и скруглений */
  .hero-grid {
    background: transparent;
    border-radius: 0;
    padding: 1rem 0;
    margin-top: 10px;
    flex-direction: column;
    text-align: center;
  }
  .hero-photo {
    flex: 0 0 auto;
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-text {
    padding: 1rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .stats {
    border-radius: 16px;
    grid-template-columns: repeat(1, 1fr);
  }

  /* CTA без скруглений */
  .cta-block {
    border-radius: 0;
    /*margin-left: -20px;*/
    /*margin-right: -20px;*/
    /*width: calc(100% + 20px);*/
    width: 100%;
    /*padding: 3rem;*/
    padding: 1.5rem;
  }

  .cta-block__text p {
    max-width: 100%;
  }

  .doc-slide img {
    height: 320px;
  }

  .problems-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .problems-grid {
    /*grid-template-columns: 2fr;*/
  }
  .hero-photo {
    width: 85%;
  }
  .cta-form input {
    flex: 1 1 100%;
  }
}

.message {
  padding: 16px 0 16px 0;
  color: white;
  font-size: 20px;
  border: 1px solid #fff;
  margin-bottom: 20px;
}


/* Блок «Цена» */
.pricing-block {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.pricing-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0ede8;
  flex: 1 1 320px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.07);
}

.pricing-card.featured {
  border: 2px solid var(--secondary);
  background: #fbfaf8;
}

.pricing-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.pricing-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #1e1e1e;
}

.pricing-price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.pricing-price.free {
  color: #6ba368;
}

.pricing-desc {
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  flex: 1;
}

.pricing-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .pricing-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .pricing-card .btn {
    align-self: stretch;
  }
}