/* Серо-желтая тема для MoneySimple */

:root {
    /* Основные цвета */
    --primary-color: #5a6268;
    --secondary-color: #f4c430;
    --accent-color: #daa520;
    --dark-gray: #343a40;
    --medium-gray: #6c757d;
    --light-gray: #e9ecef;
    --lighter-gray: #f8f9fa;
    
    /* Желтые оттенки */
    --yellow-light: #fff9e6;
    --yellow-bright: #ffd700;
    
    /* Текстовые цвета */
    --text-dark: #212529;
    --text-muted: #6c757d;
    
    /* Дополнительные */
    --success-color: #28a745;
    --border-color: #dee2e6;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Переопределение Bootstrap цветов */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Общие стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Навигация */
.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Hero секция */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--medium-gray) 100%);
    color: white;
    padding: 120px 0 80px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

/* Секции */
section {
    padding: 80px 0;
}

section h2 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
}

/* Карточки с принципами */
.principle-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--secondary-color);
    height: 100%;
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.principle-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Pricing секция */
.pricing-section {
    background: linear-gradient(135deg, var(--yellow-light) 0%, white 100%);
}

.pricing-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 3px solid var(--secondary-color);
    background: var(--yellow-light);
    box-shadow: 0 0.5rem 1.5rem rgba(244, 196, 48, 0.3);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.pricing-badge {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.pricing-price small {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.pricing-features li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Карточки шагов */
.step-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.step-card:hover {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.step-badge {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-card h4 {
    margin-top: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Карточки ошибок */
.error-card {
    background: var(--lighter-gray);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    transition: all 0.3s ease;
    height: 100%;
}

.error-card:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.error-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Карточки инструментов */
.tool-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
    border-top-color: var(--accent-color);
}

.tool-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.tool-highlight {
    background: var(--yellow-light);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 3px solid var(--accent-color);
}

/* Карточки аудитории */
.audience-card {
    background: linear-gradient(135deg, var(--lighter-gray) 0%, white 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
    height: 100%;
}

.audience-card:hover {
    border-color: var(--secondary-color);
    background: white;
    box-shadow: var(--shadow);
}

.audience-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gray) 100%);
    color: white;
    padding: 100px 0;
}

.cta-section h2 {
    color: white;
}

.cta-section h2::after {
    background: var(--secondary-color);
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Формы */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-control {
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(244, 196, 48, 0.25);
}

textarea.form-control {
    min-height: 150px;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Информационные блоки */
.info-box {
    background: var(--yellow-light);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.info-box h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Футер */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: 2rem 0;
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color) !important;
}

/* Cookie баннер */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-gray);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner p {
    margin-bottom: 1rem;
}

.cookie-banner .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Cookie modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.cookie-category {
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.cookie-category h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-gray);
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    background-color: var(--medium-gray);
    cursor: not-allowed;
}

/* Thank you страница */
.thankyou-card {
    background: white;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--success-color);
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.icon-line {
    height: 5px;
    background-color: var(--success-color);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(76, 175, 80, .5);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: white;
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }
    5% {
        transform: rotate(-45deg);
    }
    12% {
        transform: rotate(-405deg);
    }
    100% {
        transform: rotate(-405deg);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 14px;
        top: 46px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--lighter-gray) 0%, white 100%);
    border-bottom: 3px solid var(--secondary-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .pricing-card.featured {
        transform: scale(1);
        margin-bottom: 2rem;
    }
    
    .cookie-settings-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .cookie-banner,
    .cookie-settings-modal,
    .btn {
        display: none !important;
    }
}
