:root {
  --site-header-height: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height) + 12px);
  font-size: 15px;
}

html,
body {
  margin: 0;
  padding: 0;
  overscroll-behavior-y: none;
}

body {
  font-family: "Onest", "Segoe UI", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

::-moz-selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

main {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--site-header-height) + 16px);
}

body.home main,
body.front-page main {
  padding-top: var(--site-header-height);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image: var(--page-gradient), var(--bg-pattern);
  background-repeat: no-repeat, no-repeat;
  background-size: cover, auto;
  transform: none;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font-family: inherit;
  pointer-events: auto;
}

.container {
  width: min(1360px, 94%);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--header-glass-bg, var(--panel));
  border-bottom: none;
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 64px;
  height: auto;
  color: var(--accent);
  filter: var(--logo-filter);
  transition: filter 0.3s ease;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.brand-tagline {
  font-size: 14px;
  line-height: 1.1;
  color: var(--muted);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  position: relative;
}

.site-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  touch-action: manipulation;
}

.site-nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.header-cta {
  white-space: nowrap;
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 10px;
  box-shadow: none;
  line-height: 1.1;
}

.header-cta:hover,
.header-cta:focus-visible {
  box-shadow: var(--shadow-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  touch-action: manipulation;
}

.nav-toggle-bars {
  display: grid;
  gap: 3px;
}

.nav-toggle-bar {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  touch-action: manipulation;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.theme-switch-track {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface), var(--panel));
  position: relative;
  box-shadow: inset 0 1px 0 var(--highlight);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-switch-track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  transform: translate(0, -50%);
  transition: transform 0.2s ease;
}

.theme-switch input:checked + .theme-switch-track::after {
  transform: translate(16px, -50%);
}

.theme-switch input:focus-visible + .theme-switch-track {
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 var(--highlight), var(--shadow-soft);
}

.theme-switch-text {
  color: var(--accent);
  display: inline-block;
  min-width: 7ch;
  text-align: left;
}

.hero {
  padding: 52px 0 40px;
  background-image: linear-gradient(135deg, var(--hero-gradient-start), var(--hero-gradient-end));
  background-size: cover;
  position: relative;
  z-index: 2;
  overflow: hidden;
  min-height: calc(100svh - var(--site-header-height));
  display: flex;
  align-items: center;
}

.hero--with-video {
  background-image: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(8, 58, 44, 0.64), rgba(5, 43, 33, 0.48));
}

