/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

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

/* Навигационное меню */
.main-nav {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #FF2F93;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #333;
}

/* Шапка */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    width: 120px;
    height: 60px;
    background-color: #f5f5f5;
    display: flex;
    color: #999;
    margin-bottom: 10px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contacts {
    text-align: center;
    font-size: 14px;
}

/* Баннер */
.banner {
    background-color: #FF2F93;
    color: white;
    text-align: center;
    padding: 20px 15px;
    margin: 15px 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
}

/* Вкладки */
.tabs {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    border-bottom: 2px solid #FF2F93;
}

.tab-row {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 12px 20px;
    background-color: #f5f5f5;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    white-space: nowrap;
    font-size: 15px;
}

.tab.active {
    background-color: #FF2F93;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

/* Блоки с ценами */
.price-block {
    width: 100%;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.price-block h3 {
    color: #FF2F93;
    margin-bottom: 8px;
    font-size: 18px;
}

.price {
    font-size: 22px;
    font-weight: bold;
    margin: 12px 0;
    color: #333;
}

/* Заголовки разделов */
.section-title {
    color: #FF2F93;
    margin: 25px 0 15px;
    font-size: 22px;
    text-align: center;
}

/* Услуги */
.services {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.service {
    width: 100%;
    padding: 15px;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.service h3 {
    color: #FF2F93;
    margin-bottom: 8px;
    font-size: 18px;
}

/* Ключевые слова */
.keywords {
    padding: 15px;
    background-color: #f5f5f5;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

/* Кнопки */
.btn {
    display: inline-block;
    background-color: #FF2F93;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 15px auto;
    font-size: 16px;
    text-align: center;
    width: 100%;
    max-width: 300px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e02884;
}

/* Блок дополнительных услуг */
.additional-services {
    margin: 30px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

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

.service-card h3 {
    color: #FF2F93;
    margin-bottom: 15px;
    font-size: 20px;
}

/* Баннер калькулятора */
.calculator-banner {
    background-color: #f5f5f5;
    color: #333;
    border: 2px solid #FF2F93;
}

.calculator-banner h2 {
    color: #FF2F93;
    margin-bottom: 15px;
}

/* Стили для контентных страниц (клопы и др.) */
.content {
    margin: 25px 0;
}

.content h1 {
    color: #FF2F93;
    margin-bottom: 20px;
    font-size: 28px;
    text-align: left;
}

.content h2 {
    color: #FF2F93;
    margin: 25px 0 15px;
    font-size: 22px;
    text-align: left;
}

.content h3 {
    color: #333;
    margin: 20px 0 10px;
    font-size: 18px;
}

.content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.content ul,
.content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Блоки призыва к действию */
.cta {
    background-color: #fff0f5;
    padding: 15px;
    border-left: 4px solid #FF2F93;
    margin: 20px 0;
    font-style: italic;
}

.guarantee {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #FF2F93;
}

.highlight {
    background-color: #fff0f5;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: center;
    font-weight: bold;
}

.cta-banner {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background-color: #FF2F93;
    color: white;
    border-radius: 8px;
}

.cta-banner h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-banner .btn {
    background-color: white;
    color: #FF2F93;
}

.cta-banner .btn:hover {
    background-color: #f0f0f0;
}

/* Вопросы-ответы */
.faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Футер */
.footer {
    background-color: #f5f5f5;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

.footer-link {
    margin: 0 15px;
    color: #666;
    text-decoration: none;
}

.footer-link:hover {
    color: #FF2F93;
}

.copyright {
    color: #999;
    font-size: 14px;
}

/* Медиазапросы для планшетов */
@media (min-width: 600px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-bottom: 0;
    }

    .contacts {
        text-align: right;
    }

    .banner {
        font-size: 22px;
        padding: 25px 20px;
    }

    .tab-content.active {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .price-block {
        width: 48%;
    }

    .services {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .service {
        width: 48%;
    }

    .btn {
        width: auto;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-links {
        justify-content: flex-end;
    }
}

/* Медиазапросы для десктопов */
@media (min-width: 900px) {
    .price-block {
        width: 32%;
    }

    .service {
        width: 24%;
        padding: 20px 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .service-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .content h2 {
        font-size: 24px;
    }
}

/* Мобильное меню */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 15px;
        top: 10px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

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

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .main-nav {
        position: relative;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .content h1 {
        font-size: 24px;
    }

    .content h2 {
        font-size: 20px;
    }
}

/* Оптимизация для очень маленьких экранов */
@media (max-width: 360px) {
    .tab {
        padding: 10px 15px;
        font-size: 14px;
    }

    .banner {
        font-size: 18px;
        padding: 15px 10px;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }

    .content h1 {
        font-size: 22px;
    }
}

/* Утилитарные классы */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}