/* frontend/index/index.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Переменные тёмной темы (по умолчанию) ===== */
:root {
  /* Основные цвета */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.8);
  --text-muted: rgba(255,255,255,0.6);

  /* Красные акценты */
  --red-dark: #8B0000;
  --red-light: #ff4d4d;

  /* Градиенты и тени */
  --gradient-card: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.3);
  --shadow-md: 0 20px 30px rgba(0,0,0,0.7);
  --shadow-lg: 0 30px 50px rgba(0,0,0,0.8);
  --shadow-red: rgba(139,0,0,0.3);

  /* Границы */
  --border-light: 1px solid rgba(139,0,0,0.3);
  --border-red: 1px solid var(--red-dark);

  /* Шапка */
  --header-bg: rgba(49, 49, 49, 0.95);

  /* Элементы форм */
  --form-bg: #ffffff;
  --form-text: #333;
  --form-placeholder: #707981;
  --form-shadow: 0 30px 50px rgba(0,0,0,0.5);

  /* Свайпер */
  --swiper-pagination-color: var(--red-light);

  /* Высота шапки */
  --header-height: 80px;
}

/* ===== Светлая тема ===== */
.light-theme {
  --bg-primary: #f8f9fa;
  --bg-secondary: #e9ecef;
  --bg-tertiary: #dee2e6;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;

  --red-dark: #b30000;
  --red-light: #ff6666;

  --gradient-card: linear-gradient(145deg, #f1f3f5, #e9ecef);
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-md: 0 20px 30px rgba(0,0,0,0.1);
  --shadow-lg: 0 30px 50px rgba(0,0,0,0.15);
  --shadow-red: rgba(180,0,0,0.2);

  --border-light: 1px solid rgba(180,0,0,0.2);
  --border-red: 1px solid var(--red-dark);

  --header-bg: rgba(161, 161, 161, 0.95);

  --form-bg: #ffffff;
  --form-text: #212529;
  --form-placeholder: #6c757d;
  --form-shadow: 0 30px 50px rgba(0,0,0,0.1);
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Шапка ===== */
.header {
    position: sticky;
    top: 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    border-radius: 60px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.3s ease, background 0.3s, box-shadow 0.3s;
    padding: 0 30px;
    border: none;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    max-height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

.light-theme .logo img {
    filter: brightness(0) invert(0);
}

.nav__list {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav__link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-light);
    transition: width 0.3s;
}

.nav__link:hover,
.nav__link.active {
    color: var(--red-light);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__phone {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.header__phone:hover {
    color: var(--red-light);
}

/* ===== Гамбургер-меню ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 300;
}

.burger span {
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red-dark), var(--red-light));
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--shadow-red);
}

.burger span:nth-child(2) {
  width: 70%;
}

.burger span:nth-child(3) {
  width: 40%;
}

.burger:hover span {
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scaleX(1); filter: brightness(1); }
  50% { opacity: 0.8; transform: scaleX(1.05); filter: brightness(1.2); }
}

.burger.active span {
  background: var(--red-light);
  box-shadow: 0 0 10px var(--red-light);
}

.burger.active span:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
  width: 100%;
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.burger.active span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
  width: 100%;
}

/* ===== Мобильное меню ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top right, var(--bg-secondary), #000);
    backdrop-filter: blur(15px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    border-radius: 0;
}

.mobile-menu__inner {
    padding: 60px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background: url('ваша-текстура-шума.png'); опционально */
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--red-light);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu__close:hover {
    background: var(--red-dark);
    color: white;
    transform: rotate(180deg);
}

.mobile-nav__list {
    list-style: none;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.mobile-nav__item {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.4s ease forwards;
}

.mobile-menu.active .mobile-nav__item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-nav__item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav__item:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav__item:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav__item:nth-child(4) { transition-delay: 0.4s; }

.mobile-nav__link {
    display: block;
    padding: 20px 0;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.mobile-nav__link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--red-light);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--red-light);
}

.mobile-nav__link:hover {
    color: var(--red-light);
    letter-spacing: 5px;
}

.mobile-nav__link:hover::after {
    width: 60px;
}

.mobile-menu__contacts {
    margin-top: 50px;
    width: 100%;
    text-align: center;
}

.mobile-menu__contacts a {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border-light);
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s;
}

.mobile-menu__contacts a:hover {
    border-color: var(--red-light);
    color: var(--red-light);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--header-height));
  left: 0;
  width: 100%;
  height: calc(100% + var(--header-height));
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
  z-index: -2;
  background-image: var(--bg-image, none);
}

.hero__overlay {
  position: absolute;
  top: calc(-1 * var(--header-height));
  left: 0;
  width: 100%;
  height: calc(100% + var(--header-height));
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}


