:root {
  --steel-900: #212121;
  --steel-800: #2a2a2a;
  --steel-700: #4d4d4d;
  --steel-500: #6b7787;
  --steel-200: #e8e8e8;
  --steel-100: #f2f2f2;
  --steel-50: #ffffff;
  --accent: #8BA602;
  --accent-ink: #ffffff;
  --accent-hover: #728800;
  --lilac: #BB33BF;
  --lilac-ink: #ffffff;
  --lilac-hover: #A002A6;
  --cta: #d7ff05;
  --cta-ink: #212121;
  --cta-hover: #c8ef00;
  --focus: #8BA602;
  --danger: #dc3545;
  --ok: #27ae60;
  --font-display: "Open Sans", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --rule: 1px solid #e8e8e8;
  --shadow: 0 12px 28px rgba(33, 33, 33, 0.12);
  --max: 1120px;
  --nav-h: 64px;
  --radius-img: 12px;
  --radius-btn: 999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--steel-900);
  background: var(--steel-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

::selection {
  background: rgba(152, 182, 0, 0.28);
  color: var(--steel-900);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.site_header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.site_header_inner {
  position: relative;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand_logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand_logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav_toggle {
  display: none;
  border: var(--rule);
  border-radius: var(--radius-btn);
  background: #fff;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.nav_toggle_bars,
.nav_toggle_bars::before,
.nav_toggle_bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--steel-900);
  position: relative;
}

.nav_toggle_bars::before,
.nav_toggle_bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav_toggle_bars::before {
  top: -6px;
}

.nav_toggle_bars::after {
  top: 6px;
}

.nav_links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav_links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav_links a:hover {
  color: var(--lilac);
}

.cta_row_spaced {
  margin-top: 1.25rem;
}

.header_phone {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--lilac);
}

.header_phone:hover {
  color: var(--lilac-hover);
}

.header_phone_icon {
  display: none;
}

.nav_toggle_bars::before,
.nav_toggle_bars::after {
  transition: transform 180ms ease, top 180ms ease;
}

.nav_toggle[aria-expanded="true"] .nav_toggle_bars {
  background: transparent;
}

.nav_toggle[aria-expanded="true"] .nav_toggle_bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav_toggle[aria-expanded="true"] .nav_toggle_bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.lang_switch {
  display: inline-flex;
  border: var(--rule);
  background: #fff;
  border-radius: var(--radius-btn);
  overflow: hidden;
}

.lang_switch a,
.lang_switch button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--steel-500);
  text-decoration: none;
  display: inline-block;
}

.lang_switch a.is_active,
.lang_switch button.is_active {
  background: var(--cta);
  color: var(--cta-ink);
}

.hero {
  position: relative;
  display: block;
  width: min(100% - 2rem, var(--max));
  margin: 0.85rem auto 0;
  padding: 0;
  background: #fff;
  border-radius: var(--radius-img);
  overflow: hidden;
}

.hero_banner {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: var(--radius-img);
  overflow: hidden;
}

.hero_banner:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.hero_banner img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-img);
  pointer-events: none;
}

.hero_banner .hero_banner_mobile {
  display: none;
}

@media (max-width: 900px) {
  .hero_banner .hero_banner_desktop {
    display: none;
  }

  .hero_banner .hero_banner_mobile {
    display: block;
  }
}

.cta_row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

.btn_primary {
  appearance: none;
  border: 0;
  background: var(--cta);
  color: var(--cta-ink);
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  border-radius: var(--radius-btn);
  transition: background 160ms ease, transform 160ms ease;
}

.btn_primary:hover {
  background: var(--cta-hover);
}

.btn_primary:active {
  background: var(--cta-hover);
  transform: translateY(1px);
}

.btn_ghost {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.btn_text {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

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

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  text-wrap: balance;
  color: var(--steel-900);
}

.section_lead {
  margin: 0 0 2rem;
  color: var(--steel-700);
  max-width: 46rem;
}

.intro_block {
  background: #fff;
  border-top: 0;
  border-bottom: 0;
}

.intro_block .section {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.intro_block h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.product_grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.product_item {
  background: #fff;
  border: var(--rule);
  overflow: hidden;
  border-radius: var(--radius-img);
  flex: 0 1 calc((100% - 2.5rem) / 3);
  max-width: calc((100% - 2.5rem) / 3);
  min-width: 0;
}

.product_item img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--steel-100);
}

.product_item_body {
  padding: 1rem 1.1rem 1.2rem;
  border-top: var(--rule);
}

