/* =========================================================
   Tokániště 1 – styly
   ========================================================= */

:root {
    /* barvy */
    --green-950: #101f16;
    --green-900: #16291d;
    --green-700: #2c4a33;
    --green-500: #5f8a4c;
    --green-300: #9cc27a;
    --brown-950: #1f140d;
    --brown-800: #3d2819;
    --brown-600: #6b4a30;
    --cream: #f6efe2;
    --cream-dark: #e8dcc6;
    --ochre: #eaa83a;
    --ochre-dark: #c7841b;
    --text-dark: #2e1f14;
    --text-muted: #6d5d4f;

    /* fonty */
    --font-hand: "Amatic SC", cursive;
    --font-main: "Rubik", system-ui, sans-serif;

    /* ostatní */
    --radius: 18px;
    --shadow: 0 14px 34px rgba(0, 0, 0, .35);
    --container: 1180px;

    /* „cákanec“ barvy za textem */
    --splash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Cg fill='%23eaa83a'%3E%3Cpath d='M24 58c-8-18 10-40 34-38 10-12 34-16 48-6 16-8 42-4 50 12 20 2 34 22 24 40 10 16-4 36-26 34-8 14-34 18-50 8-14 10-40 8-50-4-22 4-40-12-30-30z'/%3E%3Ccircle cx='12' cy='34' r='5'/%3E%3Ccircle cx='188' cy='98' r='6'/%3E%3Ccircle cx='178' cy='16' r='4'/%3E%3Ccircle cx='30' cy='108' r='3.5'/%3E%3Ccircle cx='100' cy='6' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- základ ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--cream);
    background: var(--green-950);
}

/* Podklad celé stránky: fotka lesa překrytá zelenohnědým přechodem.
   (pseudo-element místo background-attachment: fixed – funguje i na mobilech) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(165deg, rgba(16, 31, 22, .92) 0%, rgba(22, 41, 29, .9) 45%, rgba(40, 26, 16, .94) 100%),
        url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1920&q=70") center / cover no-repeat;
}

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

a {
    color: inherit;
}

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    font-weight: 900;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.center {
    text-align: center;
}

.more {
    margin-top: 2rem;
}

section[id] {
    scroll-margin-top: 4rem;
}

/* ---------- typografické prvky ---------- */

.kicker {
    font-family: var(--font-hand);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--ochre);
    margin-bottom: .35em;
    letter-spacing: .02em;
}

.kicker-green {
    color: var(--green-500);
}

.splash {
    position: relative;
    display: inline-block;
    z-index: 0;
}

.splash::before {
    content: "";
    position: absolute;
    inset: -30% -18%;
    z-index: -1;
    background: var(--splash) center / 100% 100% no-repeat;
    opacity: .9;
    transform: rotate(-4deg);
}

/* ---------- tlačítka a odkazy ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    padding: 1em 2em;
    font-family: var(--font-main);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--brown-950);
    background: var(--ochre);
    border: 0;
    border-bottom: 4px solid var(--ochre-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: transform .15s, background .15s;
}

.btn:hover {
    background: #f3b852;
    transform: translateY(-2px) rotate(-1deg);
}

.btn-ghost {
    color: var(--cream);
    background: transparent;
    border: 2px solid var(--cream);
    border-bottom-width: 4px;
}

.btn-ghost:hover {
    color: var(--brown-950);
    background: var(--cream);
}

.btn-small {
    padding: .6em 1.2em;
    font-size: .8rem;
    border-bottom-width: 3px;
}

.btn-big {
    font-size: 1rem;
    padding: 1.2em 2.4em;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-weight: 700;
    text-decoration: none;
    color: var(--green-700);
}

.link-arrow i {
    transition: transform .15s;
}

.link-arrow:hover i {
    transform: translateX(4px);
}

.link-light {
    color: var(--ochre);
}

/* ---------- ikona v „kapce“ ---------- */

.icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    font-size: 1.8rem;
    color: var(--brown-950);
    background: var(--ochre);
    border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.icon-lg {
    width: 80px;
    height: 80px;
    font-size: 2.3rem;
}

/* ---------- navigace ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 31, 22, .85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(246, 239, 226, .08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    text-decoration: none;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    color: var(--brown-950);
    background: var(--ochre);
    border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
}

.logo-text {
    font-family: var(--font-hand);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.logo-text strong {
    color: var(--ochre);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    text-decoration: none;
    opacity: .85;
    transition: opacity .15s, color .15s;
}

.nav-links a:not(.btn):hover {
    opacity: 1;
    color: var(--ochre);
}

.nav-toggle,
.nav-burger {
    display: none;
}

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

.hero {
    position: relative;
    display: flex;
    align-items: center;
    /*min-height: max(100vh, 820px);*/
    padding: 12rem 3rem 4rem 3rem;
    margin-top: -4rem;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-position: center;
    background-size: cover;
    /* spodní okraj fotky se rozplyne do podkladu stránky */
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(40, 26, 16, .55), rgba(22, 41, 29, .7));
}

