@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --font-inter: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --background: 216 40% 5%;
  --foreground: 210 20% 95%;
  --card: 216 35% 8%;
  --primary: 199 89% 48%;
  --primary-foreground: 216 40% 5%;
  --secondary: 216 25% 14%;
  --secondary-foreground: 210 20% 85%;
  --muted: 216 25% 12%;
  --muted-foreground: 215 15% 55%;
  --accent: 187 80% 48%;
  --destructive: 0 72% 51%;
  --border: 216 20% 16%;
  --amber: 43 96% 56%;
  --green: 142 76% 58%;
  --telegram-blue: #229ed9;
  --telegram-blue-hover: #1d95cd;
  --telegram-blue-soft: rgb(34 158 217 / 0.14);
  --telegram-blue-glow: rgb(34 158 217 / 0.3);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-inter);
  letter-spacing: 0;
}

body::selection {
  background: hsl(var(--primary) / 0.32);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

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

code {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-weight: 500;
}

code.accent-code,
.accent-code {
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--background) / 0.8);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(72rem, 100% - 2.5rem);
  height: 4rem;
  margin: 0 auto;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.brand {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-text {
  white-space: nowrap;
}

.brand-text span,
.footer-brand strong {
  color: hsl(var(--primary));
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5625rem;
  border: 1px solid rgb(255 255 255 / 0.24);
  background: linear-gradient(145deg, #fff, #eaf1f7);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.8),
    0 10px 24px rgb(0 0 0 / 0.22);
  color: #000;
  overflow: hidden;
}

.brand-mark.small {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4375rem;
}

.brand-mark .icon {
  width: 1rem;
  height: 1rem;
}

.brand-mark.small .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.brand-mark img {
  display: block;
  width: 72%;
  height: 72%;
  padding: 0;
  border-radius: inherit;
  object-fit: contain;
}

.brand-mark.small img {
  width: 70%;
  height: 70%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pill-link,
.support-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.pill-link .icon,
.support-pill .icon {
  width: 1rem;
  height: 1rem;
}

.text-link {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.text-link:hover {
  color: hsl(var(--foreground));
}

.mobile-text-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 0;
}

.pill-ghost {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.pill-ghost:hover {
  background: hsl(var(--primary) / 0.2);
}

.whatsapp-link {
  color: #25d366;
  background: rgb(37 211 102 / 0.1);
}

.whatsapp-link:hover {
  color: #dcfce7;
  background: #25d366;
  box-shadow: 0 12px 28px rgb(37 211 102 / 0.26);
}

.pill-primary {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 12px 28px hsl(var(--primary) / 0.3);
}

.pill-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 34px hsl(var(--primary) / 0.5);
}

.telegram-link,
.telegram-button {
  background: var(--telegram-blue);
  color: #fff;
  box-shadow: 0 12px 28px var(--telegram-blue-glow);
}

.telegram-link::before,
.telegram-button::before,
.support-pill.telegram::before {
  content: "";
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("./assets/telegram-icon.svg") center / contain no-repeat;
  mask: url("./assets/telegram-icon.svg") center / contain no-repeat;
}

.telegram-link:hover,
.telegram-button:hover {
  background: var(--telegram-blue-hover);
  color: #fff;
  box-shadow: 0 14px 34px var(--telegram-blue-glow);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--secondary) / 0.5);
  color: hsl(var(--muted-foreground));
}

.menu-toggle:hover {
  color: hsl(var(--foreground));
}

.menu-toggle .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.menu-toggle .close-icon,
.menu-toggle[aria-expanded="true"] .menu-icon {
  display: none;
}

.menu-toggle[aria-expanded="true"] .close-icon {
  display: block;
}

.mobile-menu {
  display: none;
}

main {
  overflow: hidden;
}

.hero-section {
  position: relative;
  padding: 7rem 0 4rem;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(50rem, 120vw);
  height: 31.25rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: hsl(var(--primary) / 0.05);
  filter: blur(120px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(25rem, 34rem);
  align-items: start;
  gap: 4rem;
  width: min(72rem, 100% - 2.5rem);
  margin: 0 auto;
}

.hero-copy {
  padding-top: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: 999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.eyebrow .eyebrow-key {
  width: 0.8125rem;
  height: 0.8125rem;
  flex: 0 0 auto;
  fill: currentColor;
  stroke: none;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: clamp(2.25rem, 6.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
  margin-top: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.5rem;
  background: hsl(var(--secondary) / 0.5);
  color: hsl(var(--secondary-foreground));
  font-size: 0.75rem;
  font-weight: 500;
}

.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
}

.dot-primary {
  background: hsl(var(--primary));
}

.dot-accent {
  background: hsl(var(--accent));
}

.dot-green {
  background: #4ade80;
}

.order-card,
.models-card {
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--card) / 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.3);
}

.order-card {
  border-radius: 1rem;
  padding: clamp(1.5rem, 4vw, 2rem);
}

.order-form {
  display: grid;
  gap: 1.25rem;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 700;
}

.field-label.no-icon {
  display: block;
}

.field-label .icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}

