/* ==========================================================================
   Строй Тут — витрина магазина
   Фирменные цвета: тёмно-синий #242e44, оранжевый #e37e49
   ========================================================================== */

:root {
  --navy: #242e44;
  --navy-800: #1b2438;
  --navy-900: #141c2c;
  --navy-100: #e8ebf3;
  --navy-50: #f3f5f9;

  --orange: #e37e49;
  --orange-600: #d06a34;
  --orange-700: #b95a28;
  --orange-50: #fdf3ec;

  --text: #1f2733;
  --muted: #6b7480;
  --muted-light: #98a0ac;

  --line: #e7e9ef;
  --line-strong: #d9dce6;
  --bg: #f5f6f9;
  --white: #fff;

  --green: #1f9d55;
  --green-bg: #e9f7ef;
  --amber: #c9860f;
  --amber-bg: #fdf4e0;
  --red: #c2413a;
  --red-bg: #fdeceb;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-xs: 0 1px 2px rgba(24, 33, 52, 0.05);
  --shadow-sm: 0 4px 12px rgba(24, 33, 52, 0.06);
  --shadow: 0 12px 32px rgba(24, 33, 52, 0.1);

  --container: 1200px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Атрибут hidden должен побеждать любые display из классов */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Montserrat', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 700;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: inline-block;
  vertical-align: -0.18em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 880px;
}

.page {
  padding-bottom: 80px;
  min-height: 50vh;
}

/* ---------- кнопки ---------- */

.btn {
  --btn-bg: var(--navy);
  --btn-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s, box-shadow 0.18s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  --btn-bg: var(--orange-600);
  box-shadow: 0 6px 18px rgba(227, 126, 73, 0.28);
}

.btn--primary:hover {
  --btn-bg: var(--orange-700);
}

.btn--dark {
  --btn-bg: var(--navy);
}

.btn--dark:hover {
  --btn-bg: var(--navy-800);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-color: var(--navy);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  border-color: var(--navy);
  background: var(--white);
}

.btn--lg {
  padding: 15px 28px;
  font-size: 15.5px;
  border-radius: 12px;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--grow {
  flex: 1;
}

/* ---------- верхняя полоса ---------- */

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 42px;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__item .icon {
  color: var(--orange);
  font-size: 15px;
}

a.topbar__item:hover {
  color: #fff;
}

/* ---------- выбор магазина в шапке ---------- */

.store-pick {
  position: relative;
}

.store-pick__summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}

.store-pick__summary::-webkit-details-marker {
  display: none;
}

.store-pick__summary:hover,
.store-pick[open] .store-pick__summary {
  background: rgba(255, 255, 255, 0.16);
}

.store-pick__summary .icon {
  color: var(--orange);
  font-size: 15px;
}

