/* Warum design library — tokens + primitives. No inline styles in markup. */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/work-sans/work-sans-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/work-sans/work-sans-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #072446;
  --accent: #ff1d61;
  --accent-hover: #e51a57;
  --bg: #f5f5f5;
  --card: #fff;
  --text: #072446;
  --muted: #5c6b7a;
  --max: 1320px;
  --gutter: 15px;
  --r: 999px;
  --r-card: 16px;
  --font: "Work Sans", sans-serif;
  --header-h: 72px;
  --shadow: 0 16px 40px rgba(7, 36, 70, 0.12);
  --border: rgba(7, 36, 70, 0.14);
}

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

html {
  overflow-x: hidden;
}

body.site {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

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

h1, h2, h3, h4, p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: min(var(--max), 92vw);
  margin-left: auto;
  margin-right: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.col {
  flex: 1 1 0;
  min-width: 0;
}

.section {
  padding: 40px 0;
}

.title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand);
}

.link-accent {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 10px 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  background: var(--card);
  color: var(--brand);
}

.btn:hover {
  color: var(--brand);
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--accent:hover,
.btn--accent:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
}

.btn--ghost:hover {
  color: var(--accent);
}

.steps__cta.btn--ghost {
  color: var(--accent);
}

.steps__cta.btn--ghost:hover {
  color: var(--accent-hover);
}

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

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

.card.catalog {
  min-height: 420px;
  margin-bottom: 40px;
  text-align: left;
}

/* Header */
.header {
  position: relative;
  z-index: 40;
  background: var(--bg);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.header__logo {
  height: 55px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  flex: 0 0 auto;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.nav {
  flex: 1 1 auto;
  display: none;
}

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

.menu > li > a {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-weight: 600;
  padding: 10px 12px;
}

.menu > li > a:hover,
.menu > li.is-active > a {
  color: var(--accent);
}

.menu__item--mega {
  position: static;
}

.menu__item--mega > a::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12em) rotate(45deg);
}

.mega {
  display: none;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: min(1440px, 94vw);
  padding: 28px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  z-index: 50;
}

.mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 16px;
}

.menu__item--mega:not(.is-mega-dismissed):hover > .mega,
.menu__item--mega:not(.is-mega-dismissed):focus-within > .mega {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}

.menu__item--mega.is-mega-dismissed > .mega {
  display: none;
}

.mega__featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  background: #f6f6f6;
  border-radius: 24px;
  padding: 24px;
}

.mega__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
}

.mega__card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 229 / 235;
  margin-bottom: 20px;
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
}

.mega__card-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  border-radius: 24px;
}

.mega__card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  margin: 0 0 6px;
}

.mega__card p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
}

.mega__card h3 a,
.mega__card p,
.mega__card a {
  color: var(--brand);
}

.mega__card a:hover {
  color: var(--accent);
}

@media (max-width: 991.98px) {
  .mega__card h3 {
    font-size: 16px;
  }
}

.mega__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.mega__links {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.85fr;
  gap: 8px 24px;
  align-content: start;
}

.mega__col {
  min-width: 0;
}

.mega__block + .mega__block {
  margin-top: 30px;
}

.mega__col h3,
.mega__col h3 a {
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  color: #3d65a3;
  margin: 0 0 6px;
}

.mega__line,
.mega__line a,
.mega__list a {
  font-size: 14px;
  line-height: 24px;
  color: var(--brand);
}

.mega__line {
  margin: 0;
}

.mega__line a:hover,
.mega__list a:hover,
.mega__col h3 a:hover {
  color: #0d294a;
  font-weight: 600;
}

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

.mega__list a {
  display: block;
  padding-bottom: 10px;
}

.mega__search {
  position: relative;
  width: 100%;
  max-width: none;
  margin-top: 0;
}

.mega__search .search__icon,
.search__icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.search__input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 14px;
  background: var(--card);
}

.header__user {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  margin-left: auto;
}