.product_item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.product_item p {
  margin: 0;
  color: var(--steel-700);
  font-size: 0.98rem;
}

.specs_layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

.specs_table_wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.specs_media {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.specs_slider {
  display: flex;
  flex-direction: column;
}

.specs_slider_viewport {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: var(--rule);
  border-radius: var(--radius-img);
  background: var(--steel-100);
}

.specs_slider_track {
  display: flex;
  height: 100%;
  transition: transform 280ms ease;
  will-change: transform;
}

.specs_slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.specs_slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.specs_slider_controls {
  margin-top: 0.75rem;
}

.specs_videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.video_facade,
.video_frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--steel-100);
}

.video_facade {
  position: relative;
  border: var(--rule);
}

.video_frame {
  border: 0;
}

.video_facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video_play_icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cta);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease;
}

.video_play_icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--cta-ink);
}

.video_facade:hover .video_play_icon,
.video_facade:focus-visible .video_play_icon {
  transform: translate(-50%, -50%) scale(1.08);
}

.video_facade:focus-visible {
  outline: 2px solid var(--cta-ink);
  outline-offset: 2px;
}

.spec_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: var(--rule);
  font-variant-numeric: tabular-nums;
  border-radius: var(--radius-img);
  overflow: hidden;
  flex: 1 1 auto;
}

.spec_table thead th {
  background: var(--lilac);
  color: var(--lilac-ink);
  font-weight: 700;
}

.spec_table th,
.spec_table td {
  border-bottom: var(--rule);
  padding: 0.75rem 0.9rem;
  vertical-align: top;
  text-align: left;
}

.spec_table tbody th {
  width: 38%;
  background: #fff;
  font-weight: 700;
}

.spec_table tbody tr:nth-child(even) th,
.spec_table tbody tr:nth-child(even) td {
  background: var(--steel-100);
}

.spec_table tr:last-child th,
.spec_table tr:last-child td {
  border-bottom: 0;
}

.spec_qc_list {
  margin: 0;
  padding-left: 1.25rem;
}

.spec_qc_list li + li {
  margin-top: 0.35rem;
}

.about_copy {
  min-width: 0;
  max-width: 48rem;
}

.about_copy p {
  margin: 0 0 1rem;
  color: var(--steel-700);
}

.about_copy p:last-child {
  margin-bottom: 0;
}

.about_carousel {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 2rem;
}

.about_carousel h3 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.advantages_block {
  margin-top: 2rem;
  width: 100%;
}

.advantages_block h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.adv_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.adv_list li {
  border: var(--rule);
  background: #fff;
  padding: 0.85rem 1rem;
  color: var(--steel-700);
  border-radius: var(--radius-img);
}

.adv_list li strong {
  color: var(--steel-900);
  font-weight: 700;
}

/* Gray cards in visual rows 1 and 3 (2-column grid). */
.adv_list li:nth-child(4n+1),
.adv_list li:nth-child(4n+2) { background: var(--steel-100); }

.carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.carousel_viewport {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.carousel_track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: max-content;
  min-width: 100%;
  padding: 0 0 0.5rem;
}

.carousel_item {
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  scroll-snap-align: start;
  background: #fff;
  border: var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  box-sizing: border-box;
  border-radius: var(--radius-img);
  overflow: hidden;
}

.carousel_item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.carousel_controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.carousel_controls button {
  border: var(--rule);
  background: #fff;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: var(--radius-btn);
}

.carousel_controls button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section_band {
  background: #f7f7f7;
}

.final_cta {
  background: #2a2a2a;
  color: #fff;
}

.final_cta h2 {
  color: #fff;
}

.final_cta .section {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.final_cta .section_lead {
  color: rgba(255, 255, 255, 0.82);
}

.final_buy_lead {
  margin: 1.5rem 0 0.85rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 48rem;
}

/* Trial centering of headings and buttons (UA only, client edits new2) */
.layout_center .section h2:not(#specs_heading),
.layout_center .advantages_block h3,
.layout_center .about_carousel h3,
.layout_center .product_item h3 {
  text-align: center;
}

.layout_center .cta_row,
.layout_center .carousel_controls {
  justify-content: center;
}

.layout_center .about_copy {
  margin-inline: auto;
}

.layout_center .final_cta .section {
  justify-items: center;
  text-align: center;
}

.contacts_block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin-top: 2rem;
}

.contacts_block dt {
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.contacts_block dd {
  margin: 0 0 0.85rem;
}

.social_links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.social_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--lilac-ink);
  transition: background-color 160ms ease;
}