.store-pick__value {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-pick__arrow {
  display: inline-flex;
  opacity: 0.7;
  transition: transform 0.18s;
}

.store-pick[open] .store-pick__arrow {
  transform: rotate(180deg);
}

.store-pick__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: 320px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.store-pick__head {
  padding: 6px 10px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.store-pick__item {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--navy);
  transition: background 0.15s;
}

.store-pick__item:hover {
  background: var(--navy-50);
}

.store-pick__item.is-active {
  background: rgba(227, 126, 73, 0.1);
  box-shadow: inset 0 0 0 1px rgba(227, 126, 73, 0.35);
}

.store-pick__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-pick__item b {
  font-size: 14px;
}

.store-pick__badge {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-pick__addr {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.store-pick__hours {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.topbar__link {
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.15s;
}

.topbar__link:hover {
  color: #fff;
}

/* ---------- шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}

.header.is-scrolled {
  box-shadow: 0 6px 20px rgba(24, 33, 52, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-h);
}

.logo img {
  width: 196px;
  height: auto;
}

.header .header__burger {
  display: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.icon-btn:hover {
  background: var(--navy-50);
  border-color: var(--line-strong);
}

.icon-btn .icon {
  font-size: 20px;
}

.search {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.search__input {
  width: 100%;
  height: 46px;
  padding: 0 52px 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--navy-50);
  font-size: 14.5px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.search__input::placeholder {
  color: var(--muted-light);
}

.search__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(227, 126, 73, 0.14);
}

.search__btn {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.search__btn:hover {
  background: var(--orange);
}

.search__btn .icon {
  font-size: 17px;
}

.search__suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 40;
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}

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

.suggest-item:hover {
  background: var(--navy-50);
}

.suggest-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--navy-50);
}

.suggest-item__name {
  flex: 1;
  font-size: 14px;
  line-height: 1.35;
}

.suggest-item__price {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  font-size: 14px;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header__phone b {
  display: block;
  font-size: 15.5px;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.header__phone small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
}

.header__phone-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange-50);
  color: var(--orange);
}

.header__phone-icon .icon {
  font-size: 19px;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.cart-btn:hover {
  border-color: var(--orange);
  background: var(--orange-50);
}

.cart-btn__icon {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--navy);
}

.cart-btn__icon .icon {
  font-size: 23px;
}

.cart-btn__count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  transition: transform 0.15s;
}

.cart-btn.is-pulse .cart-btn__count {
  animation: pulse 0.45s ease;
}

@keyframes pulse {
  50% {
    transform: scale(1.35);
  }
}

.cart-btn__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- навигация ---------- */

.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 48px;
}

.nav__catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 15px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}

.nav__catalog:hover {
  background: var(--orange);
}

.nav__catalog .icon {
  font-size: 14px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav__link {
  font-size: 14px;
  color: #3c4658;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav__link:hover {
  color: var(--orange-600);
}

.nav__link--all {
  font-weight: 600;
  color: var(--navy);
}

/* ---------- кирпичная текстура ---------- */

.brick-bg {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cg fill='none' stroke='%23e37e49' stroke-opacity='0.17' stroke-width='2'%3E%3Cpath d='M0 1h120M0 31h120M0 59h120'/%3E%3Cpath d='M1 0v30M61 0v30M31 30v30M91 30v30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 60px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 54px 0 58px;
}

.hero__brick {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 420px at 15% 0%, rgba(227, 126, 73, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(20, 28, 44, 0.15), rgba(20, 28, 44, 0.55));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 52px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}

.hero__eyebrow .icon {
  color: var(--orange);
  font-size: 15px;
}

.hero__title {
  font-size: clamp(30px, 3.4vw, 46px);
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero__title span {
  display: block;
  color: var(--orange);
}

.hero__text {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero .btn--outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stats b {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
}

.hero__stats span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

.hero__card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.hero__card-head {
  margin-bottom: 20px;
}

.hero__card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero__card-head h2 {
  font-size: 19px;
  color: #fff;
  line-height: 1.35;
  font-weight: 600;
}

.hero__list {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.hero__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.hero__list span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: rgba(227, 126, 73, 0.18);
  color: var(--orange);
}

.hero__list .icon {
  font-size: 17px;
}

.hero__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  transition: gap 0.18s;
}

.hero__card-link:hover {
  gap: 12px;
}

/* ---------- преимущества ---------- */

.features {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  background: var(--orange-50);
  color: var(--orange-600);
}

.feature__icon .icon {
  font-size: 20px;
}

.feature h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.feature p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- секции ---------- */

.section {
  padding: 58px 0;
}

.section--tint {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--flat {
  padding-top: 12px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section__title {
  font-size: clamp(22px, 2.2vw, 29px);
  margin-bottom: 6px;
}

.section__sub {
  font-size: 14.5px;
  color: var(--muted);
}

.section__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  transition: gap 0.18s, color 0.18s;
}

.section__more:hover {
  gap: 12px;
  color: var(--orange-600);
}

/* ---------- категории ---------- */

.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.category:hover {
  border-color: rgba(227, 126, 73, 0.45);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.category__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--navy-50);
  color: var(--navy);
  transition: background 0.18s, color 0.18s;
}

.category:hover .category__icon {
  background: var(--orange-50);
  color: var(--orange-600);
}

.category__icon .icon {
  font-size: 22px;
}

.category__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.category__name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  line-height: 1.3;
}

.category__count {
  font-size: 12.5px;
  color: var(--muted);
}

.category__arrow {
  color: var(--muted-light);
  transition: color 0.18s, transform 0.18s;
}

.category:hover .category__arrow {
  color: var(--orange);
  transform: translateX(3px);
}

.category__arrow .icon {
  font-size: 17px;
}

/* ---------- товары ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(234px, 1fr));
  gap: 20px;
}

.pcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.pcard:hover {
  border-color: rgba(227, 126, 73, 0.4);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.pcard__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px;
  overflow: hidden;
}

.pcard__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.pcard:hover .pcard__img {
  transform: scale(1.04);
}

.pcard__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #c9cfdb;
  background: linear-gradient(160deg, #f7f8fb, #eef0f6);
  border-radius: 10px;
}

.pcard__placeholder .icon {
  width: 54px;
  height: 54px;
}

.pcard__sticker {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pcard__sticker--sale {
  background: var(--red);
  color: #fff;
}

.pcard__sticker--hit {
  background: var(--navy);
  color: #fff;
}

.pcard__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 15px 15px;
  flex: 1;
}

.pcard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
}

.pcard__brand {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcard__stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  white-space: nowrap;
  color: var(--green);
}

.pcard__stock i,
.tag--in_stock i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.pcard__stock--on_order {
  color: var(--amber);
}

.pcard__stock--out_of_stock {
  color: var(--red);
}

.pcard__name {
  font-size: 14px;
  line-height: 1.42;
  color: var(--navy);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
  transition: color 0.15s;
}

.pcard__name:hover {
  color: var(--orange-600);
}

.pcard__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.pcard__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  min-width: 0;
}

.pcard__price b {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.pcard__unit {
  font-size: 12px;
  color: var(--muted-light);
  white-space: nowrap;
}

.pcard__price s {
  font-size: 12.5px;
  color: var(--muted-light);
}

.pcard__ask {
  font-size: 14.5px !important;
  color: var(--muted) !important;
  font-weight: 600 !important;
}

.pcard__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--orange-50);
  color: var(--orange-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}

.pcard__btn .icon {
  font-size: 16px;
}

.pcard__btn:hover {
  background: var(--orange-600);
  color: #fff;
  box-shadow: 0 6px 14px rgba(227, 126, 73, 0.3);
}

.pcard__btn.is-added {
  background: var(--green-bg);
  color: var(--green);
}

.pcard__btn--ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--muted);
}

.pcard__btn--ghost:hover {
  background: var(--navy);
  color: #fff;
  box-shadow: none;
}

/* ---------- CTA ---------- */

.cta {
  padding: 12px 0 0;
}

.cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-800) 55%, #2c3850 100%);
  color: #fff;
  overflow: hidden;
}

.cta__inner::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 126, 73, 0.35), transparent 70%);
}

