/* Основные стили */
:root {
    --primary-color: #0b3b78;
    --secondary-color: #f2f2f2;
    --accent-color: #c8a431;
    --text-color: #242424;
    --light-text: #fff;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 3px;
}

/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    letter-spacing: 0.2px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--accent-color);
}

/* Навигация */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

.lang-switch {
    display: flex;
    align-items: center;
    margin-left: 25px;
}

.lang-switch a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 10px;
    font-weight: 500;
    cursor: pointer;
}

.lang-switch a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Общие стили секций */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Главный баннер */
.hero {
    background: linear-gradient(rgba(11, 59, 120, 0.85), rgba(11, 59, 120, 0.9)), url('https://kazpravda.kz/uploads/redactors/images/597081ecc63dc1500545516.jpg') no-repeat center/cover;
    color: var(--light-text);
    padding: 150px 0 100px;
    text-align: center;
    background-attachment: fixed;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки */
.cta-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-btn:hover {
    background-color: #b99428;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.submit-btn {
    background-color: var(--primary-color);
    width: 100%;
    font-size: 1.1rem;
    padding: 14px;
    font-family: 'Montserrat', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.submit-btn:hover {
    background-color: #0a3f87;
}

/* Секция услуг */
.services {
    padding: 90px 0;
    background-color: var(--secondary-color);
    position: relative;
}

/* Слайдер услуг */
.services-slider-container {
    position: relative;
    width: 100%;
    max-width: 965px;
    margin: 0 auto;
    padding-bottom: 30px;
    overflow: hidden;
}

.services-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    cursor: grab;
    flex-wrap: nowrap !important;
    gap: 25px;
}

.services-grid::-webkit-scrollbar {
    display: none;
}

.service-card {
    flex: 0 0 auto !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-icon {
    background-color: var(--primary-color);
    color: var(--light-text);
    font-size: 1.8rem;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-content p {
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent-color);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Кнопки управления слайдером */
.services-slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
    padding: 0;
}

.slider-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0.8;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.slider-prev {
    left: 100px;
}

.slider-next {
    right: 100px;
}

.slider-control:hover {
    background-color: var(--accent-color);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.slider-control:disabled {
    background-color: #ccc;
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Секция о компании */
.about {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-text h2::after {
    content: '';
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.about-text p {
    margin: 30px 0;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Секция с отзывами */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://i.ytimg.com/vi/oSIdNQnPa5E/maxresdefault.jpg') no-repeat center/cover;
    background-attachment: fixed;
    color: var(--light-text);
}

/* Стилизация секционных заголовков со светлым текстом */
.contact-form-section .section-title h2,
.contact-form-section .section-title p,
.testimonials .section-title h2,
.testimonials .section-title p {
    color: var(--light-text);
}

/* Форма заявки */
.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(rgba(11, 59, 120, 0.9), rgba(11, 59, 120, 0.95)), url('https://kazpravda.kz/uploads/redactors/images/597081ecc63dc1500545516.jpg') no-repeat center/cover;
    color: var(--light-text);
    background-attachment: fixed;
}

.contact-form-container {
    display: flex;
    justify-content: center;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: #fafafa;
    color: #333;
    font-family: 'Montserrat', Arial, sans-serif;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(11, 59, 120, 0.15);
    background-color: #fff;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

/* Контакты и карта */
.contact-map {
    padding: 80px 0;
}

.contact-map-container {
    display: flex;
    gap: 30px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info h2::after {
    content: '';
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
}

.contact-item-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item-details p, 
.contact-item-details a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item-details a:hover {
    color: var(--primary-color);
}

/* Социальные ссылки (для контактов и футера) */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.map-container {
    flex: 1;
    min-height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Подвал */
footer {
    background-color: #0a3f87;
    color: var(--light-text);
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col h3::after {
    content: '';
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    margin-bottom: 15px;
}

.footer-contact-item a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--accent-color);
}

.footer-contact-icon {
    margin-right: 10px;
    min-width: 20px;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 350px;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    border-left: 4px solid;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: #fff;
    color: var(--text-color);
    border-color: var(--accent-color);
}

.notification.error {
    background-color: #fff;
    color: var(--text-color);
    border-color: #e74c3c;
}

.notification-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

.notification.success .notification-icon {
    color: var(--accent-color);
}

.notification.error .notification-icon {
    color: #e74c3c;
}

.notification-content {
    flex: 1;
}

.notification-close {
    color: #999;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #555;
}

/* Медиа-запросы */
@media screen and (max-width: 992px) {
    .about-content,
    .contact-map-container {
        flex-direction: column;
    }
    
    .map-container {
        min-height: 300px;
    }
    
    .services-slider-container {
        max-width: 650px;
    }
}

@media screen and (max-width: 768px) {
    /* Мобильное меню */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Слайдер для мобильных */
    .service-card {
        width: 260px !important;
        scroll-snap-align: center;
        margin-bottom: 10px;
    }
    
    .slider-control {
        display: none;
    }
    
    .services-grid {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
    }
    
    .slider-indicators {
        margin-top: 15px;
    }
    
    .slider-indicator {
        width: 12px;
        height: 12px;
    }
    
    /* Прочие элементы */
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .header-container {
        padding: 10px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}