/* =========================================================
   REC energy — štýly webu
   ========================================================= */

:root {
    --red: #E3202A;
    --red-deep: #B5121B;
    --red-soft: rgba(227, 32, 42, 0.12);

    --ink: #0B0D10;
    --ink-2: #13161B;
    --ink-3: #1C2027;
    --line-dark: rgba(255, 255, 255, 0.09);

    --paper: #F6F5F2;
    --paper-2: #EDEBE6;
    --white: #FFFFFF;
    --text: #14171C;
    --muted: #5B616B;
    --muted-light: #A3A9B3;
    --line: #E1DED8;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(11, 13, 16, .04), 0 12px 32px -12px rgba(11, 13, 16, .14);

    --font-display: 'Sora', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(72px, 10vw, 128px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 600;
}

p { margin: 0; }

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

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

.skip-link {
    position: absolute; left: -9999px; top: 8px;
    background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Typografia sekcií ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
}
.eyebrow::before {
    content: "";
    width: 28px; height: 2px;
    background: currentColor;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.section-head p { margin-top: 20px; font-size: 18px; color: var(--muted); }
.section--dark .section-head p { color: var(--muted-light); }

.accent { color: var(--red); }

/* ---------- Tlačidlá ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    padding: 15px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }

.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }

.btn--outline { border-color: var(--line); color: var(--text); background: var(--white); }
.btn--outline:hover { border-color: var(--text); }

.btn--block { width: 100%; }

/* ---------- Navigácia ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
    padding: 18px 0;
}
.nav.is-scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
    padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; transition: color .3s ease; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand__word { font-family: var(--font-display); font-weight: 700; line-height: 1; }
.brand__word span { display: block; }
.brand__word span:first-child { font-size: 22px; letter-spacing: .02em; }
.brand__word span:last-child { font-size: 16px; font-weight: 500; letter-spacing: .04em; margin-top: 2px; }
.nav.is-scrolled .brand { color: var(--text); }
.nav.is-scrolled .brand__word span:first-child { color: var(--red); }

.nav__links { display: none; align-items: center; gap: 4px; }
.nav__links a:not(.btn) {
    font-size: 15px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .82);
    transition: color .2s ease, background .2s ease;
}
.nav__links a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__links a[aria-current="page"] { color: #fff; }
.nav.is-scrolled .nav__links a:not(.btn) { color: var(--muted); }
.nav.is-scrolled .nav__links a:not(.btn):hover,
.nav.is-scrolled .nav__links a[aria-current="page"] { color: var(--text); background: var(--paper-2); }
.nav__links .btn { margin-left: 12px; padding: 11px 20px; }

.nav__toggle {
    display: inline-flex;
    width: 46px; height: 46px;
    align-items: center; justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.nav.is-scrolled .nav__toggle { color: var(--text); border-color: var(--line); }
.nav__toggle svg { width: 22px; height: 22px; }

@media (min-width: 1080px) {
    .nav__links { display: flex; }
    .nav__toggle { display: none; }
}

/* Mobilné menu */
.drawer {
    position: fixed; inset: 0; z-index: 60;
    visibility: hidden;
    pointer-events: none;
}
.drawer__backdrop {
    position: absolute; inset: 0;
    background: rgba(11, 13, 16, .55);
    opacity: 0; transition: opacity .3s ease;
}
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(360px, 86vw);
    background: var(--ink);
    color: #fff;
    padding: 20px 24px 32px;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    overflow-y: auto;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.drawer__close {
    width: 44px; height: 44px; border-radius: 999px;
    border: 1px solid var(--line-dark); background: transparent; color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.drawer__close svg { width: 20px; height: 20px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a:not(.btn) {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
    display: flex; justify-content: space-between; align-items: center;
}
.drawer nav a:not(.btn)::after { content: "→"; color: var(--red); }
.drawer nav .btn { margin-top: 28px; }
.drawer__meta { margin-top: auto; padding-top: 32px; font-size: 15px; color: var(--muted-light); display: grid; gap: 6px; }
.drawer__meta a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
    padding: 140px 0 clamp(48px, 7vw, 88px);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 60%;
    transform: scale(1.06);
    animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 13, 16, .72) 0%, rgba(11, 13, 16, .35) 35%, rgba(11, 13, 16, .88) 82%, var(--ink) 100%),
        linear-gradient(90deg, rgba(11, 13, 16, .7) 0%, rgba(11, 13, 16, 0) 70%);
}
.hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero__content { position: relative; z-index: 1; width: 100%; }
.hero h1 {
    font-size: clamp(40px, 7.4vw, 96px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    max-width: 14ch;
}
.hero h1 .accent { display: block; }
.hero__lead {
    margin-top: 28px;
    max-width: 560px;
    font-size: clamp(17px, 1.6vw, 20px);
    color: rgba(255, 255, 255, .78);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__pulse { position: absolute; right: 0; bottom: 0; width: min(760px, 70vw); opacity: .9; pointer-events: none; }
.hero__pulse path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__strip {
    position: relative; z-index: 1;
    margin-top: clamp(48px, 7vw, 88px);
    padding-top: 28px;
    border-top: 1px solid var(--line-dark);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
}
.hero__strip div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255, 255, 255, .75); }
.hero__strip strong { display: block; font-family: var(--font-display); color: #fff; font-weight: 600; font-size: 15px; }
.hero__strip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 8px; flex: none; box-shadow: 0 0 0 4px var(--red-soft); }
@media (min-width: 900px) { .hero__strip { grid-template-columns: repeat(4, 1fr); } }

/* Menší hero pre podstránky */
.hero--sub { min-height: auto; align-items: center; padding: 170px 0 96px; }
.hero--sub h1 { max-width: 18ch; font-size: clamp(38px, 6vw, 76px); }

/* ---------- O nás ---------- */
.about { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: 1.05fr 1fr; } }
.about__text h2 { font-size: clamp(32px, 4.4vw, 50px); margin-bottom: 28px; }
.about__text p { color: var(--muted); font-size: 18px; }
.about__text p + p { margin-top: 18px; }
.about__points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.about__points li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.about__points svg { width: 22px; height: 22px; color: var(--red); flex: none; }