.cta__text h2 {
  font-size: clamp(21px, 2.1vw, 27px);
  color: #fff;
  margin-bottom: 8px;
}

.cta__text p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  max-width: 520px;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.cta__hint {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- блок контактов на главной ---------- */

.contacts-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.contacts-block__lead {
  color: var(--muted);
  margin: 10px 0 24px;
  max-width: 420px;
}

.contacts-list {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.contacts-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.contacts-list__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--orange-600);
}

.contacts-list__icon .icon {
  font-size: 19px;
}

.contacts-list b {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1px;
}

.contacts-list a,
.contacts-list span {
  color: var(--navy);
  font-weight: 600;
  font-size: 14.5px;
}

.contacts-list a:hover {
  color: var(--orange-600);
}

.contacts-block__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dfe3ec;
  min-height: 340px;
}

.contacts-block__map iframe,
.contacts-page__map iframe,
.info-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  min-height: 340px;
}

/* ---------- подвал ---------- */

.footer {
  position: relative;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
}

.footer__brick {
  height: 26px;
  opacity: 0.55;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 46px 0 38px;
}

.footer__col {
  min-width: 0;
}

.footer__disclaimer {
  max-width: 520px;
  text-align: right;
}

/* Логотип тёмный — на тёмном подвале кладём его на белую подложку */
.logo--footer {
  display: inline-block;
  padding: 10px 14px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 10px;
}

.logo--footer img {
  width: 168px;
  display: block;
}

.footer__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
  max-width: 320px;
}

.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  transition: color 0.15s;
}

.footer__phone:hover {
  color: var(--orange);
}

.footer__phone .icon {
  color: var(--orange);
}

.footer__title {
  font-size: 14px;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.footer__list {
  display: grid;
  gap: 10px;
}

.footer__list a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.15s;
}

.footer__list a:hover {
  color: var(--orange);
}

.footer__list--contacts li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.5;
  align-items: flex-start;
}

.footer__list--contacts .icon {
  color: var(--orange);
  margin-top: 3px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
  flex-wrap: wrap;
  /* место под круглую кнопку «наверх» */
  padding-right: 76px;
}

/* ---------- корзина: drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 23, 38, 0.5);
  opacity: 0;
  transition: opacity 0.25s;
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -20px 0 50px rgba(16, 23, 38, 0.18);
}

.drawer.is-open .drawer__panel {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer__title {
  font-size: 19px;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 20px;
}

.drawer__foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.drawer__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.drawer__total span {
  font-size: 14px;
  color: var(--muted);
}

.drawer__total b {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  color: var(--navy);
}

.drawer__note {
  font-size: 12px;
  color: var(--muted-light);
  margin-bottom: 14px;
}

.drawer__link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  text-align: center;
  color: var(--muted);
  padding: 40px 10px;
}

.drawer__empty .icon {
  width: 52px;
  height: 52px;
  color: #cdd3df;
}

.ditem {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.ditem__media {
  width: 66px;
  height: 66px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.ditem__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.ditem__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ditem__name {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--navy);
  font-weight: 500;
  padding-right: 22px;
}

.ditem__name:hover {
  color: var(--orange-600);
}

.ditem__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ditem__sum {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  white-space: nowrap;
}

.ditem__remove {
  position: absolute;
  top: 12px;
  right: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: var(--muted-light);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color 0.15s;
}

.ditem__remove:hover {
  color: var(--red);
}

/* ---------- количество ---------- */

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.qty--sm {
  border-radius: 7px;
}

.qty__btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  border: none;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}

.qty__btn:hover {
  background: var(--navy-50);
  color: var(--orange-600);
}

.qty__btn .icon {
  font-size: 15px;
}

.qty__input {
  width: 44px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  -moz-appearance: textfield;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty--sm .qty__btn {
  width: 26px;
  height: 30px;
}

.qty--sm .qty__input {
  width: 34px;
  height: 30px;
  font-size: 13px;
}

/* ---------- тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 100px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  max-width: calc(100vw - 40px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: var(--red);
}

/* ---------- хлебные крошки ---------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 18px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.15s;
}

.breadcrumbs a:hover {
  color: var(--orange-600);
}

.breadcrumbs span:last-child {
  color: var(--navy);
}

/* ---------- заголовок страницы ---------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 26px;
}

.page-head__title {
  font-size: clamp(25px, 2.6vw, 34px);
  margin-bottom: 6px;
}

.page-head__sub {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 720px;
}

.page-head__sub a {
  color: var(--orange-600);
  font-weight: 600;
}

.page-head__count {
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 4px;
}

/* ---------- каталог ---------- */

.catalog {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 40px;
}

.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: calc(var(--header-h) + 12px);
}

.filters__head {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.filters__head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}

