/* ========================================== */
/*         ОСНОВНЫЕ СТИЛИ МАГАЗИНА            */
/* ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, sans-serif;
  background: #f5f7fb;
  color: #1e2b3c;
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================== */
/*         ВЕРХНЯЯ ПОЛОСА                      */
/* ========================================== */
.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding: 20px 0 15px;
  background: #e8f5e9;
}

.logo-area {
  flex: 0 0 auto;
}

.logo-link {
  display: block;
  text-decoration: none;
}

.logo-img {
  width: 317px;
  height: 194px;
  border-radius: 12px;
  border: none;
  object-fit: contain;
  background: transparent;
  display: block;
}

.search-and-contacts {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.search-wrapper {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 14px 55px 14px 20px;
  border: 2px solid #cfdde9;
  border-radius: 30px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #2d7ee7;
  outline: none;
  box-shadow: 0 0 0 4px rgba(45, 126, 231, 0.1);
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: #1e3b5c;
  border: none;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #2d7ee7;
}

.search-hint {
  font-size: 0.85rem;
  color: #5e7180;
  margin-top: 6px;
  padding-left: 15px;
}

/* Корзина и телефоны */
.cart-phones-block {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  justify-content: flex-end;
  padding-right: 15px;
}

.cart-block {
  background: #f0f4fc;
  padding: 12px 22px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
  color: #1e3b5c;
  border: 1px solid #d0ddea;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  text-decoration: none;
}

.cart-block:hover {
  background: #e3ebf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cart-count {
  background: #2d7ee7;
  color: white;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
}

/* Телефоны */
.phone-numbers {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-link {
  font-weight: 900;
  font-size: 1.3rem;
  color: #000000;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: block;
}

.message-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d7ee7;
  text-decoration: none;
  border-bottom: 1px dashed #2d7ee7;
  padding-bottom: 2px;
  transition: all 0.3s;
  white-space: nowrap;
}

.message-link:hover {
  color: #1a5bbf;
  border-bottom-color: #1a5bbf;
}

/* ========================================== */
/*    ГЛАВНЫЙ БЛОК: каталог + правая колонка   */
/* ========================================== */
.main-layout {
  display: flex;
  gap: 25px;
  margin: 15px 0 30px;
  align-items: flex-start;
}

/* Левый каталог */
.catalog-side {
  width: 330px;
  min-width: 330px;
  background: #e8f5e9;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  height: fit-content;
  overflow: hidden;
  position: sticky;
  top: 20px;
}

.catalog-title {
  padding: 15px 20px;
  font-size: 1.2rem;
  color: #ffffff;
  background: #1e3b5c;
  border-bottom: none;
  margin: 0;
}

.catalog-list {
  list-style: none;
  background: #e8f5e9;
}

.catalog-list li {
  border-bottom: 1px solid #bdbdbd;
}

.catalog-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.catalog-list li a:hover {
  background: var(--accent);
  color: white;
  padding-left: 25px;
}

.catalog-list li a i {
  width: 20px;
  color: inherit;
  font-size: 0.9rem;
}

/* Новости */
.news-block {
  padding: 20px;
  border-top: 2px solid #bdbdbd;
  background: white;
}

.news-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #1e3b5c;
}

.news-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f4f8;
}

.news-link {
  text-decoration: none;
  color: #1e2b3c;
  font-weight: 600;
  display: block;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.news-link:hover {
  color: #2d7ee7;
}

.news-date {
  font-size: 0.8rem;
  color: #7a8a9a;
  display: block;
  margin-top: 4px;
}

.all-news-link {
  color: #2d7ee7;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 5px;
  font-size: 0.9rem;
}

.all-news-link:hover {
  text-decoration: underline;
}

/* Опрос */
.poll-block {
  padding: 20px;
  border-top: 2px solid #bdbdbd;
  background: white;
  margin: 0;
  border-radius: 0;
}

.poll-title {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #1e3b5c;
}

.poll-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.poll-option input[type="radio"] {
  accent-color: #2d7ee7;
}

.poll-btn {
  margin-top: 10px;
  background: #1e3b5c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 0.9rem;
}

.poll-btn:hover {
  background: #2d7ee7;
}

/* ========================================== */
/*         ПРАВАЯ КОЛОНКА                      */
/* ========================================== */
.right-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.horizontal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #1e3b5c;
  padding: 0;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.horizontal-menu a {
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s;
  font-size: 0.95rem;
  padding: 15px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
}

.horizontal-menu a:last-child {
  border-right: none;
}

.horizontal-menu a:hover {
  background: #2d7ee7;
  color: #ffffff;
}

/* Баннер-слайдер */
.banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 333;
  background: #dce5f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.slides-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.slide-content {
  text-align: center;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  padding: 20px;
}

