/* 
    Self-hosted fonts 
*/
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter_18pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Parkinsans';
    src: url('/assets/fonts/Parkinsans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Parkinsans';
    src: url('/assets/fonts/Parkinsans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Parkinsans';
    src: url('/assets/fonts/Parkinsans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/*
    DESIGN SYSTEM & VARIABLES
*/
:root {
    /* Colors */
    --color-primary: #060061;
    /* --color-tint: #DEE8F1; */
    --color-tint: #D9E5F6;
    --color-text-primary: #161616;
    --color-text-secondary: #464646;
    --color-surface-default: #FCFCFC;
    --color-surface-neutral: #F3F3F3;

    --color-warning-text: #A46002;

    --color-warning-main: #EDE79B;
    --color-warning-bg: #FFFBEA;

    /* Typography */
    --font-heading: 'Parkinsans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Font weight */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    /* Layout */
    --container-max-width: 1280px;

    --border: 2px solid var(--color-surface-neutral);
    --box-shadow: 0 3px 20px rgba(22, 22, 22, 0.05);
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-surface-default);
}

/* 
    RESET & BASE STYLES
*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-secondary);
    background-color: var(--color-surface-default);
    font-size: clamp(16px, 1vw + 12px, 18px);
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform .3s ease, color .3s ease;
}

a:hover,
.dropdown-toggle:hover {
    transform: translateY(-2px);
    color: var(--color-primary);
}

ul {
    list-style: none;
}

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

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

/*
    TYPOGRAPHY
*/
h1,
h3,
h2,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: var(--font-weight-semibold);
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

h2 {
    font-size: clamp(32px, 3vw, 48px);
    font-weight: var(--font-weight-medium);
}

h3 {
    font-size: clamp(20px, 1vw, 24px);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

h4 {
    font-size: clamp(18px, 1vw, 20px);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

/*
    COMPONENTS (Buttons, Badges)
*/
.btn {
    background-color: var(--color-primary);
    border-radius: 90px;
    padding: 12px 32px;
    color: var(--color-tint);
    display: inline-block;
    font-weight: var(--font-weight-semibold);
    transition: transform .3s ease, background-color .3s ease, color .3s ease;
}

.btn:hover {
    background-color: #cee2f4;
    /* Mírně tmavší tint pro hover */
    color: var(--color-primary);
}

.section-subtitle,
.badge {
    background-color: var(--color-primary);
    color: var(--color-tint);
    padding: 4px 16px;
    border-radius: 99px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: clamp(14px, 1vw, 18px);
    width: max-content;
    display: inline-block;
}

/* 
    HEADER & NAVIGATION
*/
header {
    width: 100%;
    position: fixed;
    top: 10px;
    z-index: 99;
}

.header-container {
    position: relative;
    margin: auto;
    background-color: var(--color-surface-default);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 90px;
    color: var(--color-text-primary);
    padding: 12px 20px 12px 24px;
    border: var(--border);
    box-shadow: var(--box-shadow);
    font-family: var(--font-heading);
}

.header-container .logo img {
    height: clamp(20px, 2vw, 32px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    height: auto;
}

.burger {
    display: none;
}

.menu-wrapper {
    position: fixed;
    opacity: 0;
}

/* 
    DROPDOWN MENU (Desktop)
*/

.dropdown {
    position: static;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;

    background-color: var(--color-surface-default);
    padding: 32px;
    box-shadow: var(--box-shadow);
    border: var(--border);
    border-radius: 30px;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown-toggle {
    transition: all .3s ease;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }

    .dropdown:hover .dropdown-toggle i {
        transform: rotate(180deg);
    }
}

.dropdown-main-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.dropdown-main-link strong {
    font-weight: var(--font-weight-semibold);
}

.dropdown-num {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background-color: var(--color-tint);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
}

.dropdown-sub-menu {
    margin-left: 44px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dropdown-sub-menu a {
    color: var(--color-text-primary) !important;
    font-size: 16px;
    font-weight: var(--font-weight-regular);
}

.dropdown-menu a:hover {
    transform: translateX(2px);
}

/* 
    FOOTER
*/
.site-footer {
    background-color: var(--color-tint);
    padding: clamp(32px, 4vw, 48px) 0;
    width: 100%;
    color: var(--color-text-primary);
    border-radius: 30px 30px 0 0;
    font-size: 14px;
}

.site-footer .logo img {
    height: clamp(64px, 11vw, 128px);
}

.site-footer .logo {
    margin-bottom: 20px;
}

.site-footer hr {
    width: 100%;
    max-width: var(--container-max-width);
    border: none;
    border-top: 1px solid rgba(134, 134, 134, 0.219);
    margin: 24px auto;
}

.site-footer .container:nth-child(1) {
    display: grid;
    grid-template-columns: 2fr auto auto auto;
    gap: clamp(36px, 4vw, 80px);
    justify-content: space-between;
}

.site-footer .container h4 {
    font-size: 16px;
}

.footer-about {
    max-width: 600px;
}

.footer-about h5,
.site-footer .container h4 {
    margin-bottom: clamp(16px, 1vw, 18px);
}

.footer-about p {
    color: var(--color-text-secondary);
}

.site-footer .container ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    max-width: var(--container-max-width);
    margin: auto;
}

.footer-credit a {
    color: var(--color-primary);
}

/* 
    Cookie Consent 
*/
#cookie-consent {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 380px;
    width: calc(100% - 48px);
    z-index: 10000;
}

.cookie-card {
    background-color: var(--color-surface-default);
    border: var(--border);
    box-shadow: var(--box-shadow);
    border-radius: 24px;
    padding: clamp(22px, 2vw, 28px);
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cookie-icon {
    font-size: 22px;
}

.cookie-title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    font-size: 17px;
    color: var(--color-primary);
}

.cookie-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-btn-primary,
.cookie-btn-secondary {
    border: none;
    border-radius: 90px;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.cookie-btn-primary {
    background-color: var(--color-primary);
    color: var(--color-tint);
}

.cookie-btn-secondary {
    background-color: var(--color-tint);
    color: var(--color-primary);
}

.cookie-btn-row {
    display: flex;
    gap: 8px;
}

.cookie-btn-row .cookie-btn-secondary {
    flex: 1;
}

.cookie-btn-primary:hover,
.cookie-btn-secondary:hover {
    transform: translateY(-1px);
    opacity: 0.85;
}

/* Settings panel */
.cookie-settings {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cookie-settings.open {
    max-height: 300px;
    margin-bottom: 16px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--color-surface-neutral);
}

.cookie-option-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.cookie-option-text p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.cookie-badge {
    background-color: var(--color-tint);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    padding: 4px 10px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-track {
    position: absolute;
    inset: 0;
    background-color: var(--color-surface-neutral);
    border-radius: 99px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-toggle-track::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background-color: var(--color-surface-default);
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked+.cookie-toggle-track {
    background-color: var(--color-primary);
}

.cookie-toggle input:checked+.cookie-toggle-track::before {
    transform: translateX(18px);
}

.cookie-more-link {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 16px;
    text-decoration: underline;
}

/* 
    MEDIA QUERIES
    Laptops & Small Desktop 
*/

@media (max-width: 1280px) {
    .site-header {
        padding: 0 16px;
    }

    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* 
    Tablets & Navigation Breakpoint
*/

@media (max-width: 1024px) {
    /* 
        Header & Burger 
    */

    .nav-links,
    .header-container .btn {
        display: none;
    }

    .burger {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
    }

    label {
        cursor: pointer;
    }

    .burger-icon {
        width: 100%;
        scale: 1;
        border: 0;
        margin: 0;
    }

    .burger-icon,
    .burger-icon::before,
    .burger-icon::after {
        display: block;
        border-radius: 2px;
        height: 2.5px;
        background: var(--color-text-primary);
    }

    .burger-icon::before,
    .burger-icon::after {
        content: "";
        position: absolute;
        width: 100%;
        transition-duration: 0.15s;
        transition-timing-function: linear;
    }

    .burger-icon::before {
        top: -6px;
        right: 0;
    }

    .burger-icon::after {
        top: 6.5px;
        left: 0;
    }

    .burger input {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        margin: 0;
        cursor: pointer;
        z-index: 10;
    }

    .burger input:checked~.burger-icon {
        background-color: transparent;
    }

    .burger input:checked~.burger-icon::before,
    .burger input:checked~.burger-icon::after {
        width: 30px;
    }

    .burger input:checked~.burger-icon::before {
        transform: rotate(-45deg);
        top: 0px;
    }

    .burger input:checked~.burger-icon::after {
        transform: rotate(45deg);
        top: 0px;
    }

    /* 
        Mobile Menu Wrapper 
    */

    .menu-wrapper {
        top: 75px;
        left: 0;
        width: 100%;
        padding: 0 16px;
        z-index: 999;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transition: top 0.0s;
        height: calc(100dvh - 75px);
        overflow: hidden;
    }

    body.open {
        overflow: hidden;
    }

    body.open .menu-wrapper {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .container,
    .menu {
        max-width: 700px;
    }

    .menu {
        height: auto;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        background-color: var(--color-surface-default);
        border-radius: 24px;
        box-shadow: var(--box-shadow);
        border: var(--border);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 24px;
        margin: auto;
    }

    .menu-links {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        text-align: left;
        width: 100%;
    }

    .menu-links a {
        padding: 16px 0;
        width: 100%;
    }

    .menu .btn {
        width: 100%;
        text-align: center;
    }

    /* 
        Mobile Dropdown 
    */
    .menu .dropdown-toggle {
        width: 100%;
        padding: 0 0 16px 0;
    }

    .menu .dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .menu .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        flex-direction: column;
        gap: 0;
        transform: none;
    }

    .menu .dropdown.active .dropdown-menu {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .menu .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .menu .dropdown-main-link {
        justify-content: flex-start;
        padding: 8px 0;
    }

    .menu .dropdown-sub-menu {
        gap: 0;
        margin-top: 0;
    }

    .menu .dropdown-sub-menu a {
        padding: 8px 0;
    }

    /* 
        Mobile Footer 
    */

    .site-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .site-footer .container:nth-child(1) {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-nav {
        justify-self: start;
    }

    .footer-contact {
        justify-self: center;
    }

    .footer-rights {
        justify-self: end;
    }

    .site-footer hr {
        max-width: 700px;
    }

    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* 
    Small Phones
*/

@media (max-width: 480px) {
    .site-footer .container:nth-child(1) {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-nav,
    .footer-contact,
    .footer-rights {
        justify-self: start;
    }

    .site-footer .container ul {
        gap: 10px;
    }

    #cookie-consent {
        left: 12px;
        bottom: 12px;
        max-width: none;
        width: calc(100% - 24px);
    }
}