.filters__block {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.filters__block:first-of-type {
  padding-top: 0;
}

.filters__block:last-of-type {
  border-bottom: none;
}

.filters__title {
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 11px;
}

.filters__cats {
  display: grid;
  gap: 2px;
  max-height: 380px;
  overflow-y: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.filters__cats > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 13.5px;
  color: #3c4658;
  transition: background 0.14s, color 0.14s;
}

.filters__cats > li > a span {
  font-size: 11.5px;
  color: var(--muted-light);
}

.filters__cats > li > a:hover {
  background: var(--navy-50);
  color: var(--navy);
}

.filters__cats > li > a.is-active {
  background: var(--orange-50);
  color: var(--orange-700);
  font-weight: 600;
}

.filters__cats > li > a.is-active span {
  color: var(--orange-600);
}

.filters__subcats {
  display: grid;
  gap: 1px;
  margin: 2px 0 4px 12px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.filters__subcats a {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.filters__subcats a:hover {
  background: var(--navy-50);
  color: var(--navy);
}

.filters__subcats a span {
  color: var(--muted-light);
  font-size: 11px;
}

.filters__price {
  display: flex;
  align-items: center;
  gap: 7px;
}

.filters__price span {
  color: var(--muted-light);
}

.filters__actions {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.filters__reset {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filters__reset:hover {
  color: var(--orange-600);
}

.filters__close {
  display: none;
}

.catalog__main {
  min-width: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0 18px;
}

.toolbar__filter-btn {
  display: none;
}

.toolbar__found {
  font-size: 13.5px;
  color: var(--muted);
}

.toolbar__found b {
  color: var(--navy);
}

.toolbar__sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  color: var(--navy);
  transition: border-color 0.15s, color 0.15s;
}

.chip:hover {
  border-color: var(--orange);
  color: var(--orange-700);
}

.chip .icon {
  width: 12px;
  height: 12px;
}

/* ---------- поля ---------- */

.field {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(227, 126, 73, 0.13);
}

.field--sm {
  height: 38px;
  font-size: 13.5px;
  padding: 0 10px;
}

.field--area {
  height: auto;
  padding: 11px 13px;
  resize: vertical;
  min-height: 88px;
}

textarea.field {
  line-height: 1.5;
}

select.field {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b7480' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.field-label > span {
  font-weight: 500;
}

.field-label em {
  color: var(--orange);
  font-style: normal;
}

.field-label small {
  color: var(--muted-light);
  font-weight: 400;
}

.field-label--wide {
  grid-column: 1 / -1;
}

.field-error {
  color: var(--red);
  font-size: 12px;
  min-height: 0;
}

.field.has-error {
  border-color: var(--red);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: #3c4658;
  cursor: pointer;
  line-height: 1.45;
}

.checkbox input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: none;
  margin: 1px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}

.checkbox input:checked {
  background: var(--orange);
  border-color: var(--orange);
}

.checkbox input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox--consent {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 16px;
}

/* ---------- пагинация ---------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 34px 0 10px;
}

.pagination__page,
.pagination__arrow {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pagination__page:hover,
.pagination__arrow:hover {
  border-color: var(--orange);
  color: var(--orange-700);
}

.pagination__page.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pagination__arrow.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination__dots {
  color: var(--muted-light);
  padding: 0 2px;
}

/* ---------- пустое состояние ---------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 70px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--navy-50);
  color: #b9c0ce;
  margin-bottom: 4px;
}

.empty__icon .icon {
  font-size: 28px;
}

.empty h2 {
  font-size: 21px;
}

.empty p {
  color: var(--muted);
  max-width: 460px;
  font-size: 14.5px;
}

.empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

/* ---------- карточка товара ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  padding: 12px 0 40px;
}

.product__gallery {
  min-width: 0;
}

.product__main-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  overflow: hidden;
}

.product__main-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product__no-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #c3cad6;
  font-size: 13px;
}

.product__no-photo .icon {
  width: 70px;
  height: 70px;
}

.product__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product__thumb {
  width: 74px;
  height: 74px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
}

.product__thumb.is-active {
  border-color: var(--orange);
}

.product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product__info {
  min-width: 0;
}

.product__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  background: var(--navy-50);
  color: var(--muted);
}

.tag--brand {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 11px;
}

.tag--in_stock {
  background: var(--green-bg);
  color: var(--green);
}

.tag--on_order {
  background: var(--amber-bg);
  color: var(--amber);
}

.tag--out_of_stock {
  background: var(--red-bg);
  color: var(--red);
}

.tag--muted {
  background: transparent;
  border: 1px solid var(--line);
}

.product__title {
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.24;
  margin-bottom: 16px;
}

.product__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.product__price {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.product__price--ask {
  font-size: 26px;
  color: var(--muted);
}

.product__unit {
  font-size: 14px;
  color: var(--muted);
}

.product__old-price {
  font-size: 16px;
  color: var(--muted-light);
}

.product__pack {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.product__pack b {
  color: var(--navy);
}

.buybox {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 22px;
}

.buybox__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.buybox__unit {
  font-size: 13.5px;
  color: var(--muted);
}

.buybox__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.buybox__note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--amber);
}

.buybox__unavailable p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.product__usp {
  display: grid;
  gap: 14px;
}

.product__usp li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.product__usp li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--navy-50);
  color: var(--navy);
}

.product__usp b {
  display: block;
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 600;
}

.product__usp small {
  font-size: 12.5px;
  color: var(--muted);
}

.product__usp a {
  color: var(--orange-600);
}

.product__details-main,
.product__specs {
  min-width: 0;
}

.product__details {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 44px;
  padding: 34px 0 10px;
  border-top: 1px solid var(--line);
}

.product__details-title {
  font-size: 19px;
  margin-bottom: 16px;
}

.product__description {
  font-size: 14.5px;
  line-height: 1.7;
  color: #3c4658;
  white-space: pre-line;
}

.product__description--empty {
  color: var(--muted);
}

.product__description a {
  color: var(--orange-600);
}

.specs {
  display: grid;
  border-top: 1px solid var(--line);
}

.specs__row {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
}

.specs a {
  color: var(--orange-600);
}

/* ---------- корзина ---------- */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-item__media {
  width: 92px;
  height: 92px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.cart-item__name {
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.4;
}

.cart-item__name:hover {
  color: var(--orange-600);
}

.cart-item__remove {
  border: none;
  background: none;
  color: var(--muted-light);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.cart-item__remove:hover {
  color: var(--red);
}

.cart-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.cart-item__sum {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  color: var(--navy);
}

.cart-item__price {
  font-size: 12.5px;
  color: var(--muted);
}

.cart-item.is-unavailable {
  border-color: rgba(194, 65, 58, 0.4);
  background: #fffafa;
}

.cart-summary {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
}

.cart-summary__title {
  font-size: 19px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.cart-summary__row b {
  font-size: 21px;
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
}

.cart-summary__row--muted {
  font-size: 12.5px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.cart-summary__note {
  font-size: 12px;
  color: var(--muted-light);
  text-align: center;
}

.cart-summary__note a {
  color: var(--orange-600);
}

.cart-summary .btn {
  margin-top: 2px;
}

/* ---------- оформление ---------- */

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding-bottom: 40px;
}

.checkout__form {
  min-width: 0;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-section {
  padding: 24px;
  margin-bottom: 16px;
}

.form-section__title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  margin-bottom: 18px;
}

.form-section__title span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  height: 100%;
}

.radio-card__body b {
  font-size: 14px;
  color: var(--navy);
}

.radio-card__body small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.radio-card input:checked + .radio-card__body {
  border-color: var(--orange);
  background: var(--orange-50);
  box-shadow: 0 0 0 3px rgba(227, 126, 73, 0.1);
}

.radio-card input:focus-visible + .radio-card__body {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.checkout__pickup {
  margin-top: 16px;
}

.checkout__pickup-title {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.store-choice__item {
  position: relative;
}

.store-choice__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.store-choice__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.store-choice__body b {
  font-size: 14px;
  color: var(--navy);
}

.store-choice__body span {
  font-size: 12.5px;
  color: var(--navy-700, #3c4658);
}

.store-choice__body small {
  font-size: 11.5px;
  color: var(--muted);
}

.store-choice__item input:checked + .store-choice__body {
  border-color: var(--orange);
  background: var(--orange-50);
  box-shadow: 0 0 0 3px rgba(227, 126, 73, 0.1);
}

.store-choice__item input:focus-visible + .store-choice__body {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.checkout__payment-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.alert {
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  margin-bottom: 14px;
}

.alert--error {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(194, 65, 58, 0.2);
}

.checkout__summary {
  position: sticky;
  top: calc(var(--header-h) + 12px);
}

.checkout__summary-inner {
  padding: 22px;
}

.checkout__summary-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.checkout__items {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.checkout__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #3c4658;
  line-height: 1.4;
}

.checkout__item small {
  display: block;
  color: var(--muted-light);
  font-size: 11.5px;
}

.checkout__item b {
  white-space: nowrap;
  font-size: 13px;
  color: var(--navy);
}

.checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-bottom: 14px;
}

.checkout__total span {
  font-size: 14px;
  color: var(--muted);
}

.checkout__total b {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  color: var(--navy);
}

.checkout__delivery-note {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--navy-50);
  border-radius: 9px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.checkout__delivery-note .icon {
  color: var(--orange-600);
  flex: none;
  margin-top: 2px;
}

.checkout__edit {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout__edit:hover {
  color: var(--orange-600);
}

.checkout__note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted-light);
  text-align: center;
}

/* ---------- спасибо ---------- */

.success {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
}

.success__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
}

.success__icon .icon {
  width: 36px;
  height: 36px;
  stroke-width: 2.2;
}

.success__title {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 12px;
}

.success__title b {
  color: var(--orange-600);
}

.success__text {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}

.success__hint {
  font-size: 13.5px;
  color: var(--muted-light);
  margin-bottom: 26px;
}

.success__card {
  padding: 22px;
  text-align: left;
  margin-bottom: 24px;
}

.success__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.success__table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
  font-weight: 600;
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--line);
}

.success__table th:nth-child(2),
.success__table td:nth-child(2) {
  text-align: center;
  white-space: nowrap;
}

.success__table th:last-child,
.success__table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.success__table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  color: #3c4658;
}

.success__table td a {
  color: var(--navy);
  font-weight: 500;
}

.success__table td a:hover {
  color: var(--orange-600);
}

.success__table tfoot td {
  border-bottom: none;
  padding-top: 14px;
  font-size: 15px;
  color: var(--navy);
}

.success__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.success__meta b {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
  margin-bottom: 3px;
}

.success__meta span {
  font-size: 13.5px;
  color: var(--navy);
}

.success__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- о магазине ---------- */

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}

.about-stats div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.about-stats b {
  display: block;
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.1;
  color: var(--navy);
}

.about-stats span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.about-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: #3c4658;
  margin-bottom: 12px;
  max-width: 780px;
}

.about-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.about-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #3c4658;
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.about-list b {
  color: var(--navy);
}

@media (max-width: 760px) {
  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- юридические страницы ---------- */

.legal {
  max-width: 780px;
}

.legal h2 {
  font-size: 17px;
  margin: 24px 0 8px;
  line-height: 1.35;
}

.legal p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #3c4658;
  margin-bottom: 10px;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 20px;
  list-style: disc;
}

.legal li {
  font-size: 14.5px;
  line-height: 1.65;
  color: #3c4658;
  margin-bottom: 4px;
}

.legal b {
  color: var(--navy);
}

.legal a {
  color: var(--orange-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--navy);
}

.legal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 40px;
}

