:root {
  --ink: #17212b;
  --muted: #637083;
  --line: #dfe6ec;
  --paper: #ffffff;
  --soft: #f3f6f8;
  --blue: #1c5f8f;
  --blue-dark: #11415f;
  --teal: #00a19a;
  --gold: #d79b2b;
  --red: #b04b52;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 230, 236, 0.84);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(28, 95, 143, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: #2d3a46;
  padding: 10px 12px;
  font-weight: 650;
  font-size: 14px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue);
}

.nav-cta {
  color: #fff !important;
  background: var(--blue);
  border-radius: 6px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #111d25;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center start;
  min-height: 650px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.hero-media::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 22, 30, 0.86), rgba(12, 22, 30, 0.45), rgba(12, 22, 30, 0.16));
}

.hero-media-a {
  background-image:
    linear-gradient(115deg, rgba(9, 23, 32, 0.36), rgba(14, 91, 110, 0.18)),
    url("home-peptide-products.jpg");
  background-position: center;
}

.hero-media-b {
  background-image:
    linear-gradient(115deg, rgba(9, 23, 32, 0.46), rgba(168, 107, 38, 0.18)),
    url("p2.png");
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(700px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 120px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #8ee4df;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.hero-content p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

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

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.button.light {
  color: var(--blue);
  background: #eaf3f7;
}

.hero-controls {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: clamp(18px, 8vw, 120px);
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 38px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-controls button.active {
  background: #fff;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  text-align: left;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.intro-band,
.news-band {
  background: var(--soft);
}

.metrics-band {
  padding-top: 28px;
  padding-bottom: 28px;
  background: #12212d;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.metric-strip span {
  min-height: 112px;
  padding: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.metric-strip strong,
.metric-strip small {
  display: block;
}

.metric-strip strong {
  font-size: 30px;
  line-height: 1.1;
}

.metric-strip small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.category-grid,
.product-grid,
.news-grid,
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.category-card,
.product-card,
.news-card,
.principles article,
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 33, 43, 0.06);
}

.category-card {
  padding: 24px;
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 6px;
  background: #edf4f6;
}

.category-card p,
.product-card p,
.principles p,
.contact-card p,
.legal p,
.story-grid p {
  color: var(--muted);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  background: #edf4f6;
}

.product-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  color: var(--blue-dark);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  background: #e5f4f3;
  border-radius: 999px;
}

.product-card h3 {
  margin-bottom: 8px;
}

.product-card .price {
  margin-top: auto;
  color: var(--ink);
  font-weight: 900;
}

.doc-line {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.product-card button,
.product-card .button {
  width: 100%;
}

.process-band {
  background: #f7fafb;
}

.process-grid,
.contact-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.process-grid article,
.contact-lanes article {
  min-height: 210px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 33, 43, 0.06);
}

.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 900;
  background: var(--blue);
  border-radius: 6px;
}

.process-grid p,
.contact-lanes p,
.faq-list p,
.timeline span,
.catalog-intro p {
  color: var(--muted);
}

.feature-table {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 33, 43, 0.06);
}

.feature-table div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.feature-table div:last-child {
  border-bottom: 0;
}

.feature-table strong {
  color: var(--blue-dark);
}

.catalog-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.catalog-intro > div {
  max-width: 760px;
}

.result-count {
  max-width: 1180px;
  margin: -10px auto 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.soft {
  background: #eef4f5;
}

.about-preview,
.story-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 44px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
}

.about-preview p {
  color: var(--muted);
}

.value-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.tabs button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.stats span {
  min-height: 96px;
  padding: 14px 10px;
  background: var(--soft);
  border-radius: 6px;
}

.stats strong,
.stats small {
  display: block;
  text-align: center;
}

.stats strong {
  color: var(--blue);
  font-size: 26px;
}

.stats small {
  color: var(--muted);
  font-size: 12px;
}