.header__user:hover {
  color: var(--accent);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

@media (min-width: 992px) {
  .nav {
    display: flex;
    align-items: stretch;
  }

  .header__bar {
    align-items: stretch;
  }

  .header__logo,
  .header__user {
    align-self: center;
  }

  .menu {
    align-items: stretch;
    height: 100%;
  }

  .menu > li {
    display: flex;
    align-items: center;
  }

  .menu > li > a {
    min-height: var(--header-h);
  }

  .header__user {
    display: inline-flex;
  }

  .menu-btn {
    display: none;
  }
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: var(--card);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow-y: auto;
}

.site.is-drawer .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

.site.is-drawer .drawer {
  transform: translateX(0);
}

.site.is-drawer {
  overflow: hidden;
}

.drawer__top {
  display: flex;
  align-items: center;
  padding: 20px 16px 8px;
}

.drawer__top .header__logo img {
  height: 36px;
}

.drawer__close {
  margin-left: auto;
}

.drawer__inner {
  padding: 16px 24px 32px;
}

.drawer__menu a {
  display: block;
  padding: 8px 0;
  color: var(--brand);
  font-weight: 600;
}

.drawer__menu .menu-child {
  display: none;
  padding-left: 12px;
}

.drawer__menu .is-open > .menu-child {
  display: block;
}

.drawer__menu .menu-toggler {
  float: right;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.drawer__menu .menu-toggler::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--brand);
}

.drawer__menu .is-open > a .menu-toggler::after {
  content: "\f078";
}

.contacts {
  margin: 20px 0;
  font-size: 14px;
}

.contacts li {
  margin-bottom: 10px;
}

.social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.social li {
  display: flex;
  margin: 0;
  list-style: none;
}

.social a {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-size: 22px;
}

/* Footer */
.site-footer {
  width: 100%;
  margin-top: 40px;
  padding: 40px 0 0;
  background: #e9edf3;
  color: var(--text);
  text-align: left;
}

.site-footer__container {
  width: 100%;
  max-width: min(var(--max), 92vw);
  margin: 0 auto;
  padding-bottom: 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0 45px;
  align-items: start;
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__logo {
  display: block;
  margin-top: 20px;
  margin-bottom: 30px;
}

.site-footer__logo .logo {
  width: 120px;
  max-width: 120px;
  height: auto;
}

.site-footer__tagline {
  max-width: 254px;
  margin: 0 0 30px;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  color: var(--text);
}

.site-footer__nav {
  font-size: 14px;
  line-height: 24px;
}

.site-footer__nav a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site-footer__divider {
  width: 1px;
  min-height: 220px;
  background: #838d9c;
  align-self: stretch;
}

.site-footer__info {
  min-width: 0;
  padding-left: 25px;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 45px;
  margin-bottom: 50px;
}

.site-footer__block-title {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  color: var(--text);
}

.site-footer__block-text {
  font-size: 14px;
  line-height: 24px;
  color: var(--text);
}

.site-footer__block-text p {
  margin: 0;
}

.site-footer__block-text a {
  color: inherit;
  text-decoration: none;
}

.site-footer__block-text a:hover {
  color: var(--accent);
}

.site-footer__legal a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  line-height: 24px;
}

.site-footer__legal a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site-disclaimer {
  width: 100%;
  padding: 24px 0 28px;
  text-align: left;
}

.site-disclaimer__container {
  width: 100%;
  max-width: min(var(--max), 92vw);
  margin: 0 auto;
}

.site-disclaimer__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-message {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  width: min(680px, calc(100% - 32px));
  transform: translateX(-50%) translateY(calc(100% + 32px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.cookie-message.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-message-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 24px;
  border-radius: 999px;
  background: #1a1a1a;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
}

.cookie-message-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #d8dce3;
}

.cookie-message-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-message-text a:hover {
  color: #fff;
}

.cookie-message .btn.small {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cookie-message .btn.small:hover {
  background: var(--accent-hover);
}

.cookie-message .btn.small:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 40%) auto minmax(0, 60%);
    gap: 0 20px;
  }

  .site-footer__info {
    padding-left: 0;
  }

  .site-footer__row {
    gap: 20px;
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-top: 0;
  }

  .site-footer__container {
    padding-bottom: 24px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer__divider {
    display: none;
  }

  .site-footer__info {
    padding-left: 0;
    margin-top: 40px;
  }

  .site-footer__tagline {
    margin-bottom: 20px;
  }

  .site-footer__row {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
  }

  .site-footer__block-title {
    margin-bottom: 10px;
  }
}

@media (max-width: 560px) {
  .cookie-message {
    bottom: 16px;
    width: calc(100% - 24px);
  }

  .cookie-message-inner {
    gap: 12px;
    padding: 4px 5px 6px 20px;
  }

  .cookie-message-text {
    font-size: 12px;
    line-height: 1.35;
  }

  .cookie-message .btn.small {
    width: 46px;
    height: 46px;
    font-size: 14px;
  }
}

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

