/* ==========================================================================
   Rodinná poradňa od A po Z — homepage styles
   ========================================================================== */

@font-face {
  font-family: 'Crimson Pro';
  src: url("assets/fonts/crimson-pro.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Crimson Pro';
  src: url("assets/fonts/crimson-pro-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Vujahday Script';
  src: url("assets/fonts/vujahday-script.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #3D2217;
  /* Primary/primary-500 - dark brown, main text & dark buttons */
  --color-secondary: #F0E9D5;
  /* Secondary/secondary-500 - cream background */
  --color-neutral: #764B2A;
  /* Neutral/neutral-500 - mid brown, section bg & accent text */
  --color-neutral-600: #6B4426;
  /* Neutral/neutral-600 - badge text */
  --color-accent-pink: #F1D1E7;
  /* Accent/accent-500 - pink cards */
  --color-accent-600: #ECC0DE;
  /* Accent/accent-600 - link hover */
  --color-accent-400: #F6E0EF;
  /* Button/Navigation State=Active - current page in the nav */
  --color-tertiary: #B8BA87;
  /* Tertiary/tertiary-500 - olive */
  --color-tertiary-light: #DEE1B7;
  /* Tertiary/tertiary-300 - light olive */
  --color-yellow-50: #FDEDD3;
  /* Doplnkové farby/žltá-50 */
  --color-outline-dark: #644E45;
  /* border of the dark outline button */

  /* button hover eases in; reused by .btn-brand.fade-up, whose own transition would replace it */
  --btn-transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;

  /* Figma "Noise" effect: scattered brown specks, same settings as the Figma export in subtract-bg.svg.
     Colors and density live in assets/images/noise.svg */
  --noise: url("assets/images/noise.svg");

  --font-serif: 'Crimson Pro', serif;
  --font-script: 'Vujahday Script', cursive;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* no grey tap flash on phones */
  -webkit-tap-highlight-color: transparent;
}

/* with the hamburger menu, links jump straight to their section instead of smooth-scrolling */
@media (max-width: 992px) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  line-height: 1.5;
  font-family: var(--font-serif);
  color: var(--color-primary);
  background-color: var(--color-secondary);
  overflow-x: hidden;
  /* match Figma's thinner text rendering (macOS browsers draw text heavier by default) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

strong,
b {
  font-weight: 700;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

svg {
  vertical-align: middle;
}

/* buttons use the page font instead of the browser's system font */
button {
  font: inherit;
  color: inherit;
  border-radius: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* ---------- Utilities (same names as the Bootstrap ones they replace) ----------
   Defined before the components, so a component or breakpoint rule can override them
   without !important */
.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-grow-1 {
  flex-grow: 1;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.justify-content-between {
  justify-content: space-between;
}

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

.m-0 {
  margin: 0;
}

/* ---------- Typography ---------- */

.h1-hero {
  font-weight: 300;
  /* 80px at 1440, down to 64px on smaller desktops so the hero lines still fit */
  font-size: clamp(64px, 5.556vw, 80px);
  line-height: 1.1;
  letter-spacing: -2.4px;
}

.h2-display {
  font-weight: 300;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -1.28px;
}

.h3-display {
  font-weight: 300;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.72px;
}

.h4-display {
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.64px;
}

.body-text {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
}


.body-text-large
{
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;

}

.script-accent {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-neutral);
}

.italic-serif {
  font-style: italic;
  font-weight: 300;
}

/* ---------- Buttons ---------- */

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 64px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.16px;
  white-space: nowrap;
  border: none;
  transition: var(--btn-transition);
  line-height: normal;
  font-weight: 400;
}

/* hover styles only on devices with a mouse: on phones a tap leaves them stuck on */
@media (hover: hover) {
  .btn-brand:hover {
    background-color: var(--color-accent-pink);
    color: var(--color-primary);
  }
}

.btn-brand:active {
  transform: scale(0.98);
}

.btn-brand-dark {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

.btn-brand-light {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.btn-brand-outline-dark {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-outline-dark);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.02);
}

.btn-brand-outline-neutral {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-neutral);
}

@media (hover: hover) {
  .btn-brand-outline-dark:hover,
  .btn-brand-outline-neutral:hover {
    border-color: var(--color-accent-pink);
  }
}

.btn-brand .icon-arrow {
  width: 12px;
  height: 7px;
  flex-shrink: 0;
  overflow: visible;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  font-weight: 700;
  font-size: 16px;
  line-height: normal;
  border: none;
  background: none;
  color: var(--color-primary);
}


.link-more .icon-plus {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.link-more .icon-plus-remove,
.link-more[aria-expanded="true"] .icon-plus-add {
  display: none;
}

.link-more[aria-expanded="true"] .icon-plus-remove {
  display: inline;
}

.link-more {
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .link-more:hover {
    color: var(--color-neutral);
  }
}

.link-more-label {
  text-decoration-color: transparent;
  transition: text-decoration-color 0.4s ease;
}

@media (hover: hover) {
  .link-more:hover .link-more-label {
    text-decoration-color: currentColor;
  }
}

.link-brand {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  transition: color 0.2s ease;
}

.link-brand-light {
  color: var(--color-secondary);
}

.link-brand:focus-visible {
  color: var(--color-accent-600);
}

@media (hover: hover) {
  .link-brand:hover {
    color: var(--color-accent-600);
  }
}

/* Noise texture on buttons and paper-like notes/cards, as in Figma */
.btn-brand,
.topic-dropdown,
.faq-item,
.meeting-note,
.faq-note,
.contact-card,
.helping-section,
.contact-section,
.education-section {
  background-image: var(--noise);
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-secondary);
  padding: 24px 64px;
  transition: transform 0.35s ease;
}

.site-nav.nav-hidden {
  transform: translateY(-100%);
}

.site-nav .logo {
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -0.48px;
  line-height: normal;
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav .nav-link {
  padding: 8px;
  border-radius: 8px;
  font-size: 16px;
  letter-spacing: 0.16px;
  line-height: normal;
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .site-nav .nav-link:hover {
    background-color: var(--color-accent-pink);
  }
}

.site-nav .nav-link.is-active {
  background-color: var(--color-accent-400);
}

/* links + Instagram sit together on the right */
.site-nav .nav-links {
  margin-left: auto;
}

/* Instagram icon at the right end of the nav (left of the hamburger on phones/tablets) */
.nav-instagram {
  display: inline-flex;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-left: 16px;
  border-radius: 8px;
  color: var(--color-primary);
  transition: background-color 0.2s ease;
}

.nav-instagram svg {
  width: 100%;
  height: 100%;
}

@media (hover: hover) {
  .nav-instagram:hover {
    background-color: var(--color-accent-pink);
  }
}

/* the menu copy only exists in the phone/tablet menu */
.nav-menu-instagram {
  display: none;
}

/* hamburger */
.nav-toggle {
  display: none;
}

/* spacer so content isn't hidden under the fixed nav */
.nav-spacer {
  height: 82px;
}

/* anchor links land right below the fixed nav (--nav-height is measured in script.js) */
section[id] {
  scroll-margin-top: var(--nav-height, 82px);
}

/* logo link always scrolls back to the very top: a margin taller than the offset gets clamped to 0 */
#domov {
  scroll-margin-top: 100vh;
}


/* ---------- Hero ---------- */

.hero-section {
  background-color: var(--color-secondary);
  padding: 0 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(48px, 5.556vw, 80px);
  min-height: 794px;
}

/* large desktop monitors: text + image centered as one block instead of hugging the right edge.
   Laptops (incl. MacBooks up to 1728px) keep the Figma layout with the image flush right */
@media (min-width: 1800px) {
  .hero-section {
    padding: 0;
    justify-content: center;
  }

  /* nav lines up with that block: 535px text + 80px gap + 716px image = 1331px */
  .site-nav {
    padding-left: calc((100% - 1331px) / 2);
    padding-right: calc((100% - 1331px) / 2);
  }
}

.hero-slogan {
  max-width: 535px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero-text-group {
  gap: 40px;
}

.hero-text {
  gap: 32px;
}

.hero-slogan .body-text {
  color: var(--color-neutral);
}

.hero-note {
  transform: rotate(-10deg);
  display: inline-block;
  white-space: pre-line;
}

.hero-image-frame {
  position: relative;
  width: 716px;
  max-width: 50vw;
  height: 794px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Figma crop (716×794 frame): image 137.18% tall, shifted up 37.15%,
   right edge 264px past the frame — anchored right so a narrower frame
   only trims the left side and never leaves a gap */
.hero-image-frame img {
  position: absolute;
  top: -37.15%;
  right: -264px;
  height: 137.18%;
  width: auto;
  max-width: none;
}

/* fade-up entrance used on hero + a couple of other headings, per design note
   "load in gradually like the heading" */
.fade-up {
  opacity: 0;
  /* translate (not transform) so it stacks with the tilt on the script notes (rotate in transform) */
  translate: 0 64px;
  /* ease-out curve: starts fast and settles gently, so it reads as moving in rather than just fading */
  transition:
    opacity 1.5s ease-out var(--fade-delay, 0s),
    translate 1.2s cubic-bezier(0.22, 1, 0.36, 1) var(--fade-delay, 0s);
}

/* a button keeps its hover transition (with no delay) on top of the fade-up */
.btn-brand.fade-up {
  transition:
    opacity 1.5s ease-out var(--fade-delay, 0s),
    translate 1.2s cubic-bezier(0.22, 1, 0.36, 1) var(--fade-delay, 0s),
    var(--btn-transition);
}

.fade-up.in-view {
  opacity: 1;
  translate: 0 0;
}

.fade-up-delay-1.in-view {
  --fade-delay: 0.3s;
}

.fade-up-delay-2.in-view {
  --fade-delay: 0.7s;
}

.fade-up-delay-3.in-view {
  --fade-delay: 1.1s;
}

/* hero + footer titles come in line by line: each .title-line is its own .fade-up,
   staggered by its --line index (lines split by hand as in Figma at 1440px) */
.title-line {
  display: block;
}

.title-line.in-view {
  --fade-delay: calc(var(--line, 0) * 0.15s);
}

/* education items come in row by row, left to right: --col is the item's column in its row (set in script.js) */
.education-item.in-view {
  --fade-delay: calc(var(--col, 0) * 0.2s);
}

/* phones: quicker, shorter fade-up so text doesn't lag behind scrolling */
@media (max-width: 767px) {
  .fade-up {
    translate: 0 32px;
    transition:
      opacity 0.7s ease-out var(--fade-delay, 0s),
      translate 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--fade-delay, 0s);
  }

  .btn-brand.fade-up {
    transition:
      opacity 0.7s ease-out var(--fade-delay, 0s),
      translate 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--fade-delay, 0s),
      var(--btn-transition);
  }

  .fade-up-delay-1.in-view {
    --fade-delay: 0.1s;
  }

  .fade-up-delay-2.in-view {
    --fade-delay: 0.2s;
  }

  .fade-up-delay-3.in-view {
    --fade-delay: 0.3s;
  }

  .title-line.in-view {
    --fade-delay: calc(var(--line, 0) * 0.08s);
  }

  /* hero keeps the slower, desktop pace on phones: it's the first thing people see */
  .hero-section .fade-up {
    transition:
      opacity 1.5s ease-out var(--fade-delay, 0s),
      translate 1.2s cubic-bezier(0.22, 1, 0.36, 1) var(--fade-delay, 0s);
  }

  .hero-section .btn-brand.fade-up {
    transition:
      opacity 1.5s ease-out var(--fade-delay, 0s),
      translate 1.2s cubic-bezier(0.22, 1, 0.36, 1) var(--fade-delay, 0s),
      var(--btn-transition);
  }

  .hero-section .fade-up-delay-2.in-view {
    --fade-delay: 0.7s;
  }

  .hero-section .fade-up-delay-3.in-view {
    --fade-delay: 1.1s;
  }

  .hero-section .title-line.in-view {
    --fade-delay: calc(var(--line, 0) * 0.15s);
  }
}

/* ---------- Helping section ("S čím pomáham") ---------- */

.helping-section {
  background-color: var(--color-neutral);
  color: var(--color-secondary);
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.03);
  padding: 88px 64px;

}

.helping-inner {
  max-width: 1090px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.help-container {
  max-width: 424px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.help-heading {
  gap: 16px;
}

.help-container .btn-brand {
  align-self: flex-start;
}

.topics-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 535px;
}

/* Figma "Dropdown" component: Closed (16px 24px) / Hover (accent-600) / Open (24px, text + badges) */
.topic-dropdown {
  background-color: var(--color-accent-pink);
  color: var(--color-neutral);
  border-radius: 16px;
  padding: 16px 24px;
  width: 100%;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.03);
  /* bottom padding eases together with the details slide in script.js (550ms) */
  transition: background-color 0.2s ease, padding 0.55s ease;
}

/* only on devices with a real hover (mouse): on phones a tap would flash the hover color */
@media (hover: hover) {
  .topic-dropdown:not(.is-open):hover {
    background-color: var(--color-accent-600);
  }
}

.topic-dropdown.is-open {
  /* only the bottom grows: the title stays put while the card opens, as in the FAQ */
  padding-bottom: 24px;
}

.topic-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  text-align: left;
}

