/* =========================================================================
   Úvodní stránka – převod návrhu „Komposia B“ (claude.ai/design) z inline
   stylů do tříd. Hodnoty odpovídají návrhu 1:1, kde to jde, přes DS tokeny.
   Odchylky od návrhu: jen responzivní zalomení (návrh je čistě desktopový).
   ========================================================================= */


/* --- Sdílené prvky ------------------------------------------------------- */

.k-container {
    max-width: var(--page-max);
    margin: 0 auto;
}

/* Tmavá zaoblená kapsle (hero, kontakt). */
.k-capsule {
    position: relative;
    overflow: hidden;
    border-radius: clamp(28px, 3vw, 48px);
    background: var(--surface-dark);
}

/* Rozmazané ambientní kruhy v kapslích. */
.k-glow {
    position: absolute;
    border-radius: var(--radius-pill);
    pointer-events: none;
}

/* Jemná světelná linka na horní hraně kapsle. */
.k-hairline {
    position: absolute;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

/* Ručně „podtržené“ slovo v nadpisu. */
.k-scribble {
    position: relative;
    display: inline-block;
}

.k-scribble__line {
    position: absolute;
    left: 1%;
    width: 98%;
    pointer-events: none;
}

.k-sparkle {
    position: absolute;
    pointer-events: none;
}


/* --- Hero ---------------------------------------------------------------- */

.k-hero {
    padding: 8px clamp(12px, 2vw, 24px) clamp(56px, 6vw, 96px);
}

.k-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: clamp(12px, 1.5vw, 20px);
    align-items: stretch;
}

/* Hero bez video karty – kapsle přes celou šířku. */
.k-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }

.k-hero__main {
    padding: clamp(56px, 7vw, 124px) clamp(24px, 4vw, 76px);
}

.k-hero__main .k-glow--a {
    top: -180px; left: 8%;
    width: 520px; height: 520px;
    background: var(--glow-indigo);
    filter: blur(120px);
}

.k-hero__main .k-glow--b {
    bottom: -220px; right: 4%;
    width: 480px; height: 480px;
    background: var(--glow-neutral);
    filter: blur(110px);
}

.k-hero__main .k-hairline { left: 20%; right: 20%; }

.k-hero__content { position: relative; }

.k-hero__title {
    margin: 0;
    font-size: clamp(38px, 4.4vw, 72px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: var(--tracking-tighter);
    color: var(--white);
    text-wrap: pretty;
}

.k-hero__pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0 0.28em;
    margin: 0 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-pill);
    line-height: 1.3;
}

.k-hero__pill-text {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.82em;
    letter-spacing: -0.03em;
}

.k-hero__line { display: block; }
.k-hero__line--muted { color: var(--neutral-400); }

.k-hero__lead {
    margin: 40px 0 0;
    max-width: 680px;
    font-size: 19px;
    font-weight: 500;
    line-height: var(--leading-body);
    color: var(--neutral-400);
    text-wrap: pretty;
}

.k-hero__actions {
    display: flex;
    margin-top: 48px;
}

/* Video karta vpravo. Pozadí je fallback, dokud není nahraný obrázek
   (tóny odpovídají fotce v návrhu: tmavé dřevěné lamely). */
.k-video {
    position: relative;
    display: block;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
    border-radius: clamp(24px, 2.4vw, 36px);
    background: radial-gradient(120% 70% at 70% 20%, #8a4a1c 0%, #3a2112 45%, #140d08 100%);
    box-shadow: var(--shadow-capsule);
    transition: box-shadow var(--duration-fast) var(--ease-reveal);
}

.k-video:hover { box-shadow: 0 25px 50px -12px rgba(229, 229, 229, 0.6); }

.k-video__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.k-video__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%);
}

.k-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--ink);
    box-shadow: var(--glow-strong);
    transition: transform var(--duration-fast) var(--ease-reveal);
}

.k-video__play:hover { transform: translate(-50%, -50%) scale(1.05); }
.k-video__play svg { margin-left: 3px; }

.k-video__caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: clamp(20px, 2vw, 32px);
    font-size: clamp(21px, 1.9vw, 30px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: var(--white);
    text-wrap: pretty;
}


/* --- Co děláme ----------------------------------------------------------- */

.k-services {
    padding: clamp(32px, 4vw, 64px) clamp(24px, 5vw, 96px) clamp(64px, 7vw, 112px);
}

.k-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.k-eyebrow__dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: var(--radius-pill);
    background: var(--ink);
}

.k-eyebrow__text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--neutral-500);
}

.k-services__title {
    margin: 28px auto 0;
    max-width: 900px;
    text-align: center;
    font-size: clamp(32px, 3.9vw, 58px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: var(--tracking-tighter);
    color: var(--ink);
    text-wrap: pretty;
}

.k-services__title .k-scribble__line { bottom: -0.16em; height: 0.24em; }

.k-services__body {
    position: relative;
    margin-top: clamp(44px, 5vw, 80px);
}

.k-services__body .k-sparkle--a { top: -34px; left: 5%; transform: rotate(14deg); }
.k-services__body .k-sparkle--b { top: -16px; right: 6%; transform: rotate(-12deg); }

.k-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(24px, 3vw, 44px);
}

.k-card-wrap {
    flex: 1 1 300px;
    max-width: 440px;
    display: flex;
}

/* Ručně kreslené karty – každá má vlastní nepravidelné rohy a náklon. */
.k-card {
    flex: 1;
    padding: clamp(26px, 2.6vw, 36px) clamp(24px, 2.4vw, 34px);
    background: var(--white);
    border: 2px solid var(--ink);
    transition: transform var(--duration-fast) var(--ease-reveal), box-shadow var(--duration-fast) var(--ease-reveal);
}

