/* Custom CSS for Evgraffov Website */

/* Root Variables */
:root {
    --primary-color: #f7b70b;
    --primary-dark: #e6a509;
    --primary-light: #f9c42d;
    --dark-color: #212121;
    --light-gray: #f8f9fa;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --font-family: 'Inter', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
}

/* Header Styles */
.header {
    background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand .logo-img {
    max-width: 180px;
    height: auto;
}

.navbar-nav .nav-link {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(33, 33, 33, 0.85), rgba(33, 33, 33, 0.85)),
                url('https://cdn-ru.bitrix24.ru/b682759/landing/621/6217c69246edeeef2054cba6ffe25e27/snimok_ekrana_2023_06_27_v_20_38_20_1x_1x.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(33, 33, 33, 0.85), rgba(33, 33, 33, 0.85)),
                url('https://cdn-ru.bitrix24.ru/b682759/landing/621/6217c69246edeeef2054cba6ffe25e27/snimok_ekrana_2023_06_27_v_20_38_20_1x_1x.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.hero-mobile {
    background-color: var(--dark-color);
}

/* About Section */
.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.advantage-item {
    margin-bottom: 2rem;
}

.advantage-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(247, 183, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Certificate Section */
.certificate-section {
    background-color: var(--light-gray);
}

.certificate-img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Features Section */
.feature-card {
    padding: 2rem 1rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    margin-bottom: 1rem;
}

/* Promotion Section */
.promotion-section {
    background: linear-gradient(rgba(33, 33, 33, 0.9), rgba(33, 33, 33, 0.9)),
                url('https://cdn.bitrix24.site/bitrix/images/landing/business/1920x1080/img4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.promotion-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(33, 33, 33, 0.9), rgba(33, 33, 33, 0.9)),
                url('https://cdn.bitrix24.site/bitrix/images/landing/business/1920x1080/img4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.promotion-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.promotion-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.promotion-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(247, 183, 11, 0.25);
}

.condition-item {
    margin-bottom: 1rem;
}

.condition-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Services Section */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service-img {
    max-width: 100px;
    height: auto;
}

/* Portfolio Section */
.portfolio-stats {
    text-align: center;
}

.stats-number {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
}

/* Clients Section */
.client-img {
    max-width: 170px;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    padding: 10px;
}

.client-img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Partners Section */
.partner-img {
    max-width: 200px;
    height: auto;
}

/* FAQ Section */
.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(247, 183, 11, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(247, 183, 11, 0.25);
}

/* Footer */
.footer {
    background-color: white;
}

.contact-item {
    padding: 1rem;
}

.contact-icon {
    margin-bottom: 1rem;
}

.copyright-section {
    background-color: #121212;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 183, 11, 0.4);
}

.btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 700;
}

.btn-warning:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

/* Forms */
.form-control {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(247, 183, 11, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .stats-number {
        font-size: 3rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .advantage-item {
        text-align: center;
    }
    
    .advantage-icon {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
}

/* Utility Classes */
.text-warning {
    color: var(--primary-color) !important;
}

.bg-warning {
    background-color: var(--primary-color) !important;
}

.border-warning {
    border-color: var(--primary-color) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
