/* ==========================================================================
   Manilot media — 2026 redesign
   Bez Bootstrapu, bez jQuery. Vlastní layout na CSS Grid / Flexbox.
   ========================================================================== */

:root {
    /* brand */
    --red: #df2f2a;
    --red-deep: #b0201f;
    --red-bright: #ff5c4a;
    --grad-red: linear-gradient(100deg, #b0201f 0%, #df2f2a 45%, #ff5c4a 100%);

    /* neutrály */
    --ink: #17181a;
    --ink-soft: #232427;
    --ink-line: rgba(255, 255, 255, .12);
    --gray: #6b6d72;
    --gray-light: #9b9da2;
    --line: rgba(23, 24, 26, .1);
    --bg: #fff;
    --bg-soft: #f4f4f5;

    /* geometrie */
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1180px;
    --nav-h: 76px;

    --shadow: 0 18px 50px -22px rgba(23, 24, 26, .35);
    --shadow-red: 0 18px 44px -18px rgba(223, 47, 42, .55);

    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    background: var(--red);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 4px;
}

/* obsah jen pro odečítače obrazovky — vizuálně schovaný, ale čitelný pro
   čtečky a použitelný v aria-labelledby */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* hodnota, která se nesmí zalomit uprostřed (číslo účtu, spisová značka) */
.nowrap {
    white-space: nowrap;
}

/* --------------------------------------------------------------- layout -- */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: clamp(64px, 9vw, 130px) 0;
}

.section--soft {
    background: var(--bg-soft);
}

.section--dark {
    background: var(--ink);
    color: #fff;
}

.section--dark .lead {
    color: rgba(255, 255, 255, .68);
}

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(40px, 5vw, 72px);
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-red);
}

.section-head h2 {
    font-size: clamp(30px, 4.4vw, 50px);
}

.lead {
    margin-top: 18px;
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--gray);
    line-height: 1.65;
}

/* ------------------------------------------------------------- tlačítka -- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
    will-change: transform;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn--red {
    color: #fff;
    background-image: var(--grad-red);
    background-size: 160% 100%;
    background-position: 0 0;
    box-shadow: var(--shadow-red);
}

.btn--red:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
}

.btn--ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
}

.btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
    transform: translateY(-2px);
}

/* ------------------------------------------------------------------ nav -- */

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}

.nav.is-stuck {
    height: 64px;
    background: rgba(23, 24, 26, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--ink-line);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav__logo img {
    height: 30px;
    width: auto;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* telefon v rozbaleném menu — na desktopu ho zastupuje .nav__cta */
.nav__menu-call {
    display: none;
}

.nav__menu a {
    position: relative;
    display: block;
    padding: 10px 14px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 600;
    transition: color .25s var(--ease);
}

.nav__menu a::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.nav__menu a:hover,
.nav__menu a.is-active {
    color: #fff;
}

.nav__menu a:hover::after,
.nav__menu a.is-active::after {
    transform: scaleX(1);
}

.nav__cta {
    padding: 11px 22px;
    font-size: 14px;
}

/* přepínač jazyka — nabízí vždycky tu druhou verzi, ne aktuální */
.nav__lang {
    flex: none;
    margin-left: auto;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    transition: color .25s var(--ease), border-color .25s var(--ease);
}

.nav__lang:hover,
.nav__lang:focus-visible {
    color: #fff;
    border-color: rgba(223, 47, 42, .75);
}

.nav__burger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .22);
}

.nav__burger span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: background-color .2s var(--ease);
}

.nav__burger span::before,
.nav__burger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s var(--ease);
}

.nav__burger span::before {
    top: -6px;
}

.nav__burger span::after {
    top: 6px;
}

.nav.is-open .nav__burger span {
    background: transparent;
}

.nav.is-open .nav__burger span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav__burger span::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------- hero --- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(100svh, 900px);
    padding: calc(var(--nav-h) + 60px) 0 80px;
    background: #17181a url('../img/header-bg.jpg') center / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

/* červený nádech přes fotku — inspirace preloaderem na Fortemixu */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(105% 85% at 2% 18%, rgba(223, 47, 42, .58), rgba(176, 32, 31, .1) 55%, transparent 72%),
        linear-gradient(115deg, rgba(176, 32, 31, .42) 0%, rgba(23, 24, 26, .3) 48%, rgba(15, 16, 18, .25) 100%),
        linear-gradient(180deg, rgba(15, 16, 18, .72) 0%, rgba(15, 16, 18, .34) 42%, rgba(15, 16, 18, .92) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    padding: 8px 18px 8px 14px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-bright);
    box-shadow: 0 0 0 0 rgba(255, 92, 74, .7);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 12px rgba(255, 92, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 92, 74, 0);
    }
}

