:root {
  --bg: #fafafa;
  --text: #121212;
  --muted: #666;
  --line: #e7e7e7;
  --accent: #111;
  --sale: #d92525;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.site-name-bar {
  background: #0b1220;
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 16px;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.topbar {
  background: #111;
  color: #fff;
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  padding: 28px 0 56px;
}

.main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
  background: #fff;
  padding: 14px;
}

.thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: 0.88;
  transition: 0.2s ease;
}

.thumb:hover,
.thumb.active {
  opacity: 1;
  border-color: #111;
}

.brand {
  margin: 8px 0 4px;
  font-size: 16px;
  color: #1f2937;
  font-weight: 700;
}

h1 {
  margin: 0 0 8px;
  line-height: 1.25;
  font-size: 46px;
  max-width: 660px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 28px;
  order: 2;
}

.price-now {
  font-size: 52px;
  font-weight: 700;
  order: 1;
}

.badge-sale {
  background: #ffecec;
  color: #e04848;
  border: 1px solid #ffc6c6;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  order: 3;
}

.option-block {
  margin-bottom: 18px;
}

.label {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 600;
}

.qty-wrap {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  border: none;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

#qtyInput {
  width: 56px;
  border: none;
  text-align: center;
  font-size: 16px;
  background: #fff;
}

.qty-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.buy-btn {
  margin-top: 8px;
  width: 100%;
  border-radius: 12px;
  padding: 15px 16px;
  font-size: 29px;
  font-weight: 600;
  cursor: pointer;
}

.cart-btn {
  margin-top: 6px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 16px;
  background: #1f5eff;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
}

.material-symbols-outlined {
  font-size: 19px;
  vertical-align: middle;
}

.buy-secondary {
  background: #fff;
  color: #1f5eff;
  border: 2px solid #1f5eff;
}

.buy-btn:hover,
.cart-btn:hover {
  opacity: 0.94;
}

.info-title {
  margin: 22px 0 8px;
  font-size: 22px;
}

.product-intro {
  margin: 0 0 14px;
  color: #303030;
  line-height: 1.55;
  font-size: 24px;
}

.feature-list {
  margin: 20px 0 0;
  padding-left: 20px;
  color: #222;
  line-height: 1.55;
}

.feature-list li + li {
  margin-top: 8px;
}

.meta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 2px;
}

.tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.tag-blue {
  color: #1d4ed8;
}

.tag-green {
  color: #16a34a;
}

.sku {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 15px;
}

.rating {
  margin: 0 0 10px;
  color: #f3b801;
  font-size: 22px;
}

.rating span {
  color: #374151;
  font-size: 21px;
  margin-left: 8px;
  font-weight: 600;
}

.service-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 12px 0;
  color: #4b5563;
  font-size: 18px;
}

.service-row .material-symbols-outlined {
  font-size: 18px;
  margin-right: 6px;
  color: #1f5eff;
}

.check-list {
  margin: 14px 0 0;
  padding-left: 0;
  list-style: none;
}

.check-list li {
  margin-bottom: 8px;
  color: #374151;
  font-size: 20px;
}

.check-list li::before {
  content: "✓";
  color: #22c55e;
  margin-right: 8px;
}

.section-light {
  background: #f4f6fa;
  padding: 56px 0;
}

.section-white {
  background: #fff;
  padding: 56px 0;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: 44px;
  line-height: 1.15;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 10px auto 26px;
  max-width: 820px;
}

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

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}

.info-card .icon {
  margin: 0 0 8px;
}

.icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eff4ff;
  display: inline-grid;
  place-items: center;
}

.icon-badge .material-symbols-outlined {
  color: #1f5eff;
  font-size: 18px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.info-card p {
  margin: 0;
  color: #4d4d4d;
  line-height: 1.45;
}

.rating-line {
  font-weight: 600;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-head span {
  color: #f3b801;
  letter-spacing: 0.04em;
}

.review-card p {
  margin: 0;
  color: #393939;
  line-height: 1.5;
}

.faq-container {
  max-width: 920px;
}

.faq-list {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: none;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 18px;
  color: #666;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: #4c4c4c;
  line-height: 1.5;
}

.specs-container {
  max-width: 980px;
}

.specs-table {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid #edf0f4;
  font-size: 15px;
}

.spec-row:nth-child(odd) {
  background: #f7f9fc;
}

.spec-row:first-child {
  border-top: none;
}

.spec-row span {
  color: #4b5563;
}

.spec-row strong {
  color: #111827;
}

.how-section .section-subtitle {
  margin-bottom: 32px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-item {
  text-align: center;
}

.step-num {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #1f5eff;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.step-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.step-item p {
  margin: 0;
  color: #5b6470;
  line-height: 1.45;
  font-size: 15px;
}

.cta-section {
  background: #1f5eff;
  color: #fff;
  padding: 58px 0;
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 10px;
  font-size: 44px;
}

.cta-inner p {
  margin: 0 auto 20px;
  max-width: 720px;
  color: #dbe6ff;
  font-size: 18px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cta-btn {
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-primary {
  background: #fff;
  color: #1f5eff;
  border: none;
}

.cta-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.cta-inner small {
  color: #d7e3ff;
  font-size: 13px;
}

.footer {
  background: #08132f;
  color: #d8e0f4;
  padding-top: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 18px;
}

.footer-logo {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-text {
  margin: 0;
  color: #9fb0d8;
  line-height: 1.5;
}

.footer-title {
  margin: 0 0 10px;
  font-weight: 700;
  color: #fff;
}

.footer-grid a,
.footer-contact {
  display: block;
  color: #9fb0d8;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-contact .material-symbols-outlined {
  font-size: 16px;
  margin-right: 6px;
  color: #cad7f5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 20px;
  color: #9fb0d8;
  font-size: 13px;
}

@media (max-width: 980px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  h1 {
    font-size: 34px;
  }

  .price-now {
    font-size: 40px;
  }

  .price-old {
    font-size: 24px;
  }

  .product-intro,
  .rating span,
  .service-row,
  .check-list li,
  .cart-btn,
  .buy-btn {
    font-size: 18px;
  }

  .section-title {
    font-size: 34px;
  }

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

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

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

  .cta-inner h2 {
    font-size: 34px;
  }

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

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0;
  }

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

  .service-row {
    flex-direction: column;
  }

  .steps-grid,
  .footer-grid,
  .cta-buttons,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }
}
