:root {
    --blue: #14112B;
    --orange: #F5A623;
    --light: #f4f5f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


/* ===== ГЛОБАЛ ===== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ===== КОНТЕЙНЕР ===== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* ================= HEADER ================= */

header {
    background: var(--blue);
    padding: 18px 0;
    position: relative;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}


/* ===== БУРГЕР ===== */

.burger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 2000;
}


/* ===== NAV ===== */

nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-item {
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: 0.3s;
}

nav a:hover {
    color: var(--orange);
}


/* ===== DROPDOWN ===== */

.dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 200px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--blue);
}

.dropdown a:hover {
    background: var(--light);
}


/* ===== LANGUAGE ===== */

.lang-dropdown {
    position: relative;
}

.lang-current {
    cursor: pointer;
    color: white;
}

.lang-menu {
    position: absolute;
    top: 35px;
    right: 0;
    background: white;
    border-radius: 10px;
    display: none;
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* ================= HERO ================= */

.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    background: url("images/hero.png") center/cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 17, 43, 0.6);
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 25px;
}

.hero p {
    margin-bottom: 35px;
    color: #ddd;
}

.btn {
    background: var(--orange);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}


/* ================= SERVICES ================= */

.services {
    padding: 100px 0;
    background: var(--light);
}

.cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 280px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 32px;
}


/* ================= CASES ================= */

.cases {
    padding: 100px 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case {
    position: relative;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.case img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.case::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
}

.case-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    z-index: 2;
}

.case:hover img {
    transform: scale(1.07);
}


/* ================= WHY (🔥 ИСПРАВЛЕН) ================= */

.why {
    padding: 100px 0;
    background: var(--blue);
    color: white;
}

.why h2 {
    margin-bottom: 60px;
}

.why-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.why-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    /* ВАЖНО */
    align-items: center;
    /* ВАЖНО */
    gap: 20px;
    /* ВАЖНО */
    flex: 1 1 300px;
    max-width: 350px;
}

.why-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon img {
    width: 32px;
}

.why-card h3 {
    font-size: 16px;
}


/* ================= CTA ================= */

.cta {
    padding: 100px 0;
    background: linear-gradient(90deg, #14112B, #2a1f5c);
    color: white;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}


/* ================= FOOTER ================= */

footer {
    background: var(--blue);
    color: white;
    text-align: center;
    padding: 25px 0;
}


/* ================= МОДАЛКА ================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 420px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.socials {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.social-item {
    text-decoration: none;
    color: black;
    text-align: center;
    transition: 0.3s;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #ffa726, #fb8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.icon-circle img {
    width: 30px;
}

.social-item:hover {
    transform: scale(1.1);
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .burger {
        display: block;
    }
    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--blue);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }
    nav.active {
        display: flex;
    }
    .cards {
        flex-direction: column;
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
}