@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #11161c;
  --muted: #66717f;
  --line: #e2e7ed;
  --soft: #f0f3f6;
  --orange: #ff8500;
  --orange-dark: #e66f00;
  --green: #19a35b;
  --red: #e94b62;
  --shadow: 0 18px 44px rgba(18, 25, 33, 0.1);
  --container: min(1240px, calc(100vw - 48px));
  --radius: 8px;
  --font: "Manrope", "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.scroll-progress {
  width: 100%;
  height: 3px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--orange), #ffb45c);
  box-shadow: 0 0 18px rgba(255, 133, 0, 0.42);
  pointer-events: none;
}

.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  transition: box-shadow 280ms var(--ease-out), border-color 280ms var(--ease-out), background 280ms var(--ease-out);
}

.site-header.is-scrolled {
  border-color: rgba(226, 231, 237, 0.7);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(18, 25, 33, 0.1);
}

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

.topbar-inner {
  width: var(--container);
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
  color: #6f7781;
  font-size: 12px;
  font-weight: 600;
}

.topbar-contacts,
.topbar-contacts a,
.topbar-contacts span,
.topbar-links {
  display: flex;
  align-items: center;
}

.topbar-contacts {
  gap: 24px;
  color: var(--ink);
  font-weight: 800;
}

.topbar-contacts a,
.topbar-contacts span {
  gap: 6px;
}

.topbar-contacts svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

.city-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.city-button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.city-button span {
  color: #7c8794;
  font-weight: 700;
}

.city-button strong {
  color: var(--ink);
  font-weight: 900;
}

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

.city-button .city-chevron {
  width: 14px;
  height: 14px;
  color: #8b95a1;
  transition: transform 180ms var(--ease-out), color 180ms ease;
}

.city-selector.is-open .city-chevron {
  color: var(--orange);
  transform: rotate(180deg);
}

.city-dropdown {
  width: min(520px, calc(100vw - 32px));
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 80;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(17, 22, 28, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 220ms var(--ease-out);
  backdrop-filter: blur(16px);
}

.city-selector.is-open .city-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.city-dropdown-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.city-dropdown-head span {
  color: #75808d;
  font-size: 12px;
  font-weight: 700;
}

.city-dropdown-head strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

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

.city-grid button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #2f3944;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.city-grid button:hover,
.city-grid button.is-active {
  border-color: rgba(255, 133, 0, 0.42);
  background: #fff4e8;
  color: var(--orange-dark);
  transform: translateY(-1px);
}

.topbar-links {
  justify-content: flex-end;
  gap: 22px;
}

.topbar-links a:hover,
.topbar-links a.is-active,
.category-strip a:hover,
.category-strip button:hover,
.section-title-row a:hover {
  color: var(--orange-dark);
}

.main-header {
  width: var(--container);
  min-height: 78px;
  display: grid;
  grid-template-columns: 120px 180px minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  transition: min-height 280ms var(--ease-out);
}

.site-header.is-scrolled .main-header {
  min-height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  color: #14191f;
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo img {
  display: none;
  width: 110px;
  height: auto;
  transition: transform 260ms var(--ease-out);
}

.logo::before {
  content: "Rest";
}

.logo::after {
  content: "py";
  color: var(--orange);
}

.logo:hover {
  transform: translateY(-1px) scale(1.02);
}

.catalog-button,
.menu-button,
.search button,
.button,
.favorite,
.price-row button,
.price-row .cart-link,
.callback,
.category-strip button {
  border: 0;
  border-radius: var(--radius);
}

.catalog-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(17, 22, 28, 0.12);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background 220ms var(--ease-out);
}

.catalog-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(17, 22, 28, 0.18);
}

.catalog-button:active {
  transform: translateY(0);
}

.catalog-button svg,
.menu-button svg {
  width: 20px;
  height: 20px;
}

