/* ==========================================================================
   DKP ACS-15 — landing page (по мотивам листовки производителя)
   ========================================================================== */

:root {
  --red: #e10600;
  --red-dark: #b90500;
  --ink: #0d0f14;
  --ink-soft: #2a2f3a;
  --muted: #5c6472;
  --line: #e3e6ec;
  --soft: #f5f6f9;
  --white: #ffffff;
  --radius: 18px;
  --shadow-lg: 0 30px 70px -40px rgba(13, 15, 20, 0.55);
  --shadow-md: 0 18px 40px -28px rgba(13, 15, 20, 0.45);
  --max: 1180px;
  --font: "Inter", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hero-title,
.section-head h2 {
  overflow-wrap: break-word;
}

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

svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-hex {
  width: 46px;
  height: 46px;
}

.brand-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.08s;
}

.icon-btn svg {
  width: 24px;
  height: 24px;
}

.icon-btn:hover {
  color: var(--red);
  border-color: var(--red);
  background: #fff7f6;
}

.icon-btn:active {
  transform: translateY(1px);
}

.icon-btn:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.08s;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 16px 30px -18px rgba(225, 6, 0, 0.75);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-ghost {
  background: var(--white);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

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

/* -------------------------------------------------------------------- hero */
/* Верхний блок повторяет печатную листовку: белый угол, красная диагональ
   с заголовком, розовый акцент и фото изделия на светло-сером фоне.        */

.hero {
  max-width: 1240px;
  margin: 0 auto;
}

.hero-art {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1240 / 700;
  background: #e7e9eb;
  overflow: hidden;
  isolation: isolate;
}

.hero-white {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #fff;
  clip-path: polygon(0 0, 40% 0, 0 32%);
}

.hero-pink {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 40%;
  height: 38%;
  background: #d99b9b;
  border-bottom-left-radius: 55% 100%;
}

.hero-red {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #e10600;
  clip-path: polygon(0 40%, 40% 14%, 58% 100%, 0 100%);
}

.hero-title {
  position: absolute;
  left: 2.4%;
  top: 52%;
  width: 56%;
  margin: 0;
  font-size: 5.6cqw;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-transform: uppercase;
  color: #fff;
}

.hero-title-line1,
.hero-title-line2 {
  display: block;
}

.hero-title-line1 {
  white-space: nowrap;
}

.hero-title-line2 {
  margin-top: 0.6cqw;
  font-size: 0.87em;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 0.12cqw #fff;
  text-stroke: 0.12cqw #fff;
}

.hero-model {
  position: absolute;
  left: 2.4%;
  top: 76%;
  margin: 0;
  font-size: 3.4cqw;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: #fff;
}

.hero-sub {
  position: absolute;
  left: 2.4%;
  top: 87%;
  width: 46%;
  margin: 0;
  font-size: 1.75cqw;
  line-height: 1.3;
  color: #fff;
}

.hero-product {
  position: absolute;
  right: 1.5%;
  bottom: 8%;
  z-index: 3;
  width: 45%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(20, 22, 28, 0.12));
}

/* ------------------------------------------------------- полоса значков */

.hero-strip {
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tile {
  flex: 0 0 6.3%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tile-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 17%;
  border-radius: 7px;
  background: #e10600;
  color: #fff;
}

.tile-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-icon svg text {
  fill: currentColor;
  stroke: none;
}

.tile-label {
  font-size: clamp(10px, 1.12vw, 15px);
  line-height: 1.15;
  color: #17181c;
  text-align: center;
  white-space: nowrap;
}

.tile-module {
  margin-left: auto;
  flex: 0 0 27.5%;
  justify-content: center;
  gap: 3px;
  padding: 10px 16px;
  border-radius: 7px;
  background: #111318;
  color: #fff;
}

.module-kicker {
  font-size: clamp(9px, 0.95vw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9bdc6;
}

.module-value {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(12px, 1.45vw, 19px);
  font-weight: 700;
  white-space: nowrap;
}

.module-value b {
  font-weight: 800;
}

.module-value i {
  font-style: normal;
  font-weight: 800;
  color: #e10600;
}

.module-note {
  font-size: clamp(9px, 0.95vw, 12px);
  color: #b9bdc6;
}

@media (max-width: 1240px) {
  .hero-strip {
    padding-inline: 16px;
  }
}

@media (max-width: 1000px) {
  .hero-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .tile {
    flex: none;
  }

  .tile-module {
    grid-column: span 4;
    margin-left: 0;
    flex: none;
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .hero-art {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-red {
    order: 1;
  }

  .hero-product {
    order: 2;
  }

  .hero-white,
  .hero-pink {
    display: none;
  }

  .hero-red {
    position: relative;
    inset: auto;
    clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
    padding: 40px 20px 32px;
  }

  .hero-title,
  .hero-model,
  .hero-sub {
    position: static;
    width: auto;
  }

  .hero-title {
    font-size: clamp(26px, 8.2vw, 40px);
  }

  .hero-title-line1,
  .hero-title-line2 {
    white-space: normal;
  }

  .hero-title-line2 {
    margin-top: 2px;
    font-size: 1em;
    font-weight: 700;
    -webkit-text-stroke: 1px #fff;
    text-stroke: 1px #fff;
  }

  .hero-model {
    margin-top: 14px;
    font-size: clamp(18px, 5vw, 26px);
  }

  .hero-sub {
    margin-top: 6px;
    font-size: clamp(12px, 3.4vw, 16px);
    max-width: 34em;
  }

  .hero-product {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: min(460px, 88%);
    margin: -4% auto 4px;
  }

  .hero-strip {
    padding-top: 18px;
  }
}

@media (max-width: 520px) {
  .hero-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .tile-label {
    font-size: 10px;
  }

  .tile-module {
    grid-column: span 4;
  }
}

/* ------------------------------------------------------------------ layout */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 24px;
}

.section-soft {
  background: var(--soft);
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-soft > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
}

.section-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.feature:hover {
  border-color: var(--line);
  background: #fbfbfd;
}

.feature-icon svg {
  width: 23px;
  height: 23px;
}

.feature-icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff1f0;
  color: var(--red);
  font-size: 21px;
}

.feature h3 {
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.feature p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ------------------------------------------------------------------- specs */

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
}

@media (max-width: 860px) {
  .specs {
    grid-template-columns: 1fr;
  }
}

.specs > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 1.4fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e6e9ef;
}

.specs dt {
  font-weight: 650;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.specs dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ------------------------------------------------------------------- codes */

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

@media (max-width: 860px) {
  .codes {
    grid-template-columns: 1fr;
  }
}

.codes-col h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.codes-col p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 14px;
}

.range-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.range-table th,
.range-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.range-table th {
  font-weight: 650;
  color: var(--ink-soft);
  background: var(--soft);
}

.range-table td {
  color: var(--muted);
}

.install-note {
  margin-top: 36px;
  padding: 22px 24px 24px;
  border-left: 3px solid var(--red);
  background: var(--soft);
  border-radius: 0 14px 14px 0;
}

.install-note h3 {
  font-size: 16px;
  font-weight: 750;
  margin-bottom: 6px;
}

.install-note p {
  color: var(--muted);
  font-size: 14.5px;
}

/* конструкция и габариты: выноски + вид спереди + вид сбоку с размерами */

.dims {
  display: grid;
  grid-template-columns: max-content minmax(140px, 0.7fr) minmax(250px, 1.3fr);
  gap: 14px 24px;
  align-items: end;
  margin: 18px 0 14px;
}

.dims-callouts {
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.3;
  color: #2b3039;
}

.dims-callouts li {
  position: relative;
  padding-right: 54px;
}

.dims-callouts li::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 46px;
  height: 1px;
  background: #9aa1ad;
}

