/* СБРОС СТИЛЕЙ И БАЗОВЫЕ НАСТРОЙКИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ШАПКА */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.logo a {
    text-decoration: none;
    color: #d32f2f;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
}

.logo span {
    font-size: 14px;
    color: #666;
}

.header-contacts .phone {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

.header-contacts .phone i {
    color: #d32f2f;
    margin-right: 5px;
}

.auth-icons {
    display: flex;
    gap: 10px;
}

.auth-btn {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.auth-btn {
    background-color: #f5f5f5;
    color: #333;
}

.auth-btn.register {
    background-color: #d32f2f;
    color: white;
}

.auth-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* НАВИГАЦИЯ */
.navbar {
    background-color: #2c3e50;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar li {
    flex: 1;
}

.navbar a {
    display: block;
    padding: 15px 10px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: 500;
}

.navbar a:hover {
    background-color: #d32f2f;
}

.navbar a i {
    margin-right: 8px;
}


.navbar a.active {
    background: #e74c3c; /* Красный цвет, как у кнопок */
    color: #fff;
    border-radius: 4px;
}


/* ГЛАВНАЯ СЕКЦИЯ */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #d32f2f;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ВИТРИНА И СЛАЙДЕР */
.showcase {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 18px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    padding: 20px;
}

.slide-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-preview {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
}

.desktop-preview {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-preview {
    position: absolute;
    bottom: -30px;
    right: 20px;
    width: 150px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 5px solid white;
}

.slide h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.slide p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.slide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.tag {
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #d32f2f;
}

/* ФУНКЦИОНАЛ КОМПАНИИ */
.work {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.work h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.work-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.work-body a {
    display: block;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.work-body a:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.work-body h3 {
    padding: 20px;
    font-size: 20px;
    color: #2c3e50;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-body img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* КОНТАКТНАЯ ФОРМА */
.contact {
    padding: 80px 0;
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.contact-info h3, .contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    width: 24px;
    margin-right: 10px;
    color: #d32f2f;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    color: #d32f2f;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form button {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #b71c1c;
}

/* ПОДВАЛ */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.footer-info p, .footer-hours p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.footer-info a {
    color: #ddd;
    text-decoration: none;
}

.footer-info a:hover {
    color: white;
}

.footer-hours h4, .footer-social h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #d32f2f;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* МОДАЛЬНЫЕ ОКНА */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-content button {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.modal-link {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.modal-link a {
    color: #d32f2f;
    text-decoration: none;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
    }
    
    .navbar.active {
        display: block;
    }
    
    .navbar ul {
        flex-direction: column;
    }
    
    .auth-icons {
        display: none;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
    
    .mobile-preview {
        width: 100px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .work-body {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}



@media (max-width: 768px) {
    .b2b-leadgen .container > div {
        grid-template-columns: 1fr !important; /* На мобилках ставим в один столбец */
        gap: 30px !important;
    }
    .b2b-leadgen h2 {
        font-size: 28px !important;
    }
    .b2b-leadgen > div > div:last-child {
        padding: 25px !important;
    }
}
