/* Geldarix.com - Основные стили */
/* Финансовая грамотность для Бельгии */

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Цветовая схема */
:root {
    --primary-color: #E74C3C;
    --secondary-color: #F39C12;
    --text-dark: #333333;
    --text-light: #AAAAAA;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --background-light-blue: #F8F9FA;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Хедер */
.header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
}

.navigation {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navigation a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: var(--primary-color);
}

.navigation a.active {
    color: var(--primary-color);
    font-weight: bold;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Секции */
.section {
    padding: 60px 0;
}

.section-light-blue {
    background-color: var(--background-light-blue);
}

.section-white {
    background-color: var(--white);
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #E67E22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

/* Карточки */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

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

.card h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Формы */
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

/* Курсы */
.course-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.course-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    background-color: transparent;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.course-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition-normal);
    z-index: -1;
}

.course-link:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.course-link:hover::before {
    left: 0;
}

.course-link::after {
    content: '→';
    font-size: 16px;
    transition: var(--transition-normal);
}

.course-link:hover::after {
    transform: translateX(4px);
}

/* Формы - расширенные стили */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-control::placeholder {
    color: #AAAAAA;
}

/* FAQ */
.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--background-light-blue);
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #E8F4FD;
}

.faq-answer {
    padding: 20px;
    color: var(--text-light);
    line-height: 1.6;
    display: none;
}

.faq-answer.show {
    display: block;
}

/* Футер */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer p {
    color: #CCCCCC;
    margin-bottom: 10px;
}

.footer a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444444;
    color: #AAAAAA;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid #E0E0E0;
    padding: 20px;
    box-shadow: 0 -5px 20px var(--shadow);
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background-color: var(--primary-color);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background-color: #C0392B;
}

.cookie-btn-decline {
    background-color: #E0E0E0;
    color: var(--text-dark);
}

.cookie-btn-decline:hover {
    background-color: #CCCCCC;
}

.cookie-btn-settings {
    background-color: var(--secondary-color);
    color: var(--white);
}

.cookie-btn-settings:hover {
    background-color: #E67E22;
}

/* Мобильная адаптация - Полная переработка */
@media (max-width: 768px) {
    /* Базовые настройки для предотвращения горизонтального скролла */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Хедер */
    .header {
        padding: 10px 0;
        position: relative;
        z-index: 1000;
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .logo {
        font-size: 20px;
        flex-shrink: 0;
    }
    
    .header-contact {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    /* Мобильное меню */
    .navigation {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        padding-top: 80px;
    }
    
    .navigation.active {
        display: flex;
    }
    
    .navigation li {
        margin: 15px 0;
        list-style: none;
    }
    
    .navigation a {
        font-size: 24px;
        padding: 15px 30px;
        border-radius: 10px;
        transition: all 0.3s ease;
        display: block;
        width: 200px;
        text-align: center;
        text-decoration: none;
        color: var(--text-dark);
    }
    
    .navigation a.active {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .navigation a:hover {
        background-color: var(--secondary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .burger-menu.active .burger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active .burger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Секции */
    .section {
        padding: 40px 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .section:first-of-type {
        padding-top: 60px;
    }
    
    .section-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .section-subtitle {
        font-size: 16px;
        text-align: center;
        margin-bottom: 30px;
    }
    
    /* Hero секции */
    .hero-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .hero-section > div {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }
    
    .hero-section h1 {
        font-size: 28px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        line-height: 1.2 !important;
    }
    
    .hero-section p {
        text-align: center !important;
        font-size: 16px !important;
        margin-bottom: 30px !important;
        line-height: 1.6 !important;
    }
    
    .hero-section img {
        order: -1 !important;
        margin-bottom: 20px !important;
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        border-radius: 15px !important;
    }
    
    /* Кнопки */
    .btn {
        width: 100% !important;
        margin-bottom: 10px !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        text-align: center !important;
        display: block !important;
    }
    
    /* Карточки */
    .card-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
        margin: 0 !important;
    }
    
    .card h3 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .card p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    /* Курсы на мобильных */
    .course-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    .course-image {
        height: 180px !important;
    }
    
    .course-content {
        padding: 20px !important;
    }
    
    .course-title {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
    
    .course-description {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    .course-link {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    /* Формы */
    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
    }
    
    input, textarea, select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        padding: 12px !important;
        margin-bottom: 15px !important;
    }
    
    /* Grid контейнеры */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Flex контейнеры */
    [style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
    
    /* Футер */
    .footer-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 30px !important;
    }
    
    /* Cookie Banner */
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Анимации */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .navigation {
        animation: slideDown 0.3s ease-out;
    }
    
    .navigation.active {
        animation: slideDown 0.3s ease-out;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section:first-of-type {
        padding-top: 50px;
    }
    
    .hero-section h1 {
        font-size: 24px !important;
    }
    
    .hero-section p {
        font-size: 14px !important;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    .card {
        padding: 15px !important;
    }
    
    .card h3 {
        font-size: 18px !important;
    }
    
    .card p {
        font-size: 13px !important;
    }
    
    .course-link {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    /* Курсы на очень маленьких экранах */
    .course-card {
        margin-bottom: 15px !important;
    }
    
    .course-image {
        height: 160px !important;
    }
    
    .course-content {
        padding: 15px !important;
    }
    
    .course-title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .course-description {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }
    
    /* Формы на очень маленьких экранах */
    .form-group {
        margin-bottom: 15px !important;
    }
    
    .form-group label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
    
    .form-control {
        padding: 10px 12px !important;
        font-size: 16px !important;
    }
    
    .contact-form {
        padding: 15px !important;
    }
}