.search {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.search:focus-within {
  border-color: rgba(255, 133, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 133, 0, 0.12);
}

.search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search button {
  width: 48px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  transition: background 180ms ease, transform 180ms var(--ease-out);
}

.search button:hover,
.price-row button:hover,
.price-row .cart-link:hover,
.button-primary:hover {
  background: var(--orange-dark);
}

.search button:hover {
  transform: translateX(-1px) scale(1.03);
}

.search button svg {
  width: 21px;
  height: 21px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-actions a {
  min-width: 52px;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #2b333d;
  font-size: 12px;
  font-weight: 700;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}

.header-actions svg {
  width: 23px;
  height: 23px;
  transition: transform 220ms var(--ease-out);
}

.header-actions a:hover {
  color: var(--orange-dark);
  transform: translateY(-2px);
}

.header-actions a:hover svg {
  transform: scale(1.08);
}

.action-badge::after {
  content: attr(data-count);
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  position: absolute;
  top: -5px;
  right: 4px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--ink);
  color: #fff;
}

.category-strip {
  width: var(--container);
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-strip-item {
  min-width: max-content;
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
}

.category-strip a,
.category-strip button {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #303943;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}

.category-strip .nav-category-button {
  min-width: 82px;
  min-height: 38px;
  justify-content: center;
  gap: 7px;
  margin-left: auto;
  margin-right: 8px;
  padding: 0 14px;
  position: sticky;
  right: 0;
  z-index: 3;
  border: 1px solid rgba(226, 231, 237, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -14px 0 18px rgba(245, 246, 248, 0.9);
}

.category-strip .nav-category-button span {
  display: block;
  white-space: nowrap;
}

.category-strip svg {
  width: 19px;
  height: 19px;
  color: #7c8794;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}

.category-strip a:hover,
.category-strip button:hover {
  transform: translateY(-2px);
}

.category-strip a:hover svg,
.category-strip button:hover svg {
  color: var(--orange);
  transform: scale(1.08);
}

.category-strip-submenu {
  width: min(340px, calc(100vw - 32px));
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(219, 226, 235, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 58px rgba(18, 25, 33, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 170ms ease, transform 210ms var(--ease-out);
}

.category-strip-item:nth-last-of-type(-n + 2) .category-strip-submenu {
  right: 0;
  left: auto;
  transform-origin: top right;
}

.category-strip-item:hover .category-strip-submenu,
.category-strip-item:focus-within .category-strip-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.category-strip-submenu::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 12px;
}

.category-strip-submenu strong {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.category-strip .category-strip-submenu a {
  min-width: 0;
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(225, 231, 238, 0.9);
  border-radius: 9px;
  background: #fff;
  color: #27333f;
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
  transform: none;
}

.category-strip .category-strip-submenu a:hover {
  border-color: rgba(255, 133, 0, 0.45);
  background: #fff7ed;
  color: var(--orange-dark);
}

.category-strip-submenu small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.category-strip .category-strip-submenu .category-strip-all-link {
  grid-column: 1 / -1;
  min-height: 42px;
  justify-content: center;
  color: var(--orange-dark);
}

.mobile-menu {
  display: none;
  width: var(--container);
  margin: 0 auto 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-menu a {
  display: block;
  padding: 12px;
  font-weight: 800;
}

.category-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 45;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 60px rgba(17, 22, 28, 0.14);
  backdrop-filter: blur(16px);
}

.category-dropdown.is-open {
  display: block;
}

.category-dropdown-inner {
  width: var(--container);
  display: grid;
  gap: 14px;
  margin: 0 auto;
}

.category-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-dropdown-head span {
  display: block;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-dropdown-head strong {
  display: block;
  margin-top: 2px;
  font-size: 25px;
  line-height: 1.1;
}

.category-dropdown-head a {
  color: var(--orange-dark);
  font-weight: 800;
}

.category-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.category-dropdown-link,
.category-dropdown-group {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  color: #24303a;
  font-weight: 700;
  line-height: 1.18;
}

.category-dropdown-link {
  display: flex;
  align-items: center;
}

.category-dropdown-group {
  padding: 0;
  overflow: hidden;
}

.category-dropdown-group summary {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.category-dropdown-group summary::-webkit-details-marker {
  display: none;
}

.category-dropdown-group summary span {
  min-width: 0;
}

.category-dropdown-group summary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 220ms var(--ease-out);
}

.category-dropdown-group[open] summary svg {
  transform: rotate(180deg);
}

.category-dropdown-link:hover,
.category-dropdown-group:hover,
.category-dropdown-group[open] {
  border-color: rgba(255, 133, 0, 0.45);
  background: rgba(255, 133, 0, 0.08);
  color: var(--orange-dark);
}

.category-dropdown-children {
  max-height: 420px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  overflow: auto;
  padding: 0 10px 12px;
  animation: dropdownChildrenIn 180ms var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 133, 0, 0.42) rgba(226, 231, 237, 0.5);
}

.category-dropdown-children::-webkit-scrollbar {
  width: 6px;
}

.category-dropdown-children::-webkit-scrollbar-track {
  background: rgba(226, 231, 237, 0.5);
  border-radius: 999px;
}

.category-dropdown-children::-webkit-scrollbar-thumb {
  background: rgba(255, 133, 0, 0.42);
  border-radius: 999px;
}

.category-dropdown-children a {
  min-height: 0;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(215, 223, 232, 0.9);
  border-radius: 8px;
  background: #fff;
  color: #24303a;
  font-size: 12px;
  font-weight: 800;
}

.category-dropdown-children a:hover {
  border-color: rgba(255, 133, 0, 0.42);
  background: #fff7ed;
  color: var(--orange-dark);
}

.category-dropdown-children small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.category-dropdown-children .category-dropdown-all-link {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-dark);
}

@keyframes dropdownChildrenIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-shop {
  width: var(--container);
  min-height: 382px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin: 14px auto 0;
  padding: 48px 40px;
  border-radius: var(--radius);
  background-image:
    linear-gradient(90deg, rgba(16, 21, 26, 0.94) 0%, rgba(16, 21, 26, 0.78) 36%, rgba(16, 21, 26, 0.18) 68%, rgba(16, 21, 26, 0.08) 100%),
    url("https://restpy.ru/wp-content/uploads/2026/07/slider-restpy.png");
  background-size: cover;
  background-position: center calc(50% + var(--hero-parallax, 0px));
  color: #fff;
  box-shadow: 0 22px 60px rgba(18, 25, 33, 0.16);
  transition: box-shadow 320ms var(--ease-out), background-position 120ms linear;
}

.hero-shop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.1) 42%, transparent 58%),
    radial-gradient(circle at 26% 20%, rgba(255, 133, 0, 0.16), transparent 34%);
  opacity: 0;
  transform: translateX(-18%);
  transition: opacity 450ms var(--ease-out), transform 900ms var(--ease-out);
  pointer-events: none;
}

.hero-shop:hover {
  box-shadow: 0 28px 74px rgba(18, 25, 33, 0.22);
}

.hero-shop:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.hero-copy {
  width: min(560px, 100%);
  position: relative;
  z-index: 1;
}

.hero-kicker {
  width: max-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-shop h1 {
  margin: 0;
  font-size: clamp(38px, 4.7vw, 60px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-shop p:not(.hero-kicker) {
  max-width: 500px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms ease, background 200ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  transition: transform 220ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover svg {
  transform: translateX(3px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 16px 34px rgba(255, 133, 0, 0.32);
}

.button-primary:hover {
  box-shadow: 0 20px 42px rgba(255, 133, 0, 0.38);
}

.button-dark {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(17, 22, 28, 0.72);
  color: #fff;
}

.button-dark:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(17, 22, 28, 0.86);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-badges span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  transition: transform 220ms var(--ease-out), background 220ms ease;
}

.hero-badges span:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-badges svg {
  width: 15px;
  height: 15px;
}

.home-categories {
  width: var(--container);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 9px;
  margin: 12px auto 0;
}

.category-tile {
  min-height: 108px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  grid-template-rows: 1fr auto;
  column-gap: 8px;
  padding: 17px 10px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  isolation: isolate;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(255, 133, 0, 0.1), transparent 46%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.category-tile:hover,
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 133, 0, 0.45);
  box-shadow: var(--shadow);
}

.category-tile:hover::before {
  opacity: 1;
}

.category-tile span,
.category-tile img,
.category-tile svg {
  position: relative;
  z-index: 1;
}

.category-tile span {
  max-width: 112px;
  color: #171d24;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.16;
}

.category-tile svg {
  width: 20px;
  height: 20px;
  grid-column: 1;
  align-self: end;
  color: var(--ink);
  transition: transform 220ms var(--ease-out), color 220ms ease;
}

.product-photo::before,
.promo-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://restpy.ru/wp-content/uploads/2026/07/hero-restpy.png");
  background-repeat: no-repeat;
}

.category-tile img {
  display: none;
}

.category-tile:hover img {
  transform: translateX(3px) scale(1.05);
  filter: saturate(1.04) contrast(1.03);
}

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

.products-section,
.apach-offers,
.benefit-strip,
.brands-section,
.promo-banner,
.why-section,
.project-section {
  width: var(--container);
  margin: 28px auto 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-title-row h2,
.promo-banner h2,
.why-section h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
}

.section-title-row a {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-dark);
  font-weight: 800;
}

.section-title-row svg {
  width: 17px;
  height: 17px;
}

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

.product-card {
  min-width: 0;
  min-height: 286px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  isolation: isolate;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms ease;
}

.product-grid-static-real > .product-card:not(.product-card-real-static) {
  display: none;
}

.product-card::before {
  content: "";
  height: 3px;
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 133, 0, 0));
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: left center;
  transition: opacity 220ms ease, transform 260ms var(--ease-out);
}

.product-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.favorite {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  background: transparent;
  color: #9aa3ad;
  transition: color 180ms ease, transform 180ms var(--ease-out), background 180ms ease;
}

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

.favorite:hover {
  background: rgba(255, 133, 0, 0.08);
  color: var(--orange);
  transform: scale(1.08);
}

.favorite svg {
  width: 19px;
  height: 19px;
}

.product-badge {
  width: max-content;
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.product-badge.sale {
  background: var(--red);
}

.product-photo {
  height: 120px;
  position: relative;
  overflow: hidden;
  margin: 8px 0 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f7f8f9, #eef1f3);
}

.product-photo::before {
  inset: -50px -120px -40px -120px;
  background-size: 520px auto;
  filter: saturate(0.95) contrast(1.02);
  transition: transform 360ms var(--ease-out), filter 360ms ease;
  transform-origin: center;
}

.product-card:hover .product-photo::before {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.04);
}

.product-photo-oven::before {
  background-position: 62% 45%;
}

.product-photo-table::before {
  background-position: 70% 73%;
}

.product-photo-stove::before {
  background-position: 82% 62%;
}

.product-photo-washer::before {
  background-position: 16% 64%;
}

.product-photo-grinder::before {
  background-position: 54% 55%;
}

.product-photo-fridge::before {
  background-position: 98% 41%;
}

.product-card h3 {
  min-height: 52px;
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.22;
}

.product-card p {
  min-height: 38px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.product-card-link {
  display: block;
  position: static;
  color: inherit;
  text-decoration: none;
}

.product-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.product-card-link:hover h3 {
  color: var(--orange-dark);
}

.price-row button,
.price-row .cart-link,
.favorite,
.product-badge {
  z-index: 3;
}

.product-photo-real::before {
  display: none;
}

.product-photo-real img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 10px;
  mix-blend-mode: multiply;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.availability span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.price-row strong {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 7px;
  font-size: 19px;
  line-height: 1.08;
}

.price-row strong ins,
.catalog-product-bottom strong ins {
  color: #05080c;
  text-decoration: none;
  order: 1;
}

.price-row strong del,
.catalog-product-bottom strong del {
  color: #98a2ad;
  font-size: 13px;
  font-weight: 800;
  text-decoration-thickness: 1px;
  order: 2;
}

.price-row strong .woocommerce-Price-amount,
.catalog-product-bottom strong .woocommerce-Price-amount {
  white-space: nowrap;
}

.price-row button,
.price-row .cart-link {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  transition: transform 180ms var(--ease-out), background 180ms ease, box-shadow 180ms ease;
}

.price-row button:hover,
.price-row .cart-link:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 24px rgba(255, 133, 0, 0.28);
}

.price-row button:active,
.price-row .cart-link:active {
  transform: translateY(0) scale(0.98);
}

.price-row svg {
  width: 18px;
  height: 18px;
}

.apach-slider {
  min-height: 250px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #121920;
  color: #fff;
  box-shadow: 0 18px 44px rgba(18, 25, 33, 0.14);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.apach-slider:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(18, 25, 33, 0.2);
}

.apach-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  align-items: stretch;
  min-height: 250px;
}

.apach-slide.is-active {
  display: grid;
  animation: slideReveal 520ms var(--ease-out) both;
}

.apach-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 34px 38px;
}

.apach-copy span {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 133, 0, 0.14);
  color: #ffad4d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.apach-copy h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.02;
}

.apach-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
}

.apach-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

.apach-meta strong {
  color: var(--orange);
  font-size: 28px;
  line-height: 1;
}

.apach-meta small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.apach-copy .button {
  width: max-content;
  margin-top: 6px;
}

.apach-visual {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  background:
    linear-gradient(90deg, rgba(18, 25, 32, 0.6), rgba(18, 25, 32, 0.08)),
    url("https://restpy.ru/wp-content/uploads/2026/07/hero-restpy.png");
  background-size: 860px auto;
  background-repeat: no-repeat;
  transform: translateY(var(--apach-parallax, 0px));
  transition: transform 420ms var(--ease-out), filter 420ms ease;
}

.apach-slider:hover .apach-visual {
  filter: saturate(1.08) contrast(1.04);
}

.apach-visual::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.apach-visual-wash {
  background-position: 16% 61%;
}

.apach-visual-hot {
  background-position: 82% 62%;
}

.apach-visual-kit {
  background-position: 66% 45%;
}

.alto-offer-card {
  min-height: 320px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 133, 0, 0.24), transparent 28%),
    linear-gradient(135deg, #10161d 0%, #171f28 48%, #080b0f 100%);
}

.alto-offer-slide {
  min-height: 320px;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
}

.alto-offer-copy {
  gap: 14px;
  padding: 38px 42px;
}

.alto-offer-copy h2 {
  max-width: 720px;
}

.alto-offer-copy p {
  max-width: 620px;
}

.alto-offer-price {
  display: grid;
  align-items: start;
  gap: 4px;
}

.alto-offer-price strong {
  font-size: clamp(32px, 4vw, 52px);
}

.alto-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.alto-offer-visual {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(18, 25, 32, 0.42), rgba(18, 25, 32, 0)),
    #0c1015;
}

.alto-offer-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.alto-offer-visual::after {
  inset: 18px;
}

.apach-controls {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.apach-slider-button,
.apach-dots button {
  border: 0;
}

.apach-slider-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: transform 180ms var(--ease-out), background 180ms ease;
}

.apach-slider-button:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.apach-slider-button svg {
  width: 18px;
  height: 18px;
}

.apach-dots {
  display: inline-flex;
  gap: 7px;
}

.apach-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: width 220ms var(--ease-out), background 220ms ease, transform 220ms var(--ease-out);
}

.apach-dots button.is-active {
  width: 24px;
  background: var(--orange);
}

