/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-color: #333;
    --light-text: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Typography */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    background: var(--dark-bg);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    color: var(--light-text);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    position: relative;
    margin-bottom: 4rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom 0.3s ease;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner a {
    color: var(--light-text);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 3rem 0;
}

.footer-nav {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    color: var(--light-text);
    text-decoration: none;
    padding: 0 1rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .navbar-collapse {
        display: none;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        padding: 1rem 0;
    }

    footer p {
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .contact-form {
        padding: 1.5rem;
    }

    iframe {
        width: 100%;
        height: 300px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    position: relative;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Grid System */

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 15px;
}

.col-md-6 {
    flex: 0 0 auto;
    width: 47%;
    padding: 0 1rem;
}

.col-md-4 {
    flex: 0 0 auto;
    width: 30%;
    padding: 0 1rem;
}

.col-md-3 {
    flex: 0 0 auto;
    width: 22%;
    padding: 0 1rem;
}

.col-md-12 {
    flex: 0 0 100%;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.navbar-toggler {
    display: none;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

i {
    color: var(--secondary-color);
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-bg);
        padding: 1rem;
        display: none;
    }
    .navbar-collapse.show {
        display: block;
    }
    .navbar-toggler {
        display: block;
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        border: none;
        background: none;
        color: var(--light-text);
        font-size: 2rem;
        cursor: pointer;
    }
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 1rem;
    }
    .col-md-12 {
        flex: 0 0 100%;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
}

/* Добавляем стили для новых секций и карточек */

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-card ul li:before {
    content: '✓';
    color: var(--success-color);
    position: absolute;
    left: 0;
}

/* Statistics Section */
.bg-dark {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.stat-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.process-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 50px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    height: 100%;
}

.testimonial-text {
    position: relative;
    padding: 1.5rem 0;
}

.testimonial-text i {
    color: var(--secondary-color);
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
}

.testimonial-text p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-author h4 {
    margin: 0;
    font-size: 1.1rem;
}

.testimonial-author p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    padding: 2rem 0;
}

.partner-logo {
    max-width: 180px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Enhancement for existing components */

/* Hero Section Enhancement */
.hero {
    background-image: url('../img/hero.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.hero-overlay {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Button Enhancements */
.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.1);
    transition: width 0.3s ease;
}

.btn:hover:after {
    width: 100%;
}

/* Navigation Enhancement */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(44, 62, 80, 0.95);
}

.navbar-brand {
    position: relative;
    padding: 0.5rem 0;
}

.navbar-brand:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar-brand:hover:after {
    width: 100%;
}

/* Feature Cards Enhancement */
.feature-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card i {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Contact Form Enhancement */
.form-group input,
.form-group textarea {
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    background: white;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Footer Enhancement */
footer {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1a252f 100%);
}

.footer-nav a {
    position: relative;
}

.footer-nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.footer-nav a:hover:after {
    width: 100%;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .process-step:not(:last-child):after {
        display: none;
    }

    .stat-card {
        margin-bottom: 2rem;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Cookie Banner Enhancement */
.cookie-banner {
    background: linear-gradient(90deg, var(--dark-bg) 0%, #1a252f 100%);
}

.cookie-banner.show {
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Section Title Enhancement */
.section-title {
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}