/**
 * АйТишник - District Page Styles
 */

/* Используется вместе с main theme CSS */

/* Контейнер района */
.district-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero секция района */
.district-hero {
    background: white;
    border: 2px solid var(--itkaluga-primary, #00ffff);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.district-hero h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.district-hero p {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Информационные карточки */
.district-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.info-card {
    background: #f0f7ff;
    border: 1px solid var(--itkaluga-primary, #00ffff);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.info-card strong {
    color: var(--itkaluga-primary, #00ffff);
    display: block;
    font-size: 18px;
    margin-bottom: 0.3rem;
}

.info-card small {
    color: #999999;
    font-size: 11px;
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--itkaluga-primary, #00ffff);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transform: translateY(-4px);
}

.service-card h3 {
    margin: 0 0 0.8rem 0;
    font-size: 14px;
    color: var(--itkaluga-primary, #00ffff);
}

.service-card p {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

/* Секция прайс */
.pricing-section {
    background: white;
    border: 2px solid var(--itkaluga-primary, #00ffff);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.pricing-section h2 {
    font-size: 26px;
    margin-bottom: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.price-item strong {
    color: var(--itkaluga-primary, #00ffff);
    font-weight: 600;
}

.price-note {
    font-size: 12px;
    color: #999999;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* FAQ секция */
.faq-section {
    background: white;
    border: 2px solid var(--itkaluga-primary, #00ffff);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.faq-section h2 {
    font-size: 26px;
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.faq-question {
    font-weight: 600;
    color: var(--itkaluga-primary, #00ffff);
    margin-bottom: 0.5rem;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-question::before {
    content: '+';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    transition: all 0.3s;
}

.faq-question.active::before {
    content: '−';
    background: rgba(0, 255, 255, 0.2);
}

.faq-answer {
    color: #333333;
    font-size: 13px;
    line-height: 1.6;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.faq-item .faq-answer.active {
    display: block;
}

/* CTA блок */
.cta-section {
    background: linear-gradient(135deg, var(--itkaluga-primary, #00ffff) 0%, var(--itkaluga-primary-dark, #00ccff) 100%);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.cta-section h2 {
    color: white;
    margin: 0 0 1rem 0;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin-bottom: 1.5rem;
}

.cta-section .btn {
    background: white;
    color: var(--itkaluga-primary, #00ffff);
    border: none;
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.cta-section .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Карта района */
.district-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Отзывы */
.district-reviews {
    background: white;
    border: 2px solid var(--itkaluga-primary, #00ffff);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.review-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 600;
    color: #1a1a1a;
}

.review-rating {
    color: #ffb800;
}

.review-text {
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .district-hero {
        padding: 1.5rem;
    }

    .district-hero h1 {
        font-size: 28px;
    }

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

    .pricing-section,
    .faq-section {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 1.5rem;
    }

    .district-map {
        height: 300px;
    }

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

@media (max-width: 480px) {
    .district-hero {
        padding: 1rem;
    }

    .district-hero h1 {
        font-size: 24px;
    }

    .district-hero p {
        font-size: 13px;
    }

    .info-card {
        padding: 0.8rem;
    }

    .info-card strong {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1rem;
    }

    .pricing-section,
    .faq-section,
    .district-reviews {
        padding: 1rem;
    }

    .pricing-section h2,
    .faq-section h2 {
        font-size: 22px;
    }

    .cta-section {
        padding: 1rem;
    }

    .cta-section h2 {
        font-size: 22px;
    }

    .cta-section p {
        font-size: 14px;
    }

    .district-map {
        height: 250px;
    }

    .district-info-cards {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
