/* ===============================
   0) Токени теми
   =============================== */
:root {
    --bg: #444444;
    --panel: #444444;
    --ink: #f4f4f4;
    --muted: #a8a8a8;
    --accent: #3ba162;
    --link: #5ab2ff;
    --border: #333;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --r-lg: 16px;
    --r: 12px;
    --r-sm: 8px;
    --max: 1280px;
    --teaser-max: 1040px;
}

:root {
    --header-offset: 90px;
}


#top,
#video,
#kontakt {
    scroll-margin-top: var(--header-offset);
}


/* ===============================
   1) База / утиліти
   =============================== */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #3f3f3f;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* коли меню Inhalte відкрите — ховаємо стрілки */
body.section-nav-open .section-arrow--up,
body.section-nav-open .section-arrow--down {
    opacity: 0;
    pointer-events: none;
    /* щоб не клікались */
    transition: opacity .15s ease;
}

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

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.noscript {
    background: #422;
    color: #fff;
    padding: 10px;
    text-align: center;
}

/* сітка по всьому полотну */
/* body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        repeating-linear-gradient(to right,
            rgba(255, 255, 255, 0.08) 0 1px,
            rgba(255, 255, 255, 0) 1px 400px),
        repeating-linear-gradient(to bottom,
            rgba(255, 255, 255, 0.08) 0 1px,
            rgba(255, 255, 255, 0) 1px 200px);
} */

@media (max-width: 700px) {
    body::before {
        display: none;
    }
}

/* щоб контент був над сіткою */
.site-header,
.hero,
.content,
.site-footer {
    position: relative;
    z-index: 1;
}

/* ===============================
   2) Контейнер
   =============================== */
.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===============================
   3) Хедер / Навігація
   =============================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, #504f4f, #555454);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(120%) blur(6px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.brand__logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.brand__name {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .3px;
    text-decoration: none;
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
    border: 1px solid transparent;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.brand__name::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(120% 140% at 20% 20%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 55%),
        radial-gradient(120% 140% at 80% 80%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 60%);
    transition: opacity .25s ease;
}

.brand:hover,
.brand:focus-visible {
    text-decoration: none;
}

.brand:hover .brand__name,
.brand:focus-visible .brand__name {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand:hover .brand__name::after,
.brand:focus-visible .brand__name::after {
    opacity: 1;
}

.site-nav {
    display: flex;
}

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

.menu__item {
    position: relative;
}

.menu__link,
.menu__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
    font-family: sans-serif;
}

.menu__link:hover,
.menu__button:hover {
    background: #2a2a2a;
}

.menu__link.is-active {
    border-color: #3a3a3a;
    background: #232323;
}

/* dropdown */
.menu__item--has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #1f1f1f;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    margin-top: 8px;
    display: none;
}

.menu__item--has-dropdown[aria-expanded="true"] .dropdown,
.menu__item--has-dropdown .menu__button[aria-expanded="true"]+.dropdown {
    display: block;
}

.dropdown__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink);
}

.dropdown__link:hover {
    background: #262626;
}

/* бургер — спершу схований на десктопі */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    background-image: url("../assets/img/burger.svg");
    background-size: 26px 26px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

/* ===============================
   4) Hero
   =============================== */
.hero {
    padding: 48px 0 8px;
    border-bottom: 1px solid var(--border);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero__media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    box-shadow: var(--shadow);
}

.hero__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* мобільний hero без обрізання */
@media (max-width: 700px) {
    .hero__media {
        border-radius: 12px;
        /* можна лишити, якщо хочеш */
    }

    .hero__media img {
        aspect-ratio: auto;
        /* не навʼязуємо 16:9 */
        height: auto;
        /* під висоту зображення */
        object-fit: contain;
        /* нічого не ріже */
    }
        .hero .container {
            padding-left: 0;
            padding-right: 0;
        }
}

.hero__title-main {
    font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    margin: 0;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
}

.hero__subtitle-main {
    font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    margin: 6px 0 0;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-align: center;
}

.hero__title {
    font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: center;
    margin: 20px 0 0;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.05em;
}

.hero__subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: .6px;
    display: inline-block;
    border-bottom: 3px solid #a8a8a8;
    padding-bottom: 4px;
    margin-top: 6px;
}