.field-label span,
.field-error {
  color: hsl(var(--destructive));
}

.field-error {
  min-height: 1rem;
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

.model-box {
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 0.75rem;
  background: hsl(var(--secondary) / 0.3);
}

.model-attention::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(
      110deg,
      transparent 0%,
      transparent 30%,
      rgb(37 211 102 / 0.09) 42%,
      hsl(var(--primary) / 0.18) 50%,
      rgb(37 211 102 / 0.09) 58%,
      transparent 70%,
      transparent 100%
    );
  opacity: 0;
  pointer-events: none;
  transform: translateX(-110%);
  animation: model-attention-wave 1250ms ease-out 650ms 1 both;
}

@keyframes model-attention-wave {
  0% {
    opacity: 0;
    transform: translateX(-110%);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(110%);
  }
}

.model-step {
  animation: step-in 160ms ease both;
}

.model-step[data-step="brand"],
.model-step[data-step="series"] {
  padding: 0.75rem;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-caption {
  margin: 0 0 0.75rem;
  padding: 0 0.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.step-caption.inline {
  margin: 0;
  padding: 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.brand-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.875rem 0.5rem;
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.75rem;
  background: hsl(var(--card) / 0.6);
  color: hsl(var(--foreground));
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.brand-option:hover {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.05);
}

.brand-logo {
  font-size: 1.5rem;
  line-height: 1;
}

.brand-name {
  font-size: 0.75rem;
  font-weight: 800;
  transition: color 150ms ease;
}

.brand-option:hover .brand-name {
  color: hsl(var(--primary));
}

.brand-count {
  color: hsl(var(--muted-foreground));
  font-size: 0.625rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.icon-button:hover {
  color: hsl(var(--foreground));
}

.icon-button .icon,
.subtle-icon {
  width: 1rem;
  height: 1rem;
}

.subtle-icon {
  color: hsl(var(--muted-foreground));
}

.brand-choice {
  color: hsl(var(--foreground));
  font-size: 0.75rem;
  font-weight: 700;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem;
}

.series-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid hsl(var(--border) / 0.4);
  border-radius: 0.5rem;
  background: hsl(var(--card) / 0.5);
  color: hsl(var(--foreground));
  text-align: left;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.series-option:hover {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.05);
  color: hsl(var(--primary));
}

.series-option span {
  font-size: 0.875rem;
  font-weight: 700;
}

.series-option .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.series-option:hover .icon {
  color: hsl(var(--primary));
}

.model-done {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
}

.selected-model {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgb(34 197 94 / 0.15);
  color: #4ade80;
}

.success-icon.large {
  width: 2.5rem;
  height: 2.5rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.success-icon .icon {
  width: 1rem;
  height: 1rem;
}

.success-icon.large .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.selected-copy {
  min-width: 0;
  display: grid;
  gap: 0.125rem;
}

.selected-copy strong {
  overflow: hidden;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-copy small {
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 600;
}

.change-model {
  flex: 0 0 auto;
  padding: 0.375rem 0.75rem;
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.5rem;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.change-model:hover {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.model-help {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 0.5rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid hsl(var(--border) / 0.4);
  border-radius: 0.75rem;
  background: hsl(var(--card) / 0.3);
}

.model-help .icon {
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.075rem;
  color: hsl(var(--muted-foreground));
}

.model-help p,
.hint {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  line-height: 1.45;
}

.model-help a,
.hint a,
.support-note a {
  color: hsl(var(--primary));
  font-weight: 700;
  text-decoration: none;
}

.model-help a:hover,
.hint a:hover,
.support-note a:hover {
  text-decoration: underline;
}

input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  outline: none;
  background: hsl(var(--secondary) / 0.6);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.22);
}

input::placeholder {
  color: hsl(var(--muted-foreground) / 0.5);
}

#key-date,
#product-id {
  font-family: var(--font-mono);
}

.date-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--accent) / 0.1);
  border-radius: 0.5rem;
  background: hsl(var(--accent) / 0.05);
  color: hsl(var(--accent));
  font-size: 0.75rem;
  line-height: 1.45;
}