html.theme-light .hero--with-video .hero-eyebrow,
html.theme-light .hero--with-video .hero-subtitle {
  color: rgba(244, 247, 250, 0.92);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

html.theme-light .hero--with-video h1 {
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

html.theme-light .hero--with-video .btn-outline {
  border-color: rgba(255, 255, 255, 0.9);
  color: #ffffff;
  background: rgba(13, 60, 45, 0.28);
}

html.theme-light .hero--with-video .btn-ghost {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.95);
  color: #1a2c25;
}

.hero--with-video .hero-content,
.hero--with-video .hero-actions,
.hero--with-video .hero-panel {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fade-up 0.8s ease both;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
  margin: 0;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
}

.btn.header-cta {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px var(--shadow-color);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: var(--button-press-shadow);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.hero-panel {
  display: grid;
  gap: 16px;
  pointer-events: none;
}

.hero-card {
  background: linear-gradient(160deg, var(--surface), var(--panel));
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-soft), var(--card-glow), inset 0 1px 0 var(--highlight);
  animation: fade-up 0.9s ease both;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-card.accent {
  border-color: var(--accent);
}

.hero-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.hero-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.advantages {
  padding: clamp(36px, 5vw, 64px) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.advantages::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/proizvod.jpg");
  background-image: image-set(url("../img/proizvod.webp") type("image/webp"), url("../img/proizvod.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center calc(50% + var(--scroll-shift-small));
  background-repeat: no-repeat;
  filter: blur(clamp(0.6px, 0.15vw, 1.8px)) saturate(0.98) contrast(1.08);
  opacity: var(--adv-bg-opacity);
  z-index: 0;
  pointer-events: none;
}

.advantages::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, var(--adv-bg-overlay-start), var(--adv-bg-overlay-end)),
    radial-gradient(circle at 18% 18%, var(--adv-bg-glow-1), transparent 58%),
    radial-gradient(circle at 82% 14%, var(--adv-bg-glow-2), transparent 62%);
  opacity: 0.95;
  z-index: 1;
  pointer-events: none;
}

.advantages .container {
  position: relative;
  z-index: 2;
}

.forms::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 360px;
  height: 360px;
  background: var(--corner-glow);
  opacity: 0.85;
  z-index: 1;
  will-change: transform;
  pointer-events: none;
}

.forms::before {
  transform: translate3d(0, var(--scroll-shift-strong), 0);
}

.forms .container {
  position: relative;
  z-index: 3;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 720px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 36px);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.page-section {
  padding: clamp(24px, 3.6vw, 44px) 0;
  position: relative;
  z-index: 2;
}

body:not(.home):not(.front-page) .page-section {
  padding: clamp(18px, 2.6vw, 34px) 0;
}

.page-section:first-of-type {
  padding-top: 16px;
}

.cards-grid {
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
}

.content-stack {
  display: grid;
  gap: 12px;
}

.content-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.content-list li {
  margin-bottom: 4px;
}

.content-list li:last-child {
  margin-bottom: 0;
}

.product-card-price {
  color: var(--accent);
  font-weight: 600;
}

.product-card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-card-media:empty::before {
  content: "Фото";
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.products .cards-grid {
  grid-auto-rows: 1fr;
}

.products .product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}

.products .product-card .legal-meta {
  margin: 0;
  line-height: 1.35;
  min-height: calc(1.35em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products .product-card .legal-meta--placeholder {
  visibility: hidden;
}

.products .product-card-title {
  margin: 0;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products .product-card-meta {
  min-height: 1.35em;
}

.products .product-card-meta--placeholder {
  visibility: hidden;
}

.products .product-card > .btn {
  margin-top: auto;
}

.catalog-layout {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.catalog-main {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
}

.catalog-sidebar h2 {
  margin: 0 0 12px;
}

.catalog-group-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.catalog-anchor-target {
  scroll-margin-top: calc(var(--site-header-height) + 16px);
}

.catalog-grid {
  margin-bottom: clamp(16px, 2.4vw, 24px);
  gap: clamp(10px, 1.4vw, 16px);
  grid-auto-rows: 1fr;
}

.catalog-grid .product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 18px;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  will-change: opacity, transform;
}

.catalog-grid .product-card-title {
  margin: 0;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-grid .product-card-note {
  min-height: calc(1.25em * 2);
}

.catalog-grid .product-card > .btn {
  margin-top: auto;
}

.catalog-grid .product-card.is-catalog-hide {
  opacity: 0;
  transform: translateY(8px);
}

.catalog-grid .product-card.is-catalog-reveal {
  animation: catalogReveal 0.26s ease;
}

@keyframes catalogReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 560px;
}

.catalog-table-block {
  margin-top: 0;
  margin-bottom: clamp(18px, 3vw, 32px);
  padding: 0;
  width: 100%;
  max-width: none;
  margin-right: auto;
  margin-left: 0;
}

.catalog-table-block summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.catalog-table-block summary::-webkit-details-marker {
  display: none;
}

.catalog-table-summary-title {
  font-weight: 700;
}

.catalog-table-summary-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.catalog-table-download {
  font-size: 11px;
  letter-spacing: 0.06em;
}

.catalog-table-arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--panel);
  position: relative;
  flex-shrink: 0;
}

.catalog-table-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform 0.2s ease;
}

.catalog-table-block[open] summary {
  border-color: var(--accent);
}

.catalog-table-block[open] .catalog-table-arrow::before {
  transform: translate(-50%, -35%) rotate(-135deg);
}

.catalog-table-block .table-scroll {
  padding: 12px 0 0;
}

.catalog-search-highlight {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 12px;
  margin: 0 0 12px;
}

.catalog-search-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0.08;
  pointer-events: none;
}

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

.catalog-search-highlight label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.catalog-search-row input {
  width: 100%;
}

.catalog-search-shell {
  margin-bottom: 10px;
}

.catalog-sidebar {
  display: grid;
  gap: 12px;
}

form.catalog-filters {
  gap: 8px;
}

.catalog-filters.form-card {
  padding: 16px;
}

.catalog-filters label {
  font-size: 12px;
  gap: 4px;
}