/* ===============================
   5) Іконки під геро
   =============================== */
.feature-icons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.feature-icons__item {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.feature-icons__item img {
    position: relative;
    width: 96px;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    transition: filter .25s ease;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.feature-icons__item:hover img,
.feature-icons__item:focus-visible img {
    filter:
        drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18))
        drop-shadow(0 0 18px rgba(255, 255, 255, 0.45))
        drop-shadow(0 0 34px rgba(255, 255, 255, 0.22));
}

.feature-icons__item span {
    font-weight: 600;
}

/* ===============================
   6) Відео-тизер
   =============================== */
.video-teaser {
    margin: 18px 0 8px;
}

.video-teaser__card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #d9d9d9;
    border: 1px solid var(--border);
    border-radius: 128px;
    padding: 12px;
    overflow: hidden;
    flex-wrap: wrap;
    position: relative;
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.video-teaser__card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    background:
        radial-gradient(120% 140% at 20% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%),
        radial-gradient(120% 140% at 85% 80%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 60%);
    transition: opacity .25s ease;
}

.video-teaser__card > * {
    position: relative;
    z-index: 1;
}

.video-teaser__card:hover,
.video-teaser__card:focus-visible {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.video-teaser__card:hover::after,
.video-teaser__card:focus-visible::after {
    opacity: 1;
}

.video-teaser__thumb {
    position: relative;
    width: 180px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.video-teaser__thumb img {
    width: 100%;
    height: auto;
}

.video-teaser__play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    border: 1px solid #4b4b4b;
    font-weight: 700;
    color: #fff;
}

.video-teaser__text {
    color: #2c9435;
    font-weight: 600;
    flex: 1 1 220px;
    min-width: 0;
    word-break: break-word;
}

/* ===============================
   7) Контентні секції
   =============================== */
.content {
    padding: 42px 0 16px;
}

.content .content-section {
    border-bottom: 5px solid #a8a8a8;
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.content-section {
    display: grid;
    grid-template-columns: min(980px, 100%);
    justify-content: center;
    row-gap: 18px;
    margin: 28px auto 56px;
}

.content-section__media {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.content-section__media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #111;
}

.content-section__head,
.content-section__body {
    width: min(980px, 100%);
    margin: 0 auto;
}

.content-section__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #232323;
    border: 1px solid #3a3a3a;
    font-weight: 700;
}

.content-section__actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.content-section__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.content-section__icon-link {
    margin-left: auto;
    display: inline-flex;
}

.content-section__icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-left: auto;
}


/* списки */
.list {
    margin: 8px 0 16px;
    padding-left: 1.2rem;
}

.list li {
    margin: 4px 0;
}

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

.list a:hover {
    text-decoration: none;
}

/* ===============================
   8) Картки “Module & Beispiele”
   =============================== */
.modules {
    padding: 48px 0;
}

.section-title {
    font-size: 28px;
    margin: 0 0 8px;
}

.section-lead {
    color: var(--muted);
    margin: 0 0 20px;
}

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

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card__media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card__body {
    padding: 14px;
}

.card__actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    padding: 0 14px 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.btn:hover {
    background: #228f2b;
    opacity: 40%;
}

.btn--accent {
    background: var(--accent);
    border-color: transparent;
    color: #0b0b0b;
}

.btn--accent:hover {
    filter: brightness(1.05);
}

/* ===============================
   9) Футер
   =============================== */
.site-footer {
    background: #3f3f3f;
    border-top: 1px solid #2f2f2f;
    margin-top: 48px;
    color: #fff;
}

.site-footer .footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: flex;
    gap: 32px;
    align-items: flex-end;
}

.footer__col {
    flex: 1 1 0;
}

.footer-brand {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-sub {
    letter-spacing: .02em;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 14px;
    opacity: .9;
}

.footer-logo_icon {
    width: 200px;
    height: 60px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .05);
    text-align: center;
    padding: 14px 24px 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
}

/* ===============================
   10) Адаптив
   =============================== */
@media (max-width: 1080px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .content-section {
        margin: 22px auto 42px;
    }

    .content-section__media {
        border-radius: 14px;
    }
}