.slide-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.slider-arrow.prev {
  left: 15px;
}

.slider-arrow.next {
  right: 15px;
}

.slider-arrow:hover {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: white;
  width: 25px;
  border-radius: 5px;
}

/* ========================================== */
/*         ТОВАРЫ                              */
/* ========================================== */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0b1f33;
  padding-left: 15px;
  border-left: 4px solid #2d7ee7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
  border-color: #cbddec;
  z-index: 50;
  width: calc(100% + 70px);
  margin-right: -70px;
}

.product-main-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background: #f4f7fc;
  border-radius: 14px;
  margin-bottom: 18px;
  padding: 10px;
  box-sizing: border-box;
}
.product-stars {
  color: #f5b342;
  margin-bottom: 10px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.product-name {
  font-weight: 700;
  color: #1e4f8a;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.product-desc {
  font-size: 0.9rem;
  color: #2c3e50;
  margin-bottom: 18px;
  font-weight: 500;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 10px;
  flex-wrap: nowrap;
}

.product-price {
  font-weight: 700;
  font-size: 1.4rem;
  color: #0b1c2e;
  white-space: nowrap;
  flex-shrink: 0;
}

.add-to-cart-btn {
  background: #1e3b5c;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.3s;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.add-to-cart-btn:hover {
  background: #2d7ee7;
  transform: scale(1.03);
}

/* Миниатюры при наведении */
.thumbnail-strip {
  display: none;
  position: absolute;
  right: 15px;
  top: 25px;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
}

.product-card:hover .thumbnail-strip {
  display: flex;
}

.thumbnail {
  width: 50px;
  height: 50px;
  background: #e9eff6;
  border-radius: 10px;
  border: 2px solid #ccdbe9;
  object-fit: cover;
  transition: transform 0.2s;
  cursor: pointer;
}

.thumbnail:hover {
  transform: scale(1.15);
  border-color: #2d7ee7;
}

/* ========================================== */
/*         ОТЗЫВЫ                              */
/* ========================================== */
.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.review-card {
  background: white;
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: stretch;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f9;
  transition: box-shadow 0.3s;
}

.review-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.review-info {
  flex: 1 1 400px;
  min-width: 280px;
}

.review-header {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.review-author {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e3b5c;
}

.review-date {
  font-size: 0.9rem;
  color: #7a8a9a;
}

.review-stars {
  color: #f5b342;
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 3px;
}

.review-product-link {
  display: inline-block;
  font-weight: 700;
  color: #1e4f8a;
  text-decoration: none;
  font-size: 1.1rem;
  margin-bottom: 15px;
  transition: color 0.3s;
  border-bottom: 1px dashed #1e4f8a;
}

.review-product-link:hover {
  color: #2d7ee7;
  border-bottom-color: #2d7ee7;
}

.review-text {
  color: #2c3e50;
  line-height: 1.7;
  font-size: 1rem;
}

.review-product-preview {
  display: flex;
  gap: 15px;
  align-items: center;
  background: #f8fafd;
  border-radius: 16px;
  padding: 15px;
  width: 280px;
  flex-shrink: 0;
  border: 1px solid #edf2f9;
  align-self: flex-start;
}

.review-product-img {
  width: 80px;
  height: 80px;
  background: #eef2f6;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.review-product-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-product-name-mini {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e3b5c;
}

.buy-from-review-btn {
  background: #1e3b5c;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.buy-from-review-btn:hover {
  background: #2d7ee7;
  transform: scale(1.03);
}

/* Партнёры */
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  align-items: center;
  background: #1e3b5c;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.partner-link {
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s;
  font-size: 0.95rem;
  padding: 15px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.partner-link:last-child {
  border-right: none;
}

.partner-link:hover {
  background: #2d7ee7;
  color: #ffffff;
}

/* Баннер 650×189 */
.banner-secondary {
  width: 100%;
  aspect-ratio: 650 / 189;
  background: #d4e0f0;
  border-radius: 20px;
  overflow: hidden;
}

.banner-img-secondary {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Подписка */
.subscribe-block {
  background: linear-gradient(135deg, #1e2f40, #16222e);
  color: white;
  border-radius: 24px;
  padding: 30px 35px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.subscribe-text h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.subscribe-text p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.subscribe-input {
  padding: 14px 25px;
  border-radius: 30px;
  border: none;
  width: 280px;
  font-size: 0.95rem;
  outline: none;
}

.subscribe-btn {
  background: #f5b342;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  color: #1e2b3c;
  font-size: 0.95rem;
}

.subscribe-btn:hover {
  background: #ffc555;
  transform: translateY(-2px);
}
/* ========================================== */
/*                  ФУТЕР                     */
/* ========================================== */

.footer {
  background: #f0f4fa;
  border-radius: 24px 24px 0 0;
  padding: 35px 30px 25px;
  margin-top: 40px;
}

/* Основная сетка футера */
.footer-grid {
  display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 25px;
  align-items: start;
}

/* Колонки */
.footer-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Заголовки всех колонок */
.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3b5c;
  margin: 0 0 15px 0;
  padding: 0 0 10px 0;
  border-bottom: 2px solid #d0ddea;
  line-height: 1.3;
  min-height: 42px;
  display: flex;
  align-items: flex-start;
}

/* Ссылки */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #3a4f63;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #2d7ee7;
}

/* Социальные сети */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  text-decoration: none;
  color: #3a4f63;
  font-weight: 600;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link.vk:hover {
  color: #0077FF;
}

.social-link.youtube:hover {
  color: #FF0000;
}

/* ========================================== */
/*      БАННЕР ПОД О МАГАЗИНЕ + КАБИНЕТОМ    */
/* ========================================== */

.footer-banner {
  margin-top: 20px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.footer-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========================================== */
/*       МАГАЗИН ПРОИЗВОДИТЕЛЯ                */
/* ========================================== */

.footer-col-company {
  grid-column: 6;
  min-width: 0;
}

.footer-col-company .footer-title {
  min-height: 42px;
}

.footer-contacts {
  font-style: normal;
  margin: 0;
  padding: 0;
  display: block;
}

.footer-contacts p {
  font-size: 0.9rem;
  color: #3a4f63;
  margin: 0 0 7px 0;
  line-height: 1.4;
}

.footer-contacts a {
  text-decoration: none;
  color: #3a4f63;
  transition: color 0.2s;
}

.footer-contacts a:hover {
  color: #2d7ee7;
}

/* Убираем старое принудительное поднятие */
.footer-col:last-child {
  margin-top: 0;
}

/* ========================================== */
/*              НИЖНЯЯ ЧАСТЬ                  */
/* ========================================== */

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #d0ddea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-text {
  font-size: 0.85rem;
  color: #718096;
}
/* ========================================== */
/*    СТИЛИ ДЛЯ СТРАНИЦЫ ОБРАТНОЙ СВЯЗИ        */
/* ========================================== */

/* Заголовок страницы */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #0b1f33;
  padding-left: 20px;
  border-left: 5px solid #1e3b5c;
}

/* Полоса выбора темы */
.feedback-theme-changer {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 35px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #cfdde9;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.feedback-theme-item {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  background: white;
  color: #1e3b5c;
  border: none;
  border-right: 2px solid #cfdde9;
  transition: all 0.3s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.3px;
}

.feedback-theme-item:last-child {
  border-right: none;
}

.feedback-theme-item:hover {
  background: #e8f5e9;
  color: #0b1f33;
}

.feedback-theme-item.active {
  background: #1e3b5c;
  color: white;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.15);
}

/* Форма */
.feedback-form {
  max-width: 100%;
  background: white;
  padding: 35px 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border: 1px solid #edf2f9;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 15px;
}

.form-label {
  flex: 0 0 200px;
  font-weight: 700;
  font-size: 1rem;
  color: #1e3b5c;
  padding-top: 14px;
  letter-spacing: 0.2px;
}

.form-label.required::after {
  content: " *";
  color: #e53935;
  font-weight: 800;
}

.form-field {
  flex: 1;
  min-width: 280px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 22px;
  border: 2px solid #dce3ec;
  border-radius: 12px;
  font-size: 1.05rem;
  font-family: inherit;
  transition: all 0.3s;
  background: #fafbfc;
  color: #1e2b3c;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #1e3b5c;
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 59, 92, 0.08);
  background: white;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #b0bec5;
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: #90a4ae;
  margin-top: 6px;
  padding-left: 5px;
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #edf2f9;
}