.catalog-filters input,
.catalog-filters select {
  width: 100%;
  font-size: 13px;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.filters-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filters-mobile-toggle {
  display: none;
}

.filters-note {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filters-summary {
  font-size: 11px;
  color: var(--muted);
}

.filter-group {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.filter-group h3 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.filter-fields {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.filter-dims {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.filter-dim {
  display: grid;
  gap: 6px;
}

.filter-dim input {
  text-align: center;
}

.filter-dim-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.filter-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.btn-small {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 10px;
}

.catalog-empty {
  text-align: center;
  color: var(--muted);
}

.product-card[hidden],
[data-catalog-group][hidden],
.catalog-group-title[hidden],
.catalog-empty[hidden] {
  display: none !important;
}

.catalog-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 14px;
}

.catalog-table th,
.catalog-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.catalog-table th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  background: var(--panel);
}

.catalog-table tbody tr:nth-child(even) td {
  background: var(--surface);
}

.catalog-table tbody tr:nth-child(odd) td {
  background: transparent;
}

.product-layout {
  display: grid;
  gap: clamp(16px, 2.6vw, 24px);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "gallery"
    "price"
    "info"
    "downloads"
    "tech"
    "cta";
}

.product-gallery {
  grid-area: gallery;
}

.product-price {
  grid-area: price;
}

.product-info {
  grid-area: info;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.product-downloads {
  grid-area: downloads;
}

.product-tech {
  grid-area: tech;
}

.product-cta {
  grid-area: cta;
}

.product-price {
  gap: 12px;
}

.product-price-value {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--accent);
}

.product-price-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.product-card-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.product-gallery-grid {
  position: relative;
  display: grid;
  gap: 10px;
}

.product-gallery-track {
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
}

.product-gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  height: 100%;
}

.product-gallery-slide[hidden] {
  display: none;
}

.product-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--surface);
}

.product-gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-gallery-open img {
  transition: transform 0.2s ease;
}

.product-gallery-open:hover img,
.product-gallery-open:focus-visible img {
  transform: scale(1.015);
}

.product-gallery-nav {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 1px solid var(--header-glass-border, var(--border));
  border-radius: 50%;
  background: var(--header-glass-bg, var(--panel));
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  transform: translateY(-50%);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.product-gallery-nav--prev {
  left: 10px;
}

.product-gallery-nav--next {
  right: 10px;
}

.product-gallery-nav:hover,
.product-gallery-nav:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-50%) scale(0.96);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.product-gallery-nav:active {
  transform: translateY(-50%) scale(0.92);
}

.product-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--header-glass-border, var(--border));
  background: var(--header-glass-bg, var(--panel));
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  z-index: 3;
}

.product-gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
}

.product-gallery-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.product-gallery-empty {
  margin: 0;
  color: var(--muted);
}

.product-category-link {
  color: inherit;
  text-decoration: none;
}

.product-category-link:hover,
.product-category-link:focus-visible {
  color: var(--accent);
}

.product-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 28px);
}

.product-gallery-modal[hidden] {
  display: none;
}

.product-gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.86);
  backdrop-filter: blur(10px);
}

.product-gallery-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: min(72vh, 760px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.product-gallery-modal-figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 22, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.product-gallery-modal-image {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: rgba(12, 16, 22, 0.94);
}

.product-gallery-modal-caption {
  padding: 12px 16px 16px;
  font-size: 13px;
  color: var(--muted);
}

.product-gallery-modal-nav {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(12, 16, 22, 0.88);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.product-gallery-modal-nav:hover,
.product-gallery-modal-nav:focus-visible,
.product-gallery-modal-nav:hover,
.product-gallery-modal-nav:focus-visible {
  color: var(--accent-2);
  border-color: var(--accent-2);
  transform: scale(0.96);
}

.is-gallery-modal-open,
.is-gallery-modal-open body {
  overflow: hidden;
}

.product-related .section-head {
  margin-bottom: 20px;
}

.product-related .section-head h2 {
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.08;
}

.about-hero-media {
  margin-top: 18px;
}

.about-gallery {
  margin-top: 16px;
}

.about-power-gallery .about-gallery {
  margin-top: 0;
}

.about-video-player.form-card {
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
}

.about-company-video .about-video-player.form-card {
  margin-top: 0;
}

.about-video-player--inline {
  grid-column: 1 / -1;
  margin-top: 0;
}

.about-video-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.about-video-player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: min(76vh, 760px);
  background: #000;
  border-radius: inherit;
}

.about-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%) scale(1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: rgba(2, 20, 18, 0.8);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 3;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.about-video-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid #fff;
}

