html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  min-width: 320px;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a,
button,
input {
  outline-offset: 5px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
}
[hidden] {
  display: none !important;
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(28px);
}
.header-inner {
  height: 80px;
  max-width: 1280px;
  margin: auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}
.brand-art {
  display: block;
  position: relative;
  width: 167px;
  height: 55px;
}
.brand-art img {
  position: absolute;
  width: 190px;
  max-width: none;
  left: -7px;
  top: -3px;
}
.brand-art .brand-light {
  display: none;
  filter: brightness(0) invert(1);
  clip-path: inset(0 0 0 27%);
}
.dark .brand-light {
  display: block;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(125, 145, 180, 0.055);
  padding: 6px;
  backdrop-filter: blur(24px);
}
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
}
.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--surface);
  color: var(--text);
}
.desktop-nav a.active {
  box-shadow: 0 2px 5px #0000000d;
}
.desktop-nav img {
  width: 17px;
  height: 17px;
}
.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 50%;
  background: var(--surface);
}
.mobile-menu-button span {
  height: 2px;
  width: 18px;
  background: var(--text);
  border-radius: 2px;
}
.mobile-menu {
  padding: 8px 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu a,
.mobile-menu button {
  display: block;
  padding: 12px 16px;
  width: 100%;
  text-align: left;
  border-radius: 12px;
  color: var(--text);
}
.mobile-menu a:hover,
.mobile-menu button:hover {
  background: var(--surface);
}
.purchase-card {
  min-height: 560px;
  padding: 32px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px #0003;
  transition: background 0.3s;
}
.product-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  background: var(--surface-soft);
  border-radius: 999px;
  margin-bottom: 28px;
}
.product-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tab-text);
  transition:
    background 0.25s,
    transform 0.2s;
}
.product-tab img {
  width: 20px;
  height: 20px;
}
.product-tab.selected {
  background: #0a0a0a;
  color: #fff;
}
.product-tab:hover {
  transform: scale(1.02);
}
.product-tab:active {
  transform: scale(0.98);
}
#form-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.025em;
}
#form-description {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 20px;
}
#purchase-form {
  margin-top: 24px;
}
.form-field {
  margin-bottom: 20px;
}
.form-field label,
.form-field legend {
  display: block;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}
