/* =========================
   FONTY
   CSS soubor je ve složce /css,
   fonty patří do složky /fonts.
   Očekávané názvy souborů:
   /fonts/artbrut-heading.woff2
   /fonts/artbrut-heading.woff
   /fonts/artbrut-text.woff2
   /fonts/artbrut-text.woff
========================= */

@font-face {
    font-family: "ArtBrutHeading";
    src: url("../fonts/artbrut-heading.woff2") format("woff2"),
         url("../fonts/artbrut-heading.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "ArtBrutText";
    src: url("../fonts/artbrut-text.woff2") format("woff2"),
         url("../fonts/artbrut-text.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* =========================
   ZÁKLADNÍ NASTAVENÍ
========================= */

:root {
    --font-heading: "ArtBrutHeading", Georgia, "Times New Roman", serif;
    --font-body: "ArtBrutText", "Open Sans", Arial, Helvetica, sans-serif;

    --color-blue: #008cad;
    --color-green: #58b737;
    --color-orange: #ff7900;
    --color-red: #c90000;
    --color-dark: #171719;
    --color-ink: #27272a;
    --color-muted: #676b73;
    --color-soft: #f5f7f9;
    --color-line: #e2e8f0;
    --color-white: #ffffff;

    --shadow-soft: 0 24px 60px rgba(20, 28, 38, 0.12);
    --shadow-card: 0 16px 40px rgba(20, 28, 38, 0.09);

    --radius-lg: 28px;
    --radius-md: 20px;
    --container: 1180px;

    /* Jednotné velikosti nadpisů pro celý web */
    --h1-size: clamp(1.85rem, 3.4vw, 3.3rem);
    --h2-size: clamp(1.35rem, 2.4vw, 2.15rem);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-ink);
    background:
        radial-gradient(circle at top left, rgba(0, 140, 173, 0.11), transparent 34rem),
        radial-gradient(circle at 100% 8rem, rgba(255, 121, 0, 0.10), transparent 30rem),
        linear-gradient(180deg, #ffffff 0%, #fbfcfd 38%, #f4f7f9 100%);
    line-height: 1.65;
}

h1,
h2,
h3,
.main-nav a,
.learning-button,
.button-primary,
.button-secondary,
.news-date,
.eyebrow {
    font-family: var(--font-heading);
}

a {
    color: inherit;
}

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

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: 999px;
}

.skip-link:focus {
    left: 12px;
}

:focus-visible {
    outline: 3px solid rgba(0, 140, 173, 0.55);
    outline-offset: 3px;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 92px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img {
    width: 222px;
    max-height: 72px;
    object-fit: contain;
}

.main-nav {
    justify-self: end;
}

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

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--color-muted);
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--color-dark);
    background: rgba(0, 140, 173, 0.10);
}

.main-nav a.is-active {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    box-shadow: 0 10px 24px rgba(0, 140, 173, 0.22);
}

.main-nav a.is-active:hover,
.main-nav a.is-active:focus-visible {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher a {
    width: 42px;
    height: 28px;
    border-radius: 9px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(0, 140, 173, 0.35);
    background: rgba(0, 140, 173, 0.08);
}

.language-switcher a.is-active {
    transform: translateY(-1px);
    border-color: var(--color-blue);
    background: rgba(0, 140, 173, 0.14);
    box-shadow: 0 8px 20px rgba(0, 140, 173, 0.18);
}

.language-switcher img {
    width: 100%;
    height: 100%;
    border-radius: 7px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.language-switcher a.is-active img {
    box-shadow:
        0 0 0 2px var(--color-white),
        0 0 0 4px var(--color-blue);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--color-dark);
    color: var(--color-white);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
}

/* =========================
   LEARNING PLATFORM BAR
========================= */

.learning-link-bar {
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(90deg, rgba(0, 140, 173, 0.08), rgba(88, 183, 55, 0.08), rgba(255, 121, 0, 0.08));
}

.learning-link-inner {
    display: flex;
    justify-content: center;
    padding: 13px 0;
}

.learning-button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 11px 18px;
    border-radius: 999px;
    color: var(--color-dark);
    background: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 140, 173, 0.15);
    border: 1px solid rgba(0, 140, 173, 0.18);
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learning-button:hover,
.learning-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0, 140, 173, 0.22);
}