@media (max-width: 860px) {

    /* показуємо бургер, ховаємо меню */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        background: #505050;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        padding: 12px 0;
        z-index: 90;
    }

    /* коли хедер має клас .is-open – меню видно */
    .site-header.is-open .site-nav {
        display: block;
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 0 16px;
    }

    .menu__link,
    .menu__button {
        width: 100%;
        justify-content: flex-start;
        background: rgba(0, 0, 0, .08);
        border-radius: 8px;
    }

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

    .site-footer .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .video-teaser__card {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border-radius: 40px;
    }

    .video-teaser__thumb {
        width: 80px;
        min-width: 80px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        overflow: hidden;
    }

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

    .video-teaser__play {
        display: none;
    }

    .video-teaser__text {
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-width: 560px) {
    .feature-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .content-section__footer {
        flex-wrap: wrap;
    }
}

/* базово — як у всього контенту */
.site-footer .footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: flex;
    gap: 32px;
    align-items: flex-end;
}

/* ноут / десктоп — зсуваємо праворуч */
@media (min-width: 1200px) {
    .site-footer .footer-grid {
        padding-left: 150px;
        padding-right: 24px;
    }
}

/* середні екрани — трохи зсуваємо, але не так сильно */
@media (min-width: 992px) and (max-width: 1199px) {
    .site-footer .footer-grid {
        padding-left: 80px;
        padding-right: 24px;
    }
}

/* мобільні — колонки одна під одною, падинг стандартний */
@media (max-width: 860px) {
    .site-footer .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* floating nav */
.section-nav {
    position: fixed;
    top: 96px;
    /* under header */
    right: 24px;
    z-index: 999;
    font-size: 14px;
}

.section-nav__toggle {
    background: #3ba162;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

.section-nav__panel {
    margin-top: 8px;
    background: #444;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
    min-width: 220px;
    max-height: 60vh;
    overflow-y: auto;
}

.section-nav__panel ul {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.section-nav__panel li a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.section-nav__panel li a:hover {
    background: rgba(255, 255, 255, .05);
}

.section-nav__close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

/* mobile: down center */
@media (max-width: 720px) {
    .section-nav {
        top: auto;
        bottom: 16px;
        right: 50%;
        transform: translateX(50%);
    }

    .section-nav__panel {
        min-width: 240px;
    }
}

/* Arrows */
.section-arrows {
    position: fixed;
    right: 24px;
    top: 40%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.section-arrow {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(63, 63, 63, .9);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease;
    backdrop-filter: blur(4px);
}

.section-arrow:hover {
    transform: translateY(-1px);
}



@media (max-width: 720px) {
    .section-arrows {
        bottom: 68px;
    }

    .section-nav {
        bottom: 16px;
    }
}


.menu__item--has-dropdown {
    position: relative;
}

.menu__item--has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 8px;
    display: none;
    z-index: 200;
}



.klt-intro {
    margin: 28px auto 20px;
    padding: clamp(18px, 3vw, 36px) clamp(20px, 4vw, 48px);
    background: #e4e5e4;
    /* світло-сірий фон */
    color: #2f7a3f;
    /* зелений текст */
    text-align: center;
    border-radius: 42px;
    /* великі закруглення */
    display: block;
    text-decoration: none;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.klt-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    background:
        radial-gradient(120% 140% at 20% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%),
        radial-gradient(120% 140% at 85% 80%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 60%);
    transition: opacity .25s ease;
}

.klt-intro > * {
    position: relative;
    z-index: 1;
}

.klt-intro:hover,
.klt-intro:focus-visible {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.klt-intro:hover::after,
.klt-intro:focus-visible::after {
    opacity: 1;
}

.klt-intro p {
    margin: 0 0 14px 0;
    font-size: clamp(14px, 2.4vw, 20px);
    line-height: 1.35;
}

.klt-intro p:last-child {
    margin-bottom: 0;
}

.klt-intro strong {
    font-weight: 800;
}

.video-teaser,
.klt-intro {
    max-width: var(--teaser-max);
    width: min(100%, var(--teaser-max));
    margin-left: auto;
    margin-right: auto;
}

/* 3) (опц.) щоб картка не звужувалась всередині */
.video-teaser .video-teaser__card {
    width: 100%;
}


/* .klt-intro {
    max-width: unset;
} */



.footer__col--mid>a {
    display: block;
    margin-bottom: 16px;
    /* трохи відступу між рядками */
}
