html {
  overflow-x: hidden;
}

/* Кастомный скроллбар — убираем белый системный */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a1b;
}
::-webkit-scrollbar-thumb {
  background: #3a3b3f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f44336;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #3a3b3f #1a1a1b;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #232425;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.products-section {
  background: 
    repeating-linear-gradient(
      135deg,
      #232425,
      #232425 40px,
      #292a2d 40px,
      #292a2d 80px
    );
  padding: 110px 0 60px 0;
  box-sizing: border-box;
  min-height: 100vh;
}

.container {
  max-width: 1400px;    /* Было 1200px, теперь 1400px */
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  color: #f44336;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.15em;
}

.section-subtitle {
  max-width: 700px;
  margin: 0 auto 48px auto;
  font-size: 18px;
  color: #ccc;
  text-align: center;
  line-height: 1.5;
}

.disclaimer {
  max-width: 500px;
  margin: 0 auto 16px auto;
  font-size: 12px;
  text-transform: uppercase;
  color: #ccc;
  text-align: center;
  letter-spacing: 0.15em;
}

.products-cta-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.btn-tkp {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #f44336, #c62828);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(244, 67, 54, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-tkp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(244, 67, 54, 0.45);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-item {
  width: 100%;
  height: 400px; /* фиксированная высота для переворота */
}

