/*
ОБЩИЕ СТИЛИ И СБРОС (MOBILE-FIRST)
*/
:root {
    --primary-dark: #202020; /* Очень темный фон, почти черный */
    --secondary-dark: #333333; /* Чуть светлее для футера/доп.элементов */
    --accent-yellow: #FFC107; /* Яркий желтый акцент */
    --text-light: #F8F8F8; /* Светлый текст на темном фоне */
    --text-dark: #303030; /* Темный текст на светлом фоне */
    --bg-light: #FDFDFD; /* Очень светлый фон для секций */
    --bg-white: #FFFFFF; /* Белый фон для карточек */
    --shadow-color: rgba(0, 0, 0, 0.1); /* Цвет тени */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif; /* Основной шрифт для текста */
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*
ШАПКА (HEADER / HERO SECTION)
*/
header {
    position: relative;
    background-color: var(--primary-dark); /* Fallback цвет */
    color: var(--text-light);
    padding: 70px 0;
    text-align: center;
    overflow: hidden;
}

header::before { /* Фон с изображением и наложением */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/top.jpg') center center/cover no-repeat; /* ПУТЬ К ВАШЕМУ ИЗОБРАЖЕНИЮ */
    filter: grayscale(80%) brightness(50%);
    z-index: 0;
}

header .container {
    position: relative;
    z-index: 1;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 800;
    text-transform: uppercase;
}

header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3em;
    font-weight: 400;
    margin-bottom: 30px;
    color: rgba(248, 248, 248, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

header p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

header .email-contact {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05em;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent-yellow);
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

header .email-contact:hover {
    background-color: #FFD54F;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/*
ОБЩИЕ СТИЛИ СЕКЦИЙ
*/
section {
    padding: 70px 0;
}

section:nth-of-type(odd) {
    background-color: var(--bg-light);
}

section:nth-of-type(even) {
    background-color: var(--bg-white);
}

section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

section .section-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 50px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*
СЕКЦИЯ "НАШ ПОДХОД"
*/
#approach {
    padding: 70px 0;
    background-color: var(--bg-white);
}

.approach-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.approach-text {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.approach-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.approach-text p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.approach-image {
    flex: 1;
    text-align: center;
    max-width: 100%;
}

.approach-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

/*
СЕКЦИЯ УСЛУГ
*/
#services {
    position: relative;
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 70px 0;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bottom.jpg') center center/cover no-repeat; /* ПУТЬ К ВАШЕМУ ИЗОБРАЖЕНИЮ */
    filter: grayscale(60%) brightness(40%);
    z-index: 0;
}

#services .container {
    position: relative;
    z-index: 1;
}

#services h2 {
    color: var(--text-light);
}

#services .section-subtitle {
    color: rgba(248, 248, 248, 0.9);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-category {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-category h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-category ul {
    list-style: none;
    padding-left: 0;
}

.service-category ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    font-size: 1em;
    line-height: 1.6;
}

.service-category ul li:last-child {
    margin-bottom: 0;
}

.service-category ul li::before {
    content: '\f058'; /* Font Awesome check-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-yellow);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.1em;
}

/*
СЕКЦИЯ КОНТАКТОВ
*/
#contact {
    text-align: center;
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 70px 0;
}

#contact h2 {
    color: var(--text-light);
}

#contact .section-subtitle {
    color: rgba(248, 248, 248, 0.9);
}

.contact-blocks-grid {
    display: flex;
    flex-direction: column; /* Стек для мобильных */
    gap: 30px; /* Отступ между блоками */
    margin-bottom: 40px; /* Отступ перед email */
    align-items: center; /* Центрируем блоки на мобильных */
}

.contact-detail-card {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 90%; /* Ограничиваем, чтобы не прилипало к краям на очень узких экранах */
}

.contact-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.contact-detail-card .icon-wrapper {
    display: inline-block;
    margin-bottom: 15px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border: 2px solid var(--accent-yellow);
    border-radius: 50%;
    color: var(--accent-yellow);
    font-size: 1.8em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-detail-card:hover .icon-wrapper {
    background-color: var(--accent-yellow);
    color: var(--primary-dark);
}

.contact-detail-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3em;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-detail-card p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.9;
}
.contact-detail-card p strong {
    color: var(--accent-yellow);
    font-weight: 600;
}

#contact .key-email {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: var(--accent-yellow);
    text-decoration: none;
    display: block;
    margin-top: 40px;
    word-break: break-all;
    transition: color 0.3s ease;
}

#contact .key-email:hover {
    color: #FFD54F;
    text-decoration: underline;
}

