/* Dezopharm landing — design tokens */
:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --media: #eef3f2;
  --ink: #14181a;
  --muted: rgba(20, 24, 26, .55);
  --hairline: rgba(20, 24, 26, .08);
  --teal: #0c7166;
  --teal-hover: #0a5d54;
  --teal-bright: #0f8b80;
  --teal-btn: #0d7c71;
  --teal-btn-hover: #0a675e;
  --panel: #10312c;
  --panel-eyebrow: #6fd4c8;
  --panel-text: rgba(255, 255, 255, .68);
  --panel-line: rgba(255, 255, 255, .12);
  --panel-tile: rgba(255, 255, 255, .06);
  --panel-tile-hover: rgba(255, 255, 255, .12);
  --wa: #25d366;
  --wa-hover: #1fc25a;
  --wa-ink: #0b3524;
  --wa-solid: #17a091;
  --wa-solid-hover: #128577;
  --kaspi: #d32f2f;
  --kaspi-hover: #b52626;
  --card-shadow: 0 1px 2px rgba(20, 24, 26, .05);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 32px);
  /* sticky header height + breathing room, per wrap breakpoint */
  --scroll-offset: 88px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 799px) { :root { --scroll-offset: 115px; } }
@media (max-width: 479px) { :root { --scroll-offset: 145px; } }
@media (max-width: 359px) { :root { --scroll-offset: 169px; } }

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

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-title {
  margin: 0 0 32px;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 248, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 12px;
}

.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__dot { color: var(--teal-bright); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 500;
}
.nav a { color: var(--ink); }
.nav a:hover { color: var(--teal); }

.header-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  padding: 13px 26px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn--sm { padding: 9px 18px; font-size: 14px; }

.btn--primary { background: var(--teal-btn); color: #fff; }
.btn--primary:hover { background: var(--teal-btn-hover); color: #fff; }

.btn--ghost {
  border: 1.5px solid rgba(20, 24, 26, .18);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--teal-btn); color: var(--teal); }

.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: var(--wa-hover); color: var(--wa-ink); }

.btn--kaspi { background: var(--kaspi); color: #fff; }
.btn--kaspi:hover { background: var(--kaspi-hover); color: #fff; }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(40px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero__eyebrow { margin-bottom: 18px; }

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}

.hero__lede {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
}
.stat__value {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--teal-bright);
  letter-spacing: -0.02em;
}
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.hero__frame {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--card-shadow);
}
.hero__media {
  background: var(--media);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hero__media picture { display: block; }
.hero__media img {
  width: 100%;
  height: clamp(280px, 32vw, 440px);
  object-fit: cover;
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(32px, 5vw, 64px);
  scroll-margin-top: var(--scroll-offset);
}

/* ---------- catalog ---------- */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 14px;
}

.cat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--card-shadow);
}
.cat-card__media {
  background: var(--media);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cat-card__media img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}
.cat-card__body { padding: 0 4px 4px; }
.cat-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.cat-card__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}
.cat-card__count {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  flex-shrink: 0;
}
.cat-card__note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- dark panel (solutions + contacts) ---------- */

.panel {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.panel--centered { align-items: center; }

.panel .eyebrow { color: var(--panel-eyebrow); }

.panel h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}
.panel p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--panel-text);
  max-width: 48ch;
  text-wrap: pretty;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
}
.chip {
  padding: 11px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.about h2 { margin-bottom: 16px; }
.about__text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.about__link { font-size: 15px; font-weight: 600; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--card-shadow);
}
.feature__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 12px;
}
.feature__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  text-wrap: balance;
}
.feature__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- photo strip ---------- */

.photo-strip { padding-bottom: clamp(32px, 5vw, 64px); }
.photo-strip__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.photo-strip__track img {
  width: 280px;
  height: 190px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--media);
  scroll-snap-align: start;
}

/* ---------- contacts ---------- */

.contacts { padding-bottom: clamp(40px, 6vw, 72px); scroll-margin-top: var(--scroll-offset); }
.contacts__address {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--panel-text);
}
.contacts p { margin-bottom: 28px; max-width: 44ch; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-radius: 14px;
  background: var(--panel-tile);
  border: 1px solid var(--panel-line);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: background-color .15s ease;
}
.contact:hover { background: var(--panel-tile-hover); color: #fff; }
.contact__arrow { color: rgba(255, 255, 255, .5); }

.contact--primary {
  background: var(--wa-solid);
  border-color: transparent;
  font-weight: 600;
}
.contact--primary:hover { background: var(--wa-solid-hover); }
.contact--primary .contact__arrow { color: #fff; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--hairline); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 28px;
}
.site-footer .brand { font-size: 17px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 auto;
  font-size: 13px;
}
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--teal); }
.copyright {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