.dims-callouts li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #9aa1ad;
}

.dims-front,
.dims-side {
  margin: 0;
}

.dims-front img {
  width: 100%;
  height: auto;
  display: block;
}

.dims-side-canvas {
  position: relative;
  aspect-ratio: 492 / 440;
}

.dims-side-canvas img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}

.dims-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dims-lines path {
  stroke: #3c4250;
  stroke-width: 1.4;
  fill: none;
}

.dims-lines text {
  fill: #2b3039;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
}

.dims-lines text.dims-note {
  font-size: 13px;
  font-weight: 400;
  fill: var(--muted);
}

.dims-niche {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #2b3039;
  font-size: 14.5px;
}

@media (max-width: 760px) {
  .dims {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dims-front {
    order: 1;
    max-width: 300px;
    margin: 0 auto;
  }

  .dims-callouts {
    order: 2;
    gap: 6px;
    font-size: 13px;
  }

  .dims-callouts li {
    padding-right: 0;
  }

  .dims-callouts li::after,
  .dims-callouts li::before {
    display: none;
  }

  .dims-side {
    order: 3;
  }
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--ink);
  color: var(--white);
  margin-top: 20px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  gap: 12px 34px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.footer-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #eef0f5;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}

.footer-item svg {
  width: 20px;
  height: 20px;
  color: var(--red);
}

.footer-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ------------------------------------------------------------------ modals */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 12, 18, 0.62);
  backdrop-filter: blur(4px);
  animation: fade 0.14s ease-out;
  overflow-y: auto;
}

.modal[hidden] {
  display: none;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  background: var(--white);
  border-radius: 20px;
  padding: 30px 30px 26px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.6);
  animation: pop 0.16s ease-out;
}

.modal-wide {
  width: min(680px, 100%);
}

@keyframes pop {
  from {
    transform: translateY(8px) scale(0.985);
    opacity: 0;
  }
}

.modal-card h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* warning block */

.warning {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #f6d9a8;
  margin-bottom: 20px;
}

.warning svg {
  font-size: 24px;
  color: #c77700;
  margin-top: 2px;
}

.warning p {
  font-size: 14px;
  color: #5a4415;
  line-height: 1.5;
}

.warning code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 5px;
}

/* form */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 17px;
  letter-spacing: 0.12em;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.12);
}

.form-error {
  margin-top: 10px;
  color: var(--red);
  font-size: 13.5px;
  font-weight: 600;
}

.form-error[hidden] {
  display: none;
}

.browser-hint {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.browser-hint p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.browser-hint .btn {
  margin-top: 12px;
}

.copy-row {
  display: flex;
  gap: 8px;
}

.copy-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: var(--soft);
}

/* docs list */

.docs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 4px;
}

.docs-loading,
.docs-error {
  padding: 18px 4px;
  color: var(--muted);
  font-size: 14px;
}

.docs-error {
  color: var(--red);
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}

.doc-item:hover {
  border-color: var(--red);
  background: #fff9f8;
}

.doc-icon svg {
  width: 20px;
  height: 20px;
}

.doc-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--red);
  font-size: 19px;
}

.doc-name {
  font-weight: 650;
  font-size: 14.5px;
  line-height: 1.35;
  word-break: break-word;
}

.doc-kind {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.docs-frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  height: 46vh;
}

.docs-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 640px) {
  .section-head h2 {
    font-size: 24px;
  }

  .install-note {
    padding: 18px 16px;
  }

  .section {
    padding: 46px 18px;
  }

  .topbar-inner {
    padding: 10px 16px;
  }

  .brand-text {
    font-size: 16px;
  }

  .modal-card {
    padding: 24px 20px 20px;
  }

  .specs > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
