/* Общие стили */
:root {
    --primary: #FDB225;
    --dark: #121212;
    --light: #ffffff;
    --gray: #f5f5f5;
    --text: #333333;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Адаптированная шапка сайта */
header {
    background-color: #E8E8E8;
    background-image: url('logo1.png');
    background-size: cover;
    background-position: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 20px;
    position: relative;
}

header nav ul {
    list-style-type: none;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

header nav a {
    color: #000;
    text-decoration: none;
    font-size: 15px;
    position: relative;
}

.nav-button {
    display: inline-block;
    padding: 10px 10px;
    background-color: rgb(253, 178, 37);
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    width: 140px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FDB225;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.nav-button:hover {
    background-color: rgb(255, 200, 100);
}

.logo img {
    width: 30px;
    height: auto;
    vertical-align: middle;
    margin-top: -12px;
}

/* Эффект выделения вкладок при наведении */
header nav a:hover {
    color: #ffffff;
    transition: color 0.3s ease;
}

/* Адаптивность ТОЛЬКО для шапки на мобильных устройствах */
@media (max-width: 768px) {
    /* Фиксируем body чтобы не было горизонтальной прокрутки */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Адаптация шапки */
    header {
        padding: 8px 5px;
        min-height: auto;
        background-image: url('logo.jpeg');
        background-size: cover;
        background-position: center;
        min-height: 80px;
        position: relative;
    }
    
    /* Полупрозрачный оверлей для лучшей читаемости */
    header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.85);
        z-index: 0;
    }
    
    /* Навигационное меню */
    header nav ul {
        position: relative;
        z-index: 1;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 0;
        width: 100%;
    }
    
    /* Стили для кнопок */
    .nav-button {
        font-size: 9.5px;
        padding: 6px 4px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.1;
        width: calc(50% - 8px);
        max-width: 175px;
        min-width: 175px;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
        background-color: rgba(253, 178, 37, 0.95);
    }
    
    /* Специальные стили для длинных текстов */
    .nav-button.long-text {
        font-size: 9px;
        padding: 5px 3px;
        line-height: 1.0;
        letter-spacing: -0.1px;
        min-height: 36px;
    }
    
    /* Позиционирование логотипа */
    .logo {
        order: 1;
        flex: 0 0 100%;
        text-align: center;
        margin: 5px 0;
        position: relative;
        z-index: 1;
    }
    
    .logo img {
        width: 25px;
        margin: 0;
    }
}

/* Для очень маленьких экранов (только шапка) */
@media (max-width: 480px) {
    .nav-button {
        font-size: 9px;
        min-width: 110px;
        width: calc(50% - 6px);
    }
    
    .nav-button.long-text {
        font-size: 8.5px;
        min-height: 36px;
    }
    
    .logo img {
        width: 22px;
    }
}

/* Фикс для экранов меньше 400px (только шапка) */
@media (max-width: 400px) {
    .nav-button {
        font-size: 8.5px;
        min-width: 105px;
    }
    
    .nav-button.long-text {
        font-size: 8px;
        padding: 4px 2px;
    }
}

/* ОСТАЛЬНЫЕ СТИЛИ ОСТАЮТСЯ БЕЗ ИЗМЕНЕНИЙ */

/* Hero секция */
.services-hero {
    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23FDB225" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--light);
    padding: 80px 0;
    text-align: center;
}

.services-hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary);
}

.services-hero p {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Основной контент */
.services-content {
    padding: 60px 0;
    background-color: var(--light);
}

.services-intro {
    text-align: center;
    margin-bottom: 40px;
}

.services-intro h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.services-intro p {
    font-size: 1.3rem;
    color: #666;
}

.services-description {
    margin-bottom: 40px;
}

.services-description p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.services-list {
    margin: 25px 0;
    padding-left: 20px;
}

.services-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    font-size: 1.1rem;
    list-style-type: none;
}

.services-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.advantages-section {
    background-color: var(--gray);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.advantages-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark);
    text-align: center;
}

.advantages-list {
    padding-left: 20px;
}

.advantages-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
    font-size: 1.1rem;
    list-style-type: none;
}

.advantages-list li::before {
    content: "✅";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
}

.final-remark {
    background-color: var(--dark);
    color: var(--light);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.final-remark p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Подвал */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.8;
}

.copyright {
    margin-top: 30px;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Существующие медиазапросы (оставляем без изменений) */
@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.2rem;
    }
    
    .services-hero p {
        font-size: 1.2rem;
    }
    
    .services-intro h2 {
        font-size: 1.8rem;
    }
    
    .services-intro p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: 60px 0;
    }
    
    .services-content {
        padding: 40px 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}