.about__media { position: relative; }
.about__media img {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    border-radius: var(--radius);
}
.about__badge {
    position: absolute;
    left: -12px; bottom: 28px;
    background: var(--ink);
    color: #fff;
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    display: flex; gap: 14px; align-items: center;
    box-shadow: var(--shadow);
    max-width: 280px;
}
.about__badge img { width: 40px; height: 40px; aspect-ratio: auto; border-radius: 0; }
.about__badge span { font-size: 14px; line-height: 1.4; color: var(--muted-light); }
.about__badge strong { display: block; color: #fff; font-family: var(--font-display); font-size: 15px; }
@media (min-width: 960px) { .about__badge { left: -40px; } }

/* ---------- Služby ---------- */
.services { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
    background: var(--ink);
    padding: clamp(28px, 3.4vw, 44px);
    position: relative;
    transition: background .3s ease;
    display: flex; flex-direction: column;
    min-height: 320px;
}
.service:hover { background: var(--ink-2); }
.service__num {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 600;
    color: var(--muted-light);
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 40px;
}
.service__icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--red-soft);
    color: var(--red);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .3s ease, color .3s ease;
}
.service:hover .service__icon { background: var(--red); color: #fff; }
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 21px; margin-bottom: 14px; text-transform: none; }
.service p { color: var(--muted-light); font-size: 16px; }
.service::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
    background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s ease;
}
.service:hover::after { transform: scaleX(1); }

