/* GlukozaPlus – Sibionics GS1 CGM landing. Polityka MediaGo: bez wideo, bez advertorial. */

:root {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-accent: #0d6efd;
  --color-accent-hover: #0a58ca;
  --color-border: #dee2e6;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --max-width: 960px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-accent);
}

.tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Hero */
.hero {
  background: var(--color-surface);
  padding: var(--space-2xl) 0;
  box-shadow: var(--shadow);
}

.hero .container {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .hero .container {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.hero-content h1 {
  margin: 0 0 var(--space-md);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .hero-content h1 {
    font-size: 2rem;
  }
}

.hero-lead {
  margin: 0 0 var(--space-lg);
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.cta-button {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.cta-button:hover {
  background: var(--color-accent-hover);
}

.cta-button-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.1rem;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

/* Page header (inner pages) */
.page-header {
  background: var(--color-surface);
  padding: var(--space-xl) 0;
  box-shadow: var(--shadow);
}

.page-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .page-header h1 {
    font-size: 2rem;
  }
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.section h2 {
  margin: 0 0 var(--space-lg);
  font-size: 1.5rem;
  font-weight: 700;
}

.section h3 {
  margin: var(--space-xl) 0 var(--space-md);
  font-size: 1.2rem;
  font-weight: 600;
}

.section p,
.section ul {
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

.section a {
  color: var(--color-accent);
  text-decoration: none;
}

.section a:hover {
  text-decoration: underline;
}

.intro {
  font-size: 1.05rem;
}

.benefits-list,
.simple-list {
  padding-left: 1.25rem;
}

.benefits-list li,
.simple-list li {
  margin-bottom: var(--space-sm);
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
}

/* Gallery */
.gallery-section h2 {
  margin-bottom: var(--space-md);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  object-fit: cover;
  aspect-ratio: 1;
}

.gallery-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Spec table */
.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.spec-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

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

.spec-table td:first-child {
  font-weight: 500;
  color: var(--color-text-muted);
  width: 55%;
}

/* Precautions */
.precautions {
  background: #fff8e6;
  border-top: 1px solid #ffe69c;
}

.precautions h2 {
  color: #856404;
}

/* CTA section */
.cta-section {
  text-align: center;
  background: var(--color-surface);
}

.cta-section h2 {
  margin-bottom: var(--space-md);
}

.cta-section p {
  margin-bottom: var(--space-lg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  padding: var(--space-xl) 0;
  background: var(--color-text);
  color: #ccc;
  font-size: 0.9rem;
}

.site-footer .container p {
  margin: 0 0 var(--space-sm);
}

.brand-footer {
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-nav a {
  color: #b8d4ff;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 639px) {
  .hero {
    padding: var(--space-xl) 0;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

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

  .spec-table td:first-child {
    width: 50%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .cta-button {
    display: block;
    text-align: center;
  }

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