/* --- Глобальные переменные и стили --- */
:root {
  --primary-color: #0055a4;
  --secondary-color: #3a7bd5;
  --light-blue: #e9f0f9;
  --light-gray: #f5f5f7;
  --dark-text: #212B36;
  --gray-text: #637381;
  --white: #fff;
  --green: #00A76F;
  --warning-bg: #fffbe6;
  --warning-border: #ffe58f;
  --shadow: 0 4px 12px rgba(33, 43, 54, 0.08);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gray-bg {
  background-color: var(--light-gray);
}

.text-center {
    text-align: center;
}

h1, h2, h3, h4 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 36px; }
h2 { font-size: 32px; margin-bottom: 40px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; color: var(--primary-color); }
p { margin-bottom: 1rem; color: var(--gray-text); }
ul, ol { padding-left: 20px; }
li { margin-bottom: 0.5rem; }

/* --- Кнопки --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  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);
  box-shadow: var(--shadow);
}

.btn-whatsapp {
    background-color: var(--green);
    color: var(--white);
}
.btn-whatsapp:hover {
    background-color: #00855A;
}
.btn-whatsapp i {
    margin-right: 8px;
}
.btn-block {
  display: block;
  width: 100%;
}

/* --- Шапка сайта --- */
.header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-phone {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    white-space: nowrap;
}
.header-phone:hover {
    color: var(--primary-color);
}

/* --- Секция товара --- */
.product-section {
    padding: 60px 0;
}
.product-card-page {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.product-image-section {
    position: sticky;
    top: 120px;
}
.product-main-image {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 30px;
}
.product-main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.product-availability {
    color: var(--green);
    font-weight: 600;
    background: #e6f6f0;
    padding: 6px 12px;
    border-radius: var(--radius);
    display: inline-block;
    margin-bottom: 20px;
}
.price-simple {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 4px;
}
.payment-info {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-text);
    margin-bottom: 24px;
}
.product-buttons {
    margin-bottom: 32px;
}
.product-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}
.info-label { color: var(--gray-text); }
.info-value { font-weight: 600; }

.quality-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light-blue);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-weight: 500;
}
.quality-badge i { color: var(--primary-color); }

/* --- Якорная навигация --- */
.page-navigation {
    background: var(--white);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 0;
    position: sticky;
    top: 86px; /* Высота шапки */
    z-index: 999;
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: 50px;
}
.nav-link {
    padding: 20px 0;
    text-decoration: none;
    font-weight: 600;
    color: var(--gray-text);
    position: relative;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nav-link.active, .nav-link:hover {
    color: var(--primary-color);
}
.nav-link.active {
    border-bottom-color: var(--primary-color);
}

/* --- Общие секции контента --- */
.content-section {
    padding: 80px 0;
}
.description-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.description-block {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- Блок Доставка и Оплата (НОВЫЙ) --- */
.delivery-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.delivery-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.delivery-info-card .card-icon {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.delivery-info-card h3 {
    margin-bottom: 20px;
}
.delivery-info-card .card-subtitle {
    color: var(--dark-text);
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}
.delivery-info-card .card-subtitle strong {
    color: var(--primary-color);
}
.delivery-times, .payment-options {
    list-style: none;
    padding: 0;
}
.delivery-times li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}
.delivery-times li:last-child {
    border-bottom: none;
}
.payment-options li {
    font-weight: 500;
}
.payment-options i {
    color: var(--secondary-color);
    margin-right: 10px;
}
.warning-box {
    margin-top: 25px;
    padding: 15px;
    background-color: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.warning-box .warning-icon {
    font-size: 20px;
    color: #faad14;
}
.warning-box p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.5;
}
.warning-box strong {
    display: block;
    margin-bottom: 5px;
}

/* --- Блок Эффективность --- */
.efficacy-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}
.efficacy-icon {
    font-size: 40px;
    color: var(--primary-color);
    background-color: var(--light-blue);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Детальная инструкция --- */
.instruction-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.instruction-card-detailed {
    background: var(--light-gray);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid #e0e0e0;
}
.instruction-card-detailed h4 { color: var(--dark-text); }
.instruction-card-detailed h4 i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 15px;
  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(--dark-text);
  margin: 0;
}
.faq-question::after {
  content: '+';
  font-size: 24px;
  transition: var(--transition);
  color: var(--primary-color);
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}
.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

/* --- Форма заказа --- */
.order-form-section { 
    padding: 80px 0; 
    background: var(--light-blue);
}
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 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 textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 16px;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 85, 164, 0.1);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-disclaimer {
  font-size: 14px;
  color: var(--gray-text);
  text-align: center;
  margin-top: 20px;
}

/* --- Подвал --- */
.footer {
  background-color: var(--dark-text);
  color: #a0aec0;
  padding: 60px 0 20px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-column h4 {
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  color: #a0aec0;
  text-decoration: none;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--white);
  transform: translateX(5px);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #4a5568;
  font-size: 14px;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .product-card-page { 
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-image-section { 
        position: static; 
    }
    .page-navigation {
        top: 76px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 30px; }
    h2 { font-size: 28px; }
    .content-section { padding: 60px 0; }
    .product-section { padding: 30px 0; }
    
    .form-row { flex-direction: column; gap: 0; }
    .form-row .form-group { min-width: 100%; }

    .efficacy-wrapper { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        padding: 30px;
    }
    .efficacy-content ul { padding-left: 0; list-style-position: inside; }

    /* --- Стили для мобильной шапки --- */
    .header {
        padding: 10px 0;
    }
    .logo-text {
        font-size: 22px;
    }
    .header-phone {
        display: none;
    }
    .btn-whatsapp-text {
        display: none;
    }
    .btn-whatsapp {
        padding: 12px 15px;
        font-size: 18px;
    }
    .btn-whatsapp i {
        margin-right: 0;
    }
    
    /* Адаптивная навигация */
    .page-navigation {
        top: 61px;
    }
    .nav-links {
        justify-content: flex-start;
        gap: 25px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 20px;
        scrollbar-width: none; /* Firefox */
    }
     .nav-links::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .container {
        padding: 0 15px;
    }
    .instruction-grid-detailed {
        grid-template-columns: 1fr;
    }
}