body{font-family:Arial,sans-serif;margin:0;background:#ffffff;color:#333;}
header{background:url("img/expan2.jpg");padding:10px 20px;text-align:center;background-size: cover;background-position: center;background-repeat: no-repeat;}
header h1{font-size:35px;font-weight: 800;margin-bottom:10px;margin-top: -10px;color:#cd0202;text-shadow: 0 0 7px #ffffff;}
header p{font-size:18px;font-weight: 600;max-width:700px;margin:auto;color:#203b72;text-shadow: 0 0 3px #ffffff;}
.container{margin:auto;padding:70px 20px;}
h2{text-align:center;margin-bottom:40px; margin-top: 0px;}
.btn{background:#1b6ca8;color:white;border:none;padding:14px 28px;border-radius:3px;font-size:16px;cursor:pointer;}
.btn:hover{background:#134c78;transform: translateY(-2px);box-shadow:0 5px 12px rgba(0,0,0,0.25);}
.stats{display:flex;justify-content:space-around;text-align:center;margin-top:40px;flex-wrap:wrap;}
.stats div{margin:10px;}
.modal{display:none;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;overflow:auto;background:rgba(0,0,0,0.6);}
.modal-content{background:#f4f0eb;margin:10% auto;padding:20px;border-radius:8px;width:90%;max-width:600px;position:relative;}
.close{position:absolute;top:10px;right:15px;font-size:24px;font-weight:bold;cursor:pointer;}

/*                 о лаборатории        */
.lab-title{
text-align:center;
color:#1b6ca8;
margin-bottom:40px;
}

.lab-grid{
display:grid;
grid-template-columns: 2fr 1fr;
gap:40px;
max-width:1000px;
margin:auto;
}

.lab-text {
  max-width: 900px;
  margin: auto;
  text-align: justify; /* выравниваем текст по обеим сторонам */
  margin-bottom: 40px; /* расстояние до кнопок */
  text-indent: 30px;    /* вот здесь задаём красную строку */
  line-height: 1.6;     /* чтобы текст было удобно читать */
}

.lab-features{
display:flex;
flex-direction:column;
gap:15px;
margin-top: 20px;
margin-bottom: 20px;
}

.feature{
  display:flex;
  align-items:center;
  gap:12px;
  background:#e8f4ff; /* цвет карточки */
  padding:15px 20px;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  border-left:4px solid #1b6ca8;
  font-weight:500;
}

.icon svg{
  width:30px;
  height:30px;
  fill:none; /* цвет иконки под дизайн */
}

.lab-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center; /* выравнивание карточек по центру вертикали */
}

/* адаптив */
@media (max-width:768px){
.lab-grid{
grid-template-columns:1fr;
}
}

/* Таблица конструкций */
.constructs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top:50px;
}

.constructs-grid div {
  background:#f0f4f8; 
  border-radius:12px; 
  padding:15px; 
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.constructs-grid div:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.constructs-grid ul {list-style:none;padding:0;margin:0;}
.constructs-grid li {
  margin-bottom:6px; 
  padding:6px 10px; 
  border-radius:6px; 
  color:white;
  font-weight:500;
}

.promoters li { background:#4CAF50; }
.terminators li { background:#ffc400; }
.genes li { background:#2196F3; }
.events li { background:#9C27B0; }

/* Мобильная адаптация */
@media(max-width:768px){
  .constructs-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "promoters terminators"
      "genes events";
    gap:15px;
  }

  .promoters { grid-area: promoters; }
  .terminators { grid-area: terminators; }
  .genes { grid-area: genes; }
  .events { grid-area: events; }
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step {
  background:white;
  padding:25px;
  border-radius:8px;
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
  text-align:center;
}

.step .icon svg {
  width: 60px;   /* желаемая ширина */
  height: 63px;  /* желаемая высота */
  max-width: 100%; /* чтобы не вылазило за контейнер */
}

.step1 { background:#ecf8f8;}
.step2 { background:#f8f5ec;}
.step3 { background:#eee;}
.step4 { background:#f4f0eb;}

.step{
  transition: transform 0.3s, box-shadow 0.3s;
}
.step:hover{
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* === Плавные эффекты для всех блоков stats и steps === */
.step, .stats-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: default;
}

.stats-item {
  background: #1b6ca8; /* насыщенный синий */
  color: #fff; /* белый текст */
  border-radius: 5px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

/* Hover эффект для карточек */
.stats-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* SVG внутри карточки */
.stats-item svg {
  width: 65px;
  height: 65px;
  fill: #1b6ca8;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.stats-item:hover svg {
  transform: scale(1.1); /* лёгкое увеличение иконки */
}

/* Заголовок и текст */
.stats-item h2 {
  margin: 10px 0;
  font-size: 28px;
  color: #0063c0;
}

.container-stats h2{
margin-top:10px;
}

.container-stats{
background-color: #e6f0fa;
}

.stats-item:hover h2 {
  color: #134c78; /* чуть темнее на hover */
}

.stats-item p {
  font-size: 14px;
  color: #0063c0;
}

.stats-item .highlight {
  font-weight: bold;
  color: #d74b4b; /* дополнительный цвет для выделения */
}

/* === Flex контейнер для карточек === */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px 0;
}

/* Карточки одинаковой ширины */
.stats-item {
  text-align: center;
  max-width: 180px;
  flex: 1 1 180px; /* базовая ширина, но растягиваются одинаково */
  background: #f4f8fd;
  border-radius: 5px;
  padding: 15px;
}

/* === Мобильная версия === */
@media (max-width: 600px) {
  .stats {
    flex-direction: column; /* карточки в одну колонку */
    align-items: center;
  }

  .stats-item {
    flex: none;           /* убираем растяжение */
    width: 90%;           /* одинаковая ширина для всех */
    max-width: 300px;     /* ограничение ширины */
    margin-bottom: 20px;  /* отступ между карточками */
  }
}

html {
  scroll-behavior: smooth;
}

.btn-order {
  display: inline-block;
  background-color: #1b6ca8; /* основной синий цвет */
  color: #fff;
  padding: 12px 25px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.btn-order:hover {
  background-color: #134c78; /* чуть темнее на hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* === Почему выбирают нас === */
.why-us {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.why-us h2 {
  color: #1b6ca8;
  margin-bottom: 40px;
}

.why-us-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.why-us-card {
  flex: 1 1 220px;
  background: #f9f9f9;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.why-us-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.why-us-card svg {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.why-us-card h3 {
  margin: 10px 0;
  color: #1b6ca8;
}

.why-us-card p {
  font-size: 0.95em;
  color: #333;
  line-height: 1.4em;
}

/* === Часто задаваемые вопросы === */
.faq {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.faq h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #1b6ca8;
}

/* Стили для каждого элемента FAQ */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  transition: background 0.3s ease; /* плавный переход для фона */
}

.faq-item:hover {
  background-color: #f5f5f5; /* подцветка при наведении */
}

/* Стили для вопросов */
.faq-question {
  cursor: pointer;
  font-weight: bold;
  position: relative;
  font-size: 1.1rem;
  padding-right: 30px; /* место для иконки */
  transition: color 0.3s ease; /* плавный переход для цвета */
}

.faq-question:hover {
  color: #00aaff; /* цвет текста при наведении */
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 10px;
  font-weight: bold;
  transition: transform 0.3s ease; /* плавный переход для иконки */
}

/* Когда вопрос активен, меняем иконку на минус */
.faq-question.active::after {
  content: '-';
  transform: rotate(90deg); /* поворачиваем знак при открытии */
}

/* Стили для ответов */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 0;
  color: #333;
  transition: max-height 0.5s ease, padding 0.3s ease, color 0.3s ease;
}

/* При открытии вопроса, ответ становится видимым */
.faq-question.active + .faq-answer {
  max-height: 500px;
  padding: 10px 20px;
  color: #444;
}

/* Стили для скрытых дополнительных вопросов */
.faq-extra {
  display: none;
  margin-top: 20px;
}

.faq-toggle {
  display: block;
  margin: 20px auto 0;
  padding: 12px 25px;
  background: #1b6ca8;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.faq-toggle:hover {
  background: #134c78;
  transform: scale(1.05); /* немного увеличиваем кнопку при наведении */
}

.faq-toggle:active {
  transform: scale(1); /* при нажатии сбрасываем эффект увеличения */
}

/* Адаптивность */
@media (max-width: 768px) {
  .faq h2 {
    font-size: 1.5rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-toggle {
    padding: 10px 20px;
  }
}


/* === Как заказать анализ === */
/* --- Стили блока "Как заказать анализ" --- */
.order-analysis {
  text-align: center;
  padding: 40px 20px;
  background: #f4f7fb;
  border-radius: 12px;
  margin: 40px auto;
}

.order-analysis h2 {
  color: #1b6ca8;
  margin-bottom: 20px;
  font-size: 2em;
}

.order-analysis p {
  max-width: 700px;
  margin: auto;
  font-size: 1em;
  line-height: 1.5em;
  color: #333;
}

.order-btn-wrapper {
  margin-top: 30px;
}

.btn-order {
  padding: 15px 40px;
  font-size: 1.1em;
  background: #1b6ca8;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-order:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
  .order-analysis {
    padding: 30px 15px;
  }

  .order-analysis h2 {
    font-size: 1.6em;
  }

  .order-analysis p {
    font-size: 0.95em;
  }

  .btn-order {
    width: 100%;
    padding: 15px 0;
  }
}

/*контакты*/
.contacts {
  padding: 60px 20px;
  background: #f5f8fb;
}

.contacts-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.contacts h2 {
  margin-bottom: 40px;
  color: #1b6ca8;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 25px;
}

.contact-item {
  background: white;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 15px auto;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-item h3 {
  margin-bottom: 8px;
  color: #1b6ca8;
}

.contact-item p {
  margin: 0;
  font-size: 15px;
}

@media (max-width:768px){
  .contacts-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:480px){
  .contacts-grid{
    grid-template-columns:1fr;
  }
}

/* Микроанимация для карточек контактов */
.contact-item {
  background: white;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, box-shadow; /* ускоряет анимацию */
}

.contact-item:hover {
  transform: translateY(-6px) scale(1.02); /* лёгкое поднятие и увеличение */
  box-shadow: 0 15px 30px rgba(0,0,0,0.12); /* более мягкая, но заметная тень */
}


/*кнопка whatsapp*/
.whatsapp-button{
position:fixed;
right:25px;
bottom:25px;
width:60px;
height:60px;
background:#25D366;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
box-shadow:0 8px 20px rgba(0,0,0,0.25);
z-index:999;
transition:0.3s;
}

.whatsapp-button svg{
width:30px;
height:30px;
color:white;
}

.whatsapp-button:hover{
transform:scale(1.08);
box-shadow:0 10px 25px rgba(0,0,0,0.35);
}

@keyframes pulse{
0%{box-shadow:0 0 0 0 rgba(37,211,102,0.6);}
70%{box-shadow:0 0 0 15px rgba(37,211,102,0);}
100%{box-shadow:0 0 0 0 rgba(37,211,102,0);}
}

.whatsapp-button{
animation:pulse 2.5s infinite;
}

/*кнопка позвонить для мобильных*/
.mobile-call{
display:none;
position:fixed;
bottom:0;
left:0;
width:100%;
background:#1b6ca8;
color:white;
text-align:center;
padding:16px;
font-weight:600;
font-size:16px;
z-index:998;
text-decoration:none;
}

@media (max-width:768px){
.mobile-call{
display:block;
}
}

/*               блок кому нужен анализ       */
.gmo-importance{
  background:#f0f8ff;
  padding:50px 20px;
  border-radius:12px;
  max-width:1000px;
  margin:50px auto;
  text-align:center;
}

.gmo-importance h2{
  color:#1b6ca8;
  margin-bottom:10px;
  text-align:center; /* заголовок по центру */
}

.gmo-importance .gmo-subtitle{
  font-size:16px;
  margin-bottom:30px;
  line-height:1.6;
  text-align:center; /* текст под заголовком по центру */
  max-width:700px;
  margin-left:auto;
  margin-right:auto;
}

.gmo-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.gmo-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  background:white;
  padding:15px 20px;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.gmo-item .icon{
  color:#1b6ca8;
  font-size:22px;
  line-height:1;
  margin-top:3px;
}

@media(max-width:768px){
  .gmo-list{
    grid-template-columns:1fr;
  }
}

/* какие продукты проверять на ГМО*/
/* фон всего блока */
.container-products {
  background-color: #f4f7fb;
  padding: 5px 0;
}

/* правая колонка */
.card-right {
  background-color: #f4f7fb; /* совпадает с фоном блока */
}

/* Flex-контейнер для колонок */
.card-columns {
  max-width: 1100px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 0 auto;
}

/* Левая колонка */
.left {
  flex: 2;
  padding: 60px;
  display: block; 
}

#left-text-inner {
  max-width: 600px;          /* ограничение ширины текста */
  width: 100%;               /* чтобы занимал всю ширину до max-width */
}

/* Стили текста */
#left-text-inner p {
  text-indent: 2em;      
  text-align: justify;    
  line-height: 1.6;       
  margin-bottom: 1em;     
}

#left-text-inner h2 {
  color: #1b6ca8;
  margin-bottom: 1em;
}

.card-right {
  flex: 1;                
  display: flex;
  flex-direction: column;
  background-color: #f4f7fb;
  padding-top: 60px; /* совпадает с верхним паддингом левой колонки */
  box-sizing: border-box;
}

/* Обёртка карточек с скроллом */
.card-right-inner {
  padding: 20px;
  overflow-y: auto;
}

/* Карточки */
/* Начальное состояние карточек */
.gmo-card {
color: #1b6ca8;
  background: #fafafa;
  border-radius: 3px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Когда карточка видна */
.gmo-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover эффект — легкое поднятие */
.gmo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Общий стиль скролла для Webkit-браузеров */
.card-right-inner::-webkit-scrollbar {
  width: 8px;                 /* тонкий скролл */
}

.card-right-inner::-webkit-scrollbar-track {
  background: rgba(244, 247, 251, 0.5); /* прозрачный, почти совпадает с фоном */
  border-radius: 10px;
}

.card-right-inner::-webkit-scrollbar-thumb {
  background: rgba(161, 178, 195, 0.7); /* основной цвет ползунка */
  border-radius: 10px;
  transition: background 0.3s ease;
}

.card-right-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 122, 137, 0.902); /* темнеет при наведении */
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .card-columns {
    flex-direction: column;  /* колонки одна под другой */
    gap: 20px;
  }

  .left, .card-right {
    flex: none;
    width: 100%;
    padding: 20px;          /* уменьшаем паддинг для мобильных */
    box-sizing: border-box; /* чтобы padding не ломал ширину */
  }

  .left-text-inner {
    max-width: 100%;
  }

  .card-right-inner {
    width: 100%;            /* занимает всю ширину колонки */
    max-height: 400px;      /* можно ограничить скролл */
    box-sizing: border-box;
    padding: 10px;          /* внутренние отступы карточек */
  }
}

/*          кнопка с продуктами  */
.btn-crops-wrapper{
  text-align:center;
  margin:40px 0;
}

.gallery-modal{
  display:none;
  position:fixed;
  z-index:9999;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.75);
}

.gallery-modal-content{
  background:#fff;
  margin:5% auto;
  padding:30px;
  max-width:1000px;
  border-radius:8px;
  position:relative;
  box-shadow:0 15px 40px rgba(0,0,0,0.25);
}

.gallery-close{
  position:absolute;
  right:20px;
  top:10px;
  font-size:32px;
  cursor:pointer;
}

.gallery-main{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.gallery-main-image{
  max-width:100%;
  max-height:65vh;
  object-fit:contain;
}

.gallery-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:#1b6ca8;
  color:white;
  border:none;
  font-size:28px;
  width:45px;
  height:45px;
  border-radius:50%;
  cursor:pointer;
}

.gallery-nav.prev{ left:-20px; }
.gallery-nav.next{ right:-20px; }
.gallery-counter{
  text-align:center;
  margin:10px 0 15px 0;
  font-weight:600;
  color:#444;
}

.gallery-thumbs{
  display:flex;
  gap:10px;
  overflow-x:auto;
}

.gallery-thumbs img{
  width:90px;
  height:60px;
  object-fit:cover;
  cursor:pointer;
  border-radius:4px;
  opacity:0.6;
  transition:0.2s;
  border:2px solid transparent;
}

.gallery-thumbs img:hover{
  opacity:1;
}

.active-thumb{
  opacity:1;
  border:2px solid #1b6ca8;
}