* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #3f3948;
  background: #f4effa;
}

a {
  color: #7a58b5;
  text-decoration: none;
}

a:hover {
  color: #5f3f98;
  text-decoration: underline;
}

.page {
  width: 1120px;
  max-width: calc(100% - 28px);
  margin: 18px auto;
  background: #fff;
  min-height: calc(100vh - 36px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(97, 70, 132, 0.16);
}

.top-bar {
  padding: 24px 32px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #ffffff, #f7f1ff);
  border-bottom: 1px solid #eadff7;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.logo-mark {
  width: 78px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 22px;
  background: linear-gradient(135deg, #b99add, #dbc8f4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(126, 89, 174, 0.22);
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.76);
  border-radius: 999px;
}

.logo-mark::before {
  width: 64px;
  height: 13px;
  left: 8px;
  top: 18px;
  transform: rotate(-18deg);
}

.logo-mark::after {
  width: 46px;
  height: 11px;
  right: -4px;
  bottom: 16px;
  transform: rotate(-18deg);
}

.logo-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
  letter-spacing: 0.03em;
  color: #5e4691;
  text-transform: uppercase;
}

.logo-subtitle {
  margin-top: 8px;
  color: #7a7183;
  font-size: 14px;
}

.contacts {
  margin: 0;
  padding: 12px 16px;
  text-align: right;
  color: #514a5a;
  font-size: 14px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid #eadff7;
  border-radius: 18px;
}

.contacts strong {
  display: block;
  font-size: 21px;
  color: #5e4691;
  margin-bottom: 4px;
}

.nav {
  padding: 0 24px 16px;
  background: #f7f1ff;
}

.nav-toggle {
  display: none;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 16px;
  background: #8d6bc6;
  color: #fff;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #eadff7;
  border-radius: 22px;
}

.nav a {
  display: block;
  padding: 12px 18px;
  color: #5d4b78;
  font-weight: bold;
  text-decoration: none;
  border-radius: 16px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
  background: #8d6bc6;
  text-decoration: none;
  transform: translateY(-1px);
}

.footer {
  padding: 20px 32px;
  color: #fff;
  background: #5e4691;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: #fff;
}

.hero,
.catalog-hero,
.section-hero {
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.72) 0 0, transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(185, 154, 221, 0.35) 0 0, transparent 32%),
    linear-gradient(135deg, #9d7bd0, #d9c6f2 58%, #f7f1ff);
  color: #fff;
}

.hero {
  min-height: 300px;
  display: flex;
  align-items: center;
}

.hero-content,
.catalog-hero-card,
.section-hero-card {
  max-width: 760px;
  padding: 28px;
  background: rgba(70, 49, 105, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  backdrop-filter: blur(4px);
}

.hero h1,
.hero h2,
.catalog-hero h1,
.section-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero p,
.catalog-hero p,
.section-hero p {
  margin: 0;
  max-width: 660px;
  font-size: clamp(16px, 2vw, 19px);
}

.breadcrumbs,
.breadcrumbs-wrap .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.catalog-hero .breadcrumbs,
.section-hero .breadcrumbs {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.84);
}

.catalog-hero .breadcrumbs a,
.section-hero .breadcrumbs a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs-wrap {
  padding: 20px 38px 0;
  background: #fff;
}

.breadcrumbs-wrap .breadcrumbs {
  color: #82758f;
}

.layout,
.catalog-layout,
.product-layout {
  display: grid;
  grid-template-columns: minmax(250px, 310px) 1fr;
  gap: 28px;
  padding: clamp(22px, 4vw, 38px);
}

.sidebar-box,
.sidebar-card,
.tree-card,
.content-card,
.catalog-intro,
.catalog-card,
.product-card,
.info-card,
.request-box,
.request-card,
.product-main {
  border: 1px solid #eadff7;
  background: #fbf8ff;
  border-radius: 24px;
  box-shadow: 0 12px 26px rgba(97, 70, 132, 0.08);
}

.sidebar-box,
.sidebar-card,
.tree-card {
  position: sticky;
  top: 20px;
  align-self: start;
  overflow: hidden;
}

.sidebar-box h2,
.sidebar-card h2,
.tree-head {
  margin: 0;
  padding: 15px 18px;
  font-size: 19px;
  color: #5e4691;
  background: #eee3fa;
}

