/**
 * MegaGen v2 — product detail page (dark layout).
 */

body.v2-product-page {
  --product-bg: #0a0e1a;
  --product-surface: #ffffff;
  --product-ink: #ffffff;
  --product-muted: rgba(255, 255, 255, 0.62);
  --product-line: rgba(255, 255, 255, 0.12);
  --product-brand: #1656e0;
  --product-brand-glow: rgba(22, 86, 224, 0.45);
  background: var(--product-bg) !important;
  color: var(--product-ink);
}

body.v2-product-page div.page {
  max-width: var(--shell-width, 1440px);
  margin: 0 auto;
  padding: 0;
  background: var(--product-bg);
}

body.v2-product-page main.v2-product-page,
body.v2-product-page main.main_new2.v2-product-page {
  padding-top: 0;
  background: var(--product-bg);
  color: var(--product-ink);
  overflow: visible;
}

/* Shell content — 1440px like homepage (no side gutter on desktop) */
body.v2-product-page .v2-product-inner,
body.v2-product-page .screen_product_1 .container,
body.v2-product-page .screen_product_2 .container,
body.v2-product-page .screen_product_3 .container,
body.v2-product-page .screen_product_4 .container,
body.v2-product-page .screen_main_8 .container,
body.v2-product-page .v2-product-kit .container,
body.v2-product-page .v2-product-system .container {
  max-width: var(--shell-width, 1440px);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* Override legacy style.css .container (1230px / 15px padding) */
body.v2-product-page .container {
  max-width: var(--shell-width, 1440px);
  padding-left: 0;
  padding-right: 0;
}

/* Breadcrumbs — same vertical rhythm as catalog (.breadcrumbs: 40px / 28px) */
body.v2-product-page nav.breadcrumbs.v2-product-breadcrumbs,
body.v2-product-page .v2-product-breadcrumbs {
  margin: 40px auto 28px;
  padding: 0;
  max-width: var(--shell-width, 1440px);
  box-sizing: border-box;
}

/* Product pages: compact dark chrome — no topbar stack, content under sticky header */
body.v2-product-page.v2-chrome-dark .v2-chrome-zone {
  margin-bottom: 0;
}

body.v2-product-page.v2-chrome-dark .v2-chrome-zone > .topbar--full {
  display: none;
}

body.v2-product-page.v2-chrome-dark .v2-chrome-zone > .v2-chrome-zone__inner {
  margin-top: 0;
}

body.v2-product-page.v2-chrome-dark .header--hero {
  margin-bottom: 0;
}

body.v2-product-page .v2-product-breadcrumbs .breadcrumbs {
  margin: 0;
}

body.v2-product-page .v2-product-breadcrumbs .breadcrumbs,
body.v2-product-page .v2-product-breadcrumbs .breadcrumbs a,
body.v2-product-page .v2-product-breadcrumbs .breadcrumbs a span,
body.v2-product-page .v2-product-breadcrumbs .breadcrumbs .kb_sep {
  color: var(--product-muted);
  font-size: 13px;
  line-height: 1.4;
}

body.v2-product-page .v2-product-breadcrumbs .breadcrumbs a:hover {
  color: #fff;
}

body.v2-product-page .v2-product-breadcrumbs .breadcrumbs .curst,
body.v2-product-page .v2-product-breadcrumbs .breadcrumbs span .curst {
  color: var(--product-brand);
}

/* Hero layout — compact gap before next block / footer */
body.v2-product-page .v2-product-hero {
  padding-bottom: 32px;
}

body.v2-product-page main.v2-product-page:not(:has(.screen_product_2, .screen_product_3, .screen_product_4, .screen_main_8, .v2-product-kit, .v2-product-system)) .v2-product-hero {
  padding-bottom: 24px;
}

body.v2-product-page main.v2-product-page:not(:has(.screen_product_2, .screen_product_3, .screen_product_4, .screen_main_8, .v2-product-kit, .v2-product-system)) footer.footer {
  margin-top: 0;
  padding-top: 32px;
}

body.v2-product-page .screen_product_1_bloks {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

body.v2-product-page .screen_product_1_blok_right {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

body.v2-product-page .screen_product_1_blok_right h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 10px;
}

body.v2-product-page .screen_product_1_blok_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--product-muted);
}