.hero-content {
    border-bottom: 1px solid rgba(246, 239, 226, .1);
    position: relative;
}

.hero-title {
    font-size: clamp(3.2rem, 11vw, 7.5rem);
    margin: 1.5rem 0 2.5rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}

.hero-lead {
    max-width: 620px;
    margin: 0 auto 3.5rem;
    font-size: 1.15rem;
    opacity: .92;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* rozcestník v hero – kulatá „kapka“ tlačítka */
.hero-jumps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
}

.jump {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    width: 130px;
    height: 130px;
    text-decoration: none;
    color: var(--brown-950);
    background: var(--ochre);
    border: 4px solid rgba(246, 239, 226, .85);
    border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    transform: rotate(-4deg);
    transition: transform .2s, background .2s;
}

.jump:nth-child(2) {
    transform: rotate(3deg);
    border-radius: 45% 55% 42% 58% / 55% 45% 55% 45%;
}

.jump:nth-child(3) {
    transform: rotate(-2deg);
    border-radius: 52% 48% 60% 40% / 42% 58% 42% 58%;
}

.jump:hover {
    background: #f3b852;
    transform: translateY(-6px) rotate(0deg);
}

.jump i {
    font-size: 2.1rem;
    line-height: 1;
}

.jump span {
    font-family: var(--font-hand);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

/* ---------- dlaždice (společný styl) ---------- */

.tile {
    padding: 1.8rem;
    color: var(--text-dark);
    background: var(--cream);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s;
}

.tile:hover {
    transform: translateY(-4px) rotate(-.6deg);
}

.tile:nth-child(even):hover {
    transform: translateY(-4px) rotate(.6deg);
}

/* ---------- základní údaje ---------- */

.application-info {
    justify-content: center;
    color: var(--ochre);
    display: flex;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.facts {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    margin-bottom: 2.5rem;
}

.fact {
    text-align: center;
}

.fact .icon {
    margin-bottom: .8rem;
}

.fact h3 {
    margin-bottom: .2em;
    font-family: var(--font-hand);
    font-size: 1.9rem;
    color: var(--green-700);
}

.fact p {
    margin: 0;
    font-weight: 700;
}

/* ---------- sekce ---------- */

.section {
    padding: 4rem 3rem;
}

.section-head {
    margin-bottom: 2.5rem;
    text-align: center;
}

.grid {
    display: grid;
    gap: 1.6rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ---------- panel (velká světlá plocha) ---------- */

.panel {
    position: relative;
    padding: clamp(1.6rem, 5vw, 4rem);
    color: var(--text-dark);
    background: var(--cream);
    border-radius: calc(var(--radius) * 1.5);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-brown {
    color: var(--cream);
    background:
        radial-gradient(circle at 85% 20%, rgba(234, 168, 58, .18), transparent 45%),
        linear-gradient(135deg, var(--brown-800), var(--brown-950));
}

/* ---------- o táboře ---------- */

.about {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.vertical-word {
    position: absolute;
    top: 50%;
    left: -.35em;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .1em;
    color: transparent;
    -webkit-text-stroke: 2px var(--cream-dark);
    pointer-events: none;
    user-select: none;
}

.about-photo {
    position: relative;
    margin: 0;
    z-index: 1;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

/* okrový klín pod fotkou */
.about-photo::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 12%;
    background: var(--ochre);
    clip-path: polygon(0 55%, 100% 0, 100% 100%);
}

.about-text h2 {
    color: var(--brown-800);
}

.about-intro {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin: 1.4rem 0;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.checklist {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.checklist li {
    display: flex;
    gap: .7em;
    align-items: center;
    margin-bottom: .5em;
    color: var(--text-muted);
}

.checklist i {
    color: var(--green-500);
    font-size: 1.15rem;
}

/* ---------- fotky ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 5px solid var(--cream);
}

.gallery .g-big {
    grid-column: span 2;
    grid-row: span 2;
}

/* ---------- tým ---------- */

.person {
    text-align: center;
}

.avatar {
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.1rem;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--cream);
    background: var(--brown-600);
    border: 5px solid var(--cream-dark);
    border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-green {
    background: var(--green-500);
}

.avatar-ochre {
    color: var(--brown-950);
    background: var(--ochre);
}

.person h3 {
    margin-bottom: 0;
    color: var(--brown-800);
}

.nickname {
    margin: 0;
    font-family: var(--font-hand);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green-500);
}

.role {
    display: inline-block;
    padding: .2em .8em;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brown-800);
    background: var(--cream-dark);
    border-radius: 99px;
}

.person p:last-child {
    margin: 0;
    font-size: .95rem;
    color: var(--text-muted);
}

/* ---------- aktuality ---------- */

.news {
    display: flex;
    flex-direction: column;
}

.news h3 {
    color: var(--brown-800);
}

.news p {
    color: var(--text-muted);
}

.news .link-arrow {
    margin-top: auto;
}

.date-badge {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.1rem;
    padding: .4em .9em .5em;
    font-family: var(--font-hand);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--cream);
    background: var(--green-700);
    border-radius: 12px;
    transform: rotate(-3deg);
}

.date-badge strong {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 900;
}

/* ---------- minulé roky ---------- */

.year-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 340px;
    padding: 1.5rem;
    text-decoration: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.year-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.year-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 25%, rgba(31, 20, 13, .92));
}

.year-card:hover img {
    transform: scale(1.07);
}

.year {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.year-theme {
    font-family: var(--font-hand);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ochre);
}

/* ---------- přihláška a dokumenty ---------- */

.signup {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.signup h2 .splash {
    color: var(--brown-950);
}

.signup-text > p:not(.kicker) {
    max-width: 480px;
    margin-bottom: 2rem;
    opacity: .9;
}

.docs {
    padding: 1.8rem;
    background: rgba(246, 239, 226, .07);
    border: 2px dashed rgba(246, 239, 226, .25);
    border-radius: var(--radius);
    scroll-margin-top: 100px;
}

.docs h3 {
    font-family: var(--font-hand);
    font-size: 2rem;
    color: var(--ochre);
}

.doc {
    display: flex;
    align-items: center;
    gap: .8em;
    padding: .8em 1em;
    margin-bottom: .6rem;
    text-decoration: none;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--cream);
    border-radius: 10px;
    transition: transform .15s;
}

.doc:hover {
    transform: translateX(6px);
}

.doc i {
    font-size: 1.5rem;
    color: var(--brown-600);
}

.doc small {
    margin-left: .4em;
    font-size: .7rem;
    font-weight: 700;
    color: var(--green-500);
}

/* ---------- patička ---------- */

.site-footer {
    padding: 60px 0 20px;
    background: rgba(16, 12, 8, .55);
    border-top: 1px solid rgba(246, 239, 226, .08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
}

.site-footer h4 {
    font-family: var(--font-hand);
    font-size: 1.8rem;
    color: var(--ochre);
}

.site-footer p {
    opacity: .85;
}

.site-footer .logo {
    margin-bottom: 1rem;
}

.site-footer i {
    margin-right: .4em;
    color: var(--green-300);
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ochre);
}

.socials a {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: .5rem;
    font-size: 1.2rem;
    background: rgba(246, 239, 226, .1);
    border-radius: 50%;
}

.socials i {
    margin: 0;
    color: inherit;
}

.copyright {
    margin-top: 2rem;
    padding-top: 1.2rem;
    font-size: .85rem;
    text-align: center;
    opacity: .6;
    border-top: 1px solid rgba(246, 239, 226, .1);
}

/* =========================================================
   Responzivita
   ========================================================= */

@media (max-width: 1000px) {
    .grid-4,
    .facts {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 860px) {
    /* mobilní menu – čisté CSS přes checkbox */
    .nav-burger {
        display: block;
        font-size: 2rem;
        cursor: pointer;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        background: var(--green-900);
        border-bottom: 3px solid var(--ochre);
        display: none;
    }

    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }

    .about,
    .signup {
        grid-template-columns: 1fr;
    }

    .about-photo img {
        aspect-ratio: 4 / 3;
    }

    .vertical-word {
        display: none;
    }

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

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }
}

@media (max-width: 560px) {
    .hero-jumps {
        gap: 1rem;
    }

    .jump {
        width: 100px;
        height: 100px;
    }

    .jump i {
        font-size: 1.6rem;
    }

    .jump span {
        font-size: 1.3rem;
    }

    .grid-4,
    .facts,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .facts {
        grid-template-columns: 1fr 1fr;
        gap: .8rem;
    }

    .fact {
        padding: 1.2rem .8rem;
    }

    .fact .icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .section {
        padding: 64px 0;
    }
}
