/** @format */

@font-face {
  font-family: "Lack";
  src: url("./fonts/Lack-Regular.woff2") format("woff2"),
    url("./fonts/Lack-Regular.woff") format("woff"),
    url("./fonts/Lack-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "SF Pro Text";
  src: url("/fonts/SFProText-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
:root {
  --bg: #ffffff;
  --black-text: #1e1e1e;
  --grey-text: #5d6672;
  --light-grey: #b0b0ba;
  --card-grey: #f6f6f8;
  --primary: #0e47b7;
  --primary-hover: #2a67df;
  --filter-focus: #2763da;
  --filter-hover: #e9eef8;
  --line: #e5e7eb;
  --card-grey-hover: #ebebf1;
  --radius: 14px;
  --max: 90rem;
  --font-base: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Inter, "Noto Sans", sans-serif;
  --font-logo: "Lack", sans-serif;
  --pill-bg: #f6f6f8;
  --pill-bg-hover: #eaeaef;
  --bg-footer: #f1f3f6;
  --shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.08);
  --radio-size: 18px;
  --radio-gap: 10px;
  --radio-unchecked: url("../img/radio_unchecked.svg");
  --radio-checked: url("../img/radio_checked.svg");
}

html,
body {
  margin: 0;
  padding: 0;
  /* overflow-x: hidden; */
  max-width: 100vw;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
  font-family: var(--font-base);
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
}

.mobile-title {
  display: none;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}
.header {
  box-shadow: 0px 25px 20px -20px rgba(0, 0, 0, 0.05);
  background: #fff;
  margin-bottom: 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
}

main {
  padding-top: 160px;
}
.row {
  display: flex;
  padding: 22px 35px;
  max-width: 90rem;
  margin: 0 auto;
}

/* логотип */
.logo-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
  flex: 0 0 auto;
  min-width: 16.9375rem;
  margin-right: 33px;
}
.logo-title {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 41.1504px;
  line-height: 91%;
}

.logo {
  position: relative;
  top: 4px;
}

.clouds {
  align-self: end;
  animation: moveClouds 7s linear infinite;
}
@keyframes moveClouds {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-73px);
  }
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}

/* поиск */
.search {
  position: relative;
  flex: 1 1 auto;
  min-width: 484px;
  max-width: 661px;
}
.search input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding-left: 16px;
  outline: none;
  transition: all 0.3s ease;
  background-color: #fff;
}

.search input::placeholder {
  color: #a1a1aa;
  font-size: 14px;
}

