/* Базовые стили */
@font-face {
  font-family: "Roboto";
  font-weight: 400;
  src: url("/fonts/Roboto-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  font-weight: 700;
  src: url("/fonts/Roboto-Bold.woff2") format("woff2");
  font-display: swap;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #21425a;
  line-height: 1.4;
  font-size: 13px;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 18px;
}

h2 {
  font-size: 16px;
}

h3 {
  font-size: 14px;
}

a {
  text-decoration: none;
  color: #21425a;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  outline: none;
}

.text-bold {
  font-weight: bold;
}

.text-underline {
  text-decoration: underline;
}

/* Основная структура */
.page-layout {
  max-width: 1000px;
  margin: 5px auto;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.content-list {
  line-height: 1.8;
  padding: 0;
  list-style-position: inside;
}

/* Шапка сайта */
.header {
  display: flex;
  padding: 30px 75px;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
}

.logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

.phones {
  display: flex;
  justify-content: space-around;
  gap: 30px;
}

.phones a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Главное меню */
.main-menu {
  width: 850px;
  margin: auto;
  border-bottom: 1px solid #dddddd;
  position: relative;
}

#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
}

.menu-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 10px 0;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.menu-link {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 11px 0;
  border-bottom: 2px solid transparent;
}

/* Подчеркивание при наведении */
.menu-link:hover {
  border-bottom-color: #21425a;
  text-decoration: none;
}

/* Активный пункт через класс body */
body.page-index .menu-link[href="/"],
body.page-about .menu-link[href="/about-company"],
body.page-sizes .menu-link[href="/seacontainer-sizes"],
body.page-price .menu-link[href="/price-list"],
body.page-contacts .menu-link[href="/contacts"],
body.page-sale .menu-link[href="/sale-container"] {
  border-bottom-color: #21425a;
}

/* Хлебные крошки */
.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li::after {
  content: "›";
  /* или ">" */
  margin: 0 0.6rem;
}

.breadcrumbs li:last-child::after {
  content: "";
}

/* Основное содержимое */
.main-content {
  max-width: 850px;
  margin: 30px auto 0 auto;
}

/* Вступление */
.topping {
  margin-bottom: 25px;
}

/* Категории */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.category-card {
  display: flex;
  gap: 25px;
  padding: 6px;
  background: #fafafa;
  border: 1px solid #edeaea;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  transition:
    background-color 0.1s,
    border-color 0.1s;
}

.category-card,
.category-card:hover,
.category-card:focus,
.category-card:visited {
  text-decoration: none;
}

.category-card:hover {
  background: #f5f5f5;
  border-color: #cccccc;
}

.category-card:focus-visible {
  outline: 2px solid #21425a;
  outline-offset: 3px;
}

.category-card:hover .category-name {
  text-decoration-color: #21425a;
}

.category-card:hover .category-image img {
  opacity: 0.9;
}

.category-image {
  flex-shrink: 0;
  width: 150px;
  height: 84px;
}

.category-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.1s;
}

.category-info {
  min-width: 0;
}

.category-name {
  margin: 0 0 10px;
  color: #21425a;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.3s ease;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-description {
  margin-top: 20px;
}

.category-card:focus-visible {
  outline: 2px solid #21425a;
  outline-offset: 3px;
}

/* Подвал сайта */
.footer {
  padding: 20px 0;
  text-align: center;
}

.footer-nav {
  margin-bottom: 15px;
}

.footer-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-list a {
  font-size: 12px;
  text-underline-offset: 0.5em;
}

.footer-bottom {
  margin-bottom: 10px;
}

.footer-bottom-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-list a {
  font-size: 13px;
}

