:root {
  --catalog-ink: #0b4861;
  --catalog-deep: #08394f;
  --catalog-blue: #118bc1;
  --catalog-blue-dark: #08658f;
  --catalog-pale: #e6fcff;
  --catalog-line: #cfe9f1;
  --catalog-muted: #617781;
  --catalog-bg: #f5f9fa;
}

html {
  scroll-behavior: smooth;
}

body.catalog-page {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: #173f4f;
  background: #fff;
  font-family: Roboto, Arial, sans-serif;
}

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

.catalog-page main {
  display: block;
  padding: 0 0 84px;
}

.catalog-page img {
  max-width: 100%;
}

.catalog-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.catalog-intro {
  padding: 20px 0 23px;
  border-bottom: 1px solid var(--catalog-line);
  background: linear-gradient(110deg, #fff 0%, var(--catalog-pale) 100%);
}

.catalog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #68818b;
  font-size: 12px;
  line-height: 1.3;
}

.catalog-breadcrumbs a {
  color: var(--catalog-blue-dark);
  text-decoration: none;
}

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

.catalog-intro-row {
  display: block;
}

.catalog-intro h1 {
  max-width: 850px;
  margin: 0;
  color: var(--catalog-ink);
  font-size: clamp(30px, 3.1vw, 43px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.catalog-lead {
  margin: 8px 0 0;
  color: var(--catalog-muted);
  font-size: 14px;
  line-height: 1.5;
}

.catalog-content {
  position: relative;
  z-index: 0;
  overflow: clip;
  padding-top: 24px;
  background-color: #f8fcfd;
  background-image:
    linear-gradient(rgba(154, 211, 225, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 211, 225, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, #f7fcfd 46%, #fff 100%);
  background-size: 78px 78px, 78px 78px, 100% 100%;
}

.catalog-content::before,
.catalog-content::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border: 1px solid #cfe9f1;
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(248, 252, 253, 0.86), 0 0 0 29px #dceff4, 0 0 0 58px rgba(248, 252, 253, 0.78), 0 0 0 59px #e5f3f6;
  opacity: 0.72;
  pointer-events: none;
}

.catalog-content::before {
  left: -300px;
  top: 340px;
}

.catalog-content::after {
  right: -320px;
  top: 1480px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.catalog-sidebar,
.catalog-results,
.catalog-results .container {
  min-width: 0;
}

.catalog-sidebar {
  position: sticky;
  top: 92px;
}

.catalog-results .container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.catalog-menu-toggle,
.catalog-menu-backdrop,
.category-nav-close {
  display: none;
}

.category-nav {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--catalog-line);
  border-radius: 8px;
  background: #fff;
}

.category-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  padding: 0 15px;
  border-bottom: 1px solid var(--catalog-line);
  color: #fff;
  background: var(--catalog-ink);
  font-size: 15px;
}

.category-nav ul {
  margin: 0;
  padding: 5px 0;
  list-style: none;
}

.category-nav li {
  margin: 0;
  padding: 0;
}

.category-nav li + li {
  border-top: 1px solid #edf4f6;
}

.category-nav li a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 14px;
  color: #244d5c;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.28;
  text-decoration: none;
}

.category-nav li a:hover,
.category-nav li a.is-active {
  color: var(--catalog-blue-dark);
  background: var(--catalog-pale);
}

.category-nav li a.is-active {
  box-shadow: inset 3px 0 0 var(--catalog-blue);
  font-weight: 700;
}

.category-nav [data-category-count] {
  color: #82969e;
  font-size: 11px;
  font-weight: 500;
}

.category-nav-bottom {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--catalog-line);
  background: #f4fbfd;
}

