/* ============================================================
   Biomedica — site.css
   Main stylesheet for all pages EXCEPT /verify.php (auth)
   Auth styles remain in /css/main.css (untouched)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700;800&display=swap');

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  --color-primary:      #07b89a;
  --color-primary-dark: #048974;
  --color-primary-light:rgba(7,184,154,0.14);
  --color-accent:       #00e0c2;
  --color-dark:         #0c3a4f;
  --color-dark-alt:     #051c28;
  --color-bg:           #eaf0f4;
  --color-white:        #ffffff;
  --color-text:         #2a4757;
  --color-text-muted:   #5a6e7d;
  --color-border:       #d2dae1;
  --color-success:      #07b89a;
  --color-error:        #e53935;

  --font-body:    'Roboto', sans-serif;
  --font-heading: 'Inter', sans-serif;

  --shadow-sm:  0 2px 8px rgba(12,58,79,0.08);
  --shadow-md:  0 8px 32px rgba(12,58,79,0.12);
  --shadow-lg:  0 16px 56px rgba(12,58,79,0.16);
  --shadow-xl:  0 24px 80px rgba(12,58,79,0.20);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-full:9999px;

  --transition: all 0.3s ease;
  --transition-fast: all 0.18s ease;

  --max-width: 1160px;
  --navbar-h:  78px;
}

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 14.5px;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex-grow: 1; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Utility Classes ─────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section meta — harmonized with the Apple-home (.ah) typography
   so subpages feel like they belong to the same site as the home page. */
.section-tag {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: transparent;
  padding: 0;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.55;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.divider {
  width: 56px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 20px 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(7,184,154,0.35);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 24px rgba(7,184,154,0.48);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-dark);
  color: #fff;
}
.btn-dark:hover {
  background: var(--color-dark-alt);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--color-dark);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--color-bg);
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Topbar ──────────────────────────────────────────────── */
/* Topbar — sits above navbar, harmonized with the dark hero/footer scheme
   so there's no bright-teal interruption between sections. */
.topbar {
  background-color: #05121a;
  padding: 8px 0;
  z-index: 1001;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.topbar__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}
.topbar__email svg { width: 15px; height: 15px; flex-shrink: 0; color: #5cd0b8; }
.topbar__email:hover { color: #fff; }

/* ── Navbar ──────────────────────────────────────────────── */
/* Default = transparent over hero (used on home page only).
   `body.navbar-solid` (set on every non-home page) and `.scrolled`
   (toggled by JS after 80px scroll) flip it to a solid white bar. */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
}

.navbar.scrolled,
body.navbar-solid .navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(12,58,79,0.10);
  border-bottom-color: var(--color-border);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.navbar__logo img {
  height: 50px;
  width: auto;
  transition: filter 0.35s ease, opacity 0.18s ease;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.45));
}
.navbar__logo:hover img { opacity: 0.9; }

/* Home page transparent navbar (przed scroll) — białe logo na ciemnym video */
body:not(.navbar-solid) .navbar:not(.scrolled) .navbar__logo img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.45));
}

/* On white navbar (scrolled or solid pages), make the white logo dark navy so it pops */
.navbar.scrolled .navbar__logo img,
body.navbar-solid .navbar__logo img {
  filter: brightness(0) saturate(100%) invert(16%) sepia(46%) saturate(1064%) hue-rotate(168deg) brightness(94%) contrast(92%);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
  border-radius: var(--radius-sm);
  transition: color 0.25s ease, text-shadow 0.25s ease, background 0.18s ease;
  position: relative;
  white-space: nowrap;
}

/* On white navbar (scrolled or solid pages), switch to dark text */
.navbar.scrolled .nav-link,
body.navbar-solid .nav-link {
  color: var(--color-dark);
  text-shadow: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after, .nav-link.active::after { width: 60%; }

.nav-link--cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 12px rgba(7,184,154,0.3);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(7,184,154,0.45);
}

.dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  min-width: 260px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 999;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown li a {
  display: block;
  padding: 9px 20px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition-fast);
}
.dropdown li a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
  padding-left: 26px;
}

.dropdown__group-label {
  padding: 10px 20px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}