.news-item {
  padding: 18px;
  border-bottom: 1px solid #eadff7;
}

.news-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #3f3948;
}

.news-date,
.product-tag,
.product-code {
  display: inline-block;
  margin-bottom: 9px;
  padding: 4px 10px;
  color: #6d5592;
  font-size: 12px;
  background: #f0e7fb;
  border-radius: 999px;
}

.news-more {
  padding: 14px 18px 18px;
}

.content h1,
.catalog-intro h2,
.content-card h2,
.info-card h2,
.request-card h2,
.request-box h2 {
  margin: 0 0 14px;
  color: #5e4691;
}

.content h1 {
  font-size: clamp(26px, 4vw, 36px);
}

.lead {
  margin-top: 0;
  font-size: 18px;
  color: #514a5a;
}

.equipment-list {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.equipment-list li {
  position: relative;
  padding: 13px 15px 13px 42px;
  background: #fbf8ff;
  border: 1px solid #eadff7;
  border-radius: 18px;
}

.equipment-list li::before,
.summary-list li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 21px;
  width: 10px;
  height: 10px;
  background: #b99add;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #f0e7fb;
}

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

.catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalog-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #eee3fa;
  z-index: 0;
}

.catalog-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  border-color: #d5c1ef;
  box-shadow: 0 18px 34px rgba(97, 70, 132, 0.14);
  text-decoration: none;
}

.catalog-card > * {
  position: relative;
  z-index: 1;
}

.catalog-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #8d6bc6, #b99add);
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(141, 107, 198, 0.23);
  font-weight: bold;
  font-size: 18px;
}

.catalog-menu,
.catalog-tree {
  list-style: none;
  margin: 0;
  padding: 10px;
}

.catalog-menu a,
.catalog-tree a,
.tree-node {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  color: #5d4b78;
  border-radius: 14px;
  text-decoration: none;
}

.catalog-menu a:hover,
.catalog-tree a:hover,
.catalog-tree a.is-active {
  color: #fff;
  background: #8d6bc6;
  text-decoration: none;
}

.catalog-tree ul {
  margin: 6px 0 4px 16px;
  padding: 0;
  list-style: none;
  border-left: 2px solid #eadff7;
}

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

.tree-head h2 {
  margin: 0;
  font-size: 19px;
}

.tree-mobile-toggle {
  display: none;
  border: 0;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: #8d6bc6;
  cursor: pointer;
}

.tree-node {
  font-weight: bold;
  color: #5e4691;
  background: #f7f1ff;
}

.tree-dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #b99add;
}

