/* ============================================================
   weneco.cz — main.css
   Design system + komponenty + layout + responzivita
   ============================================================ */

/* ── Custom properties ── */
:root {
  --m:       #BA0060;
  --m-dark:  #8C0048;
  --m-light: #E5007D;
  --dark:    #111122;
  --mid:     #555570;
  --light:   #F4F4F6;
  --white:   #FFFFFF;
  --border:  #EBEBEB;
  --text:    #222233;
  --muted:   #8888AA;

  --radius:  16px;
  --radius-sm: 8px;
  --shadow:  0 2px 4px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 8px rgba(0,0,0,.06), 0 16px 40px rgba(0,0,0,.12);

  --nav-h: 72px;
  --container: 1160px;
  --gap: 2rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.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;
}
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-magenta { color: var(--m); }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  background: var(--m); color: var(--white);
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .875rem;
  transition: top .1s;
}
.skip-link:focus { top: 1rem; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--m); margin-bottom: .75rem;
}
.section-intro {
  font-size: 1.125rem; color: var(--mid);
  max-width: 600px; margin-bottom: 2.5rem;
}
.section-intro--center { margin-inline: auto; text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--m); color: var(--white);
  font-weight: 700; font-size: .9375rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover  { background: var(--m-dark); }
.btn:active { transform: scale(.98); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--m); color: var(--m);
}
.btn-outline:hover { background: var(--m); color: var(--white); }

.btn-dark {
  background: var(--dark);
}
.btn-dark:hover { background: #222240; }

.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: .9rem 2.25rem; font-size: 1rem; }

