/*
Theme Name: MSK Group Theme
Theme URI: https://mskgc.com
Author: MSK Group Team
Author URI: https://mskgc.com
Description: Высокопроизводительная кастомная тема для MSK Group IT Integrator с нативной поддержкой Elementor и нулевыми внешними зависимостями.
Version: 1.0.0
Text Domain: msk-group
*/

/**
 * @file: style.css
 * @description: Основные глобальные стили, CSS-переменные, Sticky Footer и сбросы
 * @dependencies: assets/css/fonts.css, assets/css/icons.css
 * @created: 2026-11-09
 */

:root {
    --color-corp: #1d555a;
    --color-corp-dark: #103134;
    --color-corp-darker: #0f333c;
    --color-corp-darkest: #071b20;
    --color-accent-green: #6ca7ad;
    --color-border: #0f4a58;
    --color-border-light: #63868f;
    --font-primary: 'Montserrat', sans-serif;
}

/* Sticky Footer Protocol */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-primary);
    background-color: var(--color-corp);
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-x: hidden;
}

.site-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: #ffffff;
    margin-top: 0;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--color-accent-green);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Container & Grid utilities (native lightweight) */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

.align-items-center {
    align-items: center;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Glow Effect */
.emit-light {
    filter: drop-shadow(0px 19px 45px #ffffff);
    transition: filter 0.3s ease;
}

.emit-light:hover {
    filter: drop-shadow(0px 19px 50px rgba(255, 255, 255, 0.6));
}

.img-optimized {
    image-rendering: -webkit-optimize-contrast;
    max-width: 100%;
    height: auto;
}

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

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
}

.mb-3 {
    margin-bottom: 20px !important;
}

.mb-4 {
    margin-bottom: 25px !important;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    border: none;
    padding: 12px 40px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-primary {
    background: var(--color-corp);
    color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--color-corp-dark);
    color: #ffffff;
}

.btn-secondary {
    background: var(--color-corp-darker);
    color: #ffffff;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: var(--color-corp-darkest);
    color: #ffffff;
}

/* Forms */
.msk-contact-form .row {
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 20px;
}

.msk-contact-form [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

.form-control,
.msk-contact-form input[type="text"],
.msk-contact-form input[type="email"],
.msk-contact-form textarea,
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus,
.msk-contact-form input[type="text"]:focus,
.msk-contact-form input[type="email"]:focus,
.msk-contact-form textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--color-accent-green);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 10px rgba(108, 167, 173, 0.2);
}

textarea {
    min-height: 125px;
    resize: vertical;
}

::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Prominent Action Buttons */
.btn-submit {
    display: inline-block;
    background-color: #0c313a;
    color: #ffffff !important;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: #071b20;
    border-color: var(--color-accent-green);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-corp-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-light);
    border-radius: 5px;
}


/* Header Components */
.site-header {
    border-bottom: none;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-brand .site-logo {
    max-height: 48px;
    width: auto;
    display: block;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-accent-green);
}

.contact-item .contact-text {
    font-size: 0.85rem;
    line-height: 1.3;
}

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

.language-switcher {
    font-size: 0.9rem;
    font-weight: 600;
}

.language-switcher .current-lang {
    color: var(--color-accent-green);
}

.language-switcher .lang-divider {
    margin: 0 4px;
    opacity: 0.5;
}

.language-switcher .alt-lang {
    color: #ffffff;
    opacity: 0.8;
}

.language-switcher .alt-lang:hover {
    opacity: 1;
    color: var(--color-accent-green);
}

/* Navigation Bar */
.navbar-navigation-wrapper {
    background: transparent;
    border-top: none;
    margin-bottom: 25px;
}

.nav-desktop {
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 750px;
    width: 100%;
    justify-content: center;
}

.nav-desktop li {
    flex: 1;
    text-align: center;
}

.nav-desktop li a {
    display: block;
    padding: 4px 15px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff !important;
    text-transform: none;
    letter-spacing: normal;
    border-right: 2px solid #496a70;
    border-bottom: none;
    white-space: nowrap;
}

.nav-desktop li:last-child a {
    border-right: none;
}

.nav-desktop li a:hover,
.nav-desktop li.current-menu-item a {
    color: #ffffff !important;
    border-bottom: none;
}

/* Footer Styling */
.site-footer {
    background-color: #0c313a;
    padding-top: 50px;
    padding-bottom: 50px;
}

.footer-title {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.footer-logo {
    max-height: 85px;
    width: auto;
}

.footer-contacts-col .contact-block-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-contacts-col .contact-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-contacts-col .contact-line i {
    color: var(--color-accent-green);
    font-size: 1.1rem;
    margin-top: 2px;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 25px 0;
}

.footer-copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Mobile Toggler and Responsiveness */
.navbar-toggler {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
}

.d-mobile-only {
    display: none;
}

@media (max-width: 991px) {
    .d-none-mobile {
        display: none !important;
    }

    .d-mobile-only {
        display: block !important;
    }

    .navbar-collapse {
        display: none;
        padding: 15px 0;
    }

    .navbar-collapse.show {
        display: block;
    }

    .nav-desktop {
        flex-direction: column;
        gap: 10px;
    }

    .nav-desktop li a {
        padding: 8px 0;
        border-right: none;
    }

    .footer-logo {
        margin-top: 15px;
        max-height: 65px;
    }
}

@media (min-width: 992px) {
    .text-lg-end {
        text-align: right;
    }
}


/* Module Headings & Typography */
.section-heading {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-subheading {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 10px auto 0;
}

/* Breadcrumbs Module */
.msk-breadcrumbs-wrapper {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.msk-breadcrumbs {
    font-size: 0.85rem;
}

.msk-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
}

.msk-breadcrumbs a:hover {
    color: var(--color-accent-green);
}

.msk-breadcrumbs .bc-sep {
    margin: 0 8px;
    opacity: 0.4;
}

.msk-breadcrumbs .bc-current {
    color: #ffffff;
    font-weight: 500;
}

/* Module: Hero */
.hero-heading {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-paragraph {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.95;
}

/* Module: Advantages */
.advantage-icon {
    max-height: 70px;
    width: auto;
}

.advantage-description {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Module: Services Chess List */
.service-item-row {
    padding: 20px 0;
}

.service-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.service-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
}

.service-image {
    max-height: 380px;
    width: auto;
}

/* Module: Industry Sectors */
.sector-card {
    padding: 15px;
    transition: transform 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-5px);
}

.sector-icon {
    max-height: 100px;
    width: auto;
    border-radius: 50%;
}

.sector-name {
    font-size: 0.95rem;
    margin-top: 10px;
}

/* Module: Partners */
.partner-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.partner-card img,
.partner-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Single Service & Page Articles */
.service-single-title,
.page-title {
    font-size: 2rem;
}

.service-entry-content,
.entry-content {
    font-size: 1rem;
    line-height: 1.7;
}

.service-entry-content ul,
.entry-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.service-entry-content li,
.entry-content li {
    margin-bottom: 8px;
}