.category-nav-bottom a {
  padding: 10px 14px;
  color: var(--catalog-blue-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.category-nav-bottom a + a {
  border-top: 1px solid #dceef3;
}

.category-nav-bottom a:hover {
  background: var(--catalog-pale);
}

.catalog-search-row {
  margin: 0 0 42px;
}

.catalog-search-row .ya-site-form {
  width: 100% !important;
  min-height: 50px;
  overflow: hidden;
  border: 1px solid #a9d7e3;
  border-radius: 8px;
  background: #fff;
}

.catalog-search-row .ya-site-form form {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  margin: 0;
}

.catalog-search-row .ya-site-form input[type="search"],
.catalog-search-row .ya-site-form input[type="text"] {
  min-width: 0;
  flex: 1 1 auto;
  height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  outline: 0;
  color: #173f4f;
  background: #fff;
  font: 400 16px/1 Roboto, Arial, sans-serif;
}

.catalog-search-row .ya-site-form input[type="submit"] {
  min-width: 104px;
  height: 48px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  color: #fff;
  background: var(--catalog-blue-dark);
  cursor: default;
  font: 700 14px/1 Roboto, Arial, sans-serif;
}

.catalog-search-row .ya-site-form input[type="submit"]:hover {
  background: var(--catalog-ink);
}

.catalog-search-row #ya-site-form0,
.catalog-search-row .ya-site-form__form,
.catalog-search-row .ya-site-form__input {
  width: 100% !important;
}

.catalog-search-row .ya-site-form__form,
.catalog-search-row .ya-site-form__wrap,
.catalog-search-row .ya-site-form__search,
.catalog-search-row .ya-site-form__search-input,
.catalog-search-row .ya-site-form__search-input-layout,
.catalog-search-row .ya-site-form__input {
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.catalog-search-row .ya-site-form__form,
.catalog-search-row .ya-site-form__input-text {
  background: #fff !important;
}

.catalog-search-row .ya-site-form__input-text {
  height: 48px !important;
  padding: 0 16px !important;
  border: 0 !important;
  outline: 0 !important;
  color: #173f4f !important;
  font: 400 16px/1 Roboto, Arial, sans-serif !important;
}

.catalog-search-row .ya-site-form__gap {
  display: none !important;
}

.catalog-search-row .ya-site-form__submit_type_image {
  width: 56px !important;
  height: 48px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--catalog-blue-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center / 20px 20px no-repeat !important;
  cursor: pointer !important;
}

.catalog-page .ya-page_js_yes .ya-site-form_inited_no {
  display: block;
}

.catalog-results > .container > .row {
  margin: 0 0 92px;
  padding: 0;
}

.catalog-results > .container > .row:last-child {
  margin-bottom: 0;
}

.category-table {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

.category-table thead,
.category-table thead tr,
.category-table thead td {
  display: block;
  width: 100%;
}

.category-table thead td {
  margin: 0 0 20px;
  padding: 0 0 13px;
  border-bottom: 2px solid var(--catalog-blue);
  color: var(--catalog-ink);
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.category-table thead td > span {
  display: none;
}

.category-table tbody {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.category-table tbody tr {
  position: relative;
  display: grid;
  grid-template-rows: 182px minmax(58px, auto) auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5e5ea;
  border-radius: 8px;
  color: #163e4d;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.category-table tbody tr[hidden],
.category-table tbody tr[style*="display: none"] {
  display: none !important;
}

.category-table tbody tr:hover {
  z-index: 1;
  border-color: #8cc9da;
  box-shadow: 0 8px 22px rgba(8, 57, 79, 0.1);
  transform: translateY(-2px);
}

.category-table tbody tr:focus-within {
  border-color: #118bc1;
  box-shadow: 0 0 0 3px rgba(17, 139, 193, 0.2);
}

.category-table tbody td {
  display: block;
  min-width: 0;
  border: 0;
}

.category-table tbody td:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 182px;
  padding: 16px;
  border-bottom: 1px solid #e3ecef;
  background: #fff;
}

.catalog-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.catalog-product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.catalog-product-link:hover { color: var(--catalog-blue-dark); }

.catalog-product-link:focus-visible {
  outline: 3px solid rgba(17, 139, 193, 0.35);
  outline-offset: 3px;
}

.category-table tbody td:first-child img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
}

.category-table tbody td:nth-child(2) {
  padding: 13px 15px 8px;
  color: #173f4f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.38;
}

.category-table tbody td:nth-child(2) span {
  display: none;
}

.category-table tbody td:nth-child(3) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 15px 14px;
  color: #71848c;
  font-size: 11px;
  line-height: 1.2;
}

.category-table tbody td:nth-child(3)::before {
  content: "Цена";
}

.category-table [data-price-value] {
  color: var(--catalog-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.category-table tbody td:nth-child(3) a {
  display: none;
}

.catalog-section-anchor {
  scroll-margin-top: 98px;
}

.catalog-menu-toggle:focus-visible,
.category-nav a:focus-visible,
.category-nav-close:focus-visible,
.catalog-search-row input:focus-visible {
  outline: 3px solid rgba(17, 139, 193, 0.38);
  outline-offset: 2px;
}

@media (max-width: 1050px) {
  .catalog-shell {
    width: min(100% - 36px, 980px);
  }

  .catalog-layout {
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 24px;
  }

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

@media (max-width: 760px) {
  body.catalog-menu-open {
    overflow: hidden;
  }

  .catalog-page main {
    padding-bottom: 64px;
  }

  .catalog-shell {
    width: calc(100% - 30px);
  }

  .catalog-intro {
    padding: 15px 0 17px;
  }

  .catalog-breadcrumbs {
    margin-bottom: 8px;
  }

  .catalog-intro-row {
    display: block;
  }

  .catalog-intro h1 {
    font-size: clamp(27px, 8.4vw, 35px);
    line-height: 1.07;
  }

  .catalog-lead {
    margin-top: 6px;
    font-size: 13px;
  }

  .catalog-content {
    padding-top: 16px;
    background-size: 64px 64px, 64px 64px, 100% 100%;
  }

  .catalog-layout {
    display: block;
  }

  .catalog-sidebar {
    position: sticky;
    top: 72px;
    z-index: 45;
    margin-bottom: 14px;
  }

  .catalog-menu-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #9fcfdd;
    border-radius: 8px;
    color: var(--catalog-ink);
    background: #fff;
    cursor: pointer;
    font: 700 14px/1.2 Roboto, Arial, sans-serif;
  }

  .catalog-menu-toggle > span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #fff;
    background: var(--catalog-blue-dark);
    font-size: 11px;
  }

  .catalog-menu-backdrop {
    position: fixed;
    inset: 65px 0 0;
    z-index: 130;
    width: 100%;
    height: calc(100dvh - 65px);
    border: 0;
    background: rgba(4, 31, 43, 0.46);
    cursor: default;
  }

  .catalog-menu-backdrop.is-open {
    display: block;
  }

  .category-nav {
    position: fixed;
    top: 65px;
    bottom: 0;
    left: 0;
    z-index: 140;
    display: block;
    width: min(330px, 88vw);
    overflow-y: auto;
    border: 0;
    border-right: 1px solid var(--catalog-line);
    border-radius: 0;
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform 200ms ease, visibility 200ms ease;
  }

  .category-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .category-nav-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 54px;
    padding-left: 18px;
  }

  .category-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -9px;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font: 300 30px/1 Arial, sans-serif;
  }

  .category-nav li a {
    min-height: 53px;
    padding-inline: 18px;
    font-size: 14px;
  }

  .category-nav-bottom a {
    padding: 14px 18px;
    font-size: 13px;
  }

  .catalog-search-row {
    margin-bottom: 36px;
  }

  .catalog-results > .container > .row {
    margin-bottom: 76px;
  }

  .category-table thead td {
    margin-bottom: 16px;
    font-size: clamp(22px, 6vw, 27px);
  }

  .catalog-section-anchor {
    scroll-margin-top: 84px;
  }
}

@media (max-width: 520px) {
  .catalog-search-row .ya-site-form input[type="submit"] {
    min-width: 82px;
    padding-inline: 13px;
  }

  .category-table tbody {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-table tbody tr {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: minmax(62px, auto) auto;
  }

  .category-table tbody td:first-child {
    grid-row: 1 / 3;
    min-height: 128px;
    padding: 10px;
    border-right: 1px solid #e3ecef;
    border-bottom: 0;
  }

  .category-table tbody td:first-child img {
    height: 106px;
  }

  .category-table tbody td:nth-child(2) {
    padding: 12px 12px 4px;
    font-size: 13px;
  }

  .category-table tbody td:nth-child(3) {
    padding: 4px 12px 12px;
  }

  .category-table [data-price-value] {
    font-size: 16px;
  }
}

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

  .category-table tbody tr,
  .category-nav {
    transition: none;
  }
}