.learning-button__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--color-white);
    background: conic-gradient(from 120deg, var(--color-blue), var(--color-green), var(--color-orange), var(--color-red), var(--color-blue));
    font-size: 1.05rem;
}

/* =========================
   HERO - HOMEPAGE
========================= */

.hero {
    padding: 78px 0 54px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
    align-items: center;
    gap: 54px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--color-blue);
    font-size: 0.83rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 42px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-green), var(--color-orange));
}

.hero h1 {
    margin: 0;
    color: var(--color-dark);
    font-size: var(--h1-size);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-lead {
    max-width: 700px;
    margin: 28px 0 0;
    font-size: clamp(1.06rem, 2vw, 1.26rem);
    color: #3f4650;
}

.hero-support {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--color-muted);
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: var(--color-white);
    background: var(--color-dark);
    box-shadow: 0 20px 45px rgba(23, 23, 25, 0.20);
}

.button-primary:hover,
.button-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 55px rgba(23, 23, 25, 0.26);
}

.button-secondary {
    color: var(--color-dark);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(23, 23, 25, 0.10);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: var(--color-white);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    min-height: 460px;
    display: grid;
    place-items: center;
}

.orbital-card {
    position: relative;
    width: min(100%, 430px);
    aspect-ratio: 1;
    border-radius: 38% 62% 48% 52% / 48% 42% 58% 52%;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,255,255,0.72)),
        radial-gradient(circle at 30% 20%, rgba(0, 140, 173, 0.18), transparent 17rem),
        radial-gradient(circle at 72% 78%, rgba(255, 121, 0, 0.18), transparent 16rem);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

.orbital-card::before,
.orbital-card::after {
    content: "";
    position: absolute;
    inset: 13%;
    border-radius: 50%;
    border: 10px solid rgba(0, 140, 173, 0.18);
}

.orbital-card::after {
    inset: 26%;
    border-width: 8px;
    border-color: rgba(255, 121, 0, 0.22);
}

.orbital-logo {
    position: absolute;
    inset: 22%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(23, 23, 25, 0.08);
}

.orbital-logo img {
    width: 78%;
    object-fit: contain;
}

.dot {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(20, 28, 38, 0.2);
}

.dot-blue {
    top: 10%;
    right: 22%;
    background: var(--color-blue);
}

.dot-green {
    bottom: 12%;
    left: 25%;
    background: var(--color-green);
}

.dot-orange {
    bottom: 30%;
    right: 9%;
    background: var(--color-orange);
}

.dot-red {
    top: 33%;
    left: 9%;
    background: var(--color-red);
}

.floating-note {
    position: absolute;
    right: 0;
    bottom: 22px;
    max-width: 230px;
    padding: 18px 20px;
    border-radius: 24px;
    color: var(--color-dark);
    background: rgba(255,255,255,0.92);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(226, 232, 240, 0.88);
    font-weight: 800;
}

.floating-note span {
    display: block;
    color: var(--color-muted);
    font-weight: 700;
    font-size: 0.86rem;
}

/* =========================
   OBECNÉ SEKCE
========================= */

.section {
    padding: 60px 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    color: var(--color-dark);
    font-size: var(--h2-size);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 14px 0 0;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    position: relative;
    min-height: 220px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.feature-card--blue {
    --card-color: var(--color-blue);
}

.feature-card--green {
    --card-color: var(--color-green);
}

.feature-card--orange {
    --card-color: var(--color-orange);
}

.feature-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -48px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    opacity: 0.13;
    background: var(--card-color, var(--color-blue));
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--color-white);
    background: var(--card-color, var(--color-blue));
    font-size: 1.45rem;
}

.feature-card h3 {
    margin: 22px 0 10px;
    font-size: 1.2rem;
    color: var(--color-dark);
}

.feature-card p {
    margin: 0;
    color: var(--color-muted);
}

/* =========================
   NEWS - HOMEPAGE
========================= */

.news-block {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: 0;
    border-radius: 34px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.88);
}

.news-image {
    min-height: 390px;
    background: linear-gradient(135deg, rgba(0, 140, 173, 0.15), rgba(255, 121, 0, 0.12));
}

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

.news-content {
    padding: clamp(28px, 5vw, 54px);
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--color-blue);
    background: rgba(0, 140, 173, 0.10);
    font-weight: 900;
    font-size: 0.86rem;
}