.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 20px 100px;
  box-sizing: border-box;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin: 0 0 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  text-align: center;
  font-family: 'Space Mono', monospace;
  letter-spacing: 2px;
  transition: 0.3s;
  display: inline-block;
  padding: 0 20px;
  border-radius: 8px;
  cursor: pointer;
  color: white;
}

.light-theme .hero__title {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero__title:hover {
  color: var(--red-light);
}

.hero__content-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero__subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
  max-width: 800px;
  text-align: center;
  color: white;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 14px 42px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--red-dark);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--shadow-red);
}

.btn--primary:hover {
  background: var(--red-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 77, 77, 0.4);
}

/* ===== Секция info ===== */
.info {
  padding: 80px 0;
  background: var(--bg-primary);
}

.info__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.info__text-block {
  background: var(--bg-secondary);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  padding: 50px 45px;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--shadow-red);
  border-left: 6px solid var(--red-dark);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.info__text-block:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--red-light);
  border-left-color: var(--red-light);
}

.info__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.info__subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-weight: 300;
  line-height: 1.5;
}

.info__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info__item {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 28px;
  position: relative;
}

.info__item::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--red-light);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Правая колонка с сертификатом */
.info__certificate {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.certificate-card {
  perspective: 1500px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.certificate-card__inner {
  background: var(--gradient-card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  border: var(--border-light);
}

.certificate-card__inner:hover {
  box-shadow: 0 30px 50px var(--shadow-red);
  border-color: var(--red-light);
}

.certificate-card__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  transform: translateZ(20px);
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
  transition: filter 0.3s;
}

.certificate-card__inner:hover .certificate-card__image {
  filter: drop-shadow(0 10px 20px var(--shadow-red));
}

/* ===== Секция популярных товаров ===== */
.featured-products {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
  padding: 60px 0;
  overflow-x: hidden;
}

.featured-products .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.product-swiper {
  margin: 0 auto;
  width: 100%;
  max-width: 960px;
  padding-bottom: 60px !important;
  overflow: hidden;
}

.product-swiper .swiper-slide {
  width: 300px;
  height: auto;
  background: transparent;
  transition: all 0.3s;
}

.product-card {
  background: var(--gradient-card);
  border-radius: 20px;
  border: 2px solid var(--shadow-red);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, border-color 0.3s;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.product-card:hover {
  box-shadow: 0 30px 50px var(--shadow-red);
  border-color: var(--red-light);
}

.product-card__image {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
}

.product-card__info {
  flex: 1;
  text-align: center;
  padding: 15px 15px 20px;
  border-top: var(--border-light);
  background: var(--gradient-card);
}

.product-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

:root {
  --swiper-pagination-bottom: 0px;
  --swiper-theme-color: var(--red-light);
}

.swiper-pagination-bullet {
  background: var(--text-primary);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--red-light);
  opacity: 1;
}

.featured-products__footer {
  text-align: center;
  margin-top: 40px;
}

/* ===== About block ===== */
.about-block {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.about-block__container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.about-block__image {
  text-align: center;
}

.about-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--shadow-red);
  transition: border-color 0.3s;
}

.about-block__divider {
  width: 2px;
  height: 400px;
  background: linear-gradient(180deg, transparent, var(--red-light), transparent);
  border-radius: 1px;
}

.about-block__content {
  display: flex;
  justify-content: center;
}

.about-block__card {
  background: var(--bg-secondary);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  padding: 40px 40px 40px 30px;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--shadow-red);
  border-right: 6px solid var(--red-dark);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
  position: relative;
  overflow: hidden;
  max-width: 600px;
}

.about-block__card:hover {
  transform: translateY(-5px);
  border-right-color: var(--red-light);
}

.about-block__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.about-block__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--red-light);
  border-radius: 2px;
}

.about-block__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-block__item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.about-block__icon {
  font-size: 2rem;
  min-width: 50px;
  text-align: center;
  color: var(--text-primary);
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
  transition: color 0.3s, filter 0.3s;
}

.about-block__item:hover .about-block__icon {
  color: var(--red-light);
  filter: drop-shadow(0 0 8px var(--shadow-red));
}

.about-block__item-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.about-block__item-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Секция преимуществ ===== */
.features {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  perspective: 1500px;
  display: flex;
}

.feature-card__inner {
  background: var(--gradient-card);
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  cursor: pointer;
  border: var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.feature-card__inner:hover {
  box-shadow: 0 30px 50px var(--shadow-red);
}

.feature-card__icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  transform: translateZ(30px);
  filter: drop-shadow(0 0 10px var(--shadow-red));
}