/* Home hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 24px 0 8px;
}

.hero__slider {
  position: relative;
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  background: #1b2a3d;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.hero__slider.is-dragging {
  cursor: grabbing;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: none;
  background-size: cover;
  background-position: center;
}

.hero__slide.is-active {
  display: block;
}

.hero__slide.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__slide--agricultur { background-image: url(/images/system/agricultur.webp); }
.hero__slide--water { background-image: url(/images/system/water.webp); }
.hero__slide--gaz { background-image: url(/images/system/gaz.webp); }
.hero__slide--building { background-image: url(/images/system/building.webp); }
.hero__slide--service { background-image: url(/images/system/service.webp); }

.hero__inner {
  position: absolute;
  bottom: 90px;
  left: 70px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  width: min(291px, calc(100% - 140px));
  margin: 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 18px;
}

.hero__photo {
  width: 72px;
  height: 72px;
  max-height: none;
  object-fit: contain;
  margin: 0;
  padding: 6px;
  background: #fff;
  border-radius: 16px;
}

.hero__copy {
  color: #fff;
  min-width: 0;
}

.hero__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.hero__title a {
  color: #fff;
}

.hero__title a:hover {
  color: var(--accent);
  opacity: 1;
}

.hero__text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.hero__text a {
  color: var(--accent);
}

.hero__text a:hover {
  color: var(--accent-hover);
  opacity: 1;
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  z-index: 3;
}

.hero__dots ul {
  display: flex;
  align-items: center;
  margin: -4px 0 0;
  padding: 0;
  list-style: none;
}

.hero__dots li {
  position: relative;
  width: 30px;
  height: 4px;
  margin: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.3s ease;
}

.hero__dots li.is-active {
  width: 80px;
}

.hero__dots button {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero__dot-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  border-radius: 2px;
  background: #fff;
}

.hero__dot-indicator.is-active {
  animation: hero-dot-progress linear forwards;
}

@keyframes hero-dot-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.hero__dots li.is-active .hero__dot-indicator.is-active {
  width: auto;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__tile {
  flex: 1;
  min-height: 200px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.hero__tile--laptops { background-image: url(/images/cyberbook/s854.webp); }
.hero__tile--tablets { background-image: url(/images/cyberbook/tbl.webp); }

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

  .hero__slider {
    min-height: 400px;
  }

  .hero__inner {
    left: 30px;
    bottom: 70px;
  }
}

@media (max-width: 575.98px) {
  .protection__stage {
    width: min(60%, 280px);
  }

  .hero__inner {
    left: 16px;
    bottom: 60px;
    width: min(291px, calc(100% - 32px));
  }
}

/* Home blocks */
.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.steps__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
  background: var(--card);
  border-radius: 12px;
}

.steps__head {
  flex: 1;
  min-width: 0;
  padding-left: 10px;
}

.steps__item h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
  color: var(--brand);
}

.steps__cta {
  margin-top: 8px;
  padding-left: 0;
  padding-right: 0;
  justify-content: flex-start;
}

.steps__item img {
  flex-shrink: 0;
  width: 126px;
  max-width: 126px;
  border-radius: 12px;
}

.categories-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 80px 20px;
  border-radius: 24px;
  background-image: url(/images/system/banner.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.promo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.promo img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.promo--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

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

.promo__strike {
  text-decoration: line-through;
}

.promo__text {
  margin: 12px 0 20px;
  font-size: 16px;
}

/* Protection popover */
.protection {
  padding-top: 25px;
  padding-bottom: 25px;
}

.protection__title {
  margin: 0 0 -55px;
  text-align: center;
  font-size: clamp(28px, 8vw, 90px);
  line-height: 0.9;
  font-weight: 700;
  color: #7e98b7;
}

.protection__stage {
  position: relative;
  width: min(30%, 420px);
  margin: 0 auto;
}

.protection__laptop {
  width: 100%;
  margin: 0 auto;
}

.protection__marker {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--brand);
  background: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.protection__marker svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.protection__marker.is-open svg {
  transform: rotate(45deg);
}

.protection__ripple {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  z-index: -1;
}

.protection__ripple::before,
.protection__ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  opacity: 0.35;
  animation: protection-ripple 2.4s ease-out infinite;
}

.protection__ripple::after {
  animation-delay: 1.2s;
}

@keyframes protection-ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.45;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.protection__popover {
  display: none;
  position: absolute;
  left: calc(50% + 18px);
  top: 50%;
  z-index: 3;
  width: min(250px, 72vw);
  transform: translate(-28px, -55px);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--r-card);
  overflow: hidden;
}

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