/* ── Header / Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.site-logo { flex-shrink: 0; }
.site-logo svg { height: 44px; width: auto; }

/* Nav */
.main-nav { margin-left: auto; }
.nav-list {
  display: flex; align-items: center; gap: .25rem;
}
.nav-item { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .75rem;
  font-size: .9rem; font-weight: 600; color: var(--dark);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-link:hover,
.nav-item[data-active] > .nav-link { color: var(--m); background: var(--light); }
.nav-link[aria-current="page"] { color: var(--m); }

/* Dropdown arrow */
.dropdown-arrow { transition: transform .2s; flex-shrink: 0; }
.nav-item.has-dropdown:hover .dropdown-arrow,
.nav-item.has-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown menu */
.dropdown {
  position: absolute; top: calc(100% + .5rem); left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 200;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown.open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-link {
  display: block; padding: .65rem 1rem;
  font-size: .875rem; font-weight: 600; color: var(--dark);
  transition: color .1s, background .1s;
}
.dropdown-link:hover { color: var(--m); background: var(--light); }
.dropdown-link[aria-current="page"] { color: var(--m); }
.dropdown li:first-child .dropdown-link { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.dropdown li:last-child  .dropdown-link { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

/* CTA nav item */
.nav-cta { margin-left: .75rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block; height: 2px; background: var(--dark);
  transition: transform .2s, opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Sections ── */
.section {
  padding-block: 5rem;
}
.section--light { background: var(--light); }
.section--dark  { background: var(--dark); color: var(--white); }
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark .section-intro { color: rgba(255,255,255,.65); }

.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }
.section-header--center .section-intro { margin-inline: auto; }

/* ── Hero ── */
.hero {
  padding-block: 6rem 5rem;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero::before {
  /* dekorativní gradient vpravo */
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(186,0,96,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 680px; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.125rem; color: rgba(255,255,255,.7);
  margin-bottom: 2rem; max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero varianta — služba (menší) */
.hero--service {
  padding-block: 4rem 3.5rem;
}
.hero--service h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }

/* Hero badge (Moodle flagship) */
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(186,0,96,.25); border: 1px solid rgba(186,0,96,.4);
  color: #FF6FB0; border-radius: 100px;
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  padding: .3rem .85rem; margin-bottom: 1.25rem;
}

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

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-icon {
  width: 52px; height: 52px;
  background: var(--light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}
.card-icon--magenta { background: rgba(186,0,96,.08); }
.card h3 { margin-bottom: .5rem; }
.card p  { color: var(--mid); font-size: .9375rem; }

.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--m); font-weight: 700; font-size: .9rem;
  margin-top: 1.25rem;
  transition: gap .15s;
}
.card-link:hover { gap: .65rem; }

/* Karta s flagship zvýrazněním */
.card--featured {
  border-color: var(--m);
  box-shadow: 0 0 0 2px rgba(186,0,96,.12), var(--shadow);
  position: relative;
}
.card--featured::before {
  content: 'Vlajkový produkt';
  position: absolute; top: -1px; right: 1.5rem;
  background: var(--m); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .75rem;
  border-radius: 0 0 6px 6px;
}

/* ── Value props (4 sloupce ikona+text) ── */
.vp-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.vp-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(186,0,96,.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.vp-body h4 { margin-bottom: .25rem; font-size: 1rem; }
.vp-body p  { font-size: .9rem; color: var(--mid); }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--m) 0%, var(--m-dark) 100%);
  border-radius: var(--radius);
  padding: 3.5rem 3rem;
  color: var(--white);
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.8); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-banner .btn { background: var(--white); color: var(--m); }
.cta-banner .btn:hover { background: var(--light); }

/* ── Kroky procesu ── */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--m); color: var(--white);
  font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.step-body h4 { margin-bottom: .25rem; }
.step-body p  { color: var(--mid); font-size: .9375rem; }

/* ── Tabulka ceníku ── */
.pricing-table {
  width: 100%; border-collapse: collapse;
  font-size: .9375rem;
}
.pricing-table th,
.pricing-table td {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.pricing-table thead th {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  background: var(--light);
}
.pricing-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.pricing-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.pricing-table tbody tr:hover { background: var(--light); }
.pricing-table .col-price { font-weight: 700; color: var(--m); }
.pricing-table .check { color: var(--m); }
.pricing-table .dash  { color: var(--muted); }

/* Hosting plan sloupce */
.plan-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.plan-card--featured {
  border-color: var(--m);
  box-shadow: var(--shadow-lg);
}
.plan-head {
  padding: 1.5rem;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}
.plan-card--featured .plan-head { background: var(--m); color: var(--white); }
.plan-card--featured .plan-head h3 { color: var(--white); }
.plan-name { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.plan-price {
  font-size: 2rem; font-weight: 800; line-height: 1;
  color: var(--dark);
}
.plan-card--featured .plan-price { color: var(--white); }
.plan-price small { font-size: .8rem; font-weight: 400; }
.plan-body { padding: 1.5rem; }
.plan-body ul { display: flex; flex-direction: column; gap: .5rem; }
.plan-body li {
  display: flex; gap: .5rem; align-items: flex-start;
  font-size: .9rem;
}
.plan-body li::before {
  content: '✓'; color: var(--m); font-weight: 700; flex-shrink: 0;
}
.plan-card--featured .plan-body li::before { color: var(--m); }
.plan-foot { padding: 0 1.5rem 1.5rem; }
.plan-foot .btn { width: 100%; justify-content: center; }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%; padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: .9375rem;
  background: var(--white); text-align: left;
  gap: 1rem;
}
.faq-q svg { flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: .9375rem; color: var(--mid);
}
.faq-item.open .faq-a { display: block; }

/* ── Formulář ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group--full { grid-column: 1 / -1; }
.form-label {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--mid);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit; font-size: .9375rem;
  color: var(--text); background: var(--white);
  transition: border-color .15s;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--m);
  box-shadow: 0 0 0 3px rgba(186,0,96,.1);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238888AA' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-honeypot { display: none; }

/* Zpráva po odeslání */
.form-status {
  display: none; padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9375rem;
}
.form-status.success { background: #F0FFF4; color: #1A7F3E; border: 1px solid #A7F0C0; }
.form-status.error   { background: #FFF0F0; color: #B91C1C; border: 1px solid #FECACA; }

/* ── Kontaktní boxy ── */
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-box {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-box-label {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .35rem;
}
.contact-box a { color: var(--m); font-weight: 600; }
.contact-box a:hover { text-decoration: underline; }

/* ── Reference filter ── */
.ref-filter {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 2.5rem;
}
.ref-filter-btn {
  padding: .4rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: .875rem; font-weight: 600;
  color: var(--mid); background: var(--white);
  transition: all .15s;
}
.ref-filter-btn:hover,
.ref-filter-btn.active {
  border-color: var(--m); color: var(--m);
  background: rgba(186,0,96,.05);
}

.ref-card { overflow: hidden; }
.ref-card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; background: var(--light);
  border-radius: 8px;
  margin-bottom: 1.25rem;
}
.ref-card-img--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--muted);
}
.ref-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--m); background: rgba(186,0,96,.08);
  border-radius: 4px; padding: .15rem .6rem;
  margin-bottom: .5rem;
}