/*Панель фильтров*/
.filter-panel {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-panel button {
  padding: 8px 14px;
  border: 1px solid #cccccc;
  border-radius: 20px;
  cursor: pointer;
  background: #f8f8f8;
}

.filter-panel button:hover {
  cursor: pointer;
  background: #e9ecec;
}

.filter-panel button.active {
  background: #21425a;
  color: #fff;
  border-color: #21425a;
}

.hidden {
  display: none !important;
}

/* Сетка товаров */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.product-card {
  display: flex;
  gap: 20px;
  padding: 6px;
  background: #fafafa;
  border: 1px solid #edeaea;
  border-radius: 8px;
  color: inherit;
  transition:
    background-color 0.1s,
    border-color 0.1s;
}

.product-card,
.product-card:hover,
.product-card:focus,
.product-card:visited {
  text-decoration: none;
}

.product-card:hover {
  background: #f5f5f5;
  border-color: #cccccc;
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 2px solid #21425a;
  outline-offset: 3px;
}

.product-card:hover .product-name {
  text-decoration-color: #21425a;
}

.product-card:hover .product-image img {
  opacity: 0.9;
}

.product-image {
  width: 156px;
  aspect-ratio: 156 / 117;

  overflow: hidden;
  flex-shrink: 0;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.1s;
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}

.product-name {
  margin: 0;
  font-size: 14px;
  color: #21425a;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;

  transition: text-decoration-color 0.3s ease;
}

.product-price {
  font-size: 15px;
  font-weight: bold;
}

.product-meta {
  margin: 0;
  padding: 0;
  font-size: 13px;
  list-style: disc;
  list-style-position: inside;
}

.btn {
  background: #21425a;
  color: #fff;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #132635;
  text-decoration: none;
}

.btn-small {
  font-size: 12px;
  padding: 8px 15px;
}

.btn-middle {
  font-size: 13px;
  padding: 13px 30px;
}

.btn-large {
  font-size: 12px;
  padding: 10px 30px;
}

.divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 15px 0;
}

/* Рейтинг */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.star-rating {
  position: relative;
  font-size: 16px;
  line-height: 1;
}

.star-bg {
  color: #ddd;
}

.star-fill {
  color: #000;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}

/* Сетка продукта */
.product-page {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  grid-template-rows: auto auto;
  gap: 15px;
  margin-top: 20px;
}

.product-properties-block {
  grid-column: 3;
  grid-row: 1 / 2;
}

.product-description {
  grid-column: 1 / -1;
  grid-row: 2;
}

.product-properties {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-properties span {
  font-weight: 700;
}

/* Галерея */
.product-gallery {
  display: grid;
  grid-template-columns: 120px 540px;
  gap: 36px;
}

.product-main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.product-main {
  width: 100%;
  max-height: 405px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 8px;
  margin: 0 auto;
  cursor: pointer;
}

.product-main img.main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.product-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 405px;
  overflow-y: auto;

  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

.product-thumbs::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.product-thumbs img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border-radius: 8px;
  transition: opacity 0.3s;
}

.product-thumbs img.active {
  opacity: 1;
}

.product-cost {
  font-size: 16px;
  font-weight: bold;
  height: 22px;
  line-height: 1;
}

.product-specs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-specs li {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: baseline;
  padding: 10px 0;
  width: 120px;
}

.product-specs li span {
  font-size: 10px;
  margin-bottom: 2px;
  padding-right: 4px;
  text-transform: uppercase;
}

/* Контейнер для точек */
.gallery-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  width: 100%;
}

/* Кнопки-точки */
.gallery-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* Активная */
.gallery-dots button.active {
  background: #21425a;
}

/* Фокус клавиатуры */
.gallery-dots button:focus-visible {
  outline: 2px solid #21425a;
  outline-offset: 3px;
}

/* Подложка popup */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Основной блок popup */
.popup {
  background: #fff;
  padding: 22px;
  border-radius: 20px;
  width: 320px;
  max-width: 90%;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Заголовок */
.popup h2 {
  margin: 0 0 15px;
  color: #21425a;
  font-size: 18px;
  text-align: center;
}

/* Лейблы */
.popup label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #21425a;
}

/* Поля input */
.popup input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 24px;
}

/* Кнопка отправки формы */
.popup form button[type="submit"] {
  margin-top: 15px;
  padding: 12px 22px;
  background: #21425a;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 13px;
  cursor: pointer;
}

.popup form button[type="submit"]:hover {
  background: #152837;
}

/* Кнопка закрытия */
.close-btn {
  position: absolute;
  right: 14px;
  top: 10px;
  cursor: pointer;
  font-size: 26px;
  color: #777;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.popup label.agree-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #21425a;
}

/* фикс размера чекбокса */
.popup label.agree-line input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* текст */
.popup label.agree-line span {
  display: inline;
  line-height: 1.4;
}

.agree-line a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.agree-line a:hover {
  text-decoration: none;
  text-underline-offset: 0.2em;
}