.apach-dots button:hover {
  transform: scale(1.18);
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.benefit-strip div {
  min-height: 96px;
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-content: center;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  transition: transform 220ms var(--ease-out), background 220ms ease;
}

.benefit-strip div:last-child {
  border-right: 0;
}

.benefit-strip svg {
  width: 42px;
  height: 42px;
  grid-row: 1 / 3;
  color: var(--ink);
  transition: transform 240ms var(--ease-out), color 220ms ease;
}

.benefit-strip div:hover {
  transform: translateY(-3px);
  background: #fbfcfd;
}

.benefit-strip div:hover svg {
  color: var(--orange-dark);
  transform: translateY(-2px) scale(1.05);
}

.benefit-strip strong {
  font-size: 16px;
  line-height: 1.1;
}

.benefit-strip span {
  color: var(--muted);
  font-size: 12px;
}

.brand-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
}

.brand-row span {
  display: grid;
  place-items: center;
  min-height: 46px;
  color: #707780;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  filter: grayscale(1);
  opacity: 0.72;
  transition: opacity 220ms ease, transform 220ms var(--ease-out), filter 220ms ease;
}

.brand-row span:hover {
  opacity: 1;
  transform: translateY(-3px);
  filter: grayscale(0);
}

.promo-banner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #121920;
  color: #fff;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(18, 25, 33, 0.16);
}

.promo-image {
  height: 76px;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #202a34;
}

.promo-image::before {
  inset: -130px -220px -80px -220px;
  background-size: 620px auto;
  background-position: 70% 48%;
  transition: transform 420ms var(--ease-out);
}

.promo-banner:hover .promo-image::before {
  transform: scale(1.04);
}

.promo-banner h2 {
  font-size: 25px;
}

.promo-banner p {
  max-width: 620px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.promo-banner > strong {
  min-width: 92px;
  min-height: 64px;
  display: grid;
  place-items: center;
  border-radius: 8px 8px 8px 0;
  background: var(--orange);
  font-size: 30px;
  line-height: 1;
}

.why-section {
  margin-bottom: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.why-grid div {
  min-height: 78px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms ease;
}

.why-grid div:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 133, 0, 0.38);
  box-shadow: var(--shadow);
}

.why-grid span {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.why-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.project-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 44px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius);
  background: #141b22;
  color: #fff;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.project-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(18, 25, 33, 0.2);
}

.project-copy p {
  margin: 0 0 10px;
  color: #7f8fa3;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-copy h2 {
  max-width: 470px;
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.project-copy span {
  display: block;
  max-width: 430px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.project-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.project-section:hover .project-form {
  transform: translateY(-2px);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.24);
}

.project-form label {
  display: grid;
  gap: 8px;
}

.project-form label span {
  color: #26313d;
  font-size: 13px;
  font-weight: 800;
}

.project-form select,
.project-form input:not([type="range"]) {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d8e0e8;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.project-form select:focus,
.project-form input:not([type="range"]):focus {
  border-color: rgba(255, 133, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 133, 0, 0.12);
}

.project-form input[type="range"] {
  width: 100%;
  height: 6px;
  accent-color: var(--orange);
}

.project-form button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(255, 133, 0, 0.24);
  transition: transform 200ms var(--ease-out), background 200ms ease, box-shadow 200ms ease;
}

.project-form button:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(255, 133, 0, 0.28);
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 760ms var(--ease-out),
    transform 760ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-ready [data-reveal="scale"] {
  transform: translate3d(0, 18px, 0) scale(0.985);
}

.motion-ready [data-reveal="scale"].is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes slideReveal {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  margin-top: 28px;
  background: #141b22;
  color: #fff;
}

.footer-inner {
  width: var(--container);
  display: grid;
  grid-template-columns: minmax(230px, 1.45fr) repeat(3, minmax(150px, 1fr)) minmax(200px, 1.1fr);
  gap: 36px;
  margin: 0 auto;
  padding: 34px 0 28px;
}

.footer-logo-text {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.footer-logo-text span {
  color: var(--orange);
}

.footer-brand p {
  max-width: 260px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-legal {
  display: grid;
  gap: 5px;
  max-width: 310px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-legal strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.35;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.socials svg {
  width: 18px;
  height: 18px;
}

.footer-column,
.footer-contacts {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-column strong,
.footer-contacts strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.footer-column a,
.footer-contacts a,
.footer-contacts span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-column a:hover,
.footer-contacts a:hover {
  color: #fff;
}

.footer-contacts {
  font-style: normal;
}

.callback {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 133, 0, 0.52);
}

.callback svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  width: var(--container);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .topbar-links {
    display: none;
  }

  .main-header {
    grid-template-columns: 116px 174px minmax(240px, 1fr) auto;
  }

  .header-actions a span {
    display: none;
  }

  .home-categories,
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .apach-slide {
    grid-template-columns: 1fr;
  }

  .apach-visual {
    min-height: 210px;
    order: -1;
  }

  .benefit-strip,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .promo-banner {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .project-section {
    grid-template-columns: 1fr;
  }

  .promo-banner > strong,
  .promo-banner .button {
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100vw - 24px, 1240px);
  }

  .topbar-inner {
    min-height: 42px;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .topbar-inner > span {
    display: none;
  }

  .topbar-contacts {
    gap: 14px;
  }

  .city-dropdown {
    left: 0;
    transform: translateY(8px);
  }

  .city-selector.is-open .city-dropdown {
    transform: translateY(0);
  }

  .main-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 12px 0;
  }

  .logo img {
    width: 104px;
  }

  .catalog-button,
  .header-actions,
  .category-strip {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .search {
    grid-column: 1 / -1;
    order: 5;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .category-dropdown {
    display: none;
  }

  .hero-shop {
    min-height: 520px;
    padding: 28px;
    background-position: 62% center;
  }

  .hero-shop h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .home-categories,
  .product-grid,
  .benefit-strip,
  .brand-row,
  .why-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .apach-copy {
    padding: 28px;
  }

  .apach-controls {
    right: 18px;
    bottom: 18px;
  }

  .category-dropdown-grid {
    grid-template-columns: 1fr;
  }

  .benefit-strip div:nth-child(2n) {
    border-right: 0;
  }

  .promo-banner {
    grid-template-columns: 1fr;
  }

  .project-section {
    padding: 28px;
  }

  .promo-image {
    display: none;
  }

  .footer-bottom {
    flex-wrap: wrap;
    padding: 14px 0;
  }
}

@media (max-width: 560px) {
  .topbar-contacts {
    flex-direction: column;
    gap: 4px;
  }

  .city-dropdown {
    left: 50%;
    transform: translate(-50%, 8px);
  }

  .city-selector.is-open .city-dropdown {
    transform: translate(-50%, 0);
  }

  .city-dropdown-head {
    display: grid;
    gap: 4px;
  }

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

  .hero-shop {
    min-height: 600px;
    padding: 22px;
  }

  .hero-actions,
  .hero-actions .button,
  .home-categories,
  .product-grid,
  .benefit-strip,
  .brand-row,
  .why-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .apach-copy {
    padding: 24px;
  }

  .apach-copy .button {
    width: 100%;
  }

  .apach-meta {
    display: grid;
    gap: 4px;
  }

  .apach-controls {
    position: static;
    justify-content: center;
    padding: 0 0 20px;
  }

  .hero-actions .button,
  .promo-banner .button {
    width: 100%;
  }

  .section-title-row {
    display: grid;
  }

  .section-title-row h2,
  .promo-banner h2,
  .why-section h2 {
    font-size: 24px;
  }

  .project-section {
    padding: 22px;
  }

  .project-copy h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .benefit-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .benefit-strip div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-progress {
    display: none;
  }
}

/* WordPress media asset override */
.logo {
  font-size: 0;
}

.logo::before,
.logo::after {
  content: none;
}

.logo img {
  display: block;
  width: 110px;
}

.category-tile {
  grid-template-columns: minmax(0, 1fr) 82px;
}

.category-tile img {
  width: 82px;
  height: 70px;
  display: block;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  transition: transform 260ms var(--ease-out), filter 260ms ease;
}

/* Product category page */
.catalog-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 2%, rgba(255, 133, 0, 0.08), transparent 30%),
    linear-gradient(180deg, #fff 0, #f4f6f8 390px, #f4f6f8 100%);
}

.catalog-site-header {
  position: sticky;
}

.catalog-strip {
  width: var(--container);
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line);
}

.catalog-strip::-webkit-scrollbar {
  display: none;
}

.catalog-strip a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  color: #4d5865;
  font-size: 12px;
  font-weight: 800;
  transition: color 220ms var(--ease-out), background 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.catalog-strip a span {
  color: var(--orange);
  font-size: 11px;
}

.catalog-strip a:hover,
.catalog-strip a.is-active {
  background: #fff4e8;
  color: var(--ink);
  transform: translateY(-1px);
}

.catalog-subcategory-strip {
  border-top: 1px solid rgba(226, 231, 237, 0.78);
  background: rgba(255, 255, 255, 0.98);
}

.catalog-subcategory-inner {
  width: var(--container);
  min-height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  overflow: visible;
}

.catalog-subcategory-label {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.catalog-subcategory-list {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  padding: 7px 0;
  scrollbar-width: none;
}

.catalog-subcategory-list::-webkit-scrollbar {
  display: none;
}

.catalog-subcategory-list a {
  min-height: 34px;
  min-width: 0;
  max-width: min(190px, 24vw);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(226, 231, 237, 0.92);
  border-radius: 999px;
  background: #fff;
  color: #3f4a56;
  font-size: 12px;
  font-weight: 850;
  transition: color 190ms ease, border-color 190ms ease, background 190ms ease, transform 190ms var(--ease-out);
}

.catalog-subcategory-list a:hover,
.catalog-subcategory-list a.is-active {
  border-color: rgba(255, 133, 0, 0.42);
  background: #fff4e8;
  color: var(--ink);
  transform: translateY(-1px);
}

.catalog-subcategory-list span {
  flex: 0 0 auto;
  color: var(--orange);
  font-weight: 900;
}

.catalog-subcategory-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-subcategory-list small {
  min-width: 22px;
  min-height: 22px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #f0f3f6;
  color: #687482;
  font-size: 11px;
  font-weight: 900;
}

.catalog-subcategory-list a.is-active small,
.catalog-subcategory-list a:hover small {
  background: rgba(255, 133, 0, 0.14);
  color: var(--orange-dark);
}

.catalog-subcategory-more {
  position: relative;
  flex: 0 0 auto;
}

.catalog-subcategory-more-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(226, 231, 237, 0.96);
  border-radius: 999px;
  background: #fff;
  color: #24303a;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(17, 22, 28, 0.06);
  transition: color 190ms ease, border-color 190ms ease, background 190ms ease, transform 190ms var(--ease-out);
}

.catalog-subcategory-more-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}

.catalog-subcategory-more-button:hover,
.catalog-subcategory-more.is-open .catalog-subcategory-more-button {
  border-color: rgba(255, 133, 0, 0.45);
  background: #fff4e8;
  color: var(--ink);
  transform: translateY(-1px);
}

.catalog-subcategory-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 42;
  width: min(360px, calc(100vw - 32px));
  max-height: min(440px, calc(100vh - 220px));
  display: none;
  gap: 7px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(215, 223, 232, 0.96);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 70px rgba(17, 22, 28, 0.18);
  backdrop-filter: blur(14px);
}

.catalog-subcategory-more.is-open .catalog-subcategory-menu {
  display: grid;
  animation: dropdownChildrenIn 180ms var(--ease-out);
}

.catalog-subcategory-menu a {
  width: 100%;
  max-width: none;
  min-width: 0;
  justify-content: space-between;
  border-radius: 10px;
  background: #f8fafc;
}

.catalog-subcategory-menu a strong {
  white-space: normal;
}

.catalog-page {
  width: var(--container);
  margin: 24px auto 70px;
}

.catalog-hero {
  position: relative;
  isolation: isolate;
  min-height: 282px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: stretch;
  overflow: hidden;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(9, 13, 18, 0.94) 0%, rgba(9, 13, 18, 0.76) 42%, rgba(9, 13, 18, 0.2) 78%, rgba(9, 13, 18, 0.08) 100%),
    var(--catalog-hero-bg, url("https://restpy.ru/wp-content/uploads/2026/07/hero-restpy.png")) center / cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow);
}