.feature-card__icon i {
  font-size: 3rem;
  color: var(--text-primary);
  transition: color 0.3s, filter 0.3s;
}

.feature-card__inner:hover .feature-card__icon i {
  color: var(--red-light);
  filter: drop-shadow(0 0 10px var(--shadow-red));
}

.feature-card__title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  transform: translateZ(20px);
}

.feature-card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transform: translateZ(15px);
  flex-grow: 1;
}

/* ===== Форма заявки ===== */
.contact-form {
  padding: 80px 0;
  background: var(--bg-primary);
}

.decor-form {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
  background: var(--form-bg);
  border-radius: 40px;
  box-shadow: var(--form-shadow);
}

.decor-form__left-decoration,
.decor-form__right-decoration {
  position: absolute;
  width: 60px;
  height: 24px;
  background: var(--bg-primary);
  border-radius: 30px;
  z-index: 1;
}

.decor-form__left-decoration {
  bottom: 70px;
  left: -30px;
}

.decor-form__right-decoration {
  top: 70px;
  right: -30px;
}

.decor-form__left-decoration::before,
.decor-form__left-decoration::after,
.decor-form__right-decoration::before,
.decor-form__right-decoration::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 24px;
  border-radius: 30px;
  background: var(--text-primary);
}

.decor-form__left-decoration::before {
  top: -24px;
  left: 0;
}
.decor-form__left-decoration::after {
  top: 24px;
  left: 10px;
}
.decor-form__right-decoration::before {
  top: -24px;
  right: 0;
}
.decor-form__right-decoration::after {
  top: 24px;
  right: 10px;
}

.decor-form__circle {
  position: absolute;
  bottom: 94px;
  left: -60px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-primary);
  z-index: 1;
}

.decor-form__inner {
  padding: 45px 40px 50px;
  position: relative;
  z-index: 2;
  background: transparent;
}

.decor-form__inner h3 {
  margin: 0 0 30px 0;
  font-size: 2rem;
  font-weight: 500;
  color: black;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

.decor-form__inner input,
.decor-form__inner textarea {
  display: block;
  width: 100%;
  padding: 0 20px;
  margin-bottom: 15px;
  background: #E9EFF6;
  line-height: 50px;
  border: none;
  border-radius: 30px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--form-text);
  transition: box-shadow 0.3s;
}

.decor-form__inner textarea {
  line-height: 1.5;
  padding: 15px 20px;
  resize: none;
  min-height: 100px;
}

.decor-form__inner input:focus,
.decor-form__inner textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--shadow-red);
}

.decor-form__inner input[type="submit"] {
  margin-top: 20px;
  background: var(--red-dark);
  border-bottom: 4px solid #5a0000;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  line-height: 60px;
  padding: 0;
}

.decor-form__inner input[type="submit"]:hover {
  background: var(--red-light);
  transform: translateY(-2px);
}

/* ===== Светлая тема: форма заявки ===== */
.light-theme .decor-form {
  background: rgb(170, 39, 39);
  box-shadow: 0 30px 50px rgba(170, 39, 39, 0.2);
}

.light-theme .decor-form__left-decoration,
.light-theme .decor-form__right-decoration {
  background: #ffffff;
}

.light-theme .decor-form__left-decoration::before,
.light-theme .decor-form__left-decoration::after,
.light-theme .decor-form__right-decoration::before,
.light-theme .decor-form__right-decoration::after,
.light-theme .decor-form__circle {
  background: rgb(170, 39, 39);
}

.light-theme .decor-form__inner h3 {
  color: #ffffff;
}

.light-theme .decor-form__inner input[type="submit"] {
  background: #ffffff;
  color: rgb(170, 39, 39);
  border-bottom: 4px solid #8B0000;
}

.light-theme .decor-form__inner input[type="submit"]:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* ===== Футер ===== */
.site-footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 60px 0 20px;
  border-top: 3px solid var(--red-dark);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
  align-items: center;
}

.footer-logo img {
  max-height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.light-theme .footer-logo img {
  filter: brightness(0) invert(0);
}

.footer-description {
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 300px;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--red-light);
}

.footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 280px;
}

.footer-contacts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-contacts li span {
  font-weight: 500;
  color: var(--text-primary);
  margin-right: 10px;
  min-width: 100px;
  text-align: left;
}

.footer-contacts li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  text-align: right;
  flex: 1;
}

.footer-contacts li a:hover {
  color: var(--red-light);
}

.footer-links,
.footer-social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.footer-links li,
.footer-social-links li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-social-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: normal;
}

.footer-links a:hover,
.footer-social-links a:hover {
  color: var(--red-light);
}

