/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn-primary {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #1a252f;
}

.btn-secondary {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #2980b9;
}

/* Шапка */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #3498db;
}

/* Первый экран */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.consultation-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

/* Почему мы */
.why-us {
    padding: 80px 0;
    text-align: center;
}

.why-us h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.feature {
    flex: 0 0 calc(25% - 30px);
    margin-bottom: 30px;
    padding: 20px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #3498db;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Услуги */
.services {
    padding: 80px 0;
    background: #f9f9f9;
}

.services h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-card {
    flex: 0 0 calc(25% - 30px);
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

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

.service-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Отзывы */
.reviews {
    padding: 80px 0;
}

.reviews h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.review-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.review {
    flex: 0 0 calc(33.333% - 30px);
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.review-author {
    font-weight: bold;
    color: #2c3e50;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: #f9f9f9;
}

.faq h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.faq-item {
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
    cursor: pointer;
    position: relative;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 24px;
}

.faq-question.active:after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 0 20px;
}

/* Форма подписки */
.newsletter {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    text-align: center;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

/* Футер */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    flex: 0 0 100%;
}

.footer-links {
    flex: 0 0 60%;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-links li {
    margin-right: 30px;
    margin-bottom: 15px;
}

.footer-links a {
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-info {
    flex: 0 0 35%;
    text-align: right;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #bbb;
}

/* Адаптивность */
@media (max-width: 992px) {
    .feature {
        flex: 0 0 calc(50% - 30px);
    }
    
    .service-card {
        flex: 0 0 calc(50% - 30px);
    }
    
    .review {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .main-nav ul {
        margin-top: 20px;
    }
    
    .main-nav li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .feature {
        flex: 0 0 100%;
    }
    
    .service-card {
        flex: 0 0 100%;
    }
    
    .review {
        flex: 0 0 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    .footer-info {
        flex: 0 0 100%;
        text-align: left;
    }
}
/* Страницы политик */
.policy-page {
    padding: 60px 0;
    line-height: 1.8;
}

.policy-page h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.policy-page .last-updated {
    color: #666;
    margin-bottom: 40px;
    font-style: italic;
}

.policy-page h2 {
    font-size: 24px;
    color: #2c3e50;
    margin: 40px 0 20px;
}

.policy-page h3 {
    font-size: 20px;
    color: #3498db;
    margin: 25px 0 15px;
}

.policy-page ul {
    margin: 15px 0;
    padding-left: 20px;
}

.policy-page ul li {
    margin-bottom: 8px;
}

/* Страница "О нас" */
.about-page {
    padding: 60px 0;
}

.about-page h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.about-page .subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.mission-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    margin: 15px;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 16px;
    color: #666;
}

.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 50px;
}

.history-timeline:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-year {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #3498db;
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.team-categories, .principles {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.category, .principle {
    flex: 0 0 calc(50% - 30px);
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.category h3, .principle h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0;
}

.partner-logo {
    padding: 15px 25px;
    margin: 10px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.contact-item {
    flex: 0 0 calc(50% - 30px);
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Страница отзывов */
.reviews-page {
    padding: 60px 0;
}

.reviews-page h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.reviews-page .subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

.reviews-filter {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.reviews-filter label {
    margin-right: 10px;
    font-weight: 500;
    margin-left: 20px;
}

.reviews-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 20px;
}

.reviews-filter button {
    margin-left: 20px;
}

.review {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.review-author {
    font-weight: bold;
    color: #2c3e50;
}

.review-date {
    color: #666;
    font-size: 14px;
}

.review-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.page-numbers {
    margin: 0 20px;
}

.page-numbers a {
    padding: 5px 10px;
    margin: 0 5px;
    color: #2c3e50;
}

.page-numbers a.active {
    background: #3498db;
    color: white;
    border-radius: 4px;
}

.add-review {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

.add-review h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
}

.review-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-height: 150px;
    resize: vertical;
}

/* Адаптивность */
@media (max-width: 768px) {
    .mission-stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin: 10px 0;
    }
    
    .category, .principle, .contact-item {
        flex: 0 0 100%;
    }
    
    .reviews-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reviews-filter label, .reviews-filter select, .reviews-filter button {
        margin: 5px 0;
        width: 100%;
    }
    
    .review-header {
        flex-direction: column;
    }
    
    .review-date {
        margin-top: 5px;
    }
}