.topic-dropdown .icon-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 24px;
  transition: transform 0.35s ease;
}

/* open: the + rotates 45° and lands as an × */
.topic-dropdown.is-open .icon-chevron {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .topic-dropdown .icon-chevron {
    transition: none;
  }
}

.topic-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: hidden;
}

/* gap under the title sits inside the clipped panel, so it doesn't change while the panel slides open */
.topic-details> :first-child {
  padding-top: 24px;
}

.topic-details[hidden] {
  display: none;
}

.topic-details .body-text-large {
  font-weight: 400;
}

/* "Objednajte sa" at the bottom of an open card: button width, not stretched across the card */
.topic-button {
  align-self: flex-start;
}

.topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Figma "Badge" component */
.badge-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 8px;
  background-color: var(--color-yellow-50);
  color: var(--color-neutral-600);
  font-size: 20px;
  line-height: 1.3;
  white-space: nowrap;
}

/* Figma Dropdown, Device=Mobile */
@media (max-width: 767px) {
  .topic-dropdown .h4-display {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.56px;
  }

  /* same 16px sides closed and open, so the text doesn't shift or re-wrap while the card opens */
  .topic-dropdown {
    padding: 16px;
  }

  .topic-details> :first-child {
    padding-top: 16px;
  }

  .topic-details .body-text-large {
    font-size: 20px;
    line-height: 1.3;
  }
}

