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

body {
    background-color: #0b3b36; /* Зелено-бирюзовый фон */
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.logo-container {
    margin-top: 10px;
}

.logo {
    max-width: 200px;
    height: auto;
    /* Инвертируем черное лого в белое и убираем фон, чтобы смотрелось на темном сайте */
    filter: invert(1);
    mix-blend-mode: screen; 
}

/* Меню в правом верхнем углу */
.menu-toggle {
    position: absolute;
    top: 25px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
    padding: 5px;
}

.menu-toggle .bar {
    width: 32px;
    height: 3px;
    background-color: #dcb37b; /* Песочный цвет как на референсе */
    border-radius: 2px;
    transition: 0.3s;
}

.main-content {
    flex: 1;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

h1 {
    font-family: 'Times New Roman', serif;
    font-size: 26px;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.description {
    font-size: 15px;
    line-height: 1.5;
    max-width: 400px;
    margin-bottom: 40px;
    color: #d1e8e5; /* Светло-бирюзовый текст для читаемости */
}

.cta-button {
    display: inline-block;
    background-color: #dcb37b;
    color: #111;
    text-decoration: none;
    padding: 16px 25px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    text-transform: uppercase;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Шторка меню */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #0b3b36;
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 80px 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.sidebar.open {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 20px;
    background: transparent;
    border: 1px solid #dcb37b;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: left;
}

.menu-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
}

.photo-placeholder {
    height: 180px;
    background: radial-gradient(circle at bottom, #145952 0%, #0b3b36 60%);
    border-top-left-radius: 50% 20%;
    border-top-right-radius: 50% 20%;
    margin-top: auto;
}

/* Десктопная версия: прячем бургер, показываем горизонтальное меню */
@media (min-width: 768px) {
    .header {
        justify-content: space-between;
        align-items: center;
        padding: 30px 50px;
    }

    .logo-container {
        margin-top: 0;
    }

    .menu-toggle, .close-btn {
        display: none !important;
    }

    .sidebar {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .menu-list {
        flex-direction: row;
        gap: 40px;
    }

    .menu-list a {
        transition: color 0.3s;
    }

    .menu-list a:hover {
        color: #dcb37b;
    }
}

/* --- Стили для белых блоков --- */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contacts-section, .about-section {
    background-color: #ffffff;
    color: #333333;
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: left;
    margin-top: 20px;
    opacity: 0; /* начальное состояние до анимации */
    animation: slideUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.about-title {
    position: relative;
    padding-left: 15px;
    font-family: 'Times New Roman', serif;
    font-size: 26px;
    color: #1a2430;
    text-align: left;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.about-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 6px;
    background-color: #dcb37b;
}

.about-text {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
}

/* Растягиваем белый блок на весь экран для мобилок */
@media (max-width: 768px) {
    .main-content {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
    .contacts-section, .about-section {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        border-radius: 24px 24px 0 0;
        padding: 40px 20px;
        flex: 1;
    }
}

.section-title, .form-title {
    font-family: 'Times New Roman', serif;
    font-size: 28px;
    color: #1a2430; /* Темно-синий/черный как на макете */
    text-align: center;
    margin-bottom: 30px;
}

.contacts-info {
    margin-bottom: 50px;
    text-align: left;
}

.contacts-info h3 {
    font-family: 'Times New Roman', serif;
    font-size: 22px;
    margin-bottom: 20px;
    color: #1a2430;
    font-weight: normal;
}

.contacts-info p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.contact-link {
    color: #dcb37b;
    text-decoration: none;
    font-weight: 500;
}

.contacts-info p:last-child .contact-link {
    color: #555;
    font-weight: normal;
}

.contact-form-container {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    background-color: #fff;
    color: #333;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #999;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #dcb37b;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.policy-text a {
    color: #dcb37b;
    text-decoration: none;
}

.submit-btn {
    background-color: #dcb37b;
    color: #111;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    align-self: center;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #c99f68;
}

/* --- Виды дел (Карточки) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.service-card {
    background-color: #f8f9fa;
    border-radius: 16px;
    color: #1a2430;
    border-left: 5px solid #dcb37b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.service-header {
    padding: 20px 24px;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.4;
}

.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #dcb37b;
    margin-left: 15px;
    flex-shrink: 0;
}

.service-card.active .arrow {
    transform: rotate(180deg);
}

.service-desc {
    max-height: 0;
    opacity: 0;
    padding: 0 24px;
    overflow: hidden;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    transition: all 0.3s ease-in-out;
}

.service-card.active .service-desc {
    max-height: 300px;
    opacity: 1;
    padding: 0 24px 20px 24px;
}