/* ── Testimonial ── */
.testimonial {
  border-left: 3px solid var(--m);
  padding: 1.25rem 1.5rem;
  background: var(--light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.testimonial-text {
  font-size: 1.0625rem; font-style: italic;
  color: var(--dark); margin-bottom: .75rem;
}
.testimonial-author { font-size: .875rem; font-weight: 700; color: var(--mid); }

/* ── Feature list (checkmarky) ── */
.feature-list { display: flex; flex-direction: column; gap: .6rem; }
.feature-list li {
  display: flex; gap: .75rem; align-items: flex-start;
  font-size: .9375rem;
}
.feature-list li::before {
  content: '✓';
  color: var(--m); font-weight: 800;
  flex-shrink: 0; margin-top: .05rem;
}

/* ── Nadpis sekce s čarou ── */
.section-label {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}

/* ── Page hero (interní stránky) ── */
.page-hero {
  padding-block: 4rem 3.5rem;
  background: var(--dark);
  color: var(--white);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(186,0,96,.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: .75rem; }
.page-hero-sub { font-size: 1.125rem; color: rgba(255,255,255,.7); max-width: 580px; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8125rem; color: rgba(255,255,255,.5);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: .4; }

/* ── Chybová stránka (404) ── */
.error-hero { padding-block: 5rem 4.5rem; }
.error-code {
  /* velké dekorativní číslo s magenta přechodem */
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--m-light) 0%, var(--m) 50%, var(--m-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-hero .hero-actions { margin-top: 2rem; }

/* ── Moodle hosting highlight box ── */
.highlight-box {
  border: 2px solid var(--m);
  border-radius: var(--radius);
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(186,0,96,.04) 0%, transparent 60%);
}
.highlight-box h3 { margin-bottom: .5rem; }

/* ── Footer ── */
.site-footer {
  position: relative;
  background: var(--dark);
  color: rgba(255,255,255,.65);
  font-size: .9375rem;
  overflow: hidden;
}
.site-footer::before {
  /* jemný magenta akcent v rohu — navazuje na hero */
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 100% 0%, rgba(186,0,96,.18) 0%, transparent 70%);
  pointer-events: none;
}
.footer-inner { position: relative; padding-block: 4rem 0; }

/* Sloupce: značka je širší, odkazy užší */
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--gap);
  padding-bottom: 3rem;
}
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-tagline { max-width: 300px; line-height: 1.6; }

/* Podporujeme — logo + název klubu */
.footer-support { margin-top: 1.75rem; }
.footer-support .footer-col-title { margin-bottom: .75rem; }
.footer-support-link {
  display: inline-flex; align-items: center; gap: .85rem;
  transition: color .15s;
}
.footer-support-link img { transition: transform .2s; }
.footer-support-link span { display: flex; flex-direction: column; line-height: 1.35; font-weight: 600; }
.footer-support-link small { font-size: .8125rem; font-weight: 400; color: rgba(255,255,255,.45); }
.footer-support-link:hover,
.footer-support-link:focus-visible { color: var(--m-light); }
.footer-support-link:hover img { transform: scale(1.06); }

.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { transition: color .15s; }
.footer-links a[href^="tel:"] { white-space: nowrap; }
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--m-light); }

.footer-co {
  margin-top: 1rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
}

/* Spodní lišta s copyrightem */
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.5rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom p { margin: 0; }

/* ── Responsive ── */

/* 1280px — lehce zúžit */
@media (max-width: 1280px) {
  :root { --container: 1060px; }
}

/* 1024px — kompaktnější nav */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .plan-cols { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

  /* Footer — značka přes celou šířku, odkazy ve 3 sloupcích */
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* 768px — přechod na hamburger */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .hamburger { display: flex; }

  .main-nav {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem 1.5rem 1.5rem;
  }
  .main-nav.open { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-item:last-child { border-bottom: none; }
  .nav-link { padding: .75rem .5rem; }
  .nav-cta { margin-left: 0; margin-top: .75rem; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  /* Dropdown na mobilu — vždy viditelný pod rodiče */
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none;
    border-top: 1px solid var(--border);
    display: none;
    border-radius: 0;
  }
  .nav-item.has-dropdown.open .dropdown { display: block; }
  .dropdown-link { padding-left: 1.5rem; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 4rem 3.5rem; }
  .section { padding-block: 3.5rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .cta-banner .hero-actions { flex-direction: column; align-items: center; }
}

/* 480px */
@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .steps .step { flex-direction: column; gap: .75rem; }

  /* Footer — 2 sloupce, kontakt přes celou šířku */
  .footer-inner { padding-top: 3rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols .footer-col:last-child { grid-column: 1 / -1; }
}