.dropdown__group-label:first-child { border-top: none; margin-top: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  border-radius: 2px;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.3s ease, opacity 0.3s ease;
  display: block;
}
.navbar.scrolled .hamburger span,
body.navbar-solid .hamburger span {
  background: var(--color-dark);
  box-shadow: none;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page Hero (non-home pages) ──────────────────────────── */
/* Subpage hero — same dark scheme as the home hero (.ah-hero) so the
   site reads as one design system. Optional photographic background
   blends to brand teal via luminosity. */
.page-hero {
  background: #05121a;
  padding: clamp(72px, 9vw, 120px) 24px clamp(80px, 10vw, 130px);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Photographic variant — keeps the brand-tint pattern from before */
.page-hero--photo {
  background-color: #0c3a4f;
  background-image:
    radial-gradient(ellipse at center, rgba(5,18,26,0.55) 0%, rgba(5,18,26,0.85) 70%, rgba(5,18,26,0.95) 100%),
    var(--page-hero-bg, none);
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: normal, luminosity;
}

.page-hero__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s ease;
}
.page-hero__breadcrumb a:hover { color: #5cd0b8; }
.page-hero__breadcrumb span { color: rgba(255,255,255,0.2); }
.page-hero__breadcrumb .current { color: rgba(255,255,255,0.85); }

.page-hero h1 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-hero__sub {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.5;
  margin: 22px auto 0;
  max-width: 600px;
}

/* ── Section Padding ─────────────────────────────────────── */
/* Matches home --ah-section-pad so subpages have the same vertical rhythm */
.section { padding: clamp(64px, 8vw, 112px) 24px; }
.section--sm { padding: clamp(40px, 5vw, 72px) 24px; }
.section--dark {
  background: #05121a;
  color: rgba(255,255,255,0.85);
}
.section--dark .section-title { color: #fff; }
.section--dark .section-subtitle { color: rgba(255,255,255,0.6); }

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

/* Off-white alt section — matches the home page's .ah-bg-alt (#f5f5f7)
   so colors carry through across pages. */
.section--alt { background: #f5f5f7; }

/* ── Home Hero ───────────────────────────────────────────── */
.home-hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--color-dark-alt);
  display: block;
  height: clamp(520px, 72vh, 660px);
  margin-top: calc(var(--navbar-h) * -1);
}

.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 82% 18%, rgba(0,224,194,0.42) 0%, transparent 62%),
    radial-gradient(ellipse 55% 45% at 12% 92%, rgba(7,184,154,0.32) 0%, transparent 60%),
    linear-gradient(135deg, rgba(5,28,40,0.92) 0%, rgba(12,58,79,0.82) 55%, rgba(5,28,40,0.94) 100%);
  z-index: 1;
}

.home-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 80px;
  max-width: 920px;
  margin: 0 auto;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  margin-bottom: 22px;
}
.home-hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(7,184,154,0.25), 0 0 16px rgba(7,184,154,0.6);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.85); opacity: 0.7; }
}

.home-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 18px;
}
.home-hero h1 .accent {
  background: linear-gradient(120deg, #fff 0%, var(--color-primary) 60%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.home-hero__sub {
  color: rgba(255,255,255,0.78);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  max-width: 580px;
  line-height: 1.65;
  margin: 0 auto 26px;
}

.home-hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.home-hero__pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.home-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
}
.home-hero__pill svg { width: 14px; height: 14px; stroke: var(--color-primary); flex-shrink: 0; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounceDown 2s infinite;
}
.scroll-indicator svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255,255,255,0.35);
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  position: relative;
  margin: -56px auto 0;
  max-width: calc(var(--max-width) - 32px);
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-alt) 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(5,28,40,0.32), 0 2px 0 rgba(255,255,255,0.04) inset;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.06);
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(7,184,154,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.stats-bar__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  position: relative;
  padding: 4px 8px;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12), transparent);
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-item__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .stats-bar { margin: -40px 16px 0; padding: 24px 20px; max-width: none; }
  .stat-item:not(:last-child)::after { display: none; }
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(7,184,154,0.2);
}
.product-card:hover::before { transform: scaleX(1); }

.product-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
}

/* Product cover slot — image or placeholder, full-bleed at top of card */
.product-card__cover {
  position: relative;
  margin: -32px -32px 4px;
  height: 240px;
  overflow: hidden;
  /* Soft neutral background for product packshots (vials/boxes shot on white).
     This gives small label text room to "breathe" instead of getting cropped. */
  background: #f5f7f9;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__cover img {
  width: 100%;
  height: 100%;
  /* `contain` keeps full packaging visible (label text stays legible) instead
     of cropping. Photos that don't fill the slot are framed by the bg color. */
  object-fit: contain;
  padding: 12px;
  display: block;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card__cover img { transform: scale(1.04); }

/* Placeholder variant — when no image is set yet (admin will fill via panel) */
.product-card__cover--placeholder {
  background:
    linear-gradient(135deg, rgba(7,184,154,0.18) 0%, rgba(12,58,79,0.55) 100%),
    linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.product-card__cover--placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.product-card__cover-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.product-card__cover-icon svg {
  width: 30px;
  height: 30px;
  stroke: rgba(255,255,255,0.78);
}
.product-card__cover-tag {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.product-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.product-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card__meta span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

/* Feature Card (Why Choose Us) */
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(7,184,154,0.2);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.feature-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Blog Card */
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card__cover {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__cover svg {
  width: 48px;
  height: 48px;
  stroke: rgba(255,255,255,0.3);
}

.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.blog-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
}
.blog-card h3 a { color: inherit; transition: var(--transition-fast); }
.blog-card h3 a:hover { color: var(--color-primary); }

.blog-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.blog-card__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  margin-top: auto;
}
.blog-card__link:hover { gap: 10px; }

/* ── About Preview Section ───────────────────────────────── */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-preview__visual {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-preview__visual::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.06) 0%, transparent 60%);
}

