* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif ;
}

html {
  font-size: 16px; /* Базовый размер шрифта для rem единиц */
  zoom: 0.8; /* Принудительный масштаб 80% */
  -webkit-text-size-adjust: 80%; /* Для Safari */
  -ms-text-size-adjust: 80%; /* Для IE */
}

@media (max-width: 48rem) {
  html {
    font-size: 14px; /* Уменьшаем базовый размер для мобильных */
    zoom: 0.8; /* Принудительный масштаб 80% */
    -webkit-text-size-adjust: 80%; /* Для Safari */
    -ms-text-size-adjust: 80%; /* Для IE */
  }
}

@media (max-width: 30rem) {
  html {
    font-size: 12px; /* Еще меньше для очень маленьких экранов */
    zoom: 0.8; /* Принудительный масштаб 80% */
    -webkit-text-size-adjust: 80%; /* Для Safari */
    -ms-text-size-adjust: 80%; /* Для IE */
  }
}

/* Основной контейнер для двух колонок */
.main_content_wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  /* Edge compatibility */
  -webkit-display: flex;
  -ms-display: flex;
  -webkit-align-items: flex-start;
  -ms-align-items: flex-start;
}

/* Левая колонка - основные блоки */
.gc_blocks {
  flex: 1;
  min-width: 0;
}

/* Блок о российском производителе */
.russian-producer-block {
  margin: 2rem 5.3125rem;
  padding: 3rem;
  background: #ffffff;
  border: 0.25rem solid #e33333;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(227, 51, 51, 0.15);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.russian-producer-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.375rem;
  background: linear-gradient(90deg, #e33333, #c62828, #e33333);
}

.russian-producer-content {
  max-width: 80rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.russian-producer-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #e33333;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1875rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.russian-producer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(90deg, #e33333, #c62828);
  border-radius: 0.125rem;
}

.russian-producer-text {
  font-size: 1.25rem;
  color: #2c3e50;
  line-height: 1.9;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  margin-top: 1rem;
  text-align: justify;
  letter-spacing: 0.02em;
  text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.05);
}