.date-note .icon {
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.1rem;
}

.hint {
  margin-top: 0.5rem;
}

.warning {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.55;
}

.warning .icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.075rem;
}

.warning-red {
  border: 1px solid hsl(var(--destructive) / 0.15);
  background: hsl(var(--destructive) / 0.05);
  color: hsl(var(--destructive) / 0.9);
}

.warning-amber {
  border: 1px solid hsl(var(--amber) / 0.15);
  background: hsl(var(--amber) / 0.05);
  color: rgb(252 211 77 / 0.9);
}

.locked-firmware-warning {
  position: relative;
  isolation: isolate;
  overflow: visible;
  animation: locked-firmware-surface-pulse 7.5s ease-in-out infinite;
}

.locked-firmware-warning > * {
  position: relative;
  z-index: 1;
}

.locked-firmware-warning::after {
  content: "";
  position: absolute;
  inset: -0.2rem;
  z-index: 0;
  border: 1px solid rgb(252 211 77 / 0.26);
  border-radius: 0.9rem;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgb(252 211 77 / 0);
  animation: locked-firmware-ring-pulse 7.5s ease-out infinite;
}

@keyframes locked-firmware-surface-pulse {
  0%,
  64%,
  100% {
    border-color: hsl(var(--amber) / 0.15);
    background: hsl(var(--amber) / 0.05);
    box-shadow: none;
  }

  8% {
    border-color: rgb(252 211 77 / 0.42);
    background: rgb(252 211 77 / 0.09);
    box-shadow:
      0 0 0 0.18rem rgb(252 211 77 / 0.08),
      0 0 1.1rem rgb(252 211 77 / 0.16);
  }

  22% {
    border-color: hsl(var(--amber) / 0.22);
    background: hsl(var(--amber) / 0.052);
    box-shadow: none;
  }
}

@keyframes locked-firmware-ring-pulse {
  0%,
  66%,
  100% {
    opacity: 0;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(252 211 77 / 0);
  }

  8% {
    opacity: 0.36;
  }

  25% {
    opacity: 0;
    transform: scale(1.055);
    box-shadow: 0 0 0 0.65rem rgb(252 211 77 / 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .locked-firmware-warning {
    border-color: rgb(252 211 77 / 0.34);
    background: rgb(252 211 77 / 0.075);
    animation: none;
  }

  .locked-firmware-warning::after {
    display: none;
  }
}

.order-form:has(> .submit-button:hover) .locked-firmware-warning,
.order-form:has(> .submit-button:focus-visible) .locked-firmware-warning {
  border-color: rgb(252 211 77 / 0.58);
  background: rgb(252 211 77 / 0.115);
  box-shadow:
    0 0 0 0.2rem rgb(252 211 77 / 0.08),
    0 0 1.35rem rgb(252 211 77 / 0.22);
  animation: none;
}

.order-form:has(> .submit-button:hover) .locked-firmware-warning::after,
.order-form:has(> .submit-button:focus-visible) .locked-firmware-warning::after {
  border-color: rgb(252 211 77 / 0.42);
  opacity: 0.42;
  transform: scale(1.018);
  box-shadow: 0 0 0 0.32rem rgb(252 211 77 / 0.08);
  animation: none;
}

.submit-button,
.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.submit-button {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 12px 28px hsl(var(--primary) / 0.3);
}

.submit-button:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 34px hsl(var(--primary) / 0.5);
}

.submit-button:active {
  transform: scale(0.98);
}

.submit-button.telegram-button {
  background: var(--telegram-blue);
  color: #fff;
  box-shadow: 0 12px 28px var(--telegram-blue-glow);
}

.submit-button.telegram-button:hover {
  background: var(--telegram-blue-hover);
  box-shadow: 0 16px 34px var(--telegram-blue-glow);
}

.submit-button .icon,
.whatsapp-button .icon {
  width: 1rem;
  height: 1rem;
}

.order-result {
  animation: result-in 180ms ease both;
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

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

.result-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.result-title h2 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 1.125rem;
}

.result-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.result-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 1rem;
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.5rem;
  background: hsl(var(--secondary) / 0.5);
}

