@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/be-vietnam-pro-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/be-vietnam-pro-normal-500.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/be-vietnam-pro-normal-600.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/be-vietnam-pro-normal-700.woff2') format('woff2'); }

/* Rozložení podle dodané reference, nikoli podle předchozí V2. */
:root {
  --paper: #faf9f6;
  --ink: #17211e;
  --green: #103d32;
  --green-hover: #205344;
  --muted: #626a66;
  --line: #eeece7;
  --soft: #f3f2ee;
  --sage: #ddefe6;
  --accent: #b7ff65;
  --header-height: 80px;
  --white: #fff;
  --font: 'Be Vietnam Pro', Arial, sans-serif;
  --radius: 16px;
  --radius-button: 10px;
  --shadow: 0 8px 30px -12px #393c3020;
  --shadow-hover: 0 16px 35px -13px #20382d30;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: #bcc9bd var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 14px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--green); color: var(--white); }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
p { max-width: 68ch; }
p + p { margin-top: 11px; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(31.5px, 8.6vw, 40px); line-height: 1.24; font-weight: 700; letter-spacing: -.055em; color: #12372f; }
h1 > span { display: block; }
h1 > span:first-child { font-size: 1.16em; margin-bottom: 3px; }
h2 { font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -.05em; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -.035em; }
img { width: 100%; height: auto; display: block; }
.wrap { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 28px; scroll-margin-top: 24px; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 30; top: 12px; left: 15px; background: var(--green); color: var(--white); padding: 12px 20px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Kompaktní navigace reference: značka, odkazy uprostřed, samostatné CTA. */
.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 15px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 13px; align-items: center; }
.brand-monogram { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.09em; color: #143b31; }
.brand-name { font-size: 13px; font-weight: 600; line-height: 1.5; }
.brand-name > span { font-size: 10px; color: var(--muted); display: block; font-weight: 400; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switch:not([hidden]) { display: inline-flex; align-items: center; gap: 1px; color: var(--muted); font-size: 12px; flex-shrink: 0; }
.language-switch button { border: 0; background: transparent; color: inherit; padding: 8px 6px; min-height: 44px; font-size: 12px; border-radius: 6px; }
.language-switch button[aria-pressed="true"] { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 600px) {
  .site-header { column-gap: 8px; }
  .header-actions { gap: 5px; }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .site-header { column-gap: 10px; }
  .site-header nav { gap: 12px !important; }
}
.header-cta { display: none !important; }
.menu-toggle { min-height: 44px; padding: 9px 12px; border: 1px solid #deded5; border-radius: var(--radius-button); background: var(--white); font-size: 12px; color: var(--green); gap: 13px; align-items: center; }
.menu-toggle:not([hidden]) { display: inline-flex; }
.menu-symbol { display: grid; gap: 5px; width: 15px; }
.menu-symbol i { display: block; height: 1px; width: 15px; background: currentColor; transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded='true'] .menu-symbol i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-symbol i:last-child { transform: translateY(-3px) rotate(-45deg); }
.site-header nav { display: flex; flex-wrap: wrap; width: 100%; order: 3; gap: 10px 22px; padding-block: 15px 22px; font-size: 13px; }
.site-header nav.menu-enhanced { display: none; }
.site-header nav.menu-enhanced.open { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
.site-header nav.open a { padding: 12px 4px; }

/* První obrazovka: shodná textová hierarchie a dvojice zařízení. */
.hero { padding-block: 30px 17px; }
.hero-label { font-size: 10px; color: var(--muted); letter-spacing: .16em; margin-bottom: 14px; font-weight: 500; }
.hero-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 19px; max-width: 48ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 46px; padding: 12px 18px; border: 1px solid var(--green); border-radius: var(--radius-button); background: var(--green); color: var(--white); box-shadow: 0 6px 14px -7px #123e3350; font-weight: 500; font-size: 12px; transition: transform .28s var(--ease), background .2s, box-shadow .25s; }
.button > .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.button:active { transform: translateY(0); }
.button-white { background: var(--white); color: var(--ink); border-color: #e3e2dc; box-shadow: var(--shadow); }
.hero-visual { margin-top: 28px; min-width: 0; }
.device-stage { position: relative; aspect-ratio: 1.5; width: 100%; padding-top: 15px; }
.laptop { position: absolute; width: 88%; top: 16px; left: 2%; }
.laptop-display { position: relative; border: 7px solid #171a17; border-top-width: 12px; border-radius: 12px 12px 6px 6px; overflow: hidden; background: #171a17; transform: perspective(900px) rotateY(-5deg) rotate(-2deg); transform-origin: bottom; box-shadow: 0 15px 25px -15px #1c25234d; transition: transform .7s var(--ease); }
.laptop-display > img { aspect-ratio: 1.55; object-fit: cover; border-radius: 2px; }
.camera-dot { position: absolute; top: -8px; left: 50%; width: 3px; height: 3px; border-radius: 50%; background: #4b514b; }
.laptop-base { position: relative; width: 112%; height: 10px; margin-left: -6%; margin-top: -1px; border-radius: 1px 1px 40% 40%; background: #c2c1b9; border-bottom: 3px solid #8e9189; box-shadow: 0 10px 14px -4px #233b3133; transform: rotate(-1deg); }
.laptop-base > span { position: absolute; top: 0; left: 39%; width: 22%; height: 3px; border-radius: 0 0 8px 8px; background: #92958e; }
.phone-preview { position: absolute; right: 1%; bottom: 8%; width: 25%; border: 5px solid #171a17; border-radius: 15px; padding-top: 6px; background: #171a17; box-shadow: 0 10px 20px -8px #1c252359; transform: rotate(2deg); overflow: hidden; transition: transform .6s var(--ease); }
.phone-preview > img { border-radius: 9px; }
.phone-camera { position: absolute; width: 28%; height: 5px; top: 2px; left: 36%; background: #171a17; border-radius: 0 0 5px 5px; }
.hero-visual > figcaption { font-size: 12px; text-align: center; color: var(--muted); margin-top: 2px; }
.hero-features { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; padding: 0; margin: 23px 0 0; color: #4f5b55; font-size: 12px; }
.hero-features > li { display: flex; align-items: center; gap: 9px; }
.hero-features .icon { width: 21px; height: 21px; color: var(--green); }

/* Karty projektů jsou na desktopu vodorovné, jako v referenci. */
.section-intro { margin-bottom: 22px; }
.section-intro > div > p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.section-intro > p { margin-top: 12px; color: var(--muted); font-size: 13px; }
.section-intro > .text-link { margin-top: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: underline; font-size: 12px; font-weight: 500; }
.text-link .icon { width: 18px; height: 18px; }
.project-grid { display: grid; gap: 17px; }
.project { background: #fdfcf9; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 15px; display: grid; gap: 18px; align-items: start; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.project-preview { min-width: 0; }
.project-preview > img { border-radius: var(--radius); aspect-ratio: 1.5; object-fit: cover; }
.project-preview > figcaption { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 7px; }
.project-info { min-width: 0; padding: 1px 3px 5px; }
.project-info h3 { font-size: 18px; letter-spacing: -.045em; }
.project-kind { display: inline-block; border-radius: 50px; padding: 3px 10px; background: var(--sage); color: var(--green); margin-top: 8px; font-size: 12px; line-height: 1.5; }
.project-info > p:not(.project-kind) { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.project-info details { margin-top: 12px; }
.project-info summary { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; list-style: none; font-size: 13px; color: var(--green); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; font-weight: 500; }
.project-info summary::-webkit-details-marker { display: none; }
.project-info summary .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.project-info details[open] summary .icon { transform: rotate(90deg); }
.project-info details p { font-size: 13px; color: var(--muted); margin-block: 7px 10px; }

/* Čtyři servisní karty jsou výslovnou součástí dodané reference. */
.price { font-size: 19px !important; font-weight: 500; color: var(--ink) !important; margin-top: 2px !important; letter-spacing: -.025em; }
.service-list { display: grid; gap: 15px; }
.service-card { position: relative; min-height: 215px; padding: 24px 24px 54px; background: #fdfcf9; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.service-card dt > .icon { display: block; width: 31px; height: 31px; margin-bottom: 15px; color: var(--green); stroke-width: 1.7; }
.service-card dt > span { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -.035em; }
.service-card dd { color: var(--muted); font-size: 14px; margin-top: 9px; line-height: 1.7; }
.card-arrow { position: absolute; right: 18px; bottom: 17px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-button); background: var(--sage); color: var(--green); transition: background .2s, transform .25s var(--ease); }
.card-arrow > .icon { width: 19px; height: 19px; }

/* Kroky jako propojené malé panely; na mobilu stejné pořadí pod sebou. */
.steps { display: grid; gap: 17px; padding: 0; margin: 0; list-style: none; }
.steps > li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 8px 15px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fdfcf9; }
.step-marker { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 13px; font-weight: 500; grid-row: 1 / 4; }
.step-icon { width: 26px; height: 26px; color: var(--green); }
.steps h3 { grid-column: 2; font-size: 14px; font-weight: 600; margin-top: 2px; line-height: 1.4; letter-spacing: -.025em; }
.steps p { grid-column: 2; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Místo nedodaného portrétu zůstává osobní typografická vizitka. */
.about { display: grid; gap: 23px; }
.personal-mark { padding: 24px; border-radius: var(--radius); background: #e9e7e2; min-height: 240px; display: flex; flex-direction: column; align-items: start; justify-content: end; max-width: 280px; }
.personal-mark > span { font-size: 94px; font-weight: 700; color: var(--green); line-height: 1.1; letter-spacing: -.1em; margin-bottom: auto; }
.personal-mark strong { font-size: 20px; font-weight: 600; letter-spacing: -.04em; }
.personal-mark p { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 4px; }
.about-text h2 { margin-bottom: 10px; }
.about-text p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.about-text .statement { font-size: 15px; color: #46524b; }
.about-text .button { margin-top: 15px; min-height: 40px; padding: 9px 16px; border-radius: var(--radius-button); }
.about-facts { background: var(--soft); border-radius: var(--radius); padding: 22px; display: grid; gap: 20px; align-content: center; }
.about-facts > div { display: flex; align-items: start; gap: 16px; }
.about-facts .icon { color: var(--green); width: 26px; height: 26px; }
.about-facts p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.about-facts strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; margin-bottom: 2px; }

/* Panel kontaktu má vlastní zaoblený rámec a skutečné kontaktní karty. */
.contact { border-radius: var(--radius); background: var(--green); color: var(--white); padding: 25px; margin-block: 7px 0; display: grid; gap: 23px; scroll-margin-top: 24px; }
.contact a:focus-visible { outline-color: var(--white); }
.section-label { font-size: 10px; font-weight: 500; letter-spacing: .12em; margin-bottom: 7px; color: #dae8df; }
.contact h2 { font-size: 25px; line-height: 1.3; letter-spacing: -.045em; }
.contact-top > p:last-child { margin-top: 11px; color: #e4ede7; font-size: 13px; line-height: 1.65; }
.contact-links { display: grid; gap: 12px; align-items: center; }
.contact-links > a { border: 1px solid #ffffff40; border-radius: var(--radius); padding: 15px; position: relative; display: grid; gap: 7px; min-width: 0; transition: transform .3s var(--ease), background .25s, border-color .25s; }
.contact-links > a > span { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; }
.contact-links > a > span > .icon { width: 25px; height: 25px; padding: 3px; border-radius: 5px; background: var(--paper); color: var(--green); }
.contact-links strong { font-size: 13px; font-weight: 400; overflow-wrap: anywhere; padding-right: 16px; }
.contact-link-arrow { position: absolute; right: 12px; bottom: 15px; width: 16px; height: 16px; }
.site-footer { padding-block: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 18px; }
.site-footer .brand-monogram { font-size: 29px; }
.site-footer .brand-name { font-size: 11px; }
.site-footer .brand-name > span { font-size: 8px; }
.site-footer nav { width: 100%; display: flex; flex-wrap: wrap; gap: 14px 23px; font-size: 12px; }
.site-footer > p { color: var(--muted); font-size: 12px; }
.back-top { color: var(--green); font-size: 20px; min-width: 30px; text-align: right; }

.reveal { transition: opacity .6s var(--ease), transform .75s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.motion-ready .reveal:not(.visible) { opacity: 0; transform: translateY(16px); }
.hero-visual { animation: device-in .9s var(--ease) both; }
@keyframes device-in { from { opacity: .3; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (min-width: 601px) {
  .wrap { width: min(1240px, calc(100% - 64px)); }
  .section { padding-block: 28px; }
  .site-header { min-height: 83px; gap: 16px; }
  .site-header nav, .site-header nav.menu-enhanced, .site-header nav.menu-enhanced.open { display: flex; order: 0; flex-direction: row; align-items: center; width: auto; padding: 0; gap: 18px; font-size: 11px; }
  .site-header nav a { padding: 11px 0; position: relative; }
  .site-header nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-header nav a[aria-current]::after { transform: scaleX(1); }
  .menu-toggle:not([hidden]) { display: none; }
  .brand-monogram { font-size: 35px; }
  .brand-name { font-size: 13px; }
  .brand-name > span { font-size: 9px; }
  .hero { display: grid; grid-template-columns: 1.12fr 1fr; gap: 20px; align-items: center; padding-block: 35px 21px; }
  h1 { font-size: 30px; line-height: 1.25; }
  h1 > span:first-child { font-size: 1em; margin-bottom: 0; }
  .hero-label { font-size: 9px; }
  .hero-description { font-size: 13px; margin-top: 16px; }
  .actions { gap: 10px; margin-top: 19px; }
  .button { padding: 10px 14px; gap: 16px; min-height: 43px; font-size: 11px; }
  .hero-visual { margin: 0; }
  .device-stage { aspect-ratio: 1.35; }
  .laptop { top: 20%; width: 91%; left: 0; }
  .phone-preview { right: -1%; bottom: 10%; width: 27%; }
  .hero-visual > figcaption { font-size: 9px; }
  .hero-features { grid-column: 1 / -1; margin-top: 5px; justify-content: start; gap: 44px; font-size: 11px; }
  .section-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 18px; }
  .section-intro > div > p { font-size: 13px; }
  .section-intro > .text-link { margin: 0; flex-shrink: 0; }
  .section-intro > p { max-width: 47%; font-size: 12px; margin: 0; text-align: right; }
  .project-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .project-info h3 { font-size: 17px; }
  .service-list { grid-template-columns: 1fr 1fr; gap: 17px; }
  .service-card { min-height: 213px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 17px; }
  .steps > li { padding: 19px; }
  .about { grid-template-columns: .65fr 1fr; gap: 24px; }
  .personal-mark { min-height: 245px; padding: 23px; height: 100%; }
  .personal-mark > span { font-size: 90px; }
  .about-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .about-facts > div { gap: 12px; }
  .contact { grid-template-columns: 1fr 1fr; gap: 25px; padding: 25px; }
  .contact h2 { font-size: 27px; }
  .contact-links > a { padding: 12px 15px; }
  .contact-links > a > span { font-size: 13px; }
  .site-footer nav { width: auto; gap: 20px; }
  .site-footer > p { width: 100%; }
  .back-top { display: none; }
}
@media (min-width: 1001px) {
  .wrap { width: min(1240px, calc(100% - 96px)); }
  .site-header { min-height: 78px; }
  .brand { gap: 20px; }
  .brand-monogram { font-size: 41px; }
  .brand-name { font-size: 15px; }
  .brand-name > span { font-size: 11px; }
  .site-header nav { gap: 35px; font-size: 14px; }
  .header-cta { display: inline-flex !important; padding: 10px 21px; gap: 25px; min-height: 48px; font-size: 14px; }
  .hero { grid-template-columns: 1fr 1.08fr; gap: 18px 25px; padding-top: 17px; padding-bottom: 20px; }
  h1 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.17; letter-spacing: -.055em; }
  .hero-label { font-size: 10px; margin-bottom: 16px; }
  .hero-description { font-size: 16px; margin-top: 22px; max-width: 48ch; }
  .actions { gap: 15px; margin-top: 21px; }
  .button { min-height: 54px; padding: 14px 26px; border-radius: var(--radius-button); font-size: 14px; gap: 25px; }
  .hero .button-white { padding-inline: 25px; }
  .device-stage { aspect-ratio: 1.58; }
  .laptop { width: 87%; top: 11%; left: 2%; }
  .laptop-display { border-width: 10px; border-top-width: 16px; border-radius: 17px 17px 6px 6px; }
  .laptop-base { height: 14px; border-bottom-width: 4px; }
  .phone-preview { border-width: 7px; border-radius: 22px; width: 23%; right: 1%; bottom: 2%; }
  .phone-preview > img { border-radius: 13px; }
  .phone-camera { height: 7px; top: 1px; }
  .hero-visual > figcaption { font-size: 10px; margin-top: 10px; }
  .hero-features { gap: 57px; font-size: 13px; margin-top: 3px; }
  .hero-features .icon { width: 23px; height: 23px; }
  .section { padding-block: 27px; }
  h2 { font-size: 33px; }
  .section-intro { margin-bottom: 22px; }
  .section-intro > div > p { font-size: 14px; }
  .section-intro > p { max-width: 47%; font-size: 14px; }
  .text-link { font-size: 13px; }
  .project-grid { gap: 16px; }
  .project { grid-template-columns: 1.3fr 1fr; gap: 19px; padding: 13px; }
  .project-preview > img { aspect-ratio: 1.45; }
  .project-preview > figcaption { font-size: 11px; line-height: 1.5; margin-top: 6px; }
  .project-info { padding-top: 5px; }
  .project-info h3 { font-size: 19px; line-height: 1.35; }
  .project-kind { font-size: 11px; margin-top: 8px; }
  .project-info > p:not(.project-kind) { font-size: 14px; line-height: 1.65; }
  .project-info details { margin-top: 10px; }
  .project-info summary { font-size: 12px; min-height: 32px; }
  .price { font-size: 23px !important; }
  .service-list { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .service-card { min-height: 224px; padding: 25px 25px 52px; }
  .service-card dt > span { font-size: 17px; }
  .service-card dd { font-size: 13px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .steps > li { grid-template-columns: 34px 1fr; gap: 8px 18px; padding: 18px 20px; min-height: 150px; }
  .steps > li:not(:last-child)::after { content: '→'; position: absolute; right: -25px; top: 20px; font-size: 29px; color: #9a9f98; z-index: 1; line-height: 1; }
  .steps h3 { font-size: 14px; letter-spacing: -.03em; }
  .steps p { font-size: 13px; }
  .step-marker { width: 34px; height: 34px; font-size: 14px; }
  .about { grid-template-columns: 230px 1.1fr .95fr; align-items: center; gap: 31px; padding-top: 14px; padding-bottom: 24px; }
  .about-facts { grid-column: auto; grid-template-columns: 1fr; gap: 19px; padding: 25px 27px; }
  .personal-mark { min-height: 251px; max-width: none; padding: 23px; }
  .personal-mark > span { font-size: 95px; }
  .personal-mark strong { font-size: 21px; }
  .about-text .statement { font-size: 15px; }
  .about-text p { font-size: 14px; }
  .about-text .button { margin-top: 12px; font-size: 12px; }
  .about-facts strong { font-size: 14px; }
  .about-facts p { font-size: 12px; }
  .contact { width: min(1304px, calc(100% - 56px)); grid-template-columns: 1.1fr 1.15fr; align-items: center; padding: 26px 33px; gap: 35px; margin-top: 0; }
  .contact h2 { font-size: 30px; line-height: 1.25; }
  .contact-top > p:last-child { font-size: 14px; }
  .contact-links { grid-template-columns: 1.3fr 1fr; gap: 15px; }
  .contact-links > a { min-height: 96px; padding: 17px 15px; }
  .contact-links strong { font-size: 13px; }
  .contact-links > a > span { font-size: 14px; }
  .site-footer { min-height: 77px; padding-block: 19px; gap: 25px; }
  .site-footer nav { font-size: 12px; gap: 29px; }
  .site-footer > p { width: auto; font-size: 11px; }
}
/* Na dotykových zařízeních nevzniká trvale aktivní hover stav. */
@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-3px); background: var(--green-hover); box-shadow: 0 10px 20px -9px #123e3360; }
  .button:hover .icon { transform: translateX(3px); }
  .button-white:hover { background: var(--white); box-shadow: var(--shadow-hover); }
  .hero-visual:hover .laptop-display { transform: perspective(900px) rotateY(-2deg) rotate(-1deg) translateY(-3px); }
  .hero-visual:hover .phone-preview { transform: rotate(0) translateY(-3px); }
  .text-link:hover { color: var(--green); }
  .project:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
  .service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
  .card-arrow:hover { background: #dae6dd; transform: translateX(3px); }
  .contact-links > a:hover { transform: translateY(-4px); background: #ffffff0c; border-color: #ffffff80; }
  .site-footer nav a:hover { text-decoration: underline; }
  .site-header nav a:hover::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal:not(.visible) { opacity: 1; transform: none; }
}

/* Tři skutečně odlišené projekty, stejné stávající karty a hover chování. */
.project-actions { margin-top: 17px; }
.project .project-link { min-height: 44px; padding: 10px 17px; font-size: 13px; }
@media (min-width: 1001px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
  .project { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 17px; padding: 14px; }
  .project-preview > img { aspect-ratio: 1.44; }
  .project-info { padding: 0 5px 5px; }
  .project-info > p:not(.project-kind) { min-height: 72px; }
}

/* Dodaný portrét se přizpůsobí sloupci a zachová přirozené proporce tváře. */
.personal-portrait { width: 100%; max-width: 280px; border-radius: var(--radius); overflow: hidden; background: #e9e7e2; }
.personal-portrait > img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.personal-portrait > figcaption { padding: 14px 20px 18px; }
.personal-portrait strong { font-size: 20px; font-weight: 600; letter-spacing: -.04em; }
.personal-portrait p { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 4px; }

/* DD. ? compact portfolio: sticky shell, single-project gallery, quiet green accents. */
html { scroll-padding-top: calc(var(--header-height) + 20px); }
section[id] { scroll-margin-top: 0; }
h1, h2, h3, .project-info h3 { letter-spacing: -.035em; }
.site-header.wrap { position: sticky; top: 0; z-index: 50; width: 100%; padding-inline: max(20px, calc((100vw - 1240px) / 2)); min-height: 76px; background: rgba(250,249,246,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid #103d321a; }
.site-header nav a[aria-current] { color: var(--green); font-weight: 600; }
.site-header nav a[aria-current]::after { background: var(--accent); height: 3px; }
.site-header nav.open a[aria-current] { background: var(--sage); border-radius: 8px; padding-inline: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .project-carousel:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; box-shadow: 0 0 0 6px var(--accent); }
.hero { padding-block: 30px 18px; }
.hero-label { display: none; }
.hero-description { max-width: 40ch; }
.hero-features { margin-top: 18px; }
.section { padding-block: 26px; }
.section-intro { margin-bottom: 18px; }
.project-carousel { min-width: 0; border-radius: 16px; }
.project-carousel.enhanced .carousel-viewport { overflow: hidden; border-radius: 16px; background: var(--sage); }
.project-carousel.enhanced .project-grid { display: flex; gap: 0; align-items: stretch; transition: transform .48s cubic-bezier(.22,1,.36,1); }
.project-carousel.enhanced .project { flex: 0 0 100%; width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr; align-content: start; border: 0; box-shadow: none; border-radius: 0; background: transparent; padding: 14px; gap: 18px; transform: none; }
.project-carousel .project-preview img { aspect-ratio: 1.6; object-fit: contain; background: #fff; border-radius: 10px; }
.project-carousel .project-preview figcaption { display: none; }
.project-carousel .project-info { padding: 0 5px 8px; display: flex; flex-direction: column; align-items: start; }
.project-carousel .project-info h3 { font-size: 26px; line-height: 1.2; }
.project-carousel .project-kind { margin-top: 10px; padding: 0; border-radius: 0; background: transparent; font-size: 12px; font-weight: 500; }
.project-carousel .project-kind::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; }
.project-carousel .project-info > p:not(.project-kind) { min-height: 0; font-size: 15px; max-width: 37ch; margin-top: 12px; }
.project-carousel .project-actions { margin-top: auto; padding-top: 22px; }
.project-carousel .project-link { min-height: 48px; padding: 12px 22px; font-size: 15px; font-weight: 600; }
.carousel-controls:not([hidden]) { display: flex; align-items: center; gap: 16px; padding-top: 14px; }
.carousel-controls button { width: 48px; height: 48px; display: grid; place-items: center; background: var(--white); border: 1px solid #103d3259; border-radius: 50%; color: var(--green); transition: background .2s, border-color .2s; flex-shrink: 0; }
.carousel-controls button .icon { width: 22px; height: 22px; stroke-width: 2; }
.carousel-prev .icon { transform: rotate(180deg); }
.carousel-counter { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); }
#slide-number { color: var(--green); font-weight: 600; }
.carousel-dots { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.carousel-dots i { width: 8px; height: 8px; border-radius: 50%; background: #103d324d; }
.carousel-dots i.active { width: 28px; height: 10px; border-radius: 8px; background: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.service-card { min-height: 0; padding: 18px 18px 50px; box-shadow: none; transition: border-color .2s, background .2s, transform .2s; }
.service-card dt > .icon { margin-bottom: 10px; width: 26px; height: 26px; }
.service-card dd { font-size: 15px; line-height: 1.6; }
.price { font-variant-numeric: lining-nums; }
.steps p, .about-text p, .about-text .statement { font-size: 15px; line-height: 1.65; }
.about-facts p { font-size: 15px; line-height: 1.6; }
.about-facts strong { font-size: 15px; }
.steps > li { box-shadow: none; }
.about { padding-block: 24px; }
.about-facts { padding: 18px; gap: 15px; }
.personal-portrait { max-width: 230px; background: var(--sage); }
.personal-portrait > img { aspect-ratio: 4 / 5; }
.personal-portrait p { font-size: 14px; }
.personal-portrait > figcaption { padding: 12px 16px; }
.contact { background: var(--green); margin-top: 14px; padding: 25px; }
.contact .section-label { display: none; }
.contact-top > p:last-child { max-width: 40ch; font-size: 15px; line-height: 1.6; }
.contact h2 { text-wrap: balance; }
.contact-links strong { font-size: 15px; }
.contact-links > a > span { font-size: 15px; font-weight: 600; }
.contact-links > a { min-height: 80px; border-color: #ffffff40; }
.contact-links > a:first-child { background: var(--accent); color: var(--green); border-color: transparent; }
.contact-links > a:first-child > span > .icon { background: transparent; }
.contact a:focus-visible { outline-color: #fff; }
@media (max-width: 600px) {
  .site-header.wrap { min-height: 72px; }
  .site-header nav.menu-enhanced.open { max-height: calc(100dvh - 76px); overflow-y: auto; padding-bottom: 14px; }
  .site-header nav a { min-height: 44px; }
  .service-list { gap: 10px; }
  .service-card { padding: 16px 56px 16px 16px; }
  .service-card dt > .icon { display: none; }
  .service-card dt > span { font-size: 16px; }
  .service-card dt br { display: none; }
  .service-card dt br::after { content: ' '; }
  .service-card dd { margin-top: 5px; }
  .card-arrow { right: 10px; bottom: 50%; transform: translateY(50%); width: 44px; height: 44px; }
  .steps { gap: 10px; }
  .steps > li { padding: 15px; gap: 4px 13px; }
  .step-icon { display: none; }
  .steps h3 { grid-row: 1; }
  .steps p { grid-row: 2; }
  .about { grid-template-columns: 1fr; gap: 16px; }
  .hero-description { font-size: 15px; line-height: 1.65; }
  .section-intro > div > p, .section-intro > p { font-size: 15px; line-height: 1.6; }
  .about-identity .personal-portrait { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); align-items: center; max-width: none; background: var(--sage); }
  .personal-portrait > img { border-radius: 12px; }
  .personal-portrait > figcaption { padding: 16px; }
  .personal-portrait strong { font-size: 22px; line-height: 1.3; display: block; }
  .about-facts { gap: 12px; }
  .contact { padding: 23px 20px; gap: 18px; }
  .contact h2 { font-size: 26px; }
  .contact-links { gap: 9px; }
  .contact-links > a { min-height: 74px; padding: 12px 15px; }
}
@media (min-width: 601px) {
  .site-header.wrap { padding-inline: max(32px, calc((100vw - 1240px) / 2)); }
  .project-carousel.enhanced .project { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); grid-template-rows: auto; align-items: center; padding: 22px; gap: 26px; }
  .project-carousel .project-info { padding: 10px 0; align-self: stretch; justify-content: center; }
  .project-carousel .project-actions { margin-top: 0; }
  .project-carousel .project-info h3 { font-size: 29px; }
  .project-carousel .project-preview img { aspect-ratio: 1.55; }
  .service-card dt > span { font-size: 17px; }
  .service-list { gap: 14px; }
  .hero { padding-block: 28px 16px; }
}
@media (min-width: 1001px) {
  .site-header.wrap { padding-inline: max(48px, calc((100vw - 1240px) / 2)); }
  .site-header nav { gap: 27px; }
  .hero { padding-block: 26px 20px; }
  h1 { font-size: clamp(36px, 3.8vw, 53px); }
  .project-carousel.enhanced .project { grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 48px; padding: 27px; }
  .project-carousel .project-info h3 { font-size: 36px; }
  .project-carousel .project-info > p:not(.project-kind) { font-size: 16px; }
  .project-carousel .project-preview img { aspect-ratio: 1.75; }
  .section { padding-block: 28px; }
  .service-card { padding: 20px 20px 48px; }
  .about { grid-template-columns: 230px 1.15fr 1fr; gap: 30px; }
  .contact { padding: 28px 32px; }
}
@media (hover: hover) and (pointer: fine) {
  .carousel-controls button:hover { background: var(--sage); border-color: var(--green); }
  .service-card:hover { transform: translateY(-2px); background: #fff; border-color: #103d3259; box-shadow: none; }
  .service-card .card-arrow:hover { background: var(--green); color: #fff; }
  .button:hover { background: var(--green); color: var(--accent); }
  .button-white:hover { background: var(--sage); color: var(--green); }
  .project-carousel .project:hover { transform: none; box-shadow: none; }
  .contact-links > a:first-child:hover { background: #c8ff8e; }
}
@media (prefers-reduced-motion: reduce) {
  .project-carousel.enhanced .project-grid { transition: none; }
}

/* Celoplošné barevné pásy bez změny šířky kontejnerů a bez přesahu stránky.
   Ořezaná kresba stínu vyplní boční okraje, ale nepřidá výšku ani šířku layoutu. */
main > section {
  --section-surface: var(--paper);
  position: relative;
  isolation: isolate;
}
main > .work, main > .process { --section-surface: #f1f5f1; }
main > .contact { --section-surface: var(--green); margin-top: 0; }
main > section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--section-surface);
  box-shadow: 0 0 0 100vmax var(--section-surface);
  clip-path: inset(0 -100vmax);
}
main > section + section::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  pointer-events: none;
  background: #103d321a;
  box-shadow: 0 0 0 100vmax #103d321a;
  clip-path: inset(0 -100vmax);
}