/* ---------- Projekty ---------- */
.projects { display: grid; gap: 16px; }
@media (min-width: 720px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .projects { grid-template-columns: repeat(4, 1fr); } }
.project {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--ink);
    color: #fff;
    isolation: isolate;
}
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; z-index: -2; }
.project::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,16,.05) 30%, rgba(11,13,16,.9) 100%); z-index: -1; }
.project:hover img { transform: scale(1.06); }
.project__body { position: absolute; inset: auto 0 0 0; padding: 26px; }
.project__tag {
    position: absolute; top: 20px; left: 20px;
    font-family: var(--font-display); font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px; border-radius: 999px;
}
.project h3 { font-size: 22px; margin-bottom: 8px; }
.project p { color: rgba(255,255,255,.78); font-size: 15px; }
.project--graphic { background: radial-gradient(120% 90% at 100% 0%, #3a1114 0%, var(--ink) 60%); }
.project--graphic svg.project__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }

/* Etapy */
.steps-wrap { margin-top: clamp(64px, 8vw, 104px); display: grid; gap: 40px; }
@media (min-width: 960px) { .steps-wrap { grid-template-columns: 1fr 2fr; gap: 64px; } }
.steps-wrap h3 { font-size: clamp(28px, 3.4vw, 40px); }
.steps-wrap > div > p { margin-top: 16px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 12px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li {
    counter-increment: step;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 22px 22px 22px 76px;
    position: relative;
    font-weight: 600;
    min-height: 76px;
    display: flex; align-items: center;
    transition: border-color .25s ease, transform .25s ease;
}
.steps li:hover { border-color: var(--red); transform: translateY(-2px); }
.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
    font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--red);
}

/* ---------- Nextwatch ---------- */
.feature { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .feature { grid-template-columns: 1.15fr 1fr; } }
.feature__shot {
    border-radius: var(--radius);
    background: linear-gradient(160deg, #1f232b, #0f1115);
    padding: clamp(10px, 1.6vw, 18px);
    border: 1px solid var(--line-dark);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.feature__shot img { border-radius: 10px; width: 100%; }
.feature__shot-bar { display: flex; gap: 6px; padding: 2px 4px 12px; }
.feature__shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.feature h2 { font-size: clamp(30px, 4vw, 46px); }
.feature > div > p { margin-top: 20px; color: var(--muted-light); font-size: 18px; }
.checklist { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.checklist .tick {
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    background: var(--red-soft); color: var(--red);
    display: inline-flex; align-items: center; justify-content: center;
}
.checklist .tick svg { width: 16px; height: 16px; }

/* ---------- Partneri ---------- */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(7, 1fr); } }
.logos li {
    list-style: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    height: 110px;
    display: flex; align-items: center; justify-content: center;
    padding: 18px;
    transition: border-color .25s ease, transform .25s ease;
}
.logos li:hover { border-color: #c9c5bd; transform: translateY(-2px); }
.logos img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: opacity .25s ease, filter .25s ease; mix-blend-mode: multiply; }
.logos li:hover img { opacity: 1; filter: none; }
.logos img.zoom { transform: scale(1.35); }
.logos { padding: 0; margin: 0; }

/* ---------- Spolupráca: Digital Minds ---------- */
.collab {
    position: relative;
    border-radius: calc(var(--radius) + 6px);
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    padding: clamp(32px, 5vw, 72px);
    isolation: isolate;
}
.collab::before {
    content: ""; position: absolute; z-index: -1;
    width: 620px; height: 620px; border-radius: 50%;
    right: -200px; top: -260px;
    background: radial-gradient(circle, rgba(227, 32, 42, .35), transparent 65%);
}
.collab::after {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent, #000 60%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.collab__top { display: grid; gap: 36px; align-items: end; }
@media (min-width: 980px) { .collab__top { grid-template-columns: 1.3fr 1fr; } }
.collab__pair {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 8px 18px 8px 8px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    margin-bottom: 28px;
    font-family: var(--font-display); font-weight: 600; font-size: 14px;
    background: rgba(255,255,255,.03);
}
.collab__pair img { width: 32px; height: 32px; }
.collab__pair .x { color: var(--red); }
.collab h2 { font-size: clamp(32px, 4.6vw, 56px); }
.collab__lead { color: var(--muted-light); font-size: 18px; }
.collab__lead + .btn { margin-top: 28px; }
.collab__grid { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 14px; }
@media (min-width: 800px) { .collab__grid { grid-template-columns: repeat(3, 1fr); } }
.collab-card {
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 28px;
    background: rgba(255,255,255,.025);
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
    display: flex; flex-direction: column;
}
.collab-card:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); transform: translateY(-3px); }
.collab-card svg { width: 28px; height: 28px; color: var(--red); margin-bottom: 26px; }
.collab-card h3 { font-size: 20px; margin-bottom: 10px; }
.collab-card p { color: var(--muted-light); font-size: 15.5px; }
.collab-card .more { margin-top: auto; padding-top: 22px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.collab-card .more span { color: var(--red); transition: transform .25s ease; }
.collab-card:hover .more span { transform: translateX(4px); }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 980px) { .contact { grid-template-columns: 1fr 1.25fr; } }
.contact h2 { font-size: clamp(34px, 4.8vw, 56px); }
.contact__intro { margin-top: 18px; color: var(--muted); font-size: 18px; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.contact__list a, .contact__list div {
    display: flex; gap: 16px; align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: border-color .25s ease;
}
.contact__list a:hover { border-color: var(--red); }
.contact__list .ico {
    width: 44px; height: 44px; flex: none; border-radius: 12px;
    background: var(--red-soft); color: var(--red);
    display: inline-flex; align-items: center; justify-content: center;
}
.contact__list .ico svg { width: 20px; height: 20px; }
.contact__list small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.contact__list strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    padding: clamp(24px, 4vw, 44px);
    box-shadow: var(--shadow);
}
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 700; color: var(--text); padding: 0; }
.field .req { color: var(--red); }
.input {
    width: 100%;
    font: inherit; font-size: 16px;
    color: var(--text);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    appearance: none; -webkit-appearance: none;
}
.input:focus { outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 4px var(--red-soft); }
textarea.input { resize: vertical; min-height: 140px; }
select.input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B616B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
    padding-right: 44px;
}
fieldset.field { border: 0; margin: 0; padding: 0; }
.radios { display: flex; gap: 10px; }
.radios label {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--paper);
    font-weight: 600; font-size: 15px; cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.radios input { accent-color: var(--red); }
