/* 
 * Инвестиционный Прирост - Основные стили
 * Тема: Эко/натуральный
 * Разработано для: Kazakhstan (KZ)
 */

/* ===== Базовые стили ===== */
:root {
    --primary-color: #3a7563;      /* Темно-зеленый */
    --secondary-color: #a8c9a4;    /* Светло-зеленый */
    --accent-color: #e9b44c;       /* Желтый */
    --neutral-color: #f4f1de;      /* Бежевый */
    --background-color: #fafaf5;   /* Кремовый */
    --text-color: #333333;         /* Темно-серый */
    --secondary-text: #666666;     /* Серый */
    --header-height: 80px;         /* Высота шапки */
    --footer-bg: #3a7563;          /* Фон футера */
    --footer-text: #f4f1de;        /* Текст футера */
    --error-color: #e74c3c;        /* Цвет ошибки */
    --success-color: #2ecc71;      /* Цвет успеха */
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Общие стили для текста */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Отступ для основного контента из-за фиксированной шапки */
section:first-of-type {
    padding-top: calc(var(--header-height) + 1rem);
}

/* ===== Компоненты ===== */

/* Шапка сайта */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    height: var(--header-height);
}

.site-header.scrolled {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.98);
}

.site-header .uk-navbar-nav > li > a {
    color: var(--text-color);
    min-height: var(--header-height);
    font-weight: 600;
    transition: color 0.3s ease;
}

.site-header .uk-navbar-nav > li:hover > a, 
.site-header .uk-navbar-nav > li.uk-active > a {
    color: var(--primary-color);
}

.site-header .uk-logo img {
    transition: all 0.3s ease;
}

.site-header.scrolled .uk-logo img {
    transform: scale(0.9);
}

/* Главный баннер */
.hero-section {
    background-color: var(--neutral-color);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('myimages/background-pattern.jpg') repeat;
    opacity: 0.05;
    z-index: 0;
}

.hero-section h1 {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-section .uk-text-lead {
    color: var(--secondary-text);
    font-size: 1.4rem;
    font-weight: 400;
}

.hero-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    border-radius: 8px;
}

/* Баннеры страниц */
.page-banner {
    position: relative;
    padding: 150px 0 100px;
    color: #fff;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.page-banner .uk-container {
    position: relative;
    z-index: 1;
}

/* Кнопки */
.uk-button-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: none;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

.uk-button-primary:hover {
    background-color: darken(#3a7563, 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.uk-button-default {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
    text-transform: none;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

.uk-button-default:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Карточки */
.uk-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.uk-card-default {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.uk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.uk-card-title {
    color: var(--primary-color);
    font-weight: 700;
}

.uk-card-media-top img {
    width: 100%;
    height: auto;
}

/* Иконки в блоке преимуществ */
.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Отказ от ответственности */
.disclaimer {
    font-style: italic;
    opacity: 0.8;
}

.disclaimer-text {
    color: var(--secondary-text);
    font-style: italic;
    background-color: rgba(233, 180, 76, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
}

/* Секции сайта */
.uk-section {
    padding: 60px 0;
}

.uk-section-large {
    padding: 80px 0;
}

.uk-section-muted {
    background-color: var(--neutral-color);
}

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

.uk-section-primary h1, 
.uk-section-primary h2, 
.uk-section-primary h3, 
.uk-section-primary h4 {
    color: white;
}

/* Блок Process Steps */
.process-step {
    position: relative;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 1rem;
}

/* Инфографика с таймлайном */
.infographic-timeline {
    position: relative;
    padding: 2rem 0;
}

.infographic-timeline::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 8%;
    height: 2px;
    width: 84%;
    background-color: var(--secondary-color);
    z-index: 0;
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.timeline-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

/* Карточки с принципами */
.principle-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.principle-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Контактная информация */
.contact-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 1.5rem;
    color: white;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.contact-details .uk-card {
    transition: all 0.3s ease;
}

.contact-details .uk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Формы */
.uk-form-label {
    font-weight: 600;
    color: var(--text-color);
}

.uk-input, .uk-select, .uk-textarea {
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.uk-input:focus, .uk-select:focus, .uk-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 117, 99, 0.1);
}

/* Форма телефона */
.iti {
    width: 100%;
}

/* Слайдер кейсов */
.case-study-swiper {
    padding-bottom: 50px;
}

.case-study-swiper .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.case-study-swiper .swiper-button-next,
.case-study-swiper .swiper-button-prev {
    color: var(--primary-color);
}

/* Команда */
.team-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
}

/* Модальные окна */
.uk-modal-dialog {
    border-radius: 8px;
}

.uk-modal-title {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 60px;
}

.site-footer h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.site-footer a {
    color: var(--neutral-color);
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: white;
    text-decoration: none;
}

.footer-logo {
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(33, 33, 33, 0.95);
    color: white;
    z-index: 9999;
    padding: 1.5rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-banner h3 {
    color: white;
    margin-bottom: 0.5rem;
}

/* Страницы с правовой информацией */
.legal-content {
    padding-top: calc(var(--header-height) + 2rem);
}

.legal-text h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
}

.legal-text h3 {
    color: var(--secondary-text);
    font-weight: 600;
}

.legal-text ul {
    margin-bottom: 2rem;
}

.legal-text a {
    text-decoration: underline;
}

/* Отзывчивый дизайн */
@media (max-width: 959px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .infographic-timeline::before {
        display: none;
    }
    
    .timeline-step {
        margin-bottom: 2rem;
    }
    
    .site-header .uk-navbar-nav > li > a {
        min-height: 60px;
    }
}

@media (max-width: 639px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .uk-text-lead {
        font-size: 1.2rem;
    }
    
    .uk-heading-medium {
        font-size: 2.5rem;
    }
    
    .uk-heading-small {
        font-size: 2rem;
    }
    
    .cookie-banner .uk-button {
        margin-top: 1rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fadeIn {
    animation: fadeIn 1s ease-in-out;
}

.slideUp {
    animation: slideUp 1s ease-in-out;
}

/* Интеграция с международным телефонным вводом */
.iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags@2x.png");
    }
}