body {
  margin: 0;
  font-family: 'Merriweather', sans-serif;
  color: #222;

  /* Фоновый цвет */
  background-color: #f2f2f2; /* темнее #f2f2f2 */

  /* Подключаем SVG как фон */
  background-image: url("/images/Circuit.svg");
  background-repeat: repeat;      /* повторяем схему */
  background-position: top left;  /* начало координат */
  background-size: 40px 40px;     /* размер одного паттерна */
  background-attachment: fixed;   /* фиксируем при скролле */
  opacity: 1;                     /* прозрачность фонового слоя регулируем через SVG */
}

/* ===== Шапка с эффектом стекла ===== */
header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10%;
  background: rgba(224, 224, 224, 0.6); /* полупрозрачный фон */
  backdrop-filter: blur(10px);           /* размытие фона */
  -webkit-backdrop-filter: blur(10px);   /* Safari */
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* Hover для шапки */
header:hover {
  background: rgba(217, 217, 217, 0.65);
  transition: background 0.5s ease;
}
/* При уменьшении шапки */
header.shrink {
  padding: 10px 10%;
  background: rgba(224, 224, 224, 0.55);
}

/* Контейнер внутри шапки */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  z-index: 2; /* чтобы быть поверх размытого фона */
}

/* Логотип */
header img.header-logo {
  max-height: 100px;
  object-fit: contain;
  transition: max-height 0.3s;
  z-index: 2;
}

/* Информационный блок в шапке */
.header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-left: 20px;
  font-size: 0.9rem;
  color: #222;       /* читаемый текст */
  line-height: 1.3;
  gap: 4px;
  transition: all 0.3s;
  z-index: 2;
}

/* Шапка shrink */
header.shrink img.header-logo {
  max-height: 60px;
}

header.shrink .header-info {
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1.2;
  gap: 3px;
}

/* При уменьшении шапки */
header.shrink {
  padding: 10px 10%;
}

header.shrink img.header-logo {
  max-height: 60px;
}

header.shrink .header-info {
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1.2;
  gap: 3px;
}

#shop-status {
  font-weight: bold;
}

/* Остальной CSS */
section {
  padding: 50px 10%;
}

h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #d62828;
}

/* Блок "О нас" */
/* Карточка "О нас" */
.about-card {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-top: 20px;
}

.about-image {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  flex: 2;
  padding: 20px;
  font-size: 1rem;
  line-height: 1.5;
}
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch; /* растягиваем оба блока по максимальной высоте */
}


.about-text,
.about-slideshow {
  flex: 1 1 45%;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  display: flex;             /* делаем flex-контейнер для подгонки картинки */
  flex-direction: column;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Слайд-шоу */

.slide {
  position: absolute;   /* все слайды накладываются друг на друга */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;           /* скрыты по умолчанию */
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;           /* показываем активный */
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 12s ease-in-out infinite alternate;
}

/* Мобильная адаптация для слайдера */
@media (max-width: 768px) {
  .about-text,
  .about-slideshow {
    flex: 1 1 100%;       /* блоки становятся полными по ширине */
    min-height: 250px;    /* минимальная высота для слайдов */
  }

  .about-slideshow {
    height: 250px;        /* фиксируем высоту слайдера */
  }

  .slide img {
    height: 100%;
  }
}
/* Контейнер */
.carousel {
  display: flex;
  overflow-x: auto; /* позволяет скроллить */
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px;
}

.carousel::-webkit-scrollbar {
  display: none; /* убираем полосу прокрутки */
}

/* Карточка */
.dealer-card {
  flex: 0 0 auto;         /* запрещаем сжиматься */
  width: 250px;           /* фиксированная ширина карточки */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 15px;
  text-align: center;
}

.dealer-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}


/* Эффект Ken Burns */
@keyframes kenburns {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.1) translate(-10px,-10px); }
}


/* Мобильная адаптация */
@media (max-width: 768px) {
  .about-card {
    flex-direction: column;
  }
  
  .about-image {
    max-height: 250px;
  }

  .about-text {
    padding: 15px;
    font-size: 0.95rem;
  }
}


/* Карусель дилеров */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
}

.dealer-card {
  flex: 0 0 300px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  scroll-snap-align: start;
}

.dealer-card img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}
.dealer-card img {
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Контакты */
.contacts a {
  display: block;
  margin: 5px 0;
  color: #d62828;
  text-decoration: none;
}

.contacts a:hover {
  text-decoration: underline;
}

/* Карта */
iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
  margin-top: 15px;
}

.btn-2gis {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #d62828;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.btn-2gis:hover {
  background: #b71c1c;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  header {
    padding: 15px 5%;
  }

  header img.header-logo {
    max-height: 80px;
    transition: max-height 0.3s;
    margin: 0;
  }

  .header-info {
    align-items: center;
    text-align: center;
    margin: 10px 0;
    font-size: 0.9rem;
    line-height: 1.35;
    gap: 2px;
  }

  header.shrink .header-info {
    font-size: 0.75rem;
    line-height: 1.2;
    gap: 2px;
  }

  header.shrink .header-info.hide-info {
    font-size: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    border-radius: 0;
  }
}

/* ===== Кнопки меню (параллелограммы) ===== */
nav {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center; 
  overflow: visible;
  padding: 0 5px;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(7.5px, 1.5vw, 13px) clamp(15px, 3.3vw, 30px);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transform: skewX(-20deg);
  transition: all 0.22s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #d62828, #b71c1c);
  border-left: 2px solid rgba(255,255,255,0.12);
  border-right: 2px solid rgba(0,0,0,0.14);
  min-width: 0;
}

