:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft: #030814;
  --panel: #ffffff;
  --blue: #0071e3;
  --telegram: #0088cc;
  --green: #1f8f55;
  --amber: #9a6b12;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  --content-width: min(1450px, calc(100% - 120px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #030814;
  color: #f7fbff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Microsoft YaHei UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(2, 5, 14, 0.08), rgba(2, 5, 14, 0.24)),
    url("./assets/home-bg.png") center top / cover no-repeat;
}

button,
input,
select {
  font: inherit;
}

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

.hidden {
  display: none !important;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 12px max(60px, calc((100vw - 1450px) / 2));
  background: rgba(2, 5, 16, 0.48);
  border-bottom: 1px solid rgba(88, 126, 182, 0.16);
  box-shadow: none;
  backdrop-filter: saturate(170%) blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  color: #f7fbff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--telegram);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(247, 251, 255, 0.88);
  font-size: 17px;
}

.nav a,
.nav-button,
.ghost-btn {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav a:hover,
.nav-button:hover,
.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

main {
  width: 100%;
  padding-top: 0;
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  height: clamp(540px, 43.26vw, 825px);
  overflow: hidden;
  background: #071225;
  isolation: isolate;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 31% 44%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(90deg, rgba(3, 9, 24, 0.34) 0%, rgba(3, 9, 24, 0.13) 38%, rgba(3, 9, 24, 0) 72%);
}

.home-shell {
  min-height: calc(100vh - 112px);
  padding: clamp(150px, 13vh, 182px) 0 58px;
}

.hero-content {
  align-self: center;
  width: var(--content-width);
  max-width: none;
  margin: 0 auto;
  padding: 0;
  transform: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--telegram);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.hero-copy {
  max-width: 620px;
  color: #424245;
  font-size: clamp(17px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-dark h1 {
  max-width: 970px;
  margin-bottom: 20px;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 50%, #86c4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 12px rgba(76, 164, 255, 0.16));
  font-size: clamp(66px, 5.4vw, 92px);
  font-weight: 800;
  line-height: 1.06;
  white-space: nowrap;
  text-shadow: none;
}

.hero-dark h1 span {
  color: inherit;
}

.hero-dark h1 em {
  color: inherit;
  font-style: normal;
}

.hero-dark h1 .hero-comma {
  color: inherit;
}

.hero-dark .hero-copy {
  color: rgba(220, 231, 244, 0.76);
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.56), 0 0 12px rgba(79, 161, 255, 0.18);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.is-active {
  background: #fff;
}

.primary-btn,
.small-btn {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.primary-btn:hover,
.small-btn.primary:hover {
  background: #0067cf;
}

.primary-btn.dark {
  background: #1d1d1f;
}

.hero-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: clamp(280px, 19vw, 320px);
  min-height: 68px;
  border: 2px solid rgba(70, 172, 255, 0.95);
  border-radius: 999px;
  padding: 14px 44px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(18, 107, 247, 0.92) 0%, rgba(5, 56, 157, 0.86) 46%, rgba(3, 22, 67, 0.95) 100%);
  box-shadow:
    0 0 0 1px rgba(180, 222, 255, 0.16) inset,
    0 0 14px rgba(47, 154, 255, 0.9),
    0 0 38px rgba(0, 101, 255, 0.52),
    0 18px 44px rgba(0, 34, 110, 0.44);
  font-size: clamp(25px, 2vw, 31px);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.48), 0 0 10px rgba(255, 255, 255, 0.14);
}

.hero-order-btn:hover {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.3), transparent 30%),
    linear-gradient(180deg, rgba(29, 128, 255, 0.96) 0%, rgba(8, 68, 183, 0.9) 46%, rgba(4, 27, 82, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(204, 234, 255, 0.2) inset,
    0 0 18px rgba(65, 168, 255, 1),
    0 0 48px rgba(0, 112, 255, 0.62),
    0 20px 48px rgba(0, 34, 110, 0.5);
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 30px clamp(44px, 6vw, 96px);
  margin-top: 36px;
}

.feature-strip article {
  display: grid;
  grid-template-columns: 46px auto;
  gap: 12px;
  align-items: center;
  min-width: 190px;
}

.feature-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(98, 191, 255, 0.55);
  border-radius: 999px;
  background: rgba(0, 24, 64, 0.5);
  box-shadow: 0 0 18px rgba(0, 132, 255, 0.22);
  color: #e8f6ff;
  font-weight: 800;
}

.feature-strip strong {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
}

.feature-strip small {
  display: block;
  color: rgba(216, 228, 242, 0.62);
  font-size: 13px;
}

.secondary-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--blue);
  font-weight: 700;
}

.secondary-link:hover {
  background: rgba(0, 113, 227, 0.08);
}

.products-section,
.support-section,
.dashboard {
  margin-top: 54px;
  padding: 0;
}

.products-section {
  background: transparent;
}

.dashboard,
.support-section {
  width: min(1500px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.product-grid {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 232px;
  overflow: hidden;
  padding: 30px 32px;
  border: 1px solid rgba(91, 157, 235, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 26, 58, 0.78) 0%, rgba(5, 16, 37, 0.68) 100%);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22), 0 0 26px rgba(0, 104, 255, 0.08) inset;
  backdrop-filter: blur(14px);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 12% 18%, rgba(55, 151, 255, 0.16), transparent 23%);
  pointer-events: none;
}

