/* HP × CYBERSHOP — как эталон 1564×900, scale-to-fit */

@font-face {
  font-family: "Benzin";
  src: url("/landing/assets/fonts/benzin-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "forma-djr-micro";
  src: url("/landing/assets/fonts/FormaDJRUI.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --hp-brand: #0096d6;
  --hp-text: #1a1a1a;
  --hp-muted: #5a5a5a;
  --hp-border: #e8e8e8;
  --hp-font: "forma-djr-micro", Arial, Helvetica, sans-serif;
  --hp-stage-w: 1564px;
  --hp-stage-h: 900px;
  --hp-stage-edge: 60px;
  --hp-scale-x: calc((100vw - 2 * var(--hp-stage-edge)) / var(--hp-stage-w));
  --hp-scale-y: calc(100dvh / var(--hp-stage-h));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hp-site-body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0 var(--hp-stage-edge);
  overflow: hidden;
  font-family: var(--hp-font);
  color: var(--hp-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.hp-stage-shell {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.hp-stage {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: var(--hp-stage-w);
  height: var(--hp-stage-h);
  transform: scale(var(--hp-scale-x), var(--hp-scale-y));
  transform-origin: top left;
  background: #fff;
  overflow: hidden;
}

.hp-stage__main {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: 55fr 45fr;
  min-height: 0;
  overflow: hidden;
}

.hp-site-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 40px;
  background: #fff;
}

.hp-site-header__brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}

.hp-site-header__hp {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 10px;
}

.hp-site-header__slash {
  font-size: 26px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.2);
  line-height: 1;
  margin-top: 2px;
  margin-left: 10px;
  flex-shrink: 0;
}

.hp-site-header__cyber {
  height: 53px;
  width: auto;
  max-width: 264px;
  object-fit: contain;
  object-position: left center;
  margin-left: -2px;
  filter: brightness(0);
  opacity: 0.88;
}

.hp-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: 58% 42%;
  overflow: hidden;
  background: #fff;
}

.hp-hero__visual {
  --hp-hero-visual-radius: 22px;
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #e8e8ea;
  clip-path: url(#hp-hero-visual-clip);
}

.hp-hero__visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hp-hero__panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
  overflow: visible;
  padding: 16px 36px 16px 24px;
  background: #fff;
  border-top: 1px solid var(--hp-border);
}

.hp-hero__accent {
  display: none;
}

.hp-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 460px;
  padding-right: 12px;
}

.hp-hero__accent-bar {
  display: block;
  width: 32px;
  height: 96px;
  background: var(--hp-brand);
  transform: skewX(-12deg);
  border-radius: 2px;
}

.hp-hero__accent-bar:last-child {
  height: 72px;
  margin-top: 18px;
  opacity: 0.85;
}

.hp-hero__title {
  margin: 0 0 6px;
  font-family: var(--hp-font);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #1a1a1a;
}

.hp-hero__title-brand {
  font-family: var(--hp-font);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hp-hero__subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--hp-muted);
}

.hp-hero__subtitle-line {
  display: block;
  white-space: nowrap;
}

.hp-hero__subtitle-line + .hp-hero__subtitle-line {
  margin-top: 2px;
}

.hp-hero__brand-name {
  display: inline;
  font-family: "Benzin", var(--hp-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #00d7f3;
  vertical-align: baseline;
}

.hp-hero__box-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  width: max-content;
  max-width: 100%;
}

.hp-hero__box {
  margin-top: 14px;
  padding: 16px 18px 14px;
  border-radius: 22px;
  background: #111;
  color: #fff;
}

.hp-hero__box-lead {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.hp-hero__box-lead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.hp-hero__box-logo-col {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.hp-hero__box-logo {
  display: block;
  height: 22px;
  width: auto;
  /* PNG includes superscript AI above the wordmark — shift so CYBERSHOP matches the text. */
  transform: translateY(-6px);
}

.hp-hero__box-tag {
  margin-top: -4px;
  margin-right: 20px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.72);
}

.hp-hero__box .hp-cta {
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 14px;
}

.hp-hero__box .hp-cta__label {
  font-size: 14px;
}

.hp-hero__box .hp-cta__arrow svg {
  width: 13px;
  height: 13px;
}

.hp-hero__box .hp-cta__wa-icon svg {
  width: 14px;
  height: 14px;
}

.hp-cta {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: max-content;
  min-height: 40px;
  padding: 9px 24px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font: inherit;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: #1a1a1a;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.2s ease,
    transform 0.18s ease;
}

.hp-cta__label {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  font-family: var(--hp-font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
}

.hp-cta__logo {
  position: relative;
  z-index: 1;
  display: block;
  height: 15px;
  width: auto;
  flex: 0 0 auto;
}

.hp-cta__arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  opacity: 0.9;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.hp-cta__arrow svg {
  display: block;
  width: 16px;
  height: 16px;
}

.hp-cta:hover {
  background: #3d3d3d;
}

.hp-cta--light {
  background: #fff;
  color: #111;
}

.hp-cta--light .hp-cta__label,
.hp-cta--light .hp-cta__arrow {
  color: #111;
}

.hp-cta--light:hover {
  background: #ececec;
}

.hp-cta--wa {
  background: #25d366;
}

.hp-cta--wa:hover {
  background: #1ebe57;
}

.hp-cta__wa-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.hp-cta__wa-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.hp-cta:hover .hp-cta__arrow {
  transform: translateX(3px);
  opacity: 1;
}

.hp-cta:active {
  transform: scale(0.98);
  background: #525252;
}

.hp-cta--light:active {
  background: #dedede;
}

.hp-cta--wa:active {
  background: #19a84c;
}

.hp-cta:focus-visible {
  outline: 2px solid #5492ff;
  outline-offset: 3px;
}

.hp-products {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 48px 18px;
  background: #f5f5f5;
}

.hp-products__note {
  flex-shrink: 0;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--hp-text);
}

.hp-products__grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 0;
  align-items: stretch;
}