.about-video-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(6, 44, 39, 0.88);
}

.about-video-play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.about-video-frame.is-playing .about-video-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}

.about-gallery.form-card {
  padding: 0;
  overflow: hidden;
}

.about-gallery .product-gallery-track {
  border-radius: inherit;
  background: transparent;
  border: 0;
  width: 100%;
  height: clamp(360px, 46vw, 720px);
  aspect-ratio: auto;
  position: relative;
  overflow: hidden;
}

.about-gallery .product-gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-gallery .product-gallery-slide[hidden] {
  display: none !important;
}

.about-gallery .product-gallery-slide img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.about-gallery .product-gallery-grid[data-gallery-count]:not([data-gallery-count="1"]) .product-gallery-track {
  height: clamp(380px, 48vw, 740px);
}

.about-gallery .product-gallery-nav {
  width: 58px;
  height: 58px;
  z-index: 8;
}

.about-gallery .product-gallery-nav--prev {
  left: 14px;
}

.about-gallery .product-gallery-nav--next {
  right: 14px;
}

.about-gallery .product-gallery-grid[data-gallery-count]:not([data-gallery-count="1"]) .product-gallery-slide img {
  height: 100%;
}

.about-gallery .product-gallery-empty {
  padding: 16px;
}

@media (min-width: 1024px) {
  .about-gallery.form-card {
    padding: 0;
  }

  .about-video-player.form-card {
    padding: 0;
  }

  .about-gallery .product-gallery-track {
    min-height: 480px;
  }
}

@media (max-width: 960px) {
  .about-video-play {
    width: 68px;
    height: 68px;
  }

  .about-video-play::before {
    margin-left: 4px;
    border-top-width: 11px;
    border-bottom-width: 11px;
    border-left-width: 17px;
  }

  .about-gallery .product-gallery-track {
    height: clamp(280px, 66vw, 430px);
  }
}

.product-specs {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
}

.spec-card {
  display: grid;
  gap: 16px;
}

.spec-title {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
}

.spec-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-row dt,
.spec-row dd {
  margin: 0;
}

.spec-row dt {
  color: var(--muted);
}

.spec-row dd {
  font-weight: 600;
  text-align: right;
}

.spec-block {
  width: 100%;
}

.spec-block-title {
  margin: 0;
  padding: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.spec-block-content {
  padding-top: 16px;
}

.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.spec-table th {
  font-weight: 500;
  color: var(--muted);
}

.spec-table td {
  text-align: right;
  font-weight: 600;
}

.spec-table tbody tr:nth-child(odd) {
  background: var(--surface);
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: none;
}

.product-specs li {
  margin-bottom: 4px;
}

.product-specs-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 14px;
}

.product-specs-table th,
.product-specs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: normal;
}

.product-info .table-scroll {
  overflow-x: hidden;
}

.product-info .table-scroll table {
  min-width: 0;
}

.product-specs-table th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: var(--muted);
}

.product-specs-table tr:last-child td {
  border-bottom: none;
}

.map-embed {
  position: relative;
  min-height: 260px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-embed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(13, 60, 45, 0.65), rgba(242, 202, 73, 0.12));
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

.contacts-details .cards-grid {
  align-items: stretch;
}

.contacts-details .form-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.contacts-details .content-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.contacts-details .content-block {
  display: grid;
  gap: 12px;
  min-height: 156px;
}

.contacts-details .map-embed {
  align-self: stretch;
  width: 100%;
  margin-top: 0;
  height: 220px;
  min-height: 220px;
}


html.theme-light .map-embed::after {
  opacity: 0;
}

html.theme-light .map-canvas {
  filter: none;
}

.map-canvas {
  width: 100%;
  height: 100%;
  min-height: 260px;
  filter: saturate(1.2) hue-rotate(85deg) contrast(1.05);
}

.map-pin span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 202, 73, 0.35), 0 10px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--accent-contrast);
}

.map-pin span::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-contrast);
  top: 5px;
  left: 5px;
}

