@font-face {
  font-family: "Bicubik";
  src: url("assets/fonts/bicubik/Bicubik.ttf") format("truetype"),
       url("assets/fonts/bicubik/Bicubik.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter/Inter-V.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #211d24;
  --bg-deep: #151219;
  --panel: #242027;
  --purple: #7610bd;
  --purple-bright: #9a2cff;
  --pink: #ff2d8e;
  --cyan: #15e7f2;
  --text: #f7f3f8;
  --muted: #c9c0ce;
  --border: rgba(154, 44, 255, 0.78);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.45;
}

h1,
h2,
h3,
h4,
h5,
h6,
.support__title {
  font-family: "Bicubik", "Arial Narrow", Arial, sans-serif;
  font-weight: 400;
}

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

button,
input,
select {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: clamp(54px, 2.86vw, 80px);
  padding-top: 6px;
  padding-right: clamp(32px, 5.4vw, 151px);
  padding-bottom: 6px;
  padding-left: clamp(24px, 4.05vw, 113px);
  background: #111014;
}

.brand {
  width: clamp(122px, 9.43vw, 264px);
}

.brand img {
  width: 100%;
}

.header-model {
  min-width: clamp(220px, 13vw, 364px);
  padding: 11px 40px 14px;
  color: #fff;
  font-family: "Bicubik", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(0.82rem, 0.8vw, 1.35rem);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(180deg, #8412d3, #5b0099);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(40px, 3.07vw, 86px);
}

.socials {
  display: flex;
  gap: clamp(6px, 0.45vw, 13px);
}

.socials a {
  display: grid;
  width: clamp(24px, 1.72vw, 48px);
  aspect-ratio: 1;
  padding: 5px;
  place-items: center;
  background: #fff;
  border-radius: 50%;
}

.socials img {
  width: 100%;
  height: 100%;
}

.header-controls {
  display: flex;
  gap: clamp(7px, 0.43vw, 12px);
}

.round-control {
  display: grid;
  width: clamp(28px, 1.57vw, 44px);
  aspect-ratio: 1;
  padding: 0;
  color: #1b1720;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.64rem, 0.67vw, 1rem);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  background: #fff;
  border: 0;
  border-radius: 50%;
  place-items: center;
}

.theme-control {
  padding: 5px;
}

.theme-control img {
  width: 100%;
  height: 100%;
}

.section-stripe {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-stripe::before,
.section-stripe::after {
  position: absolute;
  z-index: -1;
  width: 125%;
  height: 120px;
  content: "";
  background: linear-gradient(90deg, #8c0ad1, #53058d 55%, #8c0ad1);
  transform: rotate(-8deg);
}

.section-stripe::before {
  top: 22%;
  left: -12%;
}

.section-stripe::after {
  right: -12%;
  bottom: 12%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  min-height: 680px;
  padding: 70px max(5vw, calc((100vw - var(--container)) / 2));
  background-color: var(--bg);
  background-image: url("assets/img/fon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero::before,
.hero::after {
  display: none;
}

.hero__media img {
  width: min(720px, 100%);
  margin-inline: auto;
  filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.55));
  transform: rotate(-7deg);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__title {
  margin: 0 auto;
}

.hero__title img {
  width: min(680px, 124%);
  max-width: none;
  margin: 0 0 0 -12%;
  filter: drop-shadow(5px 7px 0 #391151);
}

.hero__content > p {
  max-width: 330px;
  margin: 28px auto 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 24px;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(180deg, #27f3f4, #248ce0 55%, #c526ee);
  border: 0;
  border-radius: 5px;
  box-shadow: 0 0 18px rgba(21, 231, 242, 0.22);
}

.showcase {
  --slide-gap: 56px;

  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 105px 70px 76px;
}

.showcase::before {
  position: absolute;
  top: 50%;
  right: 50%;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 32px;
  content: "";
  background: var(--purple);
  transform: translate(-50%, -50%);
}

.showcase__viewport {
  height: 280px;
  overflow: hidden;
  cursor: grab;
  outline: none;
  touch-action: pan-y;
  user-select: none;
}

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

.showcase__viewport.is-dragging {
  cursor: grabbing;
}

.showcase__track {
  display: flex;
  gap: var(--slide-gap);
  align-items: center;
  height: 100%;
  will-change: transform;
}

.showcase__slide {
  display: grid;
  flex: 0 0 calc((100% - 112px) / 3);
  min-height: 230px;
  margin: 0;
  padding: 20px;
  place-items: center;
  background: #f3f3f3;
  transition: min-height 420ms ease, background-color 420ms ease, transform 420ms ease;
}

.showcase__slide img {
  width: 100%;
  max-height: 210px;
  pointer-events: none;
  object-fit: contain;
  -webkit-user-drag: none;
  transition: max-height 420ms ease, transform 420ms ease;
}

.showcase__slide.is-active {
  min-height: 280px;
  background: transparent;
}

.showcase__slide.is-active img {
  max-height: 310px;
  transform: scale(1.12);
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: 0;
  transform: translateY(-50%);
}

.slider-button--prev { left: 12px; }
.slider-button--next { right: 12px; }

.showcase__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 5px;
  margin-top: 34px;
}

.showcase__dots span {
  width: 18px;
  height: 3px;
  background: #b0a8b5;
}

.showcase__dots .is-active {
  background: var(--purple-bright);
}

.features,
.support {
  max-width: var(--container);
  margin: 0 auto;
  padding: 55px 24px 90px;
}

.features__grid,
.support__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.feature-card {
  min-height: 175px;
  padding: 22px 14px;
  text-align: center;
  background: rgba(26, 22, 30, 0.6);
  border: 2px solid var(--border);
  box-shadow: 0 14px 20px rgba(0, 0, 0, 0.26);
}

.feature-card--cyan {
  border-color: rgba(21, 231, 242, 0.76);
}

.feature-card img {
  width: 76px;
  height: 76px;
  margin: 0 auto 15px;
}

.feature-card h2 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
}

.specs {
  display: grid;
  gap: 20px;
  padding: 80px max(5vw, calc((100vw - var(--container)) / 2));
}

.specs::before { top: 9%; }
.specs::after { bottom: 6%; }

.spec-row {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(44px, 7vw, 120px);
  align-items: center;
  min-height: 520px;
}

.spec-row--reverse .spec-row__media { order: 2; }
.spec-row--reverse .info-card { order: 1; }

.spec-row__media {
  display: grid;
  height: 360px;
  place-items: center;
}

.spec-row__media img {
  width: min(590px, 100%);
  max-width: none;
  max-height: 430px;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.48));
}

.spec-row__media--drone img,
.spec-row__media--frame img {
  transform: scale(1.25);
}

.spec-row__media--camera img {
  transform: scale(2.15);
}

.spec-row__media--board img {
  transform: scale(1.85);
}

.spec-row__media--battery img {
  transform: scale(1.08);
}

.info-card {
  position: relative;
  padding: 56px 28px 27px;
  background: rgba(28, 24, 32, 0.9);
  border: 2px solid var(--border);
  border-radius: 6px;
}

.info-card h2 {
  position: absolute;
  top: 0;
  right: -2px;
  left: -2px;
  min-height: 42px;
  margin: 0;
  padding: 7px 16px;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.38rem);
  line-height: 1.15;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--pink), #8311b8);
  border-radius: 6px 6px 0 0;
}

.info-card--cyan h2 {
  background: linear-gradient(180deg, var(--cyan), #258dd2 52%, #8914b5);
}

.info-card p,
.info-card li,
.description-card p,
.description-card li {
  color: var(--muted);
}

.info-card ul,
.description-card ul {
  padding-left: 20px;
}

.race-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
  align-items: center;
  max-width: var(--container);
  min-height: 520px;
  margin: 0 auto;
  padding: 80px 24px;
}

.race-section__visual {
  display: block;
  width: 100%;
  min-height: 330px;
  max-height: 440px;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: 6px;
}

.description-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
}

