/* ==== Poppins — self-hosted (WEDOS), aby se font načítal vždy a rychle.
   Zdroj: Google Fonts v24, subsety latin + latin-ext (české diakritiky). ==== */
@font-face{
  font-family:'Poppins';
  font-style:normal;
  font-weight:200;
  font-display:swap;
  src:url('assets/fonts/poppins-200-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;
}
@font-face{
  font-family:'Poppins';
  font-style:normal;
  font-weight:200;
  font-display:swap;
  src:url('assets/fonts/poppins-200-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:'Poppins';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('assets/fonts/poppins-400-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;
}
@font-face{
  font-family:'Poppins';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('assets/fonts/poppins-400-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:'Poppins';
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url('assets/fonts/poppins-500-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;
}
@font-face{
  font-family:'Poppins';
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url('assets/fonts/poppins-500-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:'Poppins';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url('assets/fonts/poppins-600-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;
}
@font-face{
  font-family:'Poppins';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url('assets/fonts/poppins-600-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;
}
/* =========================================================
   Petr Matuška — pixel-perfect 1:1 podle Figma desktop (1728)
   Scaling: root rem = 16px * viewport/1728 → all sizes stay
   proportionally exact regardless of viewport width.
   Mobile layout takes over below 768px.
   ========================================================= */

:root {
  --color-bg:          #cdcdcd;    /* Figma desktop frame bg */
  --color-surface:     #262626;    /* dark panels (nav, sluzby, kontakt card, footer) */
  --color-surface-2:   #232323;    /* hero inner card */
  --color-muted:       #434343;
  --color-accent:      #c0ff72;
  --color-accent-soft: #e0ffba;
  --color-accent-text: #02122b;
  --color-line:        #d9d9d9;
  --color-white:       #ffffff;
  --btn-radius:        7px;        /* uživatelův požadavek — všechna tlačítka */

  /* FLUID SCALE: 1rem = 16px @ 1728 viewport */
  font-size: clamp(8px, calc(16 * (100vw / 1728)), 16px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-surface);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; cursor: pointer; background: none; color: inherit; }

/* ===== Canvas =====
   width 100vw, sections stack vertically.
   Every section has absolute-positioned elements in % of 1728×sectionH. */
.canvas {
  width: 100%;
  max-width: 1728px; /* nad 1728px se obsah nezvětšuje — roztahují se jen šedé okraje */
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

section, header, footer { scroll-margin-top: 7rem; }

/* =========================================================
   1) HEADER / NAV — 1728 × 171 (scale: 100% × 10.69rem)
   ========================================================= */
.nav-desktop {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 10.6875rem; /* 171/16 */
  background: var(--color-surface);
  font-weight: 400;
}

/* Logo ellipse at (98,29) 114×114 ⇒ left 5.671%, top 16.96%, size 7.125rem */
.nav-logo-circle {
  position: absolute;
  left: 5.671%;
  top: 1.8125rem; /* 29/16 */
  width: 7.125rem; /* 114/16 */
  height: 7.125rem;
  border-radius: 50%;
  background: var(--color-accent);
  pointer-events: none;
}

/* Logo signature at (91,22) 128×128 */
.nav-logo-signature {
  position: absolute;
  left: 5.266%;
  top: 1.375rem; /* 22/16 */
  width: 8rem; /* 128/16 */
  height: 8rem;
  object-fit: contain;
  mix-blend-mode: normal;
  mix-blend-mode: multiply;
}

/* "PETR Matuška" text at (225,41) — Figma:
   Both lines 36px uppercase. "Petr" = ExtraLight (200), "Matuška" = Medium (500).
   Line-height 45px (125%). */
.nav-logo-text {
  position: absolute;
  left: 13.021%;
  top: 2.5625rem; /* 41/16 */
  display: flex;
  flex-direction: column;
  line-height: 1.25; /* 45/36 */
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0;
}
.nav-logo-text .petr {
  font-size: 2.25rem;  /* 36/16 */
  font-weight: 200;
}
.nav-logo-text .matuska {
  font-size: 2.25rem;  /* 36/16 */
  font-weight: 600;
}

/* Menu flex container — equal spacing between links */
.nav-menu {
  position: absolute;
  left: 46.007%;  /* first link starts at same x as Figma (795/1728) */
  top: 4.75rem;   /* ~76/16 */
  display: flex;
  align-items: center;
  gap: 4rem;      /* 64px — consistent spacing */
}
.nav-link {
  font-size: 1.25rem; /* 20/16 */
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-white);
  transition: color .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--color-accent); }

/* CTA button (1262,54) 365×63 — uživatel chce 7px na všech tlačítkách */
.nav-cta, .hero-cta, .omne-cta, .svc-link, .kontakt-btn, .kontakt-submit, .footer-cta { border-radius: var(--btn-radius) !important; }

.nav-cta {
  position: absolute;
  left: 73.032%;  /* 1262/1728 */
  top: 3.375rem;   /* 54/16 */
  width: 22.8125rem; /* 365/16 */
  height: 3.9375rem; /* 63/16 */
  border-radius: 1.25rem; /* 20/16 */
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-size: 1.25rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--color-accent-soft); transform: translateY(-1px); }

/* Mobile nav hidden on desktop */
.nav-mobile { display: none; }

/* =========================================================
   2) HERO — 1728 × 703, offset from header top
   Dark card (100,109) 1525×590 radius 71
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 43.9375rem; /* 703/16 */
  margin-top: -1.125rem; /* small overlap: header 171 vs hero starts at 153 → overlap 18 */
}

/* Hero card (125,109) 1500×590 radius 71 — Figma layout_6MJ0WM */
.hero-card {
  position: absolute;
  left: 7.234%;     /* 125/1728 */
  top: 6.8125rem;   /* 109/16 */
  width: 86.806%;   /* 1500/1728 */
  height: 36.875rem; /* 590/16 */
  background: var(--color-surface-2);
  border-radius: 4.4375rem; /* 71/16 */
  overflow: hidden;
}

/* Hero title — Figma abs (285,187) → relativně k card (125,109): (160,78) size 810×112
   Font 50px SemiBold UPPER, height 112 ÷ 2 řádky → line-height 56/50 = 1.12 */
.hero-title {
  position: absolute;
  left: 10.667%;     /* 160/1500 */
  top: 13.220%;      /* 78/590 */
  width: 54%;        /* 810/1500 */
  font-size: 3.125rem;  /* 50/16 */
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
  color: var(--color-white);
  text-transform: uppercase;
  margin: 0;
  z-index: 2;
}

/* Hero underline (Vector 3) — Figma abs (274,256) → relativně k card: (149,147) size 263×26 */
.hero-underline {
  position: absolute;
  left: 9.933%;      /* 149/1500 */
  top: 24.915%;      /* 147/590 */
  width: 17.533%;    /* 263/1500 */
  height: 1.625rem;  /* 26/16 */
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
  z-index: 2;
}

/* Hero subtitle — Figma abs (285,306) → relativně k card: (160,197) size 850×62
   25px Regular, height 62 ÷ 2 řádky ≈ line-height 31/25 = 1.24 */
.hero-subtitle {
  position: absolute;
  left: 10.667%;     /* 160/1500 */
  top: 33.390%;      /* 197/590 */
  width: 56.667%;    /* 850/1500 */
  font-size: 1.5625rem; /* 25/16 */
  font-weight: 400;
  line-height: 1.24;
  color: var(--color-white);
  margin: 0;
  z-index: 2;
}

/* Mobile-only line break v hero subtitle (na desktopu skrytý) */
.hero-mobile-break { display: none; }

/* Hero CTA (Frame 5) — Figma abs (293,561) → relativně k card: (168,452) size 292×57
   Background #C0FF72, text 18px Medium, border-radius (uživatel) 7px */
.hero-cta {
  position: absolute;
  left: 11.2%;       /* 168/1500 */
  top: 76.610%;      /* 452/590 */
  width: 19.467%;    /* 292/1500 */
  height: 9.661%;    /* 57/590 */
  background: var(--color-accent);
  color: var(--color-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem; /* 18/16 */
  font-weight: 500;
  transition: background .2s, transform .2s;
  z-index: 3;
}
.hero-cta:hover { background: var(--color-accent-soft); transform: translateY(-1px); }

.hero-card picture { display: contents; }

/* Calendar SVG decorative background — Figma Frame (80:23) abs (624,90) → relativně k card: (499,-19) size 600×594.
   SVG už má opacity:0.1 vestavěné (g element), CSS opacity nezbytné. */
.hero-calendar {
  position: absolute;
  left: 33.267%;     /* 499/1500 */
  top: -3.220%;      /* -19/590 */
  width: 40%;        /* 600/1500 */
  height: auto;
  pointer-events: none;
  z-index: 1;
  object-fit: contain;
  transform: none;
}

/* Hero portrait — nový portrét 2026 (800×1200, modrý oblek, černé pozadí splyne s kartou #232323).
   Vsazen do pravé části karty, zarovnán k pravému okraji, hlava u horní hrany.
   Pravé rohy zaoblené stejně jako karta (71px), aby nevyčníval ostrý roh přes zaoblení karty. */
/* Wrapper = přesný tvar karty pro spodní/pravý ořez výřezu.
   Sahá nad horní hranu karty (hlava vyčnívá), dole/vpravo lícuje s kartou,
   spodní rohy zaoblené stejně jako karta (71px). overflow:hidden ořízne výřez 1:1. */
.hero-portrait-wrap {
  position: absolute;
  left: 7.234%;        /* = levá hrana karty (100/1728) */
  width: 86.806%;      /* = šířka karty (1500/1728) */
  bottom: 0.25rem;     /* spodní hrana = spodní hrana karty (hero 703 − card bottom 699) */
  height: 48.675rem;   /* 132 % výšky karty — přesah nad horní hranu pro vyčnívající hlavu */
  overflow: hidden;
  border-radius: 0 0 4.4375rem 4.4375rem; /* spodní rohy = 71px jako karta */
  z-index: 2;
  pointer-events: none;
}
.hero-portrait {
  position: absolute;
  left: 44.2%;        /* 673/1524 dle Figmy — Petr ve středu ~76 % šířky karty */
  top: -18.9%;        /* poloha hlavy nad kartou (relativně k wrapu výšky 132 %) — drží schválenou pozici hlavy */
  width: 63.5%;       /* 968/1524 — pravý přesah je už jen průhledná část výřezu */
  height: auto;       /* zachovat poměr výřezu */
  pointer-events: none;
}
.hero-card { overflow: hidden; }   /* ořízne dekorace i text na tvar karty (portrét je mimo kartu) */
.hero { overflow: hidden; }         /* hero frame v Figmě clipuje obsah (frame default clipContent) */

/* =========================================================
   3) O MNĚ — 1728 × 816, Figma y=874 (gap 18px po hero end)
   ========================================================= */
.omne {
  position: relative;
  width: 100%;
  height: 51rem; /* 816/16 */
  margin-top: 1.125rem; /* 18px gap dle Figma layoutu */
}

/* White card (101,84) 1525×648 radius 71 — celá šířka, fotka vlevo + text vpravo (nový design 2026) */
.omne-card {
  position: absolute;
  left: 7.234%;    /* 125/1728 — zarovnáno na hero kartu */
  top: 5.25rem;    /* 84/16 */
  width: 86.806%;  /* 1500/1728 — stejná šířka jako hero karta */
  height: 40.5rem; /* 648/16 */
  background: var(--color-white);
  border-radius: 4.4375rem;
  z-index: 2;
  box-shadow: 0 1.5625rem 3.75rem -1.25rem rgba(0, 0, 0, 0.45);
  overflow: visible;
}

/* Photo — nový lifestyle snímek 2026 (1500×1000), rámeček v levé polovině karty.
   Vsazen s odsazením od okrajů, zaoblené rohy. Relativně k kartě (1525×648). */
.omne-photo {
  position: absolute;
  left: 0;           /* nalepeno na levou hranu karty — žádný padding */
  top: 0;
  width: 50%;        /* levá polovina karty (dle Figmy ~50 % viditelně) */
  height: 100%;      /* plná výška karty */
  object-fit: cover;
  object-position: center 45%;
  border-radius: 4.4375rem 0 0 4.4375rem; /* levé rohy jako karta (71px), pravá hrana rovná */
  z-index: 1;
  pointer-events: none;
}

/* Dark badge — Figma frame (1065,39) size 520×139 radius 30. Sibling card v HTML,
   pozicováno vůči .omne section (1728-wide) aby šlo přesahovat card top-edge bez overflow clip. */
.omne-badge {
  position: absolute;
  left: 61.632%;     /* 1065/1728 */
  top: 2.4375rem;    /* 39/16 */
  width: 30.093%;    /* 520/1728 */
  height: 8.6875rem; /* 139/16 */
  background: var(--color-surface);
  border-radius: 1.875rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1rem 2.5rem -0.5rem rgba(0, 0, 0, 0.45);
}
.omne-badge h2 {
  color: var(--color-accent);
  font-size: 3.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Body text — pravá polovina karty. Figma abs (823,119) 654×422 → relativně k kartě (722,35).
   Poppins 400 22px, line-height 1.25, text-align LEFT, vertical CENTER */
.omne-text {
  position: absolute;
  left: 53.96%;    /* 823/1525 — dle Figmy */
  top: 18.36%;     /* 119/648 — větší horní odsazení, text začíná pod badgem */
  width: 42.89%;   /* 654/1525 */
  height: 65.12%;  /* 422/648 */
  color: var(--color-surface);
  font-size: 1.375rem;   /* 22/16 */
  font-weight: 400;
  line-height: 1.25;     /* 27.5/22 = 1.25 */
  z-index: 3;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.71875rem;       /* blank line between paragraphs ≈ line-height */
}
.omne-text p { margin: 0; }

/* CTA button — pod textem vpravo. Figma (980,541) 365×63 relativně k kartě */
.omne-cta {
  position: absolute;
  left: 64.26%;    /* 980/1525 */
  top: 83.49%;     /* 541/648 */
  width: 23.93%;   /* 365/1525 */
  height: 9.72%;   /* 63/648 */
  border-radius: 1.25rem;
  background: var(--color-accent);
  color: var(--color-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 500;
  z-index: 3;
  transition: background .2s, transform .2s;
  box-shadow: 0 .9rem 2rem -.4rem rgba(192,255,114,.35);
}
.omne-cta:hover { background: var(--color-accent-soft); transform: translateY(-1px); }

/* =========================================================
   4) SLUŽBY — 1728 × 848, bg #262626
   Title (626,10) 481×112 Poppins 600 70px
   4 cards 759×316 at (93,163)(867,162)(93,492)(866,491)
   Inner Rectangle 11 751×298 radius 35 bg white
   ========================================================= */
.sluzby {
  position: relative;
  width: 100%;
  height: 57rem; /* zvětšeno kvůli vyšším kartám s delšími popisky */
  background: var(--color-surface);
}

.sluzby-title {
  position: absolute;
  left: 36.227%;   /* 626/1728 */
  top: 0.625rem;   /* 10/16 */
  width: 27.83%;
  font-size: 4.375rem; /* 70/16 */
  font-weight: 600;
  text-align: center;
  color: var(--color-white);
  letter-spacing: 0;
  line-height: 1.5;     /* 105/70 = 1.5 */
  text-transform: uppercase;  /* Figma textCase=UPPER */
  margin: 0;
}
.sluzby-underline {
  position: absolute;
  left: 40.394%;   /* 698/1728 */
  top: 6.6875rem;  /* 107/16 */
  width: 17.77%;   /* 307/1728 */
  height: 1.875rem; /* 30/16 */
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

/* Card positions (outer frame 759×316; inner card rect 751×298 radius 35) */
.svc {
  position: absolute;
  width: 43.924%;  /* 759/1728 */
  height: 22rem; /* zvětšeno kvůli delším popiskům služeb */
  border-radius: 2.1875rem; /* 35/16 */
  background: var(--color-white);
  color: var(--color-surface);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 1rem 2rem -.5rem rgba(0,0,0,.3);
  /* Vnitřní obsah teče (flex), aby delší texty nepřekrývaly tlačítko */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.75rem 2.25rem;
  box-sizing: border-box;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 1.5rem 3rem -.5rem rgba(0,0,0,.45); }

/* inner-card rect is 751×298 inside 759×316 frame, offset 4,8 — we collapse */
.svc--1 { left: 5.382%; top: 10.2rem; }  /* (93,163) */
.svc--2 { left: 50.174%; top: 10.125rem; } /* (867,162) */
.svc--3 { left: 5.382%; top: 33.5rem; }
.svc--4 { left: 50.116%; top: 33.5rem; }

/* Icon ~94×94 */
.svc-icon {
  width: 5.875rem; /* 94/16 */
  height: 5.875rem;
  object-fit: contain;
  flex: none;
}

.svc-title {
  width: 100%;
  text-align: center;
  font-size: 1.875rem; /* 30/16 */
  font-weight: 600;
  color: var(--color-surface);
  letter-spacing: 0;
  line-height: 1.5;  /* 45/30 = 1.5 */
  text-transform: uppercase;  /* Figma textCase=UPPER */
  margin: 1rem 0 0.5rem;
}

.svc-desc {
  width: 100%;
  margin: 0 0 1.25rem;
  font-size: .9375rem; /* 15/16 */
  font-weight: 400;
  color: var(--color-surface);
  line-height: 1.4;
  text-align: center;
}

.svc-link {
  margin-top: auto; /* drží tlačítko u dolního okraje karty bez ohledu na délku popisku */
  min-width: 11.0625rem; /* 177/16 */
  height: 3.1875rem; /* 51/16 */
  padding: 0 1.5rem;
  border-radius: 1.25rem;
  background: var(--color-accent);
  color: var(--color-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.svc-link:hover { background: var(--color-accent-soft); transform: translateY(-1px); }

/* =========================================================
   5) KONTAKT — 1728 × 830, transparentní (Figma frame 90:260 fills:[]) → ukazuje page bg #CDCDCD
   Dark card (101,93) 1526×666 radius 83. Bez overlap přes Sluzby — necháme dark padding pod kartami.
   ========================================================= */
.kontakt {
  position: relative;
  width: 100%;
  min-height: 59rem; /* zvětšeno kvůli rozšířenému formuláři (telefon + roletka) */
  background: transparent;
  padding-bottom: 1.25rem;
}

.kontakt-card {
  position: absolute;
  left: 5.845%;   /* 101/1728 */
  top: 5.8125rem;  /* 93/16 */
  width: 88.310%;  /* 1526/1728 */
  height: 48rem; /* rozšířený formulář + odsazení pod odesílacím tlačítkem */
  background: var(--color-surface);
  border-radius: 5.1875rem; /* 83/16 */
}

.kontakt-question {
  position: absolute;
  left: 10.880%;    /* 188/1728 */
  top: 2.6875rem;   /* 43/16 */
  color: rgba(255, 255, 255, 0.04); /* Figma opacity = 0.04 on white fill */
  font-size: 37.5rem;  /* 600/16 */
  font-weight: 500;
  line-height: 1.25;   /* Figma 750/600 = 125% */
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
  transform: rotate(12deg); /* mírný náklon doprava dle Figma vizuálu */
  transform-origin: center center;
  z-index: 1;
}

.kontakt-title {
  position: absolute;
  left: 10.938%;   /* 189/1728 */
  top: 11.875rem;  /* 190/16 */
  width: 36.86%;   /* 637/1728 */
  font-size: 3.125rem; /* 50/16 */
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.25;  /* Figma 125% */
  z-index: 2;
  text-transform: uppercase;  /* Figma textCase=UPPER */
  margin: 0;
}

.kontakt-subtitle {
  position: absolute;
  left: 10.938%;   /* zarovnáno k nadpisu */
  top: 22.5rem;    /* odsazeno pod zelenou čáru, aby do textu nezasahovala */
  width: 36.86%;
  font-size: 1.25rem; /* 20/16 */
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.5;
  z-index: 2;
  margin: 0;
}

.kontakt-underline {
  position: absolute;
  left: 21.643%;   /* 374/1728 — dle Figma */
  top: 19.8125rem; /* 317/16 — mezi nadpisem a podnadpisem */
  width: 16.204%;  /* 280/1728 */
  height: auto;    /* zachová poměr SVG (~7,2:1) */
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
  z-index: 2;
}

.kontakt-alt {
  position: absolute;
  left: 12.037%;   /* 208/1728 */
  top: 45.31rem;   /* posunuto dolů, ať telefon/mail sedí v úrovni submitu */
  width: 28.01%;
  font-size: 1.25rem; /* 20/16 */
  color: var(--color-white);
  z-index: 2;
}

/* Desktop: wrapper je „průhledný" (display:contents), tlačítka zůstávají
   absolutně pozicovaná 1:1 dle Figmy. Na mobilu se z wrapperu stane flex. */
.kontakt-btns { display: contents; }

.kontakt-btn {
  position: absolute;
  top: 48.19rem;   /* zarovnáno na úroveň submitu „Chci nezávaznou konzultaci" */
  width: 16.3125rem; /* 261/16 */
  height: 3.1875rem; /* 51/16 */
  border-radius: 1.125rem; /* 18/16 */
  background: var(--color-accent);
  color: var(--color-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 500;
  z-index: 2;
  transition: background .2s, transform .2s;
}
.kontakt-btn:hover { background: var(--color-accent-soft); transform: translateY(-1px); }
.kontakt-btn--tel  { left: 12.037%; }  /* 208/1728 */
.kontakt-btn--mail { left: 30.035%; text-decoration: underline; text-underline-offset: 3px; }  /* 519/1728 — Figma má UNDERLINE */

/* Form on right (inputs at x=875 inside card) */
.kontakt-form {
  position: absolute;
  left: 50.637%;   /* 875/1728 */
  top: 9.75rem;    /* 156/16 */
  width: 35.475%;  /* 613/1728 */
  z-index: 2;
}
.kontakt-label {
  display: block;
  font-size: 1.25rem; /* 20/16 */
  color: var(--color-white);
  margin-bottom: .5625rem; /* 9px gap label→input dle Figmy */
}
/* Doplněk „(nepovinné)" — méně výrazný: menší a ztlumená barva */
.kontakt-optional {
  font-size: .8em;
  font-weight: 400;
  color: rgba(255, 255, 255, .5);
}
.kontakt-label--email { margin-top: 1.625rem; } /* 26px gap input→next-label dle Figmy */
.kontakt-label--phone { margin-top: 1.25rem; }
.kontakt-label--topic { margin-top: 1.25rem; }
.kontakt-label--msg   { margin-top: 1.25rem; }

.kontakt-input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--color-surface);
  background: var(--color-white);
  border: none;
  border-radius: 1.9375rem; /* 31/16 */
  padding: 1rem 1.6rem;
  outline: none;
  transition: box-shadow .2s;
}
.kontakt-input--name { height: 3.5625rem; } /* 57/16 */
.kontakt-input--email { height: 3.4375rem; } /* 55/16 */
.kontakt-input--phone { height: 3.4375rem; } /* 55/16 — jako email */
/* Select „Co potřebujete vyřešit?" — sjednoceno se vzhledem inputů + vlastní šipka */
.kontakt-input--topic {
  height: 3.4375rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.4rem center;
  background-size: 1.1rem;
  padding-right: 3rem;
}
/* Zpráva je nově nepovinná a menší, aby se rozšířený formulář vešel do karty. */
.kontakt-input--msg  { min-height: 6rem; resize: vertical; padding-top: 1rem; font-family: inherit; }
.kontakt-input:focus { box-shadow: 0 0 0 3px rgba(192,255,114,.5); }

.kontakt-submit {
  margin-top: 1rem;
  height: 3.1875rem;
  padding: 0 2rem;
  border-radius: 1.125rem;
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-weight: 500;
  font-size: 1.125rem;
  transition: background .2s, transform .2s;
  float: right;
}
.kontakt-submit:hover { background: var(--color-accent-soft); transform: translateY(-1px); }

.kontakt-status {
  clear: both;
  margin-top: .7rem;
  font-size: .9rem;
  color: var(--color-accent);
  min-height: 1em;
}

/* =========================================================
   6) FOOTER — 1728 × 534, transparentní frame (top 122 = gray bg, dolu 412 = dark Rectangle 3)
   ========================================================= */
.footer {
  position: relative;
  width: 100%;
  height: 33.375rem; /* 534/16 */
  background: transparent;
  margin-top: -8.125rem; /* -130px overlap dle Figmy */
}

.footer-bg {
  position: absolute;
  left: 0;
  top: 7.625rem;  /* 122/16 */
  width: 100%;
  height: 25.75rem; /* 412/16 */
  background: var(--color-surface);
}

/* Logo ellipse (120,186) 114×114 */
.footer-logo-circle {
  position: absolute;
  left: 6.944%;  /* 120/1728 */
  top: 11.625rem; /* 186/16 */
  width: 7.125rem;
  height: 7.125rem;
  border-radius: 50%;
  background: var(--color-accent);
  z-index: 2;
}
.footer-logo-signature {
  position: absolute;
  left: 6.539%;  /* 113/1728 */
  top: 11.1875rem; /* 179/16 */
  width: 8rem;
  height: 8rem;
  z-index: 3;
  mix-blend-mode: multiply;
}
.footer-logo-text {
  position: absolute;
  left: 14.294%;  /* 247/1728 */
  top: 12.375rem; /* 198/16 */
  display: flex;
  flex-direction: column;
  line-height: 1.25; /* 45/36 */
  color: var(--color-white);
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0;
}
.footer-logo-text span:first-child {
  font-size: 2.25rem;
  font-weight: 200;  /* "Petr" = ExtraLight */
}
.footer-logo-text span:last-child {
  font-size: 2.25rem;
  font-weight: 600;  /* "Matuška" = SemiBold */
}

/* Menu — flex container, same even spacing as header nav */
.footer-menu {
  position: absolute;
  top: 11.75rem;   /* 188/16 */
  right: 6.944%;   /* mirror left padding of logo (~120/1728) */
  display: flex;
  align-items: center;
  gap: 4rem;       /* same as .nav-menu */
  z-index: 2;
}
.footer-link {
  font-size: 1.125rem; /* 18/16 */
  color: var(--color-white);
  transition: color .2s;
  white-space: nowrap;
}
.footer-link:hover { color: var(--color-accent); }

/* Social icons (48×48) at (120,369) (233,369) (344,369) */
.footer-social {
  position: absolute;
  top: 23.0625rem; /* 369/16 */
  width: 3rem;  /* 48/16 */
  height: 3rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.footer-social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-social:hover { transform: translateY(-2px); }
.footer-social--1 { left: 6.944%; }  /* 120/1728 */
.footer-social--2 { left: 13.484%; } /* 233/1728 */
.footer-social--3 { left: 19.907%; } /* 344/1728 */

/* CTA button (1313,347) 315×52 radius 18 */
.footer-cta {
  position: absolute;
  left: 75.984%;   /* 1313/1728 */
  top: 21.6875rem; /* 347/16 */
  width: 19.6875rem; /* 315/16 */
  height: 3.25rem;   /* 52/16 */
  border-radius: 1.125rem;
  background: var(--color-accent);
  color: var(--color-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 500;
  z-index: 2;
  transition: background .2s, transform .2s;
}
.footer-cta:hover { background: var(--color-accent-soft); transform: translateY(-1px); }

/* Horizontal line (100,433) 1530×7 */
.footer-line {
  position: absolute;
  left: 5.787%;    /* 100/1728 */
  top: 27.0625rem; /* 433/16 */
  width: 88.542%;  /* 1530/1728 */
  height: 1px;
  background: rgba(255,255,255,.15);
  z-index: 2;
}

/* Legal links — left (120, 456) per Figma, textCase=LOWER */
.footer-legal {
  position: absolute;
  left: 6.944%;    /* 120/1728 */
  top: 28.5rem;    /* 456/16 */
  font-size: .9375rem; /* 15/16 */
  color: rgba(255, 255, 255, .7);
  z-index: 2;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.footer-legal a { color: inherit; transition: color .2s; }
.footer-legal a:hover { color: var(--color-white); }
.footer-sep { opacity: .5; }

/* =========================================================
   RESPONSIVE BEHAVIOR
   Below 768px: switch to mobile-stacked layout
   ========================================================= */
@media (max-width: 768px) {
  :root { font-size: 14px; }

  body { overflow-x: hidden; }
  /* Mobilní layout je dělaný pro telefony — nad ~460px ho necháme vycentrovaný
     s šedými okraji (čistý telefonní náhled), ať nevzniká prázdná mezera v hero
     při zužování desktopového okna v rozsahu 460–767px. */
  .canvas { overflow-x: hidden; padding: 0; max-width: 460px; margin-inline: auto; }

  /* ---------- NAV ---------- */
  .nav-desktop { display: none; }

  .nav-mobile {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    margin: 0;
    height: 72px;
    padding: 0 20px;
    background: var(--color-surface);
  }
  .nm-toggle { grid-column: 1; grid-row: 1; }
  .nm-logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .nm-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .nm-logo-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    position: relative;
    flex-shrink: 0;
    background-image: url("assets/images/logo-signature.png");
    background-size: 55px;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
  }
  .nm-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0;
  }
  .nm-logo-text span:first-child { font-size: 14px; font-weight: 200; }
  .nm-logo-text span:last-child  { font-size: 18px; font-weight: 600; }

  .nm-toggle {
    width: 36px; height: 36px;
    background: transparent;
    display: flex; flex-direction: column; gap: 5px;
    align-items: center; justify-content: center;
    justify-self: start;
    padding: 0;
  }
  .nm-toggle span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px;
  }
  .nm-panel {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--color-surface);
    padding: 12px 20px 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,.5);
    z-index: 49;
  }
  .nm-panel:not([hidden]) { display: flex; flex-direction: column; gap: 4px; }
  .nm-panel a {
    padding: 14px 12px;
    border-radius: 12px;
    color: var(--color-white);
    text-decoration: none;
  }
  .nm-panel a:hover { background: rgba(255,255,255,.05); }
  .nm-panel .nm-cta {
    margin-top: 8px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    text-align: center;
    font-weight: 500;
  }

  /* ---------- HERO (Figma 102:29) — frame 402×280, hero card 23,9 size 362×267 radius 32 ---------- */
  .hero {
    position: relative;
    width: 100%;
    height: auto;
    margin: 16px 0 0;
    padding: 0;
    overflow: visible;
  }
  /* ===== HERO mobil 2026 — TOKOVÝ layout (ne pevné %-pozice) =====
     Text teče vlevo (nadpis se smí zalomit), portrét je vpravo. Tím zmizí
     překryv nadpisu s čárou/podtitulem na úzkých displejích (≤360px). */
  .hero-card {
    position: relative;
    left: auto; top: auto;
    width: calc(100% - 32px);  /* stejná šířka jako karty pod ní (O MNĚ, kontakt) */
    margin: 0 16px;
    aspect-ratio: 362 / 267;   /* vyšší karta dle původního poměru (Figma) */
    height: auto;
    min-height: 240px;
    padding: 26px 24px 24px 24px;
    border-radius: 32px;
    overflow: hidden;
    background: var(--color-surface-2);
    display: flex;
    flex-direction: column;
  }
  /* Calendar SVG — decentní dekorace na pozadí za textem */
  .hero-calendar {
    position: absolute;
    left: 6%; top: 34%;
    width: 44%;
    height: auto;
    transform: none;
    z-index: 0;
    pointer-events: none;
  }
  /* Portrétový wrapper přesně překrývá kartu (top/bottom:0 → výška = výška karty,
     i když text kartu protáhne); portrét sedí vpravo. */
  .hero-portrait-wrap {
    display: block;
    position: absolute;
    top: 0; bottom: 0;
    left: 16px; right: 16px;
    width: auto; height: auto;
    aspect-ratio: auto;
    border-radius: 32px;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
  }
  .hero-portrait {
    position: absolute;
    left: auto; right: -15%; bottom: -43%; top: auto;
    transform: none;
    width: auto; height: 164%;   /* velký Petr, oříznutý u ruky — vidět od ruky nahoru (dle reference) */
    max-width: none;
    object-fit: contain;
    object-position: bottom right;
    border-radius: 0;
    z-index: 2;
    pointer-events: none;
  }
  .hero-title {
    position: relative;
    left: auto; top: auto;
    width: auto;
    max-width: 76%;        /* na 390px+ se vejde 1 řádek, na užších se zalomí na 2 */
    font-size: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
    z-index: 3;
  }
  .hero-underline {
    position: relative;
    left: auto; top: auto;
    display: block;
    width: 96px;
    max-width: 100%;
    height: 9px;
    margin: 1px 0 0;        /* čára těsně pod titulkem (dle přání zadavatele) */
    object-fit: contain;
    object-position: left center;
    z-index: 3;
  }
  .hero-subtitle {
    position: relative;
    left: auto; top: auto;
    width: 66%;            /* levý sloupec — roste s kartou, ale max-width drží od Petra */
    min-width: 0;
    max-width: 205px;
    font-size: 12px;
    line-height: 1.45;
    margin: 12px 0 0;
    z-index: 3;
  }
  .hero-mobile-break { display: initial; }
  .hero-cta {
    position: relative;
    left: auto; top: auto;
    display: inline-flex;
    width: auto;
    height: auto;
    min-width: 0;
    max-width: none;
    margin: 18px 0 0;
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 3;
    align-items: center;
    justify-content: center;
    align-self: flex-start;  /* šířka dle obsahu, vlevo (ne roztažené na celou kartu) */
    margin-top: auto;        /* tlačítko ke spodnímu okraji karty (dle reference) */
  }

  /* ---------- O MNĚ (mobil 2026, dle Figmy 102:71) — stack: text → tlačítko → fotka DOLE ---------- */
  .omne {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 0; /* reset desktop margin-top */
    padding: 42px 16px 24px;
  }
  .omne-card {
    position: relative;
    left: auto; top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
    padding: 0;                 /* fotka dole lícuje s kartou bez paddingu */
    border-radius: 28px;
    background: var(--color-white);
    box-shadow: 0 15px 40px -15px rgba(0,0,0,.3);
    overflow: hidden;           /* ořízne spodní rohy fotky na tvar karty */
    display: flex;
    flex-direction: column;
  }
  /* Badge "O MNĚ" — překrývá pravý horní roh karty */
  .omne-badge {
    position: absolute;
    left: auto;
    right: 28px;
    top: 22px;
    transform: none;
    width: 44%;
    max-width: 200px;
    min-width: 0;
    height: 49px;
    padding: 0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
  }
  .omne-badge h2 { font-size: 20px; line-height: 1; text-align: center; margin: 0; letter-spacing: 0.04em; }
  /* Text nahoře — odsazení shora kvůli badge */
  .omne-text {
    order: 1;
    position: static;
    display: flex;
    flex-direction: column;
    gap: 12px;
    left: auto; top: auto;
    width: auto; height: auto;
    margin: 0;
    padding: 48px 20px 0;
    justify-content: flex-start;
  }
  .omne-text > p {
    position: static;
    left: auto; top: auto;
    width: auto;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--color-surface);
    text-align: left;
  }
  /* CTA — vystředěné mezi textem a fotkou */
  .omne-cta {
    order: 2;
    position: relative;
    left: auto; top: auto;
    transform: none;
    display: inline-flex;
    align-self: center;
    width: 211px;
    max-width: 85%;
    height: 43px;
    margin: 22px 0 24px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    align-items: center;
    justify-content: center;
    z-index: 4;
  }
  .omne-cta:hover { transform: translateY(-1px); }
  /* Lifestyle fotka DOLE — přes celou šířku karty, lícuje s hranami, spodní rohy ořízne karta */
  .omne-photo {
    order: 3;
    position: relative;
    left: auto; top: auto; right: auto; bottom: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 362 / 292;
    margin: 0;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    z-index: 1;
  }

  /* ---------- SLUŽBY (Figma 102:94) — frame 402×833, title 25px, card 391×186 radius 35 ---------- */
  .sluzby {
    position: relative;
    width: 100%;
    margin: 0;
    height: auto;
    padding: 30px 0 40px;
    background: var(--color-surface);
  }
  .sluzby-title {
    position: relative;
    left: auto; top: auto;
    width: auto;
    font-size: 25px;
    text-align: center;
    line-height: 1.2;
    margin: 0 0 4px;
  }
  /* Vector 5 (mobile underline) — 143×14 stroke 4 */
  .sluzby-underline {
    position: relative;
    left: auto; top: auto;
    display: block;
    width: 143px;
    height: 14px;
    margin: 0 auto 28px;
  }
  /* Card mobile — viditelná bílá karta (Rectangle 11 376×176) má 13px od kraje viewport (402-376)/2 */
  .svc {
    position: relative;
    left: auto; top: auto;
    width: calc(100% - 26px);
    margin: 0 13px 10px;
    height: auto;
    min-height: 166px;
    padding: 20px 18px 18px;
    border-radius: 35px;
  }
  /* Poslední karta bez bottom margin — drží vertikální alignment dle Figma layoutu */
  .svc:last-of-type { margin-bottom: 0; }
  .svc-icon { position: relative; left: auto; top: auto; margin: 0 auto 8px; display: block; width: 64px; height: 64px; }
  .svc--1 .svc-icon,
  .svc--2 .svc-icon,
  .svc--3 .svc-icon,
  .svc--4 .svc-icon { left: auto; }
  /* Title 20px SemiBold UPPER center */
  .svc-title { position: relative; left: auto; top: auto; font-size: 20px; line-height: 1.3; margin: 0 0 6px; text-align: center; }
  /* Desc 10px Regular center */
  .svc-desc { position: relative; left: auto; right: auto; top: auto; margin: 0 auto 14px; font-size: 10px; line-height: 1.3; }
  /* Link 12px Regular, button 120×34 radius 7 (uživatel) */
  .svc-link { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; display: flex; width: auto; min-width: 120px; padding: 0 14px; height: 34px; font-size: 12px; }
  .svc-link:hover { transform: translateY(-1px); }

  /* ---------- KONTAKT ---------- */
  .kontakt {
    position: relative;
    overflow: hidden;   /* ořež dekorativní „?" na okraj karty */
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin: 24px 16px 32px;
    height: auto;
    padding: 36px 22px 40px;
    background: var(--color-surface);
    border-radius: 32px;
    display: grid;
    /* minmax(0,1fr) — sloupce se NEroztáhnou obsahem (jinak by dlouhý
       e-mail rozšířil kartu a flex-wrap u tlačítek by se nespustil) */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "title  title"
      "ul     ul"
      "sub    sub"
      "form   form"
      "alt    alt"
      "btns   btns";
    column-gap: 12px;
    row-gap: 0;
    align-items: start;
    box-sizing: border-box;
  }
  .kontakt-card { display: none; }
  /* Dekorativní „?" i na mobilu dle Figmy (node 102:311). Rozměry i pozice
     proporčně k šířce okna (vw), aby byl poměr stejný jako ve Figmě
     (viewport 402px): font 300px, x 21px, y -77px. Náklon dědí (12°). */
  .kontakt-question {
    display: block;
    left: min(5.2vw, 24px);          /* drží proporci i po zastropování na 460px */
    top: max(-15vw, -69px);
    font-size: min(74vw, 340px);
    z-index: 0;
  }
  /* Klikatá čára na mobilu: bílá (filtrem ze zeleného SVG), centrovaná pod nadpisem. */
  .kontakt-underline {
    grid-area: ul;
    position: relative;
    left: auto; top: auto;
    display: block;
    width: 160px;
    height: auto;
    margin: 8px auto 0;
    filter: brightness(0) invert(1); /* zelená #C0FF72 → bílá */
  }
  .kontakt-title {
    grid-area: title;
    position: relative;
    left: auto; top: auto;
    width: auto;
    font-size: 22px;
    line-height: 1.25;
    text-align: center;
    margin: 0;
    color: var(--color-white);
  }
  .kontakt-subtitle {
    grid-area: sub;
    position: relative;
    left: auto; top: auto;
    width: auto;
    font-size: 14px;
    text-align: center;
    margin: 8px 0 24px;
  }
  .kontakt-form {
    grid-area: form;
    position: relative;
    left: auto; top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .kontakt-input--msg { min-height: 120px; }
  .kontakt-submit {
    float: none;
    width: 100%;
    margin-top: 16px;
  }
  .kontakt-alt {
    grid-area: alt;
    position: relative;
    left: auto; top: auto;
    width: auto;
    font-size: 12px;
    margin: 24px 0 12px;
    text-align: center;
    color: var(--color-white);
  }
  /* Wrapper: vedle sebe dle Figmy; když se nevejdou (min-width = šířka textu),
     flex-wrap je sám zalomí pod sebe. Nikdy nepřetečou. */
  .kontakt-btns {
    grid-area: btns;
    display: flex;
    flex-wrap: wrap;          /* vedle sebe; když se nevejdou čitelně, zalomí pod sebe */
    gap: 8px;
    width: 100%;
  }
  .kontakt-btn {
    position: relative;
    left: auto; top: auto;
    flex: 1 1 auto;
    min-width: max-content;   /* nikdy užší než text → místo zmenšování textu se zalomí */
    width: auto;
    margin: 0;
    height: 44px;
    /* min 11px = čitelnost; vejdou-li se vedle sebe, jsou; jinak flex-wrap stackne */
    font-size: clamp(11px, 2.95vw, 14px);
    padding: 0 8px;
    white-space: nowrap;
  }

  /* ---------- FOOTER ---------- */
  .footer {
    position: relative;
    width: 100%;
    margin: 0;
    height: auto;
    padding: 32px 20px 20px;
    background: var(--color-surface);
    display: grid;
    /* minmax(0,1fr) — sloupce se neroztáhnou obsahem (ochrana proti přetečení) */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "logo menu"
      "social cta"
      "line line"
      "legal legal";
    column-gap: 14px;
    row-gap: 18px;
    align-items: center;
  }
  .footer-bg { display: none; }

  /* logo block (circle + text) — grid area "logo" */
  .footer-logo-circle {
    position: relative;
    left: auto; top: auto;
    grid-area: logo;
    width: 56px;
    height: 56px;
    margin: 0;
    background-image: url("assets/images/logo-signature.png");
    background-size: 72px;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    justify-self: start;
  }
  .footer-logo-signature { display: none; }
  .footer-logo-text {
    position: absolute;
    left: 80px;
    top: 38px;
    align-items: flex-start;
    margin: 0;
    line-height: 1.05;
  }
  .footer-logo-text span:first-child { font-size: 14px; font-weight: 200; }
  .footer-logo-text span:last-child  { font-size: 20px; font-weight: 600; }

  /* menu — right side, horizontal */
  .footer-menu {
    position: relative;
    left: auto; top: auto; right: auto;
    grid-area: menu;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin: 0;
  }
  .footer-link {
    position: relative;
    left: auto; top: auto;
    display: inline-block;
    padding: 0;
    font-size: 13px;
  }

  /* social row left */
  .footer-social {
    position: relative;
    left: auto; top: auto;
    width: 28px; height: 28px;
    margin: 0;
  }
  .footer-social--1 { grid-area: social; justify-self: start; }
  .footer-social--2 { grid-area: social; justify-self: start; margin-left: 40px; }
  .footer-social--3 { grid-area: social; justify-self: start; margin-left: 80px; }

  /* CTA right of social row */
  .footer-cta {
    position: relative;
    left: auto; top: auto;
    grid-area: cta;
    display: inline-flex;
    width: auto;
    max-width: none;
    height: 40px;
    padding: 0 22px;
    margin: 0;
    justify-self: end;
    font-size: 13px;
  }

  .footer-line {
    position: relative;
    left: auto; top: auto;
    grid-area: line;
    display: block;
    width: 100%;
    margin: 0;
  }

  .footer-legal {
    position: relative;
    left: auto; top: auto;
    grid-area: legal;
    text-align: center;
    font-size: 12px;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-cta, .hero-cta, .omne-cta, .svc, .svc-link, .kontakt-btn, .footer-cta, .footer-social {
    transition: none;
  }
}

/* =========================================================
   Legal dialogs (privacy / cookies)
   ========================================================= */
.legal-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: none;
  border-radius: 28px;
  background: var(--color-surface);
  color: var(--color-white);
  font-family: 'Poppins', system-ui, sans-serif;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  overflow: hidden;
  /* safe starting point for CSS transitions on <dialog> */
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, overlay .2s ease allow-discrete, display .2s allow-discrete;
}
.legal-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@starting-style {
  .legal-dialog[open] {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
}
.legal-dialog::backdrop {
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.legal-dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
}

.legal-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--color-white);
  cursor: pointer;
  transition: background .2s;
}
.legal-dialog-close:hover { background: rgba(255, 255, 255, .14); }
.legal-dialog-close svg { width: 18px; height: 18px; }

.legal-dialog-title {
  flex-shrink: 0;
  margin: 0;
  padding: 28px 32px 16px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-accent);
}

.legal-dialog-body {
  overflow-y: auto;
  padding: 0 32px 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
}
.legal-dialog-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  margin: 20px 0 8px;
  letter-spacing: 0;
}
.legal-dialog-body p { margin: 0 0 12px; }
.legal-dialog-body ul { margin: 0 0 12px; padding-left: 20px; }
.legal-dialog-body li { margin-bottom: 6px; }
.legal-dialog-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-dialog-body strong { color: var(--color-white); }
.legal-dialog-note {
  margin-top: 20px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

.legal-dialog-ok {
  flex-shrink: 0;
  align-self: flex-end;
  margin: 16px 32px 28px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.legal-dialog-ok:hover {
  background: var(--color-accent-soft);
  transform: translateY(-1px);
}

.footer-legal a { cursor: pointer; }

@media (max-width: 768px) {
  .legal-dialog { border-radius: 20px; }
  .legal-dialog-title { padding: 22px 24px 12px; font-size: 20px; }
  .legal-dialog-body { padding: 0 24px 8px; font-size: 13px; }
  .legal-dialog-ok { margin: 14px 24px 22px; padding: 10px 22px; font-size: 14px; }
}
