:root {
  /* Dizajnový systém – homepage */
  --bg: #ffffff;
  --text: #1e2d4a;
  --heading: #1a2f57;
  --muted: #5c6b80;
  --line: #e4e9f0;
  --navy: #1e2d4a;
  --magenta: #b8177e;
  --green: #3d9e4f;
  --blue: #2b4f9a;
  --header-bg: #fafbfc;
  --input-bg: var(--header-bg);
  --radius: 4px;
  --focus-ring: 0 0 0 3px rgba(184, 23, 126, 0.1);
  --catalog-label-bg: #f3e3ec;
  --catalog-label-bg-end: #ead4e1;
  --catalog-label-border: #d9a8c0;
  --catalog-label-bg-hover: #e8d0dc;
  --catalog-accent: var(--magenta);
  --subnav-slot: 42px;
  --footer-bg: var(--header-bg);
  --container: 1140px;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --section-pad-y: 56px;
  /* Vnútorné stránky – assets/css/pages.css */
  --prose-width: 42rem;
  --sidebar-width: 280px;
  --page-hero-pad-y: 48px;
}

/* Lokálne DM Sans – bez Google CDN (GDPR + rýchlejšie FCP) */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  scroll-behavior: smooth;
}

#produkty,
#medi,
#kontakt-form,
#komunita {
  scroll-margin-top: 120px;
}

/* Zdieľaná typografia a labely */
.eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
}

