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

:root {
    --primary-color: #dc3545;
    --primary-hover: #c82333;
    --dark-bg: #05080f;
    --light-bg: #f9f9f9;
    --text-light: #ffffff;
    --text-dark: #333333;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --accent-color: #00f7ff;
    --secondary-accent-color: #ffc107;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--card-bg);
    position: relative;
}

body.modal-open {
    overflow: hidden;
}

section {
    padding: 80px 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

#about .about-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

#about .about-flex .about-image,
#about .about-flex .about-text {
    flex: 1;
    min-width: 300px;
}

#about .about-flex .about-image img {
    width: 100%;
    border-radius: 10px;
}

/* --- ŠTÝLY PRE SLUŽBY --- */
#services {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card,
.service-card-back {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card {
    border-top: 4px solid var(--primary-color);
}

.service-card .icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .icon {
    transform: translateY(-5px) scale(1.1);
    color: var(--text-dark);
}

.service-card-back {
    border-top: 4px solid var(--text-dark);
}

.service-card-back .icon {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

#services .service-card-back h4 {
    color: var(--primary-color);
}

/* --- ŠTÝLY PRE POSTUP --- */
#process {
    background-color: var(--card-bg);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.process-grid .solution-card {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.process-grid .solution-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
}

.process-grid .solution-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.process-grid .step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 20px;
    border: 2px solid var(--primary-color);
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.process-grid .solution-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.process-grid .solution-card > p {
    margin-bottom: 0;
}

.solution-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, margin-top 0.5s ease-out, opacity 0.5s;
    opacity: 0;
}

.solution-card.is-expanded .solution-details {
    max-height: max-content;
    margin-top: 20px;
    opacity: 1;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* --- KONTAKT --- */
#contact {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

#contact .contact-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

#contact .contact-form-container,
#contact .contact-info {
    flex: 1;
    min-width: 300px;
}

#contact h3 {
    color: var(--text-light);
    margin-bottom: 30px;
}

#contact .contact-info h3 {
    margin-bottom: 30px;
}

#contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

#contact a:hover {
    color: var(--text-light);
}

/* --- FLIP KARTY --- */
.flip-card {
    background-color: transparent;
    width: 100%;
    perspective: 1000px;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

#contact .flip-card {
    height: 350px;
}

#services .flip-card {
    height: 320px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    border-radius: 10px;
}

.flip-card-back {
    transform: rotateY(180deg);
    gap: 15px;
}

.flip-card-front h3,
.flip-card-back h4 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.flip-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.3;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

@media (hover: hover) and (pointer: fine) {
    .flip-card:hover .flip-indicator {
        opacity: 0.8;
    }

    #services .flip-card:hover .flip-card-inner,
    #contact .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* --- COMPANY DETAILS --- */
.company-details h3 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 25px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- SITE FOOTER --- */
.site-footer {
    background: #000;
    color: #ccc;
    padding: 56px 0 24px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-footer a:hover {
    color: var(--accent-color);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 35px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer__logo {
    display: block;
    max-width: 170px;
    height: auto;
    margin-bottom: 18px;
}

.site-footer__desc {
    color: #aaa;
    line-height: 1.7;
    max-width: 420px;
    font-size: 1rem;
}

.site-footer__info h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__links li {
    margin-bottom: 12px;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 22px;
    text-align: center;
}

.copyright-year {
    user-select: none;
}

#easter-egg-message {
    color: var(--accent-color);
    margin-top: 10px;
    font-family: monospace;
}

@media (max-width: 900px) {
    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer__desc {
        max-width: 100%;
    }
}