.news-content h2 {
    margin: 22px 0 14px;
    color: var(--color-dark);
    font-size: var(--h2-size);
    line-height: 1.07;
    letter-spacing: -0.04em;
}

.news-content p {
    color: #4f5661;
    margin: 0 0 14px;
}

/* =========================
   NEWS - READ MORE
========================= */

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 18px;
    border-radius: 999px;
    color: var(--color-white);
    background: var(--color-dark);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(23, 23, 25, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.read-more-link:hover,
.read-more-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(23, 23, 25, 0.24);
}

/* =========================
   NEWS DETAIL PAGE
========================= */

.news-detail {
    padding-top: 72px;
}

.news-detail-container {
    max-width: 980px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--color-muted);
    font-weight: 800;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--color-blue);
}

.news-detail-heading {
    margin-bottom: 28px;
}

.news-detail-heading h1 {
    max-width: 920px;
    margin: 22px 0 0;
    color: var(--color-dark);
    font-size: var(--h1-size);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.news-detail-text {
    max-width: 860px;
    color: #4f5661;
    font-size: 1.05rem;
}

.news-detail-text p {
    margin: 0 0 18px;
}

/* =========================
   NEWS GALLERY - UNIVERSAL THUMBNAILS
   Fotky se nezobrazují přes cover, takže se neořezávají.
========================= */

.news-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.news-gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 24px;
    cursor: pointer;
    background: transparent;
    text-align: left;
}

.news-gallery-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: clamp(320px, 32vw, 430px);
    padding: 12px;
    border-radius: 24px;
    background: #f4f0ea;
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.news-gallery-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
    transition: transform 0.25s ease;
}

.news-gallery-item:hover img,
.news-gallery-item:focus-visible img {
    transform: scale(1.025);
}

.news-gallery-item:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 4px;
}

/* =========================
   SIMPLE LIGHTBOX WITH NAVIGATION
========================= */

body.lightbox-open {
    overflow: hidden;
}

.simple-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px 76px;
    background: rgba(0, 0, 0, 0.88);
}

.simple-lightbox.is-open {
    display: flex;
}

.simple-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.simple-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    background: #ffffff;
}

.simple-lightbox-caption {
    margin-top: 14px;
    color: #ffffff;
    font-size: 0.95rem;
    text-align: center;
}

.simple-lightbox-close,
.simple-lightbox-nav {
    border: 0;
    cursor: pointer;
    color: var(--color-dark);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.simple-lightbox-close {
    position: fixed;
    top: 22px;
    right: 28px;
    z-index: 1001;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}

.simple-lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 1001;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 2.8rem;
    line-height: 1;
    transform: translateY(-50%);
}

.simple-lightbox-prev {
    left: 24px;
}

.simple-lightbox-next {
    right: 24px;
}

.simple-lightbox-close:hover,
.simple-lightbox-close:focus-visible,
.simple-lightbox-nav:hover,
.simple-lightbox-nav:focus-visible {
    background: #f4f0ea;
}

.simple-lightbox-close:focus-visible,
.simple-lightbox-nav:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* =========================
   ABOUT THE PROJECT PAGE
========================= */

.about-page {
    background: var(--color-white);
}

/* About stránka používá v HTML třídu .container.
   Proto ji zde sjednocujeme s hlavním .site-container. */
.about-page .container {
    width: min(100% - 64px, var(--container));
    margin-left: auto;
    margin-right: auto;
}

.subpage-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 68px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 121, 0, 0.16), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(0, 140, 173, 0.14), transparent 32%),
        linear-gradient(135deg, #fff8f2 0%, #f7efe7 45%, #eef3f4 100%);
}

.subpage-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(201, 0, 0, 0.10);
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
}

.subpage-hero h1 {
    max-width: 850px;
    margin: 12px 0 18px;
    color: var(--color-dark);
    font-size: var(--h1-size);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.subpage-hero p {
    max-width: 720px;
    margin: 0;
    font-size: clamp(1.06rem, 2vw, 1.22rem);
    line-height: 1.7;
    color: #3f4650;
}

.section-padding {
    padding: 72px 0;
}

.soft-bg {
    background: #faf5ee;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-blue);
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Důležité: H2 na About stránce používá stejnou velikost jako všechny H2 na webu. */
.about-page h2,
.about-page .section-heading h2,
.about-page .about-intro-text h2,
.about-page .outcomes-text h2,
.about-page .why-card h2 {
    font-size: var(--h2-size);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 42px;
    align-items: start;
}

.about-intro-text p,
.outcomes-text p,
.why-card p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-muted);
    margin: 0 0 18px;
}