.heading-display {
  margin: 0;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.heading-section {
  margin: 0;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.text-lead {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* Krátke stránky: main vyplní viewport, footer ostane dole (bez flex na body – rozbíja <select>) */
main {
  box-sizing: border-box;
  min-height: calc(100dvh - 20rem);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-orientation: from-image;
}

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  padding: 10px 12px;
  background: #000;
  color: #fff;
  transform: translateY(-140%);
  border-radius: 8px;
  z-index: 9999;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header – jedna svetlá farba */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
}

.header__inner {
  padding-block: 0;
}

.topbar {
  font-size: 12px;
  color: #5a6b80;
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.topbar__left,
.topbar__right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.topbar__right {
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.topbar__sep {
  opacity: 0.45;
}

.topbar__link {
  color: #5a6b80;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 2px;
}

.topbar__link:hover {
  color: var(--navy);
}

.topbar__link.is-active {
  color: var(--magenta);
  font-weight: 600;
}

.topbar__copy {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  min-height: 24px;
  padding: 4px 2px;
  border: 0;
  background: none;
  font: inherit;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.15s ease;
}

.topbar__copyIcon {
  display: none;
  width: 11px;
  height: 11px;
  margin-left: 5px;
  flex-shrink: 0;
  color: var(--navy);
}

.topbar__copy.is-copied {
  color: var(--navy);
  font-weight: 600;
}

.topbar__copy.is-copied .topbar__copyIcon {
  display: block;
}

.nav {
  padding-bottom: 4px;
}

.nav__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 36px;
  align-items: start;
}

.brand {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
  padding-top: 4px;
}

.brand__logo {
  width: auto;
  height: 56px;
  max-width: 210px;
  object-fit: contain;
  object-position: left top;
}

.nav__body {
  min-width: 0;
  padding-top: 2px;
}

.nav__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.nav__group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.nav__link {
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  color: #243a61;
  white-space: nowrap;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: color 0.15s, border-color 0.15s;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--magenta);
}

.nav__link.is-active {
  border-color: transparent;
  color: var(--magenta);
  font-weight: 600;
}

/* Subnav – výška len keď je otvorená (zatvorená nezaberá prázdne miesto) */
.subnav {
  height: 0;
  min-height: 0;
  max-height: 0;
  margin-top: 0;
  padding: 0;
  border-top: 1px solid transparent;
  box-sizing: border-box;
  overflow: hidden;
}

.subnav.is-open {
  height: var(--subnav-slot);
  min-height: var(--subnav-slot);
  max-height: var(--subnav-slot);
  margin-top: 2px;
  padding-top: 3px;
  border-top-color: #d8dee8;
}

.subnav.is-open .subnav__panel.is-visible {
  align-content: center;
  min-height: calc(var(--subnav-slot) - 4px);
}

.subnav__panel {
  display: none;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  padding-left: 12px;
}

.subnav__panel.is-visible {
  display: flex;
}

.subnav.is-open .subnav__panel {
  gap: 4px 16px;
}

.subnav__link {
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  color: #2a4068;
  white-space: nowrap;
  padding: 2px 0;
  line-height: 1.3;
}

.subnav__link:hover,
.subnav__link:focus-visible {
  color: var(--magenta);
}

.nav__toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

.nav__toggleBars {
  width: 18px;
  height: 12px;
  display: inline-block;
  background:
    linear-gradient(var(--text), var(--text)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 5px / 100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 10px / 100% 2px no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  font-family: inherit;
}

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

.btn--primary:hover {
  filter: brightness(0.93);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  margin-top: auto;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--outline {
  background: #fff;
  color: var(--heading);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.btn--dark {
  background: var(--navy);
  color: #fff;
}

.btn--dark:hover {
  filter: brightness(0.93);
}

.btn--block {
  width: 100%;
  padding-block: 13px;
}

/* Hero */
.hero {
  position: relative;
  padding: 28px 0 56px;
  /* hidden (nie clip+visible) – inak prehliadače môžu povoliť horizontálny scroll */
  overflow: hidden;
  background: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  right: -5%;
  top: 35%;
  transform: translateY(-50%);
  width: min(52vw, 540px);
  height: min(60vw, 460px);
  background: radial-gradient(
    ellipse at 58% 48%,
    rgba(225, 238, 252, 0.7) 0%,
    rgba(240, 232, 246, 0.35) 38%,
    rgba(255, 255, 255, 0) 68%
  );
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  width: min(960px, calc(100% - 96px));
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 20px 28px;
  align-items: center;
}

.hero__eyebrow {
  margin-bottom: 12px;
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.2vw, 2.85rem);
}

.hero__lead {
  margin: 0 0 20px;
  max-width: 44ch;
}

.hero__features {
  margin-top: 32px;
  display: flex;
  gap: 20px 24px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 88px;
  text-align: center;
  color: #304b78;
}

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--magenta);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.feature__label {
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  color: #3a4f6a;
}

.hero__media {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.hero__frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-inline: auto 0;
  padding: 12px 0 20px;
  overflow: visible;
}

.hero__glow {
  position: absolute;
  inset: 2% -4% 2% 8%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 55% 50%,
    rgba(240, 232, 246, 0.45) 0%,
    rgba(225, 238, 252, 0.25) 50%,
    transparent 72%
  );
  z-index: 0;
}

.hero__accent {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  z-index: 1;
  pointer-events: none;
}

.hero__accent--green {
  inset: -2% 18% 38% -8%;
  border-color: rgba(61, 158, 79, 0.35);
}

.hero__accent--magenta {
  inset: 32% -4% 2% 28%;
  border-color: rgba(184, 23, 126, 0.3);
}

.hero__accent--blue {
  inset: 8% -6% 22% 42%;
  border-color: rgba(43, 79, 154, 0.25);
}

.hero__oval {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #eef4fa;
  box-shadow:
    0 28px 64px rgba(26, 47, 87, 0.16),
    0 8px 24px rgba(26, 47, 87, 0.08);
}

.hero__oval::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.45) 18%,
    transparent 42%
  );
}

.hero__img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 32%;
  transform: scale(1.06);
}

/* Section title */
.sectionTitle {
  position: relative;
  z-index: 1;
  padding: 40px 0 24px;
  background: var(--bg);
}

.sectionTitle::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -48px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.sectionTitle__inner {
  text-align: center;
  width: 100%;
  margin-inline: auto;
}

.sectionTitle__eyebrow {
  margin-bottom: 8px;
}

.sectionTitle__h2 {
  font-size: clamp(1rem, 1.65vw, 1.5rem);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .sectionTitle__h2 {
    white-space: normal;
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  }
}

/* Product cards */
.productGrid {
  padding: 0 0 10px;
}

.productGrid__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
}

.productCard {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.productCard__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.productCard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.82;
}

.productCard--green::after {
  background: var(--green);
}

.productCard--magenta::after {
  background: var(--magenta);
}

.productCard--blue::after {
  background: var(--blue);
}