.field-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 0.5px solid var(--input-border);
  background: var(--input);
  border-radius: 999px;
  transition:
    border 0.2s,
    box-shadow 0.2s;
}
.field-pill:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #1da1f21a;
}
.field-pill img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.field-pill input {
  width: 100%;
  min-width: 0;
  outline: none;
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
  background: transparent;
}
.field-pill input::placeholder {
  color: var(--placeholder);
}
.field-pill input[type='number'] {
  appearance: textfield;
}
.field-pill input::-webkit-inner-spin-button,
.field-pill input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field-pill.invalid {
  border-color: #f87171;
}
.field-error {
  font-size: 12px;
  line-height: 18px;
  margin-top: 6px;
  color: #f87171;
}
.field-error:empty {
  display: none;
}
.buy-button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  box-shadow: 0 8px 18px #1da1f222;
  transition:
    background 0.2s,
    transform 0.2s;
}
.buy-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.buy-button:active {
  transform: scale(0.99);
}
#purchase-form > .buy-button {
  margin-top: 28px;
}
.purchase-note {
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  margin-top: 20px;
  color: var(--muted);
}
.duration-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 6px;
}
.duration-tabs button {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tab-text);
  transition: background 0.2s;
}
.duration-tabs button.selected {
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  color: white;
}
.duration-tabs button span {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}
.interactive:hover {
  filter: brightness(1.08);
}
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 30px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 28px 0 32px;
}
.footer-brand p {
  max-width: 320px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  margin-top: 12px;
}
.footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-links a:hover,
.footer-links button:hover,
.footer-bottom button:hover,
.footer-bottom a:hover {
  color: var(--text);
}
.footer-preferences {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.preference-toggle {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 12px;
  color: var(--muted);
}
.preference-toggle span {
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.preference-toggle .selected {
  background: var(--surface);
  color: var(--text);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.footer-bottom > div {
  display: flex;
  gap: 24px;
}
.info-page {
  max-width: 1024px;
  min-height: 66vh;
  margin: auto;
  padding: 120px 32px 40px;
}
.back-link {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.info-page h1 {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.info-page .page-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
}
.step-number {
  width: 42px;
  height: 42px;
  background: #1da1f226;
  color: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 24px;
}
.step h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.page-note {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--surface-soft);
  border-radius: 16px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  background: var(--surface);
  border-radius: 16px;
  padding: 22px 24px;
}
.faq-list summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary:after {
  content: '+';
  color: var(--primary);
  font-size: 24px;
  line-height: 24px;
}
.faq-list details[open] summary:after {
  content: '−';
}
.faq-list details p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.return-to-form {
  max-width: 250px;
  margin-top: 30px;
}
#site-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 90px #0007;
}
#site-dialog::backdrop {
  background: #050910b3;
  backdrop-filter: blur(8px);
}
.dialog-inner {
  position: relative;
  padding: 32px;
}
.dialog-close {
  position: absolute;
  right: 17px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 26px;
  line-height: 30px;
}
.dialog-close:hover {
  background: var(--surface-soft);
}
.dialog-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--surface-soft);
  margin-bottom: 22px;
}
.dialog-icon img {
  width: 38px;
  height: 38px;
}
#dialog-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
#dialog-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 16px 0 24px;
}
.order-summary {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 18px;
  background: var(--surface-soft);
  border-radius: 16px;
}
.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.order-summary dd {
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
  text-align: right;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  transform: translateY(-160%);
  z-index: 100;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
}
.skip-link:focus {
  transform: none;
}
@media (min-width: 1280px) {
  .footer-preferences {
    flex-wrap: nowrap;
  }
}
@media (max-width: 1000px) {
  .header-inner {
    padding: 0 20px;
  }
  .desktop-nav {
    gap: 2px;
  }
  .desktop-nav a {
    padding: 0 12px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-preferences {
    grid-column: 2;
    justify-content: center;
  }
  .footer-brand {
    grid-row: span 2;
  }
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 767px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }
  .brand-art {
    width: 144px;
    height: 46px;
  }
  .brand-art img {
    width: 165px;
    left: -6px;
    top: -3px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu-button {
    display: flex;
  }
  .footer-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .footer-preferences {
    justify-content: flex-start;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .info-page {
    padding: 100px 16px 24px;
  }
  .info-page h1 {
    font-size: 32px;
  }
  .site-footer {
    padding: 4px 16px 28px;
  }
}
@media (max-width: 639px) {
  .purchase-card {
    padding: 16px;
    min-height: 510px;
  }
  .product-tabs {
    padding: 6px;
    gap: 4px;
  }
  .product-tab {
    padding: 10px 16px;
    min-height: 44px;
  }
  .product-tab img {
    width: 16px;
    height: 16px;
  }
  .duration-tabs {
    padding: 4px;
  }
  #buy {
    gap: 24px;
  }
  #buy > div:nth-child(2) {
    min-height: 330px;
  }
  .dialog-inner {
    padding: 28px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.support-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.support-link:hover {
  color: var(--primary-hover);
}

.checkout-page {
  width: 100%;
  max-width: 640px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 120px 24px 48px;
}
.checkout-card {
  min-height: 0;
}
.checkout-card h1 {
  font-size: 30px;
  line-height: 1.25;
}
.checkout-message,
.checkout-status {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.checkout-payments {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.checkout-payments:empty {
  display: none;
}
.checkout-payments .buy-button {
  text-align: center;
  text-decoration: none;
}
.checkout-status {
  margin-bottom: 24px;
}
.checkout-status[data-status='delivered'] {
  color: #4ade80;
}
.checkout-status[data-status='failed'],
.checkout-status[data-status='expired'] {
  color: #f87171;
}
@media (max-width: 639px) {
  .checkout-page {
    padding: 100px 16px 24px;
  }
  .checkout-card {
    min-height: 0;
  }
}
