:root {
    --green: #67b544;
    --dark: #1a1a1a;
    --light: #f7f7f7;
    --radius: 20px;
    --maxw: 1400px;
}

body {
    margin: 0;
    font-family: 'Outfit', Arial, sans-serif;
    color: var(--dark);
}

h1 { font-weight: 700; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
h4 { font-weight: 600; }

header {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 20px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#login-popup {
    border-radius: 27px;
}

header nav a {
    text-decoration: none;
    color: var(--dark);
    margin: 0 15px;
    font-size: 15px;
    font-weight: 500;
}

header .right {
    display: flex;
    align-items: center;
    gap: 20px;
}

header .btn-login,
.btn-login{
    padding: 8px 18px;
    border: 2px solid var(--green);
    border-radius: 30px;
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.hero {
    max-width: var(--maxw);
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.hero .text {
    position: absolute;
    bottom: 14%;
    left: 60px;
    width: 45%;
    color: white;
    max-width: 450px;
}

.hero h1 {
    font-size: 42px;
    margin: 0;
}

.hero p {
    margin-top: 15px;
    line-height: 1.6;
    font-weight: 300;
}

.hero .cta {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    background: white;
    color: var(--dark);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
}

.hero .icon {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero::before {
    content: "";
    background: linear-gradient(to top right, #67b544 0%, rgba(103,181,68,0.2) 50%, transparent 100%);
    position: absolute;
    width: 100%;
    height: 100%;
}

#hero {
    position: relative;
}

.section {
    max-width: var(--maxw);
    margin: auto;
    padding: 0px;
    margin-top: 80px;
    margin-bottom: 80px;
}

.section p {
    font-weight: 300;
    line-height: 1.6;
}

.partners {
    margin-top: 80px;
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1089px;
    margin: auto;
    margin-top: auto;
    margin-top: 80px;
}

.doc-card {
    background-image: url(pic/pdficon.jpg);
    background-repeat: no-repeat;
    background-position: right 10px top 14px;
    background-size: 35px;
}

#partneri img {
    filter: grayscale(1);
    opacity: 1 !important;
    margin: auto;
}

#partneri img:hover {
    filter: grayscale(0);
    opacity: 1 !important;
    margin: auto;
}

.partners img {
    height: 45px;
}

.docs {
    background: var(--light);
    padding: 80px 40px;
}

.docs .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
}

.doc-grid {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.doc-card {
    width: 300px;
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.doc-card p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
}

.doc-card a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--green);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.contacts {
    max-width: var(--maxw);
    padding: 80px 40px;
    margin: 0 auto;
    display: grid;
    align-items: end;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
}

#kontakty h2 {
    margin-bottom: 40px;
}

h2 span {
    color: var(--green);
    clear: both;
    display: block;
}

.contacts .box {
    background: var(--green);
    color: white;
    padding: 40px;
    border-radius: var(--radius);
    max-width: 100%;
    line-height: 1.6;
    font-weight: 400;
}

.contacts img {
    width: 100%;
    border-radius: var(--radius);
}

.textin {
    display: grid;
    grid-template-columns: 4fr 8fr;
    grid-gap: 30px;
}

footer {
    text-align: center;
    padding: 40px;
    color: #555;
    font-weight: 300;
}

@media (max-width: 1200px) {
    .hero .text { width: 55%; }
}

@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .hero img {
        height: 420px;
    }
    .hero .text {
        top: 20%;
        left: 30px;
        width: 80%;
    }
    .contacts {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero .text {
        left: 20px;
        top: 15%;
        width: 85%;
    }
    .partners {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
    .doc-grid {
        justify-content: center;
    }
    .contacts img {
        max-width: 300px;
    }
}