.about-preview__visual svg {
  width: 80px;
  height: 80px;
  stroke: rgba(255,255,255,0.35);
  position: relative;
  z-index: 1;
}

/* Photo variant: takes <img class="about-preview__photo"> as a child */
.about-preview__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(0.95) contrast(1.05) brightness(0.62) saturate(0.85);
  mix-blend-mode: luminosity;
}

.about-preview__visual--photo {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-dark) 100%);
}

.about-preview__visual--photo::before {
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(5,28,40,0.55) 0%, rgba(7,184,154,0.18) 100%);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.about-preview__caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(5,28,40,0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-preview__caption svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  flex-shrink: 0;
  position: static;
}

/* ── Quality Banner ──────────────────────────────────────── */
.quality-banner {
  background: #05121a;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.quality-banner--photo {
  background-color: #05121a;
  background-image:
    radial-gradient(ellipse at center, rgba(5,18,26,0.55) 0%, rgba(5,18,26,0.85) 70%, rgba(5,18,26,0.95) 100%),
    var(--banner-bg, none);
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed;
  background-blend-mode: normal, luminosity;
}

.quality-banner::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(7,184,154,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.quality-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

.quality-banner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.quality-banner p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ── Grids ───────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

/* ── Values Cards ────────────────────────────────────────── */
.value-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(7,184,154,0.2);
}
.value-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.value-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
}
.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.value-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── Timeline ────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-item__year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── Process Timeline (Quality page) ────────────────────── */
.process-timeline {
  max-width: 740px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}
.process-step:last-child { padding-bottom: 0; }

.process-step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.process-step__connector {
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}
.process-step:last-child .process-step__connector { display: none; }

.process-step__content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
  padding-top: 10px;
}
.process-step__content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── Quality Table ───────────────────────────────────────── */
.quality-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.quality-table th {
  background: var(--color-dark);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.quality-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.quality-table tr:last-child td { border-bottom: none; }

.quality-table tr:nth-child(even) td { background: var(--color-bg); }

.quality-table .pass {
  color: var(--color-primary);
  font-weight: 600;
}

/* ── Product Page Photo Card ─────────────────────────────── */
/* Renders the admin-uploaded product photo (cover_image) above the spec
   table on each product subpage. Same packshot framing pattern as the
   thumbnail cards: `contain` + light bg so packaging label text stays
   legible. */
.product-photo-card {
  background: #f5f7f9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: 16px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  display: block;
}

/* Disclaimer note below the product packshot */
.product-img-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  background: #f5f7f9;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  margin-bottom: 16px;
  font-style: italic;
}
.product-img-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.55;
}

/* ── Product Page Spec Table ─────────────────────────────── */
.spec-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: sticky;
  top: calc(var(--navbar-h) + 20px);
}

.spec-card__header {
  background: var(--color-dark);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-card__header svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
}

.spec-card__header h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--color-border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td {
  padding: 13px 20px;
  font-size: 0.88rem;
}
.spec-table td:first-child {
  color: var(--color-text-muted);
  font-weight: 500;
  width: 48%;
}
.spec-table td:last-child {
  color: var(--color-dark);
  font-weight: 600;
}

/* Auth mini-card */
.auth-mini-card {
  margin: 0 20px 20px;
  background: var(--color-primary-light);
  border: 1px solid rgba(7,184,154,0.25);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.auth-mini-card svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.auth-mini-card p {
  font-size: 0.84rem;
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}
.auth-mini-card a {
  color: var(--color-primary);
  font-weight: 600;
}

/* Product Layout */
.product-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.product-content h2 {
  margin-bottom: 20px;
}
.product-content h3 {
  font-size: 1.25rem;
  margin: 36px 0 14px;
  color: var(--color-dark);
}
.product-content p {
  font-size: 0.96rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* Related Products */
.related-section {
  padding: 64px 24px;
  background: var(--color-bg);
}
.related-section .container {
  max-width: var(--max-width);
}

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: #fff;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ── Contact Form ────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  background: #fff;
  outline: none;
  transition: var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(7,184,154,0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-honeypot {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  height: 0;
}

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
  align-items: center;
  gap: 10px;
}
.form-status.success {
  display: flex;
  background: rgba(7,184,154,0.08);
  color: var(--color-primary);
  border: 1px solid rgba(7,184,154,0.25);
}
.form-status.error {
  display: flex;
  background: rgba(229,57,53,0.07);
  color: var(--color-error);
  border: 1px solid rgba(229,57,53,0.2);
}
.form-status svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
}

.contact-info-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.contact-info-item p, .contact-info-item a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.contact-info-item a { transition: var(--transition-fast); }
.contact-info-item a:hover { color: var(--color-primary); }

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}
.faq-item.open { box-shadow: var(--shadow-sm); border-color: rgba(7,184,154,0.2); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  background: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  transition: var(--transition-fast);
}

.faq-question:hover { color: var(--color-primary); }

