/* Sailer Painting Theme - Vibrant Brushstroke Design */

/* Основные цвета в соответствии с дизайн-концепцией */
:root {
    --ocean-blue: #1e40af;
    --deep-ocean: #1e3a8a;
    --warm-terracotta: #dc2626;
    --terracotta-light: #f87171;
    --energetic-coral: #fb7185;
    --coral-light: #fda4af;
    --metallic-gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    --matte-gray: #374151;
    --gloss-white: #fefefe;
    --soft-gray: #f3f4f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --pure-white: #ffffff;
    --pure-black: #000000;
}

/* Глобальный сброс для правильного наследования цветов */
[class*="text-"] strong,
[class*="text-"] b,
[style*="color"] strong,
[style*="color"] b,
.text-white strong, .text-white b,
.text-light strong, .text-light b {
    color: inherit;
}

/* Основная типографика */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background-color: var(--pure-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Hero секция с градиентом мазков кисти */
.painting-hero {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--deep-ocean) 25%, var(--warm-terracotta) 50%, var(--energetic-coral) 75%, var(--metallic-gold) 100%);
    background-size: 400% 400%;
    animation: brushstrokeFlow 8s ease-in-out infinite;
    color: var(--pure-white);
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.painting-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.painting-hero .container {
    position: relative;
    z-index: 2;
}

.painting-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    color: var(--pure-white);
}

.painting-hero h2 {
    color: var(--pure-white);
}

.painting-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

@keyframes brushstrokeFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Диагональные элементы */
.diagonal-section {
    position: relative;
    overflow: hidden;
}

.diagonal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(245, 158, 11, 0.1) 50%, transparent 70%);
    transform: skewY(-3deg);
    z-index: 1;
}

.diagonal-section .container {
    position: relative;
    z-index: 2;
}

/* Glassmorphism карточки */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.glass-card h3 {
    color: var(--ocean-blue);
    margin-bottom: 1rem;
}

/* Кнопки в стиле малярной кисти */
.paintbrush-button {
    background: linear-gradient(45deg, var(--metallic-gold), var(--gold-light));
    border: 2px solid var(--gold-dark);
    color: var(--pure-white);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.paintbrush-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.paintbrush-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.paintbrush-button:hover::before {
    left: 100%;
}

.paintbrush-button:active {
    transform: translateY(0);
}

/* Вторичная кнопка */
.secondary-button {
    background: transparent;
    border: 2px solid var(--pure-white);
    color: var(--pure-white);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.secondary-button:hover {
    background: var(--pure-white);
    color: var(--ocean-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Заголовки секций */
.section-title {
    font-size: 2.5rem;
    color: var(--ocean-blue);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--metallic-gold), var(--gold-light));
    border-radius: 2px;
}

/* Анимация разбрызгивания краски */
.paint-splash {
    position: relative;
    overflow: hidden;
}

.paint-splash::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(251, 113, 133, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    animation: splashEffect 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes splashEffect {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    50% { transform: translate(-50%, -50%) scale(1.1) rotate(180deg); }
}

/* Футер */
.site-footer {
    background: linear-gradient(135deg, var(--matte-gray), var(--deep-ocean));
    color: var(--pure-white);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.site-footer h4 {
    color: var(--metallic-gold);
    margin-bottom: 1rem;
}

.site-footer a {
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--metallic-gold);
}

/* Cookie баннер */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: rgba(55, 65, 81, 0.95);
    backdrop-filter: blur(10px);
    color: var(--pure-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.cookie-consent-banner h5 {
    color: var(--metallic-gold);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.cookie-consent-banner p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.cookie-accept {
    background: var(--metallic-gold);
    color: var(--pure-white);
}

.cookie-accept:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.cookie-decline {
    background: transparent;
    color: var(--pure-white);
    border: 1px solid var(--pure-white);
}

.cookie-decline:hover {
    background: var(--pure-white);
    color: var(--matte-gray);
}

/* Навигация */
.main-navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ocean-blue);
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: var(--metallic-gold);
    color: var(--pure-white);
    transform: translateY(-1px);
}

/* Мобильное меню */
.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ocean-blue);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pure-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
}

/* Карточки услуг */
.service-card {
    background: var(--pure-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--metallic-gold);
}

.service-card h3 {
    color: var(--ocean-blue);
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--metallic-gold);
    margin: 1rem 0;
}

/* Отзывы */
.testimonial-card {
    background: var(--soft-gray);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--metallic-gold);
    margin-bottom: 2rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--ocean-blue);
    margin-top: 1rem;
}

.testimonial-location {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Контактная форма */
.contact-form {
    background: var(--pure-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--pure-white);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--metallic-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
    .painting-hero h1 {
        font-size: 2.5rem;
    }
    
    .painting-hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .paintbrush-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .cookie-consent-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .painting-hero {
        padding: 80px 0;
    }
    
    .painting-hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Адаптивные стили для мобильного меню */
@media (min-width: 992px) {
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .navbar-nav.d-lg-flex {
        display: none !important;
    }
}