.about-highlight-card {
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff 0%, #fff3e8 100%);
    box-shadow: 0 22px 55px rgba(52, 45, 38, 0.10);
    border: 1px solid rgba(255, 121, 0, 0.18);
}

.about-highlight-card h3 {
    margin: 0 0 22px;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--color-dark);
}

.about-highlight-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-highlight-card li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    line-height: 1.5;
    color: var(--color-muted);
}

.about-highlight-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-orange);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

.goal-card {
    min-height: 245px;
    padding: 28px 24px;
    border-radius: 26px;
    background: var(--color-white);
    box-shadow: 0 18px 45px rgba(52, 45, 38, 0.08);
    border: 1px solid rgba(36, 49, 63, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.goal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(52, 45, 38, 0.13);
}

.card-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: rgba(255, 121, 0, 0.14);
    color: #a34d00;
    font-family: var(--font-heading);
    font-weight: 900;
}

.goal-card p {
    margin: 0;
    line-height: 1.7;
    color: var(--color-muted);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.activity-card {
    position: relative;
    padding: 36px;
    border-radius: 30px;
    background: var(--color-white);
    border: 1px solid rgba(36, 49, 63, 0.08);
    box-shadow: 0 20px 50px rgba(52, 45, 38, 0.08);
    overflow: hidden;
}

.activity-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: linear-gradient(180deg, var(--color-blue), var(--color-green), var(--color-orange));
}

.activity-number {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(0, 140, 173, 0.10);
    color: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
}

.activity-card h3 {
    margin: 0 0 14px;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--color-dark);
}

.activity-card p {
    margin: 0;
    line-height: 1.8;
    color: var(--color-muted);
}

.outcomes-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 44px;
    align-items: start;
}

.outcomes-list {
    display: grid;
    gap: 16px;
}

.outcome-item {
    position: relative;
    padding: 20px 24px 20px 58px;
    border-radius: 20px;
    background: var(--color-white);
    box-shadow: 0 14px 35px rgba(52, 45, 38, 0.07);
    line-height: 1.65;
    color: var(--color-muted);
}

.outcome-item::before {
    content: "✓";
    position: absolute;
    left: 22px;
    top: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(88, 183, 55, 0.15);
    color: #3f7a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.85rem;
}

.why-card {
    padding: clamp(34px, 6vw, 70px);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(23, 23, 25, 0.91), rgba(39, 39, 42, 0.84)),
        radial-gradient(circle at 20% 20%, rgba(255, 121, 0, 0.35), transparent 30%);
    color: var(--color-white);
    box-shadow: 0 26px 70px rgba(36, 49, 63, 0.18);
}

.why-card .section-kicker,
.why-card h2,
.why-card p {
    color: var(--color-white);
}

.why-card p {
    max-width: 900px;
    opacity: 0.92;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 80px;
    color: rgba(255, 255, 255, 0.86);
    background:
        radial-gradient(circle at 12% 10%, rgba(0, 140, 173, 0.33), transparent 26rem),
        radial-gradient(circle at 88% 12%, rgba(255, 121, 0, 0.20), transparent 22rem),
        #151519;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    padding: 50px 0 38px;
    align-items: center;
}

.footer-eu-logo {
    justify-self: start;
}

.footer-eu-logo img {
    width: min(100%, 350px);
    background: var(--color-white);
}

.footer-funding {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(22px, 3.5vw, 42px);
    align-items: center;
}

.footer-disclaimer {
    margin: 0;
    max-width: 760px;
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: justify;
    color: rgba(255, 255, 255, 0.78);
}

.footer-agency-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    padding: 0;
    text-decoration: none;
}

.footer-agency-logo img {
    width: clamp(190px, 21vw, 255px);
    max-height: 78px;
    object-fit: contain;
    background: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 18px 0;
    color: rgba(255,255,255,0.62);
    font-size: 0.9rem;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px 22px;
    flex-wrap: wrap;
}

