/* Базовые стили */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #202124;
    background-color: #f8f9fa;
    line-height: 1.6;
    box-sizing: border-box;
}

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

/* Анимации (замена AOS) */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up {
    opacity: 0;
    animation: fade-up 0.8s ease-out forwards;
}

/* Шапка */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

/* Логотип */
.logo {
    font-family: 'Georgia', serif;
    font-size: 24px;
    font-weight: bold;
    color: #1a73e8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: #34a853;
}

/* Навигация */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #202124;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #1a73e8;
}

/* Мобильное меню */
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Контакты в шапке */
.header-contacts {
    text-align: right;
}

.header-contacts p {
    margin: 5px 0;
    font-size: 14px;
}

.header-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Основной контент */
main {
    padding: 20px;
}

/* Hero section */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 20px;
}

/* Как мы работаем */
.how-we-work {
    text-align: center;
    margin-bottom: 40px;
}

.how-we-work h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    color: #1a73e8;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
}

.step-icon {
    font-size: 50px;
    color: #1a73e8;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
    color: #1a73e8;
}

.step p {
    font-size: 16px;
    color: #202124;
}

/* Услуги */
.services {
    margin-bottom: 40px;
}

.services h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    color: #1a73e8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
    color: #1a73e8;
}

.service-item p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #202124;
}

.service-icon {
    font-size: 40px;
    color: #1a73e8;
    margin-bottom: 10px;
}

/* Почему стоит обратиться именно к нам */
.why-choose-us {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.why-choose-us h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    color: #1a73e8;
}

.reasons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.reason {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    transition: transform 0.3s ease;
}

.reason:hover {
    transform: translateY(-10px);
}

.reason-icon {
    font-size: 50px;
    color: #1a73e8;
    margin-bottom: 15px;
}

.reason h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
    color: #1a73e8;
}

.reason p {
    font-size: 16px;
    color: #202124;
    line-height: 1.6;
}

/* Контакты */
.contacts {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contacts h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    color: #1a73e8;
}

.contact-info {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #202124;
}

.contact-info i {
    margin-right: 10px;
    color: #1a73e8;
}

/* Подвал */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1a73e8;
    color: #ffffff;
}

.footer-contacts {
    margin-top: 20px;
}

.footer-contacts p {
    margin: 5px 0;
    font-size: 16px;
}

.city-delivery {
    text-decoration: underline;
    transition: text-decoration 0.3s ease;
}

.city-delivery:hover {
    text-decoration: none;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 20px;
}

.footer-top-link {
    margin-top: 20px;
}

.top-link {
    font-family: 'Georgia', serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: underline;
    transition: text-decoration 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.top-link:hover {
    text-decoration: none;
    color: #34a853;
}

/* Общие стили для кнопок */
.button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.button:hover {
    transform: translateY(-3px);
}

.button:active {
    transform: translateY(0);
}

.call-button {
    background-color: #1a73e8;
    border-color: #1557b0;
}

.call-button:hover {
    background-color: #1557b0;
}

.whatsapp-button {
    background-color: #25d366;
    border-color: #128c7e;
}

.whatsapp-button:hover {
    background-color: #128c7e;
}

.telegram-button {
    background-color: #0088cc;
    border-color: #006699;
}

.telegram-button:hover {
    background-color: #006699;
}

.details-button {
    background-color: #1a73e8;
    border-color: #1557b0;
}

.details-button:hover {
    background-color: #1557b0;
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #1557b0;
}

/* Медиа-запросы для мобильной версии */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        position: absolute;
        top: 70px;
        left: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }

    .header-contacts {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons, .footer-buttons, .header-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .button {
        width: 100%;
        padding: 15px 20px;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .header-buttons {
        display: none;
    }

    .hero-buttons {
        margin-top: 20px;
    }

    .step {
        width: 100%;
    }

    .reason {
        width: 100%;
    }

    .footer-contacts p {
        font-size: 14px;
    }

    .footer-top-link {
        margin-top: 15px;
    }

    .top-link {
        font-size: 16px;
    }
}