.radios label:has(input:checked) { border-color: var(--red); background: var(--white); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { accent-color: var(--red); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form-status { font-size: 15px; font-weight: 600; text-align: center; min-height: 1em; }
.form-status.is-ok { color: #13804a; }
.form-status.is-err { color: var(--red-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Výkup – benefity ---------- */
.benefits { display: grid; gap: 14px; margin-top: 48px; }
@media (min-width: 800px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.03); }
.benefit strong { display: block; font-family: var(--font-display); font-size: 17px; margin-bottom: 6px; }
.benefit span { color: var(--muted-light); font-size: 15px; }
.benefit .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-bottom: 18px; box-shadow: 0 0 0 4px var(--red-soft); }

.vykup-layout { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 1000px) { .vykup-layout { grid-template-columns: 1fr 1.6fr; } }
.vykup-aside h2 { font-size: clamp(30px, 4vw, 44px); }
.vykup-aside > p { margin-top: 16px; color: var(--muted); }
@media (min-width: 1000px) { .vykup-aside { position: sticky; top: 110px; } }

/* ---------- Pätička ---------- */
.footer { background: var(--ink); color: var(--muted-light); padding: clamp(64px, 8vw, 96px) 0 32px; font-size: 15px; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1.1fr 1fr; } }
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer .brand__word span:first-child { color: var(--red); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.cert {
    display: block; width: 100%; max-width: 220px; aspect-ratio: 1;
    border-radius: var(--radius-sm); overflow: hidden;
    background: #fff; border: 0; padding: 0; cursor: zoom-in;
}
.cert img { width: 100%; height: 100%; object-fit: contain; transform: rotate(-90deg); transition: transform .3s ease; }
.cert:hover img { transform: rotate(-90deg) scale(1.05); }
.footer__partner {
    margin-top: 56px;
    padding: 22px 24px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
}
.footer__partner p { color: var(--muted-light); }
.footer__partner p strong { color: #fff; font-family: var(--font-display); font-weight: 600; }
.footer__bottom {
    margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-dark);
    display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 14px;
}
.footer__bottom a { color: #fff; }

/* ---------- Lightbox certifikátu ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(11, 13, 16, .92);
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(90vh, 100%); max-height: 90vw; transform: rotate(-90deg); background: #fff; border-radius: 8px; }
.lightbox button {
    position: absolute; top: 20px; right: 20px;
    width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
    background: transparent; color: #fff; font-size: 26px; cursor: pointer;
}

/* ---------- Animácie pri scrollovaní ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
    .hero__pulse path { stroke-dashoffset: 0; }
}