.catalog-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.catalog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

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

.catalog-hero .eyebrow,
.catalog-toolbar .eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.catalog-hero p {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.catalog-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.catalog-hero-meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.catalog-jump-panel {
  display: none;
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.catalog-jump-panel label,
.filter-field span,
.catalog-sort-form label {
  display: block;
  margin-bottom: 8px;
  color: #3d4652;
  font-size: 13px;
  font-weight: 900;
}

.catalog-jump-panel select,
.filter-field input,
.filter-field select,
.catalog-sort-form select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d7dfe8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  outline: 0;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.catalog-jump-panel select:focus,
.filter-field input:focus,
.filter-field select:focus,
.catalog-sort-form select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 133, 0, 0.14);
}

.catalog-category-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.catalog-category-row-bottom {
  margin-top: 34px;
}

.catalog-mini-category {
  min-height: 106px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 22, 28, 0.04);
  transition: transform 260ms var(--ease-out), border-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.catalog-mini-category:hover,
.catalog-mini-category.is-active {
  transform: translateY(-4px);
  border-color: rgba(255, 133, 0, 0.45);
  box-shadow: 0 18px 36px rgba(17, 22, 28, 0.11);
}

.catalog-mini-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.catalog-mini-copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
}

.catalog-mini-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.catalog-mini-category img {
  width: 82px;
  height: 72px;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 280ms var(--ease-out);
}

.catalog-mini-category:hover img {
  transform: scale(1.06);
}

.category-tile img,
.catalog-mini-category img {
  filter: grayscale(1) saturate(0) contrast(1.08);
  mix-blend-mode: multiply;
}

.category-tile:hover img,
.catalog-mini-category:hover img {
  filter: grayscale(1) saturate(0) contrast(1.14);
}

.catalog-workspace {
  display: grid;
  grid-template-columns: 294px minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.catalog-filter-panel {
  position: sticky;
  top: 138px;
}

.catalog-filter-form {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(17, 22, 28, 0.08);
}

.filter-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.filter-title-row h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1;
}

.filter-title-row a {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.filter-field {
  display: block;
  margin-bottom: 15px;
}

.filter-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(255, 133, 0, 0.24);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background 220ms var(--ease-out);
}

.filter-submit:hover {
  transform: translateY(-2px);
  background: var(--orange-dark);
  box-shadow: 0 18px 36px rgba(255, 133, 0, 0.31);
}

.catalog-results {
  min-width: 0;
}

.catalog-toolbar {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.catalog-toolbar h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.catalog-sort-form {
  min-width: 246px;
}

.catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catalog-product-card {
  min-height: 392px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 22, 28, 0.05);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
}

.catalog-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 133, 0, 0.4);
  box-shadow: 0 24px 44px rgba(17, 22, 28, 0.12);
}

.catalog-product-thumb {
  height: 190px;
  display: grid;
  place-items: center;
  margin: 14px 14px 0;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2f4f6, #ffffff);
}

.catalog-product-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 14px;
  transition: transform 300ms var(--ease-out);
}

.catalog-product-card:hover .catalog-product-thumb img {
  transform: scale(1.045);
}

.catalog-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 0;
}

.catalog-product-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.catalog-product-title:hover {
  color: var(--orange-dark);
}

.catalog-product-info p {
  min-height: 40px;
  margin: 8px 0 0;
  color: #66717f;
  font-size: 13px;
}

.catalog-product-meta {
  min-height: 18px;
  margin-top: 10px;
  color: #8290a0;
  font-size: 12px;
  font-weight: 700;
}

.catalog-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.catalog-stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.catalog-stock.is-preorder {
  color: #9a6a00;
}

.catalog-product-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 16px;
}

.catalog-product-bottom strong {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  color: #05080c;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.08;
}

.catalog-cart-button {
  min-width: 48px;
  height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 0;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(255, 133, 0, 0.22);
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.catalog-cart-button svg {
  width: 19px;
  height: 19px;
}

.catalog-cart-button:hover {
  transform: translateY(-2px);
  background: var(--orange-dark);
  box-shadow: 0 16px 30px rgba(255, 133, 0, 0.3);
}

.cart-link.is-loading,
.catalog-cart-button.is-loading,
.restpy-product-cart.is-loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
}

.cart-link.is-loading::after,
.catalog-cart-button.is-loading::after,
.restpy-product-cart.is-loading::after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  inset: 0;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 999px;
  animation: restpy-spin 720ms linear infinite;
}

.cart-link.is-added,
.catalog-cart-button.is-added,
.restpy-product-cart.is-added {
  background: #16a34a !important;
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.28) !important;
}

.cart-link.is-error,
.catalog-cart-button.is-error,
.restpy-product-cart.is-error {
  background: #dc2626 !important;
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.24) !important;
}

.catalog-product-card.is-cart-added,
.product-card.is-cart-added,
.restpy-product-summary.is-cart-added,
.restpy-product-hero.is-cart-added {
  animation: restpy-card-added 780ms var(--ease-out);
}

.cart-action.is-cart-bumping::after {
  animation: restpy-cart-bump 520ms var(--ease-out);
}

.restpy-cart-fly {
  width: 14px;
  height: 14px;
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(255, 128, 0, 0.45);
  transform: translate(-50%, -50%) scale(1);
  animation: restpy-cart-fly 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes restpy-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes restpy-card-added {
  0% {
    box-shadow: 0 0 0 rgba(22, 163, 74, 0);
  }
  35% {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18), 0 24px 48px rgba(15, 23, 42, 0.12);
  }
  100% {
    box-shadow: 0 0 0 rgba(22, 163, 74, 0);
  }
}

@keyframes restpy-cart-bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.32);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes restpy-cart-fly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--cart-fly-x)), calc(-50% + var(--cart-fly-y))) scale(0.35);
  }
}

.catalog-empty {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    url("https://restpy.ru/wp-content/uploads/2026/07/slider-restpy.png") center / cover no-repeat;
  text-align: center;
  box-shadow: 0 14px 32px rgba(17, 22, 28, 0.07);
}

.catalog-empty span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff2e4;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-empty h3 {
  max-width: 620px;
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
}

.catalog-empty p {
  max-width: 620px;
  margin: 0;
  color: #5f6b78;
  font-size: 15px;
}

.catalog-empty a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.catalog-pagination {
  margin-top: 26px;
}

.catalog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.catalog-pagination a,
.catalog-pagination span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.catalog-pagination .current,
.catalog-pagination a:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

/* Support pages */
.support-body {
  background:
    radial-gradient(circle at 82% 4%, rgba(255, 133, 0, 0.08), transparent 32%),
    linear-gradient(180deg, #fff 0, #f4f6f8 430px, #f4f6f8 100%);
}

.support-page {
  width: var(--container);
  margin: 24px auto 70px;
}

.support-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 30px;
  align-items: stretch;
  overflow: hidden;
  padding: 34px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 133, 0, 0.18), transparent 32%),
    linear-gradient(135deg, #11161c 0%, #151b22 55%, #222a33 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.support-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.support-breadcrumbs {
  margin-bottom: 34px;
}

.support-hero .eyebrow,
.support-text-panel .eyebrow,
.support-steps-panel .eyebrow,
.support-image-band .eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-hero h1 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.support-hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.support-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}

.support-actions a.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 16px 34px rgba(255, 133, 0, 0.32);
}

.support-actions a.secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

.support-actions a:hover {
  transform: translateY(-2px);
}

.support-actions a.primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 18px 38px rgba(255, 133, 0, 0.42);
}

