:root {
  --bg: #030408;
  --bg-2: #070912;
  --panel: rgba(15, 17, 27, 0.82);
  --panel-2: #101219;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f6f7fb;
  --muted: #9ea3b4;
  --muted-2: #697083;
  --blue: #3976ff;
  --purple: #9b55ff;
  --radius: 14px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 73% 10%, rgba(91, 71, 255, 0.24), transparent 33rem),
    radial-gradient(circle at 50% 17%, rgba(34, 70, 167, 0.14), transparent 31rem),
    linear-gradient(180deg, #020307 0%, #04050a 38%, #020306 100%);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0, rgba(0, 0, 0, 0.46) 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  padding: 18px 0;
  background: rgba(3, 4, 8, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: #fff;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 62px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 500;
}

.nav a,
.footer a,
.header-actions button,
.btn {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.nav a:hover,
.footer a:hover {
  color: #fff;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-actions button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  cursor: pointer;
}

.header-actions svg,
.newsletter button svg,
.socials svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  display: grid;
  align-items: center;
  margin-top: 8px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 4, 8, 0.52) 0%, rgba(3, 4, 8, 0.2) 34%, transparent 68%),
    linear-gradient(180deg, transparent 60%, rgba(3, 4, 8, 0.97) 96%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 62%);
  padding-bottom: 54px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
}

.hero h1 {
  margin-bottom: 30px;
  font-size: clamp(3.2rem, 4.25vw, 4.65rem);
  line-height: 0.98;
  font-weight: 600;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--blue), var(--purple) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero p {
  margin-bottom: 42px;
  color: #c7cbd8;
  font-size: 1.16rem;
  line-height: 1.55;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 172px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-light {
  color: #12131a;
  background: #fff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.btn-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.btn-small {
  min-height: 46px;
  min-width: 132px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.btn:hover,
.header-actions button:hover,
.category-card:hover,
.promo:hover,
.review-grid article:hover {
  transform: translateY(-2px);
}

.btn:active,
.header-actions button:active,
.category-card:active {
  transform: translateY(1px) scale(0.99);
}

.hero-products {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 40%;
  filter: saturate(1.06) contrast(1.03);
}

.service-strip,
.mini-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 18, 28, 0.88), rgba(9, 11, 18, 0.8));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.service-strip {
  margin-top: -58px;
  position: relative;
  z-index: 3;
  backdrop-filter: blur(18px);
}

.service-strip article,
.mini-strip article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 22px 24px;
  background: transparent;
}

.icon-box,
.mini-icon {
  display: grid;
  place-items: center;
  color: #7891ff;
  flex: 0 0 auto;
}

.icon-box svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.mini-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.service-strip h3,
.mini-strip h3 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.service-strip p,
.mini-strip p {
  margin-bottom: 0;
  color: #858b9f;
  font-size: 0.74rem;
  line-height: 1.35;
  font-weight: 400;
}

.categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding: 50px 0 42px;
}

.category-card {
  position: relative;
  min-height: 278px;
  overflow: hidden;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: #10131b;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
  isolation: isolate;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(4, 5, 9, 0.9) 0%, rgba(4, 5, 9, 0.48) 42%, rgba(4, 5, 9, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%);
}

.category-card span,
.category-card small {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card span {
  margin-bottom: 9px;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.category-card small {
  color: #9da3b5;
  font-size: 0.75rem;
  font-weight: 500;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1.01);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover img {
  transform: scale(1.055);
}

.promo {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  display: grid;
  align-items: center;
  margin: 0 0 42px;
  padding: clamp(48px, 6vw, 72px);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 45%, rgba(105, 91, 255, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.promo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 5, 9, 0.94) 0%, rgba(4, 5, 9, 0.67) 35%, rgba(4, 5, 9, 0.04) 66%);
}

.promo-copy {
  position: relative;
  z-index: 2;
  width: min(520px, 48%);
}

.product-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.product-label svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.promo h2 {
  margin-bottom: 28px;
  color: #f5f5f7;
  font-size: clamp(2.9rem, 4.3vw, 4.45rem);
  line-height: 0.98;
  font-weight: 600;
}

.promo h2 span {
  color: #8da9ff;
}

.promo p:not(.product-label) {
  margin-bottom: 34px;
  color: #b9bdcb;
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 400;
}

.promo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.promo-iphone > img {
  object-position: 66% center;
}

.promo-macbook > img {
  object-position: 70% center;
}

.promo-accessories {
  min-height: 260px;
}

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

.promo-accessories > img {
  object-position: 66% center;
}

.mini-strip {
  margin-bottom: 64px;
}

.reviews {
  padding-bottom: 42px;
}

.reviews > h2 {
  margin-bottom: 28px;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 600;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-grid article {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.08), transparent 14rem),
    rgba(18, 20, 29, 0.84);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease;
}