/* ORTOLAB = masáž | ORTOKIDS = detské nohy | ORTOSPORT = ortéza členku */
.productCard--green .productCard__bg {
  background-image: url("../img/foot_massage.webp");
  background-position: center 45%;
}

.productCard--magenta .productCard__bg {
  background-image: url("../img/sandals.webp");
  background-position: center 55%;
}

.productCard--blue .productCard__bg {
  background-image: url("../img/splint.webp");
  background-position: center 40%;
}

.productCard__content {
  position: relative;
  z-index: 2;
  padding: 36px 44px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 6px;
  text-align: center;
}

.productCard__content .btn--ghost {
  margin-top: 22px;
  align-self: center;
  width: fit-content;
}

.productCard__title {
  margin: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.03em;
  line-height: 1;
}

.productCard__mark {
  display: block;
  width: auto;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}

.productCard__bar {
  font-weight: 400;
  font-size: 1.05em;
  opacity: 0.95;
}

.productCard__text {
  margin: 0;
  width: 100%;
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  line-height: 1.45;
}

/* Medi – karta v kontajneri (fotka orezaná, nie full-bleed) */
.mediSection {
  margin-bottom: 48px;
}

.mediCard {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  max-width: 100%;
  box-shadow: none;
  outline: none;
}

.mediCard__media {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #fff;
}

.mediCard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 68%,
    rgba(255, 255, 255, 0.12) 78%,
    rgba(255, 255, 255, 0.45) 88%,
    rgba(255, 255, 255, 0.92) 96%,
    #fff 100%
  );
}

.mediCard__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.mediCard__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
}

.mediCard__text {
  margin: 0 0 18px;
  max-width: 36ch;
}

/* Facebook + formulár */
.contactSplit {
  padding: 56px 0 64px;
  background: #fff;
}

.contactSplit__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: stretch;
}

.fbBlock {
  position: relative;
  margin: 0;
  width: 100%;
  min-height: 280px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.fbBlock__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 38%;
}

.fbBlock__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.92) 55%,
    rgba(250, 251, 252, 0.97) 100%
  );
}

.fbBlock__title {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.12;
}

.fbBlock__text {
  margin: 0 0 20px;
  max-width: 28ch;
}

.fbBlock__btn {
  min-width: 160px;
}

.contactForm {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 0 36px;
  background: #fff;
}

.contactForm__head {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.contactForm__title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.08;
}

.contactForm__lead {
  max-width: 38ch;
}

.form {
  display: grid;
  gap: 16px;
}

