body {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Old Standard TT', serif;
}

/* Хедер с фиксированной высотой */
.header {
    background:
        url('/images/pattern_v03.png') repeat,
        linear-gradient(to bottom, #FEF9EC, #F9F2DE);
    /*linear-gradient(to bottom, #FEF9EC, #F9F2DE);*/
    width: 100%;
    height: 600px;
    min-height: 600px;
    color: #8B5A01;
    overflow: hidden;
}

.header-container {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
}

.header-content {
    flex: 1;
    padding-right: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-image {
    height: 600px;
    display: flex;
    align-items: center;
}

.header-image img {
    height: 100%;
    width: auto;
    max-width: 832px;
    object-fit: cover;
}

.header-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 55px; /* Увеличенный отступ */
    line-height: 1.3;
}

.info-block {
    margin-bottom: 15px;
}

.info-block:first-child {
    margin-top: 30px;
}

.info-block p {
    margin-bottom: 4px;
    line-height: 1.4;
    font-size: 1rem;
}

/* Стили секции услуг */
.services-section {
    padding: 60px 0;
    background-color: #fff;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-title {
    font-size: 2.5rem;
    color: #8B5A01;
    text-align: left;
    margin-bottom: 40px;
}

.services-columns {
    display: flex;
    gap: 40px;
}

.services-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-item {
    overflow: hidden;
    margin-bottom: 10px;
}

.service-title {
    width: 100%;
    padding: 15px 0px;
    background: none;
    border: none;
    border-bottom: 1px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    color: #8B5A01;
    cursor: pointer;
    transition: all 0.3s;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.5s;
    color: #8B5A01;
}

.service-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.service-content p {
    padding: 10px 0px;
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
}

.service-item.active .service-content {
    max-height: none; /* Убираем фиксированную высоту */
    height: auto; /* Полностью адаптивная высота */
}

.service-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Основные стили ссылок */
a {
    color: #d23c01; /* Оранжевый цвет */
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500; /* Полужирное начертание */
}

/* Эффект при наведении */
a:hover {
    color: #f44501; /* Темнее при наведении */
}

/* Подчеркивание при наведении */
a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: #D35400;
    animation: underline 0.3s forwards;
}

/* Анимация подчеркивания */
@keyframes underline {
    from { width: 0; }
    to { width: 100%; }
}

/* Ссылки в текстовых блоках */
.text-content a {
    color: #d23c01;
    padding-bottom: 2px; /* Для плавного подчеркивания */
}

.text-content a:hover {
    color: #f44501;
}

/* Особые стили для ссылок в объявлениях */
.announcement-section a {
    color: #D35400; /* Чуть темнее для контраста */
}

.announcement-section a:hover {
    color: #BA4A00;
}


/* Общие стили для текстовых секций */
.announcement-section,
.greeting-section {
    padding: 30px 0;
    background-color: #fff;
}

.greeting-section {
    margin-top: 30px;
}
.greeting-section h2 {
    font-weight: 600;
}

.announcement-section {
    background-color: #FEF9EC;
    border-bottom: 1px solid #F9F2DE;
}

.text-block {
    max-width: 1440px;
    margin: 0 auto;
    /* Убрали padding для десктопа */
}