.hero h1 {
    font-size: clamp(38px, 6.6vw, 82px);
    letter-spacing: -.03em;
    text-wrap: balance;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #ff6b58, #ff2f28 60%, #ff8a72);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__text {
    max-width: 640px;
    margin: 28px 0 40px;
    font-size: clamp(16px, 1.8vw, 20px);
    color: rgba(255, 255, 255, .82);
}

.hero__text strong {
    color: #fff;
    font-weight: 700;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__scroll {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.hero__scroll i {
    display: block;
    width: 1px;
    height: 42px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent);
}

/* ------------------------------------------------------------- služby --- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    position: relative;
    padding: 40px 34px 38px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--grad-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}

.card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.card:hover::before {
    transform: scaleX(1);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 26px;
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(223, 47, 42, .12), rgba(255, 92, 74, .06));
    color: var(--red);
}

.card__icon svg {
    width: 28px;
    height: 28px;
}

.card h3 {
    margin-bottom: 14px;
    font-size: 21px;
    font-weight: 700;
}

.card p {
    font-size: 15.5px;
    color: var(--gray);
    line-height: 1.72;
}

/* ----------------------------------------------------------- projekty --- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 22px;
}

.project {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 34px 32px 28px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}

/* červená záře sledující kurzor */
.project__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
            rgba(223, 47, 42, .13), transparent 70%);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}

.project::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--grad-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease);
}

.project:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.project:hover::before {
    transform: scaleX(1);
}

.project:hover .project__glow {
    opacity: 1;
}

.project__logo {
    display: flex;
    align-items: center;
    height: 40px;
    margin-bottom: 26px;
}

/* SVG bez atributů width/height by se ve flexu smrskly na nulu — proto pevný
   box a object-fit, který si poradí s libovolným poměrem stran loga. */
.project__logo img {
    width: 190px;
    height: 34px;
    object-fit: contain;
    object-position: left center;
    filter: grayscale(1);
    opacity: .8;
    transition: filter .4s var(--ease), opacity .4s var(--ease);
}

.project:hover .project__logo img {
    filter: none;
    opacity: 1;
}

/* značka bez názvu — ikona a název vedle sebe, ať karty drží stejné řádkování */
.project__logo--lockup {
    gap: 12px;
}

.project__logo--lockup img {
    width: 34px;
    flex: none;
}

/* náhrada, dokud nemáme oficiální logo klienta */
.wordmark {
    display: inline-flex;
    align-items: center;
    font-style: normal;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    opacity: .55;
    transition: opacity .4s var(--ease), color .4s var(--ease);
}

.project:hover .wordmark {
    opacity: 1;
}

.client .wordmark {
    font-size: 16px;
    text-align: center;
    opacity: .4;
}

.client:hover .wordmark {
    opacity: 1;
}

.modal__logo .wordmark {
    font-size: 27px;
    opacity: 1;
}

.project__body {
    display: block;
    margin-bottom: 18px;
}

.project__claim {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: var(--gray);
}

.project__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 24px;
}

.project__tags i {
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--bg-soft);
    font-style: normal;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gray);
    transition: background-color .35s var(--ease), color .35s var(--ease);
}

.project:hover .project__tags i {
    background: rgba(223, 47, 42, .09);
    color: var(--red-deep);
}

.project__more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
}

.project__more svg {
    width: 16px;
    height: 16px;
    transition: transform .35s var(--ease);
}

.project:hover .project__more svg {
    transform: translateX(5px);
}

/* ------------------------------------------------------ pás s logy klientů */

.marquee {
    position: relative;
    overflow: hidden;
    padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    animation: slide50 46s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

@keyframes slide50 {
    to {
        transform: translateX(-50%);
    }
}

/* ------------------------------------------------------------- o firmě -- */

.about {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.about h2 {
    font-size: clamp(28px, 4vw, 46px);
}

.about h2 em {
    font-style: normal;
    background: linear-gradient(100deg, #ff6b58, #ff2f28);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about p {
    margin-top: 22px;
    color: rgba(255, 255, 255, .72);
    font-size: 17px;
}

/* uvozovací věta odstavce funguje jako mezinadpis pilíře */
.about p b {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -.01em;
}

.about .btn {
    margin-top: 32px;
}

.about .btn svg {
    transition: transform .35s var(--ease);
}

.about .btn:hover svg,
.btn--ghost:hover svg {
    transform: translateX(4px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.stat {
    padding: 30px 26px;
    border: 1px solid var(--ink-line);
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    transition: border-color .35s var(--ease), transform .35s var(--ease);
}

.stat:hover {
    transform: translateY(-4px);
    border-color: rgba(223, 47, 42, .55);
}

.stat b {
    display: block;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(100deg, #ff6b58, #ff2f28);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
}

/* ---------------------------------------------------------- reference --- */

.client {
    display: grid;
    place-items: center;
    flex: none;
    width: 210px;
    height: 120px;
    padding: 26px;
    border-radius: var(--radius-sm);
    transition: background-color .35s var(--ease);
}

.client img {
    width: 100%;
    height: 40px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .45;
    transition: filter .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease);
}

.client:hover {
    background: var(--bg-soft);
}

.client:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.06);
}

/* ------------------------------------------------------------ kontakt --- */

#contact {
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    inset: auto -10% -55% auto;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223, 47, 42, .3), transparent 62%);
    pointer-events: none;
}

.contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.contact-card {
    padding: 34px 30px;
    border: 1px solid var(--ink-line);
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    transition: border-color .35s var(--ease), transform .35s var(--ease);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(223, 47, 42, .5);
}

.contact-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--grad-red);
    color: #fff;
}

.contact-card__icon svg {
    width: 22px;
    height: 22px;
}

.contact-card h3 {
    margin-bottom: 14px;
    font-size: 17px;
    font-weight: 700;
}

.contact-card p,
.contact-card address {
    font-style: normal;
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .68);
}

.contact-card b {
    color: rgba(255, 255, 255, .95);
    font-weight: 600;
}

.contact-card a {
    color: #fff;
    border-bottom: 1px solid rgba(223, 47, 42, .8);
    transition: color .25s var(--ease), border-color .25s var(--ease);
}

.contact-card a:hover {
    color: var(--red-bright);
    border-color: var(--red-bright);
}

.contact-hero {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-top: 28px;
    padding: 38px 40px;
    border-radius: var(--radius);
    background: var(--grad-red);
    box-shadow: var(--shadow-red);
}

/* text se smrskává, tlačítko drží svoji šířku vpravo */
.contact-hero > div {
    flex: 1 1 auto;
    min-width: 0;
}

.contact-hero .btn {
    flex: none;
}

.contact-hero h3 {
    font-size: clamp(21px, 2.6vw, 29px);
    color: #fff;
}

.contact-hero p {
    margin-top: 6px;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
}

.contact-hero .btn {
    background: #fff;
    color: var(--ink);
}

.contact-hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .5);
}

/* --------------------------------------------------------------- patka -- */

.footer {
    padding: 34px 0;
    background: #0f1012;
    color: rgba(255, 255, 255, .5);
    font-size: 14px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer img {
    height: 26px;
    width: auto;
    opacity: .85;
}

.footer__call {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
    transition: color .3s var(--ease);
}

.footer__call svg {
    width: 16px;
    height: 16px;
    color: var(--red);
}

.footer__call:hover {
    color: #fff;
}

/* --------------------------------------------------------------- modal -- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(12, 13, 15, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal.is-open {
    display: block;
    animation: fadeIn .3s var(--ease);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
}

.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 880px;
    margin: 40px auto;
    padding: clamp(30px, 5vw, 56px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65);
    animation: rise .4s var(--ease);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
}

.modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink);
    transition: all .3s var(--ease);
}

.modal__close svg {
    width: 18px;
    height: 18px;
}

.modal__close:hover {
    color: #fff;
    background-image: var(--grad-red);
    transform: rotate(90deg);
}

.modal__logo {
    display: flex;
    align-items: center;
    height: 52px;
    margin-bottom: 28px;
}

.modal__logo img {
    width: 240px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

.modal__dialog h2 {
    font-size: clamp(26px, 3.6vw, 38px);
}

.modal__intro {
    margin: 16px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
}

.modal__text {
    margin-top: 14px;
    color: var(--gray);
    font-size: 16px;
}

.modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 30px;
    padding: 0;
    list-style: none;
}

.modal__meta li {
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--bg-soft);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
}

.modal__video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}

.modal__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.modal__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.modal__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 24px;
    border-radius: 999px;
    background-image: var(--grad-red);
    background-size: 160% 100%;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: background-position .35s var(--ease), transform .3s var(--ease);
}

.modal__link svg {
    width: 15px;
    height: 15px;
}

.modal__link:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
}

/* druhotný odkaz (navazující projekt) — méně důrazný než hlavní web */
.modal__link--alt {
    background-image: none;
    background-color: var(--bg-soft);
    color: var(--ink);
}

.modal__link--alt:hover {
    background-color: #e9e9ea;
}

body.is-locked {
    overflow: hidden;
}

/* ------------------------------------------------------------- mikroanimace */

/* ukazatel odscrollované části stránky */
.progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    height: 3px;
    pointer-events: none;
}

.progress i {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--grad-red);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
}

/* skrytý odkaz pro klávesnici */
.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    padding: 12px 20px;
    background: var(--ink);
    color: #fff;
    border-radius: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.skip:focus {
    left: 0;
}