.stars {
  margin-bottom: 22px;
  color: #ffbf27;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.review-grid p {
  margin-bottom: 26px;
  color: #d6d8e0;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 400;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.person span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #172032;
  background: linear-gradient(135deg, #f7d6c7, #8fb0ff);
  font-weight: 600;
}

.person strong,
.person small {
  display: block;
}

.person strong {
  margin-bottom: 2px;
  font-size: 0.86rem;
}

.person small {
  color: #7f8799;
  font-size: 0.75rem;
  font-weight: 500;
}

.newsletter {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: grid;
  align-items: center;
  margin-bottom: 60px;
  padding: clamp(40px, 6vw, 54px);
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(18, 20, 29, 0.98), rgba(90, 48, 151, 0.66));
  box-shadow: 0 26px 78px rgba(0, 0, 0, 0.2);
}

.newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #11131d 0%, rgba(17, 19, 29, 0.86) 35%, rgba(17, 19, 29, 0.05) 73%);
  pointer-events: none;
}

.newsletter-copy {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.newsletter h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.03;
  font-weight: 600;
}

.newsletter p {
  margin-bottom: 28px;
  color: #d6d8e0;
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 400;
}

.newsletter img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr 58px;
  width: min(400px, 100%);
  min-height: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.subscribe-form input {
  min-width: 0;
  border: 0;
  padding: 0 20px;
  color: #fff;
  background: transparent;
  outline: none;
}

.subscribe-form input::placeholder {
  color: #8b91a3;
}

.subscribe-form button {
  display: grid;
  place-items: center;
  border: 0;
  color: #15161d;
  background: #fff;
  cursor: pointer;
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #9db0ff;
  font-size: 0.82rem;
}

.form-status.error {
  color: #ff8c8c;
}

.footer {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 42px;
  padding: 0 10px 54px;
}

.footer-brand p {
  margin: 18px 0 0;
  color: #6d7485;
  font-size: 0.78rem;
}

.footer h3 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer a {
  display: block;
  width: fit-content;
  margin-bottom: 9px;
  color: #858b9d;
  font-size: 0.8rem;
  font-weight: 500;
}

.socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.socials a {
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .page {
    width: min(100% - 32px, var(--max));
  }

  .header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  .hero-copy {
    width: min(540px, 58%);
  }

  .service-strip,
  .mini-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .promo-copy {
    width: min(420px, 56%);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .page {
    width: calc(100% - 28px);
  }

  .header {
    min-height: 64px;
    padding: 12px 0;
  }

  .brand {
    font-size: 1rem;
  }

  .brand svg {
    width: 20px;
    height: 20px;
  }

  .header-actions {
    gap: 14px;
  }

  .header-actions button {
    width: 22px;
    height: 22px;
  }

  .hero {
    min-height: 720px;
    align-items: start;
    padding-top: 58px;
  }

  .hero-copy {
    width: 100%;
    padding-bottom: 0;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: clamp(2.55rem, 11.8vw, 3rem);
  }

  .hero h1 span {
    white-space: normal;
  }

  .hero p {
    margin-bottom: 28px;
    font-size: 1rem;
  }

  .hero-buttons {
    gap: 12px;
  }

  .btn {
    min-width: 0;
    min-height: 48px;
    padding: 0 18px;
    font-size: 0.8rem;
  }

  .service-strip {
    margin-top: -20px;
  }

  .service-strip,
  .mini-strip,
  .categories,
  .review-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .service-strip article,
  .mini-strip article {
    min-height: 86px;
    padding: 18px;
  }

  .categories {
    gap: 12px;
    padding: 28px 0 32px;
  }

  .category-card {
    min-height: 220px;
    padding: 22px 18px;
  }

  .category-card img {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .promo,
  .newsletter {
    min-height: 520px;
    padding: 30px;
    border-radius: 18px;
  }

  .promo::after,
  .newsletter::after {
    background: linear-gradient(180deg, rgba(5, 6, 11, 0.95) 0%, rgba(5, 6, 11, 0.78) 42%, rgba(5, 6, 11, 0.06) 78%);
  }

  .promo-copy,
  .newsletter-copy {
    width: 100%;
    max-width: none;
    align-self: start;
  }

  .promo h2,
  .newsletter h2 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .promo > img,
  .newsletter img {
    object-position: center bottom;
  }

  .promo-iphone > img {
    object-position: 62% bottom;
  }

  .promo-macbook > img {
    object-position: 66% bottom;
  }

  .promo-accessories {
    min-height: 420px;
  }

  .mini-strip {
    margin-bottom: 44px;
  }

  .review-grid article {
    min-height: 190px;
  }

  .newsletter {
    margin-bottom: 48px;
  }

  .footer {
    gap: 24px;
    padding-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