.description-card {
  padding: 26px;
  background: rgba(27, 23, 30, 0.92);
  border: 2px solid var(--border);
  border-radius: 6px;
}

.description-card h2 {
  margin-top: 0;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.description-card--wide {
  min-height: 540px;
}

.description-card__tabs {
  display: flex;
  gap: 6px;
  margin: -52px 0 22px;
  overflow-x: auto;
}

.description-card__tabs button {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: #fff;
  font-size: 0.68rem;
  text-transform: uppercase;
  cursor: pointer;
  background: #3d3541;
  border: 1px solid var(--border);
  border-radius: 4px 4px 0 0;
}

.description-card__tabs button.is-active {
  background: var(--purple);
}

.tab-panel[hidden] {
  display: none;
}

.numbered-list {
  display: grid;
  gap: 13px;
  padding-left: 24px;
}

.numbered-list li::marker {
  color: var(--cyan);
  font-weight: 700;
}

.numbered-list strong,
.package-list strong {
  color: #fff;
}

.spec-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) 1.2fr;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-list dt {
  color: #fff;
  font-weight: 700;
}

.spec-list dd {
  margin: 0;
  color: var(--muted);
}

.package-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(154, 44, 255, 0.4);
  border-radius: 5px;
}

.faq-list summary {
  position: relative;
  padding: 13px 42px 13px 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--cyan);
  font-size: 1.3rem;
  content: "+";
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 15px 13px;
  color: var(--muted);
}

.support {
  max-width: 900px;
  text-align: center;
}

.support__title {
  margin: 0 0 38px;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.support__grid {
  grid-template-columns: repeat(3, 1fr);
}

.order {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: 590px;
  padding: 70px max(5vw, calc((100vw - var(--container)) / 2));
}

.order__media img {
  width: min(600px, 100%);
  transform: rotate(-6deg);
}

.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.order-form label:first-child {
  grid-column: 1 / -1;
}

.order-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.order-form input,
.order-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  color: #312838;
  background: #fff;
  border: 0;
  border-radius: 5px;
}