.protection__popover > img {
  width: 100%;
  padding: 0 5px 0 10px;
  border-radius: 18px;
}

.protection__popover-body {
  padding: 15px 10px 30px;
}

.protection__popover-body h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.1;
  color: var(--text);
}

.protection__popover-body p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
}

.protection__popover-body a {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--accent);
}

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

.benefits__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.benefits__item i {
  font-size: 28px;
  color: var(--brand);
  width: 36px;
}

.benefits__item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.demo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
}

.demo video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo__copy {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 40px;
}

.demo__copy .title {
  color: #fff;
  margin-bottom: 16px;
}

.page-title {
  padding: 28px 0 8px;
}

.crumbs {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.crumbs a {
  color: var(--brand);
}

.article {
  padding-bottom: 48px;
}

.article h2,
.article h3 {
  margin: 24px 0 12px;
}

.article p,
.article li {
  margin-bottom: 8px;
}

.article .social li {
  margin-bottom: 0;
}

.article img {
  border-radius: 24px;
  margin: 12px 0;
}

.article .metro img {
  width: 21px;
  height: 21px;
  max-width: 21px;
  min-width: 21px;
  margin: 0;
  flex: 0 0 21px;
  border-radius: 0;
}

.article section {
  padding: 10px 0 10px;
}

.article #contacts .company-contacts,
.article .company-service {
  display: grid;
  gap: 32px;
}

.article #contacts .company-contacts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.article .company-contacts__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.article .company-contacts__col h3 {
  margin: 0 0 12px;
}

.article #contacts .company-contacts__col > div:first-child img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 24px;
}

.article .company-service {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.article .company-service__col {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.article .company-service__col h3 {
  margin: 0 0 8px;
}

.article .company-service__col p {
  margin: 0;
}

.article .company-service__col img {
  width: 80px;
  max-width: 80px;
  height: auto;
  margin: 0;
  flex: 0 0 80px;
  align-self: flex-start;
}

.article #requisites dl.company-col,
.article #requisites .company-col,
.article #requisites p,
.article #requisites dd,
.article #requisites dt {
  text-align: left;
}

.article #requisites dl.company-col {
  margin: 0 0 8px;
}

.article #requisites .company-info__title {
  font-weight: 700;
  margin-bottom: 4px;
}

.article #requisites .company-info__text {
  margin: 0 0 8px;
}

@media (max-width: 991.98px) {
  .article #contacts .company-contacts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .article .company-service {
    grid-template-columns: 1fr;
  }
}

.metro-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 8px 0;
}

.metro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Reviews */
.reviews__nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.reviews__nav button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 20px;
}

.reviews__stage {
  overflow: hidden;
}

.reviews__track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s ease;
  transform: translateX(var(--reviews-shift, 0));
}

.reviews__item {
  flex: 0 0 auto;
  width: var(--reviews-w, 100%);
  min-width: 0;
  background: var(--card);
  border-radius: var(--r-card);
  padding: 20px;
}

.reviews__message {
  font-size: 16px;
  margin-bottom: 16px;
}

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

.reviews__who img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

@media (min-width: 992px) {
  .categories-banner {
    min-height: 420px;
    padding: 150px 77px;
  }

  .demo {
    min-height: 600px;
  }
}

@media (max-width: 991.98px) {
  .protection__title {
    margin-bottom: -30px;
  }

  .protection__stage {
    width: min(45%, 360px);
  }

  .protection__popover {
    transform: translate(-28px, -65px);
  }

  .steps__list,
  .benefits,
  .promo,
  .promo--reverse {
    grid-template-columns: 1fr;
  }

  .categories-banner {
    min-height: 220px;
    padding: 60px 20px;
  }
}


/* Catalog */
.catalog-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
}

.catalog-breadcrumbs {
  width: 100%;
  text-align: left;
}

.catalog-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.catalog-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(92, 107, 122, 0.55);
}

.catalog-breadcrumbs a {
  text-decoration: none;
}

.catalog-breadcrumbs a:hover {
  text-decoration: underline;
}

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-header--row {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.catalog-header__image {
  flex: 0 0 auto;
  width: min(220px, 34vw);
}

.catalog-header__image img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(26, 35, 50, 0.12));
}

.catalog-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: var(--text);
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.catalog-title--left {
  text-align: left;
}

.catalog-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.catalog-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.catalog-search--global {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(26, 35, 50, 0.08);
  box-shadow: 0 10px 24px rgba(26, 35, 50, 0.06);
  text-align: left;
}

