/* ===== Sections CSS ===== */

/* ===== FORMULA ===== */
.formula {
  padding: 120px 0 80px;
}
.formula-head {
  max-width: 680px;
  margin-bottom: 64px;
}
.formula-title {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-top: 14px;
}
.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.formula-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.formula-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  opacity: 0;
  transition: opacity .3s;
}
.formula-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.formula-card:hover::before { opacity: 1; }
.formula-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.formula-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.formula-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.formula-note {
  margin-top: 40px;
  padding: 24px 32px;
  background: var(--bg-soft-green);
  border-radius: var(--r-lg);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.formula-note .pill { background: oklch(1 0 0); }
.formula-note p { flex: 1; min-width: 280px; color: var(--accent-deep); font-size: 15px; line-height: 1.5; }

.formula-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 56px;
  align-items: start;
}
.formula-visual {
  position: sticky;
  top: 120px;
}
.formula-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.formula-layout .formula-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}
.kids-ingredients {
  margin: 20px 0 28px;
}
.kids-ing-head {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.kids-ingredients ul {
  list-style: none;
  display: grid;
  gap: 14px;
  padding: 0;
}
.kids-ingredients li {
  display: grid;
  gap: 2px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.kids-ingredients li strong {
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
}
@media (max-width: 900px) {
  .formula-layout { grid-template-columns: 1fr; gap: 40px; }
  .formula-visual { position: static; max-width: 380px; margin: 0 auto; }
}

/* ===== PRODUCTS GRID ===== */
.products-grid-section { padding: 40px 0 80px; }
.pg-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}
.pg-title { font-size: clamp(36px, 4.5vw, 56px); margin-top: 10px; }
.pg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.p-card {
  background: var(--bg-elev);
  /*border: 1px solid var(--line-soft);*/
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
  position: relative;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.p-card-stage {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--p-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.p-card-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 120%, var(--p-accent) 0%, transparent 60%);
  opacity: 0.12;
}
.p-card-stage img {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform .4s ease;
  filter: drop-shadow(0 10px 20px oklch(0.25 0.02 240 / 0.1));
}
.p-card:hover .p-card-stage img { transform: scale(1.05); }

.p-card-body {
  padding: 4px 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.p-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-muted);
}
.p-card-pack { font-family: var(--f-mono); letter-spacing: 0.04em; font-size: 11px; }
.p-card-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.p-card-brand {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--p-accent);
  letter-spacing: -0.02em;
}
.p-card-variant {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.p-card-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
  flex: 1;
}
.p-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.p-card-lg .p-card-stage { aspect-ratio: 16/10; }
.p-card-lg .p-card-brand { font-size: 28px; }

/* ===== SORE ADVICE ===== */
.sore {
  padding: 80px 0;
  background: #ffffff;
}
.sore-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: flex-start;
}
.sore-title { font-size: clamp(36px, 4.5vw, 56px); margin: 10px 0 18px; }
.sore-list {
  list-style: none;
  margin-top: 40px;
  display: grid;
  gap: 20px;
}
.sore-list li {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: oklch(1 0 0 / 0.6);
  border-radius: 0;
  border: 1px solid oklch(1 0 0 / 0.6);
  border-bottom: 1px solid #e0eae7;
}
.sore-num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  color: var(--accent-deep);
  font-weight: 500;
  min-width: 44px;
}
.sore-list h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.sore-list p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

