/* Global Styles */
:root {
    --primary-color: #5b6cff;
    --secondary-color: #4a5568;
    --accent-color: #6366f1;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #5b6cff 0%, #8b5cf6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.logo-text {
    color: var(--primary-color);
}

.logo-accent {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(91, 108, 255, 0.1) 2px,
        rgba(91, 108, 255, 0.1) 20px
    );
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(91, 108, 255, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-light {
    background: white;
    color: var(--primary-color);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.floating-brick {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 10px;
    animation: float 6s ease-in-out infinite;
}

.brick-1 {
    top: 10%;
    right: -30px;
    animation-delay: 0s;
}

.brick-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 2s;
}

.brick-3 {
    top: 50%;
    right: -50px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--light-color);
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(91, 108, 255, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-secondary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.brick-pattern {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background: repeating-linear-gradient(
        0deg,
        var(--primary-color),
        var(--primary-color) 10px,
        transparent 10px,
        transparent 20px
    ),
    repeating-linear-gradient(
        90deg,
        var(--primary-color),
        var(--primary-color) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.1;
    border-radius: 10px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 1.5rem 0 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.feature-item p {
    color: var(--text-light);
    margin: 0;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: var(--light-color);
}

.process-step {
    position: relative;
    padding: 2rem 1rem;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.process-step h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.process-step p {
    color: var(--text-light);
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
}

.process-step:last-child::after {
    display: none;
}

/* Founder Section */
.founder-section {
    padding: 100px 0;
    background: white;
}

.founder-card {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.founder-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.founder-card h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.founder-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.founder-bio {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.founder-quote {
    font-style: italic;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.company-values {
    padding: 2rem;
}

.company-values h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.value-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.value-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.value-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-light);
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-secondary);
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--light-color);
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-light);
    margin: 0;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 108, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand .logo-accent {
    color: var(--primary-color);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 1rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .process-step::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
}




/* Medium Devices (Tablets, 768px–1024px) */
@media (max-width: 1024px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-section .col-lg-6 {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image img {
        max-width: 80%;
        margin-top: 2rem;
    }

    .about-section .row {
        flex-direction: column;
        text-align: center;
    }

    .about-image-wrapper {
        margin-bottom: 2rem;
    }

    .process-step::after {
        display: none;
    }

    .company-values {
        text-align: center;
    }
}

/* Small Devices (Phones < 767px) */
@media (max-width: 767px) {
    /* Navbar */
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 80px 0 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        margin: 1rem auto 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .hero-image img {
        width: 100%;
        margin-top: 2rem;
    }

    /* Services */
    .service-card {
        padding: 1.75rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* About */
    .about-section {
        text-align: center;
    }

    .about-features {
        align-items: center;
    }

    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Process */
    .process-step {
        margin-bottom: 2rem;
    }

    /* Founder */
    .founder-card {
        padding: 2rem;
    }

    .founder-image {
        width: 120px;
        height: 120px;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Contact */
    .contact-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    /* Footer */
    .footer {
        text-align: center;
    }

    .footer .row > div {
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 1.5rem;
    }

    .footer-links {
        display: inline-block;
        text-align: left;
    }
}

/* ===== Final Responsive & Overflow Fix ===== */

/* Убираем горизонтальный скролл только на узких экранах */
@media (max-width: 991px) {
    html, body {
        overflow-x: hidden !important;
        width: 100%;
    }

    .hero-section,
    .about-section,
    .services-section,
    .process-section,
    .founder-section,
    .cta-section,
    .contact-section,
    .footer {
        overflow-x: hidden;
    }

    /* Исправляем возможный выход элементов за экран */
    .floating-brick {
        left: 0 !important;
        right: 0 !important;
        transform: translateX(0) !important;
    }

    .hero-image img,
    .about-image-wrapper img {
        max-width: 100%;
        height: auto;
    }
}

/* Восстанавливаем нормальное центрирование на десктопе */
@media (min-width: 992px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
        padding-left: 15px;
        padding-right: 15px;
    }

    .row {
        margin-left: -15px;
        margin-right: -15px;