.support-actions a.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.support-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 34px;
}

.support-stat-row span {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
}

.support-stat-row strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.support-hero-media {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.22);
}

.support-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.05);
}

.support-media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(17, 22, 28, 0.78);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.support-media-caption strong {
  color: #fff;
  font-size: 16px;
}

.support-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.support-card {
  min-height: 188px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 22, 28, 0.06);
  transition: transform 240ms var(--ease-out), box-shadow 240ms ease, border-color 240ms ease;
}

.support-card:hover {
  border-color: rgba(255, 133, 0, 0.34);
  box-shadow: 0 20px 42px rgba(17, 22, 28, 0.1);
  transform: translateY(-3px);
}

.support-card img {
  width: 118px;
  height: 104px;
  grid-column: 2;
  grid-row: 1;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1) contrast(1.04);
  transition: transform 260ms var(--ease-out), filter 260ms ease;
}

.support-card:hover img {
  filter: grayscale(0.28) contrast(1.04);
  transform: translateY(-4px) scale(1.03);
}

.support-card span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff2e4;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.support-card p {
  margin: 10px 0 0;
  color: #607080;
  font-size: 14px;
}

.support-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 16px;
  margin-top: 16px;
}

.support-text-panel,
.support-steps-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 22, 28, 0.06);
}

.support-text-panel h2,
.support-steps-panel h2,
.support-image-band h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.06;
}

.support-text-panel p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #5f6b78;
  font-size: 15px;
}

.support-steps {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: support-step;
}

.support-steps li {
  min-height: 78px;
  position: relative;
  display: grid;
  gap: 5px;
  padding: 15px 16px 15px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  counter-increment: support-step;
}

.support-steps li::before {
  content: counter(support-step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 16px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.support-steps strong {
  font-size: 15px;
  font-weight: 900;
}

.support-steps span {
  color: #627080;
}

.support-image-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
  margin-top: 16px;
  overflow: hidden;
  padding: 22px;
  border-radius: 8px;
  background: #11161c;
  color: #fff;
  box-shadow: var(--shadow);
}

.support-image-band img {
  width: 100%;
  height: 260px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.05);
}

.support-image-band p:not(.eyebrow) {
  max-width: 650px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.support-image-band a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(255, 133, 0, 0.28);
  transition: transform 220ms var(--ease-out), background 220ms ease;
}

.support-image-band a:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.city-page {
  margin-bottom: 32px;
}

.city-hero .support-hero-media img {
  object-position: center;
}

.city-card-grid .support-card {
  min-height: 204px;
}

.city-catalog-section,
.city-links-section {
  margin-top: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 22, 28, 0.06);
}

.city-catalog-section .section-title-row,
.city-links-section .section-title-row {
  margin: 0 0 20px;
}

.city-catalog-section .eyebrow,
.city-links-section .eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.city-category-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.city-category-list a {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 133, 0, 0.06), transparent 42%),
    #fbfcfd;
  color: var(--ink);
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.city-category-list a:hover {
  border-color: rgba(255, 133, 0, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 133, 0, 0.12), transparent 48%),
    #fff;
  box-shadow: 0 18px 36px rgba(17, 22, 28, 0.1);
  transform: translateY(-3px);
}

.city-category-list span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.city-category-list strong {
  font-size: 18px;
  line-height: 1.08;
}

.city-category-list em {
  color: #697584;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.city-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-link-grid a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfd;
  color: #354150;
  font-size: 13px;
  font-weight: 900;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.city-link-grid a:hover,
.city-link-grid a.is-active {
  border-color: rgba(255, 133, 0, 0.42);
  background: #fff2e4;
  color: var(--orange-dark);
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .support-hero {
    grid-template-columns: 1fr;
  }

  .support-hero-media img {
    min-height: 300px;
  }

  .support-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .support-content-grid,
  .support-image-band {
    grid-template-columns: 1fr;
  }

  .support-stat-row {
    grid-template-columns: 1fr;
  }

  .city-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .support-page {
    width: min(100% - 24px, 520px);
    margin-top: 14px;
  }

  .support-hero {
    padding: 24px;
  }

  .support-hero h1 {
    font-size: 38px;
  }

  .support-card-grid {
    grid-template-columns: 1fr;
  }

  .support-card {
    grid-template-columns: minmax(0, 1fr) 96px;
    padding: 18px;
  }

  .support-card img {
    width: 96px;
    height: 92px;
  }

  .city-catalog-section,
  .city-links-section {
    padding: 20px;
  }

  .city-category-list {
    grid-template-columns: 1fr;
  }

  .support-text-panel,
  .support-steps-panel {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .support-actions {
    display: grid;
  }

  .support-hero-media img,
  .support-image-band img {
    height: 220px;
    min-height: 220px;
  }

  .support-text-panel h2,
  .support-steps-panel h2,
  .support-image-band h2 {
    font-size: 28px;
  }
}

@media (max-width: 1180px) {
  .catalog-category-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .catalog-hero {
    grid-template-columns: 1fr;
  }

  .catalog-jump-panel {
    max-width: 460px;
    align-self: start;
  }

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

  .catalog-filter-panel {
    position: static;
  }

  .catalog-filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .filter-title-row,
  .filter-submit {
    grid-column: 1 / -1;
  }

  .filter-field {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .catalog-page {
    width: min(100% - 24px, 520px);
    margin-top: 14px;
  }

  .catalog-subcategory-inner {
    width: calc(100% - 24px);
    min-height: 46px;
    gap: 0;
  }

  .catalog-subcategory-label {
    display: none;
  }

  .catalog-subcategory-list {
    width: 100%;
  }

  .catalog-hero {
    padding: 24px;
  }

  .catalog-hero h1 {
    font-size: 38px;
  }

  .catalog-category-row,
  .catalog-product-grid,
  .catalog-filter-form {
    grid-template-columns: 1fr;
  }

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

  .catalog-sort-form {
    min-width: 0;
  }

  .catalog-product-thumb {
    height: 210px;
  }
}

@media (max-width: 520px) {
  .catalog-hero-meta {
    display: grid;
  }

  .filter-price-row {
    grid-template-columns: 1fr;
  }
}

.restpy-commerce-body {
  background: #f5f6f8;
}

.restpy-commerce-body .catalog-site-header {
  z-index: 220;
}

.restpy-commerce-body .catalog-site-header .main-header {
  min-height: 64px;
}

.restpy-commerce-body .catalog-site-header .catalog-button {
  min-height: 48px;
  height: 48px;
  align-self: center;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.12;
  white-space: normal;
}

.restpy-commerce-body .catalog-site-header .catalog-button svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.restpy-commerce-body .catalog-site-header .category-dropdown {
  z-index: 900;
}

@media (max-width: 820px) {
  .restpy-commerce-body .catalog-site-header .main-header {
    min-height: auto;
  }

  .restpy-commerce-body .catalog-site-header .catalog-button {
    min-height: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1.1;
  }
}

@media (max-width: 560px) {
  .restpy-commerce-body .catalog-site-header .catalog-button {
    justify-content: center;
    padding: 0 10px;
  }
}

.restpy-commerce-page {
  width: var(--container);
  margin: 24px auto 70px;
}

.commerce-hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 22, 28, 0.92), rgba(17, 22, 28, 0.58)),
    url("./assets/slider-restpy.png") center / cover no-repeat;
  color: #fff;
  box-shadow: 0 18px 44px rgba(18, 25, 33, 0.12);
}

.commerce-hero .catalog-breadcrumbs {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
}

.commerce-hero h1 {
  max-width: 720px;
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.commerce-hero p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.commerce-hero-card {
  align-self: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}

.commerce-hero-card span,
.commerce-hero-card small {
  display: block;
  color: #6b7480;
  font-weight: 700;
}

.commerce-hero-card strong {
  display: block;
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.15;
}

.commerce-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 22px;
}

.commerce-layout-cart {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.commerce-side,
.commerce-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 25, 33, 0.06);
}

.commerce-side {
  position: sticky;
  top: 138px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.commerce-side-link,
.commerce-side-cta {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 7px;
  color: #3f4a57;
  font-weight: 800;
}

.commerce-side-link:hover,
.commerce-side-link.is-active {
  background: #fff4e8;
  color: var(--ink);
}

.commerce-side-cta {
  justify-content: center;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.22);
}

.commerce-panel {
  min-height: 360px;
  padding: 24px;
  overflow: hidden;
}

.commerce-panel .woocommerce {
  max-width: none;
}

.commerce-panel .woocommerce-MyAccount-navigation {
  display: none;
}

.commerce-panel .woocommerce-MyAccount-content {
  width: 100%;
  float: none;
}

.commerce-panel .woocommerce form.login,
.commerce-panel .woocommerce form.register,
.commerce-panel .woocommerce form.checkout_coupon {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.commerce-panel .woocommerce input.input-text,
.commerce-panel .woocommerce textarea,
.commerce-panel .woocommerce select {
  min-height: 44px;
  border: 1px solid #d7dee7;
  border-radius: 7px;
  padding: 0 12px;
}

.commerce-panel .woocommerce button.button,
.commerce-panel .woocommerce a.button,
.commerce-panel .woocommerce input.button,
.commerce-panel .checkout-button {
  border-radius: 7px;
  background: var(--orange) !important;
  color: #fff !important;
  font-weight: 900;
}

.commerce-cart-panel table.shop_table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.commerce-cart-panel table.shop_table th {
  background: #f6f7f7;
  color: #3f4a57;
}

.commerce-cart-panel .product-thumbnail img {
  width: 78px;
  border-radius: 7px;
}

.commerce-cart-help {
  padding: 18px;
}

.commerce-cart-help strong {
  font-size: 18px;
}

.commerce-cart-help p {
  margin: 8px 0 10px;
  color: #66717f;
}

.restpy-cart-page .commerce-hero {
  min-height: 118px;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  padding: 18px 30px;
}

.restpy-cart-page .commerce-hero .catalog-breadcrumbs {
  margin-bottom: 10px;
}

.restpy-cart-page .commerce-hero .eyebrow {
  margin-bottom: 4px;
}

.restpy-cart-page .commerce-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(36px, 3.8vw, 48px);
  line-height: 1;
}