body.v2-product-page .screen_product_1_blok_info > span:first-child {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

body.v2-product-page .screen_product_1_blok_info > span:last-child {
  color: var(--product-muted);
}

body.v2-product-page .product_sku {
  color: #fff;
  font-weight: 500;
}

/* Gallery */
body.v2-product-page .card-slider:not(.slick-initialized) > div:not(:first-child) {
  display: none;
}

body.v2-product-page .smoll-card-slider:not(.slick-initialized) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.v2-product-page .smoll-card-slider:not(.slick-initialized) > div {
  flex: 0 0 88px;
  max-width: 88px;
}

body.v2-product-page .card-slider .slick-list {
  border-radius: 20px;
  overflow: hidden;
}

body.v2-product-page .card-slider a {
  display: block;
  background: var(--product-surface);
  border: none;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
}

body.v2-product-page .card-slider a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

body.v2-product-page .smoll-card-slider {
  margin: 16px -5px 0;
}

body.v2-product-page .smoll-card-slider .slick-slide {
  margin: 0 5px;
}

body.v2-product-page .smoll-card-slider img {
  width: 100%;
  max-width: 88px;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--product-surface);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

body.v2-product-page .smoll-card-slider .slick-current img {
  border-color: var(--product-brand);
}

/* Config panel: dropdowns, then specs table */
body.v2-product-page .v2-product-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
}

body.v2-product-page .v2-product-panel__controls {
  min-width: 0;
}

body.v2-product-page .screen_product_1_blok_selects {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 0;
}

body.v2-product-page .screen_product_1_blok_select,
body.v2-product-page .screen_product_1_blok_button {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

body.v2-product-page .screen_product_01_blok_select {
  max-width: none;
}

body.v2-product-page .screen_product_1_blok_select_name {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 10px;
  line-height: 1.2;
}

body.v2-product-page .screen_product_1_blok_select select {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 34px 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 44px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.72)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

body.v2-product-page .screen_product_1_blok_select select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
}

body.v2-product-page .screen_product_1_blok_select .select2-container {
  display: block;
  width: 100% !important;
}

body.v2-product-page .select2-container--default .select2-selection--single {
  height: 44px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px;
  box-shadow: none;
}

body.v2-product-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 44px;
  padding-left: 14px;
  padding-right: 34px;
  padding-top: 0;
}

body.v2-product-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
}

body.v2-product-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none;
}

body.v2-product-page .select2-container--default .select2-selection--single .select2-selection__arrow::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: 2px auto 0;
  border-right: 1.5px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

body.v2-product-page .select2-container--open .select2-selection--single .select2-selection__arrow::after {
  transform: rotate(-135deg);
  margin-top: 6px;
}

body.v2-product-page .select2-dropdown {
  background: rgba(22, 26, 38, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

body.v2-product-page .select2-container--default .select2-results__option {
  color: rgba(255, 255, 255, 0.9);
  padding: 9px 14px;
  font-size: 15px;
}

body.v2-product-page .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff;
}

body.v2-product-page .select2-container--default .select2-results__option--selected {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff;
}

body.v2-product-page .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--product-brand) !important;
  box-shadow: 0 0 0 3px var(--product-brand-glow);
  background: rgba(255, 255, 255, 0.09) !important;
}