.footer__legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s;
}

.footer__legal a:hover {
  color: var(--orange);
}

/* ---------- кнопка «наверх» ---------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s, background 0.18s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.to-top:hover {
  background: var(--orange-600);
}

.to-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.to-top .icon {
  font-size: 20px;
}

@media (max-width: 720px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .to-top .icon {
    font-size: 18px;
  }

  .footer__bottom-inner {
    padding-right: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition: none;
  }
}

/* ---------- акции ---------- */

.section--promos {
  padding-top: 46px;
}

.promos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.promo {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.promo:hover {
  border-color: rgba(227, 126, 73, 0.45);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.promo__media {
  aspect-ratio: 16 / 9;
  background: var(--navy-50);
  overflow: hidden;
}

.promo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  flex: 1;
}

.promo__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.promo__title {
  font-size: 17px;
  line-height: 1.3;
}

.promo__text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.promo__link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange-700);
  transition: gap 0.18s, color 0.18s;
}

.promo__link:hover {
  gap: 11px;
  color: var(--navy);
}

/* ---------- магазины (торговые точки) ---------- */

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.store-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.store-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.store-card__name {
  font-size: 19px;
}

.store-card__badge {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--orange-50);
  color: var(--orange-700);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-card__list {
  display: grid;
  gap: 10px;
}