.restpy-cart-page .commerce-hero p {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.35;
}

.restpy-cart-page .commerce-hero-card {
  padding: 14px 16px;
}

.restpy-cart-page .commerce-hero-card strong {
  margin: 5px 0 6px;
  font-size: 21px;
}

.restpy-cart-page .commerce-hero-card small,
.restpy-cart-page .commerce-hero-card .amount {
  white-space: nowrap;
}

.restpy-account-page .account-hero {
  min-height: 118px;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px 30px;
}

.restpy-account-page .account-hero .catalog-breadcrumbs {
  margin-bottom: 10px;
}

.restpy-account-page .account-hero .eyebrow {
  margin-bottom: 4px;
}

.restpy-account-page .account-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1;
}

.restpy-account-page .account-hero p {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.35;
}

.restpy-account-page .account-hero .commerce-hero-card {
  padding: 14px 16px;
}

.restpy-account-page .account-hero .commerce-hero-card strong {
  margin: 5px 0 6px;
  font-size: 20px;
}

.account-dashboard {
  display: grid;
  gap: 18px;
}

.account-welcome-card,
.account-orders-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.08), rgba(255, 255, 255, 0)),
    #fff;
}

.account-welcome-card .eyebrow,
.account-section-heading .eyebrow {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-welcome-card h2,
.account-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1;
}

.account-welcome-card p {
  margin: 8px 0 0;
  color: #66717f;
  line-height: 1.5;
}

.account-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.account-quick-actions a,
.account-order-actions a,
.account-orders-empty a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.account-quick-actions a,
.account-order-actions a {
  border: 1px solid #d9e1ea;
  color: var(--ink);
  background: #fff;
}

.account-quick-actions a:first-child,
.account-order-actions a:first-child,
.account-orders-empty a {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.2);
}

.account-quick-actions a:hover,
.account-order-actions a:hover,
.account-orders-empty a:hover {
  transform: translateY(-1px);
}

.account-orders-card {
  padding: 22px;
}

.account-section-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.account-section-heading > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff4e8;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

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

.account-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e5ebf2;
  border-radius: 8px;
  background: #fbfcfd;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.account-order-row:hover {
  border-color: rgba(255, 122, 0, 0.34);
  box-shadow: 0 14px 32px rgba(18, 25, 33, 0.08);
  transform: translateY(-1px);
}

.account-order-main {
  min-width: 0;
}

.account-order-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.account-order-title strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.account-order-title span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #e9f8ef;
  color: #118847;
  font-size: 12px;
  font-weight: 900;
}

.account-order-main p {
  display: -webkit-box;
  margin: 0;
  color: #4c5a68;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.account-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: #728091;
  font-size: 13px;
  font-weight: 700;
}

.account-order-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef2f6;
}

.account-order-side {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.account-order-side > strong,
.account-order-side .amount {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
}

.account-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.account-orders-empty {
  padding: 28px;
  border: 1px dashed #d5dde7;
  border-radius: 8px;
  background: #fbfcfd;
}

.account-orders-empty h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 24px;
}

.account-orders-empty p {
  margin: 0 0 16px;
  color: #66717f;
}

.commerce-cart-panel {
  padding: 24px;
}

.commerce-cart-panel .woocommerce {
  padding: 0;
}

.commerce-cart-panel .woocommerce-cart-form {
  margin: 0;
}

.commerce-cart-panel .woocommerce-cart-form__contents {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.commerce-cart-panel .woocommerce-cart-form__contents th,
.commerce-cart-panel .woocommerce-cart-form__contents td {
  vertical-align: middle;
}

.commerce-cart-panel .woocommerce-cart-form__contents th {
  padding: 12px 10px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0;
}

.commerce-cart-panel .woocommerce-cart-form__contents td {
  padding: 14px 10px;
  border-top: 1px solid var(--line);
}

.commerce-cart-panel .woocommerce-cart-form__contents th.product-remove,
.commerce-cart-panel .woocommerce-cart-form__contents td.product-remove {
  width: 42px;
  padding-inline: 8px;
  text-align: center;
}

.commerce-cart-panel .woocommerce-cart-form__contents th.product-thumbnail,
.commerce-cart-panel .woocommerce-cart-form__contents td.product-thumbnail {
  width: 96px;
  text-align: center;
}

.commerce-cart-panel .woocommerce-cart-form__contents th.product-remove,
.commerce-cart-panel .woocommerce-cart-form__contents th.product-thumbnail {
  font-size: 0;
}

.commerce-cart-panel .woocommerce-cart-form__contents th.product-price,
.commerce-cart-panel .woocommerce-cart-form__contents td.product-price {
  width: 118px;
  text-align: right;
}

.commerce-cart-panel .woocommerce-cart-form__contents th.product-quantity,
.commerce-cart-panel .woocommerce-cart-form__contents td.product-quantity {
  width: 122px;
  text-align: center;
}

.commerce-cart-panel .woocommerce-cart-form__contents th.product-subtotal,
.commerce-cart-panel .woocommerce-cart-form__contents td.product-subtotal {
  width: 128px;
  text-align: right;
}

.commerce-cart-panel .woocommerce-cart-form__contents td.product-name {
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

.commerce-cart-panel .woocommerce-cart-form__contents td.product-name a {
  display: inline;
  overflow-wrap: anywhere;
}

.commerce-cart-panel .woocommerce-cart-form__contents .amount {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 900;
}

.commerce-cart-panel .woocommerce-cart-form__contents .product-remove a.remove {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffd6b0;
  border-radius: 999px;
  background: #fff8f0;
  color: var(--orange-dark) !important;
  font-size: 19px;
  line-height: 1;
}

.commerce-cart-panel .woocommerce-cart-form__contents .product-remove a.remove:hover {
  background: var(--orange);
  color: #fff !important;
}

.commerce-cart-panel .woocommerce-cart-form__contents .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fff;
}

.commerce-cart-panel .woocommerce-cart-form__contents .quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.commerce-cart-panel .woocommerce-cart-form__contents .quantity .qty {
  width: 72px;
  min-height: 38px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
}

.commerce-cart-panel .woocommerce-cart-form__contents td.actions {
  display: table-cell;
  padding: 18px;
  background: #fbfcfd;
  text-align: right;
}

.commerce-cart-panel .woocommerce-cart-form__contents td.actions::after {
  content: "";
  display: block;
  clear: both;
}

.commerce-cart-panel .woocommerce-cart-form__contents td.actions .coupon {
  width: min(560px, calc(100% - 192px));
  display: inline-flex;
  gap: 10px;
  align-items: center;
  float: left;
  text-align: left;
}

.commerce-cart-panel .woocommerce-cart-form__contents td.actions .coupon .input-text {
  flex: 1 1 260px;
  width: auto;
  max-width: 320px;
}

.commerce-cart-panel .woocommerce-cart-form__contents td.actions .button {
  flex: 0 0 auto;
  min-height: 42px;
  border-radius: 8px;
}

.commerce-cart-panel .woocommerce-cart-form__contents td.actions .button[name="update_cart"] {
  min-width: 174px;
  float: right;
  margin-left: 14px;
}

.commerce-cart-panel .woocommerce-cart-form__contents td.actions .button:disabled,
.commerce-cart-panel .woocommerce-cart-form__contents td.actions .button[disabled] {
  background: #eef2f6 !important;
  color: #7b8592 !important;
  box-shadow: none;
  opacity: 1;
}

.commerce-cart-panel .cart-collaterals {
  margin-top: 18px;
}

.commerce-cart-panel .cart-collaterals .cart_totals {
  width: 100%;
  max-width: none;
  float: none;
  margin-top: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
  box-shadow: 0 14px 32px rgba(18, 25, 33, 0.06);
}

.commerce-cart-panel .cart-collaterals .cart_totals h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.15;
}

