/* =========================================================================
   Propsyhology — main.css
   Базовые стили: reset, типографика, шапка, футер, все секции главной.
   ========================================================================= */

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

: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;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #faf9f8;
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

.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: #fff;
  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-sm {
  padding: 0.5rem 1.2rem;
}

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

.btn-outline:hover {
  background: var(--secondary);
  color: #fff;
}

/* =========================================================================
   Шапка
   ========================================================================= */
.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);
}

.logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-weight: 500;
}

.nav-links ul.menu {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links ul.menu li {
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #3a3a3a;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
}

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

.nav-links a.btn:hover {
  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: #fff;
  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 ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.drawer ul.menu li {
  margin: 0;
}

.drawer a {
  display: block;
  padding: 0.9rem 0;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid #f0ede8;
}

.drawer a.btn {
  border-bottom: none;
  margin-top: 1rem;
  text-align: center;
  color: #fff;
  display: block;
  width: 100%;
}

.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: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================================================
   Опыт
   ========================================================================= */
.experience-box {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.experience-item {
  /* flex: 1 1 240px; */
  min-width: 220px;
}

.experience-item strong {
  display: inline-block;
  margin-bottom: 4px;
}

/* =========================================================================
   Проблемы
   ========================================================================= */
.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;
  display: block;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex: 1;
}

/* =========================================================================
   Преимущества
   ========================================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  width: 100%;
}

.stat-item {
  padding: 16px;
}

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

.stat-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =========================================================================
   Тарифы
   ========================================================================= */
.pricing-block {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.pricing-card {
  background: #fff;
  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: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  flex: 1;
}

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

/* =========================================================================
   Отзывы
   ========================================================================= */
.reviews {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.review-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex: 1 1 280px;
}

.review-card p {
  margin-bottom: 1rem;
}

.review-card strong {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.cta-block h2 {
  color: #fff;
}

.cta-block h2:after {
  background: #fff;
}

.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;
  font-family: inherit;
}

.cta-submit {
  background: #fff;
  color: var(--secondary);
  font-weight: 600;
  padding: 1rem 2rem;
}

.cta-submit:hover {
  background: #f0ede8;
  color: var(--secondary);
}

.form-message {
  padding: 16px;
  color: #fff;
  font-size: 1.05rem;
  border: 1px solid #fff;
  border-radius: 12px;
  margin-bottom: 20px;
}

.form-message--err {
  background: rgba(180, 59, 59, 0.25);
}

/* =========================================================================
   Футер
   ========================================================================= */
.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%;
}

.footer a {
  color: #3a3a3a;
}

.footer ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul.menu li {
  margin: 0 0 4px;
}

.footer .social i {
  font-size: 1.6rem;
  margin-right: 16px;
  color: var(--text-muted);
  transition: 0.2s;
}

.footer .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-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: 1fr;
  }

  .cta-block {
    border-radius: 0;
    width: 100%;
    padding: 1.5rem;
  }

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

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

  .pricing-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .pricing-card .btn {
    align-self: stretch;
  }
}

@media (max-width: 480px) {
  .hero-photo {
    width: 85%;
  }

  .cta-form input {
    flex: 1 1 100%;
  }
}