@font-face {
  font-family: "Playfair Display";
  src: url(../fonts/PlayfairDisplay-VariableFont_wght.ttf);
  font-display: swap;
}

:root {
  --primary: #0f4f97;
  --secondary: #4268e0;
  --accent: #ef9f1d;
  --light-bg: #f0f4fa;
  --sidebar-bg: #e1e7fb;
  --text: #252a32;
  --white: #ffffff;
  --gradient-blue: linear-gradient(135deg, #0f4f97 0%, #4268e0 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

header {
  background-color: var(--primary);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--white);
}

.nav-left,
.nav-right {
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-center {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  gap: 10px;
}

.logo-link img {
  width: 50px;
  height: 50px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
}

main {
  flex: 1;
}

.container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  width: 100%;
}

.main-grid {
  display: grid;
  grid-template-columns: 75% 25%;
  gap: 20px;
  align-items: start;
}

.content {
  background: var(--white);
  min-width: 0;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #827b7b;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #827b7b;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.author {
  font-weight: 600;
}

.dot {
  color: #ccc;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: #444;
  margin-bottom: 2rem;
}

.hero-img img,
.microscope-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
  object-fit: cover;
}

.article-body p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bacteria-list-box {
  background: #ceedfd;
  border-left: 5px solid var(--primary);
  border-right: 5px solid var(--primary);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.bacteria-list-box h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.bacteria-list-box ul {
  list-style: none;
  padding-left: 0;
}

.bacteria-list-box li {
  margin-bottom: 0.7rem;
  padding-left: 1.5em;
  position: relative;
}

.bacteria-list-box li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.highlight {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 2rem;
}

.product-intro {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}

.product-intro-text {
  flex: 2;
  min-width: 0;
}

.product-intro-img {
  flex: 1;
  text-align: center;
}

.product-intro-img img {
  max-width: 100%;
  border-radius: 12px;
}

.cta-button {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 18px rgba(66, 104, 224, 0.3);
}

.cta-button:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(66, 104, 224, 0.4);
}

.slider-section h2 {
  margin-bottom: 1rem;
}

.slider {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
  object-fit: cover;
}

.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.slider button:hover {
  background: var(--white);
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

.testimonials h2 {
  margin-bottom: 1.5rem;
}

.testimonial-card,
.review-card {
  background: #ceedfd;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.stars {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.testimonial-card blockquote,
.review-card blockquote {
  font-style: italic;
  margin-bottom: 0.5rem;
}

cite {
  font-size: 0.9rem;
  font-weight: 600;
}

.offer-box {
  background: var(--light-bg);
  border: 2px solid var(--secondary);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.offer-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.fine-print {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-box {
  background: var(--sidebar-bg);
  padding: 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  background: rgba(225, 231, 251, 0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-label {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.rating-text {
  margin: 0.3rem 0 1rem;
}

.product-name {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.sidebar-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.sidebar-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.contact-faq {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 20px;
}

.contact-faq h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 16px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.faq-accordion {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 0.8rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0.5rem 0;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

footer {
  background: #1a1a2e;
  color: #ddd;
  font-size: 0.95rem;
  padding: 2rem 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-info p {
  margin-bottom: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.disclaimer {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.8;
  margin: 1rem 0;
}

.copyright {
  border-top: 1px solid #444;
  padding-top: 1rem;
}

.sticky-bottom {
  position: sticky;
  bottom: 0;
  background: var(--secondary);
  text-align: center;
  padding: 12px 0;
  z-index: 100;
}

.sticky-bottom .cta-button {
  background: var(--white);
  color: var(--secondary);
  box-shadow: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
}

.modal-body {
  text-align: center;
}

.modal-body h2 {
  margin-bottom: 1rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  word-break: break-word;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: #0f4f97;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin: 1.5rem 0 1rem;
  color: #0f4f97;
}

.legal-content h3 {
  font-size: 1.4rem;
  margin: 1.2rem 0 0.8rem;
  color: #0f4f97;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: #4268e0;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #0f4f97;
}

/* ============ АДАПТИВНОСТЬ ============ */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sidebar {
    position: static;
    display: block;
  }

  .sidebar-box {
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-faq-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  .product-intro {
    gap: 1.5rem;
  }

  .offer-box {
    padding: 1.5rem;
  }

  .offer-content h2 {
    font-size: 1.6rem;
  }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
  .container-main {
    padding: 0.5rem 15px;
  }

  .top-nav {
    padding: 8px 15px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  h1 {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .article-body p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .product-intro {
    flex-direction: column;
    gap: 1.5rem;
  }

  .product-intro-img {
    order: -1;
  }

  .product-intro-img img {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
  }

  .product-intro-text {
    text-align: center;
  }

  .product-intro-text h2 {
    font-size: 1.3rem;
  }

  .bacteria-list-box {
    padding: 1.2rem;
  }

  .bacteria-list-box h3 {
    font-size: 1.1rem;
  }

  .highlight {
    padding: 1.2rem;
    font-size: 0.95rem;
  }

  .offer-box {
    padding: 1.5rem 1rem;
  }

  .offer-content h2 {
    font-size: 1.4rem;
  }

  .cta-button {
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 1rem;
    width: 100%;
  }

  .cta-button.large {
    font-size: 1.1rem;
    padding: 14px 24px;
  }

  .slider button {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .prev {
    left: 8px;
  }

  .next {
    right: 8px;
  }

  .testimonial-card,
  .review-card {
    padding: 1.2rem;
  }

  .sidebar-box {
    padding: 1.2rem;
  }

  .product-name {
    font-size: 1.4rem;
  }

  .sticky-bottom {
    padding: 10px 15px;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }

  .modal-close {
    font-size: 1.5rem;
    top: 10px;
    right: 10px;
  }

  .footer-content {
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .legal-content {
    padding: 20px 15px;
  }

  .legal-content h1 {
    font-size: 1.6rem;
  }

  .legal-content h2 {
    font-size: 1.4rem;
  }

  .legal-content h3 {
    font-size: 1.2rem;
  }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
  .top-nav {
    padding: 6px 10px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .logo-link img {
    width: 35px;
    height: 35px;
  }

  .nav-left,
  .nav-right {
    font-size: 1.2rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .hero-img img {
    border-radius: 8px;
    margin-bottom: 1.5rem;
  }

  .bacteria-list-box {
    padding: 1rem;
    border-left-width: 4px;
    border-right-width: 4px;
    border-radius: 12px;
  }

  .bacteria-list-box li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .product-intro-img img {
    max-width: 220px;
  }

  .cta-button {
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .slider button {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .offer-box {
    padding: 1.2rem 0.8rem;
    border-radius: 12px;
  }

  .offer-content h2 {
    font-size: 1.2rem;
  }

  .sidebar-box {
    padding: 1rem;
    border-radius: 12px;
  }

  .sidebar-label {
    font-size: 1.2rem;
  }

  .product-name {
    font-size: 1.3rem;
  }

  .testimonial-card,
  .review-card {
    padding: 1rem;
    border-radius: 10px;
  }

  .modal-content {
    padding: 1.2rem;
    border-radius: 12px;
  }

  .modal-body h2 {
    font-size: 1.3rem;
  }

  .modal-body p {
    font-size: 0.9rem;
  }
}