/* Страницы */
.link-to {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.link-to:hover {
  text-decoration: none;
}

.add-menu {
  margin-bottom: 28px;
}

.add-menu-list {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.3px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* при наведении */
.add-menu-list a:hover {
  text-decoration: underline;
  text-underline-offset: 0.5em;
}

/* активная страница */
body.page-sea .add-menu-list a[href="/sea-containers"],
body.page-constr .add-menu-list a[href="/container-construction"],
body.page-specs .add-menu-list a[href="/container-specifications"],
body.page-ident .add-menu-list a[href="/identification"],
body.page-iso .add-menu-list a[href="/iso-codes"],
body.page-csc .add-menu-list a[href="/csc"],
body.page-dict .add-menu-list a[href="/container-dictionary"],
body.page-purch .add-menu-list a[href="/container-purchase"],
body.page-rent .add-menu-list a[href="/rental-container"],
body.page-manip .add-menu-list a[href="/rent-manipulator"],
body.page-choice .add-menu-list a[href="/seacontainer-choice"] {
  text-decoration: underline;
  text-underline-offset: 0.5em;
}

/* Изображения страницы*/
.page-image {
  width: fit-content;
  text-align: center;
  margin: 25px auto;
}

.page-image img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Размеры контейнеров */
.container-section {
  margin: 16px 0;
}

.table-title {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
  margin: 0 0 4px 0;
  padding: 4px 0;
  font-size: 18px;
  text-align: left;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.table-wrapper::-webkit-scrollbar {
  display: none;
}

.container-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: center;
}

.container-table th,
.container-table td {
  border: 1px solid #ddd;
  padding: 5px;
}

.container-table th {
  background-color: #fafafa;
  font-weight: 300;
}

.container-table tr:nth-child(even) {
  background-color: #fafafa;
}

/* Прайс-лист */
.price-header {
  text-align: center;
}

.price-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  text-align: left;
}

.price-table th,
.price-table td {
  padding: 0.3rem;
  border-bottom: 1px solid #ddd;
}

/* Первая колонка — товар */
.price-table th:nth-child(1),
.price-table td:nth-child(1) {
  width: 60%;
  padding-left: 4%;
  font-weight: 400;
  white-space: normal;
}

/* Вторая колонка — цена */
.price-table th:nth-child(2),
.price-table td:nth-child(2) {
  width: 40%;
  font-weight: 400;
  text-align: right;
  padding-right: 4%;
}

/* --- Категории и подкатегории --- */
.price-table .category-row th {
  font-size: 12px;
  background: #f6f6f6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.price-table .subcategory-row th {
  background: #fafafa;
  font-weight: 500;
  padding: 0.4rem;
  font-style: italic;
  color: #444;
  border-bottom: 1px solid #ddd;
}

/* --- Стили сортировки --- */
.price-table th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  /* не переносить текст */
}

/* Контейнер стрелок — в ряд */
.price-table th .sort-icons {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  font-size: 10px;
}

.price-table th .sort-icons span {
  color: #bbb;
  /* цвет по умолчанию */
  margin-left: 2px;
}

/* Подсветка активной стрелки */
.price-table th.sortable.asc .sort-icons .asc {
  color: #222;
}

.price-table th.sortable.desc .sort-icons .desc {
  color: #222;
}

/* Подсказка при наведении */
.price-table th.sortable:hover .sort-icons span {
  color: #555;
}

/* Оптимизация: убираем лишние пробелы в ячейках */
.price-table td {
  white-space: nowrap;
}

/* Категории */
.category-row th {
  background-color: #f0f0f0;
  font-weight: bold;
  color: #21425a;
}

/* Подкатегории */
.subcategory-row th {
  background-color: #fafafa;
  color: #21425a;
}

/* Статус товара */
.in-stock {
  color: #21425a;
  font-weight: bold;
}

.out-of-stock {
  color: #21425a;
}

/* Контакты */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(10px, 6vw, 70px);
  margin: 30px 0;
}

.contact-card {
  margin: 0;
  list-style: none;
  line-height: 2;
  padding-left: 0px;
}

.contact-map iframe {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 8px;
}

/* Продать контейнер */
.sale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.sale-card {
  margin: 10px 0;
  padding-left: 0;
  list-style: none;
  line-height: 2;
}

/* Конструкция контейнеров */
.thumb-gallery {
  float: left;
  width: 220px;
  margin: 7px 30px 0px 0px;
}

.thumb-gallery figure {
  margin: 0 0 30px 0;
  text-align: center;
}

.thumb-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  cursor: pointer;
}