.form--contact {
  flex: 1;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__field {
  display: grid;
  gap: 6px;
}

.form__label {
  font-size: 11px;
  color: var(--heading);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form__input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: var(--input-bg);
  color: var(--text);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form__input::placeholder {
  color: #9aa8ba;
}

.form__input:hover {
  border-color: #cdd5e0;
}

.form__input:focus {
  border-color: var(--magenta);
  background: #fff;
  box-shadow: var(--focus-ring);
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.form__check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.form__check a {
  color: var(--blue);
}

.form__honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__hint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.form__fallback {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.form__fallbackContacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.form__fallbackLink {
  color: var(--heading);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.form__fallbackLink:hover,
.form__fallbackLink:focus-visible {
  color: var(--magenta);
}

.form--contact {
  position: relative;
}

.notFound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contactForm__submit {
  margin-top: 4px;
  padding-block: 13px;
  font-size: 11px;
}

/* Footer – rovnaké pozadie ako header */
.site-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--line);
}

.footer__inner {
  padding: 40px 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer__brand {
  min-width: 0;
}

.footer__brandLink {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.footer__logo {
  width: auto;
  height: 54px;
  max-width: 200px;
  object-fit: contain;
  object-position: left top;
}

.footer__title {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading);
  font-weight: 700;
}

.footer__titleLink {
  color: inherit;
  text-decoration: none;
}

.footer__titleLink:hover {
  color: var(--magenta);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.footer__list a {
  color: #243a61;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 0;
}

.footer__list a:hover {
  color: var(--magenta);
}

.footer__text {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.footer__bottom {
  padding: 0 0 24px;
  color: #5a6b80;
  font-size: 11px;
}

.footer__bottomInner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  padding-top: 14px;
  position: relative;
}

.footer__bottomInner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(88%, 920px);
  border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 980px) {
  .nav {
    padding-bottom: 16px;
  }

  .nav__grid {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand {
    grid-column: 1;
  }

  .nav__body {
    grid-column: 1 / -1;
    display: none;
  }

  body.nav-open .nav__body {
    display: block;
  }

  .nav__toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .nav__row {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .nav__group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Na mobile subitemy pod sebou – fixný slot z desktopu by ich odrezal / vysunul von */
  .subnav {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .subnav:not(.is-open) {
    height: 0;
    min-height: 0;
    max-height: 0;
    margin-top: 0;
    padding: 0;
    border-top-color: transparent;
    overflow: hidden;
  }

  .subnav.is-open {
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 2px;
    padding-top: 8px;
    padding-bottom: 12px;
    overflow: visible;
  }

  .subnav.is-open .subnav__panel.is-visible {
    min-height: 0;
    align-content: start;
  }

  .subnav__panel.is-visible {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .subnav__link {
    padding: 6px 0;
  }

  body.nav-open .site-header {
    box-shadow: 0 8px 20px rgba(30, 45, 74, 0.06);
  }

  .hero > .container {
    width: min(var(--container), calc(100% - 40px));
  }

  /* Tablet: text + hero img stále vedľa seba */
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
    gap: 20px 24px;
    align-items: center;
  }

  .hero__media {
    justify-content: center;
    max-width: 100%;
    overflow: visible;
  }

  .hero__frame {
    width: min(260px, 100%);
    max-width: 100%;
    margin-inline: auto 0;
    padding: 14px 0 20px;
    overflow: visible;
  }

  .hero__glow {
    inset: 4% 0 4% 6%;
  }

  .hero__accent--green {
    inset: 0 16% 36% -4%;
  }

  .hero__accent--magenta {
    inset: 34% -2% 4% 28%;
  }

  .hero__accent--blue {
    inset: 10% -2% 22% 42%;
  }

  .hero__title {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  }

  .productCard__content {
    padding: 20px 16px 24px;
    gap: 4px;
  }

  .productCard__content .btn--ghost {
    margin-top: 12px;
    padding: 8px 14px;
    font-size: 10px;
  }

  .productCard__title {
    font-size: 15px;
    gap: 6px;
  }

  .productCard__mark {
    height: 26px;
  }

  .productCard__text {
    font-size: 10px;
    line-height: 1.35;
  }

  .mediCard {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .mediCard__media {
    /* Rovnaký pomer ako medi-card.jpg (1040×350) */
    min-height: 0;
    aspect-ratio: 1040 / 350;
  }

  /* Desktopový fade doprava (do textu) na stacked layoute mizne medi */
  .mediCard__media::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 70%,
      rgba(255, 255, 255, 0.4) 90%,
      #fff 100%
    );
  }

  .mediCard__img {
    object-fit: contain;
    object-position: center center;
  }

  .mediCard__body {
    padding: 22px 0 0;
  }

  .mediCard__body .eyebrow,
  .mediCard__body .mediCard__text {
    padding-inline: 4px;
  }

  .mediCard__body .btn {
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
  }

  .contactSplit__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .fbBlock {
    min-height: 220px;
    aspect-ratio: 3 / 2;
  }

  .contactForm {
    padding: 22px 0 32px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px 28px;
    padding: 28px 0 20px;
    align-items: start;
  }

  .footer__logo {
    height: 44px;
  }

  .footer__title {
    margin: 0 0 8px;
  }

  .footer__list a {
    min-height: 0;
    padding: 2px 0;
  }

  .footer__text {
    line-height: 1.45;
  }

  .footer__bottom {
    padding: 0 0 16px;
  }

  .footer__bottomInner {
    padding-top: 10px;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px 24px;
  }

  .form__fallbackContacts {
    flex-wrap: nowrap;
  }

  /* Textová sekcia „Ortotické centrum“ len na desktope */
  .footer__col--about {
    display: none;
  }
}

@media (max-width: 720px) {
  /* Bez miesta na 1 riadok – skryť dlhý odkaz, ostanú Ortotické centrum + Kontakt */
  .topbar__link--privacy {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .topbar__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__features {
    flex-wrap: nowrap;
    gap: 6px 8px;
    justify-content: space-between;
    margin-top: 28px;
  }

  .feature {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    gap: 6px;
  }

  .feature__label {
    font-size: 10px;
    line-height: 1.25;
    hyphens: auto;
  }

  /* Úzky mobil: hero pod sebou, img hore */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__media {
    order: -1;
    justify-content: center;
  }

  .hero__frame {
    width: min(280px, 72vw);
    margin-inline: auto;
    padding: 18px 0 28px;
  }

  .hero::before {
    right: 50%;
    transform: translate(50%, -50%);
    width: 100%;
    height: 60%;
  }

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

  .productCard__content {
    padding: 36px 28px 40px;
    gap: 6px;
  }

  .productCard__content .btn--ghost {
    margin-top: 22px;
    padding: 10px 20px;
    font-size: 11px;
  }

  .productCard__title {
    font-size: 20px;
    gap: 10px;
  }

  .productCard__mark {
    height: 34px;
  }

  .productCard__text {
    font-size: 11px;
    line-height: 1.45;
  }

  .footer__inner {
    grid-template-columns: auto auto;
    justify-content: center;
    justify-items: start;
    column-gap: 36px;
    row-gap: 16px;
    padding: 20px 20px 14px;
  }

  .footer__brand {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }

  .footer__logo {
    height: 40px;
    max-width: 180px;
  }

  /* Nadpisy na mobile zbytočne lámu text – stačia odkazy a adresa */
  .footer__col--nav .footer__title,
  .footer__col--hq .footer__title {
    display: none;
  }

  .footer__list {
    gap: 0;
  }

  .footer__list a {
    font-size: 11px;
    padding: 1px 0;
  }

  .footer__text {
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
  }

  .footer__bottom {
    padding: 0 0 12px;
  }

  .footer__bottomInner {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-inline: 12px;
  }

  /* Cookies nad copyrightom – copyright ostane v jednom riadku */
  .footer__bottomInner > span {
    order: 2;
    white-space: nowrap;
  }

  .footer__cookieBtn {
    order: 1;
    white-space: nowrap;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------
   Cookie lišta – nemodálna, neblokuje obsah (žiadny consent wall).
   Obe tlačidlá majú rovnakú veľkosť aj váhu (požiadavka EDPB).
   --------------------------------------------------------------- */
.footer__cookieBtn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.footer__cookieBtn:hover,
.footer__cookieBtn:focus-visible {
  color: var(--magenta);
}

.cookieConsent {
  position: fixed;
  z-index: 1000;
  inset-inline: 0;
  bottom: 0;
  padding: 16px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(30, 45, 74, 0.12);
}

.cookieConsent[hidden] {
  display: none;
}

.cookieConsent__inner {
  width: min(var(--container), calc(100% - 16px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.cookieConsent__body {
  flex: 1 1 320px;
  min-width: 0;
}

.cookieConsent__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
}

.cookieConsent__title:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

.cookieConsent__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.cookieConsent__link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookieConsent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.cookieConsent__btn {
  flex: 1 1 auto;
  min-width: 140px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cookieConsent__btn--accept {
  border: 1px solid var(--magenta);
  background: var(--magenta);
  color: #ffffff;
}

.cookieConsent__btn--accept:hover,
.cookieConsent__btn--accept:focus-visible {
  background: #9d1469;
  border-color: #9d1469;
}

.cookieConsent__btn--reject {
  border: 1px solid var(--navy);
  background: var(--bg);
  color: var(--navy);
}

.cookieConsent__btn--reject:hover,
.cookieConsent__btn--reject:focus-visible {
  background: var(--navy);
  color: #ffffff;
}

.cookieConsent__btn:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .cookieConsent__inner {
    align-items: stretch;
  }

  .cookieConsent__actions {
    flex: 1 1 100%;
  }

  .cookieConsent__btn {
    min-width: 0;
  }
}

/* Podstránky: assets/css/pages.css (načítať po site.css) */

/* ------------------------------------------------------------------ print */

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .cookieConsent,
  .nav__toggle,
  .backToTop,
  .footer__cookieBtn,
  [data-cookie-settings] {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  a {
    color: #000 !important;
    text-decoration: underline !important;
  }

  .hero,
  .productCard,
  .catalogCard,
  img {
    break-inside: avoid;
  }
}