.social_link:hover {
  background: var(--lilac-hover);
}

.social_link svg {
  width: 22px;
  height: 22px;
}

.contacts_map {
  display: block;
  width: 100%;
  height: 360px;
  margin-top: 1.5rem;
  border: var(--rule);
  border-radius: var(--radius-img);
  background: var(--steel-100);
}

.site_footer {
  border-top: var(--rule);
  padding: 1.5rem 0 2rem;
  background: #fff;
}

.site_footer .brand_logo {
  width: 63px;
  height: 63px;
}

.site_footer_inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--steel-700);
  font-size: 0.95rem;
}

.dialog_backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 28, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 60;
}

.dialog_backdrop.is_open {
  display: flex;
}

.dialog_panel {
  width: min(100%, 520px);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: #fff;
  border: var(--rule);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.4rem;
  border-radius: var(--radius-img);
}

.dialog_head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: var(--rule);
  padding-bottom: 0.75rem;
}

.dialog_head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.icon_close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.form_grid {
  display: grid;
  gap: 0.85rem;
}

.form_field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

.form_field input,
.form_field textarea {
  width: 100%;
  border: var(--rule);
  padding: 0.7rem 0.75rem;
  font: inherit;
  background: var(--steel-50);
  caret-color: var(--steel-900);
}

.form_field textarea {
  min-height: 72px;
  resize: vertical;
}

.file_pick_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.file_pick_btn {
  appearance: none;
  border: 2px solid var(--cta);
  background: #fff;
  color: var(--steel-900);
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  border-radius: var(--radius-btn);
  letter-spacing: 0.01em;
  font-size: 0.92rem;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.file_pick_btn:hover {
  background: rgba(215, 255, 5, 0.12);
  border-color: var(--cta-hover);
}

.file_pick_btn:active {
  background: rgba(215, 255, 5, 0.18);
  border-color: var(--cta-hover);
  transform: translateY(1px);
}

.file_pick_name {
  color: var(--steel-500);
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file_pick_btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.file_pick_btn[aria-disabled="true"]:hover,
.file_pick_btn[aria-disabled="true"]:active {
  background: #fff;
  border-color: var(--cta);
  transform: none;
}

.file_pick_list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.file_pick_list:empty {
  display: none;
}

.file_pick_list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--steel-700);
}

.file_pick_item_name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file_pick_remove {
  appearance: none;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border: var(--rule);
  border-radius: 50%;
  background: #fff;
  color: var(--steel-900);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.file_pick_remove:hover {
  border-color: var(--steel-500);
}

.form_hint {
  margin: 0.3rem 0 0;
  color: var(--steel-500);
  font-size: 0.85rem;
}

.form_hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form_status {
  margin: 0.75rem 0 0;
  min-height: 1.4em;
  font-weight: 600;
}

.form_status.is_ok {
  color: var(--ok);
}

.form_status.is_err {
  color: var(--danger);
}

.visually_hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .nav_toggle {
    display: inline-flex;
    order: 3;
  }

  .lang_switch {
    order: 2;
  }

  .nav_links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: var(--rule);
    padding: 0.5rem 1rem 0.85rem;
    z-index: 45;
  }

  .nav_links.is_open {
    display: flex;
  }

  .nav_links li {
    border-bottom: var(--rule);
  }

  .nav_links li:last-child {
    border-bottom: 0;
  }

  .nav_links a {
    display: block;
    padding: 0.85rem 0.25rem;
  }

  .product_item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .specs_layout,
  .contacts_block,
  .adv_list {
    grid-template-columns: 1fr;
  }

  .adv_list li:nth-child(4n+2) { background: #fff; }
  .adv_list li:nth-child(odd) { background: var(--steel-100); }

  .contacts_map {
    height: 280px;
  }

  .specs_videos {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .site_header_inner {
    gap: 0.5rem;
  }

  .header_phone {
    order: 1;
    margin-left: auto;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: var(--rule);
    border-radius: var(--radius-btn);
    background: #fff;
  }

  .header_phone_icon {
    display: block;
  }

  .header_phone_text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .nav_toggle {
    margin-left: 0;
  }
}

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

  .btn_primary,
  .video_play_icon,
  .specs_slider_track,
  .nav_toggle_bars::before,
  .nav_toggle_bars::after {
    transition: none;
  }
}