.faq-question svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--color-text-muted);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-question svg { transform: rotate(45deg); stroke: var(--color-primary); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq-answer a { color: var(--color-primary); font-weight: 600; }

/* ── Authentication CTA Banner ───────────────────────────── */
.auth-cta-banner {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-alt) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.auth-cta-banner::before {
  content: '';
  position: absolute;
  right: -5%;
  top: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(7,184,154,0.12) 0%, transparent 70%);
  pointer-events: none; /* never intercept clicks — sits above content in stacking order */
}

/* All direct children of the banner must sit above the ::before gradient blob */
.auth-cta-banner > * {
  position: relative;
  z-index: 1;
}

.auth-cta-banner__icon {
  width: 56px;
  height: 56px;
  background: rgba(7,184,154,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-cta-banner__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
}

.auth-cta-banner__text h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.auth-cta-banner__text p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}

/* ── Blog Post ───────────────────────────────────────────── */
.blog-post-layout {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 52px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.blog-post-content h2 {
  font-size: 1.6rem;
  margin: 36px 0 14px;
  color: var(--color-dark);
}
.blog-post-content h3 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
  color: var(--color-dark);
}
.blog-post-content p {
  font-size: 0.97rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 18px;
}
.blog-post-content ul, .blog-post-content ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
.blog-post-content li {
  font-size: 0.97rem;
  color: var(--color-text);
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 6px;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--color-border);
  color: var(--color-text);
  transition: var(--transition-fast);
  background: #fff;
}

.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ── Admin Panel ─────────────────────────────────────────── */
.admin-body {
  background: #f0f2f5;
  font-family: var(--font-body);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--color-dark);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

.admin-sidebar__logo {
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar__logo img { height: 36px; width: auto; }

.admin-sidebar__nav {
  padding: 16px 12px;
  flex-grow: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
  margin-bottom: 4px;
}
.admin-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.admin-nav-item.active { color: var(--color-primary); }

.admin-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 12px 14px;
}

.admin-main {
  margin-left: 260px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: #fff;
  padding: 16px 32px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
}

.admin-content {
  padding: 32px;
  flex-grow: 1;
}

.admin-stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-stat-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
}

.admin-stat-card__value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
}

.admin-stat-card__label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.admin-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.admin-card__header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card__header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.admin-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafbfc; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-success { background: rgba(7,184,154,0.1); color: var(--color-primary); }
.badge-warning { background: rgba(255,152,0,0.1); color: #e65100; }
.badge-danger  { background: rgba(229,57,53,0.1); color: var(--color-error); }
.badge-new     { background: rgba(33,150,243,0.1); color: #0d47a1; }

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  font-family: var(--font-body);
}
.admin-btn svg { width: 14px; height: 14px; }
.admin-btn-primary { background: var(--color-primary); color: #fff; }
.admin-btn-primary:hover { background: var(--color-primary-dark); }
.admin-btn-secondary { background: var(--color-bg); color: var(--color-text); border: 1px solid var(--color-border); }
.admin-btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.admin-btn-danger { background: rgba(229,57,53,0.1); color: var(--color-error); }
.admin-btn-danger:hover { background: var(--color-error); color: #fff; }

/* Admin Form */
.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.admin-form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-dark);
}
.admin-input, .admin-textarea, .admin-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-dark);
  background: #fff;
  outline: none;
  transition: var(--transition-fast);
}
.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(7,184,154,0.1);
}
.admin-textarea { resize: vertical; min-height: 120px; }

/* Admin Login Page */
.admin-login-body {
  min-height: 100vh;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
}

.admin-login-card__logo {
  text-align: center;
  margin-bottom: 32px;
}
.admin-login-card__logo img { height: 44px; margin: 0 auto 12px; }
.admin-login-card__logo h2 { font-size: 1.1rem; color: var(--color-text-muted); font-weight: 400; }

.admin-login-error {
  background: rgba(229,57,53,0.08);
  border: 1px solid rgba(229,57,53,0.2);
  color: var(--color-error);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: none;
}
.admin-login-error.show { display: block; }

/* ── Footer ──────────────────────────────────────────────── */
/* Footer — same dark scheme as the home process section / topbar so the
   site frames its content with one consistent dark color. */
.footer {
  background: #05121a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__top { padding: clamp(56px, 7vw, 88px) 24px clamp(40px, 5vw, 56px); }

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr 1fr;
  gap: 40px;
}

.footer__brand { max-width: 300px; }

.footer__brand img { margin-bottom: 16px; opacity: 0.9; }

.footer__tagline {
  color: rgba(255,255,255,0.45);
  font-size: 0.86rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.86rem;
  transition: var(--transition-fast);
}
.footer__email svg { width: 15px; height: 15px; }
.footer__email:hover { color: var(--color-primary); }

.footer__heading {
  /* Mono eyebrow style — matches .ah-eyebrow & .section-tag across the site */
  color: #5cd0b8;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links li a {
  color: rgba(255,255,255,0.45);
  font-size: 0.86rem;
  transition: var(--transition-fast);
}
.footer__links li a:hover { color: var(--color-primary); }

