/* == Базовые стили == */
:root {
  --color-bg: #000;
  --color-primary: #87ccf5;
  --color-secondary: #3e7dca;
  --color-accent: #873bdc;
  --color-text: #fff;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
}

html {
  font-size: 16px;
  min-width: 0;
  overflow-x: hidden;
}
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 70px 1fr;
  grid-template-columns: 1fr;
  overflow-x: hidden;
  padding-top: 70px;
  min-width: 0;
}

/* Глобальный фикс для горизонтального скролла */
html, body {
  overflow-x: hidden !important;
  width: 100vw;
  max-width: 100vw;
}

/* Защита от переполнения для всех вложенных элементов */
*, *::before, *::after {
  box-sizing: border-box;
  max-width: 100%;
}

img, table, iframe {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

.wrapper {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.main-content {
  margin: 0 auto;
  max-width: 1240px;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  padding: 24px;
  box-sizing: border-box;
  border-radius: 12px;
  margin-top: 0;
  row-gap: 0;
  grid-row: 2;
  background: var(--color-bg);
  color: var(--color-text);
}

.lazy-products-slider {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}


@media (max-width: 850px) {
  html {
    font-size: 15px;
  }
  .wrapper, .main-content {
    max-width: 100vw;
    width: 100%; /* Исправлено с 100vw на 100% */
    min-width: 0;
    padding: 0 2vw;
    box-sizing: border-box;
  }
  body {
    padding-top: 56px;
  }
  .main-content {
    padding: 8px 0;
    border-radius: 6px;
  }
  .lazy-products-slider {
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  html {
    font-size: 13px;
  }
  body {
    font-size: 13px;
  }
  .main-content {
    padding: 2px 0;
    border-radius: 3px;
  }
  .wrapper {
    padding: 0;
  }
  .lazy-products-slider {
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0;
    min-width: 0;
  }
}