.hp-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 16px 14px;
  border-right: 1px solid #e0e0e0;
  min-height: 0;
  background: #f5f5f5;
  color: inherit;
  text-decoration: none;
}

.hp-product:last-child {
  border-right: none;
}

.hp-product:focus-visible {
  outline: 2px solid #0096d6;
  outline-offset: -2px;
}

.hp-product__media {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  margin-bottom: 10px;
}

.hp-product__media img {
  display: block;
  max-width: 88%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hp-product:hover .hp-product__media img {
  transform: scale(1.03);
}

.hp-product__name {
  flex-shrink: 0;
  margin: 0 0 6px;
  font-family: var(--hp-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.hp-product__desc {
  flex-shrink: 0;
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--hp-muted);
}

.hp-site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 6px 40px;
  border-top: 1px solid #e8e8e8;
  background: #f5f5f5;
}

.hp-site-footer p {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
  color: rgba(0, 0, 0, 0.4);
}

.hp-site-footer a {
  color: inherit;
  text-decoration: none;
}

.hp-site-footer a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .hp-product:hover .hp-product__media img {
    transform: none;
  }

  .hp-cta,
  .hp-cta__arrow {
    transition: none;
  }
}

@media (max-width: 768px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .hp-site-body {
    height: auto;
    max-height: none;
    padding: 0;
    overflow: visible;
  }

  .hp-stage-shell {
    height: auto;
    overflow: visible;
  }

  .hp-stage {
    position: relative;
    width: 100%;
    height: auto;
    transform: none;
    overflow: visible;
  }

  .hp-stage__main {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .hp-site-header {
    height: 64px;
    padding: 0 16px;
    justify-content: center;
  }

  .hp-site-header__hp {
    width: 40px;
    height: 40px;
  }

  .hp-site-header__brand {
    margin-right: 0;
  }

  .hp-site-header__cyber {
    height: 36px;
  }

  .hp-hero {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    flex-shrink: 0;
    min-height: calc(100svh - 64px);
    overflow: visible;
  }

  .hp-hero__visual {
    flex: 0 0 auto;
    height: min(36svh, 280px);
    min-height: 176px;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
    border-top-left-radius: 0;
  }

  .hp-hero__visual img {
    width: 105%;
    height: 105%;
    left: -2.5%;
    top: -2.5%;
    object-position: center 38%;
  }

  .hp-hero__panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 14px 16px max(12px, env(safe-area-inset-bottom));
    border-top: none;
  }

  .hp-hero__accent {
    display: none;
  }

  .hp-hero__copy {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-items: center;
    width: 100%;
    min-height: 0;
    max-width: none;
    padding-right: 0;
    text-align: center;
  }

  .hp-hero__title {
    font-size: 32px;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 8px;
  }

  .hp-hero__subtitle {
    margin-bottom: 0;
    text-align: center;
    font-size: 14px;
  }

  .hp-hero__subtitle-line {
    white-space: normal;
  }

  .hp-hero__box {
    margin-top: auto;
    margin-bottom: 8px;
    width: calc(100% - 10px);
    padding: 16px 18px 24px;
    text-align: left;
  }

  .hp-hero__box-lead {
    text-align: left;
  }

  .hp-hero__box-lead-row {
    justify-content: flex-start;
  }

  .hp-hero__box-actions {
    width: 70%;
    max-width: 70%;
    margin: 12px auto 0;
    align-items: stretch;
  }

  .hp-products {
    padding: 28px 12px 20px;
  }

  .hp-products__note {
    margin-bottom: 12px;
    padding: 0 4px;
  }

  .hp-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 0;
  }

  .hp-product {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    min-height: 220px;
  }

  .hp-product:nth-child(odd) {
    border-right: 1px solid #e0e0e0;
  }

  .hp-cta {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .hp-products__grid {
    grid-template-columns: 1fr;
  }

  .hp-product:nth-child(odd) {
    border-right: none;
  }
}
