:root {
    --bg-color: #050608;
    --card-bg: #0c0d11;
    --card-border: #1a1c23;
    --blue-accent: #0066ff;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-main);
}

.text-blue {
    color: var(--blue-accent);
}

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

/* Верхняя панель */
.top-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 40px;
    font-size: 12px;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-contact span, .top-social span { margin-right: 20px; }
.top-social a { margin-left: 15px; color: var(--text-gray); transition: color 0.3s; }
.top-social a:hover { color: var(--blue-accent); }

/* Навигация */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(5, 6, 8, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { display: flex; align-items: center; }
.logo img { height: 75px; width: auto; display: block; }

nav { display: flex; gap: 25px; }
nav a { font-size: 13px; font-weight: 600; text-transform: uppercase; transition: color 0.3s; }
nav a:hover, nav a.active { color: var(--blue-accent); }
nav a.active { border-bottom: 2px solid var(--blue-accent); padding-bottom: 5px; }

.header-actions { display: flex; align-items: center; gap: 20px; }

/* Переключатель языков */
.custom-lang-selector { position: relative; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.lang-current { display: flex; align-items: center; gap: 8px; padding: 5px 10px; color: white; border: 1px solid transparent; border-radius: 4px; }
.lang-current:hover { border-color: rgba(255,255,255,0.2); }
.lang-current img { width: 20px; border-radius: 2px; }
.lang-current i { font-size: 10px; transition: transform 0.3s; }

.lang-options { position: absolute; top: 100%; left: 0; background-color: var(--card-bg); border: 1px solid var(--card-border); list-style: none; width: 100%; border-radius: 4px; overflow: hidden; display: none; flex-direction: column; z-index: 200; margin-top: 5px; }
.lang-options.show { display: flex; }
.lang-options li { display: flex; align-items: center; gap: 8px; padding: 10px; color: white; transition: background 0.2s; }
.lang-options li img { width: 20px; border-radius: 2px; }
.lang-options li:hover { background-color: var(--blue-accent); }

/* Кнопки */
.btn { padding: 12px 24px; font-size: 13px; font-weight: 700; border-radius: 4px; text-transform: uppercase; cursor: pointer; transition: 0.3s; display: inline-block; }
.btn-blue { background-color: var(--blue-accent); color: white; border: none; }
.btn-blue:hover { background-color: #0052cc; }
.btn-outline { background-color: transparent; color: white; border: 1px solid white; }
.btn-outline:hover { background-color: white; color: var(--bg-color); }

/* Главный экран (Hero) */
.hero { position: relative; height: 70vh; display: flex; align-items: center; padding: 0 5%; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: -1; }
.hero-bg::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%); }
.hero-content { max-width: 600px; }
.hero h1 { font-size: 64px; line-height: 1.1; font-weight: 800; margin-bottom: 20px; }
.hero p { font-size: 16px; line-height: 1.6; margin-bottom: 30px; color: #e0e0e0; }
.hero-buttons { display: flex; gap: 15px; }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(6, 1fr); background-color: var(--bg-color); }
.service-card { padding: 40px 20px; border-right: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); background-color: var(--card-bg); text-align: center; transition: transform 0.3s; }
.service-card:hover { background-color: #12141a; transform: translateY(-5px); }
.service-card i { font-size: 40px; margin-bottom: 20px; }
.service-card h3 { font-size: 14px; margin-bottom: 15px; }
.service-card p { font-size: 12px; color: var(--text-gray); line-height: 1.5; margin-bottom: 20px; min-height: 60px; }
.more-info { font-size: 12px; font-weight: 600; color: var(--blue-accent); }

/* Преимущества */
.features { display: grid; grid-template-columns: repeat(4, 1fr); padding: 50px; gap: 20px; background-color: var(--bg-color); border-top: 1px solid var(--card-border); }
.feature-item { display: flex; align-items: center; gap: 15px; }
.feature-item i { font-size: 30px; }
.feature-item h4 { font-size: 12px; margin-bottom: 5px; }
.feature-item p { font-size: 11px; color: var(--text-gray); }

/* СТИЛИ ДЛЯ ВНУТРЕННИХ ТЕКСТОВЫХ СТРАНИЦ */
.page-content { padding: 60px 5%; min-height: 65vh; display: flex; justify-content: center; }
.text-container { max-width: 800px; width: 100%; background-color: var(--card-bg); padding: 50px; border: 1px solid var(--card-border); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.text-container h1 { font-size: 32px; margin-bottom: 25px; color: var(--blue-accent); }
.text-container h2 { font-size: 22px; margin-top: 35px; margin-bottom: 15px; color: var(--text-white); }
.text-container p { font-size: 15px; line-height: 1.8; color: var(--text-gray); margin-bottom: 15px; }
.text-container ul { list-style: none; margin-top: 20px; }
.text-container li { font-size: 15px; color: var(--text-gray); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }

/* ФУТЕР */
.site-footer { background-color: var(--card-bg); border-top: 1px solid var(--card-border); padding: 30px 50px; margin-top: 50px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-gray); max-width: 1200px; margin: 0 auto; }
.footer-bottom .btn { font-size: 11px; padding: 10px 15px; }

/* Адаптивность */
@media (max-width: 1200px) { .services { grid-template-columns: repeat(3, 1fr); } .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { header { flex-direction: column; gap: 15px; padding: 15px; } nav { flex-wrap: wrap; justify-content: center; } .services { grid-template-columns: repeat(2, 1fr); } .features { grid-template-columns: 1fr; } .hero h1 { font-size: 42px; } .text-container { padding: 30px; } .footer-bottom { flex-direction: column; gap: 20px; text-align: center; } }
/* --- СЕТКА ДЛЯ СТРАНИЦЫ УСЛУГ (SERVICES.HTML) --- */
.services-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.page-card {
    border: 1px solid var(--card-border);
    border-radius: 8px; /* Скругляем углы карточек */
}

/* Адаптивность для телефонов и планшетов */
@media (max-width: 900px) {
    .services-grid-page {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid-page {
        grid-template-columns: 1fr;
    }
}
/* --- СЕТКА ДЛЯ СТРАНИЦЫ ПРОЕКТОВ (PROJECTS.HTML) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
}

.project-card-ui {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden; /* Чтобы картинка не ломала скругление углов */
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card-ui:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.project-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #1a1c23; /* Фон-заглушка, если фото не загрузится */
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезает фото ровно по блоку без сплющивания */
    transition: transform 0.5s;
}

.project-card-ui:hover .project-img-wrapper img {
    transform: scale(1.05); /* Эффект зума картинки при наведении */
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-white);
}

.project-info p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Адаптивность для телефонов и планшетов */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
