/* Minimal reset */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#fbfdff;
  --card:#ffffff;
  --muted:#424247;
  --accent:#13131a;
  --glass:rgba(255,255,255,0.6);
  --radius:14px;
  --container:1200px;
  --shadow: 0 8px 30px rgba(16,24,40,0.06);
}
html, body {
  margin: 0;
  padding: 0;
}
html,body{height:100%}
body{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg); color:var(--accent); -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale; line-height:1.5;
}
.container{max-width:var(--container);margin:0 auto;padding:0 12px}
.header {
  width: 100%;

  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* Вся панель */
.logo-fullwidth {
  width: 100%;
  background: #0E6BB3;
  padding: 10px 0;
}

/* Логотип */
.logo-image {
  height: 100px;
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

/* Основной контейнер */
.header-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* логотип остается строго по центру */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Центр — логотип */
.header-center {
  z-index: 1;
}

/* Контакты справа от логотипа */
.header-contacts {
  position: relative;
  right: -100px;
  display: flex;
  gap: 10px;
  text-align: left;
  flex-wrap: nowrap;
  color: white;
}

/* Ссылки */
.header-contacts a {
  color: #ffffff;
  text-decoration: none;
}

/* ----- АДАПТИВ для узких экранов ----- */
@media (max-width: 900px) {
  .header-row {
    flex-direction: column; /* элементы станут вертикальными */
    justify-content: center;
  }

  .header-contacts {
    position: static; /* перестаёт быть справа и становится обычным блоком */
    margin-top: 15px;
    flex-direction: row;
    justify-content: right;
    gap: 20px;
    text-align: left;
    flex-wrap: wrap; /* перенос в две колонки автоматически */
  }
}

@media (max-width: 550px) {
  .header-contacts {
    flex-direction: column; /* превращаем в 1 колонку на самом узком экране */
    gap: 15px;
  }
}




/* Контейнер для навигации по центру */
.nav-container {
  width: 1000px;
 /* display: flex */
    background: #0E6BB3;
  align-items: center;
  justify-content: center;
  padding: 5px 0;
    border-radius: 8px; /* Опционально - скругленные углы */
    margin: 0 auto; /* Добавляем это свойство */
  margin-bottom: 15px;
  margin-top: 15px;
}

.nav {
  display: flex;
  max-width: 1200px;
   width: 100%;
  align-items: center;

  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;

}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav a:hover {
  background: #f5f5f5;
  color: #274fa3;
}

.nav a.cta {
  background: #0E6BB3;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
}

.nav a.cta:hover {
  background: #1a3a7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 79, 163, 0.3);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .logo-image {
    max-height: 80px; /* Меньшая высота на мобильных */
  }

  .nav {
    gap: 15px;
  }

  .nav a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .nav a.cta {
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .nav {
    gap: 10px;
    flex-direction: column;
  }

  .nav a {
    width: 200px;
    text-align: center;
  }
}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:40px}

/* --- Logo animation --- */
.brand img {
  height: 40px;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.25));
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: pulse 4s ease-in-out infinite; /* постоянное дыхание */
  transform-style: preserve-3d;
}

.brand img:hover {
  transform: scale(1.08) rotateX(8deg) rotateY(8deg);
  filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.35))
          drop-shadow(0 0 12px rgba(17,24,39,0.4));
}



.nav{display:flex;gap:18px;align-items:center}
.nav a{color:var(--muted);text-decoration:none;font-weight:600}
.nav a:hover{color:var(--accent)}
.cta{background:#0E6BB3;color:#fff  !important;padding:10px 14px;border-radius:10px;text-decoration:none;font-weight:700}

/* Burger menu */
.burger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
}

@media (max-width:768px){
  .burger {
    display: block;
  }
  .nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    top: 70px;
    right: 24px;
    background: var(--card);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .nav.open {
    display: flex;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  padding: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}
.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(17,24,39,0.15);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

body {
  font-family: Arial;
  margin: 0;
}

* {
  box-sizing: border-box;
}

img {
  vertical-align: middle;
}

/* Position the image container (needed to position the left and right arrows) */
.container {
  position: relative;
}

/* Hide the images by default */
.mySlides {
  display: none;
}




/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;


  margin: 0 auto;
}

.slideshow {
  position: relative;
  width: 100%;
  background: #f8fafc; /* Светлый фон вместо серого */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(39, 79, 163, 0.15);
  border: 1px solid #e1e8f5;
}

/* Основной контейнер для слайдов */
.slides-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #274fa3 0%, #1a3a7a 100%);
}

.mySlides {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8fafc; /* или #000 если хочешь */

  object-position: center;
  display: block;
}
/* Явно указываем первый слайд как видимый */
.mySlides:nth-child(1) {
  display: block;
}

/* Контролы навигации в синей тематике */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(39, 79, 163, 0.85);
  color: white;
  font-size: 24px;
  font-weight: bold;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  text-decoration: none;
  border-radius: 50%;
  margin: 0 20px;
  box-shadow: 0 4px 12px rgba(39, 79, 163, 0.3);
}