.store-card__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #3c4658;
  line-height: 1.5;
}

.store-card__list .icon {
  color: var(--orange-600);
  font-size: 17px;
  margin-top: 2px;
}

.store-card__list a {
  color: var(--navy);
  font-weight: 600;
}

.store-card__list a:hover {
  color: var(--orange-600);
}

.store-card__note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.store-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange-700);
  transition: gap 0.18s, color 0.18s;
}

.store-card__link:hover {
  gap: 11px;
  color: var(--navy);
}

.stores-maps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stores-map {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #dfe3ec;
  min-height: 320px;
}

.stores-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
  display: block;
}

.stores-map--wide {
  height: 360px;
  margin-top: 22px;
}

.stores-map--wide iframe {
  height: 360px;
}

/* ---------- контакты ---------- */

.contacts-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 40px;
}

.contacts-page__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--orange-50);
  color: var(--orange-600);
  margin-bottom: 8px;
}

.contact-card b {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
  font-weight: 600;
}

.contact-card__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

a.contact-card__value:hover {
  color: var(--orange-600);
}

.contact-card__hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 4px;
}

.contact-card__hint--link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-600);
  font-weight: 500;
}

.contacts-page__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
  background: #dfe3ec;
}

.contacts-page__info {
  max-width: 800px;
}

.contacts-page__info p {
  color: var(--muted);
  margin: 12px 0;
  font-size: 14.5px;
  line-height: 1.7;
}

.contacts-page__info .btn {
  margin-top: 8px;
}

/* ---------- информационные страницы ---------- */

.info-page {
  padding-bottom: 20px;
}

.info-page__lead {
  font-size: 16px;
  line-height: 1.7;
  color: #3c4658;
  max-width: 780px;
  margin-bottom: 28px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.info-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  margin-bottom: 14px;
}

.info-card h2 {
  font-size: 16.5px;
  margin-bottom: 7px;
}

.info-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.info-page__title {
  font-size: 21px;
  margin: 30px 0 14px;
}

.info-steps {
  counter-reset: step;
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.info-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  font-size: 14.5px;
  color: #3c4658;
  line-height: 1.6;
}

.info-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange-50);
  color: var(--orange-700);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.info-note {
  display: flex;
  gap: 11px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 26px 0;
}

.info-note .icon {
  color: var(--orange-600);
  flex: none;
  margin-top: 2px;
}

.info-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 360px;
  background: #dfe3ec;
  margin-bottom: 24px;
}

.info-contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.info-contacts b {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
  margin-bottom: 4px;
}

.info-contacts span,
.info-contacts a {
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 500;
}

.info-contacts a:hover {
  color: var(--orange-600);
}

.info-page__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  flex-wrap: wrap;
  margin-top: 34px;
}

.info-page__cta h2 {
  font-size: 21px;
  color: #fff;
  margin-bottom: 6px;
}

.info-page__cta p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- ошибки ---------- */

.error-page {
  text-align: center;
  padding: 80px 0 60px;
}

.error-page__code {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(70px, 12vw, 130px);
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
  opacity: 0.9;
  margin-bottom: 10px;
}

.error-page h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 24px;
}

.error-page__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- адаптив ---------- */