.catalog-search__input,
.catalog-filter__select {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.catalog-search__input:focus,
.catalog-filter__select:focus {
  outline: 2px solid rgba(7, 36, 70, 0.45);
  outline-offset: 1px;
  border-color: var(--brand);
}

.catalog-filter {
  flex: 0 1 220px;
  display: flex;
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(26, 35, 50, 0.12);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.catalog-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.catalog-btn--accent {
  background: linear-gradient(145deg, #072446 0%, #072446 52%, #0a315f 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 36, 70, 0.22);
}

.catalog-btn--accent:hover {
  color: #fff;
  filter: brightness(1.03);
}

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

.catalog-category {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(26, 35, 50, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-category:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 36, 70, 0.45);
  box-shadow: 0 16px 30px rgba(26, 35, 50, 0.08);
}

.catalog-category__media {
  background: #191919;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 18px;
}

.catalog-placeholder-img {
  object-fit: contain;
  opacity: 0.85;
}

.catalog-category__media img.catalog-placeholder-img {
  width: 96px;
  max-width: 96px;
  height: 96px;
  filter: none;
}

.catalog-product-card__media img.catalog-placeholder-img,
.catalog-product-card__media img.catalog-placeholder-img--card {
  width: 120px;
  max-width: 120px;
  height: 120px;
}

.catalog-product__main-image img.catalog-placeholder-img,
.catalog-product__main-image img.catalog-placeholder-img--lg {
  width: 160px;
  max-width: 160px;
  height: 160px;
}

.catalog-section-title {
  font-size: 20px;
  margin: 8px 0 4px;
  color: var(--text);
}

.catalog-subcategories,
.catalog-category-products {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.catalog-pagination__gap {
  display: inline-flex;
  align-items: center;
  min-width: 24px;
  justify-content: center;
  color: var(--muted);
}

.catalog-category__media img {
  width: min(100%, 220px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(-4px 8px 14px rgba(0, 0, 0, 0.35));
}

.catalog-category__body {
  padding: 16px 18px 18px;
}

.catalog-category__body h2 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
}

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

.catalog-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.catalog-products--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-catalog-gallery {
  padding-top: 8px;
  padding-bottom: 24px;
}

.home-catalog-gallery .catalog-category-products {
  margin-top: 8px;
}

.home-catalog-gallery .title {
  margin-bottom: 0;
}

.catalog-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(7, 36, 70, 0.14);
  border-radius: 22px;
  background: rgb(255 255 255);
  overflow: visible;
}

.catalog-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-width: 0;
  max-width: 100%;
  padding: 12px 12px 0 12px;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.catalog-product-card__media:hover {
  background: rgba(7, 36, 70, 0.06);
}

.catalog-product-card__media:focus-visible {
  outline: 2px solid rgba(7, 36, 70, 0.45);
  outline-offset: -2px;
}

.catalog-product-card__media img.catalog-product-card__photo,
.catalog-product-card__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.25s ease;
}

.catalog-product-card__media:hover img,
.catalog-product-card__media:focus-visible img {
  transform: scale(1.04);
}

.catalog-product-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 6px 18px 18px;
  flex: 1;
}

.catalog-product-card__brand,
.catalog-product__brand {
  color: #072446;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.catalog-product-card__title {
  font-size: 14px;
  line-height: 1.3;
  min-height: 0;
}

.catalog-product-card__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

.catalog-product-card__title a:hover {
  color: var(--brand);
}

.catalog-product-card__sku,
.catalog-product__sku {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin-bottom: 0rem;
}

.catalog-product-card__desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  flex: 0 0 auto;
  min-height: 0;
}

.catalog-product-card__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  min-width: 0;
}

