:root {
    --color-primary: #00939C; /* Электрический Зеленый */
    --color-secondary: #0A1931; /* Темно-синий */
    --color-accent: #EB4061; /* Яркий Оранжевый (CTA) */
    --color-background-light: #FFFFFF;
    --color-background-gray: #F4F4F4;
    --color-text: #212529; /* Темный текст */
    --color-text-light: #F4F4F4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text);
    background-color: var(--color-background-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2 {
    font-weight: 800;
    color: var(--color-secondary);
}

/* --- HERO SECTION (СТАТИЧНЫЙ БАННЕР) --- */
.hero {
    min-height: 500px; 
    padding: 80px 0;
    text-align: center;
    position: relative;
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;
    /* Дефолтное фоновое изображение. Будет установлено через JS */
    background-image: url('/assets/images/static_hero_default.jpg'); 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Более темный оверлей для контраста */
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Изменено на center */
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 2; 
}

.hero-content {
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: clamp(36px, 6vw, 60px);
    color: var(--color-text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 30px);
    color: var(--color-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero {
        min-height: 400px;
    }
    .hero-title {
         line-height: 1.2;
    }
}
/* ---------------------------------- */

/* --- СЕКЦИИ --- */
.section {
    padding: 60px 0;
}

.section-header {
    font-size: 2em;
    margin-bottom: 40px;
    text-align: left; 
}

/* Глобальный класс для сеток */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- БЛОК "ЧТО У НАС СЕЙЧАС НОВОГО" (Офферы) --- */
.new-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.new-subsection:nth-child(2) { 
    padding: 20px;
    background-color: #E6E6FA; 
    border-radius: 10px;
}

.new-subsection h3 {
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-size: 1.4em;
}

.new-item {
    text-align: center;
}

.image-link-wrapper {
    display: block;
    height: 250px; 
    margin-bottom: 10px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    text-align: center; 
    border: 1px solid var(--color-background-gray); 
}

.image-link-wrapper img {
    max-width: 100%; 
    max-height: 100%; 
    width: auto; 
    height: auto; 
    object-fit: contain; 
    display: block;
    margin: 0 auto; 
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-link-wrapper:hover img {
    transform: scale(1.05); 
}

.image-link-wrapper:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}        
.image-caption {
    font-size: 0.9em;
    color: var(--color-text);
}

/* --- БЛОК ПРЕИМУЩЕСТВ --- */
.benefits-card {
    background-color: var(--color-background-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--color-primary);
    transition: box-shadow 0.3s ease, transform 0.3s ease; 
}

.benefits-card:hover {
    box-shadow: 0 8px 25px rgba(0, 204, 68, 0.2);
    transform: translateY(-5px); 
    cursor: default; 
}

.benefits-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.benefits-card::before {
    content: '★'; 
    display: block;
    font-size: 2em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* --- БЛОК FAQ (СТИЛИ АККОРДЕОНА) --- */
.faq-item {
    margin-bottom: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden; 
}

.faq-question-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-weight: 600;
    font-size: 1.2em;
    color: var(--color-secondary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
}

.faq-question-toggle:hover {
    color: var(--color-primary);
}

.faq-icon {
    font-size: 1.5em;
    font-weight: 800;
    transition: transform 0.3s;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); 
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    padding: 0 0 0 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px; 
    padding: 0 0 20px 0; 
}

.faq-answer p {
    padding-right: 30px; 
}

/* --- БЛОК "КАК РАБОТАЕТ АРБИТРАЖ" (Steps - 6 шагов) --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Адаптивность для 6 шагов: 3 колонки на десктопе */
@media (min-width: 901px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

.step-item {
    padding: 20px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    position: relative;
}

.step-item::before {
    content: attr(data-step);
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 800;
    border-radius: 50%;
    text-align: center;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 8px rgba(0, 204, 68, 0.4);
}

.step-item h4 {
    margin-top: 15px;
    color: var(--color-secondary);
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* --- ОСТАЛЬНЫЕ СЕКЦИИ БЕЗ ИЗМЕНЕНИЙ --- */
.partnership-item {
    text-align: center;
}

.partnership-item .icon-circle {
    width: 150px;
    height: 150px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: var(--color-primary);
}

.cta-section {
    padding: 60px 0;
    text-align: center;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-text {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--color-secondary);
}

.cta-button {
    background-color: var(--color-accent);
    color: var(--color-background-light);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.8em;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.cta-button:hover {
    background-color: #E05C00;
}

footer {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    padding: 40px 0;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo-block,
.footer-contact,
.footer-social {
    min-width: 250px;
}

.footer-logo {
    font-size: 2em;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: block;
}

.footer-contact p,
.footer-contact a {
    color: var(--color-text-light);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.footer-contact a:hover {
    color: var(--color-primary);
}

.footer-social h4 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.social-links {
    display: flex;
    gap: 15px; 
}

.social-links img {
    width: 30px; 
    height: 30px;
    transition: opacity 0.3s;
}

.social-links a:hover img {
    opacity: 0.7; 
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .section-header {
        text-align: center;
    }
    .footer-content {
        justify-content: center;
        text-align: center;
    }
    .footer-logo-block,
    .footer-contact,
    .footer-social {
        min-width: 100%;
    }
    .footer-contact a {
        text-align: center;
    }
    .social-links {
        justify-content: center; 
    }
}