/* General styles */
:root {
    --blue-bg: #2e3f7f;
    --text-white: #ffffff;
    --text-dark: #333;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

h2 {
    font-size: 34px;
}

h3 {
    font-size: 26px;
}

h4 {
    font-size: 20px;
}

img {
    border-radius: 8px;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.top-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--blue-bg);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding: 20px 0;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 15px;
}

.nav-links a {
    margin-right: 20px;
    text-decoration: none;
    color: #fff;
}

.nav-contacts {
    display: flex;
    gap: 20px;
    color: #fff;
}

.nav-contacts span, .nav-contacts a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
}

.nav-contacts i {
    margin-right: 8px;
    color: #ff4d4d;
}

.nav-icon {
    flex-shrink: 0;
    color: #ffffff;
}

/* Header & Logo */
.hero {
    background-color: var(--blue-bg);
    color: var(--text-white);
    text-align: center;
    padding-bottom: 50px;
}

.hero-content {
    padding-top: 40px;
}

.logo-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.logo-container img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.description {
    font-size: 20px;
    font-weight: 300;
    max-width: 1000px;
    padding: 0 50px;
    margin: 20px auto;
}

/* About Section */
.about {
    padding: 80px 20px;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text, .about-image {
    flex: 1;
    min-width: 300px;
}

.about-text ul {
    font-size: 30px;
    font-style: italic;
    font-weight: 300;
}

/* Services */
.services {
    background-color: var(--blue-bg);
    color: var(--text-white);
    padding: 80px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-item .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.service-item h3 {
    margin-bottom: 10px;
}

.service-item img {
    width: 80px;
    height: 80px;
}

/* New directions */
.new-directions {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.direction-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.direction-row.reverse {
    flex-direction: row-reverse;
}

.direction-text, .direction-image {
    flex: 1;
}

.direction-text p {
    font-size: 18px;
}

.direction-image img {
    width: 100%;
    max-width: 450px;
    display: block;
    margin: 0 auto;
    border: 1px solid #eee;
}

.styled-list {
    list-style: none;
    padding: 0;
    padding-left: 40px;
}

.styled-list li {
    font-size: 20px;
    font-weight: 300;
}

.styled-list li span {
    font-size: 16px;
}

.styled-list li::before {
    content: "— ";
    color: #2e3f7f;
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: var(--blue-bg); /* Темно-синий из макета */
    color: white;
    padding: 80px 0 20px;
    text-align: center;
}

.footer h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-sub {
    margin-bottom: 50px;
    opacity: 0.9;
    font-size: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0px;
}

.contact-icon img {
    width: 48px;
    height: 48px;
}

.contact-item h4 {
    letter-spacing: 1px;
    margin-top: 0px;
}

.contact-item p {
    margin: 5px 0;
    font-size: 18px;
    opacity: 0.8;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* New icon */
.nav-item-new {
    position: relative; /* Чтобы значок привязался к этой ссылке */
    display: inline-block;
}

/* Сам значок "New" */
.nav-item-new::after {
    content: "NEW"; /* Текст внутри значка */
    position: absolute;
    top: -8px;      /* Поднимаем над текстом */
    right: -10px;    /* Сдвигаем чуть вправо */
    
    /* Стилизация значка */
    background-color: #ff4d4d; /* Яркий красный или оранжевый */
    color: white;
    font-size: 10px;           /* Маленький шрифт */
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 4px;       /* Скругление углов */
    line-height: 1;
    
    /* Добавим небольшую анимацию, чтобы привлечь внимание (опционально) */
    animation: pulse 2s infinite;
}

/* Эффект пульсации */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Toggle btn*/
.menu-toggle {
    display: none; /* Скрыт на десктопе */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Анимация превращения в крестик (класс .open добавим через JS) */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile devices */
@media (max-width: 768px) {
    .container {
        align-items: flex-start;
        gap: 20px;
    }

    .top-nav .container .address {
        font-size: 14px;;
    }

    .logo-container {
        max-width: 400px;
        padding: 10px;
    }

    .nav-contacts {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .top-nav {
        padding: 0px !important;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .nav-contacts {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        padding-top: 15px;
    }

    .direction-row, .direction-row.reverse {
        flex-direction: column;
        gap: 20px;
    }
    
    .direction-image img {
        max-width: 100%;
    }

    .nav-item-new::after {
        top: 10px;
        right: 80px;
    }

    .about-text ul {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        max-width: 300px;
        padding: 10px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Показываем кнопку */
    }

    .nav-links {
        display: none; /* Скрываем список ссылок */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Выпадает сразу под шапкой */
        width: 100%;
        background-color: var(--blue-bg);
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.5);
        border-bottom: 1px solid rgba(255,255,255,0.5);
        z-index: 99;
        margin-left: -15px;
    }

    /* Когда меню открыто */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: #fff;
        text-decoration: none;
        padding: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Стиль для метки NEW */
    .nav-item-new::after {
        content: "NEW";
        background-color: #ff4d4d;
        color: white;
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 4px;
        margin-left: 8px;
        vertical-align: middle;
    }
}