.order-form select {
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.preorder-modal {
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: visible;
  color: var(--text);
  background: transparent;
  border: 0;
}

.preorder-modal::backdrop {
  background: rgba(12, 8, 15, 0.82);
  backdrop-filter: blur(6px);
}

.preorder-modal[open] {
  animation: modal-appear 220ms ease-out;
}

.preorder-modal__panel {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(118, 16, 189, 0.24), transparent 46%),
    #211d24;
  border: 1px solid rgba(154, 44, 255, 0.86);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.68), 0 0 42px rgba(118, 16, 189, 0.24);
}

.preorder-modal__panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--purple-bright), var(--pink));
}

.preorder-modal__close {
  position: absolute;
  top: 16px;
  right: 17px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.preorder-modal__close:hover,
.preorder-modal__close:focus-visible {
  background: var(--purple);
  outline: none;
}

.preorder-modal__heading {
  padding-right: 34px;
}

.preorder-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preorder-modal__heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  line-height: 1.12;
  text-transform: uppercase;
}

.preorder-modal__heading > p:last-child {
  margin: 16px 0 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

.preorder-modal__form {
  display: grid;
  gap: 16px;
}

.preorder-modal__form label {
  display: grid;
  gap: 7px;
}

.preorder-modal__form label span {
  font-size: 0.78rem;
  font-weight: 700;
}

.preorder-modal__form input:not([type="hidden"]) {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  outline: none;
}

.preorder-modal__form input:not([type="hidden"])::placeholder {
  color: #9f96a5;
}

.preorder-modal__form input:not([type="hidden"]):focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(21, 231, 242, 0.12);
}

.preorder-modal__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}

.preorder-modal__submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}

.preorder-modal__submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.preorder-modal__message {
  min-height: 20px;
  margin: 0;
  color: var(--cyan);
  font-size: 0.82rem;
  text-align: center;
}

.preorder-modal__message.is-error {
  color: #ff7cad;
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .hero,
  .spec-row,
  .race-section,
  .description-section,
  .order {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 60px 95px;
  }

  .hero__media {
    order: 2;
  }

  .hero__content {
    order: 1;
  }

  .hero__title {
    max-width: 620px;
  }

  .hero__title img {
    width: 112%;
    margin-left: -6%;
  }

  .showcase__track {
    --slide-gap: 18px;
  }

  .showcase__slide {
    flex-basis: calc((100% - 36px) / 3);
  }

  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .spec-row--reverse .spec-row__media,
  .spec-row--reverse .info-card {
    order: initial;
  }

  .spec-row {
    min-height: 0;
    gap: 16px;
    padding-block: 32px;
  }

  .spec-row__media {
    height: 310px;
  }

  .description-card__tabs {
    margin: 0 0 22px;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
  }

  .header-model {
    display: none;
  }

  .brand {
    width: 104px;
  }

  .header-actions {
    gap: 14px;
  }

  .socials {
    gap: 5px;
  }

  .socials a,
  .round-control {
    width: 27px;
  }

  .header-controls {
    gap: 5px;
  }

  .socials a,
  .theme-control {
    padding: 4px;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 58px;
  }

  .hero__title {
    max-width: 340px;
  }

  .hero__title img {
    width: 100%;
    margin-left: 0;
  }

  .hero__content > p {
    margin-top: 20px;
  }

  .hero__media img {
    width: 112%;
    max-width: none;
    margin-left: -6%;
  }

  .showcase {
    --slide-gap: 0px;

    padding-inline: 45px;
  }

  .showcase__viewport {
    height: 240px;
  }

  .showcase__slide {
    flex-basis: 100%;
    min-height: 220px;
  }

  .showcase__slide.is-active {
    min-height: 220px;
    overflow: hidden;
  }

  .showcase__slide.is-active img {
    max-height: 230px;
    transform: scale(1.38);
  }

  .features__grid,
  .support__grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .specs {
    gap: 8px;
    padding-top: 35px;
    padding-bottom: 50px;
  }

  .spec-row {
    gap: 6px;
    padding-block: 18px;
  }

  .spec-row__media {
    height: 230px;
    overflow: hidden;
  }

  .spec-row__media--drone img,
  .spec-row__media--frame img {
    transform: scale(1.38);
  }

  .spec-row__media--camera img {
    transform: scale(2.55);
  }

  .spec-row__media--board img {
    transform: scale(2.15);
  }

  .spec-row__media--battery img {
    transform: scale(1.22);
  }

  .info-card {
    padding: 52px 18px 20px;
  }

  .race-section,
  .description-section {
    gap: 24px;
    padding-block: 55px;
  }

  .description-card {
    padding: 18px;
  }

  .description-card--wide {
    min-height: 0;
  }

  .description-card__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 18px;
    overflow: visible;
  }

  .description-card__tabs button {
    min-height: 48px;
    white-space: normal;
  }

  .numbered-list {
    padding-left: 20px;
  }

  .support {
    padding-block: 48px 62px;
  }

  .order {
    min-height: 0;
    padding-block: 52px 70px;
  }

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

  .order-form label:first-child {
    grid-column: auto;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

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

  .preorder-modal[open] {
    animation: none;
  }
}