.news-card p {
  color: var(--text);
}

.news-card .legal-meta {
  color: var(--muted);
}

.news-card .content-list {
  color: var(--text);
}

.news-card {
  gap: 14px;
}

.news-cover {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}

.news-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.news-title a {
  color: inherit;
}

.cycle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cycle-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cycle-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}

.card-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.site-map {
  padding: 24px 0 32px;
}

.site-map-head {
  margin-bottom: 12px;
}

.site-map-head h2 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.site-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}

.site-map-links a {
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.map-embed {
  height: 260px;
}

.map-grid {
  align-items: stretch;
}

.map-card {
  display: grid;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 180px;
  position: relative;
  padding-top: 26px;
}

.map-card::before {
  content: attr(data-step);
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.map-card h3 {
  margin: 0;
}

.map-card p {
  margin: 0;
  color: var(--muted);
}

.advantages-grid {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

.adv-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  background: linear-gradient(160deg, var(--panel), var(--surface));
  box-shadow: var(--shadow-soft), var(--card-glow), inset 0 1px 0 var(--highlight);
  animation: fade-up 0.9s ease both;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 150px;
}

.adv-card:nth-child(2) {
  animation-delay: 0.1s;
}

.adv-card:nth-child(3) {
  animation-delay: 0.2s;
}

.adv-card:nth-child(4) {
  animation-delay: 0.3s;
}

.adv-icon {
  width: clamp(88px, 12vw, 124px);
  height: clamp(88px, 12vw, 124px);
  display: block;
  flex-shrink: 0;
  color: var(--adv-icon-color);
  fill: currentColor;
}

.adv-card h3 {
  margin: 0;
  font-size: 17px;
}

.adv-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.adv-copy {
  display: grid;
  gap: 6px;
}

.forms {
  padding: clamp(48px, 6vw, 76px) 0 64px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  isolation: isolate;
  z-index: 2;
  min-height: 720px;
  --forms-pattern-height: 720px;
}

.forms-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: var(--forms-pattern-height);
  z-index: 0;
  pointer-events: none;
  --pattern-scale: 0.45;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

.forms-pattern * {
  pointer-events: none;
}

.v-pattern-shape {
  opacity: var(--pattern-v-opacity);
}

.v-pattern-shape--left {
  fill: var(--pattern-v-1);
}

.v-pattern-shape--right {
  fill: var(--pattern-v-2);
}

.forms-grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  margin-top: 18px;
}

.form-card {
  display: grid;
  gap: 14px;
  background: linear-gradient(160deg, var(--surface), var(--panel));
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-soft), var(--card-glow), inset 0 1px 0 var(--highlight);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 2;
}

.form-card--callback {
  display: grid;
}

.form-card--wide {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 520px;
}

.is-mobile .form-card--callback {
  display: none;
}

.form-card h2 {
  margin: 0 0 6px;
}

.form-card p {
  margin: 0;
  color: var(--muted);
}

.form-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-switch {
  display: inline-flex;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.form-switch-btn {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.form-switch-btn[data-form-mode="callback"] {
  display: none;
}

.is-mobile .form-switch-btn[data-form-mode="callback"] {
  display: inline-flex;
}

.form-switch-btn.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.form-switch-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.form-intro {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-card--wide .form-grid {
  min-height: 420px;
  align-content: start;
}

.form-span {
  grid-column: 1 / -1;
}

.form-variant {
  display: contents;
}

.form-variant[hidden] {
  display: none;
}

label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
  }

  .form-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
  }

  .form-consent > span {
    display: block;
    flex: 1 1 auto;
    margin: 0;
  }

  .form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 1px 0 0;
    appearance: none;
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    align-self: flex-start;
    box-shadow: inset 0 1px 0 var(--highlight);
  }

  .form-consent input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: 2px solid transparent;
    border-right-color: var(--accent);
    border-bottom-color: var(--accent);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.15s ease;
  }

  .form-consent input[type="checkbox"]:checked::after {
    opacity: 1;
  }

  .form-consent input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  .form-consent a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .form-consent a:hover,
  .form-consent a:focus-visible {
    color: var(--accent);
  }

  .form-honeypot {
    position: absolute;
    left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
textarea,
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  max-width: 100%;
  accent-color: var(--accent);
}