/*
ПОДВАЛ (FOOTER)
*/
footer {
    background-color: var(--secondary-dark);
    color: rgba(248, 248, 248, 0.7);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

footer a {
    color: rgba(248, 248, 248, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/*
СТИЛИ ДЛЯ СЕКЦИИ "ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ"
*/
#privacy-policy {
    background-color: var(--bg-light); /* Или var(--bg-white), если хотите светлее */
    text-align: center;
}

#privacy-policy .container {
    max-width: 900px; /* Ограничиваем ширину для лучшей читабельности длинного текста */
}

.privacy-details {
    background-color: var(--bg-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left; /* Текст внутри блока выравниваем по левому краю */
}

.privacy-details summary {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    outline: none; /* Убираем стандартную обводку при фокусе */
    padding: 10px 0;
    list-style: none; /* Убираем стандартный маркер */
    position: relative;
    padding-right: 30px; /* Место для каретки */
}

.privacy-details summary::-webkit-details-marker {
    display: none; /* Скрываем стандартный маркер для Webkit браузеров */
}

.privacy-details summary::after { /* Кастомная каретка */
    content: '\f078'; /* Font Awesome chevron-down icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    color: var(--accent-yellow);
}

.privacy-details[open] summary::after {
    transform: translateY(-50%) rotate(180deg); /* Поворот каретки при открытии */
}

.privacy-content {
    padding-top: 20px;
    border-top: 1px solid #eee; /* Разделительная линия */
    margin-top: 10px;
}

.privacy-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: var(--secondary-dark);
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 700;
}

.privacy-content p {
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 10px;
    color: var(--text-dark);
    opacity: 0.9;
}

/* Стили для ссылки разработчика в футере */
footer .developer-link {
    margin-top: 15px; /* Отступ от политики конф. */
    font-size: 0.8em;
    opacity: 0.8;
}

footer .developer-link a {
    color: rgba(248, 248, 248, 0.6);
    text-decoration: none;
}

footer .developer-link a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/*
МЕДИА-ЗАПРОСЫ (ADAPTATION FOR TABLETS AND DESKTOPS)
*/
@media (min-width: 768px) {
    header { padding: 90px 0; }
    header h1 { font-size: 4em; }
    header h2 { font-size: 1.8em; }
    header p { font-size: 1.15em; }
    header .email-contact { padding: 18px 45px; font-size: 1.1em; }

    section { padding: 90px 0; }
    section h2 { font-size: 2.8em; }
    section h3 { font-size: 1.8em; }

    .approach-content {
        flex-direction: row;
        text-align: left;
        gap: 50px;
    }
    .approach-text { padding: 0; text-align: left; }
    .approach-text h3 { font-size: 2.5em; }
    .approach-image { max-width: 45%; }

    .service-category { padding: 45px; }
    .service-category ul li { font-size: 1.1em; }

    #contact { padding: 90px 0; }
    
    /* Для планшетов: 2 блока в ряд (или 3, если хочется, но 2 смотрится более воздушно) */
    .contact-blocks-grid {
        flex-direction: row;
        flex-wrap: wrap; /* Позволяем перенос на новую строку */
        justify-content: center;
        gap: 30px;
    }
    .contact-detail-card {
        flex: 1;
        max-width: calc(50% - 15px); /* Примерно 2 блока в ряд с учетом gap */
        text-align: left; /* Текст внутри карточек снова по левому краю */
    }
    .contact-detail-card .icon-wrapper {
         margin: 0 auto 15px 0; /* Иконка по левому краю */
    }
    .contact-detail-card h4, .contact-detail-card p {
        text-align: left;
    }
    
    #contact .key-email { font-size: 2.5em; }
	
	    .privacy-details {
        padding: 30px;
    }
    .privacy-details summary {
        font-size: 1.3em;
    }
    .privacy-content h4 {
        font-size: 1.2em;
    }
    .privacy-content p {
        font-size: 1em;
    }
}

@media (min-width: 1024px) {
    header { padding: 120px 0; }
    header h1 { font-size: 5em; }
    header h2 { font-size: 2em; }
    header p { font-size: 1.2em; }

    .approach-content { gap: 80px; }
    .approach-image { order: 2; max-width: 40%; }
    .approach-text { order: 1; }
    .approach-text h3 { font-size: 3em; }

    .services-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
    }
    .service-category { flex: 1; max-width: 48%; }

    section { padding: 120px 0; }
    section h2 { font-size: 3.5em; }
    
    /* Для десктопов: 3 блока в ряд, занимающие всю доступную ширину контейнера */
    .contact-blocks-grid {
        flex-wrap: nowrap;
        justify-content: space-between;
        max-width: 100%; /* Убедимся, что сетка занимает всю ширину контейнера */
    }
    .contact-detail-card {
        max-width: calc((100% - (2 * 30px)) / 3); /* 3 блока в ряд с учетом отступов */
    }
    #contact .key-email { font-size: 3em; }
	
	.privacy-details {
        padding: 40px;
    }
    .privacy-details summary {
        font-size: 1.4em;
    }
    .privacy-content h4 {
        font-size: 1.3em;
    }
    .privacy-content p {
        font-size: 1.05em;
    }
}