.product-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: radial-gradient(circle at 42% 32%, #66c7ff, #075bff 68%, #05318b);
  box-shadow: 0 0 26px rgba(0, 113, 255, 0.58);
  color: #f3fbff;
  font-size: 30px;
  font-weight: 800;
}

.product-card h3 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 23px;
  line-height: 1.28;
}

.product-card p {
  color: rgba(214, 226, 241, 0.66);
  font-size: 15px;
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  width: max-content;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(0, 136, 204, 0.1);
  color: var(--telegram);
  font-size: 12px;
  font-weight: 800;
}

.product-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 0;
}

.price {
  color: #fff;
  font-size: 39px;
  font-weight: 800;
}

.product-card .small-btn.primary {
  min-height: 50px;
  border-color: rgba(79, 177, 255, 0.82);
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 16px;
  background: linear-gradient(180deg, #158cff, #005cff);
  box-shadow: 0 0 18px rgba(0, 112, 255, 0.34);
  color: #fff;
}

.trust-line {
  width: var(--content-width);
  margin: 28px auto 0;
  color: rgba(220, 231, 244, 0.54);
  text-align: center;
  font-size: 17px;
}

.trust-line::before {
  content: "◇";
  margin-right: 8px;
  color: rgba(110, 177, 255, 0.62);
}

.site-footer {
  border-top: 1px solid rgba(88, 126, 182, 0.16);
  padding: 24px 24px 26px;
  background: rgba(1, 4, 13, 0.34);
  color: rgba(226, 235, 246, 0.62);
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 34px;
  margin-bottom: 16px;
}

.site-footer a {
  color: rgba(247, 251, 255, 0.76);
}

.site-footer p {
  margin-bottom: 0;
  font-size: 13px;
}

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

.support-section article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid #e6e6ea;
  border-radius: 8px;
  background: #fbfbfd;
}

.support-section strong,
.support-section span {
  display: block;
}

.support-section span {
  margin-top: 8px;
  color: var(--muted);
}

.dashboard-heading,
.panel-title,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-heading {
  margin-bottom: 28px;
}

.session-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.38fr) minmax(0, 0.62fr);
  gap: 18px;
}

.order-form,
.orders-panel,
.auth-form {
  border: 1px solid #e6e6ea;
  border-radius: 8px;
  background: #fbfbfd;
  padding: 22px;
}

.order-form {
  display: grid;
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: #424245;
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.price-row {
  min-height: 52px;
  border-top: 1px solid #e6e6ea;
  border-bottom: 1px solid #e6e6ea;
}

.price-row span {
  color: var(--muted);
}

.price-row strong {
  font-size: 26px;
}

.orders-list {
  display: grid;
  gap: 12px;
}

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e6e6ea;
  border-radius: 8px;
  background: #fff;
}

.order-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.status-pill {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.status-pending {
  background: #fff5d8;
  color: var(--amber);
}

.status-processing {
  background: #e7f0fb;
  color: var(--blue);
}

.status-ready,
.status-completed {
  background: #eaf8ef;
  color: var(--green);
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13px;
}

.delivery-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #c7ead7;
  border-radius: 8px;
  background: #f3fbf6;
}

.delivery-box code {
  display: inline-block;
  margin-right: 12px;
  color: #0f5132;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
}

.order-actions {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 130px;
}

.small-btn {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}

.small-btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.empty-state {
  min-height: 154px;
  display: grid;
  place-items: center;
  border: 1px dashed #c7c7cc;
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.auth-dialog {
  width: min(860px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f5f5f7;
  cursor: pointer;
  font-size: 22px;
}

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

.auth-form {
  display: grid;
  gap: 14px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #1d1d1f;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .product-grid,
  .support-section,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide::after {
    background:
      linear-gradient(180deg, rgba(5, 13, 29, 0.82) 0%, rgba(5, 13, 29, 0.62) 52%, rgba(5, 13, 29, 0.18) 100%),
      linear-gradient(90deg, rgba(5, 13, 29, 0.48), rgba(5, 13, 29, 0.04));
  }
}

@media (max-width: 760px) {
  :root {
    --content-width: calc(100% - 44px);
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
  }

  main {
    margin-top: 0;
  }

  .home-shell {
    padding-top: 138px;
  }

  .hero-carousel {
    height: 620px;
  }

  .hero-content {
    width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    transform: translateY(16px);
  }

  .hero-dark h1 {
    max-width: calc(100vw - 44px);
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-dark h1 em {
    display: block;
  }

  .hero-comma {
    display: none;
  }

  .hero-dark .hero-copy {
    font-size: 22px;
  }

  .hero-order-btn {
    min-width: 220px;
    min-height: 58px;
    font-size: 24px;
  }

  .products-section,
  .support-section,
  .dashboard {
    padding: 22px;
  }

  .products-section {
    padding: 0;
  }

  .product-grid,
  .dashboard,
  .support-section {
    width: calc(100% - 32px);
  }

  .product-card {
    padding: 22px;
  }

  .product-head {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  .product-icon {
    width: 52px;
    height: 52px;
  }

  .product-card .small-btn.primary {
    width: max-content;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .product-meta {
    display: grid;
    justify-content: start;
    gap: 12px;
  }

  .auth-layout,
  .order-card {
    grid-template-columns: 1fr;
  }
}
