:root {
    --red: #b72c36;
    --dark-red: #90202a;
    --dark: #292c30;
    --gray: #64696f;
    --light: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Manrope', sans-serif;
    color: var(--dark);
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }

.container {
    max-width: 1160px;
    width: 90%;
    margin: auto;
}

section { padding: 90px 0; }

.section-label {
    color: var(--red);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

h2 {
    font-size: clamp(29px, 4vw, 42px);
    line-height: 1.25;
    margin-bottom: 25px;
}

p { color: var(--gray); }

.btn {
    display: inline-block;
    padding: 14px 26px;
    background: var(--red);
    color: white;
    border: 1px solid var(--red);
    font: 700 14px 'Manrope', sans-serif;
    cursor: pointer;
    transition: .25s;
}

.btn:hover { background: var(--dark-red); }

/* nav */

header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    border-bottom: 1px solid #e8e8e8;
}

.navbar {
    height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 190px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    display: block;
}



nav{ 
    display: flex;
     gap: 32px;
 }

nav a {
    font-size: 14px;
    font-weight: 700;
    transition: .2s;
}

nav a:hover{
     color: var(--red); 
    }

.menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

/* hero */

.hero {
    min-height: 640px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #282c30;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position:65% center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(16,19,23,.93) 0%,
        rgba(16,19,23,.68) 52%,
        rgba(16,19,23,.22) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 85px 0;
}

.hero .section-label { color: #f1a1a6; }

.hero h1 {
    color: white;
    font-size: clamp(37px, 5vw, 66px);
    line-height: 1.15;
    letter-spacing: -1.5px;
    max-width: 760px;
    margin: 20px 0;
}

.hero p {
    color: #e6e6e6;
    max-width: 560px;
    font-size: 16px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-outline {
    background: transparent;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
}

/* o firme */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.about-photo { position: relative; }

.about-photo img {
    height: 460px;
    object-fit: cover;
}

.year-box {
    position: absolute;
    right: -12px;
    bottom: -18px;
    background: var(--red);
    color: white;
    padding: 22px 32px;
}

.year-box strong {
    display: block;
    font-size: 32px;
    line-height: 1.3;
}

.year-box span { font-size: 12px; }

.about-text p {
    font-size: 14px;
    margin-bottom: 16px;
}

.highlight {
    padding: 17px 20px;
    border-left: 4px solid var(--red);
    background: var(--light);
    font-weight: 700;
    font-size: 14px;
    margin-top: 24px;
}

/* sluzby */

.services { background: var(--light); }

.section-intro {
    max-width: 700px;
    margin-bottom: 35px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
}

.service-card {
    background: white;
    padding: 28px;
    border: 1px solid #e5e5e5;
    transition: .25s;
}

.service-card:hover {
    border-color: var(--red);
    transform: translateY(-4px);
}

.service-card small {
    color: var(--red);
    font-weight: 800;
}

.service-card h3 {
    margin: 30px 0 12px;
    font-size: 18px;
    line-height: 1.4;
}

.service-card p { font-size: 13px; }

.more-services {
    background: white;
    border-left: 4px solid var(--red);
    padding: 32px;
    margin-top: 30px;
}

.more-services h3 { margin-bottom: 15px; }

.more-services ul {
    padding-left: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 35px;
    color: var(--gray);
    font-size: 14px;
}

.more-services li::marker { color: var(--red); }

/* fotogalerie */


/* =====================================
   GALERIE REPRINSTA
===================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 18px;
}

.gallery-card {
    position: relative;
    display: block;
    width: 100%;
    height: 285px;
    padding: 0;
    border: 0;
    overflow: hidden;
    cursor: pointer;
    background: #292c30;
    font-family: inherit;
    color: white;
    text-align: left;
    isolation: isolate;
}

/* Hlavní zvýrazněný projekt */
.gallery-card.gallery-featured {
    grid-column: span 2;
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.gallery-card:hover img {
    transform: scale(1.055);
}

/* Tmavý přechod přes fotografie */
.gallery-card::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 25%,
        rgba(0,0,0,.25) 55%,
        rgba(0,0,0,.85) 100%
    );
    transition: background .3s ease;
}

.gallery-caption {
    position: absolute;
    z-index: 2;
    bottom: 24px;
    left: 25px;
    right: 20px;
}

.gallery-caption small {
    display: block;
    color: #ffc5ca;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.gallery-caption h3 {
    margin: 8px 0 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
}

.gallery-featured .gallery-caption h3 {
    font-size: clamp(23px, 2.5vw, 30px);
}

/* Malý odkaz v kartě */
.gallery-link {
    display: inline-block;
    margin-top: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    opacity: .82;
    transform: translateY(3px);
    transition:
        opacity .25s ease,
        transform .25s ease;
}

.gallery-card:hover .gallery-link {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}

/* =====================================
   DETAIL PROJEKTU
===================================== */

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(16, 19, 23, .9);
    backdrop-filter: blur(7px);
}