body.v2-product-page .select2-container--default .select2-selection--single {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.v2-product-page .select2-container--default .select2-selection--single:hover {
  border-color: rgba(255, 255, 255, 0.24) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.v2-product-page .v2-product-select2-dropdown.select2-dropdown {
  margin-top: 6px;
  padding: 6px;
  border-radius: 12px;
  animation: v2ProductSelectIn 0.18s ease;
}

@keyframes v2ProductSelectIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.v2-product-page .v2-product-select2-dropdown .select2-results__options {
  max-height: 240px;
}

body.v2-product-page .v2-product-select2-dropdown .select2-results__option {
  border-radius: 8px;
  margin-bottom: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

body.v2-product-page .v2-product-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(22, 86, 224, 0.28) !important;
  color: #fff;
}

body.v2-product-page .v2-product-select2-dropdown .select2-results__option--selected {
  background: rgba(22, 86, 224, 0.18) !important;
  color: #fff;
  font-weight: 600;
  position: relative;
  padding-right: 34px;
}

body.v2-product-page .v2-product-select2-dropdown .select2-results__option--selected::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 12px;
  margin-top: -7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

body.v2-product-page .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(255, 255, 255, 0.45);
}

body.v2-product-page .screen_product_1_blok_select .select2-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Order card — promo pricing + qty + CTA */
body.v2-product-page .v2-product-order-card {
  margin-top: 8px;
  padding: 20px 22px 18px;
  border-radius: 16px;
  border: 1px solid var(--product-line);
  background: rgba(255, 255, 255, 0.04);
}

body.v2-product-page .v2-product-promo-pricing {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.v2-product-page .v2-product-promo-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

body.v2-product-page .v2-product-promo-row--primary .v2-product-promo-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--product-brand);
}

body.v2-product-page .v2-product-promo-row--primary .v2-product-promo-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--product-brand);
  white-space: nowrap;
}

body.v2-product-page .v2-product-promo-row--primary .v2-product-promo-value .promo-price-amount {
  font-size: inherit;
  font-weight: inherit;
}

body.v2-product-page .v2-product-promo-row--primary .v2-product-promo-value .byn {
  width: 0.78em;
  height: 0.92em;
  margin-left: 0.08em;
}

body.v2-product-page .v2-product-promo-row--full .v2-product-promo-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--product-muted);
}

body.v2-product-page .v2-product-promo-row--full .v2-product-promo-value {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

body.v2-product-page .v2-product-promo-value--strike .promo-price-amount {
  text-decoration: line-through;
}

body.v2-product-page .v2-product-promo-disclaimer {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.42);
}

body.v2-product-page .v2-product-order-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
}

body.v2-product-page .v2-product-order-note__icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--product-brand);
  opacity: 0.85;
}

/* Qty + CTA — one row */
body.v2-product-page .v2-product-buy {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 0;
}

body.v2-product-page .v2-product-buy .v2-product-qty {
  margin-bottom: 0;
  flex-shrink: 0;
}

body.v2-product-page .v2-product-buy .v2-product-actions {
  flex: 1 1 auto;
  min-width: 0;
}

body.v2-product-page .v2-product-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  min-height: 52px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

body.v2-product-page .v2-product-qty .qty-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

body.v2-product-page .v2-product-qty .qty-button.inc {
  color: #fff;
}

body.v2-product-page .v2-product-qty .qty-button.not-activ {
  opacity: 0.35;
  cursor: default;
}

body.v2-product-page .v2-product-qty input {
  width: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 0;
}

body.v2-product-page .v2-product-panel .v2-product-specs {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  align-content: start;
}

body.v2-product-page .v2-product-panel .v2-product-specs dt {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

body.v2-product-page .v2-product-panel .v2-product-specs dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

body.v2-product-page .v2-product-panel .v2-product-specs-intro,
body.v2-product-page .v2-product-panel .v2-product-specs-heading,
body.v2-product-page .v2-product-panel .v2-product-specs-item {
  grid-column: 1 / -1;
}

body.v2-product-page .v2-product-panel .v2-product-specs-heading {
  margin-top: 4px;
  margin-bottom: 0;
}

body.v2-product-page .v2-product-panel .v2-product-specs-intro {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}

body.v2-product-page .v2-product-panel .v2-product-specs-item {
  padding-left: 0;
}

/* CTA */
body.v2-product-page .v2-product-actions {
  display: block;
  width: 100%;
  max-width: none;
}

body.v2-product-page .product-block__button.v2-product-actions {
  justify-content: flex-start;
}

body.v2-product-page .v2-product-cta.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none !important;
  min-height: 52px;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 999px;
  background: var(--product-brand);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(22, 86, 224, 0.2), 0 8px 32px var(--product-brand-glow);
  transition: background 0.2s, box-shadow 0.2s;
}

