/* ==========================================================
   RESET
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:"DM Sans",sans-serif;
    font-size:18px;
    color:#222;
    background:#fafafa;
    line-height:1.7;

}

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

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

.container{

    width:min(92%,1320px);
    margin:auto;

}

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

.site-header{

    position:fixed;

    top:0;
    left:0;
    right:0;

    z-index:9999;

    height:88px;

    transition:.35s;

    backdrop-filter:blur(20px);

    background:rgba(255,255,255,.82);

    border-bottom:1px solid rgba(0,0,0,.05);

}

.site-header .container{

    height:88px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo img{

    height:82px;
    width:auto;

}

/* ==========================================================
   MENU
========================================================== */

.main-nav{

    display:flex;
    align-items:center;
    gap:42px;

}

.main-nav a{

    font-size:17px;
    font-weight:600;

    color:#444;

    transition:.25s;

    position:relative;

}

.main-nav a:hover{

    color:#81B29A;

}

.main-nav a.active{

    color:#81B29A;

}

.main-nav a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-10px;

    width:0;
    height:2px;

    background:#81B29A;

    transition:.3s;

}

.main-nav a:hover::after,
.main-nav a.active::after{

    width:100%;

}

/* ==========================================================
   BUTTON
========================================================== */

.btn-primary{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    padding:16px 34px;

    border-radius:999px;

    background:#81B29A;

    color:white;

    font-weight:700;

    transition:.3s;

}

.btn-primary:hover{

    background:#3D405B;

    transform:translateY(-2px);

}

.btn-secondary{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    padding:16px 34px;

    border-radius:999px;

    border:1px solid #ddd;

    background:white;

    font-weight:700;

    transition:.3s;

}

.btn-secondary:hover{

    background:#3D405B;
    color:white;

}

/* ==========================================================
   MOBILE
========================================================== */

.mobile-toggle{

    display:none;

    width:42px;
    height:42px;

    border:none;
    background:none;

    cursor:pointer;

}

.mobile-toggle span{

    display:block;

    height:2px;

    margin:7px 0;

    background:#222;

}

.mobile-menu{

    display:none;

}

/* ==========================================================
   CTA
========================================================== */

.footer-cta{

    background:white;

    padding:120px 0;

    text-align:center;

}

.footer-cta .subtitle{

    display:block;

    margin-bottom:18px;

    color:#81B29A;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:2px;

    font-size:14px;

}

.footer-cta h2{

    font-size:64px;

    line-height:1.1;

    color:#3D405B;

    margin-bottom:30px;

}

.footer-cta p{

    max-width:760px;

    margin:auto;

    font-size:22px;

    color:#666;

}

.cta-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    margin-top:55px;

}

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

.site-footer{

    background:white;

    border-top:1px solid #ececec;

}

.footer-grid{

    padding:90px 0;

    display:grid;

    grid-template-columns:2fr 1fr 1fr 1fr;

    gap:70px;

}

.footer-logo img{

    height:70px;
    width:auto;

}

.footer-slogan{

    margin:30px 0 18px;

    font-size:26px;

    font-weight:700;

    color:#3D405B;

}

.site-footer h3{

    font-size:18px;

    margin-bottom:24px;

    color:#3D405B;

}

.site-footer a{

    display:block;

    margin-bottom:14px;

    color:#666;

    transition:.25s;

}

.site-footer a:hover{

    color:#81B29A;

}

.site-footer p{

    color:#666;

}

.footer-bottom{

    border-top:1px solid #ececec;

}

.footer-bottom .container{

    height:80px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    color:#999;

    font-size:15px;

}

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

@media(max-width:1000px){

.main-nav{

    display:none;

}

.mobile-toggle{

    display:block;

}

.footer-grid{

    grid-template-columns:1fr 1fr;

}

.footer-cta h2{

    font-size:46px;

}

}

@media(max-width:700px){

.footer-grid{

    grid-template-columns:1fr;

    gap:50px;

}

.footer-bottom .container{

    flex-direction:column;

    justify-content:center;

    gap:12px;

}

.footer-cta{

    padding:90px 0;

}

.footer-cta h2{

    font-size:34px;

}

.footer-cta p{

    font-size:18px;

}

.cta-buttons{

    flex-direction:column;

}

.btn-primary,
.btn-secondary{

    width:100%;

}

}
/* ==========================================================
   HOME
========================================================== */

/* ==========================================================
   HERO
========================================================== */

.hero{

    position:relative;

    height:100vh;

    overflow:hidden;

}

.hero-image{

    position:absolute;
    inset:0;

}

.hero-image img{

    width:100%;
    height:100%;
    object-fit:cover;

}

/* jemný přechod dole kvůli tlačítkům */