/* Исо коды */
.grid-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px;
}

.size-chart {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.size-chart th {
  background-color: #f5f5f5;
  color: #333;
  text-align: left;
  padding: 10px;
  border: 1px solid #ddd;
  font-weight: 600;
}

.size-chart td {
  padding: 5px;
  border: 1px solid #ddd;
  color: #444;
}

.size-chart tr:nth-child(even) {
  background-color: #fafafa;
}

/* Кбк */
.float-left-img {
  float: left;
  margin: 10px 40px 10px 0;
}

/* Словарь */
.dictionary ul {
  padding: 0px;
  list-style: none;
}

/* Новости */
.news-grid {
  width: 100%;
  max-width: 700px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

.news-item img {
  width: 156px;
  height: 117px;
  border-radius: 6px;
}

.news-date {
  margin-bottom: 10px;
}

/* Вопросы */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0 20px;
}

.specs-table th {
  background-color: #f0f0f0;
  text-align: left;
  padding: 0.4rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 12px;
  border-bottom: 1px solid #ddd;
}

.specs-table td {
  padding: 0.4rem;
  border-bottom: 1px solid #dfd9d9;
  vertical-align: top;
}

.specs-table tr:nth-child(even) {
  background-color: #fafafa;
}

.specs-table th:first-child,
.specs-table th:nth-child(2),
.specs-table th:nth-child(3),
.specs-table th:nth-child(4) {
  border-top: 1px solid #dfd9d9;
}

/* Ссылки */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.sitemap-list {
  margin: 0;
  list-style: none;
  padding: 20px;
  line-height: 2;
}

/* Адаптив */
@media (max-width: 1024px) {
  .product-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 15px;
  }

  .product-gallery {
    display: block;
  }

  .product-thumbs {
    display: none;
  }

  .product-main {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .product-main img.main-img {
    width: 100%;
    height: auto;
  }

  .product-properties-block {
    grid-column: 1;
    grid-row: 2;
  }

  .product-description {
    grid-column: 1;
    grid-row: 3;
  }

  .product-block h2 {
    margin-top: 0;
  }
  .gallery-dots {
    display: flex;
  }
}

@media only screen and (max-width: 768px) {
  body {
    background-color: #ffffff;
  }

  .page-layout {
    width: 95%;
    border-radius: 0;
  }

  .header {
    padding: 20px 15px;
    flex-direction: column;
    gap: 15px;
  }

  .phones {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
  }

  .phones a {
    font-size: 14px;
  }

  .main-menu {
    width: 100%;
    padding: 0 5px;
  }

  .hamburger {
    display: block;
    color: #21425a;
  }

  .menu-list {
    flex-direction: column;
    gap: 14px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.3s ease,
      opacity 0.3s ease;
  }

  #menu-toggle:checked + .hamburger + .menu-list {
    max-height: 500px;
    opacity: 1;
  }

  .menu-link {
    padding: 7px 0;
    border-bottom: none;
  }

  .main-content {
    padding: 0 5px;
  }

  .menu-link {
    padding: 7px 0;
    font-size: 13px;
  }

  .breadcrumbs li {
    line-height: 1.8;
  }

  .footer-list a {
    font-size: 13px;
    padding: 7px 0;
  }

  .content-container {
    width: auto;
    padding: 10px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .footer-list {
    flex-direction: column;
    gap: 14px;
    font-size: 12px;
  }

  .footer-bottom-list {
    flex-direction: column;
    gap: 10px;
    height: auto;
    padding: 10px 0;
    font-size: 13px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Страницы */
  .thumb-gallery {
    float: none;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .thumb-gallery figure {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 15px auto;
  }

  .float-left-img {
    float: none;
    margin: 20px 0;
  }
}

@media only screen and (max-width: 480px) {
  .header {
    padding: 10px 5px;
  }

  .phones {
    flex-direction: column;
    gap: 10px;
  }

  .footer {
    padding: 5px;
    text-align: left;
  }

  .product-name {
    font-size: 13px;
  }

  .product-price {
    font-size: 14px;
  }

  .category-description {
    border-bottom: 1px solid #dddddd;
  }

  .product-description {
    border-bottom: 1px solid #dddddd;
  }

  .product-properties {
    border: 1px solid #edeaea;
    border-radius: 8px;
    background: #fafafa;
    padding: 15px 20px 5px 20px;
  }
}
