* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333 !important;
    opacity: 1 !important;
    background-color: #f9f9f9;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

.top-bar {
    background-color: #e8c8b1;
    padding: 1px 20px;
    text-align: center;
    font-size: 0.9em;
    line-height: 1.2;
    color: #333 !important;
}

.top-bar .email {
    margin-left: 20px;
}

.top-bar .email a {
    color: #333;
    text-decoration: none;
}

header {
    background-color: white;
    padding: 10px 10%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    position: relative;
}

nav li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #e0e0e0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -75px;
    width: 220px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px;
    margin: 0;
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin-bottom: 10px;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    display: block;
    padding: 5px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

/* Hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.banner {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.banner img {
    width: 100%;
    height: 325px;
    display: block;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translateY(-50%);
    color: white !important;
    text-align: left;
    z-index: 1;
    max-width: 800px;
}

.banner-text h1 {
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #5b4840;
}

/* Styly pro sekci treatments */
.treatments {
    padding: 50px 10%;
    background-color: #f8f8f8 !important;
    max-width: 1200px;
    margin: 0 auto;
}

.treatments-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.treatment-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 1 !important;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.treatment-section.row {
    flex-direction: row;
    align-items: center; /* Zarovnání na střed pro BB Eyes a obrázek */
    gap: 40px;
}

.treatment-section.row-reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.treatment-section.row .treatment-image {
    flex: 0 0 40%;
    width: auto;
    max-height: 400px;
    height: auto;
    align-self: center; /* Zarovnání na střed */
}

.treatment-section h2 {
    font-size: 2em;
    color: #5b4840 !important;
    margin: 0;
    width: 100%;
}

.treatment-section h3 {
    color: #5b4840 !important;
    margin-bottom: 10px;
}

.treatment-section p,
.treatment-section li {
    color: #333 !important;
    font-size: 1em;
    line-height: 1.5;
}

.treatment-section ul {
    list-style-position: inside;
    padding-left: 20px;
    margin: 0;
}

.treatment-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
}

/* Styly pro grouped-section (skupiny textů) */
.grouped-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 1 !important;
    animation-delay: 0.2s;
}

.text-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.text-group-item {
    background: #e8c8b1 !important;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.text-group-item.lifting-eyelashes {
    grid-column: span 2; /* Lifting řas zabírá 2 sloupce na desktopu */
}

.text-group-item.eyebrow-adjustment {
    grid-column: span 2; /* Úprava obočí zabírá 2 sloupce na desktopu */
}

.text-group-item h2 {
    font-size: 1.8em;
    color: #5b4840 !important;
    margin: 0 0 15px 0;
}

.text-group-item p {
    color: #333 !important;
    font-size: 1em;
    line-height: 1.5;
    margin: 0;
}

.grouped-image {
    width: 50%;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
}

/* Speciální grid pro oči (pokud budeš chtít) */
.eyes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 20px;
}

.eyes-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.eyes-item img {
    max-height: 200px;
}

.contacts {
    padding: 50px;
    background-color: #f8f8f8 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contacts-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.contacts-info {
    flex: 1;
    max-width: 400px;
    padding: 20px;
    padding-bottom: 95px;
    background: #e8c8b1 !important;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contacts-info h2 {
    margin-bottom: 15px;
    color: #5b4840 !important;
}

.contacts-info p,
.contacts-info ul {
    margin: 10px 0;
    color: #5b4840 !important;
    font-size: 0.9em;
}

.contacts-info a {
    color: #5b4840;
    text-decoration: none;
}

.contacts-info a:hover {
    text-decoration: underline;
}

.contacts-map {
    flex: 2;
    padding: 20px;
    background: #e8c8b1 !important;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contacts-map h3 {
    margin-bottom: 15px;
    color: #5b4840 !important;
}

footer {
    background-color: #e8c8b1;
    padding: 1px;
    text-align: center;
    color: #5b4840 !important;
    border-top: 1px solid #e0e0e0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MEDIA QUERIES – ZMĚNY JEN PRO MOBIL/TABLET */
@media (max-width: 768px) {
    .top-bar {
        font-size: 0.8em;
        padding: 5px 10px;
    }

    .top-bar .email {
        margin-left: 10px;
        display: block;
        margin-top: 5px;
    }

    header {
        padding: 10px 15px;
    }

    header .logo img {
        height: 40px;
    }

    /* Hamburger menu */
    .hamburger {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .dropdown:hover .dropdown-menu {
        display: none; /* Vypne hover efekt na mobilu */
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #f9f9f9;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .banner-text {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        max-width: 90%;
        padding: 0 20px;
    }

    .banner-text h1 {
        font-size: 2em;
    }

    .treatments {
        padding: 30px 10px;
    }

    .treatment-section {
        flex-direction: column !important;
        gap: 20px;
    }

    .treatment-section.row {
        flex-direction: column !important; /* Na mobilu pod sebe */
    }

    .text-content {
        gap: 10px;
    }

    .treatment-section.row .treatment-image {
        flex: none;
        max-width: 100%;
        max-height: none;
    }

    .treatment-section h2 {
        font-size: 1.5em;
    }

    .text-group-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .text-group-item.lifting-eyelashes,
    .text-group-item.eyebrow-adjustment {
        grid-column: auto; /* Na mobilu normální šířka */
    }

    .grouped-image {
        width: 100%;
        max-width: 100%;
    }

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

    .contacts {
        padding: 30px 10px;
    }

    .contacts-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .contacts-info,
    .contacts-map {
        max-width: 100%;
        flex: none;
        padding-bottom: 20px;
    }

    .contacts-map iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .banner-text h1 {
        font-size: 1.5em;
    }

    .treatment-section h2 {
        font-size: 1.3em;
    }
}