.search input:focus {
  border: 1px solid var(--grey-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 130%; /* 18.2px */
  letter-spacing: -0.42px;
  color: var(--black-text);
}

.search input:focus::placeholder {
  color: transparent;
}

.search button {
  position: absolute;
  right: 19px;
  top: 14px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #fff;
}
.search svg {
  width: 18px;
  height: 18px;
}

.cluster {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 30px;
}

.cluster * {
  padding: 0;
}
.loc {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.loc span {
  font-size: 16px;
  font-weight: 600;
}
.loc svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.phone {
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.phone b {
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.5s ease;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* input[type="search"]::-webkit-search-cancel-b {
  -webkit-appearance: none;
  appearance: none;
} */
.mobile-search {
  display: none;
}
.icons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: auto;
}
.nav-wrapper {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-wrapper * {
  /* border: 1px solid green; */
}
.nav-container {
  flex-basis: 100%;
  order: 2;
  margin-left: 0;
  padding-left: 0;
  display: flex;
  justify-content: space-between;
}
.nav {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.nav a {
  font-weight: 600;
  color: #1f2937;
  font-size: 15px;
  transition: color 0.3s ease;
}
/* .nav a:hover {
  color: var(--primary);
} */

/* dropdown */
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  flex-direction: column;
  z-index: 3;
}
.dropdown.open .dropdown-menu {
  display: flex;
}
.dropdown-menu button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 2px;
}
.dropdown-menu button:last-child {
  margin-bottom: 0;
}
/* .dropdown-menu button:hover {
  background: #f8fafc;
} */

.contact {
  position: relative;
  /* margin-left: 48px; */
}
.contact-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.contact-card {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 389px;
  max-width: 90vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0px 12px 0px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 23px 20px;
  /* состояние "закрыт" */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);

  /* анимируем только нужное */
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  will-change: opacity, transform, visibility;
}
.contact-card::before {
  /* стрелочка */
  content: "";
  position: absolute;
  top: -8px;
  right: 125px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 0.3px solid rgba(0, 0, 0, 0.04);
  border-top: 0.3px solid rgba(0, 0, 0, 0.04);
  transform: rotate(45deg);
}
.contact-card.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
.contact-col {
  display: grid;
  gap: 10px;
}
.contact-link {
  color: #1f2937;
  font-weight: 600;
}
.contact-link.primary {
  color: var(--primary);
}
.messengers {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.circle svg {
  width: 20px;
  height: 20px;
}
.addr,
.hours {
  margin: 0;
  color: #111827;
}

.logo-wrapper,
.cluster,
.icons {
  flex: 0 0 auto;
  min-width: 0;
}

#cityLabel {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.5s ease;
}

/* .loc:hover #cityLabel {
  text-decoration: underline;
  text-underline-offset: 2px;
} */

/* .phone:hover b {
  text-decoration: underline;
  text-underline-offset: 2px;
} */

.icon-btn img {
  transition: filter 0.5s ease;
}

/* .icon-btn:hover img {
  filter: invert(24%) sepia(97%) saturate(2487%) hue-rotate(210deg)
    brightness(90%) contrast(70%);
} */

/* card section */
.main {
  display: flex;
  padding-left: 35px;
  padding-right: 0px;
}

.cards {
  display: flex;
  column-gap: 15px;
  row-gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 2;
}

.product-card {
  max-width: 258px;
  display: flex;
  flex-direction: column;
  flex: 1 1 258px;
  gap: 15px;
  padding: 30px 20px;
  border-radius: 22px;
  background: var(--card-grey);
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-card__media {
  width: 202px;
  height: 202px;
  position: relative;
  /* display: grid
; */
  /* align-items: center; */
  /* place-items: center; */
  aspect-ratio: 258 / 230;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.card-like {
  position: absolute;
  top: 0;
  right: 1px;
  width: 24px;
  height: 24px;
  display: inline-block;
  cursor: pointer;
  background: #1e1e1e;
  -webkit-mask: url("../img/like.svg") no-repeat center/contain;
  mask: url("../img/like.svg") no-repeat center/contain;
  transition: background-color 0.3s ease;
  z-index: 1;
}
/* .card-like:hover {
  background: var(--primary-hover);
} */
.card-like.active {
  background: var(--primary);
  -webkit-mask-image: url("../img/like-filled.svg");
  mask-image: url("../img/like-filled.svg");
}

.card-img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
/* GSM БЕЙДЖ */
.badge-gsm {
  position: absolute;
  right: 0px;
  bottom: 13px;
}
/* ГОСТ БЕЙДЖ */
.badge-gost {
  position: absolute;
  left: 9px;
  top: 46px;
}

.product-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -1%;
  text-align: left;
  color: var(--black-text);
  overflow: hidden;
}

.product-card__specs {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.spec {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  color: var(--grey-text);
}
.spec b {
  color: var(--black-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
}

.product-card__price {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap:wrap;
}
.discount {
  color: var(--black-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 15px;
  padding: 4px 8px;
  border-radius: 25px;
  background: rgba(255, 227, 79, 1);
}
.price {
  color: var(--black-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 23px;
  letter-spacing: -0.01em;
}
.old-price {
  color: var(--grey-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.01em;
}
.btn {
  width: 218px;
  height: 40.48px;
  border: none;
  border-radius: 9px;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  transition: all 0.3s ease;
}

/* .btn:hover {
  background: var(--primary-hover);
} */

/* ASIDE */

.sidebar {
  flex: 0 0 271px;
}

.content {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  margin-left: 30px;
  flex: 1 1 auto; /* ← добавь */
  min-width: 0;
}

.septic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.septic-item {
  display: flex;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

/* .septic-item:hover {
  background: var(--card-grey);
} */

.septic-item:last-child {
  border-bottom: none;
}

.septic-item img {
  margin-right: 0px;
}

.septic-item span {
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.03em;
  text-align: left;
}

.septic-item .price {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-left: auto;
  color: var(--light-grey);
}
.catalog__more {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 32px 0px;
}

.button-more {
  width: 190px;
  height: 40px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  border-radius: 9px;
  background: var(--pill-bg);
  transition: all 0.3s ease;
  margin: 0 auto;
}

/* .button-more:hover {
  background: var(--pill-bg-hover);
} */

/* фильтр */
.filters {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  white-space: nowrap;
  user-select: none;
  scrollbar-width: none;
  overflow-x: auto;
  padding-bottom: 280px; /* == .menu.open max-height + отступ */
  margin-bottom: -280px; /* чтобы макет ниже не сдвигался */
}
.filter-span {
  display: flex;
  gap: 15px;
}
.filter-span__price {
  color: var(--light-grey);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 108%; /* 14.04px */
  letter-spacing: -0.26px;
}
/* .filters::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 60%;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1)
  );
} */

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  position: relative;
  display: inline-block;
}
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 40px 13px 20px;
  height: 45px;
  border: 0;
  border-radius: 9999px;
  background: var(--pill-bg);
  color: #111827;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
}

/* .pill:hover {
  background: var(--card-grey-hover);
} */

.pill.has-value {
  background: var(--filter-focus);
  color: #fff;
}

.pill .icon {
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 10px;
  pointer-events: none;
  background: center / contain no-repeat url(../img/filter-arrow.svg);
}

.pill.has-value .icon {
  display: none;
}
.clear {
  display: none;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 11.4px;
  height: 11.4px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: center/12px 12px no-repeat url("../img/krestik.svg");
}
.pill.has-value + .clear {
  display: block;
}

.menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: max-content;
  min-width: 100%;
  max-width: none;
  background: #fff;
  border-radius: 20px;
  padding: 10px 0;
  box-shadow: var(--shadow);
  z-index: 50;
  opacity: 0;
  transform: translateY(-8px) scaleY(0.98);
  transform-origin: top;
  max-height: 271px;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu.open {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  max-height: 271px;
  pointer-events: auto;
  visibility: visible;
  transition: all 0.3s ease;
  overflow-y: auto;
  z-index: 50;
}

.menu button {
  display: flex;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  white-space: nowrap;
  cursor: pointer;
  padding: 10px 27px 10px 27px;
  font-size: 15px;
  transition: all 0.3s ease;
}
/* .menu button:hover,
.menu button:focus {
  background: #f3f4f6;
  outline: none;
} */

/* .menu button:hover {
  background: var(--filter-hover);
} */
.menu button[aria-selected="true"] {
  font-weight: 700;
  background: #f3f4f6;
}

/* кастомные чекбоксы     */

.checkbox {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #b0b0ba;
  border-radius: 6px;
  margin-right: 10px;
  flex-shrink: 0;
  background: #fff;
  transition: all 0.2s ease;
}

.checkbox .mark {
  width: 12px;
  height: 12px;
  background: no-repeat center/contain;
  opacity: 0;
  transition: opacity 0.2s ease;
}

button[aria-selected="true"] .checkbox {
  border-color: #0e47b7;
  background-color: #fff;
}

button[aria-selected="true"] .checkbox .mark {
  opacity: 1;
  background-image: url("../img/check.svg");
}

/* Сброс фильтров */
.reset-all {
  order: 999;

  overflow: hidden;
  max-width: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  transition: max-width 0.25s ease, padding 0.25s ease, opacity 0.2s ease;
}
.reset-all::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: center/12px 12px no-repeat url("../img/img-close-black.svg");
}

.filters.has-selection .reset-all {
  order: -1;
  min-width: 164px;
  padding: 13px 40px 13px 20px;
  opacity: 1;
  pointer-events: auto;
}

/*  Панель сортировки */
.sortbar {
  display: none;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 10px;
}
.filters.has-selection + .sortbar {
  display: flex;
}

.sort-link {
  background: transparent;
  border: 0;
  font-size: 15px;
  color: var(--light-grey);
  cursor: pointer;
  transition: all 0.3s ease;
}
/* .sort-link:hover,
.sort-link:focus {
  color: var(--black-text);
} */

.scroll-filters {
  position: relative;
  width: 100%;
  overflow: visible;
}
.scroll-filters::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
}

/* Выбор города */

.city-select {
  position: relative;
  display: inline-block;
}
.city-confirm {
  position: absolute;
  top: calc(100% + 14px);
  left: -71px;
  min-width: 320px;
  padding: 20px 26px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0px 12px 0px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: 0.25s;
  z-index: 10;
}

.city-confirm.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.city-confirm__arrow {
  content: "";
  position: absolute;
  top: -8px;
  left: 69px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 0.3px solid rgba(0, 0, 0, 0.04);
  border-top: 0.3px solid rgba(0, 0, 0, 0.04);
  transform: rotate(45deg);
}
.city-confirm__actions {
  display: inline-flex;
  gap: 15px;
  margin-top: 12px;
  justify-content: flex-start;
  align-items: center;
  width: auto;
}

/* Модал */
.city-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}
.city-modal__title {
  font-size: 25px;
  font-weight: 700;
  margin: 0;
  margin-bottom: 30px;
}
.city-modal.open {
  display: block;
}
.city-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.city-modal__dialog {
  position: relative;
  margin: 40px auto;
  max-width: 90%;
  background: #fff;
  border-radius: 16px;
  padding: 40px 50px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  animation: cityModalIn 0.25s ease;
}
@keyframes cityModalIn {
  from {
    transform: translateY(8px);
    opacity: 0.9;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.city-modal__close {
  position: absolute;
  top: 30px;
  right: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  pointer-events: auto;
}

.city-list {
  height: 70vh;
  overflow: hidden;
  column-width: 232px;
  column-gap: 28px;
  column-fill: balance;
}

.city-group {
  display: block;
  margin: 0;
  margin-bottom: 5px;
}

.city-letter {
  font-weight: 700;
  color: #2f6ce5;
  margin: 0;
  margin-bottom: 10px;
}

.city-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.city-column {
  margin-bottom: 10px;
}

.city-group--pinned,
.city-group--regions {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.city-option input[type="radio"] {
  margin: 0;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.city-confirm__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black-text);
}

.btn-no {
  background: rgba(245, 245, 245, 1);
  color: rgba(30, 30, 30, 1);
}

.btn-yes {
  background: var(--primary);
  color: #fff;
}

.btn-confirm {
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  padding: 12px 25px;
}

.city-confirm__actions button {
  flex: 0 0 auto;
}

.city-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.city-option span {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
}

.city-option span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url("../img/radio_unchecked.svg") no-repeat center/contain;
}

.city-option input[type="radio"]:checked + span::before {
  background-image: url("../img/radio_checked.svg");
}

/* footer */
.footer * {
  margin: 0;
  padding: 0;
  /* border: 1px solid red; */
}

.footer {
  background: var(--bg-footer);
  margin-top: 290px;
}
.footer-wrapper {
  max-width: 90rem;
  margin: 0 auto;
  padding: 49px 49px;
  padding-right: 0;
}

.footer__container {
  display: flex;
  /* justify-content: space-between; */
  align-items: flex-start;
}
/* dsdsd */
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 19.2px;
}

.footer__column--nav .footer__list {
  margin-left: 200px;
  margin-right: 97px;
  list-style: none;
}

.footer__item {
  transition: all 0.3s ease;
}

/* .footer__column--nav .footer__list .footer__item:hover {
  color: var(--primary-hover);
} */

.footer__subtitle {
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
}

.footer__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}
.footer__link {
  letter-spacing: -0.4px;
}
.footer__column {
  display: flex;
  flex-direction: column;
}
.footer__column--features .footer__list {
  line-height: 19.3px;
}
.footer__column--features .footer__list li::marker {
  font-size: 0.6em;
}

.footer__email {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 18px;
}

.footer__phone {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
}

.footer__callback {
  width: 194px;
  margin-top: 15px;
  margin-bottom: 30px;
}

.footer__phone:not(:nth-child(2)) {
  display: block;
  margin-top: 10px;
}

.footer__address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.footer__column--contacts .footer__subtitle {
  margin-bottom: 15px;
}

.calc-button {
  width: 225px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  gap: 10px;
  /* padding: 5px 17px 8px 15px; */
  border: 1px solid var(--primary);
  border-radius: 9px;
  letter-spacing: -0.2px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calc-button img {
  transition: filter 0.3s ease;
}

/* .calc-button:hover {
  background-color: var(--primary);
  color: white;
}

.calc-button:hover img {
  filter: brightness(0) invert(1);
} */

.footer__button {
  margin-top: 8px;
  font-weight: 600;
}

.footer__column--address {
  margin-right: 171px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: -15px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
}
.footer__copyright {
  margin-left: -13px;
}

.footer__policy {
  margin-right: -288px;
}

.footer__credits {
  margin-right: 131px;
}

.price-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Адаптив футера: от 1460px и ниже до 768px ---- */
@media (max-width: 1460px) and (min-width: 769px) {
  .footer {
    margin-top: 120px; /* убрали большой отступ сверху */
  }

  .footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 40px;
  }

  .footer__container {
    flex-wrap: nowrap;
    gap: 40px;
    justify-content: flex-start;
  }

  .footer__column--nav .footer__list {
    margin-left: 0;
    margin-right: 0;
  }

  .footer__column {
    flex: 1 1 45%;
    min-width: 200px;
  }
  .footer__column--address {
    margin-right: 0;
  }

  .footer__list {
    gap: 10px;
  }

  .footer__bottom {
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 10px;
    justify-content: center;
    margin-top: 20px;
    justify-content: space-evenly;
  }
  .footer__bottom * {
    margin: 0;
  }

  .footer__bottom {
    display: flex;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #bdbdbd;
    font-size: 13px;
  }
}

.mobile-icons {
  display: none;
}
* {
  /* outline: 1px solid red; */
}
/* @media (max-width: 1385px) {
  .footer__container {
    flex-wrap: wrap;
    gap: 40px;
    justify-content: flex-start;
  }
} */

@media (max-width: 1440px) and (min-width: 1200px) {
  .cards {
    display: flex;
    column-gap: 9px;
    row-gap: 6px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 2;
  }

  .product-card {
    max-width: 258px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 15px;
    padding: 30px 20px;
    border-radius: 22px;
    background: var(--card-grey);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .product-card {
    flex: 1 1 calc(25% - 9px); /* 4 карточки в ряд */
    max-width: calc(25% - 9px);
    box-sizing: border-box;
  }

  /* .product-card:hover {
  background: #fbfbfb;
} */

  .product-card__media {
    width: 100%;
    height: 230;
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 258 / 230;
    background: transparent;
    max-width: none;
  }

  .card-like {
    position: absolute;
    right: 1px;
    width: 24px;
    height: 24px;
    display: inline-block;
    cursor: pointer;
    background: #1e1e1e;
    -webkit-mask: url("../img/like.svg") no-repeat center/contain;
    mask: url("../img/like.svg") no-repeat center/contain;
    transition: background-color 0.3s ease;
  }
  /* .card-like:hover {
  background: var(--primary-hover);
} */
  .card-like.active {
    background: var(--primary);
    -webkit-mask-image: url("../img/like-filled.svg");
    mask-image: url("../img/like-filled.svg");
  }

  .card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
  }
  /* GSM БЕЙДЖ */
  .badge-gsm {
    position: absolute;
    right: 0px;
    bottom: 13px;
  }
  /* ГОСТ БЕЙДЖ */
  .badge-gost {
    position: absolute;
    left: 9px;
    top: 46px;
  }

  .product-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -1%;
    text-align: left;
    color: var(--black-text);
    overflow: hidden;
  }

  .product-card__specs {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .spec {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: var(--grey-text);
  }
  .spec b {
    color: var(--black-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 16px;
  }

  .product-card__price {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
	flex-wrap:wrap;
  }
  .discount {
    color: var(--black-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 15px;
    padding: 4px 8px;
    border-radius: 25px;
    background: rgba(255, 227, 79, 1);
  }
  .price {
    color: var(--black-text);
    font-size: 19px;
    font-weight: 700;
    line-height: 23px;
    letter-spacing: -0.01em;
  }
  .old-price {
    color: var(--grey-text);
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.01em;
  }
  .card-price__btn {
    width: 100%;
  }
  .search {
    min-width: 40%;
    max-width: unset;
  }
  .content {
    padding-right: 33px;
	padding-right: 15px;
  }
}

@media (max-width: 1440px) {
  .product-card {
    padding: 20px 15px;
  }
  /* .price-row { */
    /* flex-direction: column; */
    /* align-items: flex-start; */
  /* } */
}

@media (max-width: 1300px) {
  .search {
    min-width: 10%;
    max-width: unset;
  }
  .cluster,
  .icons,
  .nav-container {
    display: none;
  }
  .row {
    align-items: center;
    padding: 22px 34px;
    gap: 11px;
  }
  .top-row {
    margin: 0;
  }
  .mobile-icons {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .icon-btn {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .search-toggle {
    display: none;
  }

  .icon-btn img {
    width: 22px;
    height: 22px;
  }
  .logo-wrapper {
    margin-right: 22px;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .main {
    display: flex;
    padding-left: 35px;
    padding-right: 33px;
  }
  .price-row {
    /* flex-direction: unset; */
  }
  .card-price__btn {
    width: 100%;
  }
  .cards {
    display: flex;
    flex-wrap: wrap;
    column-gap: 15px;
    row-gap: 6px;
    justify-content: flex-start;
  }
  .product-card {
    flex: 1 1 calc(33.333% - 10px); /* 3 карточки в ряд */
    max-width: calc(33.333% - 10px);
    box-sizing: border-box;
  }

  .product-card__media {
    width: 100%;
    height: 202px;
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 258 / 230;
    background: transparent;
    max-width: none;
  }

  .card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .sidebar {
    display: none;
  }
  .content {
    margin-left: 0;
  }
  .product-card {
    flex: 1 1 258px;
  }
  .price-row {
    flex-direction: unset;
  }
  .title-logo {
    width: 160px;
    height: auto;
  }
  .logo {
    width: 58px;
    height: auto;
  }
  .logo-wrapper {
    margin-right: 0;
  }
  .row {
    gap: 20px;
  }
  .footer__container {
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .price-row {
    flex-direction: column;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .mobile-title {
    display: block;
    margin: 0;
    /* padding-left: 17px; */
    padding-top: 90px;
    font-size: 21px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%; /* 27.3px */
    letter-spacing: -0.63px;
  }
  .search-toggle {
    display: block;
  }
  body {
    font-size: 12px;
  }

  .main {
    display: flex;
    padding-left: 0px;
    padding-right: 0px;
  }
  main {
    padding-top: 26px;
  }

  header {
    width: 100%;
  }

  .sidebar {
    display: none;
  }

  .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    width: 100%;
  }

  .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .title-logo {
    max-width: 126px;
    height: auto;
  }

  .logo {
    width: 45px;
    height: 45px;
    top: 0;
  }

  .nav-wrapper {
    display: none;
  }
  .mobile-search {
    display: block;
    position: fixed;
    top: 67px; /* совпадает с высотой .header */
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 9; /* чуть ниже шапки */
  }

  .mobile-search.active {
    transform: translateY(0);
  }

  .mobile-search__input {
    width: 90%;
  }

  .search {
    position: relative;
    flex: 1 1 auto;
    min-width: 100%;
    max-width: 100%;
  }

  /* filter */
  .filters.has-selection + .sortbar {
    display: none;
  }
  .scroll-filters {
    /* padding-left: 16px; */
  }
  .price-row {
    flex-direction: unset;
  }
  /* иконки */
  .mobile-icons {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .icon-btn {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .icon-btn img {
    width: 22px;
    height: 22px;
  }

  .footer-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    padding-bottom: 36px;
    padding-top: 36px;
  }
  /* cards */
  .cards {
    justify-content: center;
    gap: 10px;
    padding-top: 23px;
  }
  .content {
    margin-left: 0;
    row-gap: 0;
  }
  .catalog__more {
    margin: 36px 0px;
    margin-bottom: 0;
  }
  /* footer */
  .footer {
    margin-top: 36px;
  }
  .footer__column--features {
    display: none;
  }
  .footer__container {
    flex-direction: column;
    align-items: center;
  }

  .footer__column--nav .footer__list {
    margin-left: 0;
    margin-right: 0;
    align-items: center;
  }
  .footer__column--address {
    margin-right: 0;
    align-items: center;
  }
  .footer__column {
    margin-bottom: 36px;
    align-items: center;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    line-height: 16.9px;
    margin-top: 0;
  }
  .footer__policy {
    margin-right: 0;
  }
  .footer__copyright {
    margin-left: 0;
  }
  .footer__credits {
    margin-right: 0;
  }
  .footer__button {
    margin-top: 24px;
  }
  .footer__text {
    text-align: center;
  }
  .card-price__btn {
    width: 100%;
  }
  .badge-gsm {
    width: 66px;
    height: auto;
  }
}

@media (max-width: 580px) {
  .product-card {
    flex: 1 1 40%;
    width: 100%;
    padding: 15px 10px;
    gap: 11.4px;
  }

  .product-card__media {
    width: 100%;
    max-height: 154px;
    aspect-ratio: 1 / 1;
    /* max-width: 154px; */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
  }
  .card-like {
    top: 0px;
    right: 3px;
    z-index: 1;
  }

  .product-card__title {
    font-size: 11.5px;
  }
  .spec,
  .spec b {
    font-size: 11px;
  }
  .discount,
  .old-price {
    font-size: 12px;
  }
  .price-row .price {
    font-size: 16px;
  }
  .price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    gap: 2px;
  }

  .product-card__price {
    gap: 11.4px;
  }

  .card-img {
    width: 100%; /* Картинка растягивается на всю ширину контейнера */
    height: 100%; /* Картинка заполняет всю высоту контейнера */
    object-fit: contain; /* Сохраняет пропорции картинки, вписывая её полностью в блок */
    display: block;
  }
  .cards {
    /* justify-content: space-between; */
  }

  .badge-gost {
    width: 83px;
    height: auto;
  }
  .badge-gost {
    position: absolute;
    left: 10px;
    top: 43px;
  }
  .badge-gsm {
    position: absolute;
    right: 3px;
    bottom: 13px;
  }
}

@media (max-width: 400px) {
  .title-logo {
    display: none;
  }
  .product-card {
    flex: 0 1 calc(50% - 5px);
    max-width: calc(50% - 5px);
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .row {
    padding: 12px 10px;
  }
  .badge-gost {
    position: absolute;
    left: 10px;
    top: 55px;
    width: 40%;
  }
  .badge-gsm {
    width: 40%;
  }
  main {
    padding-top: 15px;
  }
}

@media (max-width: 350px) {
  .price-row .price {
    font-size: 14px;
  }
}

@media (max-width: 580px) {
  .cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card {
    max-width: 100%;
    width: 100%;
  }
}