.catalog-product-card__meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.catalog-product-card__meta .catalog-price {
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.catalog-badge__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.catalog-badge--success {
  color: var(--brand);
  background: rgba(7, 36, 70, 0.1);
  box-shadow: inset 0 0 0 1px rgba(7, 36, 70, 0.25);
}

.catalog-badge--success .catalog-badge__dot {
  background: var(--brand);
}

.catalog-badge--order {
  color: #9a6b2f;
  background: rgba(154, 107, 47, 0.1);
  box-shadow: inset 0 0 0 1px rgba(154, 107, 47, 0.25);
}

.catalog-badge--order .catalog-badge__dot {
  background: #9a6b2f;
}

.catalog-product-card__cta-wrap {
  width: 100%;
}

.catalog-product-card__cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.catalog-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.catalog-price--lg {
  font-size: 28px;
  margin: 8px 0 4px;
}

.catalog-price__rub {
  color: var(--text);
}

.catalog-price__usd {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.catalog-price__request {
  color: var(--muted);
  font-weight: 600;
}

.catalog-price-note {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.catalog-stock {
  font-size: 18px;
  font-weight: 600;
  min-height: 1.35em;
}

.catalog-stock--ok {
  color: var(--brand);
}

.catalog-stock--order {
  color: #9a6b2f;
}

.catalog-product-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  min-width: 0;
  max-width: 100%;
}

.catalog-product-flags--detail {
  margin: 4px 0 2px;
}

.catalog-data-freshness {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.catalog-data-freshness--detail {
  margin-top: 2px;
}

.catalog-data-freshness__icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.catalog-flag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.catalog-flag--regular {
  color: var(--brand);
  background: rgba(7, 36, 70, 0.14);
  border: 1px solid rgba(7, 36, 70, 0.28);
  cursor: help;
}

.catalog-product-flags:not(.catalog-product-flags--detail) .catalog-flag--regular {
  justify-content: center;
  min-width: 30px;
  padding-inline: 8px;
}

.catalog-flag__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.catalog-flag--tip {
  position: relative;
}

.catalog-flag__tooltip {
  position: fixed;
  z-index: 1300;
  padding: 10px 12px;
  border-radius: 12px;
  background: #1a2332;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.22);
  pointer-events: none;
  transform: translateY(0);
}

.catalog-flag__tooltip--top {
  transform: translateY(-100%);
}

.catalog-flag--delivery {
  color: var(--muted);
  background: #f3f5f8;
  border: 1px solid rgba(26, 35, 50, 0.08);
  cursor: help;
}

.catalog-empty {
  color: var(--muted);
  padding: 24px 0;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-pagination__link {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(26, 35, 50, 0.1);
  text-decoration: none;
  color: var(--text);
  background: #fff;
  padding: 0 4px;
  box-sizing: border-box;
}

.catalog-pagination__link--arrow {
  width: 40px;
  padding: 0;
}

.catalog-pagination__link--arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.catalog-pagination__link.is-active,
.catalog-pagination__link:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(7, 36, 70, 0.1);
}

.catalog-product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.catalog-product__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.catalog-product__main-image {
  position: relative;
  border-radius: 22px;
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(26, 35, 50, 0.08);
  background: #fff;
}

.catalog-product__main-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-product__main-image--placeholder > span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.catalog-product__main-image--placeholder img.catalog-placeholder-img--lg {
  position: relative;
  width: 160px !important;
  max-width: min(160px, 55%) !important;
  height: auto !important;
  max-height: min(160px, 55%) !important;
  margin: auto;
  object-fit: contain;
  object-position: center;
}

.catalog-product__main-trigger {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 12px;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.catalog-product__main-trigger:hover .catalog-product__expand,
.catalog-product__main-trigger:focus-visible .catalog-product__expand {
  opacity: 1;
}

.catalog-product__expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(26, 35, 50, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  box-shadow: 0 8px 20px rgba(26, 35, 50, 0.12);
  opacity: 0.82;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.catalog-product__expand-icon {
  width: 18px;
  height: 18px;
}

.catalog-product__main-photo {
  object-fit: contain;
}

.catalog-product__main-image img,
.catalog-product__main-image span {
  max-width: 100% !important;
}

.catalog-product__main-image img {
  object-fit: contain;
}

.catalog-product__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 62px;
  max-width: 100%;
}

.catalog-product__thumb {
  display: inline-flex;
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
}

.catalog-product__thumb.is-active,
.catalog-product__thumb:hover {
  border-color: var(--brand);
}

.catalog-product__thumb img {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: contain;
}

.catalog-lightbox {
  --lightbox-inset: clamp(12px, 2vw, 24px);
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--lightbox-inset);
  background: rgba(26, 35, 50, 0.88);
  backdrop-filter: blur(10px);
  animation: catalogLightboxIn 0.22s ease;
}

@keyframes catalogLightboxIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.catalog-lightbox__panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 1240px);
  max-height: 100vh;
  gap: 12px;
}

.catalog-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 44px;
  padding-right: 56px;
}

