:root {
  color: #202124;
  background: #f6f7f9;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --brand: #0f6b5b;
  --brand-dark: #09483e;
  --accent: #ff7a1a;
  --ink: #202124;
  --muted: #5f6673;
  --line: rgba(24, 32, 44, 0.1);
  --surface: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

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

button,
input,
select {
  font: inherit;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px clamp(18px, 5vw, 72px);
  color: #eaf8f5;
  background: #09483e;
  font-size: 13px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav,
.trust-row,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-size: 22px;
  text-transform: uppercase;
}

.site-header nav {
  gap: 24px;
  color: #424a57;
  font-size: 15px;
  font-weight: 700;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #424a57;
  font-weight: 800;
}

.header-cta,
.primary-btn,
.secondary-btn,
.product-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.primary-btn,
.product-body a {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(15, 107, 91, 0.2);
}

.secondary-btn {
  color: var(--brand);
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 106px);
  padding: clamp(52px, 7vw, 96px) clamp(20px, 6vw, 84px);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 26, 0.16), transparent 32%),
    linear-gradient(135deg, #f4fbf8 0%, #eef8f5 52%, #ffffff 100%);
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

h3 {
  color: #16243a;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

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

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 9px 12px;
  color: #29443d;
  background: #fff;
  border: 1px solid rgba(15, 107, 91, 0.14);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(22, 36, 58, 0.14);
}

.hero-visual img {
  display: block;
  width: 100%;
  min-height: 440px;
  object-fit: cover;
}

.section,
.split-section,
.about-section,
.legal-section {
  padding: 76px clamp(20px, 6vw, 84px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: center;
  margin: 0 0 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(22, 36, 58, 0.08);
}

.product-showcase img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.product-showcase figcaption {
  display: grid;
  gap: 10px;
  padding: 28px 28px 28px 0;
}

.product-showcase strong {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.product-showcase span {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -12px 0 28px;
}

.category-strip span {
  padding: 10px 13px;
  color: #314942;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(22, 36, 58, 0.06);
}

.section-head p,
.order-copy p,
.about-section p,
.legal-section p,
.policy-grid p,
.product-body p {
  color: #526070;
  line-height: 1.8;
}

.store-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 34px clamp(20px, 6vw, 84px);
  background: #fff;
  border-block: 1px solid var(--line);
}

.store-band article {
  display: grid;
  gap: 7px;
  padding: 22px;
  background: #f7faf8;
  border: 1px solid rgba(15, 107, 91, 0.12);
  border-radius: 8px;
}

.store-band strong {
  color: var(--brand-dark);
  font-size: 18px;
}

.store-band span {
  color: var(--muted);
  line-height: 1.7;
}

.product-grid,
.policy-grid,
.legal-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card,
.policy-grid article,
.legal-section article,
.order-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(22, 36, 58, 0.08);
}

.product-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(22, 36, 58, 0.13);
}

.product-art {
  height: 190px;
  background-image: url("./assets/electronics-accessories.jpg");
  background-repeat: no-repeat;
  background-size: 170%;
}

.product-art.earbuds {
  background-position: 38% 12%;
}

.product-art.wired {
  background-position: 96% 25%;
}

.product-art.cable {
  background-position: 6% 72%;
}

.product-art.phone {
  background-position: 63% 68%;
}

.product-body {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 9px;
  color: #9b4a00;
  background: #fff1e7;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.product-body strong {
  display: block;
  margin: 18px 0;
  color: var(--ink);
  font-size: 24px;
}

.stock-line {
  margin: -8px 0 14px;
  color: #6a7688;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.product-body a {
  width: 100%;
  margin-top: 10px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  background: #fff;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #34465f;
  font-weight: 800;
}

.steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 13px;
}

.order-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.order-form h3 {
  margin-bottom: 2px;
  font-size: 26px;
}

label {
  display: grid;
  gap: 7px;
  color: #34465f;
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: #172033;
  background: #f8fbff;
  border: 1px solid rgba(25, 42, 70, 0.16);
  border-radius: 8px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 91, 0.12);
}

.form-note {
  margin: 0;
  color: #526070;
  font-size: 14px;
  line-height: 1.7;
}

.policy-section {
  background: #f5f7fb;
}

.policy-grid article,
.legal-section article {
  padding: 24px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1.4fr);
  gap: 40px;
  color: #fff;
  background: #152947;
}

.about-section h2,
.about-section p,
.about-section .eyebrow {
  color: #fff;
}

.about-section p {
  margin: 0;
  font-size: 17px;
}

.legal-section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
}

.license-section {
  background: #f8fbff;
}

.license-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 24px;
  align-items: stretch;
}

.company-card,
.scope-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(22, 36, 58, 0.08);
}

.company-card dl {
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
}

.company-card dl div {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(25, 42, 70, 0.09);
}

.company-card dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.company-card dt {
  color: #6a7688;
  font-size: 13px;
  font-weight: 800;
}

.company-card dd {
  margin: 0;
  color: #172033;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.scope-card p {
  color: #526070;
  line-height: 1.85;
}

.scope-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  position: relative;
  padding-left: 24px;
  color: #34465f;
  font-weight: 800;
  line-height: 1.65;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  background: var(--brand);
  border-radius: 50%;
}

.checkout-hero {
  padding: 70px clamp(20px, 6vw, 84px) 34px;
  background:
    radial-gradient(circle at top right, rgba(36, 107, 254, 0.14), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 58%, #ffffff 100%);
}

.checkout-hero h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 68px);
}