@media (max-width: 1100px) {
  .categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .contacts-page__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout {
    grid-template-columns: 1fr;
  }

  .checkout__summary {
    position: static;
    order: -1;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .product {
    gap: 30px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .header__inner {
    gap: 12px;
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  .header .header__burger {
    display: inline-flex;
    order: 0;
  }

  .logo {
    order: 1;
    flex: 1;
  }

  .logo img {
    width: 160px;
  }

  .cart-btn {
    order: 2;
    padding: 8px 10px;
  }

  .cart-btn__label {
    display: none;
  }

  .header__phone {
    order: 3;
    margin-left: 0;
  }

  .header__phone small {
    display: none;
  }

  .header__phone b {
    font-size: 14px;
  }

  .search {
    order: 4;
    flex-basis: 100%;
    max-width: none;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav__inner {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    gap: 4px;
  }

  .nav__catalog {
    justify-content: center;
    margin-bottom: 8px;
  }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .nav__link {
    width: 100%;
    padding: 9px 4px;
    border-bottom: 1px solid var(--line);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    padding: 38px 0 42px;
  }

  .hero__card {
    max-width: 520px;
  }

  .catalog {
    grid-template-columns: 1fr;
  }

  .filters {
    position: fixed;
    inset: 0;
    z-index: 150;
    border-radius: 0;
    border: none;
    overflow-y: auto;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    display: block;
  }

  .filters.is-open {
    transform: none;
  }

  .filters__head {
    display: flex;
  }

  .filters__close {
    display: inline-flex;
  }

  .toolbar__filter-btn {
    display: inline-flex;
  }

  .filters__cats {
    max-height: none;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .product__main-media {
    max-width: 520px;
    margin: 0 auto;
  }

  .product__details {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contacts-block {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
  }

  .cta__actions {
    align-items: flex-start;
  }

  .topbar__right {
    display: none;
  }

  .hero__content,
  .contacts-block__info {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .topbar__item--hours,
  .topbar__item--addr {
    display: none;
  }

  .topbar__inner {
    justify-content: flex-start;
  }

  .footer__disclaimer {
    text-align: left;
  }

  .section {
    padding: 40px 0;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pcard__body {
    padding: 11px 12px 12px;
  }

  .pcard__name {
    font-size: 13px;
    min-height: 3.9em;
  }

  .pcard__price b {
    font-size: 16px;
  }

  .pcard__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .pcard__btn {
    justify-content: center;
  }

  .hero__stats {
    gap: 22px;
  }

  .hero__stats b {
    font-size: 18px;
  }

  .info-cards,
  .contacts-page__cards,
  .info-contacts {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .radio-cards {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 0 28px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    gap: 8px;
  }

  .success {
    margin-top: 20px;
  }

  .success__meta {
    gap: 18px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .page-head__count {
    padding-bottom: 0;
  }

  .cart-item {
    gap: 12px;
    padding: 12px;
  }

  .cart-item__media {
    width: 72px;
    height: 72px;
  }

  .cart-item__bottom {
    gap: 8px;
  }

  .toolbar__sort span {
    display: none;
  }

  .checkout__summary-inner,
  .form-section {
    padding: 18px;
  }

  .info-page__cta {
    padding: 24px;
  }

  .toast {
    bottom: 16px;
  }
}

@media (max-width: 420px) {
  .categories {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 27px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .header__phone span:last-child {
    display: none;
  }

  .logo img {
    width: 138px;
  }

  .product__thumbs {
    gap: 8px;
  }

  .product__thumb {
    width: 62px;
    height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- личный кабинет ---------- */

.auth {
  display: grid;
  place-items: start center;
  padding: 10px 0 30px;
}

.auth__card {
  width: 100%;
  max-width: 460px;
  padding: 26px 26px 22px;
}

.auth__title {
  font-size: 22px;
  margin-bottom: 6px;
}

.auth__sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.auth__form {
  display: grid;
  gap: 12px;
}

.auth__switch {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.auth__switch a {
  color: var(--orange-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.topbar__link--account {
  color: var(--orange-700);
  font-weight: 600;
}

.account__discount {
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border-left: 3px solid var(--orange);
}

.account__discount b {
  color: var(--navy);
  font-size: 15px;
}

.account__discount span {
  font-size: 13px;
  color: #3c4658;
}

.account__discount small {
  font-size: 12px;
  color: var(--muted);
}

.pcard__discount {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--orange-50);
  color: var(--orange-700);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.stack {
  display: grid;
  gap: 12px;
}

.promo-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.promo-row .field {
  flex: 1 1 auto;
}

.promo-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.promo-result {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.promo-result--ok {
  color: #1f7a45;
}

.promo-result--error {
  color: #b43b3b;
}

.field-pass {
  position: relative;
  display: block;
}

.field-pass .field {
  padding-right: 82px;
}

.field-pass__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--orange-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

/* ---------- выравнивание на страницах входа, кабинета и в шапке ---------- */

.topbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-width: 0;
}

.topbar__link--account {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.container--narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.auth .field-pass,
.auth .field {
  width: 100%;
}

.auth__form .field-label {
  display: grid;
  gap: 6px;
}

.account .grid-2,
.container--narrow .grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 860px) {
  .account .grid-2,
  .container--narrow .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.container--narrow .card {
  padding: 20px;
  overflow-x: auto;
}

.container--narrow .panel__title,
.container--narrow .card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.container--narrow .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.container--narrow .table th,
.container--narrow .table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line, #e7e9ef);
  white-space: nowrap;
}

.container--narrow .alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13.5px;
}

.container--narrow .alert--error {
  background: #fdecec;
  color: #b43b3b;
}

.container--narrow .alert--success {
  background: #eaf7ef;
  color: #1f7a45;
}

.container--narrow .page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.container--narrow .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.container--narrow .field {
  width: 100%;
  box-sizing: border-box;
}

.container--narrow .field-label {
  display: grid;
  gap: 6px;
}

/* ---------- кнопка входа в шапке (видна на телефоне) ---------- */

.account-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line, #e2e6ee);
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.account-btn__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.account-btn__icon .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 960px) {
  .account-btn {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .account-btn__label {
    display: none;
  }
}

.price-old {
  color: #9aa2b1;
  font-size: 12.5px;
  font-weight: 400;
  text-decoration: line-through;
}

.checkout__total--discount b {
  color: #1f7a45;
}

/* ---------- количество в карточке каталога ---------- */

.pcard__buy {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.pcard__qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  border: 1px solid var(--line, #e2e6ee);
  border-radius: 8px;
  padding: 0 6px;
  background: #fff;
  min-width: 74px;
}

.pcard__qty-input {
  width: 38px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  padding: 8px 0;
  -moz-appearance: textfield;
}

.pcard__qty-input::-webkit-outer-spin-button,
.pcard__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pcard__qty-input::placeholder {
  font-weight: 400;
  color: #9aa2b1;
}

.pcard__qty-unit {
  font-size: 11.5px;
  color: var(--muted, #6b7480);
  white-space: nowrap;
}

.pcard__buy .pcard__btn {
  flex: 1 1 auto;
  min-width: 0;
}

.success__discount {
  color: #1f7a45;
}

/* ---------- колонки цен в корзине ---------- */

.cart-item__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f6f7fa;
}

.cart-item__col {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cart-item__col span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9aa2b1;
  white-space: nowrap;
}

.cart-item__col b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.cart-item__col--discount b {
  color: #1f7a45;
}

.cart-summary__row--discount b {
  color: #1f7a45;
}

@media (max-width: 520px) {
  .cart-item__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 7px 8px;
  }

  .cart-item__col span {
    font-size: 9.5px;
    letter-spacing: 0;
  }

  .cart-item__col b {
    font-size: 12.5px;
  }
}

/* ---------- таблица заказа: колонки цен ---------- */

.success {
  max-width: 880px;
}

.success__card {
  overflow: visible;
}

.success__table {
  table-layout: fixed;
  font-size: 13px;
}

.success__table th:nth-child(1),
.success__table td:nth-child(1) {
  width: 38%;
  white-space: normal;
  text-align: left;
}

.success__table th:nth-child(2),
.success__table td:nth-child(2) {
  width: 11%;
  text-align: right;
  white-space: nowrap;
}

.success__table th:nth-child(3),
.success__table td:nth-child(3),
.success__table th:nth-child(4),
.success__table td:nth-child(4),
.success__table th:nth-child(5),
.success__table td:nth-child(5),
.success__table th:nth-child(6),
.success__table td:nth-child(6) {
  width: 12.75%;
  text-align: right;
  white-space: nowrap;
}

.success__table tfoot td {
  text-align: right;
}

.success__table tfoot td[colspan] {
  text-align: left;
}

@media (max-width: 560px) {
  .success__table {
    font-size: 11.5px;
  }

  .success__table th,
  .success__table td {
    padding: 7px 4px;
  }

  .success__table th:nth-child(1),
  .success__table td:nth-child(1) {
    width: 30%;
  }
}

/* ---------- карточка каталога: цена сверху, количество и кнопка снизу ---------- */

.pcard__foot {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.pcard__foot .pcard__price {
  width: 100%;
}

.pcard__buy {
  width: 100%;
}

.pcard__buy {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.pcard__buy .pcard__btn {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
  justify-content: center;
}

.pcard__buy .pcard__btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcard__qty {
  flex: 0 1 74px;
  min-width: 58px;
  padding: 0 4px;
}

.pcard__qty-input {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.pcard__qty-unit {
  max-width: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .pcard__qty-unit {
    display: none;
  }

  .pcard__buy .pcard__btn span {
    display: none;
  }

  .pcard__buy .pcard__btn {
    flex: 0 0 42px;
  }
}

.category-desc {
  max-width: 900px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
  background: #fff;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #3c4658;
  white-space: pre-line;
}

/* ---------- карта сайта ---------- */

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 10px;
}

@media (max-width: 780px) {
  .map-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

.map-col {
  background: #fff;
  border: 1px solid var(--line, #e7e9ef);
  border-radius: 12px;
  padding: 18px 20px;
}

.map-col__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}

.map-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}

.map-list > li {
  margin-bottom: 7px;
}

.map-list--sub {
  margin: 6px 0 10px 14px;
  font-size: 13px;
  color: var(--muted, #6b7480);
}

.map-list--sub li {
  margin-bottom: 4px;
}

.map-list__link {
  color: var(--navy);
  text-decoration: none;
}

.map-list__link:hover {
  color: var(--orange-700, #c1582c);
  text-decoration: underline;
}

.map-list__count {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: var(--muted-light, #9aa2b1);
}