.catalog-lightbox__title {
  margin: 0;
  color: #fff;
  font-size: clamp(14px, 2.2vw, 18px);
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.catalog-lightbox__close {
  position: fixed;
  top: var(--lightbox-inset);
  right: var(--lightbox-inset);
  z-index: 1203;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.catalog-lightbox__close:hover,
.catalog-lightbox__close:focus-visible {
  border-color: var(--brand);
  background: rgba(7, 36, 70, 0.18);
  color: #fff;
}

.catalog-lightbox__close-icon {
  width: 20px;
  height: 20px;
}

.catalog-lightbox__viewport {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.catalog-lightbox__stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: min(86.4vw, 1080px);
  height: min(76.5vh, 810px);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  touch-action: pan-y pinch-zoom;
}

.catalog-lightbox__photo {
  object-fit: contain;
  padding: 18px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.catalog-lightbox__photo.is-dragging {
  transition: none;
}

.catalog-lightbox__nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(26, 35, 50, 0.18);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.catalog-lightbox__nav:hover,
.catalog-lightbox__nav:focus-visible {
  border-color: var(--brand);
  background: rgba(7, 36, 70, 0.12);
  color: var(--brand);
}

.catalog-lightbox__nav-icon {
  width: 22px;
  height: 22px;
}

.catalog-lightbox__footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.catalog-lightbox__thumbs {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.catalog-lightbox__thumb {
  flex: 0 0 auto;
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px;
  cursor: pointer;
  scroll-snap-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-lightbox__thumb.is-active,
.catalog-lightbox__thumb:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(7, 36, 70, 0.35);
}

.catalog-lightbox__thumb img {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: contain;
}

.catalog-lightbox__preload {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.catalog-product__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.catalog-product__short,
.catalog-product__description p {
  color: var(--muted);
  line-height: 1.55;
}

.catalog-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 6px;
}

.catalog-product__description {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 35, 50, 0.08);
}

.catalog-product__description h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.catalog-tabs {
  margin-top: 8px;
  text-align: left;
  border: 1px solid rgba(26, 35, 50, 0.08);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}

.catalog-tabs__nav {
  padding: 12px 14px 0;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
}

.catalog-tabs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0 0 12px;
}

.catalog-tabs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(26, 35, 50, 0.1);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.catalog-tabs__link:hover,
.catalog-tabs__link.is-active {
  color: var(--brand);
  border-color: var(--brand);
  background: rgba(7, 36, 70, 0.1);
}

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

.catalog-tabs__panel {
  display: none;
  padding: 20px 22px 24px;
}

.catalog-tabs__panel.is-active {
  display: block;
}

.catalog-tabs__text {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.catalog-tabs__text--split {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
}

.catalog-tabs__text p + p {
  margin-top: 12px;
}

.catalog-tabs__empty {
  color: var(--muted);
}

.catalog-product-footnote {
  margin: 8px 0 12px;
  padding: 16px 20px;
  border: 1px solid rgba(26, 35, 50, 0.08);
  border-radius: 22px;
  background: #fff;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.catalog-product-footnote ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.catalog-product-footnote li {
  position: relative;
  padding-left: 1.35em;
}

.catalog-product-footnote li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #00f016;
}

.catalog-product-footnote p {
  margin: 0;
}

.catalog-product-footnote li + li {
  margin-top: 4px;
}

.catalog-features {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.catalog-features th,
.catalog-features td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
  text-align: left;
  vertical-align: top;
}

.catalog-features th {
  width: 38%;
  color: var(--muted);
  font-weight: 600;
}

.catalog-features td {
  color: var(--text);
}

.catalog-faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.catalog-faq__row {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(26, 35, 50, 0.08);
  background: #f7f9fb;
}

.catalog-faq__q {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.catalog-faq__a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.catalog-popular {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  min-width: 0;
}

.catalog-popular .catalog-section-title {
  margin: 0;
}

.catalog-popular__slider {
  display: grid;
  gap: 14px;
  position: relative;
  min-width: 0;
  overflow: visible;
}

.catalog-popular__track {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 0 8px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 4px;
}

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

.catalog-popular__track.is-interacting,
.catalog-popular__track.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.catalog-popular__track.is-dragging .catalog-product-card {
  pointer-events: none;
}

.catalog-popular__list {
  display: flex;
  gap: 18px;
  min-width: min-content;
  margin: 0;
  padding: 0 4px;
  list-style: none;
}

.catalog-popular__list .catalog-product-card {
  flex: 0 0 280px;
  width: 280px;
  max-width: 82vw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.catalog-popular__list .catalog-product-card:last-child {
  scroll-snap-align: end;
}

.catalog-popular__scrollbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-popular__scrollbar-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(7, 36, 70, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf8 100%);
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(7, 36, 70, 0.14);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.catalog-popular__scrollbar-btn svg {
  width: 18px;
  height: 18px;
}

.catalog-popular__scrollbar-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(7, 36, 70, 0.45);
  box-shadow: 0 8px 20px rgba(7, 36, 70, 0.2);
}

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

.catalog-popular__scrollbar-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.catalog-popular__scrollbar-rail-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 0;
}

.catalog-popular__scrollbar-rail {
  position: relative;
  height: 18px;
  border-radius: 999px;
  cursor: pointer;
  background:
    radial-gradient(circle at 20% 50%, rgba(7, 36, 70, 0.14), transparent 55%),
    radial-gradient(circle at 80% 50%, rgba(81, 200, 168, 0.1), transparent 55%),
    linear-gradient(90deg, rgba(7, 36, 70, 0.06), rgba(81, 200, 168, 0.03) 50%, rgba(7, 36, 70, 0.06));
  border: 1px solid rgba(7, 36, 70, 0.2);
  box-shadow:
    inset 0 2px 6px rgba(26, 35, 50, 0.07),
    inset 0 -1px 0 rgba(255, 255, 255, 0.65);
}

.catalog-popular__scrollbar-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  min-width: 64px;
  height: 12px;
  border-radius: 999px;
  touch-action: none;
  user-select: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, transparent 42%),
    linear-gradient(90deg, var(--brand), var(--brand) 45%, var(--accent-light) 100%);
  box-shadow:
    0 4px 16px rgba(7, 36, 70, 0.38),
    0 0 0 1px rgba(7, 36, 70, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-50%);
  cursor: grab;
  transition: box-shadow 0.2s ease, height 0.2s ease, filter 0.2s ease;
}