.result-list .model-row {
  border-color: rgb(34 197 94 / 0.15);
  background: rgb(34 197 94 / 0.05);
}

.result-list .total-row {
  border-color: hsl(var(--primary) / 0.15);
  background: hsl(var(--primary) / 0.05);
}

.result-list dt {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.result-list dd {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.result-list .model-row dd {
  color: #4ade80;
}

.result-list .total-row dd {
  color: hsl(var(--primary));
  font-weight: 800;
}

.result-copy {
  margin: 0 0 1.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  line-height: 1.55;
}

.result-actions {
  display: grid;
  gap: 0.75rem;
}

.whatsapp-button {
  min-height: 3rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-weight: 700;
}

.whatsapp-button:hover {
  background: #25d366;
  color: #052e16;
  box-shadow: 0 12px 28px rgb(37 211 102 / 0.24);
}

.back-button {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 1rem auto 0;
  border: 0;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  transition: color 160ms ease;
}

.back-button:hover {
  color: hsl(var(--foreground));
}

.back-button .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.stacked-sections {
  display: grid;
  gap: 2rem;
  padding: 0 0 4rem;
}

.info-section,
.models-card {
  width: min(72rem, 100% - 2.5rem);
  margin: 0 auto;
}

.info-section {
  display: grid;
  gap: 1rem;
}

.hero-help {
  width: 100%;
  margin: 2rem 0 0;
  gap: 0.75rem;
}

.hero-help.info-section {
  width: 100%;
}

.hero-help .info-panel {
  background: hsl(var(--card) / 0.42);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.12);
}

.hero-help .info-trigger {
  padding: 0.875rem 1rem;
}

.hero-help .panel-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.hero-help .panel-icon .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.hero-help .panel-inner {
  padding-inline: 1rem;
  font-size: 0.8125rem;
}

.hero-help .info-panel.is-open .panel-inner {
  padding-bottom: 1rem;
}

.info-panel {
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 0.75rem;
  background: hsl(var(--card) / 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: border-color 180ms ease;
}

.info-panel:hover {
  border-color: hsl(var(--primary) / 0.2);
}

.info-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: 0;
  background: transparent;
  color: hsl(var(--foreground));
  text-align: left;
}

.info-trigger > span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

.panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.panel-icon .icon {
  width: 1rem;
  height: 1rem;
}

.chevron {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  transition: transform 200ms ease;
}

.info-panel.is-open .chevron {
  transform: rotate(180deg);
}

.panel-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 200ms ease,
    opacity 200ms ease;
}

.info-panel.is-open .panel-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

.panel-inner {
  overflow: hidden;
  padding: 0 1.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.65;
}

.info-panel.is-open .panel-inner {
  padding-bottom: 1.25rem;
}

.panel-inner p {
  margin: 0;
}

.panel-inner strong {
  color: hsl(var(--foreground));
}

.panel-inner ul,
.panel-inner ol {
  margin: 0;
  padding-left: 1.25rem;
}

.panel-inner li {
  margin: 0.25rem 0;
}

.panel-subblock {
  margin-top: 0.75rem;
}

.firmware-next-step {
  position: relative;
  width: 100%;
  margin: 0.75rem 0 0;
  border-color: hsl(var(--amber) / 0.38);
  background:
    linear-gradient(135deg, hsl(var(--amber) / 0.1), transparent 42%),
    hsl(var(--card) / 0.62);
  box-shadow:
    0 18px 38px rgb(0 0 0 / 0.2),
    inset 0 0 0 1px hsl(var(--amber) / 0.08);
}

