/* === GLOBAL === */
:root {
  --primary: #0097a7;
  --accent: #fdd835;
  --light: #f9f9f9;
  --dark: #333;
  --text-muted: #555;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  background: var(--light);
  color: var(--dark);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
/* === HEADER / NAVBAR === */
header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === ЛОГО === */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.3rem;
  color: #0a3d4d;
}

.logo-img {
  height: 38px;
  width: auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #0a3d4d;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #0088a9;
}

/* === Адаптивное поведение === */
@media (max-width: 768px) {
  .nav-links a span,
  .nav-links a p {
    display: none; /* скрываем текст */
  }

  .nav-links {
    gap: 1.2rem;
  }

  .nav-links a i {
    font-size: 1.5rem; /* чуть крупнее иконки */
  }
}

/* === HERO === */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.6);
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(60, 60, 60, 0.7);
  color: #fff;
  padding: 2rem 3rem;
  border-radius: 10px;
  text-align: center;
  max-width: 700px;
  animation: fadeSlideUp 1s ease;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  background: var(--accent);
  color: #333;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: #ffe066;
}

/* === SEARCH BAR === */
.search {
  text-align: center;
  padding: 2rem 0;
}
.search input {
  padding: 0.6rem 1rem;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
}
.search button {
  padding: 0.6rem 1.5rem;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}
.search button:hover {
  background: #007b83;
}

/* Кнопки навигации */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}
.slider-btn:hover {
  background: #fff;
}
.slider-btn.prev { left: 5px; }
.slider-btn.next { right: 5px; }

/* === PRODUCT CARDS === */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 160px; /* 💡 меньше высота, чтобы карточка была компактнее */
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.product-info {
  padding: 0.8rem 1rem 1.2rem;
  flex-grow: 1;
}

.product-info h4 {
  color: #0a3d4d;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.product-info .short-desc {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* === GRID ДЛЯ КАРТОЧЕК === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* 💡 гибкий размер */
  gap: 1.2rem;
  padding: 1rem 0;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1024px) {
  .product-card img {
    height: 140px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }

  .product-card img {
    height: 130px;
  }

  .product-info h4 {
    font-size: 0.95rem;
  }

  .product-info .short-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr; /* 💡 по 2 карточки в ряд */
    gap: 0.8rem;
  }

  .product-card img {
    height: 120px;
  }

  .product-info {
    padding: 0.6rem 0.8rem;
  }

  .product-info h4 {
    font-size: 0.9rem;
  }

  .product-info .short-desc {
    font-size: 0.75rem;
  }
}

/* === MODAL OVERLAY === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55); /* мягкий тёмный слой */
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9999;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* === CONTENT === */
/* === MODAL ENHANCED CONTENT STRUCTURE === */
.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 1.8rem 2rem;
  max-width: 680px;
  width: 92%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  animation: modalPop 0.35s ease;
  overflow-y: auto;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- Заголовок продукта --- */
.modal-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0a3d4d;
  margin-bottom: 0.4rem;
  border-bottom: 2px solid #e0e7ea;
  padding-bottom: 0.4rem;
}

/* --- Логические карточки --- */
.info-block {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* --- Подзаголовки --- */
.info-block h4 {
  color: #0a3d4d;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* --- Текст --- */
.info-block p,
.info-block ul {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-block ul {
  padding-left: 1.2rem;
  list-style-type: disc;
}

/* --- Изображение --- */
.modal-content img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Кнопка закрытия --- */
.close-modal {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  color: #555;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
}

.close-modal:hover {
  background: #e2e8f0;
  color: #0a3d4d;
  transform: rotate(90deg);
}

/* --- Мобильная версия --- */
@media (max-width: 600px) {
  .modal-content {
    padding: 1rem 1.2rem;
    border-radius: 18px;
  }

  .info-block {
    padding: 0.8rem 1rem;
  }

  .info-block h4 {
    font-size: 1rem;
  }

  .modal-info h3 {
    font-size: 1.3rem;
  }
}


/* === SEARCH INPUT === */
#searchInput {
  width: 100%;
  max-width: 400px;
  margin: 1.5rem auto 2rem;
  display: block;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border: 1.5px solid #cfd8dc;
  border-radius: 12px;
  font-size: 1rem;
  color: #333;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' class='lucide lucide-search' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 0.9rem center;
  background-size: 1.2rem;
  transition: all 0.3s ease;
}

#searchInput:focus {
  outline: none;
  border-color: #0a3d4d;
  box-shadow: 0 0 0 3px rgba(10, 61, 77, 0.15);
}

/* === FILTER BUTTONS === */
.filter-buttons {
  text-align: center;
  margin-top: 1.5rem;
}

.filter-btn {
  background: #e0f2f1;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  color: #0a3d4d;
  margin: 0.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #0a3d4d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 61, 77, 0.3);
}


/* === FOOTER === */
.footer {
  background: #0a3d4d;
  color: #fff;
  padding: 50px 20px 20px;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}
.footer p, .footer li, .footer a {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* === CONTACT FORM === */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  margin-bottom: 10px;
}
.contact-form button {
  background: #1ca3ba;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-form button:hover {
  background: #148c9f;
}

/* === FOOTER BOTTOM === */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 40px;
  padding-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}

/* === ANIMATIONS === */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === ADAPTIVE === */