.footer__verify-text {
  color: rgba(255,255,255,0.45);
  font-size: 0.84rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer__verify-btn {
  /* Apple-pill style — same shape as .ah-btn for consistency */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0a0c10;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 0.22s ease, color 0.22s ease, transform 0.18s ease;
}
.footer__verify-btn svg { width: 16px; height: 16px; }
.footer__verify-btn:hover { background: rgba(255, 255, 255, 0.92); transform: translateY(-1px); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 24px;
}

.footer__bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  margin: 0;
}

.footer__disclaimer {
  font-style: italic;
}

/* ── Mission Quote ───────────────────────────────────────── */
.mission-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 24px;
}

.mission-quote__mark {
  font-size: 6rem;
  line-height: 0.5;
  color: var(--color-primary);
  opacity: 0.3;
  font-family: Georgia, serif;
  margin-bottom: 20px;
  display: block;
}

.mission-quote blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.55;
  font-style: italic;
}

/* ── Expertise Columns ───────────────────────────────────── */
.expertise-col {
  text-align: center;
  padding: 32px 24px;
}
.expertise-col__icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.expertise-col__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
}
.expertise-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.expertise-col p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── CTA Contact Section ─────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-section--photo {
  color: #fff;
  background-color: #05121a;
  background-image:
    radial-gradient(ellipse at center, rgba(5,18,26,0.55) 0%, rgba(5,18,26,0.85) 70%, rgba(5,18,26,0.95) 100%),
    var(--cta-bg, none);
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: normal, luminosity;
}
.cta-section--photo .section-tag {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.cta-section--photo .section-title { color: #fff; }
.cta-section--photo .section-subtitle { color: rgba(255,255,255,0.78); }

.cta-section--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
}

.cta-section__icon {
  width: 72px;
  height: 72px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.cta-section--photo .cta-section__icon {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
}
.cta-section--photo .cta-section__icon svg { stroke: #fff; }
.cta-section__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
}

/* ── Spinner (form submit) ───────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-text { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1199px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { max-width: 100%; grid-column: span 2; }
  .product-layout { grid-template-columns: 1fr; }
  .spec-card { position: static; }
}

@media (max-width: 991px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .about-preview { grid-template-columns: 1fr; gap: 40px; }
  .about-preview__visual { min-height: 240px; }
  .contact-layout { grid-template-columns: 1fr; }
  .auth-cta-banner { flex-direction: column; text-align: center; padding: 32px; }
  .auth-cta-banner__icon { margin: 0 auto; }
}

@media (max-width: 767px) {
  :root { --navbar-h: 66px; }
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: calc(40px + var(--navbar-h));
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
    z-index: 999;
    border-top: 2px solid var(--color-primary);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-link { font-size: 0.95rem; padding: 12px 16px; }
  /* Mobile menu pojawia się jako biały overlay → linki muszą być ciemne, bez shadow */
  .nav-menu .nav-link {
    color: var(--color-dark);
    text-shadow: none;
  }
  .dropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none;
    border: none;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    display: none;
  }
  .has-dropdown.mobile-open .dropdown { display: block; }
  .dropdown-arrow { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .section { padding: 64px 20px; }
  .section--sm { padding: 48px 20px; }
  .home-hero { height: clamp(480px, 80vh, 600px); }
  .home-hero h1 { font-size: 2.1rem; }
  .home-hero__eyebrow { font-size: 0.66rem; padding: 6px 12px 6px 8px; }
  .navbar__logo img { height: 38px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  /* Mobile-only: wycentruj wszystkie elementy footera (desktop nietknięty) */
  .footer__brand,
  .footer__col {
    text-align: center;
    max-width: 100%;
  }
  .footer__brand img { display: block; margin: 0 auto 16px; }
  .footer__email { margin: 0 auto; }
  .footer__links { align-items: center; }
  .footer__verify-text { text-align: center; }
  .footer__verify-btn { margin: 0 auto; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { position: relative; width: 100%; height: auto; }
  .admin-main { margin-left: 0; }
  .blog-post-content { padding: 28px; }
  .admin-login-card { padding: 36px 24px; }
}

@media (max-width: 575px) {
  .stats-bar__inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-item__number { font-size: 1.8rem; }
  .home-hero { height: auto; min-height: 540px; }
  .home-hero__content { padding: 32px 20px 64px; position: relative; }
  .home-hero__buttons { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
  .home-hero__buttons .btn { justify-content: center; }
  .home-hero__pills { gap: 6px; }
  .home-hero__pill { font-size: 0.72rem; padding: 6px 10px; }
  .page-hero { padding: 60px 20px; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 7px 14px; font-size: 0.8rem; }
}

/*  Auth form toggle states (home.php, quality.php embedded widget)  */
.verify-card.oryginal .first          { display: flex !important; }
.verify-card.oryginal .second         { display: none !important; }
.verify-card.non-oryginal .second     { display: flex !important; }
.verify-card.non-oryginal .first      { display: none !important; }
.verify-card.oryginal .admin-input,
.verify-card.oryginal .form-control   { border-color: #1d9888; box-shadow: 0 0 0 4px rgba(7,184,154,.12); }
.verify-card.non-oryginal .admin-input,
.verify-card.non-oryginal .form-control { border-color: #e53935; box-shadow: 0 0 0 4px rgba(229,57,53,.12); }

/* ═══════════════════════════════════════════════════════════════════
   APPLE-HOME (.ah) — redesigned home page
   Goal: Apple keynote pacing + breathing room, with subtle chemistry
   touches (steroid skeleton, hex rings, periodic-table stat cards,
   monospace formulas).
   Scoped under `.ah` so it never leaks into other pages.
   ═══════════════════════════════════════════════════════════════════ */

.ah {
  --ah-text:        #0a0c10;
  --ah-text-muted:  #6e6e73;
  --ah-text-soft:   #8a8a8f;
  --ah-bg:          #ffffff;
  --ah-bg-alt:      #f5f5f7;
  --ah-bg-dark:     #05121a;
  --ah-line:        rgba(0, 0, 0, 0.08);
  --ah-line-dark:   rgba(255, 255, 255, 0.10);
  --ah-accent:      var(--color-primary);
  --ah-mono:        ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --ah-radius:      18px;
  --ah-radius-lg:   28px;
  --ah-section-pad: clamp(64px, 8vw, 112px);
  font-feature-settings: "ss01", "cv01", "cv11";
  color: var(--ah-text);
  background: var(--ah-bg);
}

/* ── shared atoms ─────────────────────────────────────────── */
.ah-eyebrow {
  display: inline-block;
  font-family: var(--ah-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ah-accent);
  margin-bottom: 18px;
}
.ah-display {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ah-text);
  margin: 0;
}
.ah-display em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--ah-accent) 0%, #04a08e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ah-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ah-text);
  margin: 0;
}
.ah-section-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--ah-text-muted);
  margin: 18px auto 0;
  max-width: 640px;
}
.ah-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.ah-section-head--dark .ah-section-title { color: #fff; }
.ah-section-head--dark .ah-section-sub   { color: rgba(255, 255, 255, 0.65); }
.ah-section-head--dark .ah-eyebrow       { color: #5cd0b8; }

.ah-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ah-accent);
  text-decoration: none;
  transition: gap 0.25s ease, opacity 0.18s ease;
}
.ah-link:hover { gap: 10px; opacity: 0.85; }
.ah-link span { transition: transform 0.25s ease; }
.ah-link:hover span { transform: translateX(2px); }

.ah-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
}
.ah-btn:hover { transform: translateY(-1px); }
.ah-btn--primary {
  background: var(--ah-text);
  color: #fff;
}
.ah-btn--primary:hover { background: #1d1d1f; color: #fff; }
.ah-btn--ghost {
  background: transparent;
  color: var(--ah-text);
  border-color: var(--ah-line);
}
.ah-btn--ghost:hover { border-color: var(--ah-text); color: var(--ah-text); }
.ah-btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.ah-btn--full { width: 100%; justify-content: center; }
.ah-btn--center { margin: 0 auto; }

/* ── 1. HERO ──────────────────────────────────────────────── */
.ah-hero {
  position: relative;
  /* Dark scheme so the ambient video reads + brand teal of skeleton pops */
  background: #05121a;
  color: #fff;
  padding: clamp(72px, 9vw, 120px) 24px clamp(80px, 10vw, 130px);
  overflow: hidden;
  isolation: isolate;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Home only: hero overlap pod transparent navbar (video jako tło dla navbar) */
/* Desktop navbar = 78px, mobile = 66px (z :root --navbar-h w @media 767px) */
body:not(.navbar-solid) .ah-hero {
  margin-top: -78px;
  padding-top: clamp(150px, calc(9vw + 78px), 198px);
}

/* Background video — fills section, slightly desaturated + dimmed for legibility */
.ah-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
  filter: grayscale(0.4) saturate(0.85) contrast(1.05);
  pointer-events: none;
}

/* Layered gradient veil: dark on edges, slight teal tint center, plus a
   subtle bottom-up dark wash so the formula in the corner stays readable. */
.ah-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Lżejszy overlay — wideo jest bardziej widoczne, ale headline+buttons nadal czytelne */
  background:
    radial-gradient(ellipse at center, rgba(5,18,26,0.25) 0%, rgba(5,18,26,0.55) 70%, rgba(5,18,26,0.75) 100%),
    linear-gradient(180deg, rgba(5,18,26,0.0) 50%, rgba(5,18,26,0.45) 100%);
}