.sore-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sore-stat {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 28px 20px;
  text-align: center;
}
.sore-stat-val {
  font-size: 48px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1;
}
.sore-stat-lbl {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* ===== KIDS ===== */
.kids {
  padding: 100px 0;
}
.kids-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.kids-title {
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 10px 0 18px;
}
.kids-tags {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.kids-tags .pill { background: oklch(0.95 0.04 10); color: oklch(0.5 0.12 10); }
.kids-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.kids-fine {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
}

.kids-right {
  position: relative;
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
}
.kids-mascot {
  position: absolute;
  bottom: 4%;
  left: 2%;
  width: 46%;
  z-index: 2;
  filter: drop-shadow(0 14px 24px oklch(0.25 0.02 240 / 0.18));
  animation: jagoda-float 4s ease-in-out infinite;
  transform-origin: center center;
}
@keyframes jagoda-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
.kids-pack {
  position: absolute;
  right: 4%;
  top: 8%;
  width: 58%;
  z-index: 1;
  filter: drop-shadow(0 20px 30px oklch(0.25 0.02 240 / 0.2));
}
.kids-sticker {
  position: absolute;
  top: 8%;
  left: 6%;
  background: oklch(0.6 0.22 25);
  color: oklch(0.98 0.005 95);
  padding: 12px 18px;
  border-radius: 50%;
  width: 92px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-14deg);
  z-index: 3;
  box-shadow: 0 8px 20px oklch(0.25 0.02 240 / 0.2);
  border: 3px dashed oklch(1 0 0 / 0.5);
}
.kids-sticker span { font-size: 9px; letter-spacing: 0.1em; }
.kids-sticker strong { font-family: var(--f-display); font-style: italic; font-size: 18px; line-height: 1; }

/* ===== BENEFITS / Zašto neo-angin ===== */
.benefits {
  padding: 120px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.benefits-head { margin-bottom: 48px; }
.benefits-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.benefits-title {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-top: 14px;
  max-width: 640px;
}
.benefits-controls {
  display: flex;
  gap: 10px;
}
.benefits-arrow {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.benefits-arrow:hover:not(:disabled) {
  background: var(--accent);
  color: var(--ink-inverse);
  border-color: var(--accent);
}
.benefits-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

.benefits-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}
.benefits-track::-webkit-scrollbar { display: none; }
.benefit-card {
  scroll-snap-align: start;
  padding: 36px 32px 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  min-height: 240px;
}
.benefit-num {
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  font-weight: 500;
}
.benefit-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.25;
}
.benefit-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.benefits-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.benefits-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.benefits-dot.is-active {
  background: var(--accent);
  width: 24px;
}
@media (max-width: 900px) {
  .benefits-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 560px) {
  .benefits-track { grid-auto-columns: 100%; }
}

/* ===== TRUST ===== */
.trust {
  padding: 70px 0;
  background: var(--bg-deep);
  color: var(--ink-inverse);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.trust-item { border-left: 1px solid oklch(0.35 0.02 240); padding-left: 24px; }
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-num {
  font-size: 56px;
  color: oklch(0.95 0.005 95);
  line-height: 1;
  margin-bottom: 12px;
  font-weight: 500;
}
.trust-num em { color: oklch(0.85 0.1 65); font-style: italic; }
.trust-lbl {
  font-size: 13px;
  color: oklch(0.7 0.01 95);
  max-width: 22ch;
}

/* ============ PRODUCTS PAGE ============ */
.products-page {
  padding: 80px 0;
}
.pp-header {
  max-width: 720px;
  margin-bottom: 56px;
}
.pp-title {
  font-size: clamp(48px, 6vw, 80px);
  margin: 14px 0 18px;
}
.pp-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.pp-filter {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.pp-filter:hover { border-color: var(--ink); }
.pp-filter.active { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.pp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pp-grid .p-card-stage { aspect-ratio: 5/4; }

/* ============ PRODUCT DETAIL ============ */
.pd-hero {
  padding: 60px 0 80px;
  background: var(--p-soft);
  position: relative;
  overflow: hidden;
}
.pd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, var(--p-accent) 0%, transparent 50%);
  opacity: 0.14;
  z-index: 0;
}
.pd-crumbs {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 40px;
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.pd-crumbs a:hover { color: var(--ink); }
.pd-crumbs .sep { opacity: 0.4; }
.pd-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.pd-gallery {
  aspect-ratio: 5/4;
  border-radius: var(--r-xl);
  /*background: oklch(1 0 0 / 0.5);*/
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  /*border: 1px solid oklch(1 0 0 / 0.5);*/
}
.pd-gallery img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px oklch(0.25 0.02 240 / 0.2));
}
.pd-info .eyebrow { color: var(--p-accent); }
.pd-name {
  font-size: clamp(44px, 5.5vw, 64px);
  margin: 14px 0 6px;
  color: var(--p-accent);
  font-style: italic;
  font-weight: 500;
}
.pd-variant {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}
.pd-lead {
  font-size: 19px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 48ch;
}
.pd-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.pd-body {
  padding: 80px 0;
}
.pd-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
}
.pd-section {
  margin-bottom: 56px;
}
.pd-section-title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--ink);
}
.pd-section p {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}
.pd-spec {
  background: var(--bg-warm);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--line-soft);
  position: sticky;
  top: 100px;
}
.pd-spec h4 {
  font-family: var(--f-display);
  font-size: 20px;
  margin-bottom: 18px;
  font-weight: 500;
}
.pd-spec dl {
  display: grid;
  gap: 14px;
}
.pd-spec dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}
.pd-spec dd {
  font-size: 15px;
  color: var(--ink);
  margin-top: 2px;
}
.pd-warn {
  margin-top: 24px;
  padding: 18px;
  background: oklch(0.95 0.03 40);
  border: 1px solid oklch(0.88 0.04 40);
  border-radius: var(--r-md);
  font-size: 12px;
  color: oklch(0.35 0.1 40);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .formula-grid, .pg-grid { grid-template-columns: repeat(2, 1fr); }
  .pp-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: none; padding-left: 0; }
  .sore-container, .kids-container, .pd-hero-grid, .pd-body-grid { grid-template-columns: 1fr; gap: 40px; }
  .pd-spec { position: static; }
}
@media (max-width: 640px) {
  .formula-grid, .pg-grid, .pp-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-item { border-left: none !important; padding-left: 0 !important; }
  .sore-right { grid-template-columns: 1fr 1fr; }
}
