@charset "UTF-8";

:root {
    --bg-color: #f7f5f1;
    --main-color: #4a1525;
    --border-color: #4a1525;
}

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

body {
    background-color: var(--bg-color);
    color: var(--main-color);
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: var(--bg-color);
    border: 1.5px solid var(--border-color);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-weight: 400;
}

/* Текстовый логотип, повторяющий картинку */
.text-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 54px;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--main-color);
    line-height: 1;
    margin-bottom: 10px;
    transition: font-size 0.3s ease;
}

/* Увеличиваем первую букву, чтобы имитировать дизайн из картинки */
.logo-title::first-letter {
    font-size: 72px;
    transition: font-size 0.3s ease;
}

.logo-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--main-color);
}

/* Combined Header */
.combined-header {
    padding: 30px 40px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    width: 100%;
}

.contacts-box {
    position: absolute;
    right: 0;
    top: 0;
    text-align: right;
    font-size: 14px;
    line-height: 1.6;
}

/* Services Section */
.services {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.service-item {
    flex: 1;
    padding: 30px 20px;
    text-align: center;
}

.service-item.border-left-right {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.service-item .icon {
    margin-bottom: 20px;
    color: var(--main-color);
}

.service-item h2 {
    font-size: 17px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-item p {
    font-size: 13px;
    line-height: 1.6;
}

/* About & Contact Section */
.about-contact {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.contact {
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact h2 {
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
}

.contact-address {
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 400;
    line-height: 1.6;
}

/* Настройки центрирования для карты */
.contact-form-area.centered-map {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-form-area.centered-map iframe {
    max-width: 100%;
    border: 1px solid var(--border-color) !important;
}

/* Footer */
footer {
    padding: 30px;
    text-align: center;
}

footer .logo-box {
    margin-bottom: 20px;
}

.copyright {
    font-size: 11px;
    line-height: 1.5;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .services {
        flex-direction: column;
    }
    .service-item.border-left-right {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    .contacts-box {
        position: relative;
        text-align: center;
        margin-top: 20px;
    }
    .header-top {
        flex-direction: column;
        align-items: center;
    }
    /* Уменьшаем шрифты логотипа для мобильных экранов */
    .logo-title {
        font-size: 40px;
    }
    .logo-title::first-letter {
        font-size: 54px;
    }
    /* Делаем отступы немного компактнее для маленьких экранов */
    .combined-header {
        padding: 20px;
    }
    .contact {
        padding: 20px 15px;
    }
    .service-item {
        padding: 25px 15px;
    }
}
