/* ----- ОБЩИE СТИЛИ И ПЕРЕМЕННЫЕ ----- */
:root {
    --primary-color: #0D254C; /* Глубокий синий */
    --secondary-color: #4A90E2; /* Яркий синий для акцентов */
    --text-color: #333333;
    --text-light: #FFFFFF;
    --background-light: #FFFFFF;
    --background-grey: #F4F4F4;
    --font-family: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-light);
    line-height: 1.7;
    font-size: 16px;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 80px 0;
}

.grey-bg {
    background-color: var(--background-grey);
}

.section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 60px;
}

/* Стили для изображений на внутренних страницах */
.page-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: var(--border-radius);
    margin: 30px auto;
    display: block;
    box-shadow: var(--box-shadow);
}

/* ----- КНОПКИ ----- */
.button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.button:hover {
    background-color: #3a7bc8;
    transform: translateY(-2px);
}
.button-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}
.button-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* ----- ШАПКА ----- */
.site-header {
    background-color: var(--background-light);
    padding: 15px 0;
    transition: box-shadow 0.3s ease;
}
.site-header.sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}
.main-nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}
.main-nav a:hover {
    color: var(--secondary-color);
}
.header-actions {
    display: flex;
    align-items: center;
}
.lang-switcher {
    margin-right: 20px;
    font-weight: 500;
}
.lang-switcher a { color: var(--secondary-color); text-decoration: none; }

/* ----- СЕКЦИЯ HERO ----- */
.hero {
    background: linear-gradient(rgba(13, 37, 76, 0.7), rgba(13, 37, 76, 0.7)), url('/hero-main.jpg') center/cover no-repeat;
    color: var(--text-light);
    padding: 120px 0;
}
.hero h2 {
    font-size: 24px;
    font-weight: 400;
    max-width: 850px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

/* ----- ПРОДУКЦИЯ ----- */
.product-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.product-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    max-width: 380px;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.product-card-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}
.product-card p {
    flex-grow: 1;
}
.product-card .button-outline {
    margin-top: auto;
}

/* ----- УСЛУГИ ----- */
.service-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.service-item {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 350px;
}
.service-item h4 {
    font-size: 20px;
    color: var(--primary-color);
}

/* ----- О КОМПАНИИ ----- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

/* ----- КОНТАКТЫ ----- */
.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background-color: var(--background-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.contact-info p { margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    box-sizing: border-box;
}
.contact-form button { width: 100%; }

/* ----- ПОДВАЛ ----- */
.site-footer {
    background-color: var(--primary-color);
    color: #a9b4c9;
    padding: 40px 0;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
}

/* ----- АДАПТИВНОСТЬ ----- */
@media (max-width: 992px) {
    .main-nav, .header-actions { display: none; }
    .about-container { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .content-section { padding: 60px 0; }
    .section-title { font-size: 28px; margin-bottom: 40px; }
    .hero { padding: 60px 20px; }
    .hero h2 { font-size: 20px; }
    .product-grid, .service-grid { flex-direction: column; align-items: center; }
}