.firmware-next-step:hover {
  border-color: hsl(var(--amber) / 0.56);
}

.firmware-next-step .info-trigger {
  padding: 0.875rem 1rem;
}

.firmware-next-step .info-trigger > span {
  color: hsl(var(--foreground));
}

.firmware-next-step .panel-icon {
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid hsl(var(--amber) / 0.22);
  background: hsl(var(--amber) / 0.14);
  color: hsl(var(--amber));
}

.firmware-next-step .panel-icon .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.firmware-next-step .panel-inner {
  display: grid;
  gap: 0.75rem;
  padding-inline: 1rem;
  font-size: 0.8125rem;
}

.firmware-next-step .panel-subblock {
  margin-top: 0;
}

.firmware-next-step .support-actions {
  justify-content: flex-start;
}

.next-step-box {
  padding: 0.75rem;
  border: 1px solid hsl(var(--amber) / 0.16);
  border-radius: 0.625rem;
  background: hsl(var(--amber) / 0.055);
}

.positive-title,
.negative-title,
.route-box p {
  font-size: 0.75rem;
  font-weight: 800;
}

.positive-title {
  color: #4ade80;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.negative-title {
  color: hsl(var(--destructive));
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-note {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border) / 0.4);
  font-size: 0.75rem;
}

.route-box {
  display: grid;
  gap: 0.375rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: 0.5rem;
  background: hsl(var(--secondary) / 0.3);
}

.route-box p {
  margin: 0;
  color: hsl(var(--foreground));
}

.file-route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: 0.5rem;
  background: hsl(var(--secondary) / 0.3);
}

.file-route span {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.models-card {
  border-radius: 1rem;
  padding: clamp(1.5rem, 4vw, 2rem);
}

.hero-models {
  width: 100%;
  margin: 0.75rem 0 0;
  background: hsl(var(--card) / 0.56);
  box-shadow: 0 16px 34px rgb(0 0 0 / 0.18);
}

.hero-models .info-trigger {
  padding: 0.875rem 1rem;
}

.hero-models .panel-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.hero-models .panel-icon .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.hero-models .panel-inner {
  padding-inline: 1rem;
}

.hero-models .panel-inner h2 {
  margin: 0 0 0.875rem;
  color: hsl(var(--foreground));
  font-size: 1.125rem;
  line-height: 1.25;
}

.models-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.models-heading .eyebrow {
  margin-bottom: 1rem;
}

.models-heading h2 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  line-height: 1.2;
}

.hero-models .models-heading {
  margin-bottom: 1rem;
  text-align: left;
}

.hero-models .models-heading .eyebrow {
  margin-bottom: 0.75rem;
}

.hero-models .models-heading h2 {
  font-size: 1.125rem;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.hero-models .models-grid {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.model-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border) / 0.4);
  border-radius: 0.75rem;
  background: hsl(var(--secondary) / 0.4);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  line-height: 1.35;
  transition: border-color 160ms ease;
}

.hero-models .model-tile {
  min-height: 2.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
}

.model-tile:hover {
  border-color: hsl(var(--primary) / 0.2);
}

.model-tile .dot {
  flex: 0 0 auto;
  background: hsl(var(--primary));
}