body.v2-product-page .v2-product-cta.button:hover {
  background: #0e4fd4;
  box-shadow: 0 0 0 1px rgba(22, 86, 224, 0.35), 0 12px 36px var(--product-brand-glow);
}

/* Param buttons (vid_2) */
body.v2-product-page .screen_product_1_blok_but {
  border: 1px solid var(--product-line);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
}

body.v2-product-page .screen_product_1_blok_but.active {
  border-color: var(--product-brand);
  background: rgba(22, 86, 224, 0.2);
  color: #fff;
}

/* Lower sections — base text colors (detailed layout below) */
body.v2-product-page .screen_product_2 h2,
body.v2-product-page .content_prod_head_name,
body.v2-product-page .rezba_name {
  color: #fff;
}

body.v2-product-page .screen_product_2 {
  padding-top: 48px;
}

/* Kit composition */
body.v2-product-page .v2-product-kit {
  padding: 48px 0 8px;
}

body.v2-product-page .v2-product-kit__title {
  margin: 0 0 24px;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

body.v2-product-page .v2-product-kit__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 8px;
}

body.v2-product-page .v2-product-kit .cat-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: none;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

body.v2-product-page .v2-product-kit .cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 14, 26, 0.12);
}

body.v2-product-page .v2-product-kit .cat-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  text-decoration: none;
  overflow: hidden;
}

body.v2-product-page .v2-product-kit .cat-card-img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

body.v2-product-page .v2-product-kit .cat-card-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink, #0a0e1a);
  line-height: 1.3;
  letter-spacing: -0.3px;
  text-decoration: none;
  margin-bottom: 12px;
}

body.v2-product-page .v2-product-kit .cat-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand, #1656e0);
  text-decoration: none;
}

body.v2-product-page .v2-product-kit .cat-card-more svg {
  flex-shrink: 0;
}