select {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

select option:checked,
select option:hover {
  background-color: var(--accent);
  color: var(--accent-contrast);
}

input[type="number"] {
  appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-grid textarea {
  width: 100%;
  height: 160px;
  max-height: 160px;
  resize: none;
  overflow: auto;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

input:focus::placeholder,
textarea:focus::placeholder {
  opacity: 0;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-status {
  min-height: 22px;
  font-size: 14px;
  color: var(--accent);
}

.form-grid .btn[disabled],
.form-grid .btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.2);
}

.form-card .btn[disabled],
.form-card .btn.is-disabled,
.callback-panel .btn[disabled],
.callback-panel .btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.2);
}

.callback-widget {
  --callback-toggle-size: 56px;
  --callback-gap: 12px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: var(--callback-gap);
}

.is-mobile .callback-widget {
  display: none;
}

.callback-toggle {
  width: var(--callback-toggle-size);
  height: var(--callback-toggle-size);
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--accent-contrast);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.callback-toggle:hover,
.callback-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong), var(--accent-glow);
}

.callback-toggle:active {
  transform: translateY(1px);
  box-shadow: var(--button-press-shadow);
}

.callback-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.callback-panel {
  position: absolute;
  right: 0;
  bottom: calc(var(--callback-toggle-size) + var(--callback-gap));
  width: min(320px, 92vw);
  background: linear-gradient(160deg, var(--surface), var(--panel));
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-strong), var(--card-glow);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.callback-widget.is-open .callback-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.callback-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.callback-panel-head h3 {
  margin: 0;
  font-size: 18px;
}

.callback-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.callback-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.callback-close::before,
.callback-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--text);
  transform-origin: center;
}

.callback-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.callback-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.callback-close:active {
  transform: translateY(1px);
  box-shadow: var(--button-press-shadow);
}

.callback-panel form {
  gap: 12px;
}

.callback-panel .btn {
  width: 100%;
}

.legal-page {
  padding: clamp(40px, 5.5vw, 72px) 0 64px;
}

.legal-card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: linear-gradient(160deg, var(--surface), var(--panel));
  box-shadow: var(--shadow-soft), var(--card-glow), inset 0 1px 0 var(--highlight);
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
}

.legal-card h2 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.legal-card p {
  margin: 0 0 12px;
}

.legal-card ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 12px 0;
  background: var(--panel);
}

