@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Staatliches&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #edf2f4;
    font-family: 'Urbanist', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #343434;
    line-height: 1.2;
    overflow-x: hidden;
}

main {
    flex: 1;
    max-width: 1050px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    font-family: 'Fjalla One', sans-serif;
    font-size: 38px;
    color: #007BFF;
    margin-bottom: 40px;
    text-align: center;
}

/* --- DVOUSLOUPCOVÝ GRID (Sjednocení s celým webem) --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

h2 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 26px;
    color: #007BFF;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
    padding-bottom: 10px;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #cfd9de;
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lngswitch img {
    cursor: pointer;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 0;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.nav a:hover {
    color: #3d6aff;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 20px;
    transition: color 180ms ease-in-out, opacity 160ms ease-in-out;
    text-transform: uppercase;
    display: inline-block;
    padding: 12px 14px;
    margin: 0 6px;
    position: relative;
}

.nav a.active,
.nav a[aria-current="page"] {
    color: #007BFF;
}

.nav a.active:after,
.nav a[aria-current="page"]:after {
    width: 100%;
    left: 0;
}

.nav a:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    background: #fff;
    transition: width 0.28s ease 0s, left 0.28s ease 0s;
    width: 0;
}

.nav a:hover:after {
    width: 90%;
    left: 5%;
}

.nav a.active:after,
.nav a[aria-current="page"]:after {
    width: 90%;
    left: 5%;
}

/* --- MENU TOGGLE --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #007BFF;
    border-radius: 2px;
}

/* --- KARTY KONTAKTU & FORMULÁŘE --- */
.contact-info,
.contact-form {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 123, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Okamžitá reakce 0.2s zpět dolů */
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.2s ease, 
                border-color 0.2s ease;
}

/* Okamžitý odskok o 8px nahoru bez lagování */
.contact-info:hover,
.contact-form:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
    transition-delay: 0s !important; /* Vynulování scroll zpoždění */
    cursor: default; /* Klasická šipka místo ručičky */
}

.info-group {
    margin-bottom: 20px;
}
.contact-info .name {
    font-size: 22px;
    color: #1a1a1a;
}
.contact-info .brand {
    font-size: 16px;
    color: #007BFF;
    font-weight: 600;
}

.info-links p {
    font-size: 17px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-links i {
    color: #007BFF;
    font-size: 20px;
    width: 20px;
}
.info-links a {
    color: #343434;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.info-links a:hover {
    color: #3d6aff;
}

.billing-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    border-left: 3px solid #cfd9de;
}
.billing-info .company {
    margin-top: 5px;
    color: #7a7a7a;
}

.pitch {
    font-size: 16px;
    color: #007BFF;
    font-weight: 600;
}

/* --- FORMULÁŘOVÉ INPUTY --- */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin: 5px 0 18px 0;
    border-radius: 8px;
    border: 1px solid #cfd9de;
    font-size: 16px;
    font-family: 'Urbanist', sans-serif;
    background-color: #f8f9fa;
    color: #343434;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3d6aff;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(61, 106, 255, 0.1);
}

/* --- NEPRŮSTŘELNÁ SCROLL ANIMACE --- */
.animate-on-scroll {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.js-hidden {
    opacity: 0 !important;
    transform: translateY(35px) !important;
}
.js-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Domino zpoždění pro karty */
.contact-container > div:nth-child(1) { transition-delay: 0.05s; }
.contact-container > div:nth-child(2) { transition-delay: 0.15s; }

/* --- FOOTER --- */
.footer-basic {
    width: 100%;
    padding: 40px 0;
    background-color: #ffffff;
    color: #4b4c4d;
    flex-shrink: 0;
}

.footer-basic .social {
    text-align: center;
    padding-bottom: 25px;
}

.footer-basic .social > a {
    font-size: 24px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #ccc;
    margin: 0 8px;
    color: inherit;
    opacity: 0.75;
}

.footer-basic .social > a:hover {
    opacity: 0.9;
}

.footer-basic .copyright {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 0;
}

.footer-basic .footer-logo {
    text-align: center;
    margin-top: 10px;
}

.footer-basic .footer-logo img {
    height: 40px;
    display: inline-block;
}

/* --- BUTTONS --- */
.btn1 {
    position: relative;
    display: inline-block;
    width: auto;
    padding: 12px 30px;
    border-radius: 7px;
    border: 1px solid #3d6aff;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    color: #343434;
    overflow: hidden;
    box-shadow: 0 0 0 0 transparent;
    transition: all 0.2s ease-in;
    margin-top: 5px;
    cursor: pointer;
}

.btn1 span {
    position: relative;
    z-index: 1;
    color: #343434;
    transition: color 0.2s ease;
}

.btn1:hover {
    background: rgb(61, 106, 255);
    box-shadow: 0 0 30px 5px rgba(0, 142, 236, 0.815);
    transition: all 0.2s ease-out;
}

.btn1:hover span {
    color: #fff;
}

.btn1:hover::before {
    animation: sh02 0.5s 0s linear;
}

.btn1::before {
    content: '';
    display: block;
    width: 0px;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: #fff;
    box-shadow: 0 0 50px 30px #fff;
    transform: skewX(-20deg);
}

@keyframes sh02 {
    from { opacity: 0; left: 0%; }
    50% { opacity: 1; }
    to { opacity: 0; left: 100%; }
}

.btn1:active {
    box-shadow: 0 0 0 0 transparent;
    transition: box-shadow 0.2s ease-in;
}

.btn2 {
    position: relative;
    display: inline-block;
    text-decoration: none !important;
    color: #fff !important;
    background: linear-gradient(45deg, #0004ff, #6670f8, #00eaff);
    padding: 14px 25px;
    border-radius: 10px;
    font-size: 1.25em;
    cursor: pointer;
    border: none;
}

.btn2 span {
    position: relative;
    z-index: 1;
    color: #fff;
}

.btn2::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: #272727;
    border-radius: 9px;
    transition: 0.5s;
}

.btn2:hover::before {
    opacity: 0.7;
}

.btn2::after {
    content: "";
    position: absolute;
    inset: 0px;
    background: linear-gradient(45deg, #0004ff, #6670f8, #00eaff);
    border-radius: 9px;
    transition: 0.5s;
    opacity: 0;
    filter: blur(20px);
}

.btn2:hover:after {
    opacity: 1;
}

/* ==========================================================================
   ČISTÁ MOBILNÍ RESPONSIVITA (Bez deformací a přetékání)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 74px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        background-color: #cfd9de;
        transition: left 0.3s ease-in-out;
        z-index: 999;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    .nav a {
        padding: 15px 20px;
        font-size: 18px;
        text-transform: none;
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }

    .nav.active {
        left: 0;
    }

    .nav a::after {
        display: none !important;
    }

    .header-right {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 12px;
        padding-top: 8px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    main {
        margin: 20px auto;
    }

    .page-title {
        font-size: 30px;
        margin-bottom: 25px;
    }

    /* Sloučení do jednoho čistého sloupce pod sebou na telefonu */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-info,
    .contact-form {
        padding: 25px 20px;
    }

    .footer-basic {
        padding: 30px 10px;
    }

    .footer-basic .social > a {
        font-size: 20px;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}