/* Базовые настройки */
:root {
    --primary-color: #2C3E50; /* Темно-синий (как на логотипе) */
    --accent-color: #E74C3C; /* Красный/розовый для акцентов */
    --bg-light: #F8F9FA; /* Светло-серый фон */
    --text-dark: #333333;
    --text-light: #777777;
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

/* --- ШАПКА (Header) --- */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    max-height: 60px;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--primary-color);
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

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

.phone {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-color);
}

/* --- ГЕРОЙ-БЛОК (Главный экран с частицами) --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* --- ПОДВАЛ (Footer) --- */
footer {
    background: linear-gradient(to right, #4b6cb7 0%, #182848 100%);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 30px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* Социальные иконки */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 24px;
}
.social-icons a:hover {
    color: var(--accent-color);
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .header-main {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-contacts {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- СЕКЦИЯ ПРЕИМУЩЕСТВ --- */
.features-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* --- СЕКЦИЯ FAQ (Аккордеон) --- */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f1f3f5;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--accent-color);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 20px;
    color: var(--text-dark);
    font-size: 15px;
}

.faq-answer p {
    margin-bottom: 15px;
}

/* --- СЕКЦИЯ КАРТА И КОНТАКТЫ --- */
.contact-map-section {
    padding: 80px 0;
    background: #fff;
}

.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-info a {
    color: var(--primary-color);
    font-weight: 500;
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- АДАПТИВНОСТЬ ДЛЯ НОВЫХ БЛОКОВ --- */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr 1fr; /* 2 колонки на планшетах */
    }
    .contact-map-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефонах */
    }
}

/* --- ВНУТРЕННИЕ СТРАНИЦЫ (Заголовок) --- */
.page-header {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- СТРАНИЦА УСЛУГ --- */
.services-page {
    padding: 80px 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top-color: var(--accent-color);
}

.service-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
}

.service-list li {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-list li::before {
    content: '\f00c'; /* Иконка галочки FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 12px;
}

/* Адаптивность для услуг */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .page-header h1 {
        font-size: 32px;
    }
}


/* --- ОБНОВЛЕННЫЙ ЗАГОЛОВОК ВНУТРЕННИХ СТРАНИЦ (С частицами) --- */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

#particles-header {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 46px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- ОБНОВЛЕННАЯ СТРАНИЦА УСЛУГ --- */
.services-page {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Плавный пружинистый эффект */
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid transparent;
}

/* Эффект свечения и подъема при наведении */
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.1);
    border-color: rgba(44, 62, 80, 0.1);
}

/* Декоративный круг в углу карточки */
.service-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.4s;
}

.service-card:hover::before {
    transform: scale(3);
    background: rgba(240, 244, 248, 0.5);
}

.service-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.5;
}

.service-list {
    list-style: none;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.service-list li {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-weight: 500;
}

.service-list li::before {
    content: '\f058'; /* Иконка галочки в круге */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
    transition: color 0.3s;
}

.service-card:hover .service-list li::before {
    color: var(--accent-color);
}

/* Адаптивность для услуг */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .page-header h1 {
        font-size: 32px;
    }
}


/* --- СТРАНИЦА КОНТАКТОВ --- */
.contacts-page {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.08);
}

.contact-card i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card p, .contact-card a {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--accent-color);
}

/* Блок с картой и режимом работы */
.map-section {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.work-hours {
    padding: 50px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-hours h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.hours-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--accent-color);
}

.hours-badge span:first-child {
    font-weight: 700;
    font-size: 16px;
}

.hours-badge span:last-child {
    font-size: 16px;
}

.map-wrapper-contacts iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    display: block;
}

/* Адаптивность для контактов */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .map-section {
        grid-template-columns: 1fr;
    }
    .work-hours {
        padding: 30px;
    }
}