.news-card {
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.news-card div {
  padding: 18px;
}

.news-card p,
.date {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.news-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
}

.page-hero {
  position: relative;
  min-height: 360px;
  padding: 110px clamp(18px, 8vw, 120px) 80px;
  overflow: hidden;
  color: #fff;
  background-color: #132431;
  background-position: center;
  background-size: cover;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.article-hero {
  min-height: 280px;
  padding-top: 76px;
  padding-bottom: 58px;
}

.article-hero h1,
.article-hero p {
  max-width: 880px;
}

.article-hero h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.peptide-page {
  background-image: url("p2.png");
}

.capsule-page {
  background-image: url("p2.png");
}

.about-page {
  background-image: url("p2.png");
}

.news-page {
  background-image: url("p2.png");
}

.support-page,
.policy-page {
  background-image: url("p2.png");
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto 26px;
}

.toolbar label,
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.toolbar input,
.toolbar select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}

.toolbar label:first-child {
  flex: 1 1 300px;
}

.toolbar label:not(:first-child) {
  flex: 0 1 240px;
}

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

.story-grid img {
  width: 100%;
  border-radius: 8px;
  background: #edf4f6;
  box-shadow: var(--shadow);
}

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

.principles article {
  padding: 22px;
}

.article-list {
  max-width: 980px;
  margin: 0 auto;
}

.article-list article {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.article-list img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #edf4f6;
}

.article-list h2 a:hover {
  color: var(--blue);
}

.article-detail {
  max-width: 780px;
  margin: 0 auto;
  padding-top: 46px;
}

.article-detail img {
  width: min(560px, 100%);
  max-height: 300px;
  object-fit: cover;
  margin: 0 auto 28px;
  border-radius: 8px;
  background: #edf4f6;
  box-shadow: var(--shadow);
}

.article-detail p,
.article-detail li {
  color: var(--muted);
  font-size: 17px;
}

.article-detail h2 {
  margin-top: 32px;
  font-size: 30px;
}

.article-detail ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.contact-layout {
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form .full,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-card {
  padding: 26px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list details {
  padding: 18px 20px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.contact-lanes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-lanes a {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 850;
}

.timeline {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  max-width: 1080px;
  margin: 0 auto;
}

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

.timeline li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal {
  max-width: 860px;
  margin: 0 auto;
}

.legal h2 {
  margin-top: 28px;
  font-size: 26px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) repeat(3, minmax(130px, 1fr));
  gap: 32px;
  padding: 48px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #12212d;
}

.footer h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 16px;
}

.footer a {
  display: block;
  margin: 8px 0;
}

.footer .brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer .brand small {
  color: rgba(255, 255, 255, 0.72);
}

.footer.compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 24px;
}

.footer.compact p,
.footer.compact a {
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(12, 22, 30, 0.62);
}

.modal.open {
  display: grid;
}

.modal-panel {
  width: min(560px, 100%);
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-panel header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.modal-panel button.close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.modal-panel dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 14px;
  margin: 0;
}

.modal-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.modal-panel dd {
  margin: 0;
}

@media (max-width: 1020px) {
  .catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .principles,
  .process-grid,
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 72px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px;
  }

  .hero,
  .hero-slide {
    min-height: 620px;
  }

  .hero-content {
    margin-left: 18px;
  }

  .category-grid,
  .product-grid,
  .news-grid,
  .about-preview,
  .story-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }

  .catalog-intro,
  .timeline {
    grid-template-columns: 1fr;
  }

  .catalog-intro {
    display: grid;
    align-items: start;
  }

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

  .article-list article {
    grid-template-columns: 1fr;
  }

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

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

  .feature-table div,
  .timeline li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .category-grid,
  .product-grid,
  .catalog,
  .principles,
  .stats,
  .metric-strip,
  .contact-form,
  .footer {
    grid-template-columns: 1fr;
  }

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

  .modal-panel dl {
    grid-template-columns: 1fr;
  }
}