.prev:hover, .next:hover {
  background: #274fa3;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(39, 79, 163, 0.5);
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* Номер слайда в синей тематике */
.numbertext {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(39, 79, 163, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Контейнер подписи в синей тематике */
.caption-container {
  background: linear-gradient(to top, rgba(39, 79, 163, 0.95), rgba(39, 79, 163, 0.8));
  color: white;
  padding: 20px;
  text-align: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 10;
  font-size: 16px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* Строка миниатюр в синей тематике */
.thumbnails-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 0 10px;
  width: 100%;
  background: #f8fafc;
  border-radius: 0 0 10px 10px;
  padding: 15px 10px;
}

.thumbnails-row .column {
  transition: all 0.3s ease;
  position: relative;
}

.thumbnails-row .column:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(39, 79, 163, 0.4);
  z-index: 2;
}

/* Индикатор загрузки при hover */
.thumbnails-row .column::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: #274fa3;
  transition: width 0.3s ease;
}

.thumbnails-row .column:hover::after {
  width: 100%;
}

/* Увеличиваем курсор для лучшей индикации */
.thumbnails-row .column {
  cursor: pointer;
}

.column {
  flex: 1;
  height: 90px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  position: relative;
}

.column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(39, 79, 163, 0);
  transition: background 0.3s ease;
  z-index: 1;
  border-radius: 6px;
}

.column:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(39, 79, 163, 0.3);
}

.column:hover::before {
  background: rgba(39, 79, 163, 0.1);
}

.column.active {
  border-color: #274fa3;
  box-shadow: 0 4px 12px rgba(39, 79, 163, 0.4);
  transform: translateY(-2px);
}

.column.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #274fa3;
  border-radius: 2px;
}

.column img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}


/* Анимация появления слайдов */
.mySlides {
  animation: fade 0.5s ease-in-out;
}

@keyframes fade {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

/* Дополнительные декоративные элементы */
.slides-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(39, 79, 163, 0.3), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .slides-container {
    height: 400px;
  }

  .thumbnails-row {
    gap: 8px;
    padding: 12px 8px;
  }

  .column {
    height: 70px;
  }

  .prev, .next {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin: 0 10px;
  }

  .numbertext {
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .caption-container {
    padding: 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .slides-container {
    height: 300px;
  }

  .thumbnails-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .column {
    flex: 0 0 calc(33.333% - 6px);
    height: 60px;
  }

  .prev, .next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
/* Hero */
.hero{display:grid;grid-template-columns:1fr 480px;gap:40px;align-items:center;padding:60px 0}
@media (max-width:980px){.hero{grid-template-columns:1fr;}.hero-right{order:-1}}
h1{font-size:clamp(22px,4vw,44px);line-height:1.2;margin-bottom:12px}
.lead{color:var(--muted);max-width:620px;margin-bottom:18px}
.aboutlead{color:var(--muted);max-width:1020px;margin-bottom:18px}
.hero-card{background:linear-gradient(180deg,rgba(255,255,255,0.9),#fff);border-radius:18px;padding:18px;box-shadow:var(--shadow)}

/* Product grid */
.section{padding:64px 0}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media (max-width:1100px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:700px){.grid{grid-template-columns:1fr}}
.card{background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid rgba(15,23,42,0.04);display:flex;flex-direction:column}
.card img{width:100%;height:220px;object-fit:cover;display:block;background:#f3f4f6}
.card-body{padding:18px;flex:1;display:flex;flex-direction:column;gap:10px}
.card h3{font-size:18px}
.meta{color:var(--muted);font-size:14px;margin-top:auto;display:flex;justify-content:space-between;align-items:center}
.price{font-weight:800}

/* Filters bar */
.filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.search{flex:1;min-width:220px;padding:12px;border-radius:12px;border:1px solid #e6e9ee;background:#fff}
.select{padding:10px;border-radius:10px;border:1px solid #e6e9ee;background:#fff}


footerfull{
  width:100%;
}
@media (max-width:768px){
  .footer>div{
    flex-direction:column;
    gap:12px;
    text-align:center;
  }
}

/* Modal */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(2,6,23,0.45);padding:24px}
.modal.open{display:flex}
.modal-card{position: relative;max-width:920px;background:var(--card);border-radius:16px;overflow:hidden;display:grid;grid-template-columns:1fr 420px;gap:0}
@media (max-width:880px){.modal-card{grid-template-columns:1fr}}
.modal-img{min-height:360px;background:#f8fafc}
.modal-body{padding:20px}
.close-btn {
  position: absolute;
  right: 28px;
  top: 28px;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  padding: 6px 10px;
  border: none;
  cursor: pointer;
  z-index: 61;
}
/* small utilities */
.kv{font-weight:700;color:var(--accent)}
.badge{background:#fff;border:1px solid #eef2f6;padding:6px 10px;border-radius:999px;font-weight:700;color:var(--muted)}

/* subtle hover */
.card:hover{transform:translateY(-6px);transition:all .28s cubic-bezier(.2,.9,.3,1)}

/* Responsive typography & images */
img{max-width:100%;height:auto}
p{font-size:clamp(14px,2vw,18px)}


path {
    animation: animateClouds 3.5s linear infinite;
}

@keyframes animateClouds {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.category-section {
  margin-bottom: 40px;
}

.category-title {
  font-size: 28px;
  color: #13131a;
  margin-bottom: 8px;
  padding-bottom: 8px;
  text-decoration: underline; /* Добавлено подчёркивание */
}

.category-desc {
  color: #424247;
  font-style: italic;
  margin-bottom: 16px;
}

.no-products {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 40px;
}