/* nástup obsahu po načtení stránky */
.load {
    opacity: 0;
    transform: translateY(22px);
    animation: rise-in .85s var(--ease) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes rise-in {
    to {
        opacity: 1;
        transform: none;
    }
}

.hero__scroll.load {
    transform: translateX(-50%) translateY(22px);
    animation-name: rise-in-x;
}

@keyframes rise-in-x {
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

/* odkrývání při scrollu, se zpožděním podle pořadí */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
    transition-delay: var(--d, 0s);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------------------ responzivita */

@media (max-width: 960px) {
    .about {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav__burger {
        display: flex;
    }

    .nav__cta {
        display: none;
    }

    .nav.is-open {
        background: var(--ink);
    }

    .nav__menu {
        position: fixed;
        inset: var(--nav-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 28px;
        background: var(--ink);
        border-top: 1px solid var(--ink-line);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    }

    .nav.is-open .nav__menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__menu a {
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--ink-line);
    }

    .nav__menu a::after {
        left: 0;
        right: auto;
        bottom: 0;
        width: 34px;
    }

    .nav__menu-call {
        display: block;
        margin-top: 22px;
    }

    .nav__menu-call a {
        display: flex;
        justify-content: center;
        padding: 16px 26px;
        font-size: 15px;
        border-bottom: 0;
        color: #fff;
    }

    .nav__menu-call a::after {
        display: none;
    }

    .nav__menu li:nth-last-child(2) a {
        border-bottom: 0;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .client {
        width: 160px;
        height: 100px;
        padding: 20px;
    }

    .hero__eyebrow {
        padding: 7px 14px 7px 12px;
        font-size: 10.5px;
        letter-spacing: .12em;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* na úzkém displeji už tlačítko vedle textu nedává smysl */
    .contact-hero {
        flex-wrap: wrap;
        padding: 30px 26px;
    }

    .contact-hero .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__scroll {
        display: none;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .load {
        opacity: 1;
        transform: none;
    }

    .marquee__track {
        animation: none;
    }
}

/* ==========================================================================
   Ceník a podmínky spolupráce (pricelist.php)
   ========================================================================== */

.doc-hero {
    padding: calc(var(--nav-h) + 80px) 0 clamp(56px, 7vw, 96px);
    background: var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.doc-hero::before {
    content: '';
    position: absolute;
    inset: -40% -10% auto auto;
    width: 760px;
    height: 760px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223, 47, 42, .26), transparent 62%);
    pointer-events: none;
}

.doc-hero .container {
    position: relative;
}

.doc-hero h1 {
    max-width: 900px;
    font-size: clamp(30px, 5vw, 58px);
    letter-spacing: -.03em;
    text-wrap: balance;
}

.doc-hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #ff6b58, #ff2f28 60%, #ff8a72);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.doc-hero__text {
    max-width: 640px;
    margin-top: 26px;
    font-size: clamp(16px, 1.7vw, 19px);
    color: rgba(255, 255, 255, .74);
}

/* ------------------------------------------------------------------ sazby */

.rates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    max-width: 820px;
    margin: 0 auto;
}

.rate {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 40px 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.rate:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.rate__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
}

.rate__price {
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.rate__note {
    font-size: 13.5px;
    color: var(--gray-light);
    line-height: 1.6;
}

.rate--primary {
    color: #fff;
    border-color: transparent;
    background-image: var(--grad-red);
    box-shadow: var(--shadow-red);
}

.rate--primary .rate__label {
    color: rgba(255, 255, 255, .85);
}

.rate--primary .rate__note {
    color: rgba(255, 255, 255, .78);
}

.rate__flag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    max-width: 820px;
    margin: 40px auto 0;
    padding: 0;
    list-style: none;
}

.perks li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    color: var(--gray);
}

.perks svg {
    width: 17px;
    height: 17px;
    flex: none;
    color: var(--red);
}

/* --------------------------------------------------------------- podmínky */

.doc {
    max-width: 760px;
    margin: 0 auto;
}

.doc__chapter + .doc__chapter {
    margin-top: clamp(34px, 4vw, 52px);
    padding-top: clamp(34px, 4vw, 52px);
    border-top: 1px solid var(--line);
}

.doc__chapter h2 {
    margin-bottom: 18px;
    font-size: clamp(20px, 2.4vw, 26px);
}

.doc__chapter p {
    color: var(--gray);
    font-size: 16.5px;
    line-height: 1.78;
}

.doc__chapter p + p {
    margin-top: 14px;
}

/* na ceníku není mobilní menu, tlačítko s telefonem tedy zůstává vidět */
@media (max-width: 820px) {
    body.page-doc .nav__cta {
        display: inline-flex;
        padding: 9px 16px;
        font-size: 13px;
    }
}