/* Адаптивность для блока о российском производителе */
@media (max-width: 48rem) {
  .russian-producer-block {
    margin: 1rem 2rem;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .russian-producer-title {
    font-size: 1.75rem;
    letter-spacing: 0.125rem;
  }
  
  .russian-producer-text {
    font-size: 1.125rem;
    line-height: 1.6;
  }
}

/* Правая колонка - новости */
.news_section {
  flex: 0 0 50rem; /* Увеличил ширину с 20rem до 28rem */
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 1rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  /* Edge compatibility */
  -webkit-flex: 0 0 50rem;
  -ms-flex: 0 0 50rem;
  min-width: 0;
  max-width: 50rem;
}

.news_header {
  text-align: center;
  margin-bottom: 1rem;
}

.news_title {
  font-size: 1.5rem;
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.news_container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news_item {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1rem;
}

.news_item:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
}

/* Галерея новостей */
.news_gallery {
  width: 100%;
  margin-bottom: 0.75rem;
}

.gallery_container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery_main_photo {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.gallery_thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  justify-content: center;
}

.gallery_thumbnails::-webkit-scrollbar {
  height: 4px;
}

.gallery_thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.gallery_thumbnails::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.gallery_thumb {
  width: 8rem;
  height: 8rem;
  object-fit: contain;
  border-radius: 0.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
  position: relative;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.gallery_thumb::after {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery_thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.gallery_thumb:hover::after {
  opacity: 1;
}

.gallery_thumb.active {
  opacity: 1;
  border: 2px solid #007bff;
  transform: scale(1.05);
}

/* Модальное окно для полноэкранного просмотра фото */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
}

.modal-photo {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
  background: white;
  padding: 1rem;
}

.modal-close {
  position: absolute;
  top: -4rem;
  right: -1rem;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #ff6b6b;
}

/* Стрелки навигации */
.modal-arrow {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 0.5rem;
  width: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 3rem;
  transition: all 0.3s ease;
  z-index: 10001;
  /* Edge compatibility */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.modal-arrow:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.9);
}

.modal-arrow-left:hover:not(:disabled) {
  -webkit-transform: translateX(-100%) scale(1.05);
  transform: translateX(-100%) scale(1.05);
}

.modal-arrow-right:hover:not(:disabled) {
  -webkit-transform: translateX(100%) scale(1.05);
  transform: translateX(100%) scale(1.05);
}

/* Убираем стили для отключенных стрелок, так как теперь циклическая прокрутка */

.modal-arrow-left {
  left: 0;
  transform: translateX(-100%);
}

.modal-arrow-right {
  right: 0;
  transform: translateX(100%);
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* Адаптивность для модального окна */
@media (max-width: 48rem) {
  .modal-overlay {
    padding: 1rem;
  }
  
  .modal-close {
    top: -3rem;
    right: -0.5rem;
    font-size: 2rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .modal-arrow {
    width: 12rem;
    font-size: 2.5rem;
  }
  
  .modal-arrow-left {
    left: 0;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  
  .modal-arrow-right {
    right: 0;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
}

.news_content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Edge compatibility fixes */
@supports (-ms-ime-align: auto) {
  .main_content_wrapper {
    display: -ms-flexbox;
    -ms-flex-direction: row;
    -ms-flex-align: start;
  }
  
  .news_section {
    -ms-flex: 0 0 50rem;
    -ms-flex-positive: 0;
    -ms-flex-negative: 0;
    -ms-flex-basis: 50rem;
    width: 50rem;
    max-width: 50rem;
  }
  
  .gc_blocks {
    -ms-flex: 1;
    -ms-flex-positive: 1;
    -ms-flex-negative: 1;
    -ms-flex-basis: auto;
  }
}

/* Fallback for older Edge versions */
@supports not (display: flex) {
  .main_content_wrapper {
    display: block;
  }
  
  .gc_blocks {
    float: left;
    width: calc(100% - 52rem);
  }
  
  .news_section {
    float: right;
    width: 50rem;
  }
}

.news_item_title {
  font-size: 1.25rem;
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.news_text {
  color: #5a6c7d;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}

.news_date {
  color: #7f8c8d;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 48rem) {
  .main_content_wrapper {
    flex-direction: column;
    gap: 1rem;
  }
  
  .news_section {
    flex: none;
    width: 100%;
    max-height: none;
    margin: 1rem 0;
    padding: 1rem;
  }
  
  .news_title {
    font-size: 1.5rem;
  }
  
  .news_item {
    flex-direction: column;
    padding: 1rem;
  }
  
  .news_image {
    width: 100%;
    height: 8rem;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .news_item_title {
    font-size: 1.125rem;
  }
}

/* Стили для отображения цен продуктов */
.product-price {
  margin: 1.25rem 0;
  text-align: center;
}

.price-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #e33333, #c62828);
  color: white;
  padding: 0.9375rem 1.5625rem;
  border-radius: 0.625rem;
  box-shadow: 0 0.25rem 0.9375rem rgba(227, 51, 51, 0.3);
  border: 0.125rem solid #fff;
  min-width: 12.5rem;
}

.price-label {
  font-size: 1.125rem;
  font-weight: bold;
  letter-spacing: 0.125rem;
  margin-bottom: 0.3125rem;
  text-transform: uppercase;
}

.price-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0.0625rem 0.0625rem 0.125rem rgba(0, 0, 0, 0.3);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 48rem) {
  .price-container {
    padding: 0.75rem 1.25rem;
    min-width: 11.25rem;
  }
  
  .price-label {
    font-size: 1rem;
  }
  
  .price-value {
    font-size: 1.25rem;
  }
}

body {
  height: auto;
  background-color: #fff no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Структура страницы с футером внизу */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.main-content {
  flex: 1;
  padding-top: 4.5rem; /* Отступ для фиксированного header */
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4.5rem); /* Учитываем высоту header */
}

/* Дополнительные стили для гарантии позиционирования футера */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgb(227, 51, 51);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0 0.125rem 0.375rem;
  gap: 0.5rem;
}

/* Контейнер для логотипа и breadcrumbs */
.logo-breadcrumbs-container {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  flex-shrink: 1;
  min-width: 0;
}

/* Стили для breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 37.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: 0;
  flex-shrink: 1;
  min-width: 0;
  flex: 1;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.0625rem;
  padding: 0.125rem 0.25rem;
  border-radius: 0.1875rem;
}

.breadcrumb-link:hover {
  color: rgb(255, 255, 255);
  text-decoration: underline;
  background-color: rgba(255, 255, 255, 0.1);
}

.breadcrumb-current {
  color: rgb(255, 255, 255);
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 0.125rem 0.25rem;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 0.1875rem;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 48rem) {
  .logo-breadcrumbs-container {
    gap: 0.1875rem;
  }
  
  .breadcrumbs {
    max-width: 21.875rem;
    font-size: 1rem;
    margin-left: 0;
  }
  
  .breadcrumb-link,
  .breadcrumb-current {
    font-size: 0.9375rem;
  }
  
  .breadcrumb-separator {
    font-size: 0.875rem;
    margin: 0 0.375rem;
  }
}

.text-nav {
  color: rgb(255, 255, 255);
}

.logo-img {
  width: 3.75rem;
  height: 3.75rem;
  margin-top: 0.375rem;
}

header .logo {
  height: 4.5rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: black;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif ;
}

.viewport {
  font-weight: 300;
  right: 18.75rem;
  text-align: center;
  font-size: 1.5rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif ;
}

header .logo:hover {
  transform: scale(1.2);
}

header nav ul li {
  position: relative;
  float: left;
}

header nav ul li a {
  padding: 0.9375rem;
  color: rgb(255, 255, 255);
  font-size: 1.25rem;
  display: block;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif ;
}

header nav ul li a:hover {
  /* background: #ffffff;   */
  color: rgb(255, 255, 255);
}

.navbar-menu {
  position: absolute;
  left: 0;
  width: 12.8125rem;
  background-color: rgb(227, 51, 51);
  display: none;
}

.navbar-link {
  width: 100%;
  border: 0.0625rem solid rgb(23, 23, 23,);
}

.navbar-grand:hover > ul {
  display: initial;
}

.viewport {
  font-weight: 300;
  right: 18.75rem;
  text-align: center;
  font-size: 1.5rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif ;
}

.pop_up {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.pop_up.active {
  display: block;
}

.pop_up_container {
  display: flex;
  width: 100%;
  height: 100%;
}

.pop_up_body {
  margin: auto;
  width: 43.75rem;
  background-color: #fff;
  border-radius: 0.625rem;
  text-align: center;
  padding: 3.125rem;
  position: relative;
}

.pop_up_body p {
  font-size: 1.75rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  color: #22262d;
  margin-bottom: 1.5625rem;
}

.pop_up_body input {
  display: block;
  margin: 1.5625rem auto 0 auto;
  width: 31.25rem;
  padding: 1.0625rem 1.25rem;
  background-color: #e5e5e5;
  border-radius: 0.625rem;
  border: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 1.125rem;
  color: #89909f;
}

.pop_up_body textarea {
  display: block;
  margin: 1.5625rem auto 0 auto;
  margin-bottom: 1.5625rem;
  width: 31.25rem;
  height: 18.75rem;
  padding: 1.0625rem 1.25rem;
  background-color: #e5e5e5;
  border-radius: 0.625rem;
  border: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.125rem;
  color: #1d1d1d;
  resize: vertical;
}

.pop_up_body input:focus {
  outline: none;
}

.pop_up_body textarea:focus {
  outline: none;
}

.pop_up_body button {
  cursor: pointer;
  display: inline-block;
  width: 21.125rem;
  margin-top: 1.5625rem;
  margin-bottom: 3.125rem;
  padding: 1.25rem 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  border: none;
  color: #fff; 
  border-radius: 1.125rem;
  background-color: rgb(227, 51, 51);
}

.pop_up_close {
  position: absolute;
  top: 0.9375rem;
  right: 0.9375rem;
  font-size: 1.3125rem;
  cursor: pointer;
}

.social {
  display: flex; 
  width: 6.25rem;
  height: 6.25rem;
  text-align: center;
  margin: auto;
  justify-content: center;
  align-items: center;
}

.social__icon {
  text-decoration: none;
  text-decoration-color: #00ffdd; 
  display: flex; 
  align-items: center;
  justify-content: center;
  width: 18.75rem;
  height: auto; 
  margin: 0.3125rem; 
  color: rgb(255, 255, 255);
  background-color: #3b5dc5; 
  border-radius: 50%;
  box-shadow: 0 0 0.4375rem #00000080; 
}

.social__icon i {
  font-size: 150%;
}

.p1_2 {
  font-size: 1.75rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
}

.Gtitle {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana;
  font-weight: 600;
  font-size: 2.125rem;
  text-align: center;
  width: 100%;
  margin: 0;
}

.mobile-container {
  margin-right: 5.3125rem;
  height: 100%;
  margin-top: 5.3125rem;
  margin-left: 5.3125rem;
  color: white;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 6.25rem auto auto;
  grid-row-gap: 3.125rem;
  display: none;
}

.container1 {
  margin-right: 5.3125rem;
  height: 100%;
  margin-top: 5.3125rem;
  margin-left: 5.3125rem;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 6.25rem auto 0;
  grid-column-gap: 2.8125rem;
  grid-row-gap: 1.5625rem;
}

.item.item_1 {
  grid-column-start: 1;
  grid-column-end: 3;
  justify-self: center;
}

.item.item_2 {
  margin-top: 0.625rem;
}

.item.item_3 {
  position: relative;
  margin-top: 1.5625rem;
  z-index: 0;
}

.h2-1 {
  position: absolute;
  z-index: -2;
  text-align: center;
  color: #555;
  right: 45%;
  top: -6%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif ;
  font-style:inherit;
  font-weight: 500;
  font-size: 1.75rem;
}

.h3_1 {
  font-size: 1.5rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-style: normal;
  font-weight: 600;
}

.p1_1 {
  font-size: 1.125rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  font-style: italic;
}

.h4_1 {
  font-size: 1.25rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-style: normal;
  font-weight: 500;
  color: #000;
}

.li_1 {
  font-size: 1.125rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  font-style: italic;
}

.item.item_4 {
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row: end;
}

.title {
  color: #000000;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.photo-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-column-gap: 1.5625rem;
  grid-row-gap: 0.9375rem;
}

.photo.photo-first {
  align-self: start;
}

.photo.photo-fourth {
  align-self: start;
}

.photo.photo-second {
  align-self: start;
}

.photo.photo-third {
  align-self: start;
}

.picture-one {
  object-fit: fill;
  width: 100%;
  max-height: 100%;
}

.picture-two {
  object-fit: fill;
  width: 100%;
  max-height: 100%;
}

.picture-three {
  object-fit: fill;
  width: 100%;
  max-height: 100%;
}

.picture-four {
  object-fit: fill;
  width: 100%;
  max-height: 100%;
}

.figc {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  font-size: 0.875rem;
  color: #2828289f;
}

h3 {
  color: #555;
  margin-top: 0.625rem;
  border-bottom: 0.125rem solid #e0e0e0;
  padding-bottom: 0.625rem;
}

p {
  line-height: 1.6;
  color: #666;
}

ul {
  list-style-type: none;
  padding: 0;
}

ul ul li {
  color: #555;
}

strong {
  color: #000;
}

.Created {
  text-align: right;
  color: #4f4f4f96;
}

/* Средства для разработки */

.sredstva-container-parent {
  margin-right: 5.3125rem;
  margin-top: 5.3125rem;
  margin-left: 5.3125rem;
  margin-bottom: 2rem;
  color: white;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  grid-row-gap: 3.125rem;
}

.sredstva {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.sredstva-elementsredstva-one {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.sredstva-elementsredstva-two {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.contentsredstva.contentsredstva-content-1 {
  justify-self: center;
}

.contentsredstva.contentsredstva-content-2 {
  justify-self: center;
}

.contentsredstva.contentsredstva-content-3 {
  justify-self: center;
}

.p-sredstva-subtitle {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  text-align: center;
}

.sredstva-container-content {
  margin-right: 0.9375rem;
  margin-top: 0.9375rem;
  margin-left: 0.9375rem;
  color: white;
  display: grid;
  grid-template-columns: repeat(5, minmax(15.625rem, 1fr));
  grid-auto-rows: auto;
  grid-column-gap: 3.125rem;
  grid-row-gap: 3.125rem;
  justify-content: center;
  width: 100%;
}

.sredstva-picture {
  object-fit: contain;
  width: 100%;
  max-height: 100%;
  border: solid 0.09375rem black;
  border-radius: 2%;
}

.sredstva-p-1 {
  text-align: center;
}

/* Продукты */

.products-container-parent {
  margin-right: 5.3125rem;
  margin-top: 5.3125rem;
  margin-left: 5.3125rem;
  margin-bottom: 2rem;
  color: white;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  grid-row-gap: 3.125rem;
}

.elementproducts {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.elementproducts-element-one {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.elementproducts-element-two {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.contentproducts.contentproducts-content-1 {
  justify-self: center;
}

.contentproducts.contentproducts-content-2 {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.p-products-subtitle {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.75rem;
  text-align: center;
  width: 100%;
  margin: 0;
}

.products-container-content {
  margin-right: 0.9375rem;
  margin-top: 0.9375rem;
  margin-left: 0.9375rem;
  color: white;
  display: grid;
  grid-template-columns: repeat(5, minmax(15.625rem, 1fr));
  grid-auto-rows: auto;
  grid-column-gap: 3.125rem;
  grid-row-gap: 3.125rem;
  justify-content: center;
  width: 100%;
}

/* Специальные стили для главной страницы */
.gc_blocks .products-container-content {
  grid-template-columns: repeat(2, minmax(25rem, 1fr));
  grid-column-gap: 4rem;
  grid-row-gap: 4rem;
  justify-content: center;
  max-width: 60rem;
  margin: 0 auto;
}

/* Мобильная версия для главной страницы */
@media (max-width: 48rem) {
  .gc_blocks .products-container-content {
    grid-template-columns: 1fr;
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
    justify-content: center;
    max-width: 25rem;
    margin: 0 auto;
  }
  
  .gc_blocks .products-picture {
    width: 20rem !important;
    height: 12rem !important;
  }
}

@media (max-width: 30rem) {
  .gc_blocks .products-container-content {
    grid-column-gap: 1rem;
    grid-row-gap: 1.5rem;
    max-width: 20rem;
    margin: 0 auto;
  }
  
  .gc_blocks .products-picture {
    width: 18rem !important;
    height: 10rem !important;
  }
  
  .gc_blocks .p-products-subtitle {
    font-size: 1.5rem;
  }
}

.products-picture {
  object-fit: contain;
  width: 100%;
  max-height: 100%;
  border: solid 0.09375rem black;
  border-radius: 2%;
}

.products-picture-a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.products-p-1 {
  text-align: center;
}

/* База знаний */

.baza-container-parent {
  margin-right: 5.3125rem;
  margin-top: 5.3125rem;
  margin-left: 5.3125rem;
  margin-bottom: 2rem;
  color: white;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  grid-row-gap: 3.125rem;
}

.contentbaza.contentbaza-content-1 {
  justify-self: center;
  width: 300px;
  height: 185px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contentbaza.contentbaza-content-2 {
  justify-self: center;
  width: 300px;
  height: 185px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-baza-subtitle {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  text-align: center;
}

.baza-container-content {
  margin-right: 0.9375rem;
  margin-top: 0.9375rem;
  margin-left: 0.9375rem;
  color: white;
  display: grid;
  grid-template-columns: repeat(5, minmax(15.625rem, 1fr));
  grid-auto-rows: auto;
  grid-column-gap: 3.125rem;
  grid-row-gap: 3.125rem;
  justify-content: center;
  width: 100%;
}

.baza-picture {
  object-fit: contain;
  width: 100%;
  height: 145px;
  border: solid 0.09375rem black;
  border-radius: 2%;
  flex-shrink: 0;
}

.baza-picture-a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 145px;
  flex-shrink: 0;
}

.baza-p-1 {
  text-align: center;
}

/* Контейнер Программирование МК Stm32 */

.stm32-container-parent {
  margin-right: 5.3125rem;
  margin-top: 5.3125rem;
  margin-left: 5.3125rem;
  margin-bottom: 2rem;
  color: white;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  grid-row-gap: 3.125rem;
}

.stm32.stm32-element-one {
  justify-self: center;
}

.p-stm32-subtitle {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  text-align: center;
}

.stm32-container-content {
  margin-right: 0.9375rem;
  margin-top: 0;
  margin-left: 0.9375rem;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  grid-column-gap: 0.625rem;
  grid-row-gap: 9.375rem;
}

.p-stm32 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  font-style: normal;
  color: #000;
  text-align: center;
}

.stm32-content.stm32-content-one {
  object-fit: fill;
}

.stm32-video-1 {
  border: 0.0625rem solid black;
  border-radius: 2%;
}

.stm32-content.stm32-content-two {
  justify-items: center;
  align-self: center;
}

.p-stm32-description {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.125rem;
  text-align: justify;
  font-style: italic;
}

.p-stm32-title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  font-style: normal;
  color: #000;
  text-align: center;
}

.stm32.stm32-element-three {
  object-fit: fill;
}

.stm32.stm32-element-four {
  justify-items: center;
  align-self: center;
}

/* Специальные стили для печатных изданий */
.stm32-content.stm32-content-one {
  grid-column: 1;
  justify-self: center;
  align-self: start;
}

.stm32.stm32-element-three {
  grid-column: 1;
  justify-self: center;
  align-self: start;
}

.stm32-content.stm32-content-two {
  grid-column: 2;
}

.stm32.stm32-element-four {
  grid-column: 2;
}

.stm32.stm32-element-five {
  justify-self: center;
  align-self: center;
  object-fit: fill;
}

.stm32.stm32-element-six {
  justify-items: center;
  align-self: center;
}

.stm32.stm32-element-seven {
  justify-self: center;
  align-self: center;
  object-fit: fill;
}

.stm32.stm32-element-eight {
  justify-items: center;
  align-self: center;
}

.stm32.stm32-element-nine {
  justify-self: center;
  align-self: center;
  object-fit: fill;
}

.stm32.stm32-element-ten {
  justify-items: center;
  align-self: center;
}

.stm32.stm32-element-eleven {
  justify-self: center;
  align-self: center;
  object-fit: fill;
}

.stm32.stm32-element-twelve {
  justify-items: center;
  align-self: center;
}

.general_container {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto auto auto auto; 
  grid-row-gap: 0.625rem;
  margin-bottom: 2rem;
}

.gc_head {
  background-color: #f5f5f5;
  justify-content: center;
  align-content: center;
}

.great_title {
  text-align: center;
  padding-bottom: 3.75rem;
  font-size: 2.8125rem;
  opacity: 90%;
}

.good_title {
  text-align: center;
  padding-bottom: 3.75rem;
  font-size: 2.0625rem;
  opacity: 50%;
}

.notbad_title {
  text-align: center;
  padding-bottom: 3.75rem;
  font-size: 1.5rem;
  opacity: 40%;
  border-bottom: none;
}

.footer {
  background-color: rgb(227, 51, 51);
  box-shadow: 0.125rem 0 0.625rem;
  width: 100%;
  margin-top: auto; /* Прижимает футер к низу */
  flex-shrink: 0; /* Предотвращает сжатие футера */
  position: relative;
  bottom: 0;
  align-self: flex-end; /* Прижимает к низу flex-контейнера */
}

.footer_general_container {
  padding-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-auto-rows: auto;
  grid-column-gap: 2.5rem;
}

.footer_info {
  align-self: center;
}

.info_text {
  margin-left: 9.375rem;
  font-weight: 600;
  text-align: start;
  font-size: 2.1875rem;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  opacity: 100%;
  border-bottom: none;
  line-height: 1.5;
}

.info_text.text2 {
  font-size: 1.125rem;
}

.info_text.text3 { 
  padding-top: 0.9375rem;
  font-size: 0.875rem;
}

.footer_container {
  display: grid;
  margin-bottom: 1.875rem;
  margin-top: 1.25rem;
  margin-left: 9.375rem;
  margin-right: 9.375rem;
  grid-template-columns: 16.875rem 16.875rem 16.875rem;
  grid-auto-rows: auto;
  grid-column-gap: 2.5rem;
  grid-row-gap: 0.625rem;
  justify-content: center;
}

.blocks_cool {
  display: grid;
  margin-top: 2rem;
  margin-bottom: 2rem;
  margin-right: 9.375rem;
  margin-left: 9.375rem;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 25rem;
  grid-column-gap: 4.375rem;
  grid-row-gap: 3rem;
  justify-items: center;
  align-items: center;
}

.blockinfo {
  position: relative;
  width: 25rem;
  height: 15.625rem;
  background: white;
  border-top: solid 0.4375rem rgb(227, 51, 51);
  box-shadow: 0 0 0.9375rem rgba(0, 0, 0, 0.6);
  border-left: solid 0.125rem rgba(0, 0, 0, 0.6);
  border-right: solid 0.125rem rgba(0, 0, 0, 0.6);
  border-bottom: solid 0.125rem rgba(0, 0, 0, 0.6);
  border-radius: 0.4375rem;
  align-content: center;
  z-index: 0;
}

.blockinfo {
  transition: transform 0.3s ease; /* Плавность анимации */
}

.blockinfo:hover {
  transform: scale(1.05); /* Увеличивает на 5% */
}

.text_product {
  position: relative;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  top: 5rem;
  z-index: 1;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.motherboardico {
  position: absolute;
  width: 15.625rem;
  height: 11rem;
  top: 0.625rem;
  left: 5rem;
  opacity: 80%;
}

.https_products {
  color: black;
}

.httpsweb {
  color: white;
  text-decoration: none;
  display: inline-block; 
}

.httpsweb:hover .footer_text {
  color: rgb(255, 255, 255);
  font-weight: bold;
}

.footer_text {
  color: inherit; 
  font-weight: 300; 
  font-size: 1.25rem; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  opacity: 0.8;
}

.footer_text.text_title {
  font-weight: 500;
  opacity: 1;
}

/* Дополнительные медиа-запросы для адаптивности */

/* Планшеты */
@media (max-width: 64rem) {
  .general_container {
    margin-bottom: 1rem;
  }
  
  .sredstva-container-parent,
  .products-container-parent,
  .baza-container-parent,
  .stm32-container-parent {
    margin-right: 2rem;
    margin-left: 2rem;
  }
  
  .sredstva-container-content,
  .products-container-content,
  .baza-container-content {
    grid-template-columns: repeat(3, minmax(12rem, 1fr));
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
  }
  
  .blocks_cool {
    margin-right: 2rem;
    margin-left: 2rem;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer_container {
    margin-left: 2rem;
    margin-right: 2rem;
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .info_text {
    margin-left: 2rem;
    font-size: 1.5rem;
  }
}

/* Мобильные устройства */
@media (max-width: 48rem) {
  .general_container {
    margin-bottom: 0.5rem;
  }
  
  .sredstva-container-parent,
  .products-container-parent,
  .baza-container-parent,
  .stm32-container-parent {
    margin-right: 1rem;
    margin-left: 1rem;
    margin-top: 3rem;
  }
  
  .sredstva-container-content,
  .products-container-content,
  .baza-container-content {
    grid-template-columns: 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 1.5rem;
    justify-content: center;
    max-width: 30rem;
    margin: 0 auto;
  }
  
  .stm32-container-content {
    grid-template-columns: 1fr;
    grid-row-gap: 3rem;
  }
  
  .blocks_cool {
    margin-right: 1rem;
    margin-left: 1rem;
    grid-template-columns: 1fr;
    grid-row-gap: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer_general_container {
    grid-template-columns: 1fr;
    grid-column-gap: 1rem;
  }
  
  .footer_container {
    margin-left: 1rem;
    margin-right: 1rem;
    grid-template-columns: 1fr;
  }
  
  .info_text {
    margin-left: 1rem;
    font-size: 1.25rem;
  }
  
  .Gtitle {
    font-size: 1.5rem;
  }
  
  .p-sredstva-subtitle,
  .p-products-subtitle,
  .p-baza-subtitle,
  .p-stm32-subtitle {
    font-size: 1.125rem;
  }
  
  #RS485UART-photo-container,
  #can-photo-container,
  #programmator-photo-container {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/10;
  }
}

/* Очень маленькие экраны */
@media (max-width: 30rem) {
  .general_container {
    margin-bottom: 0.25rem;
  }
  
  .sredstva-container-parent,
  .products-container-parent,
  .baza-container-parent,
  .stm32-container-parent {
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    margin-top: 2rem;
  }
  
  .sredstva-container-content,
  .products-container-content,
  .baza-container-content {
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    grid-row-gap: 1rem;
    justify-content: center;
    max-width: 20rem;
    margin: 0 auto;
  }
  
  .Gtitle {
    font-size: 1.25rem;
  }
  
  .p-sredstva-subtitle,
  .p-products-subtitle,
  .p-baza-subtitle,
  .p-stm32-subtitle {
    font-size: 1rem;
  }
  
  .info_text {
    font-size: 1rem;
  }
}

/* Стили для мобильной версии страниц продуктов */
.container2 {
  margin-right: 1rem;
  height: 100%;
  margin-top: 5.3125rem;
  margin-left: 1rem;
  color: white;
  display: none;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  grid-row-gap: 2rem;
}

.item2.item2_1 {
  justify-self: center;
}

.item2.item2_2 {
  margin-top: 0.625rem;
}

.item2.item2_3 {
  position: relative;
  margin-top: 1.5625rem;
  z-index: 0;
}

.title2 {
  color: #000000;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.photo-grid-container2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-column-gap: 1.5625rem;
  grid-row-gap: 0.9375rem;
}

.photo2.photo-first2 {
  align-self: start;
}

.photo2.photo-fourth2 {
  align-self: start;
}

.photo2.photo-second2 {
  align-self: start;
}

.photo2.photo-third2 {
  align-self: start;
}

.picture-one2 {
  object-fit: fill;
  width: 100%;
  max-height: 100%;
}

.picture-two2 {
  object-fit: fill;
  width: 100%;
  max-height: 100%;
}

.picture-three2 {
  object-fit: fill;
  width: 100%;
  max-height: 100%;
}

.picture-four2 {
  object-fit: fill;
  width: 100%;
  max-height: 100%;
}

.figc2 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  font-size: 0.875rem;
  color: #2828289f;
}

.h4_2 {
  font-size: 1.25rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-style: normal;
  font-weight: 500;
  color: #000;
}

.p1_2 {
  font-size: 1.125rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  font-style: italic;
}

.li2 {
  font-size: 1.125rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  font-style: italic;
}

.containerone2 {
  color: #000;
}

/* Медиа-запрос для переключения между desktop и mobile версиями */
@media (max-width: 973px) {
  .container1 {
    display: none;
  }
  
  .container2 {
    display: grid;
  }
}