/*
 * VOICE: osobní portfolio vývojáře – přátelské tykání, krátké věty, sebevědomě bez nadsázky.
 * IDEA: vývojářův zápisník – mátový zvýrazňovač pod důležitými slovy, ručně tažená zelená linka v nadpisech.
 * PICTURE: portrét v kruhu s mátovým razítkem; screenshoty projektů jako lehce natočená mozaika.
 * COLOUR/TYPE: navy #031d44, zelená z loga #44cf6c, mátová #a9fdac / #ccedd7; Poppins 800 + Inter.
 * LAYOUT: kontejner 1200 px, sticky hlavička, karty 2 + 3, timeline split, navy patička s hodnocením Spotero.
 * Podle šablony BILDI „devmode“ (bildi/server/www/themes/devmode.css).
 */

:root {
  color-scheme: light;
  --ink: #031d44;
  --ink-soft: #42526b;
  --green: #44cf6c;
  --green-text: #16803a;
  --mint: #a9fdac;
  --mint-soft: #ccedd7;
  --mint-faint: #f1ffe7;
  --line: #e3e8ef;
  --paper: #f6f8f5;
  --foot-text: #c9d3e3;
  --foot-muted: #8fa0b8;
  --display: 'Poppins', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --h2: clamp(30px, 3.6vw, 48px);
  --radius: 24px;
  --swash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5c18-4 38-6.5 58-5.5s37 3 58 1' fill='none' stroke='%2344cf6c' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  --bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffbf00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 48px, 1200px); margin-inline: auto; }
.nowrap, .text-nowrap { white-space: nowrap; }

/* Důležitá slova: mátový zvýrazňovač, <em> v nadpisech: ručně tažená linka */
:is(p, li) strong {
  font-weight: 600;
  background: linear-gradient(transparent 52%, var(--mint) 52%, var(--mint) 90%, transparent 90%);
  padding: 0 .12em;
  margin: 0 -.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:is(h1, h2, h3) em { font-style: normal; background: var(--swash) no-repeat 0 100% / 100% .32em; padding-bottom: .06em; }

/* ── Tlačítka a štítky ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font: 600 15px/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost { background: #fff; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 14px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--ink);
  font: 600 13px/1.4 var(--sans);
  letter-spacing: .01em;
}
.eyebrow--dark { background: rgba(169, 253, 172, .16); color: var(--mint); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ── Hlavička ────────────────────────────────────────────────────── */

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: block; border-radius: 10px; }
.logo img { width: 44px; height: 44px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { position: relative; padding: 6px 0; font: 500 15px/1.4 var(--display); text-decoration: none; }
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  transform: translateX(-50%) scale(0);
  transition: transform .15s;
}
.nav__link:is(:hover, .is-active)::after { transform: translateX(-50%) scale(1); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.menu-toggle svg { margin: auto; }

/* ── Úvod: portrét v kruhu + o mně ──────────────────────────────── */

.intro { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.intro__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.portrait { position: relative; width: 100%; max-width: 400px; margin: 0; justify-self: center; }
.portrait::before {
  content: '';
  position: absolute;
  right: -14%;
  bottom: -16%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint-faint);
  border: 2px dashed var(--mint-soft);
}
.portrait::after {
  content: '';
  position: absolute;
  top: 4%;
  right: -2%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint);
  mix-blend-mode: multiply;
}
.portrait picture, .portrait img { position: relative; z-index: 1; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 8px solid #fff; border-radius: 50%; box-shadow: 0 24px 60px rgba(3, 29, 68, .14); }
.intro h1 { margin: 0 0 20px; font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.lead { max-width: 640px; color: var(--ink-soft); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; }
.lead p { margin: 0 0 14px; }
.lead strong { color: var(--ink); }

/* ── Sekce a nadpisy ─────────────────────────────────────────────── */

.section { padding-block: clamp(40px, 5vw, 64px); }
.head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.head h2, .prose h2, .band h2 { font-size: var(--h2); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.head h2 { margin: 0 0 14px; }
.head__intro { color: var(--ink-soft); font-size: 17px; }
.head__intro p { margin: 0 0 12px; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .actions { justify-content: center; }

/* ── Karty projektů ──────────────────────────────────────────────── */

.cards { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  --logo: 36px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--mint-soft); box-shadow: 0 22px 50px rgba(3, 29, 68, .10); }
.card__media { display: block; margin: 10px 10px 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: var(--paper); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px 24px 26px; }
.card__badge { margin-bottom: 12px; padding: 3px 12px; font-size: 12px; }
.card__heading { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.card__logo { flex: none; width: var(--logo); height: var(--logo); object-fit: contain; }
.card__title { font-size: 22px; font-weight: 700; line-height: 1.25; }
a.card .card__title::after { content: ' →'; color: var(--green); transition: margin .15s; }
a.card:hover .card__title::after { margin-left: 4px; }
.card__text { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.card__text p { margin: 0 0 12px; }
.card__text > :last-child { margin-bottom: 0; }
.card__text ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.card__text li { padding: 6px 14px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 14px; }
.card__text li strong { padding: 0; margin: 0; background: none; color: var(--ink); }
.card__text .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; }
.chips a:hover { border-color: var(--green); background: var(--mint-faint); }
.card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: auto; padding-top: 24px; }
.card__link { font-weight: 600; text-decoration: none; }
.card__footer .btn { min-height: 44px; padding: 8px 18px; font-size: 14px; }
.cards--2 .card { --logo: 48px; }
.cards--2 .card__body { padding: 28px 32px 32px; }
.cards--2 .card__title { font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.03em; }
.cards--2 .card__text { font-size: 16.5px; }

/* ── Timeline ────────────────────────────────────────────────────── */

.timeline { padding-block: clamp(56px, 8vw, 112px) clamp(24px, 3vw, 40px); }
.timeline__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 7vw, 104px); }
.timeline__aside { position: sticky; top: 104px; align-self: start; }
.timeline__aside .head { margin-bottom: 0; }
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.years li { padding: 14px 16px; border-radius: 18px; background: var(--paper); color: var(--ink-soft); font-size: 14px; line-height: 1.3; }
.years li strong { display: block; margin: 0 0 2px; padding: 0; background: none; color: var(--ink); font: 800 26px/1.1 var(--display); letter-spacing: -0.03em; }
.tl { position: relative; margin: 0; padding: 0 0 0 42px; list-style: none; }
.tl::before { content: ''; position: absolute; left: 9px; top: 10px; bottom: 24px; width: 2px; border-radius: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 44px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--ink);
  transition: background .15s;
}
.tl-item:hover::before { background: var(--mint); }
.tl-item__period { margin: 0; color: var(--green-text); font: 600 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.tl-item h3 { margin: 4px 0 2px; font-size: 21px; font-weight: 700; line-height: 1.3; }
.tl-item__sub { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.tl-item__text { color: var(--ink-soft); font-size: 15.5px; }
.tl-item__text p { margin: 0 0 10px; }
.tl-item__text strong { font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.tag { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 12.5px; font-weight: 500; line-height: 1.5; }
.tag--new { border-color: var(--mint); background: var(--mint); font-weight: 600; }

/* ── Podstránka projektu ─────────────────────────────────────────── */

.phero { padding-block: clamp(32px, 5vw, 72px) clamp(40px, 6vw, 88px); }
.phero__copy { max-width: 820px; }
.phero h1 { margin: 0 0 20px; font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.mosaic { position: relative; display: grid; gap: clamp(14px, 2vw, 24px); margin-top: clamp(32px, 4vw, 56px); isolation: isolate; }
.mosaic::before { content: ''; position: absolute; z-index: -1; top: -8%; right: -4%; width: clamp(180px, 30vw, 420px); aspect-ratio: 1; border-radius: 50%; background: var(--mint-faint); }
.mosaic figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 44px rgba(3, 29, 68, .10); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.mosaic--grid { grid-template-columns: 1.25fr 1fr; }
.mosaic--grid figure:nth-child(1) { grid-row: span 2; aspect-ratio: auto; transform: rotate(-1deg); }
.mosaic--grid figure:nth-child(2) { transform: rotate(1deg); }
.mosaic--grid figure:nth-child(4) { grid-column: 1 / -1; aspect-ratio: 21 / 8; transform: rotate(-.5deg); }
.mosaic--asymmetric { grid-template-columns: 1.5fr 1fr; }
.mosaic--asymmetric figure:nth-child(1) { grid-row: span 2; aspect-ratio: auto; transform: rotate(-1deg); }
.mosaic--asymmetric figure:nth-child(3) { transform: rotate(1.2deg); }
.mosaic--overlap { grid-template-columns: 1.4fr 1fr; align-items: end; }
.mosaic--overlap figure:nth-child(1) { transform: rotate(-1deg); }
.mosaic--overlap figure:nth-child(2) { margin: 0 0 -4% -12%; transform: rotate(1.5deg); }
.mosaic--single { max-width: 1040px; }

.stats, .steps { display: grid; gap: clamp(14px, 2vw, 24px); }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { padding: 26px 24px; border-radius: var(--radius); background: var(--paper); }
.tile p { margin: 6px 0 0; color: var(--ink-soft); }
.tile .stat__value { margin: 0; color: var(--ink); font: 800 clamp(32px, 3.4vw, 46px)/1.1 var(--display); letter-spacing: -0.04em; }
.stat__value::before { content: ''; display: block; width: 36px; height: 5px; margin-bottom: 18px; border-radius: 5px; background: var(--green); }
.step .card__badge { background: var(--mint); }
.step h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }

.prose { max-width: 760px; margin-inline: auto; color: var(--ink-soft); font-size: 17px; line-height: 1.75; }
.prose h2 { margin: 0 0 20px; }
.prose h3 { display: flex; align-items: center; gap: 10px; margin: 36px 0 10px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.prose h3::before { content: ''; flex: none; width: 22px; height: 22px; background: var(--bolt) no-repeat center / contain; }
.prose p { margin: 0 0 16px; }
.prose > ul:last-child { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.prose > ul:last-child li { padding: 5px 14px; border-radius: 999px; background: var(--mint-soft); color: var(--ink); font-size: 14px; font-weight: 500; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shot { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font: 500 14px/1.4 var(--sans); text-align: left; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .4s; }
.shot:hover img { transform: scale(1.03); }
.shot span { display: block; padding: 12px 16px; border-top: 1px solid var(--line); }

.band {
  position: relative;
  width: min(100% - 32px, 1200px);
  margin: clamp(40px, 5vw, 64px) auto;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 64px);
  overflow: hidden;
  border-radius: 32px;
  background: var(--ink);
  color: var(--foot-text);
  text-align: center;
}
.band::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; aspect-ratio: 1; border: 2px dashed rgba(169, 253, 172, .45); border-radius: 50%; pointer-events: none; }
.band__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.band h2 { margin: 0 0 12px; color: #fff; }
.band p { margin: 0; font-size: 18px; }
.band .actions { justify-content: center; }
.band .btn { border-color: #fff; box-shadow: 3px 3px 0 #fff; }
.band .btn:hover { box-shadow: 4px 4px 0 #fff; }
.band .btn--ghost { background: transparent; color: #fff; }

/* ── Patička + hodnocení Spotero ─────────────────────────────────── */

.footer { margin-top: clamp(32px, 5vw, 72px); padding-block: clamp(48px, 6vw, 72px) 32px; border-radius: 32px 32px 0 0; background: var(--ink); color: var(--foot-text); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 7vw, 112px); align-items: center; }
.footer .logo img { width: 52px; height: 52px; }
.footer h2 { margin: 28px 0 14px; color: #fff; font-size: var(--h2); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.footer p { margin: 0 0 12px; font-size: 17px; }
.footer strong { padding: 0; margin: 0; background: none; color: #fff; }
.footer a { color: var(--mint); text-decoration-color: rgba(169, 253, 172, .4); }
.footer a:hover { text-decoration-color: var(--mint); }
.footer__mail { display: inline-block; margin-top: 8px; font: 700 clamp(22px, 2.4vw, 30px)/1.3 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.footer .btn { box-shadow: 3px 3px 0 #fff; border-color: #fff; color: var(--ink); text-decoration: none; }
.footer .btn:hover { box-shadow: 4px 4px 0 #fff; }
.social { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: #fff !important; text-decoration: none; }
.social:hover { border-color: var(--mint); background: rgba(169, 253, 172, .1); }
.rating__note { margin: 0 0 14px !important; font-size: 15px !important; }
.rating__frame { display: block; width: 360px; max-width: 100%; height: 420px; border: 0; border-radius: 16px; background: #fffdf6; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--foot-muted); font-size: 14px; }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(3, 29, 68, .2);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

.lightbox { width: min(100vw - 32px, 1200px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); }
.lightbox::backdrop { background: rgba(3, 29, 68, .82); }
.lightbox img { width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: var(--paper); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.lightbox__bar p { margin: 0; font-weight: 600; }
.lightbox__bar div { display: flex; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--green); background: var(--mint-faint); }

/* ── Menší obrazovky ─────────────────────────────────────────────── */

@media (max-width: 980px) {
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .intro__inner, .timeline__inner, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 280px; margin-bottom: 16px; }
  .timeline__aside { position: static; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .menu-toggle { display: grid; }
  .nav { position: absolute; top: 100%; left: -24px; right: -24px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 24px 40px rgba(3, 29, 68, .08); }
  .nav.is-open { display: flex; }
  .nav__link { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__link::after { display: none; }
  .nav .btn { align-self: flex-start; margin-top: 16px; }
  .cards--2, .cards--3 { grid-template-columns: minmax(0, 1fr); }
  .cards--2 .card__body { padding: 22px 22px 26px; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, 1200px); }
  .mosaic, .steps, .gallery { grid-template-columns: minmax(0, 1fr); }
  .mosaic figure { grid-row: auto !important; grid-column: auto !important; aspect-ratio: 16 / 10 !important; margin: 0 !important; }
  .band { border-radius: 24px; }
  .footer { border-radius: 24px 24px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Spotero – mapa okolí a mobilní aplikace */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature .head { margin-bottom: 0; }
.feature__media { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(3, 29, 68, .10); transform: rotate(1deg); }
.feature__media img { display: block; width: 100%; height: auto; }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 3vw, 40px); }
.phone { flex: 0 1 270px; margin: 0; text-align: center; }
.phone:nth-child(2) { margin-top: -28px; }
.phone__frame { padding: 9px; border-radius: 44px; background: var(--ink); box-shadow: 0 24px 50px rgba(3, 29, 68, .22); }
.phone img { display: block; width: 100%; height: auto; border-radius: 35px; }
.phone figcaption { margin-top: 18px; color: var(--ink); font-size: 15px; font-weight: 600; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature__media { transform: none; } }
@media (max-width: 760px) {
  .phones { justify-content: flex-start; overflow-x: auto; margin-inline: calc(50% - 50vw); padding: 8px calc(50vw - 50%) 20px; scroll-snap-type: x mandatory; }
  .phone { flex: 0 0 220px; scroll-snap-align: center; }
  .phone:nth-child(2) { margin-top: 0; }
}
.feature__phone { justify-self: center; width: min(300px, 100%); }
.feature__phone .phone__frame { transform: rotate(2deg); }
@media (max-width: 900px) { .feature__phone { width: min(260px, 80%); } }
html, body { overflow-x: clip; }