.hero-overlay{

    position:absolute;
    inset:0;

    background:linear-gradient(
        to top,
        rgba(255,255,255,.18) 0%,
        rgba(255,255,255,0) 35%
    );

}

.hero-content{

    position:absolute;

    left:50%;
    bottom:80px;

    transform:translateX(-50%);

    width:min(92%,1320px);

    z-index:10;

}

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

}

/* obě tlačítka stejně velká */

.hero-buttons a{

    min-width:250px;

}

/* sekundární tlačítko */

.hero-buttons .btn-secondary{

    background:rgba(255,255,255,.95);

    color:#3D405B;

    border:none;

}

.hero-buttons .btn-secondary:hover{

    background:#ffffff;

    transform:translateY(-2px);

}

/* hlavní tlačítko */

.hero-buttons .btn-primary{

    background:#81B29A;

}

.hero-buttons .btn-primary:hover{

    background:#3D405B;

}

/* šipka */

.scroll-down{

    position:absolute;

    left:50%;
    bottom:24px;

    transform:translateX(-50%);

    color:#fff;

    font-size:36px;

    opacity:.9;

    animation:scrollArrow 2s infinite;

}

/* ==========================================================
   INTRO
========================================================== */

.intro{

    background:#fff;

    padding:120px 0;

}

.intro .container{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:90px;

    align-items:center;

}

/* ==========================================================
   FEATURE
========================================================== */

.feature{

    padding:120px 0;

    background:#f7fbf9;

}

.feature:nth-child(even){

    background:#fff;

}

.feature .container{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:90px;

    align-items:center;

}

.reverse{

    direction:rtl;

}

.reverse>*{

    direction:ltr;

}

/* ==========================================================
   TEXT
========================================================== */

.section-subtitle{

    display:inline-block;

    margin-bottom:18px;

    color:#81B29A;

    font-size:14px;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

}

.text{

    max-width:560px;

}

.text h2{

    font-size:48px;

    line-height:1.15;

    color:#3D405B;

    margin-bottom:30px;

}

.text p{

    margin-bottom:20px;

    color:#666;

    font-size:20px;

    line-height:1.9;

}

/* ==========================================================
   FOTO
========================================================== */

.photo{

    position:relative;

}

.photo img{

    width:100%;

    border-radius:22px;

    box-shadow:0 20px 60px rgba(0,0,0,.12);

    transition:.35s;

}

.photo:hover img{

    transform:translateY(-6px);

}

/* ==========================================================
   ANIMACE
========================================================== */

@keyframes scrollArrow{

    0%{

        transform:translate(-50%,0);

        opacity:0;

    }

    40%{

        opacity:1;

    }

    100%{

        transform:translate(-50%,14px);

        opacity:0;

    }

}

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

@media(max-width:1000px){

    .intro .container,
    .feature .container{

        grid-template-columns:1fr;

    }

    .reverse{

        direction:ltr;

    }

    .photo{

        order:1;

    }

    .text{

        order:2;

        max-width:none;

    }

}

@media(max-width:700px){

    .hero{

        height:90vh;

    }

    .hero-content{

        bottom:55px;

    }

    .hero-buttons{

        flex-direction:column;

        align-items:center;

    }

    .hero-buttons a{

        width:100%;
        max-width:320px;

    }

    .text h2{

        font-size:36px;

    }

    .text p{

        font-size:18px;

    }

}

/* ==========================================================
   GALERIE
========================================================== */

.gallery{

    padding:120px 0;

    background:#fff;

}

.gallery .container{

    max-width:1400px;

}

.gallery h2{

    text-align:center;

    margin-bottom:20px;

}

.gallery .section-subtitle{

    display:block;

    text-align:center;

}

.gallery-text{

    max-width:720px;

    margin:0 auto 60px;

    text-align:center;

    color:#666;

    font-size:20px;

    line-height:1.8;

}

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:18px;

}

.gallery-grid a{

    display:block;

    overflow:hidden;

    border-radius:20px;

}

.gallery-grid img{

    width:100%;

    aspect-ratio:1;

    object-fit:cover;

    transition:.45s;

}

.gallery-grid a:hover img{

    transform:scale(1.06);

}

.gallery-grid a{

    box-shadow:0 12px 35px rgba(0,0,0,.08);

    transition:.35s;

}

.gallery-grid a:hover{

    transform:translateY(-6px);

    box-shadow:0 24px 60px rgba(0,0,0,.16);

}

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

@media(max-width:1100px){

    .gallery-grid{

        grid-template-columns:repeat(3,1fr);

    }

}

@media(max-width:800px){

    .gallery-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:600px){

    .gallery-grid{

        grid-template-columns:1fr;

    }

}