.ah-hero__inner {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 3;
}
.ah-hero .ah-eyebrow { color: #5cd0b8; }
.ah-hero .ah-display { font-size: clamp(2.4rem, 5.6vw, 5rem); color: #fff; }
.ah-hero .ah-display em {
  background: linear-gradient(120deg, #5cd0b8 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ah-hero .ah-lede {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 28px auto 36px;
  max-width: 600px;
}
.ah-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Hero buttons inverted for dark bg — primary stays bright, ghost becomes white-on-dark */
.ah-hero .ah-btn--primary { background: #fff; color: #0a0c10; }
.ah-hero .ah-btn--primary:hover { background: rgba(255,255,255,0.92); color: #0a0c10; }
.ah-hero .ah-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.ah-hero .ah-btn--ghost:hover { border-color: #fff; color: #fff; }


/* ── 2. NUMBERS / PERIODIC-TABLE STATS ────────────────────── */
.ah-numbers {
  /* Off-white section bg so white stat cards pop (Apple "bento" pattern) */
  background: var(--ah-bg-alt);
  padding: var(--ah-section-pad) 24px;
}
.ah-stats {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
/* Each stat card is shaped like a periodic-table tile:
   atomic number top-left, big number center, label bottom, symbol bottom-right. */
.ah-stat {
  position: relative;
  background: #fff;
  border-radius: var(--ah-radius);
  padding: 32px 28px 26px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ah-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -22px rgba(10, 12, 16, 0.18);
  border-color: rgba(7, 184, 154, 0.18);
}
.ah-stat__atomic {
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: var(--ah-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ah-text-soft);
}
.ah-stat__sym {
  position: absolute;
  bottom: 16px;
  right: 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ah-text-soft);
  letter-spacing: -0.01em;
}
.ah-stat__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--ah-text);
  letter-spacing: -0.02em;
  margin-top: 28px;
}
.ah-stat__label {
  font-size: 0.92rem;
  color: var(--ah-text-muted);
  line-height: 1.3;
  max-width: 80%;
}

/* ── 3. PRODUCT SHOWCASE (alternating Apple keynote rows) ── */
.ah-showcase {
  background: var(--ah-bg);
  padding: var(--ah-section-pad) 24px;
}
.ah-product-row {
  max-width: 1180px;
  margin: 0 auto clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.ah-product-row:last-of-type { margin-bottom: 0; }
.ah-product-row--reverse { grid-template-columns: 1fr 1.1fr; }
.ah-product-row--reverse .ah-product-row__visual { order: 2; }

.ah-product-row__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ah-bg-alt);
  border-radius: var(--ah-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.ah-product-row__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(16px, 2.5vw, 32px);
  display: block;
  position: relative;
  z-index: 2;
}
/* Decorative double-hex behind the product — pure chemistry mood */
.ah-hex {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: auto;
  transform: translate(-50%, -50%) rotate(-12deg);
  color: rgba(7, 184, 154, 0.10);
  z-index: 1;
  pointer-events: none;
}
.ah-hex svg { width: 100%; height: auto; display: block; }

.ah-product-row__placeholder {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ah-product-row__formula {
  font-family: var(--ah-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(10, 12, 16, 0.42);
}
.ah-product-row__placeholder-tag {
  font-family: var(--ah-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ah-text-soft);
}

.ah-product-row__copy { padding: 0 4px; }
.ah-product-row__num {
  font-family: var(--ah-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--ah-text-soft);
  display: block;
  margin-bottom: 14px;
}
.ah-product-row__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ah-text);
  margin: 0 0 14px;
}
.ah-product-row__desc {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--ah-text-muted);
  margin: 0 0 24px;
  max-width: 480px;
}
.ah-spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0 0 28px;
  padding: 0;
}
.ah-spec > div {
  border-top: 1px solid var(--ah-line);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.ah-spec dt {
  font-family: var(--ah-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ah-text-soft);
  margin: 0;
}
.ah-spec dd {
  font-family: var(--ah-mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ah-text);
  margin: 0;
  text-align: right;
}

.ah-showcase__footer { text-align: center; margin-top: 32px; }

/* ── 4. PROCESS / DARK SECTION ────────────────────────────── */
.ah-process {
  background: var(--ah-bg-dark);
  padding: var(--ah-section-pad) 24px;
  position: relative;
  overflow: hidden;
}
.ah-process::before {
  /* Subtle dot grid (lab-bench feel) — extremely faint */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.ah-process__inner { max-width: 1180px; margin: 0 auto; position: relative; }
.ah-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.ah-step {
  border-top: 1px solid var(--ah-line-dark);
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.85);
}
.ah-step__num {
  display: block;
  font-family: var(--ah-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #5cd0b8;
  margin-bottom: 16px;
}
.ah-step h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.18rem;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.ah-step p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ── 5. AUTH WIDGET ───────────────────────────────────────── */
.ah-auth {
  background: var(--ah-bg-alt);
  padding: var(--ah-section-pad) 24px;
}
.ah-auth__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.ah-auth__copy .ah-section-title { text-align: left; }
.ah-auth__copy .ah-section-sub   { margin-left: 0; text-align: left; }
.ah-checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ah-checklist li {
  font-size: 0.95rem;
  color: var(--ah-text);
  padding-left: 26px;
  position: relative;
}
.ah-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ah-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-repeat: no-repeat;
  background-position: center;
}

.ah-auth__card {
  background: #fff;
  border-radius: var(--ah-radius-lg);
  padding: 44px 36px;
  box-shadow: 0 28px 80px -32px rgba(10, 12, 16, 0.18);
  text-align: center;
  position: relative;
}
.ah-auth__shield {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ah-accent), #04a08e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ah-auth__shield svg { width: 28px; height: 28px; }
.ah-auth__card h3 {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ah-text);
  margin: 0 0 6px;
}
.ah-auth__card > p {
  font-size: 0.92rem;
  color: var(--ah-text-muted);
  margin: 0 0 22px;
}
.ah-auth__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ah-auth__input {
  width: 100%;
  background: var(--ah-bg-alt);
  border: 1px solid var(--ah-line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--ah-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--ah-text);
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.ah-auth__input::placeholder { color: var(--ah-text-soft); letter-spacing: 0.16em; }
.ah-auth__input:focus { border-color: var(--ah-accent); background: #fff; }

/* Result message styling — match brand colors instead of red/green vibe */
.ah-result {
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.ah-result svg { width: 16px; height: 16px; flex-shrink: 0; }
.ah-result--ok  { background: rgba(7, 184, 154, 0.10); color: #036a59; }
.ah-result--err { background: rgba(229, 57, 53, 0.10); color: #9d1f1c; }
/* The .first/.second toggle lives outside .verify-card on this page,
   so we wire them via .ah-auth__card too. */
.ah-auth__card.oryginal      .first  { display: flex !important; }
.ah-auth__card.oryginal      .second { display: none !important; }
.ah-auth__card.non-oryginal  .second { display: flex !important; }
.ah-auth__card.non-oryginal  .first  { display: none !important; }

/* ── 6. JOURNAL / BLOG ────────────────────────────────────── */
.ah-journal {
  background: var(--ah-bg);
  padding: var(--ah-section-pad) 24px;
}
.ah-journal__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ah-journal__card {
  display: flex;
  flex-direction: column;
  background: var(--ah-bg-alt);
  border-radius: var(--ah-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ah-journal__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px -18px rgba(10, 12, 16, 0.18);
}
.ah-journal__cover {
  aspect-ratio: 16 / 10;
  background: #d9dde2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ah-journal__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ah-journal__placeholder {
  font-family: var(--ah-mono);
  font-size: 3rem;
  color: var(--ah-text-soft);
  opacity: 0.45;
}
.ah-journal__body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ah-journal__date {
  font-family: var(--ah-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ah-text-soft);
}
.ah-journal__body h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ah-text);
  margin: 4px 0;
  line-height: 1.3;
}
.ah-journal__body p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ah-text-muted);
  margin: 0 0 8px;
  flex: 1;
}

/* ── 7. FINAL CTA ─────────────────────────────────────────── */
.ah-final {
  background: var(--ah-bg);
  padding: var(--ah-section-pad) 24px;
  text-align: center;
  border-top: 1px solid var(--ah-line);
}
.ah-final .ah-display { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.ah-final__sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--ah-text-muted);
  margin: 24px auto 32px;
  max-width: 540px;
}

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ah-stats { grid-template-columns: repeat(2, 1fr); }
  .ah-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .ah-journal__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ah-product-row,
  .ah-product-row--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ah-product-row--reverse .ah-product-row__visual { order: 0; }
  .ah-auth__inner { grid-template-columns: 1fr; gap: 32px; }
  .ah-auth__copy .ah-section-title { text-align: center; }
  .ah-auth__copy .ah-section-sub   { text-align: center; margin-left: auto; margin-right: auto; }
  .ah-checklist { align-items: center; }
  .ah-checklist li { padding-left: 0; padding-top: 0; text-align: center; }
  .ah-checklist li::before { display: none; }
  /* Hero: wypełnij cały viewport, złagodzony overlay dla mobile czytelności */
  /* Trzy-stopniowy fallback (BEZ 100dvh — powodowało resize gdy address bar znika):
     1. var(--vh) ustawiana JEDNORAZOWO przez JS przy load + orientationchange (najlepsze)
     2. 100svh dla nowoczesnych przeglądarek (statyczna mała wysokość, nie zmienia się przy scroll)
     3. 100vh jako fallback dla starych przeglądarek */
  .ah-hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: calc(var(--vh, 1vh) * 100);
    padding: 56px 20px;
  }
  /* Home only: hero overlap pod navbar na mobile (override desktop padding) */
  body:not(.navbar-solid) .ah-hero {
    margin-top: -66px;
    padding-top: 122px;        /* 56 (mobile padding) + 66 navbar */
  }
  /* Większa typografia hero na mobile (było ~21px → ~33px na 375px) */
  .ah-hero .ah-display {
    font-size: clamp(2.6rem, 9vw, 4rem);
    line-height: 1.05;
  }
  .ah-hero .ah-lede {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    line-height: 1.5;
  }
  .ah-hero__veil {
    background:
      radial-gradient(ellipse at center, rgba(5,18,26,0.30) 0%, rgba(5,18,26,0.65) 70%, rgba(5,18,26,0.80) 100%),
      linear-gradient(180deg, rgba(5,18,26,0.0) 50%, rgba(5,18,26,0.50) 100%);
  }
}
@media (max-width: 560px) {
  .ah-stats { grid-template-columns: 1fr; }
  .ah-steps { grid-template-columns: 1fr; }
  .ah-journal__grid { grid-template-columns: 1fr; }
  .ah-spec { grid-template-columns: 1fr; }
  .ah-stat { min-height: 180px; padding: 30px 22px 22px; }
}
