:root {
    --primary-orange: #f4931f;
    --dark-wine: #5c0f11;
    --text-light: #ffffff;
    --text-dark: #2c2c2c;
    --bg-light: #fdfbf7;
    --surface-light: rgba(255, 255, 255, 0.95);
    --surface-dark: rgba(255, 255, 255, 0.08);
    --surface-dark-hover: rgba(255, 255, 255, 0.15);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
    --shadow-strong: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.25s ease, border-color 0.25s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
}

.hero,
.content-wrapper {
    position: relative;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),
        url("../images/optimized/hero-bg.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
}

.hero-container {
    max-width: 800px;
    z-index: 1;
}

.logo-img {
    width: min(100%, 280px);
    height: auto;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    animation: fade-in 1.2s ease-out;
}

.slogan,
.section-subtitle,
.page-title {
    font-family: Georgia, "Times New Roman", serif;
}

.slogan {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
    background-color: #20ba59;
}

.cta-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-orange);
    box-shadow: none;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
    background-color: var(--primary-orange);
    color: var(--text-light);
    box-shadow: 0 8px 24px rgba(244, 147, 31, 0.35);
}

.footer-contacts {
    background-color: var(--surface-light);
    padding: 2.5rem 1rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    border-top: 4px solid var(--primary-orange);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--dark-wine);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover,
.contact-item:focus-visible {
    color: var(--primary-orange);
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.2rem;
    min-width: 1.4rem;
}

.content-wrapper {
    min-height: 100vh;
    padding: 7rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-section {
    text-align: center;
    max-width: 700px;
    margin-bottom: 4rem;
}

.logo-small {
    width: min(100%, 140px);
    height: auto;
    margin: 0 auto 1rem;
}

.page-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.slogan-divider {
    color: var(--primary-orange);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-light);
    font-size: clamp(1.6rem, 3vw, 1.9rem);
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

.section-subtitle .icon {
    margin-right: 0.625rem;
}

.brands-container,
.gallery-container {
    max-width: 1100px;
    width: 100%;
    display: grid;
    gap: 1.5rem;
}

.brands-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 5rem;
}

.brand-card {
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.brand-card span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.brand-card:hover,
.brand-card:focus-within {
    background: var(--surface-dark-hover);
    border-color: var(--primary-orange);
    transform: translateY(-4px);
}

.gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-strong);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
    transform: scale(1.05);
}

.gallery-item:hover,
.gallery-item:focus-within {
    border-color: var(--primary-orange);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .navbar {
        justify-content: center;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .content-wrapper {
        padding-inline: 1rem;
    }

    .brands-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-contacts {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
