/* Включение плавной прокрутки */
html {
    scroll-behavior: smooth;
}

/* Общие сбросы стилей и применение шрифта Inter */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Отступы для секций, чтобы фиксированное меню не закрывало заголовки при прокрутке */
section {
    scroll-margin-top: 80px; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Стили шапки */
.main-header {
    background-color: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.logo span {
    color: #00bfff;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 25px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #999999;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-menu ul li a:hover {
    color: #00bfff;
}

/* Стили главного баннера (Hero) */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?q=80&w=1200') no-repeat center center/cover;
    height: 65vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h2 {
    font-size: 34px;
    font-weight: 600;
    color: #00bfff;
    margin-top: 5px;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 35px;
    max-width: 700px;
}

.btn-cta {
    display: inline-block;
    background-color: #00bfff;
    color: #000000;
    padding: 15px 38px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-cta:hover {
    background-color: #0099cc;
    transform: translateY(-1px);
}

/* СЕО-Секция */
.seo-text-section {
    padding: 80px 0;
    background-color: #000000;
}

.seo-titles {
    margin-bottom: 40px;
}

.seo-titles h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.seo-titles h3 {
    font-size: 22px;
    font-weight: 500;
    color: #00bfff;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 35px;
    align-items: stretch;
}

/* Левый бокс с основным текстом */
.seo-main-content {
    background-color: #0a0a0a;
    border: 1px solid #161616;
    padding: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

/* Обертка для текстов */
.seo-text-wrapper {
    width: 100%;
}

/* Стили для абзацев текста */
.seo-main-content p {
    font-size: 15px;
    color: #cccccc;
    line-height: 1.7;
    text-align: justify;
}

/* Добавляем отступ первому абзацу, чтобы отделить его от второго */
.seo-main-content p:not(:last-child) {
    margin-bottom: 20px; 
}

.seo-main-content strong {
    color: #ffffff;
    font-weight: 600;
}

.seo-image-side {
    height: 100%;
}

.photo-placeholder-box {
    background-color: #0a0a0a;
    border: 1px solid #1c1c1c;
    border-radius: 6px;
    height: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.placeholder-text {
    font-size: 13px;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.photo-placeholder-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.seo-divider {
    border: none;
    border-top: 1px solid #161616;
    margin: 50px 0;
}

.seo-isolated-box {
    background-color: #0a0a0a;
    border: 1px solid #161616;
    padding: 40px;
    border-radius: 6px;
    width: 100%;
}

.seo-isolated-box p {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.8;
    text-align: justify;
    margin: 0;
}

.seo-isolated-box strong {
    color: #ffffff;
    font-weight: 600;
}

/* Секция карточек услуг */
.services-cards-section {
    padding: 60px 0;
    background-color: #000000;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    color: #999999;
    font-size: 15px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card {
    background-color: #0a0a0a;
    border: 1px solid #161616;
    border-radius: 6px;
    padding: 40px;
    transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
    border-color: #00bfff;
    transform: translateY(-2px);
}

.service-card h3 {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-secondary {
    display: inline-block;
    border: 1px solid #00bfff;
    color: #00bfff;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: #00bfff;
    color: #000000;
}

/* Галерея */
.gallery-section {
    padding: 80px 0;
    background-color: #000000;
}

.gallery-block-header {
    text-align: left;
    margin-bottom: 25px;
    border-left: 3px solid #00bfff;
    padding-left: 15px;
}

.gallery-block-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.gallery-block-header p {
    font-size: 14px;
    color: #666666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    width: 100%;
    background-color: #0a0a0a;
    border: 1px solid #161616;
    border-radius: 8px;
    overflow: hidden;
    height: 480px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
    opacity: 0.85;
    object-position: top center;
}

.gallery-item:hover img {
    transform: scale(1.04);
    opacity: 1;
}

.gallery-spacer {
    height: 60px;
}

/* Форма обратной связи */
.form-section {
    padding: 60px 0;
    background-color: #000000;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #0a0a0a;
    border: 1px solid #161616;
    padding: 50px;
    border-radius: 8px;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: #888;
    font-size: 14px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.main-form label {
    font-size: 13px;
    color: #cccccc;
    font-weight: 500;
}

.main-form input, 
.main-form textarea {
    background-color: #111111;
    border: 1px solid #222222;
    padding: 14px;
    color: #ffffff;
    font-size: 14px;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.main-form input:focus, 
.main-form textarea:focus {
    outline: none;
    border-color: #00bfff;
}

.btn-submit {
    background-color: #00bfff;
    color: #000000;
    border: none;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

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

/* Секция Контактов */
.contact-section {
    padding: 80px 0;
    background-color: #070707;
    border-top: 1px solid #111111;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-info p {
    color: #aaa;
    font-size: 15px;
    margin-bottom: 35px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.channel-icon {
    font-size: 24px;
    background-color: #111;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #1c1c1c;
}

.channel-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.channel-link {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.channel-link:hover {
    color: #00bfff;
}

.contact-action .action-box {
    background-color: #111111;
    border: 1px solid #1c1c1c;
    padding: 40px;
    border-radius: 6px;
    text-align: center;
}

.action-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.action-box p {
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-whatsapp {
    display: block;
    background-color: #25d366;
    color: #fff;
    padding: 15px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
}

.btn-whatsapp:hover {
    background-color: #1ebd58;
}

/* Подвал */
.main-footer {
    background-color: #000;
    padding: 30px 0;
    border-top: 1px solid #111;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00bfff;
}

/* ==========================================
   НОВЫЙ БЛОК: КНОПКИ ПЕРЕКЛЮЧЕНИЯ ЯЗЫКОВ
   ========================================== */
.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
}

.lang-btn {
    display: inline-block;
    text-decoration: none; /* Убираем подчеркивание */
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #999999;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: #00bfff; /* Голубой акцент сайта */
    border-color: #00bfff;
    color: #000000;
}

.lang-btn:hover:not(.active) {
    border-color: #ffffff;
    color: #ffffff;
}

/* ==========================================
   АДАТИВНОСТЬ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА
   ========================================== */
@media (max-width: 992px) {
    .seo-grid, .cards-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .seo-main-content {
        padding: 30px;
    }
    .seo-titles h2 {
        font-size: 24px;
    }
    .seo-titles h3 {
        font-size: 18px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-menu ul li {
        margin: 5px 10px;
    }
    /* Перенос переключателя под меню на мобилках */
    .lang-switcher {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content h2 {
        font-size: 22px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 260px;
    }
}