/* === Базові стилі === */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    background: #181a1b;
    color: #23272b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

*, *::before, *::after { box-sizing: inherit; }

a {
    color: #ffb300;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: #ffd54f; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    color: #ffb300;
    margin-top: 0;
}

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

.main-content { flex: 1 0 auto; margin: 2rem; }
.top-padding { padding-top: 7rem; }

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .main-content { margin: 0.5rem; }
}

/* === FLASH MESSAGES MODERN DESIGN === */
.flashes {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 90vw;
    min-width: 220px;
    text-align: center;
    margin: 0;
    pointer-events: none;
}
.flash {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    padding: 1rem 1.7rem;
    border-radius: 12px;
    font-size: 1.08rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: #fff;
    border-left: 6px solid #ff9800;
    color: #222;
    pointer-events: auto;
    animation: fadein 0.5s;
    transition: opacity 0.5s;
    position: relative;
}
.flash-success {
    border-left-color: #22c55e;
    background: linear-gradient(90deg, #e6ffed 80%, #fff 100%);
    color: #178a3a;
}
.flash-danger, .flash-error {
    border-left-color: #ef4444;
    background: linear-gradient(90deg, #fff0f0 80%, #fff 100%);
    color: #b91c1c;
}
.flash-info {
    border-left-color: #3b82f6;
    background: linear-gradient(90deg, #e0f2fe 80%, #fff 100%);
    color: #1e40af;
}
.flash::before {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5em;
    background-size: contain;
    background-repeat: no-repeat;
}
.flash-success::before {
    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%2322c55e' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.flash-danger::before, .flash-error::before {
    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23ef4444' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E");
}
.flash-info::before {
    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%233b82f6' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
}
@keyframes fadein {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #ffb300;
}

@media (max-width: 700px) {
    .lightbox-close {
        top: 12px;
        right: 18px;
        font-size: 2rem;
    }
}

/* === Адаптивність HERO, CONTACTS, NEWS, PROMOTIONS, SERVICES, LOGIN === */
/* ...залиште ваші секції hero, contacts, news, promotions, services, login як є, вони сучасні й оптимальні... */

/* === Додатково: видалено дублікати, зайві медіа-запити, зайві коментарі === */