/* Linked system page content */
body.v2-product-page .v2-product-system {
  padding: 48px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.v2-product-page .v2-product-system__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

body.v2-product-page .v2-product-system__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

body.v2-product-page .v2-product-system__lead {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.45;
}

body.v2-product-page .v2-product-system__link {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(22, 86, 224, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  background: rgba(22, 86, 224, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.v2-product-page .v2-product-system__link:hover {
  background: rgba(22, 86, 224, 0.28);
  border-color: #1656e0;
}

body.v2-product-page .v2-product-system__intro,
body.v2-product-page .v2-product-system__thread,
body.v2-product-page .v2-product-system__surface,
body.v2-product-page .v2-product-system__lineup,
body.v2-product-page .v2-product-system__blocks--secondary {
  margin-top: 40px;
}

body.v2-product-page .v2-product-system__richtext,
body.v2-product-page .v2-product-system__richtext p,
body.v2-product-page .v2-product-system__richtext li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.55;
}

body.v2-product-page .v2-product-system__richtext a {
  color: #1656e0;
}

body.v2-product-page .v2-product-system__richtext strong,
body.v2-product-page .v2-product-system__block-title,
body.v2-product-page .v2-product-system__thread-title,
body.v2-product-page .v2-product-system__surface-title,
body.v2-product-page .v2-product-system__lineup-title {
  color: #fff;
}

body.v2-product-page .v2-product-system__intro .v2-product-system__richtext {
  padding: 24px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.v2-product-page .v2-product-system__blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

body.v2-product-page .v2-product-system__block {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.v2-product-page .v2-product-system__block:nth-child(even) {
  flex-direction: row-reverse;
  background: rgba(255, 255, 255, 0.06);
}

body.v2-product-page .v2-product-system__block-body {
  flex: 1;
  min-width: 0;
}

body.v2-product-page .v2-product-system__block-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

body.v2-product-page .v2-product-system__block-desc p,
body.v2-product-page .v2-product-system__block-desc li {
  color: rgba(255, 255, 255, 0.78);
}

body.v2-product-page .v2-product-system__block-media {
  flex-shrink: 0;
}

body.v2-product-page .v2-product-system__block-media img {
  display: block;
  width: auto;
  max-width: min(450px, 42vw);
  height: auto;
  border-radius: 20px;
}

body.v2-product-page .v2-product-system__thread-media {
  position: relative;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  overflow: hidden;
}

body.v2-product-page .v2-product-system__thread-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

body.v2-product-page .v2-product-system__thread-point {
  position: absolute;
}

body.v2-product-page .v2-product-system__thread-point-desc {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 14, 26, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.v2-product-page .v2-product-system__thread-point:hover .v2-product-system__thread-point-desc {
  opacity: 1;
}

body.v2-product-page .v2-product-system__thread-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 600;
}

body.v2-product-page .v2-product-system__surface {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.v2-product-page .v2-product-system__surface-media {
  flex-shrink: 0;
}

body.v2-product-page .v2-product-system__surface-media img {
  display: block;
  width: auto;
  max-width: min(500px, 40vw);
  height: auto;
  border-radius: 20px;
}

body.v2-product-page .v2-product-system__surface-body {
  flex: 1;
  min-width: 0;
}

body.v2-product-page .v2-product-system__surface-title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 600;
}

body.v2-product-page .v2-product-system__lineup-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 600;
}

body.v2-product-page .v2-product-system__lineup-grid {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 28px;
}

body.v2-product-page .v2-product-system__lineup-left {
  flex: 1;
  min-width: 0;
}

body.v2-product-page .v2-product-system__lineup-subtitle {
  margin: 0 0 18px;
  color: #1656e0;
  font-size: 22px;
  font-weight: 600;
}

body.v2-product-page .v2-product-system__lineup-section {
  margin-bottom: 20px;
}

body.v2-product-page .v2-product-system__lineup-section-name {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

body.v2-product-page .v2-product-system__lineup-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.v2-product-page .v2-product-system__lineup-size {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

body.v2-product-page .v2-product-system__lineup-size.is-active {
  border-color: #1656e0;
  color: #1656e0;
}

body.v2-product-page .v2-product-system__lineup-note {
  margin-top: 18px;
}

body.v2-product-page .v2-product-system__lineup-note-title {
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

body.v2-product-page .v2-product-system__lineup-media {
  flex-shrink: 0;
}

body.v2-product-page .v2-product-system__lineup-media img {
  display: block;
  width: auto;
  max-width: min(600px, 44vw);
  height: auto;
  border-radius: 20px;
  border: 3px solid rgba(22, 86, 224, 0.45);
}

/* Standalone system description page — patients-style hero on dark product layout */
body.v2-system-page .home-hero-zone--patients {
  margin-bottom: 36px;
}

body.v2-system-page div.page {
  padding-top: 0;
}

body.v2-system-page main.v2-product-page,
body.v2-system-page main.main_new2.v2-product-page {
  padding-bottom: 48px;
}

body.v2-system-page .patients-hero-static__content h1 {
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -2px;
  font-weight: 600;
  margin: 0 0 22px;
  max-width: 760px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
}

body.v2-system-page .patients-hero-static__subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

body.v2-system-page .patients-hero-static__content .ph-hero-cta {
  margin-top: 48px;
}

body.v2-system-page .patients-hero-static__content .home-hero-slide__btn {
  opacity: 1;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.v2-system-page .patients-hero-static__content .home-hero-slide__btn:hover {
  background: #f4f7ff;
  color: var(--brand-deep, #0a3dae);
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

body.v2-product-page .v2-product-system--standalone {
  padding-top: 8px;
  border-top: none;
}

body.v2-product-page .v2-product-system--standalone .v2-product-system__intro {
  margin-top: 0;
}

/* Product description tabs — legacy markup on v2 product page */
body.v2-product-page .screen_product_3 {
  padding-top: 48px;
  padding-bottom: 48px;
}

body.v2-product-page .screen_product_3 .tabs__caption_prod {
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.v2-product-page .screen_product_3 .tabs__caption_prod li {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.v2-product-page .screen_product_3 .tabs__caption_prod li.active {
  background: rgba(22, 86, 224, 0.2);
  border-color: #1656e0;
  color: #fff;
}

body.v2-product-page .screen_product_3 .tabs__content_prod {
  padding-top: 40px;
}

body.v2-product-page .screen_product_3 .content_prod_head {
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 8px;
}

body.v2-product-page .screen_product_3 .content_prod_head_name {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.15;
}

body.v2-product-page .screen_product_3 .content_prod_head_desc,
body.v2-product-page .screen_product_3 .content_prod_head_right,
body.v2-product-page .screen_product_3 .content_prod_head_right p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.55;
}

body.v2-product-page .screen_product_3 .content_prod_head_right {
  max-width: 520px;
  border-left: 3px solid #1656e0;
  padding-left: 18px;
}

body.v2-product-page .screen_product_3 .content_prods_body {
  padding-top: 24px;
  gap: 24px;
}

body.v2-product-page .screen_product_3 .content_prod_body,
body.v2-product-page .screen_product_4 .content_prod_body,
body.v2-product-page .screen_main_8 .content_prod_body {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.v2-product-page .screen_product_3 .content_prod_body:nth-child(even),
body.v2-product-page .screen_product_4 .content_prod_body:nth-child(even),
body.v2-product-page .screen_main_8 .content_prod_body:nth-child(even) {
  flex-direction: row-reverse;
  background: rgba(255, 255, 255, 0.06);
}

body.v2-product-page .screen_product_3 .content_prod_body_name,
body.v2-product-page .screen_product_4 .content_prod_body_name {
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

body.v2-product-page .screen_product_3 .content_prod_body_desc p,
body.v2-product-page .screen_product_3 .content_prod_body_desc li,
body.v2-product-page .screen_product_4 .content_prod_body_desc p,
body.v2-product-page .screen_product_4 .content_prod_body_desc li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

body.v2-product-page .screen_product_3 .content_prod_body_right img,
body.v2-product-page .screen_product_4 .content_prod_body_right img {
  display: block;
  width: auto;
  max-width: min(450px, 42vw);
  height: auto;
  border-radius: 20px;
}

body.v2-product-page .screen_product_4 {
  padding-top: 48px;
  padding-bottom: 48px;
}

body.v2-product-page .screen_product_4 .rezba_img {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  overflow: hidden;
}

body.v2-product-page .screen_product_4 .rezba_img img {
  width: 100%;
  border-radius: 20px;
}

body.v2-product-page .screen_product_4 .rezba_name {
  margin: 24px 0 12px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

body.v2-product-page .screen_product_4 .rezba_desc,
body.v2-product-page .screen_product_4 .rezba_desc p,
body.v2-product-page .screen_product_4 .rezba_desc li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.55;
}

body.v2-product-page .screen_main_8 {
  padding-top: 48px;
  padding-bottom: 48px;
}

body.v2-product-page .screen_main_8 .all_rights {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.v2-product-page .screen_main_8 .all_right_left img {
  display: block;
  width: auto;
  max-width: min(500px, 40vw);
  height: auto;
  border-radius: 20px;
}

body.v2-product-page .screen_main_8 .all_right_name {
  margin: 0 0 12px;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

body.v2-product-page .screen_main_8 .all_right_right,
body.v2-product-page .screen_main_8 .all_right_right p,
body.v2-product-page .screen_main_8 .all_right_right li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.55;
}

body.v2-product-page .screen_product_2 h2 {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 600;
}

/* Override legacy style.css gallery widths (532px / flex) on v2 product */
body.v2-product-page .screen_product_1_bloks {
  display: grid;
  width: 100%;
  min-width: 0;
}

body.v2-product-page .screen_product_1_blok_left,
body.v2-product-page .screen_product_1_blok_right {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.v2-product-page .card-slider {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  box-sizing: border-box;
}

body.v2-product-page .card-slider .slick-list {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Slick sets track/slide widths in px — don't override or slides stack vertically */
body.v2-product-page .card-slider.slick-initialized .slick-list {
  height: auto !important;
  aspect-ratio: 1;
}

body.v2-product-page .card-slider.slick-initialized .slick-track,
body.v2-product-page .card-slider.slick-initialized .slick-slide,
body.v2-product-page .card-slider.slick-initialized .slick-slide > div {
  height: 100%;
}

body.v2-product-page .card-slider .slick-slide > div,
body.v2-product-page .card-slider a {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  body.v2-product-page .screen_product_1_bloks {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body.v2-product-page .v2-product-inner,
  body.v2-product-page .v2-product-breadcrumbs,
  body.v2-product-page .screen_product_2 .container,
  body.v2-product-page .screen_product_3 .container,
  body.v2-product-page .screen_product_4 .container,
  body.v2-product-page .screen_main_8 .container,
  body.v2-product-page .v2-product-kit .container,
  body.v2-product-page .v2-product-system .container {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  body.v2-product-page .v2-product-kit__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.v2-product-page .v2-product-system__head {
    flex-direction: column;
  }

  body.v2-product-page .v2-product-system__block,
  body.v2-product-page .v2-product-system__surface,
  body.v2-product-page .v2-product-system__lineup-grid {
    flex-direction: column;
    align-items: stretch;
  }

  body.v2-product-page .v2-product-system__block:nth-child(even) {
    flex-direction: column-reverse;
  }

  body.v2-product-page .v2-product-system__block-media img,
  body.v2-product-page .v2-product-system__surface-media img,
  body.v2-product-page .v2-product-system__lineup-media img {
    max-width: 100%;
    width: 100%;
  }

  body.v2-system-page .patients-hero-static__content h1 {
    font-size: clamp(32px, 8vw, 52px);
  }

  body.v2-product-page .screen_product_3 .content_prod_body,
  body.v2-product-page .screen_product_3 .content_prod_body:nth-child(even),
  body.v2-product-page .screen_product_4 .content_prod_body,
  body.v2-product-page .screen_main_8 .all_rights {
    flex-direction: column;
    align-items: stretch;
  }

  body.v2-product-page .screen_product_3 .content_prod_body:nth-child(even) {
    flex-direction: column-reverse;
  }

  body.v2-product-page .screen_product_3 .content_prod_body_right img,
  body.v2-product-page .screen_product_4 .content_prod_body_right img,
  body.v2-product-page .screen_main_8 .all_right_left img {
    max-width: 100%;
    width: 100%;
  }

  body.v2-product-page .screen_product_3 .content_prod_head {
    flex-direction: column;
  }

  body.v2-product-page .v2-product-panel {
    gap: 0;
  }

  body.v2-product-page .screen_product_1_blok_selects {
    flex-wrap: wrap;
  }

  body.v2-product-page .screen_product_1_blok_select,
  body.v2-product-page .screen_product_1_blok_button {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 768px) {
  body.v2-product-page div.page.page--product-dark {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow-x: hidden;
  }

  body.v2-product-page main.v2-product-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body.v2-product-page nav.breadcrumbs.v2-product-breadcrumbs,
  body.v2-product-page .v2-product-breadcrumbs {
    margin-top: 36px;
    margin-bottom: 28px;
    padding-left: 16px;
    padding-right: 16px;
  }

  body.v2-product-page .v2-product-breadcrumbs .breadcrumbs {
    flex-wrap: wrap;
    row-gap: 4px;
  }
}

@media (max-width: 640px) {
  body.v2-product-page .screen_product_1_blok_select,
  body.v2-product-page .screen_product_1_blok_button {
    flex: 1 1 100%;
  }

  body.v2-product-page .screen_product_1_blok_selects {
    flex-direction: column;
  }

  body.v2-product-page .v2-product-panel .v2-product-specs {
    margin-top: 20px;
  }

  body.v2-product-page .v2-product-order-card {
    padding: 16px 16px 14px;
  }

  body.v2-product-page .v2-product-promo-row--primary .v2-product-promo-value {
    font-size: 24px;
  }

  body.v2-product-page .v2-product-buy {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body.v2-product-page .v2-product-qty {
    align-self: flex-start;
  }

  body.v2-product-page .v2-product-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.v2-product-page .screen_product_1_blok_right h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  body.v2-product-page .v2-product-kit__grid {
    grid-template-columns: 1fr;
  }
}
