/* Основные стили */
:root {
  --primary-color: #0055a4;
  --secondary-color: #3a7bd5;
  --light-blue: #e9f0f9;
  --light-gray: #f5f5f7;
  --dark-text: #333;
  --gray-text: #666;
  --light-text: #999;
  --white: #fff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
  --in-stock-color: #F2FCE2; /* Мягкий зеленый цвет для "Есть в наличии" */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--white);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--light-blue);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

p {
  margin-bottom: 1rem;
}

section {
  padding: 60px 0;
}

/* Шапка сайта */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: static;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 50px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 10px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a:hover::after {
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.phone {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 5px;
}

.phone i {
  margin-right: 8px;
}

.email {
  color: var(--gray-text);
  font-size: 14px;
  text-decoration: none;
}

.email:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

/* Секция Hero */
.hero {
  background: linear-gradient(135deg, var(--light-blue), #f0f8ff);
  padding: 80px 0;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.hero-text p {
  font-size: 18px;
  color: var(--gray-text);
  margin-bottom: 30px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

/* Преимущества */
.benefits {
  background-color: var(--white);
}

.benefits-title {
  text-align: center;
  margin-bottom: 50px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.benefit-item {
  padding: 30px;
  background-color: var(--light-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.benefit-title {
  font-size: 20px;
  margin-bottom: 15px;
}

/* О препарате */
.about-product {
  background-color: var(--light-gray);
}

.product-description {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.description-item {
  background-color: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.description-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Характеристики препарата */
.product-specs {
  background-color: var(--white);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--light-text);
}

.specs-table th {
  background-color: var(--light-blue);
  color: var(--primary-color);
  font-weight: 600;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background-color: var(--light-gray);
}

/* Отзывы */
.reviews {
  background-color: var(--light-gray);
}

.reviews-title {
  text-align: center;
  margin-bottom: 50px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-blue);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-right: 15px;
}

.review-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
}

.review-date {
  font-size: 14px;
  color: var(--light-text);
}

.review-rating {
  color: #ffc107;
  font-size: 18px;
  margin-bottom: 15px;
}

.review-text {
  color: var(--gray-text);
}

/* География доставки */
.delivery-geography {
  background-color: var(--white);
}

.geography-title {
  text-align: center;
  margin-bottom: 40px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.city-item {
  background-color: var(--light-blue);
  padding: 15px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.city-item:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.delivery-note {
  text-align: center;
  padding: 20px;
  background-color: #e7f3ff;
  border-radius: var(--radius);
  margin-top: 30px;
}

/* FAQ */
.faq {
  background-color: var(--light-gray);
}

.faq-title {
  text-align: center;
  margin-bottom: 40px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--light-blue);
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

/* Форма заказа */
.order-form {
  background-color: var(--white);
}

.order-form h2 {
  text-align: center;
  margin-bottom: 40px;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--light-gray);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  min-width: 250px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 85, 164, 0.2);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 14px;
  color: var(--gray-text);
  margin-top: 5px;
}

.form-disclaimer {
  font-size: 14px;
  color: var(--gray-text);
  text-align: center;
  margin-top: 20px;
}

/* Подвал */
footer {
  background-color: var(--light-gray);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: var(--gray-text);
  text-decoration: none;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--gray-text);
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-contact a {
  color: var(--gray-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: var(--light-text);
}

/* Адаптивность */
@media (max-width: 992px) {
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 26px;
  }
  
  .hero-content {
    flex-direction: column;
  }
  
  .hero-image {
    order: -1;
  }
  
  .reviews-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  .header-inner {
    flex-wrap: wrap;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    text-align: center;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu a {
    display: block;
    padding: 15px;
  }
  
  .nav-menu a::after {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-info {
    display: none;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 576px) {
  section {
    padding: 40px 0;
  }
  
  .benefit-item {
    padding: 20px;
  }
  
  .cities-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: 20px;
  }
}

/* Стили для страницы "Как купить" */
.how-to-buy {
  background-color: var(--light-gray);
}

.how-to-buy-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.step-card {
  display: flex;
  gap: 30px;
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.step-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Стили для страницы контактов */
.contact-page {
  background-color: var(--light-gray);
}

.contact-info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.contact-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-card h3 {
  margin-bottom: 15px;
}

.contact-card p, 
.contact-card a {
  color: var(--gray-text);
  text-decoration: none;
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--primary-color);
}

/* Стили для информации о наличии и цене */
.product-status {
  margin-top: 15px;
  text-align: center;
}

.in-stock {
  color: green;
  font-weight: 600;
  padding: 5px 10px;
  background-color: var(--in-stock-color);
  border-radius: var(--radius);
  display: inline-block;
  margin-bottom: 5px;
}

.price {
  font-weight: 600;
  font-size: 18px;
  color: var(--dark-text);
}



/* =========================================
   Стили для секции Доставка и Оплата
   ========================================= */

/* Используем светло-серый фон, чтобы отделить от Hero и Benefits */
.delivery-payment {
  background-color: var(--light-gray);
}

/* Центрируем заголовок секции (если не задано глобально) */
.delivery-payment h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* Контейнер для двух карточек (грид для адаптивности) */
.dp-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  align-items: start; /* Чтобы карточки не растягивались, если контента разное кол-во */
}

/* Стиль карточки (как везде на сайте) */
.dp-card {
  background-color: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%; /* Пытаемся выровнять высоту */
  display: flex;
  flex-direction: column;
}

/* Заголовок внутри карточки с иконкой */
.dp-header {
  text-align: center;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.dp-icon {
  font-size: 42px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.dp-header h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.dp-content {
  color: var(--gray-text);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Выделение цены */
.dp-price {
  font-size: 18px;
  margin: 15px 0 25px;
  color: var(--dark-text);
}

.price-highlight {
  color: var(--primary-color);
  font-weight: 700;
}

/* Блок со сроками */
.dp-timings h4 {
  color: var(--dark-text);
  font-size: 18px;
  margin-bottom: 15px;
}

/* Кастомные списки */
.custom-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.custom-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 5px;
}

/* Списки в сроках доставки (добавляем буллиты или отступы) */
.dp-timings .custom-list li {
    border-bottom: 1px dotted #eee;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
}
.dp-timings .custom-list li strong {
    color: var(--dark-text);
}

/* Списки в методах оплаты (с иконками) */
.payment-methods li {
  display: flex;
  align-items: center;
  font-size: 17px;
}

.payment-methods li i {
  color: var(--secondary-color);
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

/* Предупреждение о комиссии (важный блок) */
.dp-warning {
  margin-top: auto; /* Прижимает к низу карточки */
  background-color: #fff8e1; /* Мягкий желтый фон */
  border-left: 4px solid #ffc107; /* Желтая полоса слева */
  padding: 15px 20px;
  border-radius: 4px;
  display: flex;
  gap: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.dp-warning i {
  color: #ffc107; /* Цвет иконки предупреждения */
  font-size: 24px;
  margin-top: 2px;
}

.dp-warning strong {
  display: block;
  color: #b68a00; /* Темно-желтый текст заголовка */
  margin-bottom: 5px;
}

.dp-warning p {
  margin-bottom: 0;
  color: #5d4d24; /* Контрастный текст предупреждения */
}

/* Адаптация для мобильных (добавить в конец секции @media (max-width: 768px) или оставить тут) */
@media (max-width: 576px) {
  .dp-card {
    padding: 25px 20px;
  }
  .dp-timings .custom-list li {
      flex-direction: column;
  }
}