/* Пикабель — онлайн-магазин */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #f2f1f4;
  --surface-dark: #1f1b24;
  --surface-dark-soft: #ebe7f0;
  --text: #121212;
  --text-muted: #5d5964;
  --accent: #2a9d8f;
  --accent-hover: #207a70;
  --accent-soft: #e3f2f0;
  --accent-pink: #d16a9b;
  --accent-pink-soft: #f8e4ee;
  --border: #d3ced8;
  --border-dark: #928a9d;
  --success: #2a9d8f;
  --shadow: 0 4px 24px rgba(24, 40, 34, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --header-strip-h: 2.75rem;
  --header-h: 5.75rem;
  --header-offset: calc(var(--header-strip-h) + var(--header-h) + 1rem);
  --max: 1160px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.main {
  flex: 1;
  padding-top: calc(var(--header-offset) + 1rem);
  padding-bottom: 4rem;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(20, 26, 24, 0.06);
}

.header__strip {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.92);
  min-height: var(--header-strip-h);
  display: flex;
  align-items: center;
}

.header__strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
  padding: 0.45rem 0;
  font-size: 0.9375rem;
}

.header__phone {
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.header__phone:hover {
  color: #f2b7cf !important;
}

.header__strip-contact {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.header__email {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.header__email:hover {
  color: #f2b7cf !important;
}

.header__messengers {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.header__msg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

.header__msg--tg {
  background: rgba(255, 255, 255, 0.1);
  color: #f2b7cf !important;
}

.header__msg--tg:hover {
  background: rgba(255, 255, 255, 0.18);
}

.header__msg--max {
  background: rgba(255, 255, 255, 0.1);
  color: #d9a297 !important;
}

.header__msg--max:hover {
  background: rgba(255, 255, 255, 0.18);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav > a {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}

.nav > a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav__dropdown {
  position: relative;
}

.nav__trigger {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__trigger::after {
  content: "";
  border: solid var(--text-muted);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.nav__dropdown:hover .nav__trigger,
.nav__dropdown:focus-within .nav__trigger {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav__mega {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.35rem;
  min-width: 340px;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 50;
}

.nav__dropdown:hover .nav__mega,
.nav__dropdown:focus-within .nav__mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__mega-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.nav__mega--cables a {
  display: block;
  padding: 0.5rem 0.55rem;
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}

.nav__mega--cables a:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.nav__mega--other {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.nav__mega--other a {
  display: block;
  padding: 0.55rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.nav__mega--other a:hover {
  text-decoration: underline;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.header__auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.header__auth-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text) !important;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  text-decoration: none !important;
}

.header__auth-link:hover {
  background: var(--accent-soft);
  color: var(--accent) !important;
}

.header__auth-reg {
  margin: 0 !important;
}

.header__auth .btn {
  margin: 0;
}

[data-auth-slot].is-logged-in .header__auth-guest {
  display: none;
}

[data-auth-slot]:not(.is-logged-in) .header__auth-user {
  display: none;
}

.header__auth-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__profile-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent) !important;
  text-decoration: none !important;
  display: inline-block;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__logout {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted) !important;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.35rem 0.5rem;
}

.header__logout:hover {
  color: var(--accent) !important;
}

.mobile-menu__auth {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.mobile-menu__auth a {
  padding: 0.65rem;
  font-weight: 600;
}

.mobile-strip {
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.mobile-strip .header__messengers {
  margin-top: 0.5rem;
}

.mobile-strip .header__phone,
.mobile-strip .header__email {
  color: var(--text) !important;
}

.mobile-strip .header__phone:hover,
.mobile-strip .header__email:hover {
  color: var(--accent) !important;
}

.mobile-strip .header__msg {
  background: var(--surface-2);
}

.header__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none !important;
  box-shadow: 0 2px 14px rgba(29, 107, 82, 0.22);
}

.header__cart:hover {
  background: var(--accent-hover);
}

.header__cart-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.header.is-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-open .burger span:nth-child(2) {
  opacity: 0;
}

.header.is-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.header.is-open .mobile-menu {
  display: flex;
}

.mobile-menu a {
  padding: 0.7rem 0.65rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  border-radius: 8px;
}

.mobile-menu a:hover,
.mobile-menu summary:hover {
  background: var(--surface-2);
}

.mobile-menu__lead {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.mobile-menu__highlight {
  font-weight: 800 !important;
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

.nav__mega-title--spaced {
  margin-top: 1rem;
}

.mobile-menu__contact {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-menu__tel,
.mobile-menu__mailto {
  display: block;
  padding: 0.65rem;
  font-weight: 600;
  color: var(--text) !important;
  text-decoration: none !important;
  border-radius: 8px;
}

.mobile-menu__tel:hover,
.mobile-menu__mailto:hover {
  background: var(--surface-2);
  text-decoration: none !important;
}

.mobile-menu__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.mobile-menu__contact .header__msg {
  background: var(--surface-2);
}

.mobile-menu details {
  padding: 0.25rem 0;
}

.mobile-menu summary {
  padding: 0.65rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu details a {
  padding-left: 1.25rem;
  font-weight: 500;
}

/* ---------- Hero / sections ---------- */
.hero {
  padding: 0.5rem 0 2.5rem;
}

.hero__panel {
  background: linear-gradient(
    135deg,
    var(--surface-dark-soft) 0%,
    var(--surface) 42%,
    var(--accent-soft) 100%
  );
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  box-shadow: var(--shadow);
}

.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-pink);
  background: var(--accent-pink-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero__text {
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--accent-pink);
  color: #fff;
}

.btn--primary:hover {
  background: #b95785;
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  overflow: visible;
  padding: 0;
}

.hero__art-img {
  width: 145%;
  max-width: none;
  height: auto;
  max-height: clamp(20rem, 42vw, 28rem);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 28px rgba(45, 42, 52, 0.16));
}

.section {
  padding: 2rem 0;
}

.section__title {
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.about-layout {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .about-layout {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}

.about-block {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  max-width: none;
  width: 100%;
}

.about-block--dark {
  background: linear-gradient(
    155deg,
    var(--surface-dark-soft) 0%,
    var(--surface) 55%
  );
  border-color: var(--border-dark);
}

.about-block p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.section--marketplaces {
  background: linear-gradient(180deg, var(--surface-dark) 0%, #1a221f 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 2.75rem 0;
  margin-top: 0.5rem;
}

.section--marketplaces .section__title {
  color: #fff;
}

.marketplaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.marketplace-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}

.marketplace-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(126, 201, 170, 0.45);
}

.marketplace-card__name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.marketplace-card__hint {
  font-size: 0.85rem;
  opacity: 0.75;
}

.marketplaces-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  opacity: 0.65;
  max-width: 52ch;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.category-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.news-card time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-card h3 {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.05rem;
}

/* ---------- Product list ---------- */
.page-head {
  margin-bottom: 2rem;
}

.page-head h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-head p {
  color: var(--text-muted);
}

.products-filter {
  margin-bottom: 1.25rem;
}

.catalog-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.catalog-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.catalog-filters__line {
  margin-top: 0.35rem;
}

.catalog-filters__search {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.catalog-filters__search .btn {
  margin-top: 0;
}

.catalog-filters input,
.catalog-filters select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.5rem 0.65rem;
  font: inherit;
  color: var(--text);
  outline: none;
  accent-color: var(--accent-pink);
}

.catalog-filters select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-pink) 50%),
    linear-gradient(135deg, var(--accent-pink) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 3px), calc(100% - 9px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.catalog-filters input:focus,
.catalog-filters select:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px var(--accent-pink-soft);
}

.catalog-filters select option {
  background: var(--surface);
  color: var(--text);
}

.catalog-filters select option:checked {
  background: var(--accent-pink-soft);
  color: var(--text);
}

.catalog-filters--compact {
  display: block;
}

.catalog-filters--compact .catalog-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem 0.6rem;
}

.catalog-filters--compact .catalog-filters__field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.catalog-filters--compact .catalog-filters__field--search {
  flex: 1 1 10rem;
  min-width: min(100%, 11rem);
}

.catalog-filters--compact .catalog-filters__field-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
}

.catalog-filters--compact input[type="search"],
.catalog-filters--compact select {
  width: 100%;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.catalog-filters--compact input[type="search"]:focus,
.catalog-filters--compact select:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px var(--accent-pink-soft);
}

.catalog-filters--compact select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 1.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-pink) 50%),
    linear-gradient(135deg, var(--accent-pink) 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% - 2px), calc(100% - 7px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.catalog-filters--compact .catalog-filters__reset {
  flex: 0 0 auto;
  align-self: flex-end;
}

@media (min-width: 720px) {
  .catalog-filters--compact .catalog-filters__field:not(.catalog-filters__field--search) {
    flex: 0 1 9.5rem;
  }
}

.breadcrumb__multi {
  opacity: 0.55;
  font-weight: 500;
  padding: 0 0.1rem;
}

.catalog-category {
  margin-top: 1.5rem;
}

.catalog-category__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.catalog-category__head h2 {
  font-size: 1.15rem;
}

.catalog-category__head a {
  font-size: 0.88rem;
  font-weight: 700;
}

.products-filter__line + .products-filter__line {
  margin-top: 0.65rem;
}

.products-filter__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.products-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.products-filter__chip {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
}

.products-filter__chip.is-active {
  background: var(--accent-pink);
  color: #fff;
  border-color: var(--accent-pink);
}

.products-filter__empty {
  color: var(--text-muted);
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.products-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.85rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.product-card--compact .product-card__img {
  aspect-ratio: 16 / 9;
  padding: 0.65rem;
}

.product-card--compact .product-card__img--photo {
  padding: 0;
}

.product-card--compact .product-card__img svg {
  max-height: 74px;
}

.product-card--compact .product-card__body {
  padding: 0.8rem;
  gap: 0.45rem;
}

.product-card--compact .product-card__title {
  font-size: 0.95rem;
}

.product-card--compact .product-card__price {
  font-size: 1rem;
}

.product-card__img {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

a.product-card__img:hover {
  opacity: 0.96;
}

.product-card__img svg {
  width: 100%;
  max-height: 120px;
}

.product-card__img--photo {
  position: relative;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #dfe8ec;
}

.product-card__img--photo .product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.product-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
}

.product-card__title a {
  color: var(--text);
  text-decoration: none;
}

.product-card__title a:hover {
  color: var(--accent);
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.product-card__group {
  display: inline-flex;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-pink);
  background: var(--accent-pink-soft);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.product-card__stock {
  display: inline-flex;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.product-card__stock.is-stock {
  color: #1d6f58;
  background: #dff5ee;
}

.product-card__stock.is-order {
  color: #8a543d;
  background: #f5e2d9;
}

.product-card__meter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-card__meter label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card__meter select,
.product-card__meter input[type="number"] {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

/* Метраж: список и «Сброс» в одну линию; своё значение ниже */
.pk-meter-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.product-card__meter .pk-meter-row {
  width: 100%;
}

.product-card__meter .pk-meter-row select {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.product-card__meter .pk-meter-row .btn {
  flex-shrink: 0;
  align-self: center;
}

.product-card__meter .pk-meter-custom-input {
  width: 100%;
  margin-top: 0;
}

.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

/* ---------- Product detail ---------- */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--accent);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-detail__gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.product-detail__gallery svg {
  width: 100%;
  max-height: 280px;
}

.product-detail__gallery--photo {
  padding: 0;
  overflow: hidden;
  background: #dfe8ec;
}

.product-detail__gallery .product-photo {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.product-detail__info h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.product-detail__price {
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.product-detail__desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.specs-table th,
.specs-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  width: 42%;
  color: var(--text-muted);
  font-weight: 500;
}

.cert-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.cert-block a {
  font-weight: 600;
}

.purchase-panel {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.purchase-panel label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.purchase-panel select,
.purchase-panel input[type="number"] {
  width: 100%;
  max-width: 200px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.meter-field {
  display: block;
  margin-bottom: 1rem;
}

.meter-field > span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meter-field select,
.meter-field input[type="number"] {
  width: 100%;
  max-width: 220px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.meter-field .pk-meter-row {
  max-width: 220px;
  margin-bottom: 0.35rem;
}

.meter-field .pk-meter-row select {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  margin-bottom: 0;
}

.meter-field .pk-meter-row .btn {
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
}

.meter-field .pk-meter-custom-input {
  display: block;
  margin-top: 0;
  margin-bottom: 0;
}

.purchase-panel .pk-meter-row select,
.purchase-panel .pk-meter-custom-input {
  margin-bottom: 0;
}

.purchase-panel__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.footer {
  background: #1a2321;
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
}

.footer a:hover {
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__block h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.footer__block ul li {
  margin-bottom: 0.5rem;
}

.footer__block ul a {
  text-decoration: none;
}

.footer__block ul a:hover {
  text-decoration: underline;
}

.footer__subheading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.25rem 0 0.75rem;
  opacity: 0.7;
}

.footer__marketplaces {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__marketplaces li {
  margin-bottom: 0.5rem;
}

.logo--footer {
  color: #fff !important;
}

.logo--footer span {
  color: #d16a9b;
}

.social {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.social a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social a.social__max {
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: #d9a297;
}

.social a.social__max span {
  display: block;
  line-height: 1.05;
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22, 32, 28, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal__box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal__head h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  line-height: 1.25;
}

.modal__close {
  flex-shrink: 0;
  white-space: nowrap;
}

.modal__body {
  min-height: 0;
}

.modal__body .auth-form {
  margin-bottom: 0;
}

.modal__body .auth-form .btn[type="submit"] {
  margin-top: 0.25rem;
}

.modal__box p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ---------- Content pages ---------- */
.prose {
  width: 100%;
  max-width: min(920px, 100%);
  margin-inline: auto;
  background: var(--surface);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.auth-card {
  border-color: var(--border-dark);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.auth-card__hint {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-label input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
}

.auth-label select,
.auth-label textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
}

.profile-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.profile-form .btn {
  justify-self: start;
}

.checkout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.checkout-form .btn {
  align-self: end;
}

.checkout-actions {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.prose h1 {
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

.prose ul {
  list-style: disc;
  margin: 0.75rem 0 0.75rem 1.25rem;
  color: var(--text-muted);
}

/* ---------- Requisites (contacts) ---------- */
.requisites__lead {
  margin: 0 0 1rem;
  font-weight: 600;
}

.requisites__subtitle {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.requisites__list {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .requisites__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.5rem;
  }
}

.requisites__row {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

.requisites__row dt {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.requisites__row dd {
  margin: 0;
}

.requisites__mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.requisites__note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkout-form__legal {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.legal-offer__meta,
.legal-privacy__meta {
  margin-top: -0.35rem;
  color: var(--text-muted);
}

/* ---------- News article ---------- */
.news-article__lead {
  font-size: 1.1rem;
  line-height: 1.55;
}

.news-article__hero {
  margin: 1.25rem 0 1.5rem;
}

.news-article__hero img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.news-article__hero figcaption,
.news-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.news-figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.news-figure {
  margin: 0;
}

.news-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.news-article__inline-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.news-article__inline-figures img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.news-article__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

/* ---------- Cart ---------- */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.cart-table th,
.cart-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cart-table th {
  background: var(--surface-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.cart-qty-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.cart-qty-cell__fixed {
  min-width: 5.5rem;
}

.cart-qty-cell__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-qty-stepper__input {
  width: 4.25rem;
  text-align: center;
  padding: 0.28rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root {
    --header-strip-h: 0rem;
    --header-h: 3.75rem;
    --header-offset: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 1rem);
  }

  .header {
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(255, 255, 255, 0.98);
    /* Иначе fixed-потомки привязаны к шапке → меню как «крошечное окно» */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header__strip {
    display: none;
  }

  .header__inner {
    position: relative;
    z-index: 102;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
    min-height: var(--header-h);
    padding-block: 0.45rem;
    background: rgba(255, 255, 255, 0.98);
  }

  .header.is-open .header__inner {
    box-shadow: 0 1px 0 var(--border);
  }

  .logo {
    font-size: clamp(1.3rem, 5.5vw, 1.65rem);
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0.25rem;
  }

  .header__actions {
    flex-shrink: 0;
    gap: 0.45rem;
  }

  .header__auth {
    display: none !important;
  }

  .header__cart {
    padding: 0.55rem 0.95rem;
    font-size: 0.95rem;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-menu {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    min-height: calc(100vh - env(safe-area-inset-top, 0px) - var(--header-h));
    min-height: calc(100dvh - env(safe-area-inset-top, 0px) - var(--header-h));
    padding: 1rem min(1.25rem, 5vw) calc(1.75rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 101;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(20, 26, 24, 0.12);
    display: none;
    flex-direction: column;
    gap: 0.12rem;
  }

  .header.is-open .mobile-menu {
    display: flex;
  }

  body.is-mobile-nav-open {
    overflow: hidden;
  }

  .hero__panel {
    grid-template-columns: 1fr;
  }

  .hero__art-img {
    width: min(100%, 22rem);
    max-height: 20rem;
  }

  .nav__mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 0.5rem;
    display: none;
  }

  .nav__dropdown .nav__mega {
    display: none;
  }

  .products-filter {
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 961px) {
  .header .mobile-menu {
    display: none !important;
  }
}