.submit-btn {
  background: #1e3b5c;
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 35px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(30, 59, 92, 0.25);
}

.submit-btn:hover {
  background: #2d7ee7;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(45, 126, 231, 0.35);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.required-note {
  font-size: 0.9rem;
  color: #90a4ae;
  font-weight: 500;
}

.required-note span {
  color: #e53935;
  font-weight: 700;
}

/* Сообщение об успехе */
.success-message {
  display: none;
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: 16px;
  padding: 30px 35px;
  font-size: 1.2rem;
  color: #2e7d32;
  font-weight: 600;
  margin-top: 20px;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.success-message i {
  margin-right: 12px;
  font-size: 1.5rem;
  color: #4caf50;
}

/* ========================================== */
/*         АДАПТИВНОСТЬ                        */
/* ========================================== */
@media (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
  }
  
  .catalog-side {
    width: 100%;
    min-width: auto;
    position: static;
  }
  
  .product-card:hover .thumbnail-strip {
    right: 10px;
    flex-direction: row;
    top: auto;
    bottom: -50px;
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  .review-card {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .logo-img {
    width: 200px;
    height: auto;
    aspect-ratio: 317 / 194;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .subscribe-block {
    flex-direction: column;
    text-align: center;
  }
  
  .subscribe-form {
    flex-direction: column;
    width: 100%;
  }
  
  .subscribe-input {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-label {
    flex: 0 0 100%;
  }
  
  .form-field {
    min-width: 100%;
  }
  
  .feedback-theme-item {
    flex: 0 0 50%;
    border-bottom: 1px solid #cfdde9;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.4rem;
  }

  .review-card {
    padding: 20px;
  }
  
  .feedback-theme-item {
    flex: 0 0 100%;
  }
}
/* ========================================== */
/*        МОБИЛЬНАЯ АДАПТАЦИЯ САЙТА          */
/* ========================================== */

@media (max-width: 768px) {

  /* Общие настройки */
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    margin: 0;
  }

  /* ====================================== */
  /* ШАПКА                                  */
  /* ====================================== */

  .top-bar {
    width: 100%;
    padding: 10px 0 15px;
    gap: 15px;
    align-items: center;
  }

  .logo-area {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .logo-img {
    width: 180px;
    height: auto;
    max-width: 80%;
  }

  .search-and-contacts {
    width: 100%;
    flex: none;
    gap: 12px;
  }

  .search-wrapper {
    width: 100%;
    max-width: none;
  }

  .search-input {
    width: 100%;
    padding: 13px 50px 13px 15px;
    font-size: 16px;
  }

  .search-hint {
    padding-left: 10px;
    font-size: 12px;
  }

  /* Корзина и телефоны */
  .cart-phones-block {
    width: 100%;
    padding: 0;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .cart-block {
    padding: 10px 16px;
    font-size: 1rem;
  }

  .phone-numbers {
    align-items: center;
    text-align: center;
  }

  .phone-link {
    font-size: 1.05rem;
  }

  .message-link {
    font-size: 0.8rem;
  }

  /* ====================================== */
  /* ОСНОВНАЯ СТРУКТУРА                     */
  /* ====================================== */

  .main-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px 0 20px;
  }

  .catalog-side {
    width: 100%;
    min-width: 0;
    position: static;
    border-radius: 12px;
  }

  .right-column {
    width: 100%;
    min-width: 0;
    gap: 15px;
  }

  /* ====================================== */
  /* МЕНЮ                                   */
  /* ====================================== */

  .horizontal-menu {
    width: 100%;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .horizontal-menu a {
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .horizontal-menu a:nth-child(2) {
    border-right: none;
  }

  .horizontal-menu a:nth-child(3),
  .horizontal-menu a:nth-child(4) {
    border-bottom: none;
  }

  /* ====================================== */
  /* БАННЕР                                */
  /* ====================================== */

  .banner-slider {
    width: 100%;
    aspect-ratio: 1000 / 400;
    border-radius: 12px;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .slider-arrow.prev {
    left: 8px;
  }

  .slider-arrow.next {
    right: 8px;
  }

  .slider-dots {
    bottom: 8px;
  }

  /* ====================================== */
  /* ТОВАРЫ                                 */
  /* ====================================== */

  .products-section {
    width: 100%;
  }

  .section-title {
    font-size: 1.35rem;
    margin-bottom: 15px;
    padding-left: 10px;
  }

  .product-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .product-card {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
  }

  /* Убираем расширение карточки при наведении */
  .product-card:hover {
    width: 100%;
    margin-right: 0;
    transform: none;
  }

  .product-main-image {
    margin-bottom: 12px;
  }

  .product-bottom {
    flex-wrap: wrap;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .add-to-cart-btn {
    padding: 9px 14px;
  }

  /* ====================================== */
  /* ПАРТНЕРЫ                               */
  /* ====================================== */

  .partners-strip {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 10px;
  }

  .partner-link {
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    font-size: 0.8rem;
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .partner-link:nth-child(even) {
    border-right: none;
  }

  .partner-link:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* ====================================== */
  /* ВТОРОЙ БАННЕР                          */
  /* ====================================== */

  .banner-secondary {
    width: 100%;
    aspect-ratio: 650 / 189;
    border-radius: 12px;
  }

  .banner-img-secondary {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ====================================== */
  /* ПОДПИСКА                               */
  /* ====================================== */

  .subscribe-block {
    width: 100%;
    padding: 22px 15px;
    border-radius: 15px;
    text-align: center;
  }

  .subscribe-text h3 {
    font-size: 1.2rem;
  }

  .subscribe-text p {
    font-size: 0.85rem;
  }

  .subscribe-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .subscribe-input {
    width: 100%;
    max-width: none;
  }

  .subscribe-btn {
    width: 100%;
  }

  /* ====================================== */
  /* ФУТЕР                                  */
  /* ====================================== */

  .footer {
    width: 100%;
    margin-top: 20px;
    padding: 25px 15px 20px;
    border-radius: 16px 16px 0 0;
  }

  .footer-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 15px;
  }

  .footer-col {
    width: 100%;
    min-width: 0;
  }

  .footer-title {
    font-size: 0.9rem;
    min-height: 40px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .social-link {
    font-size: 0.85rem;
  }

  /* Магазин производителя */
  .footer-col-company {
    grid-column: 1 / -1;
    width: 100%;
  }

  .footer-contacts p {
    font-size: 0.85rem;
  }

  /* Баннер в футере */
  .footer-banner {
    width: 100%;
    max-width: 100%;
    margin-top: 15px;
  }

  .footer-banner img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* ====================================== */
  /* ОТЗЫВЫ                                 */
  /* ====================================== */

  .review-card {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    gap: 15px;
  }

  .review-info {
    min-width: 0;
    width: 100%;
  }

  .review-product-preview {
    width: 100%;
    min-width: 0;
  }

  /* ====================================== */
  /* СТРАНИЦА FEEDBACK                      */
  /* ====================================== */

  .page-title {
    font-size: 1.5rem;
    padding-left: 12px;
    margin-bottom: 20px;
  }

  .feedback-theme-changer {
    width: 100%;
    margin-bottom: 20px;
  }

  .feedback-theme-item {
    min-width: 0;
    padding: 13px 8px;
    font-size: 0.9rem;
  }

  .feedback-form {
    width: 100%;
    padding: 20px 15px;
    border-radius: 14px;
  }

  .form-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
  }

  .form-label {
    flex: none;
    width: 100%;
    padding-top: 0;
    font-size: 0.95rem;
  }

  .form-field {
    width: 100%;
    min-width: 0;
  }

  .form-input,
  .form-textarea {
    width: 100%;
    font-size: 16px;
    padding: 13px 15px;
  }

  .form-textarea {
    min-height: 130px;
  }

  .form-submit-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
  }

  .submit-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .required-note {
    text-align: center;
  }
    /* Большой баннер в футере на мобильном */
    .footer-banner-wide {
        grid-column: 1 / -1;
        grid-row: auto;
        width: 100%;
        margin-top: 0;
        min-height: 100px;
    }

    .footer-banner-wide img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: cover;
    }
}


/* ========================================== */
/*       ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ             */
/* ========================================== */

@media (max-width: 480px) {

  .container {
    padding: 0 7px;
  }

  .logo-img {
    width: 160px;
  }

  .phone-link {
    font-size: 0.95rem;
  }

  .cart-phones-block {
    flex-direction: column;
  }

  .cart-block {
    width: 100%;
    justify-content: center;
  }

  .horizontal-menu {
    grid-template-columns: 1fr 1fr;
  }

  .horizontal-menu a {
    font-size: 0.8rem;
    padding: 11px 5px;
  }

  .footer {
    padding: 22px 12px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 12px;
  }

  .footer-title {
    font-size: 0.85rem;
  }

  .footer-links a,
  .social-link {
    font-size: 0.8rem;
  }

  .partners-strip {
    grid-template-columns: 1fr;
  }

  .partner-link {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .partner-link:last-child {
    border-bottom: none;
  }
}
/* ========================================== */
/* ТОЧНОЕ ВЫРАВНИВАНИЕ ЛИНИЙ В ФУТЕРЕ        */
/* ========================================== */

.footer-grid {
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Все заголовки футера одинаковой высоты */
.footer-title {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0 0 15px 0;
  padding: 0 0 10px 0;

  display: flex;
  align-items: flex-start;

  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;

  color: #1e3b5c;

  border-bottom: 2px solid #d0ddea;
}
.footer-col-company {
  min-width: 0;
}

.footer-col-company .footer-contacts {
  width: 100%;
  margin: 0;
  padding: 0;
  font-style: normal;
}

.footer-col-company .footer-contacts p {
  margin: 0 0 8px 0;
  padding: 0;
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: nowrap;
}

/* Телефоны не переносим */
.footer-col-company .footer-contacts p.phone {
  white-space: nowrap;
}

/* Email */
.footer-col-company .footer-contacts p.email {
  white-space: nowrap;
}

/* Адрес может занимать две строки, если действительно не помещается */
.footer-col-company .footer-contacts p.address {
  white-space: normal;
}

.footer-banner-wide {
  grid-column: 1 / 3;
  grid-row: 2;

  width: 100%;
  margin-top: -2px;

  border-radius: 14px;
  overflow: hidden;

  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);

  background: #fff;
  min-height: 100px; 
}

.footer-banner-wide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}
/* Подкатегории */
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 220px;
  background: white;
  border-radius: 0 12px 12px 0;
  box-shadow: 8px 8px 25px rgba(0,0,0,0.12);
  list-style: none;
  z-index: 100;
  border: 1px solid #dce3ec;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li {
  border-bottom: 1px solid #edf2f8;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu li a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.submenu li a:hover {
  background: #e8f5e9;
  color: #1e4f8a;
}

.sub-arrow {
  margin-left: auto;
  font-size: 0.7rem;
  color: #90a4ae;
}
.admin-star { font-size:1.5rem; color:#ccc; cursor:pointer; transition:0.2s; }
.admin-star:hover { color:#f5b342; }



/* ========================================== */
/*   МОБИЛЬНАЯ ВЕРСИЯ (полная адаптация)       */
/* ========================================== */

@media (max-width: 768px) {
  
  /* Общее */
  .container {
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
  }
  
  body {
    font-size: 15px;
    overflow-x: hidden;
  }
  
  /* Шапка */
  .top-bar {
    flex-direction: column;
    padding: 10px 0;
    gap: 10px;
  }
  
  .logo-area {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .logo-img {
    width: 150px;
    height: auto;
  }
  
  .search-and-contacts {
    width: 100%;
    gap: 10px;
  }
  
  .search-wrapper {
    max-width: 100%;
  }
  
  .search-input {
    font-size: 16px;
    padding: 12px 50px 12px 15px;
  }
  
  .cart-phones-block {
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 10px;
  }
  
  .cart-block {
    width: 100%;
    justify-content: center;
  }
  
  .phone-numbers {
    align-items: center;
    text-align: center;
  }
  
  /* Основная структура */
  .main-layout {
    flex-direction: column;
    margin: 10px 0;
  }
  
  .catalog-side {
    width: 100%;
    min-width: 0;
    position: static;
    border-radius: 12px;
  }
  
  .right-column {
    width: 100%;
    gap: 15px;
  }
  
  /* Меню */
  .horizontal-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  
  .horizontal-menu a {
    justify-content: center;
    text-align: center;
    padding: 12px 5px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  
  .horizontal-menu a:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.2);
  }
  
  .horizontal-menu a:nth-child(3),
  .horizontal-menu a:nth-child(4) {
    border-bottom: none;
  }
  
  /* Баннер */
  .banner-slider {
    aspect-ratio: 16/9;
    border-radius: 10px;
  }
  
  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .slide-content h2 {
    font-size: 1.2rem;
  }
  
  .slide-content p {
    font-size: 0.9rem;
  }
  
  /* Товары */
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .product-card {
    padding: 12px;
    border-radius: 12px;
  }
  
  .product-card:hover {
    width: 100%;
    margin-right: 0;
    transform: none;
  }
  
  .product-main-image {
    height: 160px;
    margin-bottom: 10px;
    padding: 5px;
  }
  
  .product-name {
    font-size: 0.9rem;
  }
  
  .product-desc {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  
  .product-price {
    font-size: 1.1rem;
  }
  
  .add-to-cart-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .thumbnail-strip {
    display: none !important;
  }
  
  /* Отзывы */
  .review-card {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }
  
  .review-info {
    min-width: 0;
  }
  
  .review-product-preview {
    width: 100%;
  }
  
  /* Партнёры */
  .partners-strip {
    grid-template-columns: 1fr 1fr;
  }
  
  .partner-link {
    padding: 12px 8px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  
  .partner-link:nth-child(even) {
    border-right: none;
  }
  
  .partner-link:nth-last-child(-n+2) {
    border-bottom: none;
  }
  
  /* Подписка */
  .subscribe-block {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }
  
  .subscribe-form {
    flex-direction: column;
    width: 100%;
  }
  
  .subscribe-input {
    width: 100%;
  }
  
  /* Футер */
  .footer {
    padding: 20px 15px;
    margin-top: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 15px;
  }
  
  .footer-title {
    font-size: 0.9rem;
    min-height: 30px;
    margin-bottom: 10px;
    padding-bottom: 5px;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
  
  .footer-col-company {
    grid-column: 1 / -1;
  }
  
  .footer-banner-wide {
    grid-column: 1 / -1;
  }
  
  /* Страница товара */
  .product-detail {
    flex-direction: column;
    padding: 15px;
  }
  
  .product-gallery {
    width: 100%;
  }
  
  .product-info h1 {
    font-size: 1.3rem;
  }
  
  .specs {
    grid-template-columns: 1fr;
  }
  
  .actions {
    flex-wrap: wrap;
  }
  
  .tabs {
    overflow-x: auto;
  }
  
  .tab-btn {
    font-size: 0.9rem;
    padding: 10px 15px;
    white-space: nowrap;
  }
}

/* ========================================== */
/*   ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 480px)      */
/* ========================================== */

@media (max-width: 480px) {
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .product-main-image {
    height: 200px;
  }
  
  .logo-img {
    width: 120px;
  }
  
  .horizontal-menu a {
    font-size: 0.8rem;
    padding: 10px 5px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .partners-strip {
    grid-template-columns: 1fr;
  }
  
  .partner-link {
    border-right: none;
  }
  
  .phone-link {
    font-size: 1rem;
  }
}



@media (max-width: 768px) {
  .catalog-content .product-grid {
    display: flex !important;
    flex-direction: column;
    gap: 15px;
  }
  
  .catalog-content .product-card {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 15px;
  }
  
  .catalog-content .product-main-image {
    height: 250px;
    width: 100%;
  }
  
  .catalog-content .product-bottom {
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  form[action="order_process.php"] {
    padding: 20px 15px !important;
  }
  
  form[action="order_process.php"] > div {
    margin-bottom: 15px;
  }
  
  form[action="order_process.php"] label {
    font-size: 0.9rem;
  }
  
  form[action="order_process.php"] input,
  form[action="order_process.php"] select,
  form[action="order_process.php"] textarea {
    width: 100% !important;
    font-size: 16px !important;
    padding: 12px 15px !important;
    box-sizing: border-box;
  }
  
  form[action="order_process.php"] button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
  }
}



@media (max-width: 768px) {
  #cartContent table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  #cartContent table th,
  #cartContent table td {
    padding: 10px 8px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  #cartContent input[type="number"] {
    width: 50px;
    padding: 5px;
  }
}