.catalog-popular__scrollbar-thumb.is-dragging {
  height: 15px;
  cursor: grabbing;
  filter: brightness(1.05);
  transition: none;
}

.catalog-popular__scrollbar-thumb:hover {
  height: 14px;
  filter: brightness(1.03);
}

.catalog-popular__scrollbar.is-hidden {
  display: none;
}

.catalog-popular__scrollbar.is-at-start .catalog-popular__scrollbar-btn--prev,
.catalog-popular__scrollbar.is-at-end .catalog-popular__scrollbar-btn--next {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 640px) {
  .catalog-tabs__nav {
    padding-inline: 10px;
  }

  .catalog-tabs__panel {
    padding: 16px 14px 18px;
  }

  .catalog-features th {
    width: 42%;
  }

  .catalog-popular__list .catalog-product-card {
    flex-basis: min(82vw, 280px);
    width: min(82vw, 280px);
  }

  .catalog-popular__scrollbar-controls {
    gap: 8px;
  }

  .catalog-popular__scrollbar-btn {
    width: 34px;
    height: 34px;
  }
}

.catalog-status {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 280px;
  text-align: center;
  color: var(--muted);
}

.catalog-status--error {
  color: var(--text);
}

.catalog-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(7, 36, 70, 0.2);
  border-top-color: var(--brand);
  animation: catalogSpin 0.8s linear infinite;
}

@keyframes catalogSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .catalog-categories,
  .catalog-products,
  .catalog-products--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .catalog-header--row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .catalog-categories,
  .catalog-products,
  .catalog-products--cols-4 {
    grid-template-columns: 1fr;
  }

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

  .catalog-search__input {
    flex: 0 0 auto;
    width: 100%;
  }

  .catalog-search .catalog-btn {
    width: 100%;
  }

  .catalog-product__main-image {
    min-height: 0;
  }

  .catalog-product__thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .catalog-product__thumb {
    flex: 0 0 auto;
  }

  .catalog-title {
    font-size: clamp(20px, 5.6vw, 28px);
  }

  .catalog-filter {
    flex: 1 1 auto;
  }

  .catalog-lightbox {
    padding: 10px;
  }

  .catalog-lightbox__viewport {
    position: relative;
    gap: 0;
  }

  .catalog-lightbox__stage {
    width: 100%;
    height: min(72vh, 684px);
  }

  .catalog-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
  }

  .catalog-lightbox__nav--prev {
    left: 8px;
  }

  .catalog-lightbox__nav--next {
    right: 8px;
  }

  .catalog-lightbox__title {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-category,
  .catalog-btn,
  .catalog-spinner,
  .catalog-lightbox,
  .catalog-lightbox__photo {
    transition: none;
    animation: none;
  }
}
