:root {
  --bg: #ffffff;
  --soft: #f5f8fc;
  --soft-blue: #eef6ff;
  --text: #0f1f38;
  --muted: #5e6b7e;
  --line: #dbe4f0;
  --blue: #0969e8;
  --blue-dark: #0757c2;
  --green: #16a34a;
  --green-dark: #11823c;
  --orange: #ff6b16;
  --orange-dark: #e55405;
  --shadow: 0 18px 45px rgba(15, 31, 56, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-main {
  display: grid;
  grid-template-columns: 250px minmax(240px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0 14px;
}

.logo img {
  display: block;
  width: 220px;
  height: auto;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.search span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.header-actions a {
  text-decoration: none;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.cart-button span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  padding: 0 0 12px;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:first-child {
  color: var(--blue);
}

.hero {
  padding: 70px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 60px;
  align-items: start;
}

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

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

h1 {
  max-width: 720px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.16;
}

h3 {
  font-size: 23px;
  line-height: 1.2;
}

.lead {
  max-width: 640px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.buy-button,
.checkout-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.button.primary,
.checkout-button {
  background: var(--blue);
  color: #fff;
}

.button.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.trust-list {
  display: grid;
  gap: 18px;
}

.trust-item {
  padding: 0 0 0 22px;
  border-left: 4px solid var(--blue);
}

.trust-item strong {
  display: block;
  font-size: 18px;
}

.trust-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.section {
  padding: 58px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head > p {
  max-width: 520px;
  color: var(--muted);
}

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

.product-card {
  display: flex;
  min-height: 640px;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 31, 56, 0.04);
}

.product-card.is-hidden {
  display: none;
}

.product-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.product-icon.orange {
  background: var(--orange);
}

.product-icon.blue {
  background: var(--blue);
}

.product-icon.green {
  background: var(--green);
}

.product-card h3 {
  margin-top: 28px;
}

.product-subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.variant-group {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.variant-group p {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.variant {
  min-height: 38px;
  margin: 0 7px 8px 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.variant.is-active {
  border-color: var(--blue);
  background: var(--soft-blue);
  color: var(--blue);
}

.variant.is-disabled,
.variant:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.stock {
  margin-top: 18px;
  color: var(--green);
  font-weight: 900;
}

.product-footer {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.price {
  font-size: 30px;
  line-height: 1;
}

.buy-button {
  width: 100%;
  color: #fff;
}

.buy-button.orange {
  background: var(--orange);
}

.buy-button.orange:hover {
  background: var(--orange-dark);
}

.buy-button.blue {
  background: var(--blue);
}

.buy-button.blue:hover {
  background: var(--blue-dark);
}

.buy-button.green {
  background: var(--green);
}

.buy-button.green:hover {
  background: var(--green-dark);
}

.instruction-link {
  margin-top: 16px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.benefits {
  padding: 30px 0;
  background: linear-gradient(180deg, #fff 0%, #eef6ff 100%);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.benefit-grid div {
  padding: 18px 0;
}

.benefit-grid strong {
  display: block;
  font-size: 17px;
}

.benefit-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.steps h2 {
  text-align: center;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
  margin-top: 38px;
}

.step span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 950;
}

.step strong {
  display: block;
  font-size: 17px;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

.instructions {
  background: var(--soft);
}

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

.article-card {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-card span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.article-card h3 {
  font-size: 21px;
}

.article-card p {
  margin-top: 12px;
  color: var(--muted);
}

.article-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

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

.guide-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-grid h2 {
  font-size: 26px;
}

.guide-grid ol {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.guide-grid li + li {
  margin-top: 10px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

details p {
  padding: 0 20px 20px;
  color: var(--muted);
}

.footer {
  padding: 48px 0 22px;
  background: #f8fbff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.footer-logo {
  width: 190px;
  height: auto;
}

.footer p {
  max-width: 280px;
  margin-top: 12px;
  color: var(--muted);
}

.footer h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.footer a {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  text-decoration: none;
}

.disclaimer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.cart-drawer {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  justify-content: end;
  background: rgba(15, 31, 56, 0.28);
}

.cart-drawer.is-open {
  display: flex;
}

.cart-panel {
  width: min(430px, 100%);
  height: 100%;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cart-head button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 900;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item span {
  color: var(--muted);
}

.cart-item-side {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.cart-item-side button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 900;
}

.empty-cart,
.cart-note {
  color: var(--muted);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.checkout-button {
  width: 100%;
  margin-top: 18px;
}

.cart-note {
  margin-top: 14px;
  font-size: 14px;
}

.checkout-modal {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(15, 31, 56, 0.44);
}

.checkout-modal.is-open {
  display: grid;
}

.checkout-form {
  width: min(460px, 100%);
  padding: 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.checkout-form h2 {
  font-size: 28px;
}

.checkout-form p {
  margin-top: 10px;
  color: var(--muted);
}

.checkout-form label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 800;
}

.checkout-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
}

.modal-close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 900;
}

.checkout-result {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 980px) {
  .header-main,
  .hero-grid,
  .products,
  .benefit-grid,
  .step-grid,
  .article-grid,
  .guide-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-head,
  .disclaimer {
    display: block;
  }

  .section-head > p,
  .disclaimer span + span {
    display: block;
    margin-top: 12px;
  }

  .product-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    position: static;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: 38px;
  }

  .product-card,
  .article-card,
  .guide-grid article {
    padding: 22px;
  }

  .nav {
    gap: 18px;
  }
}