@media (max-width: 480px) {
  .hero { height: 300px; }
  .hero-content h2 { font-size: 1.4rem; }
  .product-card img { height: 140px; }
  .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
/* === SECTION STYLES === */
section {
  padding: 80px 0;
  position: relative;
}

section h3 {
  text-align: center;
  font-size: 2rem;
  color: #0a3d4d;
  margin-bottom: 2.5rem;
  position: relative;
  font-weight: 700;
}

section h3::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Цвета чередующихся блоков */
/* === BENEFITS SECTION === */
.section-teal {
  background: linear-gradient(135deg, #0e6673, #19a3b8);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  border-radius: 0 0 40px 40px;
  transition: all 0.3s ease;
}

.section-teal h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-teal h3::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #fff;
  margin: 10px auto 0;
  border-radius: 2px;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  justify-items: center;
}

.benefit-card {
  background: #ffffff;
  color: #0e6673;
  padding: 25px 15px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 280px;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  background: #f7fdfd;
}

.benefit-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* === АДАПТИВ === */
@media (max-width: 1024px) {
  .section-teal {
    padding: 60px 15px;
  }

  .section-teal h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .benefits-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }

  .benefit-card {
    max-width: 220px;
    padding: 20px 12px;
  }

  .benefit-card h4 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-teal {
    padding: 50px 10px;
    border-radius: 0;
  }

  .section-teal h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }

  .benefits-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .benefit-card {
    max-width: 100%;
    padding: 16px;
  }

  .benefit-card h4 {
    font-size: 0.95rem;
  }
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 20px 0;
  flex-wrap: wrap;
}

.filter-btn {
  background: #e0f4f7;
  border: none;
  color: #0a3d4d;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #00a3b4;
  color: #fff;
}

.filter-btn.active {
  background: #00a3b4;
  color: #fff;
}
/* === CATALOG HEADER (minimalist style) === */
.catalog-header {
  text-align: center;
  background: #f8fafb;
  padding: 3rem 1rem 2.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.catalog-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0a3d4d;
  margin-bottom: 0.6rem;
  letter-spacing: 0.3px;
}

.catalog-header p {
  font-size: 1.05rem;
  color: #4a5568;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Лёгкая анимация появления */
.catalog-header {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .catalog-header {
    padding: 2rem 1rem;
  }

  .catalog-header h2 {
    font-size: 1.6rem;
  }

  .catalog-header p {
    font-size: 0.95rem;
  }
}
#info{
 background: linear-gradient(135deg, #e8f3f8 0%, #f9fbfd 100%);

  border-radius: 18px;
  padding: 3.5rem 2rem;
  max-width: 1100px;
  margin: 4rem auto;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#info:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Заголовок */
#info h3 {
  font-size: 1.9rem;
  font-weight: 600;
  color: #0a3d4d;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

/* Текст */
#info p {
  font-size: 1.05rem;
  text-align: justify;
  color: #444;
  line-height: 1.7;
  max-width: 850px;
  margin: 0 auto;
}

/* Адаптив */
@media (max-width: 768px) {
  #info {
    padding: 2.2rem 1.4rem;
    margin: 2rem 1rem;
    border-radius: 14px;
  }

  #info h3 {
    font-size: 1.5rem;
  }

  #info p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

.section-block.section-white {
  background: #ffffff;
  padding: 60px 20px;
  border-radius: 20px;
  margin: 60px auto; /* центрирование блока */
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.section-block.section-white h3 {
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 700;
  color: #0a3d4d;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-block.section-white h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #0a3d4d;
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-block.section-white p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.2rem;
}

.section-block.section-white p:last-child {
  margin-bottom: 0;
}

/* Hover эффект блока для интерактивности */
.section-block.section-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .section-block.section-white {
    padding: 50px 15px;
  }

  .section-block.section-white h3 {
    font-size: 1.8rem;
  }

  .section-block.section-white p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .section-block.section-white {
    padding: 40px 15px;
    border-radius: 16px;
  }

  .section-block.section-white h3 {
    font-size: 1.6rem;
  }

  .section-block.section-white p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .section-block.section-white {
    padding: 30px 12px;
    margin: 40px 10px;
  }

  .section-block.section-white h3 {
    font-size: 1.4rem;
  }

  .section-block.section-white p {
    font-size: 0.9rem;
  }
}
/* === ABOUT SECTION === */
#about {
  background: linear-gradient(135deg, #e8f3f8 0%, #f9fbfd 100%);
  border-radius: 18px;
  padding: 3.5rem 2rem;
  max-width: 1100px;
  margin: 4rem auto;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Заголовок */
#about h3 {
  font-size: 1.9rem;
  font-weight: 600;
  color: #0a3d4d;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

/* Текст */
#about p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  max-width: 850px;
  margin: 0 auto;
}

/* Адаптив */
@media (max-width: 768px) {
  #about {
    padding: 2.2rem 1.4rem;
    margin: 2rem 1rem;
    border-radius: 14px;
  }

  #about h3 {
    font-size: 1.5rem;
  }

  #about p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}
#kontakt {
  scroll-margin-top: 100px; /* регулируй под высоту шапки */
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  height: 100%;
}

.image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #123b4a;
  margin: center;
}

/* --- Swiper --- */
.swiper {
  width: 100%;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}

/* --- Мобильная версия --- */
@media (max-width: 768px) {
  /* убираем фиксированную ширину — Swiper сам подгоняет */
  .swiper-slide {
    justify-content: center;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }


}