.project-modal.active {
    display: flex;
}

.project-modal-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    max-width: 1250px;
    max-height: calc(100dvh - 60px);
    height: min(72dvh, 700px);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,.3);
    animation: projectAppear .3s ease;
}

@keyframes projectAppear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Levá část – fotografie */

.project-visual {
    position: relative;
    min-width: 0;
    min-height: 0;
    background: #25282c;
    overflow: hidden;
}

.project-visual img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 50px;
    border: none;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 21px;
    cursor: pointer;
    transition: background .2s ease;
}

.project-arrow:hover {
    background: var(--red);
}

.project-arrow:disabled {
    display: none;
}

.project-prev { left: 12px; }
.project-next { right: 12px; }

.project-counter {
    position: absolute;
    bottom: 18px;
    left: 20px;
    padding: 7px 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.project-counter[hidden] {
    display: none;
}

/* Pravá část – informace */

.project-info {
    min-width: 0;
    overflow-y: auto;
    padding: 14px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-category {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.project-info h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(25px, 2.7vw, 35px);
    line-height: 1.25;
}

.project-divider {
    width: 48px;
    height: 3px;
    margin: 26px 0;
    background: var(--red);
}

.project-info p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.85;
}

.project-contact {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 35px;
    text-decoration: none;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    transition: gap .2s ease;
}

.project-contact:hover {
    gap: 22px;
}

.project-close {
    position: absolute;
    z-index: 5;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border: 0;
    background: #f0f0f0;
    color: var(--dark);
    font-size: 29px;
    cursor: pointer;
    transition:
        background .2s ease,
        color .2s ease;
}

.project-close:hover {
    background: var(--red);
    color: white;
}

.project-modal button:focus-visible,
.project-modal a:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

/* =====================================
   RESPONZIVITA GALERIE
===================================== */

@media (max-width: 950px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-card {
        height: 270px;
    }

    .gallery-featured {
        height: 330px;
    }

}

@media (max-width: 700px) {
    .gallery-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .gallery-card.gallery-featured {
        grid-column: auto;
        height: 320px;
    }

    .gallery-card {
        height: 270px;
    }

    .project-modal {
        padding: 12px;
    }

    .project-modal-content {
        max-height: calc(100dvh - 24px);
    }

    .project-info {
        padding: 12px 16px;
    }

    .project-info h2 {
        font-size: 25px;
    }

    .project-divider {
        margin: 20px 0;
    }

    .project-close {
        top: 8px;
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-card img,
    .gallery-link,
    .project-modal-content {
        animation: none;
        transition: none;
    }
}


/* banner */

.banner {
    background: #33373c;
    color: white;
    padding: 65px 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.banner h2 {
    font-size: clamp(25px,3vw,35px);
    max-width: 750px;
    margin: 0;
}

/* kontakt */

.contact { background: #fafafa; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
}

.contact-detail {
    border-bottom: 1px solid #ddd;
    padding: 18px 0;
}

.contact-detail:first-child { margin-top: 25px; }

.contact-detail small {
    display: block;
    color: var(--red);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail strong { font-size: 15px; }

.contact-form {
    background: white;
    padding: 35px;
    border: 1px solid #e6e6e6;
}

.contact-form h3 {
    font-size: 23px;
    margin-bottom: 8px;
}

.contact-form > p {
    font-size: 13px;
    margin-bottom: 23px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    font: 13px 'Manrope', sans-serif;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red);
}

.form-group textarea {
    min-height: 125px;
    resize: vertical;
}

.form-status {
    margin-top: 12px;
    font-size: 12px;
}

/* footer */

footer {
    background: #25282c;
    color: #bcbcbc;
    padding: 30px 0;
    font-size: 12px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

footer a:hover { color: white; }


.form-status {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 700;
}

.form-status.success {
    color: #25834a;
}

.form-status.error {
    color: #b72c36;
}

#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.tel a:hover{
color: var(--red) ;
}



/* =====================================
   O FIRMĚ – VYLEPŠENÁ SEKCE
===================================== */

.about-section {
    background: #fff;
}

.about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 75px;
    align-items: center;
}

/* Fotografie */
.about-photo {
    align-self: stretch;
    min-height: 450px;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.year-box {
    right: -15px;
    bottom: 30px;
    padding: 21px 29px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

/* Text */
.about-text {
    min-width: 0;
}

.about-text h2 {
    max-width: 540px;
    margin-bottom: 24px;
}

.about-text .about-lead {
    font-size: 16px;
    line-height: 1.85;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 20px;
}

.about-text > p:not(.about-lead) {
    font-size: 14px;
    line-height: 1.9;
    color: var(--gray);
    margin-bottom: 28px;
}

/* Odborné vedení */
.about-expert {
    padding: 23px 26px;
    background: var(--light);
    border-left: 3px solid var(--red);
    margin: 30px 0;
}

.about-expert-label {
    display: block;
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 8px;
}

.about-expert h3 {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.about-expert p {
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

/* Přednosti firmy */
.about-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 30px 0;
}

.about-value {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.about-value-number {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    padding-top: 2px;
}

.about-value strong {
    display: block;
    font-size: 13px;
    margin-bottom: 7px;
}

.about-value p {
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

/* Odkaz na kontakt */
.about-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--red);
    transition: gap .2s ease;
}

.about-link:hover {
    gap: 22px;
}

.about-link:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}





/* Lepší rozložení informací */
.about-values {
    gap: 24px 22px;
    margin: 28px 0 22px;
}

.about-value strong {
    font-size: 14px;
}

.about-value p {
    font-size: 13px;
    line-height: 1.6;
}


/* Čtyři informace o firmě */
.about-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 30px;
    margin: 30px 0 25px;
}

.about-value {
    border-top: 1px solid #e5e5e5;
    padding-top: 18px;
}


.contact-detail a:hover {
    color: var(--red);
}

.about-photo {
    align-self: center;
    min-height: 0;
}

.about-photo img {
    display: block;
    width: 100%;
    height: auto;
}


@media (min-width: 951px) {
    .hero {
        min-height: clamp(640px, 42vw, 900px);
    }

    .hero-image {
        object-position: center 55%;
    }

    .hero::after {
        background: linear-gradient(
            90deg,
            rgba(16, 19, 23, .78) 0%,
            rgba(16, 19, 23, .67) 28%,
            rgba(16, 19, 23, .54) 52%,
            rgba(16, 19, 23, .16) 72%,
            rgba(16, 19, 23, .08) 100%
        );
    }
}


/* Mobilní rozložení */
@media (max-width: 700px) {
    .about-values {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}



/* =====================================
   TABLET
===================================== */

@media (max-width: 1000px) {
    .about-grid {
        gap: 35px;
    }

    .about-photo {
        min-height: 460px;
    }

    .about-values {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* =====================================
   MOBIL
===================================== */

@media (max-width: 700px) {
    .about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
    }

    .about-photo {
        align-self: auto;
        min-height: 0;
    }

    .about-photo img {
        height: 330px;
    }

    .year-box {
        right: 0;
        bottom: -18px;
        padding: 15px 20px;
    }

    .year-box strong {
        font-size: 26px;
    }

    .about-text .about-lead {
        font-size: 15px;
    }

    .about-expert {
        padding: 20px;
    }

    .about-values {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}





@media(max-width: 950px) {
    .service-grid { grid-template-columns: repeat(2,1fr); }
    
    .about-grid, .contact-grid { gap: 35px; }
}

@media(max-width: 700px) {
    section { padding: 65px 0; }
.logo img {width: 155px; height: auto;}
    .navbar { height: 72px; }
    
    .menu-btn { display: block; }

    nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        padding: 25px;
        flex-direction: column;
        gap: 22px;
        border-bottom: 1px solid #ddd;
    }

    nav.open { display: flex; }

    .hero { min-height: 550px; }

    .hero::after {
        background: rgba(16,19,23,.73);
    }

    
.about-grid,
.contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
}

.about-photo img {
    height: 330px;
}

.year-box {
    right: 0;
}

   
    .more-services ul { grid-template-columns: 1fr; }

    .banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 23px; }
    
}

@media(max-width: 700px) {
    .service-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1100px) {
    .about-grid {
        max-width: 1320px;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 60px;
    }
}