.models-footer {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.hero-models .models-footer {
  justify-items: start;
  text-align: left;
}

.models-footer p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.hero-models .models-footer p {
  font-size: 0.8125rem;
}

.models-footer strong {
  color: hsl(var(--foreground));
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-models .support-actions {
  justify-content: flex-start;
}

.support-pill {
  min-height: 2.5rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
}

.support-pill.whatsapp {
  border-color: rgb(34 197 94 / 0.2);
  background: rgb(34 197 94 / 0.1);
  color: #4ade80;
}

.support-pill.whatsapp:hover {
  background: rgb(34 197 94 / 0.2);
}

.support-pill.telegram {
  border-color: rgb(34 158 217 / 0.28);
  background: var(--telegram-blue-soft);
  color: #61c9f3;
}

.support-pill.telegram:hover {
  border-color: rgb(34 158 217 / 0.55);
  background: var(--telegram-blue);
  color: #fff;
  box-shadow: 0 12px 28px var(--telegram-blue-glow);
}

.footer {
  border-top: 1px solid hsl(var(--border) / 0.3);
  padding: 2.5rem 1.25rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: min(72rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-size: 0.875rem;
  font-weight: 800;
}

.footer p {
  max-width: 28rem;
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
}

.footer-links a {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: hsl(var(--primary));
}

.footer .copyright {
  color: hsl(var(--muted-foreground) / 0.5);
}

.page-shell {
  display: grid;
  gap: 2rem;
  width: min(58rem, 100% - 2.5rem);
  margin: 0 auto;
  padding: 7rem 0 4rem;
}

.page-hero {
  position: relative;
}

.page-hero .eyebrow {
  margin-bottom: 1rem;
}

.page-hero h1 {
  max-width: 12ch;
}

.page-card {
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 1rem;
  background: hsl(var(--card) / 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.3);
}

.policy-content {
  padding: clamp(1.5rem, 4vw, 2rem);
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.75;
}

.policy-content h2 {
  margin: 1.75rem 0 0.5rem;
  color: hsl(var(--foreground));
  font-size: 1rem;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  margin: 0;
}

.policy-content a {
  color: hsl(var(--primary));
  font-weight: 700;
  text-decoration: none;
}

.policy-content a:hover {
  text-decoration: underline;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.5rem);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 8rem;
  padding: 1rem;
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.75rem;
  background: hsl(var(--secondary) / 0.36);
  color: hsl(var(--foreground));
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.contact-card:hover {
  border-color: hsl(var(--primary) / 0.35);
  background: hsl(var(--primary) / 0.05);
  transform: translateY(-1px);
}

.contact-card.telegram-contact .panel-icon {
  background: var(--telegram-blue-soft);
  color: var(--telegram-blue);
}

.contact-card.telegram-contact .panel-icon .icon {
  display: none;
}

.contact-card.telegram-contact .panel-icon::before {
  content: "";
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("./assets/telegram-icon.svg") center / contain no-repeat;
  mask: url("./assets/telegram-icon.svg") center / contain no-repeat;
}

.contact-card.telegram-contact:hover {
  border-color: rgb(34 158 217 / 0.45);
  background: rgb(34 158 217 / 0.08);
}

.contact-card.telegram-contact:hover .panel-icon {
  background: var(--telegram-blue);
  color: #fff;
}

.contact-card.whatsapp-contact:hover {
  border-color: rgb(37 211 102 / 0.45);
  background: rgb(37 211 102 / 0.08);
}

.contact-card.whatsapp-contact:hover .panel-icon {
  background: rgb(37 211 102 / 0.16);
  color: #25d366;
}

.contact-card strong,
.contact-card small {
  display: block;
}

.contact-card strong {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.contact-card small {
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  line-height: 1.5;
}

.compact-links {
  margin-top: 1.25rem;
}

.not-found {
  display: grid;
  place-items: center;
  align-content: center;
  width: min(35rem, 100% - 2.5rem);
  min-height: 100vh;
  margin: 0 auto;
  text-align: center;
}

.not-found h1 {
  margin: 1.75rem 0 0;
  font-size: 2.4rem;
}

.not-found p {
  color: hsl(var(--muted-foreground));
}

.not-found .submit-button {
  width: auto;
  min-width: 12rem;
  margin-top: 0.875rem;
  padding: 0 1rem;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-copy {
    padding-top: 0;
  }

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

@media (max-width: 768px) {
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--background) / 0.95);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

  .mobile-menu .pill-link {
    width: 100%;
    min-height: 2.5rem;
  }

  .hero-section {
    padding-top: 6.75rem;
  }

  .hero-grid,
  .models-card,
  .nav-inner,
  .page-shell {
    width: min(100% - 2rem, 72rem);
  }

  .hero-help.info-section {
    width: 100%;
  }

  .hero-models {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-bottom: 3rem;
  }

  .hero-grid,
  .stacked-sections {
    gap: 2rem;
  }

  .brand-grid,
  .series-grid,
  .models-grid {
    grid-template-columns: 1fr;
  }

  .brand-option {
    min-height: 5.4rem;
  }

  .result-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .result-list dd {
    text-align: left;
  }

  .support-actions {
    width: 100%;
  }

  .support-pill {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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