nav a span {
  display: inline-block;
  transform: skewX(20deg);
  line-height: 1;
}

nav a:first-child {
  margin-left: 4px;
}
nav a:last-child {
  margin-right: 4px;
}

nav a:hover {
  background: linear-gradient(135deg, #e53935, #d32f2f);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.25), 0 6px 12px rgba(0,0,0,0.28);
  transform: translateY(-2px) skewX(-20deg);
}

nav a:active {
  transform: translateY(3px) skewX(-20deg);
  box-shadow: inset 0 0 14px rgba(0,0,0,0.4);
}

nav a.active {
  background: linear-gradient(135deg, #222, #444);
}

header.shrink nav a {
  padding: clamp(6px, 1.2vw, 10px) clamp(10px, 2.5vw, 18px);
  font-size: 0.88rem;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.18);
}

.carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;   /* скрыть скроллбар */
  -ms-overflow-style: none; 
}
.carousel::-webkit-scrollbar {
  display: none;
}
/* override — seamless carousel */
#dealers-carousel { overflow: hidden !important; padding: 0 10px; }
#dealers-carousel .carousel-track { display:flex; gap:20px; align-items:stretch; }
#dealers-carousel .dealer-card { flex: 0 0 auto; scroll-snap-align: none; }
#dealers-carousel .dealer-card img { max-height: 60px; height: auto; object-fit: contain; display:block; margin: 0 auto 10px; }

.contacts-card {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #222;
}

.contact-item img {
  width: 28px;
  height: 28px;
}

.contact-item a {
  color: #d62828;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #b71c1c;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .contacts-card {
    flex-direction: column;
    align-items: stretch;
  }

  /* Кнопка "Позвонить" для стационарного номера */
  .contact-item a[href^="tel:"] {
    display: block;
    background: #d62828;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
  }

  .contact-item a[href^="tel:"]:hover {
    background: #b71c1c;
  }
}

.contacts-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}

.contact-card {
  flex: 1 1 250px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 12px 15px;
  position: relative;
}

.contact-card a:first-child {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  flex: 1; /* занимает все доступное место */
}

.contact-card img {
  width: 30px;
  height: 30px;
  margin-right: 12px;
  object-fit: contain;
}

/* Иконка звонка справа */
.call-icon {
  margin-left: 10px;
  font-size: 1.3rem;
  text-decoration: none;
  color: #d62828;
  transition: color 0.2s, transform 0.2s;
}

.call-icon:hover {
  color: #b71c1c;
  transform: translateY(-2px);
}

/* Hover эффект карточки */
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .contacts-cards {
    flex-direction: column;
    gap: 12px;
  }

  .contact-card {
    flex: 1 1 100%;
  }
}

/* Иконка звонка справа */
.call-icon {
  margin-left: 10px;
  font-size: 1.3rem;
  text-decoration: none;
  color: #d62828;
  transition: color 0.2s, transform 0.2s;
  display: none; /* скрываем на ПК */
}

/* Показываем только на мобильных */
@media (max-width: 768px) {
  .call-icon {
    display: inline-block;
  }
}

.call-icon:hover {
  color: #b71c1c;
  transform: translateY(-2px);
}

/* Кнопка каспи магаза */

.kaspi-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 120px;          /* ширина кнопки */
  height: 80px;          /* высота кнопки */
  border-radius: 12px;   /* скругление углов */
  background: transparent; /* прозрачный фон */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  z-index: 9999;
  animation: pulse 1.5s infinite;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.kaspi-btn img {
  height: 45%;           /* иконка почти в размер кнопки */
  width: auto;
}

/* Hover эффект */
.kaspi-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Пульсация */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0,0,0,0.3);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(0,0,0,0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
  }
}

/* Уменьшаем шрифт и отступы в меню на мобильных */
@media (max-width: 768px) {
  nav a {
    font-size: 0.8rem; /* примерно 12–13px */
    padding: 6px 10px; /* компактные кнопки */
  }
}

/* Когда шапка уменьшена */
header.shrink .menu a span {
  font-size: 0.7rem; /* уменьшаем текст кнопок */
  transition: font-size 0.3s ease; /* плавность */
}

.sale-text {
  font-weight: 700;      /* жирный текст */
  color: #d90000;        /* ярко-красный */
  font-size: 1rem;     /* можно чуть крупнее */
  animation: pulseText 1.5s infinite; /* эффект пульсации */
}

@keyframes pulseText {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}



.promo-card {
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 30px 10%;
}

.promo-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 260px; /* было 380px */
}

.promo-gallery img {
  width: 70px;      /* было 110px */
  height: 70px;     /* было 110px */
  object-fit: contain;
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}

.promo-gallery img:hover {
  transform: scale(1.08);
}

.promo-content {
  flex: 1;
}

.promo-gallery {
  display: flex;
  gap: 12px;
  align-items: center;
}

.promo-gallery img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

@media (max-width:768px) {

  .promo-card {
    flex-direction: column;
    margin: 20px 5%;
    text-align: center;
  }

  .promo-gallery {
    justify-content: center;
  }

  .promo-gallery img {
    width: 55px;
    height: 55px;
  }
}


.promo-gallery {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.promo-gallery img {
  width: 70px;
  height: 70px;
  object-fit: contain; /* не обрезает подарок */
  border-radius: 12px;

  padding: 6px; /* создаёт “карточку” */
  background: #fff;

  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  transition: all 0.25s ease;
}

/* hover эффект */
.promo-gallery img:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.promo-gallery {
  display: flex;
  gap: 12px;
}

.promo-item {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: 0.25s ease;
}

.promo-item img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.promo-item:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}