.toolbar {
  margin: 0 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-field {
  width: min(100%, 320px);
  padding: 12px 15px;
  border: 1px solid #eadff7;
  border-radius: 999px;
  outline: none;
  color: #3f3948;
  background: #fff;
}

.search-field:focus,
.request-form input:focus,
.request-form textarea:focus {
  border-color: #b99add;
  box-shadow: 0 0 0 4px #f0e7fb;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-image,
.main-image {
  padding: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.8) 0 0, transparent 34%),
    linear-gradient(135deg, #f7f1ff, #eee3fa);
}

.product-image {
  min-height: 190px;
}

.main-image {
  min-height: 350px;
  border: 1px solid #eadff7;
  border-radius: 28px;
}

.product-body {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-body p,
.catalog-card p {
  flex: 1;
}

.product-main {
  padding: clamp(20px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(260px, 390px) 1fr;
  gap: 28px;
  background: linear-gradient(135deg, #fbf8ff, #ffffff);
}

.product-summary h1 {
  margin: 0 0 14px;
  color: #5e4691;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.summary-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.summary-list li {
  position: relative;
  padding-left: 24px;
  color: #514a5a;
}

.summary-list li::before {
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
}

.valve-illustration {
  width: 180px;
  height: 142px;
  position: relative;
}

.main-image .valve-illustration {
  width: 220px;
  height: 176px;
}

.valve-illustration::before,
.valve-illustration::after,
.valve-body,
.valve-stem,
.valve-base {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, #8d6bc6, #b99add);
  box-shadow: 0 14px 28px rgba(141, 107, 198, 0.24);
}

.valve-illustration::before {
  width: 82%;
  height: 28%;
  left: 9%;
  bottom: 22%;
  border-radius: 999px;
}

.valve-illustration::after {
  width: 56%;
  height: 16%;
  left: 22%;
  top: 5%;
  border-radius: 999px;
  background: #cab4e8;
}

.valve-body {
  width: 50%;
  height: 52%;
  left: 25%;
  bottom: 17%;
  border-radius: 34px 34px 22px 22px;
}

.valve-stem {
  width: 11%;
  height: 45%;
  left: 44.5%;
  top: 19%;
  border-radius: 999px;
  background: #7f5db9;
}

.valve-base {
  width: 34%;
  height: 12%;
  left: 33%;
  bottom: 9%;
  border-radius: 999px;
  background: #d8c6ef;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  min-height: 82px;
  border: 1px solid #eadff7;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
}

.thumb.is-active {
  border-color: #b99add;
  box-shadow: 0 0 0 4px #f0e7fb;
}

.tabs {
  margin-top: 22px;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-button {
  border: 0;
  padding: 11px 16px;
  color: #6d5592;
  background: #f0e7fb;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
}

.tab-button.is-active {
  color: #fff;
  background: #8d6bc6;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.info-card,
.content-card,
.catalog-intro,
.request-card,
.request-box {
  padding: 24px;
  margin-bottom: 18px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.spec-table th,
.spec-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #eadff7;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 36%;
  color: #5e4691;
  background: #f7f1ff;
}

.doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.doc-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid #eadff7;
  border-radius: 16px;
  text-decoration: none;
}

.doc-list a:hover {
  color: #fff;
  background: #8d6bc6;
}

.request-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #f7f1ff, #fff);
}

.request-card {
  background: linear-gradient(135deg, #f7f1ff, #fff);
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.request-form input,
.request-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #eadff7;
  border-radius: 16px;
  outline: none;
  font: inherit;
  color: #3f3948;
  background: #fff;
}

.request-form textarea {
  min-height: 110px;
  grid-column: 1 / -1;
  resize: vertical;
}

.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f0e7fb;
  color: #5e4691;
}

.form-status.is-visible {
  display: block;
}

.btn,
.btn-secondary {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.btn {
  color: #fff;
  background: #8d6bc6;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(141, 107, 198, 0.24);
}

.btn:hover {
  color: #fff;
  background: #7656af;
  text-decoration: none;
}

.btn-secondary {
  color: #6d5592;
  background: #f0e7fb;
}

.btn-secondary:hover {
  color: #fff;
  background: #8d6bc6;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .product-main {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar-box,
  .sidebar-card,
  .tree-card {
    position: static;
  }

  .tree-mobile-toggle {
    display: inline-block;
  }

  .catalog-tree {
    display: none;
  }

  .catalog-tree.is-open {
    display: block;
  }
}

@media (max-width: 820px) {
  .catalog-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .top-bar,
  .footer,
  .request-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .top-bar {
    padding: 20px 18px 14px;
  }

  .contacts {
    width: 100%;
    text-align: left;
    white-space: normal;
  }

  .nav {
    padding: 0 18px 14px;
  }

  .nav-toggle {
    display: block;
  }

  .nav ul {
    display: none;
    margin-top: 10px;
    padding: 8px;
    flex-direction: column;
  }

  .nav ul.is-open {
    display: flex;
  }

  .nav a,
  .search-field,
  .product-actions a,
  .request-box .btn,
  .request-form .btn {
    width: 100%;
    text-align: center;
  }

  .hero,
  .catalog-hero,
  .section-hero {
    padding: 26px 16px;
  }

  .hero-content,
  .catalog-hero-card,
  .section-hero-card {
    padding: 22px;
  }

  .layout,
  .catalog-layout,
  .product-layout {
    padding: 22px 16px 28px;
  }

  .breadcrumbs-wrap {
    padding: 18px 16px 0;
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    border-bottom: 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

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

  .logo-mark {
    width: 58px;
    height: 52px;
    border-radius: 18px;
  }

  .logo-subtitle {
    font-size: 13px;
  }

  .contacts strong {
    font-size: 18px;
  }

  .valve-illustration {
    transform: scale(0.82);
  }
}