:root {
    --primary-color: #1F4E79;
    --heading-color: #585858;
    --text-color: #0C1319;
    --light-bg: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Общие стили */
.section {
    padding: 60px 0;
    position: relative;
}

/* Светлая секция (по умолчанию) */
.section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Темная секция */
.section.bg-light {
    background: linear-gradient(135deg, rgba(31, 78, 121, 0.03) 0%, rgba(31, 78, 121, 0.07) 100%);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    font-weight: 700;
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
}

/* Навигация */
.navbar {
    background-color: var(--primary-color);
    padding: 10px 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255,255,255,0.8);
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

/* Главный баннер */
.hero {
    height: 500px;
    position: relative;
    background: url('/glav/banner.jpg') no-repeat center center/cover; 
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    margin-top: 76px;
}

/* Делаем оверлей более мягким */
.hero-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(31, 78, 121, 0.4),
        rgba(31, 78, 121, 0.2)
    );
    z-index: 1;
}

/* Добавляем дополнительный слой затемнения */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Усиливаем тени для текста */
.hero-title {
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Roboto Condensed', sans-serif;
    position: relative;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hero-buttons {
    animation: fadeIn 1.5s ease;
    position: relative;
    z-index: 3;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
    border-width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-color: white;
    color: white;
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Убираем специфичные стили для отдельных кнопок */
.hero-buttons .btn-primary,
.hero-buttons .btn-outline-light {
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.hero-scroll-down a {
    color: white;
    font-size: 24px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.hero-scroll-down a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* О компании */
.about-content {
    padding-right: 30px;
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 24px;
}

.feature-item span {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Статистика */
.stat-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--heading-color);
}

/* Услуги */
.service-card {
    background: white;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-content {
    padding: 40px 30px;
    flex: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: var(--primary-color);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    margin: 0 auto 25px;
}

.service-card h3 {
    margin-bottom: 20px;
    color: var(--heading-color);
}

.service-card p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.service-link:hover {
    color: #163a5f;
}

.service-image {
    height: 200px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0 0 15px 15px;
}

.service-card.construction .service-image {
    background-image: url('/glav/se2.jpg');
}

.service-card.engineering .service-image {
    background-image: url('/glav/se1.jpg');
}

.service-card.consulting .service-image {
    background-image: url('/glav/se3.jpg');
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Преимущества */
.feature-box {
    padding: 30px;
    background: white;
    border-radius: 10px;
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Контакты */
.contact-info-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.contact-info-wrapper::after {
    display: none;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.form-control {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

/* Адаптивность */
@media (max-width: 991px) {
    .hero {
        height: 500px;
    }
    .hero-title {
        font-size: 3.2rem;
        font-weight: 400;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 600px;
        margin-top: 66px;
    }
    .hero-title {
        font-size: 2.8rem;
        font-weight: 400;
        margin-bottom: 1.2rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 60px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin: 0;
        padding: 10px 20px;
        font-size: 1rem;
    }

    .hero-scroll-down {
        bottom: 20px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 576px) {
    .hero {
        height: 650px;
    }
    .hero-title {
        font-size: 2.6rem;
    }
}

/* Отзывы */
.testimonials {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.2;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    margin: 0;
    line-height: 1.8;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 30px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
}

/* Обновленные стили для футера */
.footer {
    background: linear-gradient(135deg, #1F4E79 0%, #163a5f 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 15px;
    list-style: none;
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
    color: rgba(255,255,255,0.8);
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-social {
    margin-bottom: 20px;
    padding: 10px 0;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: var(--transition);
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.footer-social a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Обновляем стили для секции преимуществ */
.section.advantages {
    background: linear-gradient(135deg, rgba(31, 78, 121, 0.03) 0%, rgba(31, 78, 121, 0.07) 100%);
}

/* Добавляем стили для карты */
.contact-map {
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.contact-map iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* Обновляем стили кнопок в hero-секции */
.hero-buttons {
    animation: fadeIn 1.5s ease;
    position: relative;
    z-index: 3;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
    border-width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-color: white;
    color: white;
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Добавляем медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin: 0; /* Убираем горизонтальные отступы */
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
} 

/* Добавляем стили для мобильного меню */
@media (max-width: 991px) {
    .navbar-collapse {
        text-align: center;
        padding: 20px 0;
    }

    .navbar-nav {
        margin: 0 auto;
    }

    .navbar-nav .nav-item {
        margin: 12px 0;
    }

    .navbar-nav .nav-link {
        display: inline-block;
        padding: 10px 25px;
        font-size: 1.15rem;
    }
} 

/* Добавляем стили для капчи */
.captcha-wrapper {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.captcha-question {
    font-weight: 600;
    margin: 0 10px;
} 

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .feature-item span {
        font-size: 1.1rem;
    }
} 

/* Обновляем стили для контактов */
.contact-item a,
.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
}

.footer-contact a:hover {
    color: white;
}

/* Обновляем стиль для ссылки на все услуги */
.service-all-link {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    transition: var(--transition);
    background: transparent;
    letter-spacing: 0.5px;
}

.service-all-link i {
    margin-left: 8px;
    transition: var(--transition);
    position: relative;
    top: 1px;
}

.service-all-link:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(31, 78, 121, 0.3);
}

.service-all-link:hover i {
    transform: translateX(5px);
}

/* Добавляем адаптивность */
@media (max-width: 768px) {
    .service-all-link {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

/* Стили для кнопки "Все контакты" */
.contact-all-link {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    transition: var(--transition);
    background: transparent;
    letter-spacing: 0.5px;
}

.contact-all-link i {
    margin-left: 8px;
    transition: var(--transition);
    position: relative;
    top: 1px;
}

.contact-all-link:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(31, 78, 121, 0.3);
}

.contact-all-link:hover i {
    transform: translateX(5px);
}

/* Адаптивность для кнопки */
@media (max-width: 768px) {
    .contact-all-link {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