.footer-inner {
  display: grid;
  gap: 10px;
  color: var(--muted);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.footer-inner strong {
  color: var(--text);
}

.footer-inner p {
  margin: 2px 0;
}

.footer-company {
  display: grid;
  gap: 2px;
  font-size: 13px;
  line-height: 1.3;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.btn-footer {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 10px;
}

.footer-contacts {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.footer-contacts a {
  display: block;
  width: 100%;
}

.news-meta {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.news-meta-stack {
  display: grid;
  gap: 4px;
}

@media (max-width: 830px) {
  html {
    scroll-padding-top: calc(var(--site-header-height) + 10px);
    font-size: 14px;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 6px 0;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 46px;
  }

  .brand-name {
    font-size: 17px;
    letter-spacing: 0.06em;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "toggle cta switch"
      "nav nav nav";
    gap: 10px;
  }

  .site-nav {
    display: none;
    grid-area: nav;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    letter-spacing: 0.06em;
    line-height: 1.2;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 8px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: start;
    grid-area: toggle;
  }

  .theme-switch {
    gap: 0;
    font-size: 10px;
    justify-self: end;
    grid-area: switch;
  }

  .theme-switch-text {
    display: none;
  }

  .theme-switch-track {
    width: 34px;
    height: 18px;
  }

  .theme-switch-track::after {
    width: 12px;
    height: 12px;
  }

  .theme-switch input:checked + .theme-switch-track::after {
    transform: translate(14px, -50%);
  }

  .header-cta {
    grid-area: cta;
    justify-self: end;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero--with-video {
    min-height: max(calc(100vh - var(--site-header-height)), clamp(500px, 100vw, 700px));
    min-height: max(calc(100dvh - var(--site-header-height)), clamp(500px, 100vw, 700px));
  }

  .hero-video video {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    object-fit: cover;
    object-position: center center;
    background: #000;
  }

  .hero-content {
    gap: 16px;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel {
    gap: 12px;
  }

  .hero-card {
    padding: 20px;
    border-radius: 16px;
  }

  .hero-card h2 {
    font-size: 18px;
  }

  .hero-meta {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .advantages {
    padding: 40px 0;
  }

  .adv-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
    min-height: auto;
  }

  .adv-icon {
    width: 72px;
    height: 72px;
  }

  .forms {
    padding: 40px 0 56px;
    min-height: 0;
    --forms-pattern-height: 520px;
  }

  .catalog-table {
    font-size: 13px;
    width: 100%;
    border-collapse: collapse;
  }

  .catalog-table th,
  .catalog-table td {
    padding: 10px;
  }

  .table-scroll {
    overflow-x: visible;
  }

  .table-scroll table {
    min-width: 0;
    width: 100%;
  }

  .catalog-table thead {
    display: none;
  }

  .catalog-table tbody {
    display: grid;
    gap: 12px;
  }

  .catalog-table tr {
    display: grid;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .catalog-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
    padding: 0;
  }

  .catalog-table td::before {
    content: attr(data-label);
    text-align: left;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex: 0 0 44%;
  }

  .spec-block-title {
    font-size: 15px;
    padding-bottom: 10px;
  }

  .spec-row {
    gap: 8px;
  }

  .spec-toggle {
    width: 30px;
    height: 30px;
  }

  .spec-table th,
  .spec-table td {
    padding: 8px 10px;
    font-size: 13px;
  }

  .filter-range {
    grid-template-columns: 1fr;
  }

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

  .catalog-table-summary-actions {
    gap: 6px;
  }

  .catalog-table-download {
    padding: 6px 10px;
    font-size: 10px;
  }

  .filter-dims {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .filter-dim-label {
    font-size: 11px;
  }

  .filters-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .forms-pattern {
    --pattern-scale: 0.55;
  }

  .forms {
    --pattern-v-opacity: 0.78;
  }

  .form-card {
    padding: 20px;
    border-radius: 16px;
  }

  .catalog-filters.form-card {
    padding: 12px;
  }

  .form-card--wide {
    max-width: none;
    min-height: 0;
  }

  .form-card--wide .form-grid {
    min-height: 0;
  }

  .form-card h2 {
    font-size: 20px;
  }

  .form-grid .btn {
    width: 100%;
  }

  .form-card--callback {
    display: none;
  }

  .callback-widget {
    display: none;
  }

  .footer-contacts {
    order: 1;
  }

  .footer-links {
    order: 2;
  }

  .footer-company {
    order: 3;
  }

  .footer-inner {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .product-gallery-modal {
    padding: 12px;
  }

  .product-gallery-modal-dialog {
    width: 100%;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .product-gallery-modal-nav--prev {
    left: 8px;
  }

  .product-gallery-modal-nav--next {
    right: 8px;
  }

  .product-gallery-modal-image {
    max-height: 72vh;
  }

  .product-related .section-head h2 {
    white-space: normal;
  }
}

@media (min-width: 960px) {
  .product-related .section-head h2 {
    white-space: nowrap;
  }
}

@media (max-width: 959px) {
  .filters-mobile-toggle {
    display: inline-flex;
  }

  .catalog-filters .filters-head-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .catalog-filters.is-mobile-collapsed .filters-head-actions .btn:not(.filters-mobile-toggle) {
    display: none;
  }

  .catalog-filters.is-mobile-collapsed [data-filter-mobile-body] {
    display: none;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (hover: hover) {
  .hero-card:hover,
  .adv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong), var(--card-glow), inset 0 1px 0 var(--highlight);
    border-color: var(--accent);
  }

  .form-card:hover {
    transform: none;
    box-shadow: var(--shadow-strong), var(--card-glow), inset 0 1px 0 var(--highlight);
    border-color: var(--accent);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .cards-grid--2,
  .cards-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "gallery info"
      "price info"
      "downloads info"
      "tech info"
      "cta cta";
  }

  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    font-size: 12px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
    align-items: center;
  }

  .footer-contacts {
    justify-self: end;
    text-align: right;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  }

  .catalog-sidebar {
    position: sticky;
    top: calc(var(--site-header-height) + 16px);
  }

  .catalog-main {
    grid-column: 2 / -1;
  }
}

@media (min-width: 1280px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .hero-actions {
    gap: 16px;
  }

  .cards-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