.flip-card {
  width: 100%;
  height: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.product-item:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: #232425e6;
  border: 1.5px solid #3a3b3e;
  border-radius: 16px;
  box-shadow: 0 0 24px #f4433622, 0 4px 20px #0008;
  padding: 24px 20px 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Лицевая сторона */
.flip-card-front {
  justify-content: space-between;
}

.no-flip:hover .flip-card-inner {
  transform: none !important;
}


.product-image-wrapper {
  background: linear-gradient(135deg, #f4433681, #23242575);
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  max-width: 280px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.product-title {
  font-size: 22px;
  font-weight: 700;
  color: #f44336;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-description {
  font-size: 15px;
  color: #ccc;
  line-height: 1.5;
  margin: 0;
}

/* Обратная сторона */
.flip-card-back {
  transform: rotateY(180deg);
  background: #292a2d;
  justify-content: center;
  padding: 32px 24px;
  color: #ccc;
}

.back-title {
  font-size: 24px;
  font-weight: 700;
  color: #f44336;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  font-size: 16px;
  line-height: 1.8;
}

.specs-list li {
  margin-bottom: 8px;
}

.specs-list li:before {
  content: "▸ ";
  color: #f44336;
  font-weight: bold;
  margin-right: 8px;
}

@media (min-width: 1025px) {
  .center-bottom {
    grid-column: 2 / 3;
    grid-row: 3;
  }
}
.center-bottom {
  align-items: center;
  text-align: center;
}

.styled-button {
  background: linear-gradient(135deg, #d9534f 0%, #f44336 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 28px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(217, 83, 79, 0.4);
  transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  user-select: none;
  will-change: transform;
}

.styled-button:hover,
.styled-button:focus-visible {
  background: linear-gradient(135deg, #c94b48 0%, #f44336 100%);
  box-shadow: 0 5px 14px rgba(201, 75, 72, 0.5);
  transform: scale(1.04);
  outline: none;
}

.styled-button:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(201, 75, 72, 0.3);
}


.slider {
  background: linear-gradient(135deg, #f4433681, #23242575);
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  max-width: 280px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.slider-images {
  position: relative;
  width: 200%;
  height: 200%;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
}

.slider-image {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s;
  z-index: 1;
}

.slider-image.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slider-btn {
  background: rgba(244,67,54,0.13);
  border: none;
  color: #f44336;
  font-size: 24px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  margin: 0 4px;
}

.slider-btn:hover {
  background: #f44336;
  color: #fff;
}




/* Адаптив */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }
  .products-section .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .product-item {
    height: auto;
    min-height: 0;
  }
  .product-item .flip-card {
    height: auto;
    min-height: 0;
  }
  .product-item .flip-card-inner {
    transform: none !important;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .product-item .flip-card-front,
  .product-item .flip-card-back {
    position: relative !important;
    transform: none !important;
    width: 100%;
    height: auto;
    min-height: 0;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }
  .product-item .flip-card-back {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .product-title {
    font-size: 20px;
  }
  .product-description {
    font-size: 15px;
  }
}


.site-header {
  background: linear-gradient(90deg, #232325 0%, #19191a 100%);
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, #1f2022, #121214);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto !important;
  padding: 0 24px !important; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo img {
  height: 120px;
  filter: drop-shadow(0 0 2px #f44336);
  transition: filter 0.3s ease;
}

.logo img:hover {
  filter: drop-shadow(0 0 6px #f44336);
}

.main-nav .menu-list {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0 !important;
  padding: 0 !important;
}

.main-nav a {
  color: #ccc;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: #f44336;
  background-color: rgba(244, 67, 54, 0.15);
}

.header-contacts {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #bbb;
  font-weight: 500;
  align-items: center;
  user-select: auto !important;
}

.header-contacts a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
  user-select: auto !important;
}

.header-contacts a:hover {
  color: #f44336;
}

/* Скрываем бургер по умолчанию */
/* Кнопка бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.burger-logo {
  display: none;
}

.burger-contacts {
  display: none;
}

.burger-line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #f44336;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Фон модального окна - полупрозрачный, покрывающий всё окно */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
}

/* Окно с контентом по центру */
.modal-content {
  background-color: #232425e6;
  padding: 20px;
  width: min(520px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-sizing: border-box;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Кнопка закрытия */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
}


/* Мобильная адаптация */
@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    right: 0;
    width: 260px;
    height: calc(100vh - 70px);
    background: linear-gradient(180deg, #232325 0%, #19191a 80%);
    backdrop-filter: blur(10px) saturate(160%);
    box-shadow: 0 -8px 24px 0 rgba(30,30,32,0.65);
    border-top: 1px solid rgba(255,255,255,0.07); /* очень мягкая линия */
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.77,0,.18,1);
    z-index: 1050;
    padding: 24px 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .main-nav.open,
  .main-nav.active {
    transform: translateX(0) !important;
  }

  .main-nav .menu-list {
    flex-direction: column;
    gap: 18px;
    padding: 0 24px;
    margin: 0;
  }

  .main-nav .menu-list a {
    font-size: 1.1rem;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background 0.25s, color 0.25s;
    text-align: left;
    color: #ccc;
    text-decoration: none;
  }

  .main-nav .menu-list a:hover,
  .main-nav .menu-list a.active {
    background: rgba(244,67,54,0.07);
    color: #f44336;
  }

  .burger-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 29vh 24px 24px 24px;
    font-size: 8px;
    color: #bbb;
  }
  .burger-contacts a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    user-select: text;
    -webkit-user-select: text;
  }
  .burger-contacts a:hover {
    color: #f44336;
    text-decoration: none;
    border: none;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Логотип внизу меню */
  .burger-logo {
    width: 100%;
    padding: 24px 0 16px 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .burger-logo img {
    max-width: 110px;
    height: auto;
    filter: drop-shadow(0 0 4px #f44336);
    opacity: 0.95;
    transition: filter 0.3s;
  }

  .burger-logo img:hover {
    filter: drop-shadow(0 0 12px #f44336);
  }
}



/* Адаптив для мобильных */
@media (max-width: 900px) {
  .main-nav .menu-list {
    gap: 20px;
  }
  .header-contacts {
    display: none;
  }
}

@media (max-width: 600px) {
  .header-container {
    padding: 0 8px;
  }
  .main-nav .menu-list {
    gap: 10px;
    font-size: 14px;
  }
}



.footer {
  background: #28292b;
  color: #fff;
  padding: 48px 0 24px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 -8px 32px #1a1a1b;
  position: relative;
  z-index: 2;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer__logo img {
  height: 150px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: #f44336; /* красный акцент */
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: #c0c0c0;
}

.footer__phone {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 2px;
  transition: color 0.2s;
  user-select: all !important;
}

.footer__phone:hover {
  color: #f44336;
}

.footer__address,
.footer__mail {
  color: #c0c0c0;
  text-decoration: none;
  font-size: 15px;
  user-select: all !important;
}

.footer__mail:hover {
  color: #f44336;
}

.footer__copy {
  width: 100%;
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: #888;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.contacts-section {
  background: repeating-linear-gradient(
    135deg,
    #232425,
    #232425 40px,
    #292a2d 40px,
    #292a2d 80px
  );
  min-height: 100vh;
  padding: 110px 0 60px 0;
}


.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  color: #f44336;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.15em;
}

.section-subtitle {
  max-width: 700px;
  margin: 0 auto 48px auto;
  font-size: 18px;
  color: #ccc;
  text-align: center;
  line-height: 1.5;
}

.contacts-content {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
}

.contacts-info {
  flex: 1 1 0;
  min-width: 0;
  max-width: 500px;
  background: #232425e6;
  border: 1.5px solid #3a3b3e;
  border-radius: 14px;
  box-shadow: 0 0 24px #f4433622, 0 2px 16px #0006;
  padding: 32px 28px 24px 28px;
}

.contacts-info h2 {
  font-size: 22px;
  margin-bottom: 18px;
  color: #f44336;
  border-bottom: 2px solid #f44336;
  padding-bottom: 8px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.contacts-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #ddd;
  font-size: 16px;
}

.contacts-info li {
  margin-bottom: 18px;
  line-height: 1.6;
}

.contact-link {
  color: #f44336;
  text-decoration: underline;
  transition: color 0.2s;
}

.contact-link:hover,
.contact-link:focus {
  color: #b72a22;
  outline: none;
}

/* Форма */
/* Форма */
.contact-form-wrapper {
  flex: 0 0 380px;
  max-width: 400px;
  background: #232425e6;
  border: 1.5px solid #3a3b3e;
  border-radius: 14px;
  box-shadow: 0 0 24px #f4433622, 0 2px 16px #0006;
  padding: 32px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.contact-form-wrapper h2 {
  font-size: 22px;
  margin-bottom: 22px;
  color: #f44336;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #f44336;
  padding-bottom: 8px;
  text-align: center;
  font-weight: 700;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 15px;
  color: #ccc;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #35363a;
  border-radius: 7px;
  background: #292a2d;
  color: #fff;
  font-size: 15px;
  margin-top: 6px;
  margin-bottom: 2px;
  resize: vertical;
  transition: border 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #f44336;
  box-shadow: 0 0 8px #f4433666;
  outline: none;
}

.contact-form textarea {
  min-height: 90px;
}

.btn-primary {
  background-color: #f44336;
  color: #fff;
  border: none;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s;
  margin-top: 10px;
  box-shadow: 0 3px 12px #f4433633;
  width: 100%;
}

.btn-primary:hover {
  background: #d7372a;
}

.contact-container {
  position: relative;
  z-index: 10;
  max-width: 600px;
  margin: 70px auto 40px auto;
  padding: 60px 28px 40px 28px;
  background: rgba(40, 41, 43, 0.93);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* Адаптив */
@media (max-width: 1100px) {
  .contacts-content {
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
  }
  .contact-form-wrapper,
  .contacts-info {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .contacts-section {
    padding: 90px 0 30px 0;
  }
  .section-title {
    font-size: 28px;
  }
  .contacts-content {
    gap: 28px;
  }
  .contacts-info h2,
  .contact-form-wrapper h2 {
    font-size: 18px;
  }
}




  .container {
	margin: auto;
}

@media (max-width: 900px) {
  .footer__container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }

  .footer__copy {
    margin-top: 24px;
  }
  .logo img {
    height: 52px;
    max-height: 52px;
    width: auto;
  }
  .footer__logo img {
    height: 96px;
    max-height: 96px;
    width: auto;
  }
}

/* Выделение текста: поля форм */
input,
textarea,
select {
  user-select: text;
  -webkit-user-select: text;
}

/* ==========================================================================
   АДАПТИВНОСТЬ СТРАНИЦЫ ПРОДУКЦИИ (MOBILE RESPONSIVE PRODUCTS)
   ========================================================================== */
@media (max-width: 900px) {
  .products-section {
    padding: 90px 16px 40px 16px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0;
  }

  .section-title {
    font-size: 26px;
    letter-spacing: 0.08em;
  }

  .section-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
    padding: 0 10px;
  }

  .product-item {
    height: auto;
    min-height: 390px;
  }

  .center-bottom {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-item {
    height: 380px;
  }

  .product-title {
    font-size: 18px;
  }

  .product-description {
    font-size: 14px;
  }

  .specs-list {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .back-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .product-image-wrapper {
    height: 150px;
    margin-bottom: 14px;
  }

  .flip-card-front, 
  .flip-card-back {
    padding: 20px 16px;
  }
}