.footer-links a:visited,
.footer-social-links a:visited,
.footer-contacts a:visited {
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Адаптивность ===== */
@media (max-width: 992px) {
  :root {
    --header-height: 70px;
  }
  .header {
    width: 100%;
    border-radius: 0;
    padding: 0 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  }
  .header__container {
    height: 70px;
  }
  .nav__list {
    gap: 25px;
  }
  .info__container,
  .about-block__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-block__divider {
    display: none;
  }
  .product-swiper {
    max-width: 720px;
  }
  .product-swiper .swiper-slide {
    width: 280px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .header__phone {
    display: none;
  }
  .header__container {
    height: 60px;
  }
  .logo img {
    max-height: 35px;
  }
  .features__grid {
    grid-template-columns: 1fr;
  }
  .cursor-spotlight {
    display: none;
  }
  .product-swiper {
    max-width: 560px;
  }
  .product-swiper .swiper-slide {
    width: 280px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .decor-form__left-decoration,
  .decor-form__right-decoration,
  .decor-form__circle {
    display: none;
  }
  .footer-contacts li {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  .footer-contacts li span {
    text-align: center;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }
  .product-swiper {
    max-width: 260px;
  }
  .product-swiper .swiper-slide {
    width: 260px;
  }
}

/* ===== Стили для переключателя темы (повтор) ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch #input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.sun-moon {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: yellow;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

#input:checked + .slider {
  background-color: black;
}

#input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

#input:checked + .slider .sun-moon {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: white;
  -webkit-animation: rotate-center 0.6s ease-in-out both;
  animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

#input:checked + .slider .sun-moon .moon-dot {
  opacity: 1;
}

.slider.round {
  border-radius: 34px;
}

.slider.round .sun-moon {
  border-radius: 50%;
}

#moon-dot-1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#moon-dot-2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#moon-dot-3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#light-ray-1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.cloud-light {
  position: absolute;
  fill: #eee;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

.cloud-dark {
  position: absolute;
  fill: #ccc;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

#cloud-1 {
  left: 30px;
  top: 15px;
  width: 40px;
}

#cloud-2 {
  left: 44px;
  top: 10px;
  width: 20px;
}

#cloud-3 {
  left: 18px;
  top: 24px;
  width: 30px;
}

#cloud-4 {
  left: 36px;
  top: 18px;
  width: 40px;
}

#cloud-5 {
  left: 48px;
  top: 14px;
  width: 20px;
}

#cloud-6 {
  left: 22px;
  top: 26px;
  width: 30px;
}

@keyframes cloud-move {
  0% { transform: translateX(0px); }
  40% { transform: translateX(4px); }
  80% { transform: translateX(-4px); }
  100% { transform: translateX(0px); }
}

.stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.star {
  fill: white;
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  animation-name: star-twinkle;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

#input:checked + .slider .stars {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

#star-1 {
  width: 20px;
  top: 2px;
  left: 3px;
  animation-delay: 0.3s;
}

#star-2 {
  width: 6px;
  top: 16px;
  left: 3px;
}

#star-3 {
  width: 12px;
  top: 20px;
  left: 10px;
  animation-delay: 0.6s;
}

#star-4 {
  width: 18px;
  top: 0px;
  left: 18px;
  animation-delay: 1.3s;
}

@keyframes star-twinkle {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  80% { transform: scale(0.8); }
  100% { transform: scale(1); }
}

/* ===== ЭКСТРА-МАЛЕНЬКИЕ ЭКРАНЫ ===== */
@media (max-width: 360px) {
  .info__title {
    font-size: 1.5rem;
    word-break: break-word;
    hyphens: auto;
  }
  .product-swiper {
    max-width: 100%;
    overflow: hidden;
  }
  .product-card__image {
    height: 140px;
  }
  .product-card__title {
    font-size: 0.9rem;
    white-space: normal;
  }
  .about-block__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .about-block__icon {
    margin-bottom: 5px;
    min-width: auto;
  }
  .about-block__item-text h3 {
    font-size: 1.1rem;
  }
  .about-block__item-text p {
    font-size: 0.9rem;
  }
  .info__text-block {
    padding: 25px 15px;
  }
  .info__list {
    gap: 12px;
  }
  .info__item {
    font-size: 0.9rem;
    padding-left: 22px;
  }
  .certificates-swiper .swiper-slide {
    width: 100% !important;
  }
  .footer-contacts li {
    flex-direction: column;
    gap: 3px;
  }
  .footer-contacts li span,
  .footer-contacts li a {
    text-align: center;
  }
}

@media (max-width: 320px) {
  .info__title {
    font-size: 1.3rem;
  }
  .hero__title {
    font-size: 2rem;
  }
  .btn--primary {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  .product-card__title {
    font-size: 0.85rem;
  }
}