.section-subtitle {
    font-size: 2.5rem; /* Увеличенный размер */
    color: #8B5A01;
    margin-bottom: 25px;
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.text-content p {
    margin-bottom: 15px;
}

.text-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.text-content li {
    margin-bottom: 8px;
}

/* Стили секции контактов */
.contacts-section {
    padding: 40px 0px; /* Единый padding для секции */
    background-color: #F9F2DE;
    max-height: 650px; /* Максимальная высота */
    overflow: hidden; /* Для ограничения высоты */
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
}

.section-title {
    font-size: 2rem;
    color: #8B5A01;
    margin-bottom: 25px;
    padding-left: 0; /* Убрали отдельный padding */
}

.contacts-grid {
    display: grid;
    grid-template-columns: 50% 50%; /* Чёткое разделение 50/50 */
    height: calc(100% - 70px); /* Учитываем заголовок */
    gap: 30px;
}

.contacts-info,
.contacts-map {
    height: 100%;
}

.all-contacts {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
}

.contact-title {
    font-size: 1.8rem;
    color: #8B5A01;
    margin-bottom: 15px;
}

.contact-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.contact-item a {
    color: #d23c01;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #ff9e00;
}



/* Адаптивные стили */
@media (max-width: 1405px) {
    .header {
        height: calc(400px + (600 - 400) * (100vw - 992px) / (1405 - 992));
        min-height: calc(400px + (600 - 400) * (100vw - 992px) / (1405 - 992));
    }

    .header-image {
        height: calc(400px + (600 - 400) * (100vw - 992px) / (1405 - 992));
    }

    .header-title {
        font-size: calc(35.2px + (51.2 - 35.2) * (100vw - 992px) / (1405 - 992));
        line-height: calc(1.15 + (1.2 - 1.15) * (100vw - 992px) / (1405 - 992));
    }

    .header-subtitle {
        font-size: calc(17.5px + (22.4 - 17.6) * (100vw - 992px) / (1405 - 992));
        margin-bottom: calc(30px + (55 - 30) * (100vw - 992px) / (1405 - 992));
        line-height: calc(1.25 + (1.3 - 1.25) * (100vw - 992px) / (1405 - 992));
    }

    .info-block p {
        font-size: calc(11.68px + (16 - 11.68) * (100vw - 992px) / (1405 - 992));
        line-height: calc(1.2 + (1.4 - 1.2) * (100vw - 992px) / (1405 - 992));
    }

    .header-content {
        padding-right: calc(15px + (40 - 15) * (100vw - 992px) / (1405 - 992));
    }
    .info-block:first-child {
        margin-top: calc(15px + (30 - 15) * (100vw - 992px) / (1405 - 992));
    }
}

@media (max-width: 992px) {
    .header {
        height: auto;
        min-height: auto;
        /*padding: 10px 0;*/
    }

    .header-container {
        flex-direction: column;
    }

    .header-content {
        padding-right: 0;
        margin-bottom: 30px;
        order: 2;
        height: auto;
    }

    .header-image {
        height: auto;
        order: 1;
        margin-bottom: 30px;
    }

    /*
    .header-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
    }
    */
    .header-image img {
        content: url('/images/letnikova-polina_sm.jpg');
        border-radius: 12px;
        object-fit: contain;
        max-height: 400px;
    }

    .header-title {
        font-size: 2.4rem;
    }

    .header-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    .info-block p {
        font-size: 0.9rem;
        line-height: 1.2rem;
    }
    .info-block:first-child {
        margin-top: 20px;
    }

    .services-columns {
        flex-direction: column;
        gap: 0px;
    }
    .section-title {
        font-size: 2rem;
        padding: 0 12px;
    }

    .service-title {
        font-size: 1.1rem;
        padding: 12px 15px;
    }

    /* текстовые секции */
    .text-block {
        padding: 0 25px; /* Добавили padding для планшетов */
    }

    .section-subtitle {
        font-size: 2.2rem; /* Чуть уменьшаем для планшетов */
        padding: 0; /* Убираем дублирующий padding */
    }

    .text-content {
        padding: 0; /* Убираем дублирующий padding */
    }

    .contacts-section {
        max-height: none;
        /*padding: 30px 20px;*/
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .contacts-map {
        height: 350px;
    }
}

/* текстовые секции */
@media (max-width: 768px) {
    .announcement-section,
    .greeting-section {
        padding: 40px 0;
    }

    .section-subtitle {
        font-size: 2rem; /* Размер для мобильных */
    }

    .text-content {
        font-size: 1rem;
    }
    .section-title {
        padding: 0 15px;
        font-size: 1.8rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-item p {
        font-size: 1rem;
    }

}


@media (max-width: 510px) {
    .header-image img {
        border-radius: 0px;
    }

}