.checkout-hero p {
  max-width: 740px;
  color: #526070;
  font-size: 18px;
  line-height: 1.8;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: start;
  padding: 34px clamp(20px, 6vw, 84px) 76px;
  background: #f5f7fb;
}

.checkout-form h2,
.confirm-card h2,
.payment-card h2,
.summary-card h2,
.policy-panel h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

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

.summary-card,
.confirm-card,
.payment-card,
.policy-panel {
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(25, 42, 70, 0.1);
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(22, 36, 58, 0.08);
}

.summary-card img {
  display: block;
  width: 100%;
  height: 210px;
  margin-bottom: 22px;
  object-fit: cover;
  border-radius: 8px;
}

.summary-card dl,
.confirm-card dl {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
}

.summary-card dl div,
.confirm-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(25, 42, 70, 0.1);
}

.summary-card dt,
.confirm-card dt {
  color: #6a7688;
  font-weight: 800;
}

.summary-card dd,
.confirm-card dd {
  margin: 0;
  color: #172033;
  font-weight: 900;
  text-align: right;
}

.summary-card p,
.policy-panel p {
  margin: 0;
  color: #526070;
  line-height: 1.8;
}

.checkout-policy {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(25, 42, 70, 0.1);
}

.checkout-policy h3 {
  margin-bottom: 12px;
}

.checkout-policy ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: #526070;
  line-height: 1.65;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.payment-card {
  display: grid;
  gap: 16px;
}

.payment-options {
  display: grid;
  gap: 12px;
}

.payment-option {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid rgba(25, 42, 70, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.payment-option input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.payment-option span {
  display: grid;
  gap: 4px;
}

.payment-option strong {
  color: #172033;
}

.payment-option em {
  color: #526070;
  font-style: normal;
  line-height: 1.6;
}

.paypal-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid rgba(25, 42, 70, 0.12);
  border-radius: 8px;
}

.paypal-panel[hidden] {
  display: none;
}

.paypal-copy {
  display: grid;
  gap: 5px;
}

.paypal-copy strong {
  color: #172033;
  font-size: 18px;
}

.paypal-copy span {
  color: #526070;
  line-height: 1.65;
}

#paypal-button-container {
  min-height: 48px;
}

.policy-hero {
  min-height: auto;
}

.policy-document {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 38px clamp(20px, 6vw, 84px) 82px;
}

.policy-document article {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(22, 36, 58, 0.06);
}

.policy-document p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.85;
}

.product-detail-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 26, 0.16), transparent 36%),
    linear-gradient(135deg, #f4fbf8 0%, #eef8f5 58%, #ffffff 100%);
}

.product-detail-layout {
  display: grid;
  gap: 28px;
  padding: 34px clamp(20px, 6vw, 84px) 76px;
  background: #f5f7fb;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(22, 36, 58, 0.08);
}

.detail-main img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
}

.detail-price {
  margin: 18px 0;
  color: var(--brand-dark);
  font-size: 34px;
  font-weight: 900;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
}

.detail-list div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(25, 42, 70, 0.1);
}

.detail-list dt {
  color: #6a7688;
  font-weight: 900;
}

.detail-list dd {
  margin: 0;
  color: #172033;
  line-height: 1.6;
}

.detail-grid,
.detail-policy-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.detail-card,
.detail-policy-panel article {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(22, 36, 58, 0.07);
}

.detail-card p,
.detail-policy-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.detail-card strong {
  color: var(--brand-dark);
  font-size: 25px;
}

.detail-card span {
  color: #526070;
  font-weight: 800;
}

.detail-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 8px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 900;
}

.result-page {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-height: calc(100vh - 170px);
  padding: 88px clamp(20px, 6vw, 84px);
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(15, 107, 91, 0.12), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #eef8f5 58%, #ffffff 100%);
}

.result-page h1 {
  margin-bottom: 2px;
  font-size: clamp(40px, 6vw, 66px);
}

.result-page p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.result-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 44px;
  font-weight: 900;
}

.result-page.failed .result-mark {
  background: #d9482f;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 84px);
  color: #d9e2ef;
  background: #0b1714;
  font-size: 14px;
}

.inline-shop-link {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split-section,
  .about-section,
  .license-layout,
  .checkout-layout,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .policy-grid,
  .store-band,
  .detail-grid,
  .detail-policy-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-showcase {
    grid-template-columns: 1fr;
  }

  .product-showcase figcaption {
    padding: 0 24px 24px;
  }

  .legal-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 16px;
  }

  .top-strip {
    flex-direction: column;
    padding-inline: 16px;
  }

  .brand span {
    font-size: 16px;
  }

  .header-tools,
  .header-cta {
    width: 100%;
  }

  .header-tools {
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-visual img {
    min-height: 280px;
  }

  .product-grid,
  .policy-grid,
  .store-band,
  .detail-grid,
  .detail-policy-panel {
    grid-template-columns: 1fr;
  }

  .product-showcase img {
    height: 260px;
  }

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

  .summary-card dl div,
  .confirm-card dl div {
    display: grid;
    gap: 4px;
  }

  .summary-card dd,
  .confirm-card dd {
    text-align: left;
  }

  .detail-main {
    padding: 18px;
  }

  .detail-main img {
    min-height: 240px;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .site-footer {
    flex-direction: column;
  }
}