.collaboration-block {
  max-width: 1090px;
  margin: 88px auto 0;
}

.collaboration-text {
  gap: 24px;
}

.collaboration-block .body-text {
  max-width: 533px;
}

.collaboration-block a {
  font-style: italic;
  text-decoration: underline;
}

@media (hover: hover) {
  .collaboration-block a:hover {
    color: var(--color-accent-pink);
  }
}

/* ---------- Parenthood section ---------- */

.parenthood-section {
  background-color: var(--color-secondary);
  padding: 160px 64px 88px;
}

.parenthood-inner {
  max-width: 1088px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  position: relative;
}

.parent-image-frame {
  position: relative;
  width: 424px;
  height: 530px;
  overflow: hidden;
  flex-shrink: 0;
}

.parent-image-frame img {
  position: absolute;
  top: -13%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.parent-note {
  position: absolute;
  /* 50px left of where the text column starts (Figma: right 408.333px of the 1088px row),
     so it stays with the heading when the text column narrows below 1200px */
  left: max(calc(100% - 585px), 438px);
  top: -72px;
  transform: rotate(-10deg);
  z-index: 2;
}

.parent-content {
  max-width: 535px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.parent-text {
  gap: 24px;
}

.parent-content .btn-brand {
  align-self: flex-start;
}

.parent-content p+p {
  margin-top: 24px;
}

/* ---------- Meeting ("Stretneme sa") section ---------- */

.meeting-section {
  position: relative;
  padding: 90px 64px 0;
  overflow: hidden;
}

.meeting-bg {
  position: absolute;
  top: -2px;
  left: -6px;
  width: calc(100% + 12px);
  /* overrides the global img max-width: 100%, which otherwise leaves a 12px gap on the right */
  max-width: none;
  /* Natural aspect ratio by default, but stretch (SVG uses preserveAspectRatio="none")
     whenever the content grows taller – e.g. opened option details – so the note stays on green */
  height: max(calc(100% + 4px), calc((100vw + 12px) * 1447 / 1448));
  z-index: 0;
  pointer-events: none;
}

.meeting-inner {
  position: relative;
  z-index: 1;
  max-width: 1090px;
  margin: 0 auto;
  padding-top: 38px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 128px;
}

.meeting-heading-text {
  gap: 24px;
}

.meeting-heading .body-text {
  max-width: 534px;
}

.meeting-options {
  display: flex;
  flex-wrap: wrap;
  gap: 64px 120px;
  margin-top: 88px;
}

.meeting-option {
  width: 424px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meeting-option-label {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  background-color: var(--color-tertiary-light);
  border-radius: 2px;
  padding: 0 4px;
}

/* Closed: 8px between body text and button; open: details sit 16px below, button 16px below them */
.meeting-option>.link-more {
  align-self: flex-start;
  margin-top: -8px;
  /* eases together with the details slide in script.js (550ms) */
  transition: margin-top 0.55s ease;
}

.meeting-option.is-open>.link-more {
  margin-top: 0;
}

.meeting-option-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.meeting-option-details[hidden] {
  display: none;
}

.meeting-note-wrap {
  display: flex;
  justify-content: center;
}

.meeting-note {
  transform: rotate(3.14deg);
  background-color: var(--color-secondary);
  width: 535px;
  max-width: 90vw;
  padding: 80px 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.03);
}

/* ---------- FAQ section ---------- */

.faq-section {
  background-color: var(--color-secondary);
  padding: 88px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 88px;
}

.faq-header {
  max-width: 866px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.faq-header .body-text {
  max-width: 580px;
}

.faq-accordion {
  width: 100%;
  max-width: 866px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  background-color: var(--color-secondary);
  border-radius: 16px;
  border: none;
  width: 100%;
  text-align: left;
  overflow: hidden;
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.03);
  transition: background-color 0.55s ease;
}

.faq-item.is-open {
  background-color: var(--color-accent-pink);
}



.faq-question {
  width: 100%;
  display: flex;
  /* the × stays on the first line when the question wraps (centered on that line below) */
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  padding: 16px 32px;
  text-align: left;
  color: var(--color-primary);
  cursor: pointer;
}

.faq-question .icon-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  /* 1lh = one line of the question text, so the icon is centered on the first line at every text size */
  margin-top: calc((1lh - 20px) / 2);
  transition: transform 0.35s ease;
}

/* open: the + rotates 45° and lands as an ×, same as the topic cards */
.faq-item.is-open .icon-chevron {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq-question .icon-chevron {
    transition: none;
  }
}

/* opens / closes with the slide animation in script.js (hidden when closed) */
.faq-answer {
  overflow: hidden;
  padding: 0 32px 16px;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  font-size: 20px;
  line-height: 1.3;
}

.faq-answer p+p {
  margin-top: 24px;
}


.faq-note-text {
  gap: 16px;
}

.faq-note-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.faq-note {
  transform: rotate(0.6deg);
  background-color: var(--color-yellow-50);
  width: 589px;
  max-width: 90vw;
  padding: 80px 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

/* ---------- Contact section ---------- */

.contact-section {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: 88px 64px;
}

.contact-inner {
  display: flex;
  gap: 32px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.contact-heading {
  gap: 24px;
}

.contact-column {
  width: 531px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.contact-group-form {
  gap: 32px;
}

.contact-email-link {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.64px;
}

.contact-note {
  width: 424px;
  max-width: 100%;
}

.contact-card-wrap {
  flex: 0 1 535px;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.contact-card {
  transform: rotate(3.14deg);
  background-color: var(--color-accent-pink);
  color: var(--color-primary);
  width: 100%;
  max-width: 90vw;
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.03);
}

.contact-card-content {
  width: 424px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: rotate(0.51deg);
}

.contact-card p+p {
  margin-top: 24px;
}

/* ---------- Footer ---------- */

.site-footer-top {
  background-color: var(--color-secondary);
  padding: 144px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-info {
  max-width: 866px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 866px;
}

/* was an inline style: more specific than .h1-hero so the tablet rule doesn't shrink it */
.footer-text .footer-title {
  width: 100%;
  font-size: 64px;
}

.footer-text .body-text {
  color: var(--color-neutral);
  max-width: 536px;
  margin: 0 auto;
}

.site-footer-links {
  background-color: var(--color-secondary);
  border-top: 0.5px solid var(--color-neutral);
  padding: 32px 64px;
}

.footer-links-inner {
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 88px;
}

.footer-logo-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-box .logo {
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.48px;
}

.footer-logo-box .logo {
  line-height: normal;
}

.footer-logo-box .subtitle {
  color: var(--color-neutral);
  font-size: 20px;
  line-height: 1.3;
}

.footer-nav-column {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-heading {
  opacity: 0.6;
  font-size: 16px;
  letter-spacing: 0.16px;
  line-height: normal;
  padding: 0 8px;
  color: var(--color-neutral);
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-links a {
  padding: 8px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-neutral);
  transition: opacity 0.2s ease;
}

/* Instagram link: the same icon as in the nav, on the left of the text */
.footer-legal-links .footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-instagram svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  /* the drawing has ~7px of empty space on each side: trim it so the icon lines up with the
     email link below and sits 6px from the text */
  margin: 0 -7px;
}

@media (hover: hover) {
  .footer-legal-links a:hover {
  color:var(--color-accent-600);
  }
}

.site-footer-copyright {
  background-color: var(--color-secondary);
  border-top: 0.5px solid var(--color-neutral);
  padding: 16px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer-copyright p {
  font-size: 14px;
  letter-spacing: 0.14px;
  line-height: normal;
  color: var(--color-neutral);
  margin: 0;
}

.copyright-text {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* ---------- Prax a vzdelanie page ---------- */

/* Figma 1440 frame: 643px text column + 96px gap + 535px photo column, 83px side margins.
   The photo column is sticky: it stays put while the experience list scrolls past it */
.prax-section {
  background-color: var(--color-secondary);
  padding: 0 clamp(48px, 5.764vw, 83px) 34px;
}

.prax-layout {
  display: grid;
  grid-template-columns: minmax(0, 643px) clamp(424px, 37.153vw, 535px);
  grid-template-areas:
    "header aside"
    "list   aside";
  column-gap: clamp(48px, 6.667vw, 96px);
  justify-content: center;
}

/* header row is as tall as the photo column (48 + 530 + note), text sits 208px down */
.prax-header {
  grid-area: header;
  min-height: 662px;
  padding-top: 208px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
}

.prax-subtitle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--color-neutral);
}

.prax-subtitle-arrow {
  display: block;
  width: 14px;
  height: 51px;
  padding-top: 13.67px;
  overflow: hidden;
  flex-shrink: 0;
}

.prax-subtitle-arrow img {
  display: block;
}

.prax-aside {
  grid-area: aside;
  align-self: start;
  position: sticky;
  top: var(--nav-height, 82px);
  padding-top: 48px;
}

.prax-image-frame {
  position: relative;
  width: 424px;
  max-width: 100%;
  height: 530px;
  overflow: hidden;
}

/* Figma crop: image 120% tall, shifted up 18.94% */
.prax-image-frame img {
  position: absolute;
  top: -18.94%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
}

/* 84px-tall row under the photo (Figma 302:520); the tilted note is centered in it, right-aligned */
.prax-note-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 84px;
  padding-right: 3px;
}

.prax-note {
  width: 201px;
  transform: rotate(-7.47deg);
}

.experience-list {
  grid-area: list;
  justify-self: end;
  width: 535px;
  max-width: 100%;
  padding: 88px 0;
  display: flex;
  flex-direction: column;
  gap: 160px;
}

.experience-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.experience-label {
  background-color: var(--color-yellow-50);
  color: var(--color-neutral-600);
  border-radius: 2px;
  padding: 0 4px;
}

.experience-text {
  max-width: 424px;
  font-size: 24px;
  line-height: 1.4;
  color: var(--color-primary);
}

.experience-text em,
.education-item em {
  font-style: italic;
}

.education-section {
  background-color: var(--color-neutral);
  color: var(--color-secondary);
  /* on wide screens the content stays a centered 1304px block (3 items × 424px + 2 × 16px gap)
     instead of spreading to the edges; below that it's the usual 64px sides */
  padding: 88px max(64px, calc((100% - 1304px) / 2));
  display: flex;
  flex-direction: column;
  gap: 160px;
}

.education-header {
  width: 788px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.education-header .body-text {
  max-width: 529px;
}

.education-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 88px 16px;
}

.education-item {
  width: 424px;
  max-width: 100%;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- Ochrana osobných údajov page ---------- */

/* desktop: intro column + 535px text column, 88px apart, max 1090px wide */
.privacy-section {
  background-color: var(--color-secondary);
  padding: 88px 64px 145px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 535px;
  column-gap: 88px;
  max-width: 1090px;
  margin: 0 auto;
}

/* intro stays in place below the nav while the text on the right scrolls */
.privacy-intro {
  align-self: start;
  position: sticky;
  top: calc(var(--nav-height, 82px) + 48px);
}

.privacy-script {
  transform: rotate(-3deg);
  transform-origin: left;
}

.privacy-title {
  margin-top: 12px;
}

.privacy-lead {
  max-width: 424px;
  margin-top: 24px;
}

.privacy-date {
  margin-top: 24px;
  color: var(--color-neutral);
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* yellow label heading, same look as .experience-label */
.privacy-heading {
  display: inline-block;
  margin: 0;
  padding: 0 4px;
  border-radius: 2px;
  background-color: var(--color-yellow-50);
  color: var(--color-neutral-600);
  font-weight: 400;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.64px;
}

.privacy-text {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-text p {
  margin: 0;
}

.privacy-text strong {
  font-weight: 700;
}

.privacy-list {
  margin: 0;
  padding-left: 24px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-list li::marker {
  color: var(--color-neutral);
}

/* text links (and the cookie settings button, styled as a link) */
.privacy-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .privacy-link:hover {
    color: var(--color-neutral);
  }
}

.privacy-button {
  margin-top: 40px;
}

/* tablet + phone: one column, intro on top and no longer sticky */
@media (max-width: 992px) {
  .privacy-section {
    padding: 64px 32px;
  }

  .privacy-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 64px;
  }

  .privacy-intro {
    position: static;
  }

  .privacy-button {
    margin-top: 32px;
  }
}

@media (max-width: 767px) {
  .privacy-section {
    padding: 48px 16px;
  }

  .privacy-layout {
    row-gap: 48px;
  }

  .privacy-content {
    gap: 48px;
  }

  .privacy-script {
    font-size: 20px;
    transform: none;
  }

  .privacy-heading {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.56px;
  }
}

/* ---------- Cookies bar ---------- */

/* "Nastavenia cookies" in the footer: a button that looks like the footer text */
.footer-cookie-settings {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* dims the page while the preferences are open (above the nav, below the bar) */
.cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background-color: rgba(61, 34, 23, 0.4);
  touch-action: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cookie-backdrop.is-visible {
  opacity: 1;
}

.cookie-backdrop[hidden],
.cookie-banner[hidden] {
  display: none;
}

/* yellow card bottom-left; slides up + fades in when shown (classes set in script.js) */
.cookie-banner {
  position: fixed;
  z-index: 900;
  left: 16px;
  right: 16px;
  bottom: 16px;
  opacity: 0;
  translate: 0 24px;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), translate 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-in {
  opacity: 1;
  translate: 0 0;
}

.cookie-banner.is-out {
  opacity: 0;
  translate: 0 16px;
  transition-duration: 0.5s;
}

/* preferences open: a dialog above the backdrop */
.cookie-banner.is-dialog {
  z-index: 1101;
}

.cookie-card {
  position: relative;
  background-color: var(--color-yellow-50);
  background-image: var(--noise);
  color: var(--color-primary);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.03), 0 12px 40px rgba(61, 34, 23, 0.14);
}

.cookie-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--color-neutral);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.cookie-close svg {
  width: 16px;
  height: 16px;
}

@media (hover: hover) {
  .cookie-close:hover {
    opacity: 1;
    background-color: var(--color-accent-pink);
  }
}

.cookie-scroll {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
}

.cookie-script {
  font-size: 20px;
}

.cookie-title {
  margin: 8px 0 0;
  padding-right: 32px;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.56px;
}

.cookie-title-prefs {
  margin-top: 0;
  outline: none;
}

.cookie-text {
  margin: 16px 0 0;
}

.cookie-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cookie-actions-save {
  margin-top: 32px;
}

.cookie-options {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cookie-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-option-label {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

.cookie-option-text {
  margin: 8px 0 0;
}

.cookie-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background-color: var(--color-tertiary-light);
  color: var(--color-neutral-600);
  font-size: 14px;
}

/* on/off switch: knob slides right and the track turns dark when on */
.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--color-outline-dark);
  border-radius: 999px;
  background-color: var(--color-secondary);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cookie-switch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-neutral);
  translate: 0 -50%;
  transition: translate 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.cookie-switch[aria-checked="true"] {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.cookie-switch[aria-checked="true"]::after {
  background-color: var(--color-secondary);
  translate: 20px -50%;
}

@media (min-width: 768px) {
  .cookie-banner {
    left: 32px;
    right: auto;
    bottom: 32px;
    width: 480px;
  }

  .cookie-scroll {
    max-height: calc(100dvh - 64px);
    padding: 32px;
  }

  .cookie-script {
    transform: rotate(-3deg);
    transform-origin: left;
  }
}

@media (min-width: 993px) {
  .cookie-banner {
    left: 64px;
  }

  .cookie-script {
    font-size: 24px;
  }

  .cookie-title {
    font-size: 30px;
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cookie-banner,
  .cookie-backdrop,
  .cookie-switch,
  .cookie-switch::after {
    transition: none;
  }
}

/* ---------- 404 page ---------- */

/* simplified header: just the logo, not fixed */
.error-header {
  display: flex;
  align-items: center;
  height: 82px;
  padding: 0 72px 0 64px;
  background-color: var(--color-secondary);
}

.error-header .logo {
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -0.48px;
  line-height: normal;
}

/* fills the rest of the screen, content centered */
.error-main {
  min-height: calc(100dvh - 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  background-color: var(--color-secondary);
}

.error-content {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.error-script {
  transform: rotate(-3deg);
}

.error-title {
  margin-top: 24px;
}

.error-text {
  max-width: 540px;
  margin-top: 31px;
  color: var(--color-neutral);
}

.error-button {
  margin-top: 40px;
}

@media (max-width: 992px) {
  .error-header {
    height: 72px;
    padding: 0 16px;
  }

  .error-header .logo {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.4px;
  }

  .error-main {
    min-height: calc(100dvh - 72px);
  }

  .error-title {
    margin-top: 16px;
  }

  .error-text {
    margin-top: 32px;
  }
}

/* phones: left-aligned, as in the design */
@media (max-width: 767px) {
  .error-main {
    padding: 48px 16px;
  }

  .error-content {
    align-items: flex-start;
    text-align: left;
  }

  .error-script {
    transform: none;
  }

  .error-text {
    margin-top: 16px;
  }

  .error-button {
    margin-top: 32px;
  }
}

/* ---------- Responsive: keep it usable below desktop widths ---------- */

/* Small desktops / iPad landscape (993–1200px): same layouts as 1440, just tighter */
@media (min-width: 993px) and (max-width: 1200px) {

  /* narrower photo leaves room for the hero heading */
  .hero-image-frame {
    max-width: 45vw;
  }

  /* same zoom as the Figma crop, but centered in the frame: the narrower frame trims both sides evenly */
  .hero-image-frame img {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  /* meeting options stay 2 × 2 */
  .meeting-options {
    column-gap: 48px;
  }

  .meeting-option {
    width: min(424px, calc(50% - 24px));
  }
}

@media (max-width: 992px) {
  .site-nav {
    padding: 16px 24px;
  }

  .nav-spacer {
    height: 96px;
  }

  .parent-note {
    position: static;
  }

  .hero-section,
  .helping-section,
  .parenthood-section,
  .faq-section,
  .contact-section,
  .site-footer-top,
  .site-footer-links,
  .site-footer-copyright,
  .meeting-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-section {
    flex-direction: column-reverse;
    padding-top: 48px;
    padding-bottom: 48px;
    min-height: auto;
  }

  .hero-image-frame {
    width: 100%;
    max-width: 100%;
    height: 420px;
  }

  .hero-image-frame img {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 30%;
  }

  .h1-hero {
    font-size: 48px;
  }

  /* Prax: heading, then photo + note, then the experience list (as in the mobile Figma frame) */
  .prax-section {
    padding: 0 24px 48px;
  }

  .prax-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "header"
      "aside"
      "list";
  }

  .prax-header {
    min-height: 0;
    padding-top: 32px;
  }

  .prax-aside {
    position: static;
    padding-top: 24px;
  }

  .prax-image-frame {
    width: 100%;
  }

  .experience-list {
    justify-self: stretch;
    width: 100%;
    padding: 48px 0;
    gap: 64px;
  }

  .experience-text {
    font-size: 20px;
    line-height: 1.3;
  }

  .education-section {
    padding: 48px 24px;
    gap: 64px;
  }

  .education-grid {
    gap: 48px 16px;
  }

  .education-item {
    padding: 0;
  }

  .h2-display {
    font-size: 40px;
  }
}


/* ==========================================================================
   Mobile — Figma "homepage-mobile" (390px frame). Everything below only
   applies up to 767px, so the desktop layout is untouched.
   ========================================================================== */

@media (max-width: 767px) {

  /* ---------- Prax: left heading, edge-to-edge photo, straight note, then "Pracovala som ako:" ---------- */
  .prax-layout {
    grid-template-areas:
      "title"
      "aside"
      "subtitle"
      "list";
  }

  /* let the heading and subtitle sit in separate grid rows, with the photo between them */
  .prax-header {
    display: contents;
  }

  .prax-header .h1-hero {
    grid-area: title;
    padding-top: 16px;
    text-align: left;
  }

  .prax-subtitle {
    grid-area: subtitle;
    padding-top: 88px;
  }

  .prax-subtitle .body-text::after {
    content: ":";
  }

  .prax-subtitle-arrow {
    display: none;
  }

  .prax-aside {
    margin: 0 -24px;
  }

  .prax-image-frame {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .prax-image-frame img {
    top: 0;
    height: 100%;
    object-position: center 70%;
  }

  .prax-note-wrap {
    justify-content: center;
    height: auto;
    padding: 16px 24px 0;
  }

  .prax-note {
    width: auto;
    transform: none;
    text-align: center;
  }

  /* no fade-up on phones: the note is just there under the photo */
  .prax-note.fade-up {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .prax-note br {
    display: none;
  }

  /* ---------- Type scale: Heading/Mobile/H1–H4 ---------- */
  .h1-hero {
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: 0;
  }

  .h2-display {
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -0.72px;
  }

  .h3-display {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.64px;
  }

  .script-accent {
    font-size: 20px;
    line-height: normal;
  }

  /* titles split into lines for desktop wrap naturally on a phone */
  .title-line {
    display: inline;
  }

  /* navigation (logo + hamburger) is shared with tablet: see the ≤992px block below */

  /* ---------- Hero: text first, full-width photo below ---------- */
  .hero-section {
    flex-direction: column;
    gap: 24px;
    padding: 32px 0 0;
  }

  .hero-slogan {
    max-width: none;
    width: 100%;
    padding: 0 16px;
    gap: 24px;
    align-items: center;
  }

  .hero-text-group {
    gap: 32px;
  }

  .hero-text {
    gap: 24px;
  }

  .hero-text .h1-hero,
  .hero-text .body-text {
    margin: 0;
  }

  .hero-slogan .body-text {
    color: var(--color-primary);
  }

  .hero-note {
    transform: none;
    white-space: normal;
    text-align: center;
  }

  .hero-note br {
    display: none;
  }

  .hero-image-frame {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 716 / 794;
  }

  .hero-image-frame img {
    top: -37.15%;
    left: -24.17%;
    right: auto;
    width: 161.05%;
    height: 137.18%;
    object-fit: cover;
  }

  /* ---------- S čím pomáham: heading, topics, then the button ---------- */
  .helping-section {
    padding: 48px 16px;
  }

  .helping-inner {
    flex-direction: column;
    gap: 32px;
  }

  .help-container {
    display: contents;
  }

  .help-container .btn-brand {
    order: 3;
  }

  .topics-list {
    order: 2;
    gap: 12px;
    max-width: none;
  }

  .help-container h2,
  .help-container .body-text {
    margin: 0;
  }

  .collaboration-block {
    margin-top: 48px;
  }

  .collaboration-text {
    gap: 16px;
  }

  .collaboration-block .body-text {
    max-width: none;
  }

  /* ---------- Rodičovstvo: note, heading, 1st paragraph, photo, rest ---------- */
  .parenthood-section {
    padding: 48px 0;
  }

  .parenthood-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
  }

  /* flatten the wrappers so note, heading, paragraphs and photo can be reordered */
  .parent-content,
  .parent-content>div,
  .parent-content .body-text {
    display: contents;
  }

  .parent-note {
    order: 1;
    transform: none;
    margin: 0 16px 12px;
  }

  .parent-content h2 {
    order: 2;
    padding: 0 16px 16px;
  }

  .parent-content .body-text p {
    margin: 0 16px 24px;
  }

  .parent-content .body-text p:nth-child(1) {
    order: 3;
  }

  .parent-image-frame {
    order: 4;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 500;
    margin-bottom: 24px;
  }

  .parent-image-frame img {
    top: -13.26%;
    height: 120%;
  }

  .parent-content .body-text p:nth-child(2) {
    order: 5;
  }

  .parent-content .body-text p:nth-child(3) {
    order: 6;
    margin-bottom: 32px;
  }

  .parent-content .btn-brand {
    order: 7;
    margin: 0 16px;
  }

  /* ---------- Stretneme sa: flat olive background, no wave ---------- */
  .meeting-section {
    padding: 48px 16px;
    background-color: var(--color-tertiary);
  }

  .meeting-bg {
    display: none;
  }

  .meeting-inner {
    padding: 0;
    gap: 80px;
  }

  .meeting-heading-text {
    gap: 16px;
  }

  .meeting-heading h2 br {
    display: none;
  }

  .meeting-options {
    margin-top: 48px;
    gap: 48px;
  }

  .meeting-option-label {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.56px;
  }

  .meeting-note {
    width: 100%;
    max-width: none;
    transform: rotate(1.78deg);
    padding: 40px 24px;
    gap: 32px;
  }

  .meeting-note .body-text-large {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 400;
  }

  /* ---------- FAQ: full-width rows, 20px questions ---------- */
  .faq-section {
    padding: 48px 0;
    gap: 48px;
  }

  .faq-header {
    padding: 0 16px;
    gap: 16px;
  }

  .faq-accordion {
    gap: 20px;
  }

  .faq-item {
    border-radius: 0;
  }

  .faq-question.h4-display {
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .faq-note-wrap {
    padding: 0 16px;
  }

  .faq-note {
    width: 100%;
    max-width: none;
    transform: none;
    padding: 40px 24px;
    gap: 20px;
  }

  .faq-note-text {
    gap: 20px;
  }

  /* ---------- Kontakt ---------- */
  .contact-section {
    padding: 48px 16px;
  }

  .contact-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 48px;
  }

  /* stacked: the 535px flex-basis would turn into height and leave a gap under the card */
  .contact-card-wrap {
    flex: none;
  }

  .contact-details {
    gap: 32px;
  }

  .contact-heading {
    gap: 16px;
  }

  .contact-heading h2 br {
    display: none;
  }

  .contact-column {
    width: 100%;
    gap: 32px;
  }

  .contact-group-form {
    gap: 24px;
  }

  .contact-email-link {
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .contact-card {
    width: 100%;
    max-width: none;
    transform: none;
    padding: 40px 24px;
  }

  .contact-card-content {
    width: 100%;
  }

  /* ---------- Footer: left-aligned, stacked ---------- */
  .site-footer-top {
    padding: 48px 16px;
    align-items: stretch;
  }

  .footer-info {
    align-items: flex-start;
    gap: 32px;
  }

  .footer-text {
    text-align: left;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-text .footer-title {
    font-size: 40px;
  }

  .footer-text .body-text {
    margin: 0;
  }

  .site-footer-links {
    padding: 48px 16px;
  }

  .footer-links-inner {
    flex-direction: column;
    gap: 48px;
  }

  .site-footer-copyright {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .copyright-text {
    flex-direction: column;
    gap: 16px;
  }
}


/* ==========================================================================
   Phone + tablet navigation (≤992px): logo + hamburger, menu opens below.
   Figma "Navigation bar" Device=Mobile / Device=Tablet
   ========================================================================== */

@media (max-width: 992px) {
  .site-nav {
    padding: 16px;
  }

  .site-nav>div {
    flex-wrap: wrap;
    row-gap: 16px;
  }

  .site-nav .logo {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.4px;
  }

  .nav-toggle {
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    color: var(--color-primary);
  }

  .nav-toggle-icon {
    display: block;
    width: 40px;
    height: 40px;
  }

  .nav-toggle-close,
  .nav-toggle[aria-expanded="true"] .nav-toggle-menu {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-close {
    display: inline;
  }

  /* Instagram as the last item of the open menu, in line with the other links */
  .nav-menu-instagram {
    display: block;
    width: 35px;
    height: 35px;
    color: var(--color-primary);
  }

  .nav-menu-instagram svg {
    width: 100%;
    height: 100%;
  }

  /* phones/tablets: Instagram only at the bottom of the open menu, not in the bar */
  .nav-instagram {
    display: none;
  }

  .site-nav .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 64px 0;
  }

  /* open menu covers the whole screen; links centered in the space below the logo row */
  .site-nav.is-menu-open {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
  }

  .site-nav.is-menu-open>div {
    min-height: 100%;
    align-content: flex-start;
  }

  .site-nav.is-menu-open .nav-links {
    display: flex;
    justify-content: center;
    min-height: calc(100% - 56px);
  }

  /* stop the page behind the open menu from scrolling */
  html.is-menu-open,
  html.is-menu-open body {
    overflow: hidden;
  }

  .site-nav .nav-link {
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .nav-spacer {
    height: 72px;
  }
}


/* ==========================================================================
   Tablet — Figma "homepage-tablet" (768px frame). Only 768–992px, so it can't
   touch phones (≤767px) or desktop (≥993px).
   ========================================================================== */

@media (min-width: 768px) and (max-width: 992px) {

  /* "S čím pomáham" card text at body size on tablets (same as phones) */
  .topic-details .body-text-large {
    font-size: 20px;
    line-height: 1.3;
  }

  /* ---------- Type scale: Heading/Tablet ---------- */
  .h1-hero {
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.96px;
  }

  .h2-display {
    font-size: 44px;
    line-height: normal;
    letter-spacing: 0;
  }

  .h3-display {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.64px;
  }

  .script-accent {
    font-size: 20px;
  }

  /* titles split into lines for desktop wrap naturally here */
  .title-line {
    display: inline;
  }

  .site-nav .nav-links {
    padding: 88px 0;
  }

  /* ---------- Hero: text left, photo + note right ---------- */
  .hero-section {
    display: grid;
    grid-template-columns: 342px 336px;
    grid-template-areas:
      "text image"
      "text note";
    justify-content: space-between;
    align-items: start;
    row-gap: 16px;
    padding: 40px 0 64px 32px;
    min-height: 0;
  }

  .hero-slogan {
    display: contents;
  }

  .hero-text-group {
    grid-area: text;
    gap: 32px;
    align-items: flex-start;
    text-align: left;
  }

  .hero-text {
    gap: 24px;
    text-align: left;
  }

  .hero-text .h1-hero,
  .hero-text .body-text {
    margin: 0;
  }

  .hero-image-frame {
    grid-area: image;
    width: 336px;
    max-width: none;
    height: 372px;
  }

  .hero-image-frame img {
    top: -37.15%;
    left: -24.17%;
    right: auto;
    width: 161.05%;
    height: 137.18%;
    object-fit: cover;
    object-position: center;
  }

  .hero-note {
    grid-area: note;
    width: 317px;
    white-space: normal;
    line-height: 1.2;
    transform: rotate(-3.12deg);
  }

  .hero-note br {
    display: none;
  }

  /* ---------- S čím pomáham: heading + button left, topics right ---------- */
  .helping-section {
    padding: 64px 32px;
  }

  .helping-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 40px;
  }

  .help-container {
    width: 343px;
    flex-shrink: 0;
    gap: 32px;
  }

  .help-container h2,
  .help-container .body-text {
    margin: 0;
  }

  .topics-list {
    flex: 1 0 0;
    min-width: 0;
    gap: 12px;
  }

  .topic-dropdown .h4-display {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.56px;
  }

  .collaboration-block {
    margin-top: 64px;
  }

  .collaboration-text {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .collaboration-text h3 {
    width: 252px;
    flex-shrink: 0;
  }

  .collaboration-block .body-text {
    width: 432px;
    max-width: none;
  }

  /* ---------- Rodičovstvo: note on top, photo left, text right ---------- */
  .parenthood-section {
    padding: 64px 32px;
  }

  .parenthood-inner {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 8px;
    align-items: start;
  }

  .parent-note {
    grid-column: 2;
    transform: none;
    margin: 0;
  }

  .parent-image-frame {
    grid-column: 1;
    width: 280px;
    height: 360px;
  }

  .parent-image-frame img {
    top: 0;
    height: 100%;
  }

  .parent-content {
    grid-column: 2;
    max-width: none;
    gap: 32px;
  }

  .parent-content>div {
    gap: 16px;
  }

  /* ---------- Stretneme sa: flat olive, options 2×2, wide note ---------- */
  .meeting-section {
    padding: 48px 32px;
    background-color: var(--color-tertiary);
  }

  .meeting-bg {
    display: none;
  }

  .meeting-inner {
    padding: 0;
    gap: 64px;
  }

  .meeting-heading-text {
    width: 388px;
    gap: 16px;
  }

  .meeting-heading h2 br {
    display: none;
  }

  .meeting-options {
    margin-top: 64px;
    gap: 48px 20px;
    justify-content: flex-start;
  }

  .meeting-option {
    width: 342px;
  }

  .meeting-option-label {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.56px;
  }

  .meeting-note {
    width: 608px;
    max-width: 100%;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 32px;
    padding: 48px 32px;
    transform: rotate(1.78deg);
  }

  .meeting-note .body-text-large {
    flex: 1 0 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 400;
  }

  .meeting-note .btn-brand {
    flex-shrink: 0;
  }

  /* ---------- Kontakt: details, then the card full width ---------- */
  .contact-section {
    padding: 48px 32px;
  }

  .contact-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 48px;
  }

  /* stacked: the 535px flex-basis would turn into height and leave a gap under the card */
  .contact-card-wrap {
    flex: none;
  }

  .contact-details {
    gap: 32px;
  }

  .contact-heading {
    width: 433px;
    gap: 16px;
  }

  .contact-heading h2 br {
    display: none;
  }

  .contact-column {
    width: 433px;
    gap: 32px;
  }

  .contact-group-form {
    gap: 24px;
  }

  .contact-email-link {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.56px;
  }

  .contact-card-wrap {
    width: 100%;
  }

  .contact-card {
    width: 100%;
    max-width: none;
    transform: none;
    padding: 48px 24px;
  }

  .contact-card-content {
    width: 100%;
  }

  /* ---------- Footer ---------- */
  .site-footer-top {
    padding: 144px 32px;
  }

  .footer-text .footer-title {
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.96px;
  }

  .site-footer-links {
    padding: 32px;
  }

  .footer-links-inner {
    gap: 48px 88px;
  }

  .site-footer-copyright {
    justify-content: flex-start;
    gap: 24px 32px;
    padding: 16px 32px;
  }

  .copyright-text {
    gap: 24px 32px;
  }
}