.k-card--1 { transform: rotate(-0.8deg); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; }
.k-card--2 { transform: rotate(0.9deg);  border-radius: 18px 245px 20px 235px / 240px 16px 250px 18px; }
.k-card--3 { transform: rotate(-0.5deg); border-radius: 235px 20px 250px 16px / 20px 240px 18px 230px; }

.k-card:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(229, 229, 229, 0.6);
}

.k-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.k-card__num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--neutral-400);
}

/* Ručně orámovaný štítek (nadpis karty, „O nás“). */
.k-tag {
    display: inline-block;
    margin: 0;
    padding: 6px 13px;
    border: 2px solid var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
}

.k-tag--1 { transform: rotate(-1.4deg); border-radius: 18px 4px 16px 5px / 5px 14px 4px 18px; }
.k-tag--2 { transform: rotate(1deg);    border-radius: 5px 16px 4px 18px / 18px 5px 14px 4px; }
.k-tag--3 { transform: rotate(-1deg);   border-radius: 16px 5px 18px 4px / 4px 18px 5px 16px; }

.k-card__label {
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--neutral-500);
}

.k-card__chart { margin-top: 22px; }

.k-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
}

.k-card__label + .k-checklist { margin-top: 14px; }
.k-card__chart + .k-checklist { margin-top: 20px; }

.k-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.k-check svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--ink);
}

.k-check span {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--neutral-700);
}

.k-card__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.k-stamp {
    display: inline-block;
    transform: rotate(-2deg);
    padding: 5px 14px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink);
}

.k-card__caption {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--neutral-500);
}

.k-callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.k-callout svg { flex-shrink: 0; margin-left: 4px; }

.k-callout__box {
    transform: rotate(1.6deg);
    padding: 12px 16px;
    border: 2px solid var(--ink);
    border-radius: 16px 5px 14px 6px / 6px 14px 5px 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
    text-wrap: pretty;
}

.k-motto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: clamp(40px, 4.5vw, 64px);
}

.k-motto__text {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--neutral-600);
    text-align: center;
}

.k-motto__arrow--flip { transform: scaleX(-1); }


/* --- O nás / FAQ --------------------------------------------------------- */

.k-about {
    padding: clamp(64px, 7vw, 112px) clamp(24px, 5vw, 96px);
}

.k-about__grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(32px, 5vw, 88px);
    align-items: start;
}

.k-about__aside {
    position: sticky;
    top: 116px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.k-about__badge {
    padding: 7px 15px;
    font-size: 14px;
    transform: rotate(-1.5deg);
    border-radius: 18px 4px 16px 5px / 5px 14px 4px 18px;
}

.k-about__sparkle {
    margin-left: 38px;
    transform: rotate(-10deg);
}

.k-about__main { max-width: 860px; }

.k-about__title {
    margin: -8px 0 clamp(28px, 3vw, 44px);
    font-size: clamp(30px, 3.4vw, 50px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: var(--tracking-tighter);
    color: var(--ink);
    text-wrap: pretty;
}

.k-about__title .k-scribble__line { bottom: -0.14em; height: 0.22em; }

/* Akordeon na <details name="faq"> – atribut name zajistí, že je otevřená vždy
   nanejvýš jedna otázka, bez JS. Starší prohlížeče prostě otevřou víc najednou. */
.k-faq__summary {
    display: block;
    list-style: none;
    cursor: pointer;
}

.k-faq__summary::-webkit-details-marker { display: none; }

.k-faq__row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 22px 4px;
    transition: transform var(--duration-fast) var(--ease-reveal);
}

.k-faq__summary:hover .k-faq__row { transform: translateX(-10px); }

.k-faq__num {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--neutral-400);
}

.k-faq__q {
    flex: 1;
    min-width: 0;
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
    line-height: 1.3;
    color: var(--ink);
    text-wrap: pretty;
}

.k-faq__marker {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 20px;
    line-height: 1;
    color: var(--ink);
}

.k-faq__marker::before { content: "+"; }
.k-faq__item[open] .k-faq__marker::before { content: "×"; }

.k-faq__answer {
    max-width: 720px;
    padding: 0 4px 24px 46px;
}

.k-faq__answer p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: var(--leading-body);
    color: var(--neutral-600);
    text-wrap: pretty;
}

.k-faq__rule { display: block; }


/* --- Kontakt ------------------------------------------------------------- */

.k-contact {
    padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 24px) clamp(56px, 6vw, 96px);
}

.k-contact__capsule {
    padding: clamp(56px, 8vw, 128px) clamp(24px, 5vw, 88px);
}

.k-contact__capsule .k-glow {
    bottom: -200px; left: 30%;
    width: 520px; height: 520px;
    background: var(--glow-indigo);
    filter: blur(120px);
}

.k-contact__capsule .k-hairline { left: 25%; right: 25%; }

.k-contact__inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.k-contact__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--neutral-500);
}

.k-contact__title {
    margin: 28px 0 0;
    font-size: clamp(32px, 4.2vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: var(--tracking-tighter);
    color: var(--white);
    text-wrap: pretty;
}

.k-contact__lead {
    margin: 32px auto 0;
    max-width: 660px;
    font-size: 18px;
    font-weight: 500;
    line-height: var(--leading-body);
    color: var(--neutral-400);
    text-wrap: pretty;
}

.k-contact__form {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}


/* --- Responzivita (v návrhu není, doplněno) ------------------------------ */

@media (max-width: 900px) {
    .k-hero__grid { grid-template-columns: minmax(0, 1fr); }

    .k-about__grid { grid-template-columns: minmax(0, 1fr); }
    .k-about__aside { position: static; flex-direction: row; align-items: center; }
    .k-about__sparkle { margin-left: 8px; }
}