.commerce-cart-panel .cart-collaterals .cart_totals table.shop_table {
  width: 100%;
  margin: 0 0 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.commerce-cart-panel .cart-collaterals .cart_totals table.shop_table tr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.commerce-cart-panel .cart-collaterals .cart_totals table.shop_table tr:last-child {
  border-bottom: 0;
}

.commerce-cart-panel .cart-collaterals .cart_totals table.shop_table th,
.commerce-cart-panel .cart-collaterals .cart_totals table.shop_table td {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.commerce-cart-panel .cart-collaterals .cart_totals table.shop_table th {
  color: #6b7480;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.commerce-cart-panel .cart-collaterals .cart_totals table.shop_table td {
  color: var(--ink);
  text-align: right;
  font-size: 18px;
  font-weight: 900;
}

.commerce-cart-panel .cart-collaterals .cart_totals table.shop_table .order-total th,
.commerce-cart-panel .cart-collaterals .cart_totals table.shop_table .order-total td {
  color: var(--ink);
}

.commerce-cart-panel .cart-collaterals .cart_totals table.shop_table .order-total .amount {
  color: var(--orange-dark);
  font-size: 28px;
  line-height: 1;
}

.commerce-cart-panel .cart-collaterals .wc-proceed-to-checkout {
  margin: 18px 0 0;
  padding: 0;
}

.commerce-cart-panel .cart-collaterals .wc-proceed-to-checkout .checkout-button {
  width: min(280px, 100%);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.commerce-empty {
  padding: 34px;
  border-radius: 8px;
  background: #f6f7f7;
}

.header-actions a.is-current svg,
.header-actions a.is-current span {
  color: var(--orange);
}

@media (max-width: 980px) {
  .commerce-hero,
  .commerce-layout,
  .commerce-layout-cart {
    grid-template-columns: 1fr;
  }

  .commerce-side {
    position: static;
  }

  .restpy-cart-page .commerce-hero {
    grid-template-columns: 1fr;
  }

  .restpy-account-page .account-hero,
  .account-welcome-card,
  .account-order-row {
    grid-template-columns: 1fr;
  }

  .account-quick-actions,
  .account-order-side,
  .account-order-actions {
    justify-content: flex-start;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .restpy-commerce-page {
    width: min(100% - 24px, 1240px);
    margin-top: 14px;
  }

  .commerce-hero {
    padding: 24px;
  }

  .commerce-hero h1 {
    font-size: 34px;
  }

  .commerce-panel,
  .commerce-cart-panel {
    padding: 16px;
  }

  .restpy-cart-page .commerce-hero {
    min-height: 0;
    padding: 22px;
  }

  .restpy-cart-page .commerce-hero-card {
    width: 100%;
  }

  .restpy-account-page .account-hero {
    min-height: 0;
    padding: 22px;
  }

  .restpy-account-page .account-hero .commerce-hero-card {
    width: 100%;
  }

  .account-welcome-card,
  .account-orders-card {
    padding: 16px;
  }

  .account-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-order-row {
    padding: 14px;
  }

  .account-order-side > strong,
  .account-order-side .amount {
    text-align: left;
  }

  .account-quick-actions a,
  .account-order-actions a {
    min-height: 42px;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents,
  .commerce-cart-panel .woocommerce-cart-form__contents tbody,
  .commerce-cart-panel .woocommerce-cart-form__contents tr,
  .commerce-cart-panel .woocommerce-cart-form__contents td {
    display: block;
    width: 100%;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents thead {
    display: none;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents tr.cart_item {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 14px;
    border-top: 1px solid var(--line);
  }

  .commerce-cart-panel .woocommerce-cart-form__contents td {
    padding: 0;
    border: 0;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents td.product-thumbnail {
    grid-row: span 4;
    text-align: left;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents td.product-thumbnail img {
    width: 72px;
    height: 72px;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents td.product-remove {
    width: auto;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents td.product-name {
    padding-right: 34px;
    font-size: 14px;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents td.product-price,
  .commerce-cart-panel .woocommerce-cart-form__contents td.product-quantity,
  .commerce-cart-panel .woocommerce-cart-form__contents td.product-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
    color: #6b7480;
    font-size: 12px;
    font-weight: 800;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents td.product-price::before,
  .commerce-cart-panel .woocommerce-cart-form__contents td.product-quantity::before,
  .commerce-cart-panel .woocommerce-cart-form__contents td.product-subtotal::before {
    content: attr(data-title);
    color: #7b8592;
    font-size: 11px;
    text-transform: uppercase;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents td.actions {
    display: grid;
    gap: 10px;
    padding: 14px;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents td.actions .coupon {
    display: grid;
    max-width: none;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents td.actions .coupon .input-text,
  .commerce-cart-panel .woocommerce-cart-form__contents td.actions .button {
    max-width: none;
    width: 100%;
  }

  .commerce-cart-panel .woocommerce-cart-form__contents td.actions .button[name="update_cart"] {
    min-width: 0;
    margin-left: 0;
  }

  .commerce-cart-panel .cart-collaterals .cart_totals {
    padding: 18px;
  }

  .commerce-cart-panel .cart-collaterals .cart_totals table.shop_table tr {
    display: grid;
    gap: 6px;
  }

  .commerce-cart-panel .cart-collaterals .cart_totals table.shop_table td {
    text-align: left;
  }

  .commerce-cart-panel .cart-collaterals .wc-proceed-to-checkout .checkout-button {
    width: 100%;
    max-width: none;
  }
}

.shop-search-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(10px);
}

.shop-search-summary span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-search-summary strong {
  font-size: 15px;
}

.shop-search-summary a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.catalog-result-note {
  display: inline-flex;
  width: max-content;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff4e8;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

/* Store polish and product page */
.shop-catalog-page.is-search-results {
  margin-top: 18px;
}

.shop-catalog-page.is-search-results .catalog-workspace {
  margin-top: 0;
}

.catalog-product-card {
  position: relative;
}

.catalog-product-card::after {
  content: "";
  width: 100%;
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, var(--orange), rgba(255, 133, 0, 0));
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: left center;
  transition: opacity 240ms var(--ease-out), transform 260ms var(--ease-out);
}

.catalog-product-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.catalog-product-meta:empty,
.catalog-product-info p:empty {
  display: none;
}

.restpy-product-body {
  background:
    radial-gradient(circle at 84% 0, rgba(255, 133, 0, 0.08), transparent 32%),
    linear-gradient(180deg, #fff 0, #f4f6f8 420px, #f4f6f8 100%);
}

.restpy-product-page {
  width: var(--container);
  margin: 22px auto 70px;
}

.restpy-product-breadcrumbs {
  margin: 0 0 18px;
  color: #6b7480;
}

.restpy-product-breadcrumbs a {
  color: #3f4a57;
}

.restpy-product-breadcrumbs a:hover {
  color: var(--orange-dark);
}

.restpy-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.restpy-product-gallery,
.restpy-product-summary,
.restpy-product-description,
.restpy-product-spec-card,
.restpy-product-files-card,
.restpy-product-quote-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 22, 28, 0.07);
}

.restpy-product-gallery {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.restpy-product-image-main {
  min-height: 470px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 133, 0, 0.08), transparent 28%),
    linear-gradient(135deg, #f3f5f7, #ffffff);
}

.restpy-product-image-main img {
  width: 100%;
  height: 100%;
  max-height: 470px;
  object-fit: contain;
  padding: 26px;
  transition: transform 300ms var(--ease-out), filter 300ms ease;
}

.restpy-product-gallery:hover .restpy-product-image-main img {
  transform: scale(1.025);
  filter: contrast(1.03);
}

.restpy-product-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.restpy-product-thumbs button {
  height: 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 180ms ease, transform 180ms var(--ease-out), box-shadow 180ms ease;
}

.restpy-product-thumbs button:hover,
.restpy-product-thumbs button.is-active {
  border-color: rgba(255, 133, 0, 0.55);
  box-shadow: 0 10px 22px rgba(17, 22, 28, 0.08);
  transform: translateY(-2px);
}

.restpy-product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.restpy-product-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.restpy-product-summary::before {
  content: "";
  height: 4px;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background: linear-gradient(90deg, var(--orange), rgba(255, 133, 0, 0.08));
}

.restpy-product-page .eyebrow {
  margin: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.restpy-product-summary h1 {
  margin: 0;
  color: #070b10;
  font-size: clamp(32px, 3.7vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.restpy-product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.restpy-product-pills > span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9fb;
  color: #3f4a57;
  font-size: 12px;
  font-weight: 900;
}

.restpy-product-pills .catalog-stock {
  margin-top: 0;
  border-color: rgba(25, 163, 91, 0.25);
  background: rgba(25, 163, 91, 0.08);
  color: var(--green);
}

.restpy-product-pills .catalog-stock.is-out-stock {
  border-color: rgba(233, 75, 98, 0.24);
  background: rgba(233, 75, 98, 0.08);
  color: var(--red);
}

.restpy-product-lead {
  margin: 0;
  color: #5f6b78;
  font-size: 16px;
  line-height: 1.55;
}

.restpy-product-buybox {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 133, 0, 0.28);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff8f0 0%, #ffffff 58%, #fffaf4 100%);
  box-shadow: 0 16px 34px rgba(255, 133, 0, 0.1);
}

.restpy-product-buybox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.restpy-product-buybox span {
  color: #6b7480;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.restpy-product-buybox small {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 133, 0, 0.1);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
}

.restpy-product-buybox strong {
  color: var(--orange);
  display: block;
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 0.98;
  font-weight: 900;
}

.restpy-product-buybox .woocommerce-Price-amount,
.restpy-product-buybox .amount,
.restpy-product-buybox bdi {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

.restpy-product-buybox .woocommerce-Price-currencySymbol {
  color: inherit;
  font: inherit;
  font-size: 0.82em;
  margin-left: 4px;
}

.restpy-product-buybox p {
  max-width: 520px;
  margin: 2px 0 0;
  color: #64707d;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.restpy-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr);
  gap: 12px;
}

.restpy-product-cart,
.restpy-product-quote,
.restpy-related-link {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}

.restpy-product-cart {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 18px 34px rgba(255, 133, 0, 0.32);
}

.restpy-product-cart svg {
  width: 19px;
  height: 19px;
}

.restpy-product-quote,
.restpy-related-link {
  border: 1px solid var(--line);
  background: #fff;
  color: #202832;
}

.restpy-product-cart:hover,
.restpy-product-quote:hover,
.restpy-related-link:hover {
  transform: translateY(-2px);
}

.restpy-product-cart:hover {
  background: var(--orange-dark);
  box-shadow: 0 20px 42px rgba(255, 133, 0, 0.36);
}

.restpy-product-quote:hover,
.restpy-related-link:hover {
  border-color: rgba(255, 133, 0, 0.45);
  color: var(--orange-dark);
}

.restpy-product-service {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.restpy-product-service span {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f6f8fa);
  color: #374452;
  font-size: 12px;
  font-weight: 800;
}

.restpy-product-service span::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(25, 163, 91, 0.18), rgba(25, 163, 91, 0.08));
  box-shadow: inset 0 0 0 1px rgba(25, 163, 91, 0.22);
}

.restpy-product-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

.restpy-product-side {
  display: grid;
  gap: 22px;
  align-items: start;
}

.restpy-product-description,
.restpy-product-spec-card,
.restpy-product-files-card {
  padding: 26px;
}

.restpy-product-description h2,
.restpy-product-spec-card h2,
.restpy-product-files-head h2,
.restpy-product-quote-section h2,
.restpy-related-products h2 {
  margin: 8px 0 16px;
  color: #070b10;
  font-size: 30px;
  line-height: 1.08;
}

.restpy-product-description p {
  color: #546170;
  font-size: 15px;
}

.restpy-product-files-inline {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.restpy-product-files-inline .restpy-product-files-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.restpy-product-files-inline .eyebrow {
  color: var(--orange);
}

.restpy-product-spec-card {
  position: sticky;
  top: 138px;
}

.restpy-product-spec-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.restpy-product-spec-card dl div {
  display: grid;
  grid-template-columns: minmax(110px, 0.76fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.restpy-product-spec-card dl div:last-child {
  border-bottom: 0;
}

.restpy-product-spec-card dt {
  color: #7a8592;
  font-size: 12px;
  font-weight: 800;
}

.restpy-product-spec-card dd {
  margin: 0;
  color: #151b22;
  font-size: 13px;
  font-weight: 900;
}

.restpy-product-files-card {
  display: grid;
  gap: 18px;
}

.restpy-product-files-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.restpy-product-files-head .eyebrow {
  margin: 0;
}

.restpy-product-files-head h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.restpy-product-files-badge,
.restpy-product-file-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--orange);
  background: rgba(255, 133, 0, 0.1);
}

.restpy-product-files-badge {
  width: 44px;
  height: 44px;
}

.restpy-product-files-badge svg,
.restpy-product-file-icon svg,
.restpy-product-file-arrow svg {
  width: 22px;
  height: 22px;
}

.restpy-product-files-list {
  display: grid;
  gap: 10px;
}

.restpy-product-file {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: #141b24;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.restpy-product-file:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 133, 0, 0.42);
  box-shadow: 0 14px 30px rgba(17, 22, 28, 0.08);
}

.restpy-product-file-icon {
  width: 42px;
  height: 42px;
  color: #8a95a3;
  background: #f2f5f8;
}

.restpy-product-file-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.restpy-product-file-body strong {
  color: #1b2632;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.restpy-product-file-body small {
  color: #7c8794;
  font-size: 12px;
  font-weight: 700;
}

.restpy-product-file-arrow {
  color: var(--orange);
  opacity: 0.8;
}

.restpy-product-quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  padding: 30px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 133, 0, 0.18), transparent 30%),
    linear-gradient(135deg, #11161c, #171e26);
  color: #fff;
}

.restpy-product-quote-section h2 {
  color: #fff;
  font-size: clamp(32px, 4vw, 52px);
}

.restpy-product-quote-section span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.restpy-product-quote-form {
  background: rgba(255, 255, 255, 0.96);
}

.restpy-product-quote-form button {
  grid-column: 1 / -1;
}

.restpy-related-products {
  margin-top: 30px;
}

.restpy-related-products .catalog-toolbar {
  margin-bottom: 14px;
}

.catalog-seo-section {
  width: min(100%, 1240px);
  margin: 28px auto 0;
  padding: 28px;
  border: 1px solid rgba(202, 211, 221, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at 96% 12%, rgba(255, 122, 0, 0.1), transparent 34%);
  box-shadow: 0 18px 48px rgba(18, 25, 34, 0.06);
}

.catalog-category-seo-section {
  margin-top: 26px;
}

.catalog-seo-copy {
  max-width: 920px;
}

.catalog-seo-copy h2 {
  margin: 6px 0 12px;
  color: #111820;
  font-size: 30px;
  line-height: 1.05;
}

.catalog-seo-copy p {
  margin: 0 0 10px;
  color: #536171;
  font-size: 15px;
  line-height: 1.65;
}

.catalog-seo-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.catalog-seo-points article {
  min-height: 128px;
  padding: 18px;
  border: 1px solid rgba(213, 221, 230, 0.9);
  background: #fff;
}

.catalog-seo-points strong {
  display: block;
  margin-bottom: 8px;
  color: #111820;
  font-size: 15px;
}

.catalog-seo-points span {
  color: #647184;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .restpy-product-hero {
    grid-template-columns: 1fr;
  }

  .restpy-product-content {
    grid-template-columns: 1fr;
  }

  .restpy-product-spec-card {
    position: static;
  }

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

@media (max-width: 820px) {
  .catalog-site-header .topbar-inner {
    width: calc(100% - 24px);
  }

  .catalog-site-header .main-header {
    width: calc(100% - 24px);
    grid-template-columns: 100px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 0;
  }

  .catalog-site-header .logo img {
    width: 96px;
  }

  .catalog-site-header .catalog-button {
    min-height: 42px;
    display: inline-flex;
    min-width: 0;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1.1;
  }

  .catalog-site-header .header-actions {
    display: flex;
    gap: 8px;
  }

  .catalog-site-header .header-actions a {
    min-width: 34px;
  }

  .catalog-site-header .header-actions a span {
    display: none;
  }

  .catalog-site-header .search {
    grid-column: 1 / -1;
    order: 5;
  }

  .catalog-site-header .category-strip {
    width: calc(100vw - 24px);
    min-height: 48px;
    display: flex;
    gap: 16px;
  }

.catalog-site-header .category-dropdown.is-open {
    display: block;
    max-height: calc(100vh - 160px);
    overflow: auto;
  }

  .catalog-category-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-product-card {
    min-height: auto;
  }

  .restpy-product-page {
    width: min(100% - 24px, 620px);
    margin-top: 16px;
  }

  .restpy-product-image-main {
    min-height: 340px;
  }

  .restpy-product-image-main img {
    max-height: 340px;
    padding: 18px;
  }

  .restpy-product-summary,
  .restpy-product-description,
  .restpy-product-spec-card,
  .restpy-product-files-card,
  .restpy-product-quote-section,
  .catalog-seo-section {
    padding: 20px;
  }

  .restpy-product-actions,
  .restpy-product-service,
  .restpy-product-quote-section {
    grid-template-columns: 1fr;
  }
}

/* Mobile polish: compact header and readable first screen */
@media (max-width: 640px) {
  :root {
    --container: calc(100vw - 20px);
  }

  .site-header {
    overflow: visible;
  }

  .topbar-inner {
    width: var(--container);
    min-height: 34px;
    justify-content: center;
    padding: 3px 0;
  }

  .topbar-inner > span,
  .topbar-links,
  .topbar-contacts > span {
    display: none;
  }

  .topbar-contacts {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    font-size: 11px;
    line-height: 1;
  }

  .topbar-contacts a,
  .topbar-contacts .city-button {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
  }

  .topbar-contacts svg {
    width: 14px;
    height: 14px;
  }

  .city-button span {
    display: inline;
  }

  .city-dropdown {
    width: min(320px, calc(100vw - 20px));
    top: calc(100% + 8px);
    padding: 14px;
  }

  .main-header {
    width: var(--container);
    min-height: auto;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0 12px;
  }

  .logo {
    justify-self: start;
  }

  .logo img {
    width: 108px;
  }

  .catalog-button {
    min-width: 0;
    min-height: 46px;
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.08;
    text-align: left;
  }

  .catalog-button span {
    display: block;
  }

  .catalog-button svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  .menu-button,
  .header-actions,
  .category-strip {
    display: none;
  }

  .search {
    grid-column: 1 / -1;
    order: 3;
    min-height: 48px;
    grid-template-columns: minmax(0, 1fr) 52px;
    border-radius: 7px;
  }

  .search input {
    padding: 0 16px;
    font-size: 14px;
  }

  .search button {
    width: 52px;
    height: 48px;
    border-radius: 7px;
  }

  .hero-shop {
    width: var(--container);
    min-height: 560px;
    margin-top: 14px;
    padding: 20px;
    background-position: 61% center;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-kicker {
    width: fit-content;
    max-width: 100%;
    font-size: 10px;
    white-space: normal;
  }

  .hero-shop h1 {
    max-width: 100%;
    font-size: clamp(28px, 8.2vw, 32px);
    line-height: 0.98;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .hero-shop p:not(.hero-kicker) {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.48;
  }

  .hero-actions {
    width: 100%;
    gap: 10px;
  }

  .hero-actions .button {
    min-height: 48px;
    border-radius: 7px;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badges span {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .topbar-contacts {
    gap: 8px;
    font-size: 10.5px;
  }

  .city-button span {
    display: none;
  }

  .main-header {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
  }

  .catalog-button {
    padding: 0 10px;
    font-size: 11.5px;
  }

  .hero-shop {
    min-height: 548px;
    padding: 18px;
  }

  .hero-shop h1 {
    font-size: clamp(27px, 8.3vw, 30px);
  }
}

@media (max-width: 560px) {
  .catalog-site-header .topbar-contacts {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
  }

  .catalog-site-header .main-header {
    grid-template-columns: 94px minmax(0, 1fr) auto;
  }

  .catalog-site-header .catalog-button {
    justify-content: flex-start;
  }

  .catalog-site-header .catalog-button svg {
    flex: 0 0 auto;
  }

  .catalog-site-header .header-actions .cart-action {
    display: grid;
  }

  .catalog-toolbar h2,
  .restpy-product-description h2,
  .restpy-product-spec-card h2,
  .restpy-product-files-head h2,
  .restpy-related-products h2 {
    font-size: 26px;
  }

  .catalog-product-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-cart-button {
    width: 100%;
    font-size: 13px;
  }

  .catalog-cart-button svg {
    display: none;
  }

  .restpy-product-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .restpy-product-summary h1 {
    font-size: 31px;
  }

  .restpy-product-buybox {
    padding: 18px;
  }

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

  .restpy-product-buybox strong {
    font-size: 34px;
  }

  .restpy-product-spec-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