.footer-copyright {
    text-align: center;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.9rem;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.footer-social-icon {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1180px) {
    .goals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1050px) {
    .header-inner {
        grid-template-columns: auto auto;
    }

    .main-nav {
        grid-column: 1 / -1;
        justify-self: stretch;
        display: none;
    }

    .main-nav.is-open {
        display: block;
        padding-bottom: 18px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .main-nav a {
        justify-content: center;
        background: rgba(245, 247, 249, 0.88);
    }

    .header-actions {
        justify-self: end;
    }

    .menu-toggle {
        display: block;
    }

    .hero-grid,
    .news-block {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-funding {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .footer-eu-logo,
    .footer-agency-logo {
        justify-self: center;
    }

    .footer-disclaimer {
        text-align: center;
    }

    .hero-visual {
        min-height: 360px;
    }

    .floating-note {
        right: 24px;
    }
}

@media (max-width: 900px) {
    .about-intro-grid,
    .outcomes-layout,
    .activities-grid {
        grid-template-columns: 1fr;
    }

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

    .section-padding {
        padding: 64px 0;
    }

    .news-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-gallery-frame {
        height: clamp(300px, 48vw, 420px);
    }
}

@media (max-width: 760px) {
    .site-container {
        width: min(100% - 28px, var(--container));
    }

    .about-page .container {
        width: min(100% - 36px, var(--container));
    }

    .header-inner {
        min-height: 78px;
        gap: 14px;
    }

    .brand img {
        width: 170px;
    }

    .language-switcher {
        gap: 4px;
    }

    .language-switcher a {
        width: 36px;
        height: 24px;
    }

    .language-switcher img {
        width: 100%;
        height: 100%;
    }

    .hero {
        padding-top: 48px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button-primary,
    .button-secondary,
    .learning-button {
        justify-content: center;
        width: 100%;
    }

    .hero-visual {
        min-height: 310px;
    }

    .dot {
        width: 34px;
        height: 34px;
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -44px;
        justify-self: center;
    }

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

    .news-image {
        min-height: 245px;
    }

    .news-detail {
        padding-top: 48px;
    }

    .footer-inner {
        padding: 42px 0 30px;
    }

    .footer-eu-logo img {
        width: min(100%, 310px);
    }

    .footer-agency-logo img {
        width: min(100%, 235px);
    }
}

@media (max-width: 620px) {
    .news-gallery {
        grid-template-columns: 1fr;
    }

    .news-gallery-frame {
        height: auto;
        min-height: 260px;
    }

    .news-gallery-frame img {
        height: auto;
        max-height: 520px;
    }

    .simple-lightbox {
        padding: 64px 16px 28px;
    }

    .simple-lightbox-content img {
        max-height: 72vh;
        border-radius: 14px;
    }

    .simple-lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 1.7rem;
    }

    .simple-lightbox-nav {
        top: auto;
        bottom: 18px;
        width: 46px;
        height: 46px;
        font-size: 2.2rem;
        transform: none;
    }

    .simple-lightbox-prev {
        left: 18px;
    }

    .simple-lightbox-next {
        right: 18px;
    }

    .simple-lightbox-caption {
        padding: 0 56px;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .subpage-hero {
        padding: 68px 0 54px;
    }

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

    .goal-card {
        min-height: auto;
    }

    .activity-card,
    .about-highlight-card {
        padding: 28px;
    }

    .outcome-item {
        padding-right: 18px;
    }
}

/* =========================
   CONTACTS PAGE
========================= */

.contacts-page {
    background: var(--color-white);
}

.contacts-page .container {
    width: min(100% - 64px, var(--container));
    margin-left: auto;
    margin-right: auto;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-top: 38px;
}

.contact-card {
    --contact-color: var(--color-blue);

    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
    gap: 0;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-card);
}

.contact-card--blue {
    --contact-color: var(--color-blue);
}

.contact-card--green {
    --contact-color: var(--color-green);
}

.contact-card--orange {
    --contact-color: var(--color-orange);
}

.contact-card--red {
    --contact-color: var(--color-red);
}

.partner-photo {
    display: block;
    width: 100%;
    min-height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.78), transparent 34%),
        linear-gradient(145deg, color-mix(in srgb, var(--contact-color) 18%, white), #f4f0ea);
}

.partner-photo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 330px;
    padding: 14px;
}

.partner-photo img {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(20, 28, 38, 0.16);
    transition: transform 0.25s ease;
}

.partner-photo:hover img,
.partner-photo:focus-visible img {
    transform: scale(1.025);
}

.partner-photo:focus-visible {
    outline: 3px solid var(--contact-color);
    outline-offset: -6px;
}

.contact-card-content {
    position: relative;
    padding: clamp(26px, 4vw, 38px);
}

.contact-card-content::before {
    content: "";
    position: absolute;
    top: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--contact-color);
    opacity: 0.12;
}

.contact-card h2 {
    margin: 0 0 14px;
    color: var(--color-dark);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.contact-country {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(0, 140, 173, 0.08);
    color: var(--color-muted);
    font-weight: 800;
}

.contact-country img {
    width: 32px;
    height: 22px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.contact-person {
    margin: 0 0 18px;
    color: var(--color-dark);
    font-size: 1.06rem;
    font-weight: 900;
}

.contact-links {
    display: grid;
    gap: 10px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    color: var(--color-blue);
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-links a:hover,
.contact-links a:focus-visible {
    color: var(--color-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

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

@media (max-width: 760px) {
    .contacts-page .container {
        width: min(100% - 36px, var(--container));
    }

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

    .partner-photo-frame {
        min-height: 280px;
    }

    .partner-photo img {
        max-height: 340px;
    }
}

/* =========================
   ABOUT THE PARTNERS PAGE
========================= */

.partners-page {
    background: var(--color-white);
}

/* Stejné odsazení jako contacts-page a about-page */
.partners-page .container {
    width: min(100% - 64px, var(--container));
    margin-left: auto;
    margin-right: auto;
}

/* Hero používá obecný .subpage-hero.
   Tady necháváme jen případné partners specifické doladění. */
.partners-hero {
    margin-bottom: 0;
}

/* Hlavní sekce s kartami partnerů */
.partners-section {
    padding: 72px 0 80px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-top: 38px;
}

/* Karta partnera */
.partner-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-card);
}

/* Horní prostor s logem */
.partner-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 165px;
    padding: 32px;
    background: #e6ddd4;
    border-bottom: 1px solid rgba(22, 31, 49, 0.08);
}

.partner-logo-box img {
    display: block;
    max-width: 280px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Textová část karty */
.partner-content {
    position: relative;
    padding: clamp(28px, 4vw, 38px);
}

.partner-content::before {
    content: "";
    position: absolute;
    top: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-blue);
    opacity: 0.09;
}

.partner-country {
    display: inline-flex;
    align-items: center;
    margin: 0 0 16px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(0, 140, 173, 0.08);
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.partner-content h3 {
    margin: 0;
    color: var(--color-dark);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.partner-short-name {
    margin: 8px 0 20px;
    color: var(--color-muted);
    font-weight: 900;
}

.partner-content p {
    margin: 0 0 16px;
    color: var(--color-muted);
    font-size: 1.03rem;
    line-height: 1.8;
}

/* Odkaz na web partnera */
.partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-top: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    color: var(--color-white);
    background: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(23, 23, 25, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.partner-link:hover,
.partner-link:focus-visible {
    transform: translateY(-2px);
    background: var(--color-blue);
    box-shadow: 0 18px 42px rgba(23, 23, 25, 0.24);
    text-decoration: none;
}

/* =========================
   ABOUT THE PARTNERS RESPONSIVE
========================= */

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

@media (max-width: 760px) {
    .partners-page .container {
        width: min(100% - 36px, var(--container));
    }

    .partners-section {
        padding: 64px 0 72px;
    }

    .partner-logo-box {
        min-height: 145px;
        padding: 28px;
    }

    .partner-logo-box img {
        max-width: 240px;
        max-height: 86px;
    }
}

@media (max-width: 560px) {
    .partners-section {
        padding: 54px 0 64px;
    }

    .partners-grid {
        gap: 22px;
        margin-top: 30px;
    }

    .partner-card {
        border-radius: 26px;
    }

    .partner-logo-box {
        min-height: 130px;
        padding: 24px;
    }

    .partner-logo-box img {
        max-width: 220px;
        max-height: 78px;
    }

    .partner-content {
        padding: 28px;
    }

    .partner-content::before {
        top: 24px;
        right: 24px;
        width: 46px;
        height: 46px;
    }
}