/* Основные стили */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #32ade2;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Обновленный контейнер с оптимальной шириной */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 2px solid var(--secondary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    min-width: 200px;
}

.logo-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    position: relative;
    padding-left: 10px;
    line-height: 1.3;
}

.logo-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
    width: 2px;
    background-color: var(--secondary-color);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.phone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

/* Обновленный стиль для кнопки "Позвонить нам" */
.order-btn {
    background: linear-gradient(45deg, #d35400, #e67e22);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    box-sizing: border-box;
    white-space: nowrap;
}

.order-btn:hover {
    background: linear-gradient(45deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mobile-call-logo {
    display: none;
    color: var(--secondary-color);
    font-size: 24px;
    cursor: pointer;
}

/* Меню */
nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    height: 50px;
}

/* Обновленные стили для навигации */
nav ul li a {
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    background-color: var(--secondary-color);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    min-width: max-content;
    box-sizing: border-box;
    font-size: 14px;
}

nav ul li a:hover {
    background: linear-gradient(45deg, #2a8bc8, #1e7ab3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

.menu-btn {
    display: none;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    margin-right: 10px;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s;
}

/* Стили для активного состояния меню */
.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Герой секция */
.hero {
    background: url('/images/hero.jpg') no-repeat center center/cover;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.hero .container {
    display: flex;
    justify-content: flex-start;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 30px;
    line-height: 1.2;
    color: var(--primary-color);
    max-width: 800px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    color: white;
}

.hero .btn-order {
    background: linear-gradient(45deg, #d35400, #e67e22);
}

.hero .btn-call {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero .btn i {
    margin-right: 10px;
    font-size: 18px;
    color: white;
}

/* Адаптация для мобильных устройств */
@media (max-width: 1200px) {
    .header-container {
        gap: 10px;
        padding: 10px;
    }
    
    .logo-text {
        font-size: 13px;
    }
    
    .phone-link {
        font-size: 13px;
    }
    
    nav ul li a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .logo-text {
        display: none;
    }
    
    .header-contacts {
        display: none;
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    nav ul {
        flex-direction: column;
        height: auto;
    }
    
    nav ul li a {
        width: 100%;
        height: auto;
        padding: 10px 0;
        background: none;
        color: var(--text-color);
        justify-content: flex-start;
    }
    
    nav ul li a:hover {
        background: none;
        color: var(--secondary-color);
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .header-container {
        padding: 8px 10px;
    }
    
    .menu-btn {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s;
        z-index: 1000;
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-bottom: 10px;
    }
    
    .hero .container {
        justify-content: center;
    }
    
    .hero-content {
        padding: 30px;
        background-color: rgba(255, 255, 255, 0.85);
        border-radius: 8px;
        margin-top: 40px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero {
        background-image: url('/images/hero-mobile.jpg');
    }
    
    section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .order-btn {
        padding: 8px 15px;
        font-size: 13px;
        height: 40px;
    }
    
    .logo-container {
        min-width: auto;
    }
    
    .hero .btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 160px;
    }
}

/* Остальные стили остаются без изменений */
/* ... (все остальные стили из вашего файла) ... */



/* Центрирование секций */
section {
    padding: 80px 0;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Сетки с центрированием */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 1200px; /* Ограничиваем максимальную ширину */
    margin: 0 auto; /* Центрируем сетку */
    padding: 0 15px; /* Добавляем отступы по бокам */
}

/* Обновляем стили для сетки портфолио */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Меняем с 300px на 250px */
    gap: 30px; /* Увеличиваем промежуток для соответствия advantages */
    max-width: 1200px; /* Добавляем ограничение максимальной ширины */
    margin: 0 auto; /* Центрируем сетку */
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Карточки с ограничением ширины */
.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    max-width: 100%;
}


.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* О нас */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 15px;
}

.about-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    max-width: 100%;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.advantage-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Портфолио */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Делаем карточки портфолио более похожими на advantages */
.portfolio-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}



.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(46, 64, 83, 0.9);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* Обновляем стили для сетки цен */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Меняем с 300px на 250px */
    gap: 30px; /* Увеличиваем промежуток для соответствия advantages */
    max-width: 1200px; /* Добавляем ограничение максимальной ширины */
    margin: 0 auto; /* Центрируем сетку */
}

/* Обновляем стили карточек цен для единообразия */
.price-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.price-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.price-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.price-header .price {
    font-size: 36px;
    font-weight: 700;
}

.price-body {
    padding: 20px;
}

.price-feature {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.price-feature:last-child {
    border-bottom: none;
}

.price-footer {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
}

/* Контакты */
.contact {
    background-color: #f9f9f9;
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
    align-items: center; /* Изменено с flex-start на center */
    text-align: left; /* Добавлено для выравнивания текста */
}

.contact-details {
    flex: 1; /* Добавлено для правильного распределения пространства */
}

.contact-icon {
    color: var(--secondary-color);
    font-size: 20px;
    margin-right: 15px;
    margin-top: 3px;
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 18px;
    text-align: left; /* Добавлено для выравнивания */
}

.contact-details p, 
.contact-details a {
    text-align: left; /* Добавлено для выравнивания */
    display: block; /* Для правильного переноса строк */
    margin-bottom: 5px; /* Добавлено для отступов между строками */
}

.contact-details a:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего элемента */
}

.contact-details a {
    color: var(--text-color);
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--secondary-color);
}


.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center; /* Центрируем содержимое блока */
}

.contact-info h3 {
    text-align: center; /* Центрируем заголовок */
}

.contact-items-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Выравниваем элементы по левому краю внутри контейнера */
    max-width: 400px; /* Ограничиваем ширину для лучшего вида */
    margin: 0 auto; /* Центрируем контейнер */
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.requisites {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.requisites h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.requisites p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.contact-form h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(45deg, #d35400, #e67e22);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: linear-gradient(45deg, #e67e22, #d35400);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}






/* Подвал */
.footer {
    background-color: var(--primary-color);
    color: white;
    position: relative;
    padding-top: 80px;
    margin-top: 80px;
}

.footer-wave {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo {
    font-size: 28px;
    color: white;
}

.footer-logo .logo span {
    color: var(--secondary-color);
}

.footer-logo img {
    height: 50px;
    width: auto;
}



.footer-about {
    margin-bottom: 25px;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contacts {
    list-style: none;
}

.footer-contacts li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.footer-contacts i {
    margin-right: 10px;
    color: var(--secondary-color);
    margin-top: 3px;
}

.footer-contacts a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contacts a:hover {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    opacity: 0.7;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #c0392b;
    transform: translateY(-5px);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.highlight {
    animation: pulse 2s infinite;
}

/* Дополнительные стили для форм */
.unified-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 800px;
}

.unified-form h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.form-description {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

.modern-form .form-group {
    margin-bottom: 20px;
}

.modern-form .input-wrapper {
    position: relative;
}

.modern-form .input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.modern-form textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--secondary-color), #d62c1a);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #d62c1a, var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.submit-btn i {
    margin-right: 10px;
}

.privacy-notice {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
}

.privacy-notice i {
    color: var(--secondary-color);
    margin-right: 5px;
}

/* Стили для статистики */
.statistic-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/stats-bg.jpg') no-repeat center center/cover;
    padding: 60px 0;
    color: white;
    text-align: center;
}

.statistic-holder {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.statistic-block {
    padding: 20px;
    margin: 10px;
}

.statistic-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.statistic-text {
    font-size: 18px;
}

/* Обновленные стили для блока отзывов */
.testimonials {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.testimonial-slide {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: auto;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    text-align: left;
    flex: 1;
}

.testimonial-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.testimonial-content p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slide {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .testimonial-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .testimonial-content {
        text-align: center;
    }
}


/* Стили для FAQ */
.faq-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: none; /* Убираем ограничение высоты */
    opacity: 1;
    overflow: visible; /* Разрешаем полное отображение */
    height: auto; /* Автоматическая высота */
}

/* Убираем все ограничения высоты для контента */
.faq-answer p {
    margin: 0;
    line-height: 1.6;
    white-space: normal; /* Разрешаем перенос строк */
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .faq-question {
        padding: 15px;
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px;
        max-height: none; /* Убираем ограничение для мобильных */
        height: auto;
    }
    
    /* Убедимся, что текст хорошо читается на мобильных */
    .faq-answer p {
        font-size: 15px;
        line-height: 1.5;
    }
}

/* Дополнительные стили для лучшего отображения */
.faq-answer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration: underline;
}


/* Медиазапросы */
@media (max-width: 992px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        order: -1;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form {
        padding: 20px;
    }
}


@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s;
        z-index: 1000;
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-bottom: 15px;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .header-phone {
        order: 1;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        display: none;
    }
    
    .header-phone.active {
        display: flex;
    }
    
    /* Показываем логотип звонка в мобильной версии */
    .mobile-call-logo {
        display: block;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    section {
        padding: 60px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }

    .testimonial-slide {
        flex-direction: column;
    }
    
    .testimonial-image,
    .testimonial-content {
        flex: 0 0 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .prices-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}


/* Стили для раздела "О компании" */
.about {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.about1 {
    padding: 80px 0;
    background-color: #f9f9f9;
}


.highlight-box {
    background-color: white;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin-bottom: 30px;
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.highlight-box ul {
    list-style-type: none;
}

.highlight-box ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.highlight-box ul li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        order: -1;
    }
    
    .work-steps div {
        max-width: 100%;
    }
}


/* Стили для нескольких номеров в шапке */
.header-phone .phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

@media (max-width: 768px) {
    .header-phone .phone-numbers {
        align-items: center;
        text-align: center;
    }
    
    .header-phone .phone-link {
        flex-direction: column;
        align-items: center;
    }
    
    .header-phone .phone-icon {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
  .hero {
    background-image: url('/images/hero-mobile.jpg');
    background-position: center center;
    background-size: cover;
  }
}

/* Для очень широких экранов */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
}


/* Стили для блока преимуществ */
.advantages-text-block {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.advantages-text-column {
    margin-bottom: 25px;
}

.advantage-line {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: left;
    position: relative;
    padding-left: 30px;
}

.advantage-title {
    color: var(--primary-color);
    font-weight: 600;
}

.advantages-subtitle h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-top: 20px;
    position: relative;
    display: inline-block;
}

.advantages-subtitle h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Декоративные элементы */
.advantage-line:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .advantage-line {
        font-size: 16px;
        padding-left: 25px;
    }
    
    .advantages-subtitle h3 {
        font-size: 20px;
    }
}



@media (max-width: 992px) {
    nav ul {
        flex-direction: column;
        height: auto;
    }
    
    nav ul li a {
        width: 100%;
        height: auto;
        padding: 10px 0;
        background: none;
        color: var(--text-color);
        justify-content: flex-start;
    }
    
    nav ul li a:hover {
        background: none;
        color: var(--secondary-color);
        transform: none;
        box-shadow: none;
    }
}

/* Стили для блока about1 */
.about-main-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}


.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

/* Стили для блока about */
.highlight-box {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--secondary-color);
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.advantages-list {
    list-style-type: none;
    padding-left: 0;
}

.advantages-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.advantages-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.services-highlight {
    margin-bottom: 40px;
}

.services-highlight h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card h5 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.service-card ul {
    list-style-type: none;
    padding-left: 20px;
}

.service-card ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 25px;
}

.service-card ul li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 20px;
}

.advantages-section {
    margin-bottom: 40px;
}

.advantages-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.advantages-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.advantages-tags span {
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
}

.work-steps {
    margin-bottom: 40px;
}

.work-steps h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.step {
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    font-weight: bold;
}

.contact-info {
    margin-top: 40px;
    text-align: center;
}

.contact-info h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 22px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-links a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-links i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-message {
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .about-main-title {
        font-size: 24px;
    }
    
    .about-main-description {
        font-size: 16px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-tags span {
        width: 100%;
        text-align: center;
    }
    
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Общие стили для обоих вариантов */
.about-main-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.3;
}

.about-main-description {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.6;
}

/* Стили для Варианта 1 */
.image-collage {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}


.collage-main {
    flex: 2;
}

.collage-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.collage-secondary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.collage-secondary img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text-overlay {
    position: absolute;
    top: -50px;
    left: 50px;
    background: rgba(255,255,255,0.9);
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Стили для Варианта 2 */
.text-image-combo {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.combo-text {
    flex: 1;
    padding: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
    position: relative;
}

.combo-images {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.combo-images .main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.combo-images .overlay-image {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    bottom: -30px;
    right: -30px;
    border: 5px solid white;
    z-index: 3;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .image-collage {
        flex-direction: column;
    }
    
    .collage-secondary {
        flex-direction: row;
    }
    
    .collage-secondary img {
        height: 150px;
    }
    
    .about-main-title {
        font-size: 24px;
    }
    
    .about-main-description {
        font-size: 16px;
    }
}


/* Стили для мобильной кнопки звонка */
.mobile-call-btn {
    display: none; /* По умолчанию скрыта */
    background: linear-gradient(45deg, #d35400, #e67e22);
    color: white;
    padding: 12px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
    height: 40px;
    box-sizing: border-box;
    margin-right: 10px;
}

.mobile-call-btn i {
    margin-right: 5px;
}

/* Показываем кнопку только на мобильных */
@media (max-width: 992px) {
    .mobile-call-btn {
        display: flex;
    }
    
    /* Скрываем обычную кнопку в мобильной версии */
    .header-contacts .order-btn {
        display: none;
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-call-btn span {
        display: none;
    }
    
    .mobile-call-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }
    
    .mobile-call-btn i {
        margin-right: 0;
        font-size: 18px;
    }
}

/* Обновленные стили для мобильной версии отзывов */
@media (max-width: 768px) {
    .testimonial-slider {
        display: block;
        overflow-x: visible;
        padding: 0;
        scroll-snap-type: none;
    }

    .testimonial-slide {
        width: 100%;
        min-width: 100%;
        margin-bottom: 20px;
        flex-direction: row;
        align-items: flex-start;
        height: auto;
    }

    .testimonial-slide:last-child {
        margin-bottom: 0;
    }

    .testimonial-image {
        width: 80px;
        height: 80px;
        margin: 0 15px 0 0;
        flex-shrink: 0;
    }

    .testimonial-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .testimonial-content {
        text-align: left;
        flex: 1;
    }

    .testimonial-content h3 {
        margin-bottom: 10px;
        font-size: 18px;
        color: var(--primary-color);
    }

    .testimonial-content p {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .testimonial-slide {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .testimonial-image {
        margin: 0 0 15px 0;
    }

    .testimonial-content {
        text-align: center;
    }
}

/* Стиль для активного пункта меню */
nav ul li a.active {
    background-color: var(--secondary-color);
    color: white;
}


/* Стили для политики конфиденциальности и пользовательского соглашения */
.privacy-policy, .user-agreement {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.policy-content, .agreement-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.policy-section, .agreement-section {
    margin-bottom: 30px;
}

.policy-section h3, .agreement-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.policy-section p, .agreement-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.policy-section ul, .agreement-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.policy-section li, .agreement-section li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.policy-section li:before, .agreement-section li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 18px;
}

@media (max-width: 768px) {
    .policy-content, .agreement-content {
        padding: 20px;
    }
    
    .policy-section h3, .agreement-section h3 {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .logo-container img {
        width: 70%; /* Уменьшаем на 30% */
        height: auto;
    }
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.project-img {
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
    position: relative;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-light);
}

.btn-details {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-details:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}



/* Стили для карусели портфолио */
.portfolio-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.portfolio-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    padding: 20px 0;
}

.portfolio-item {
    min-width: 350px;
    flex: 0 0 calc(33.333% - 20px);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.view-plan-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-plan-btn:hover {
    background: var(--primary-color);
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}



/* Модальное окно для планировки */
.plan-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.plan-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plan-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.close-plan-modal {
    position: absolute;
    top: -40px;
    right: -5px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-plan-modal:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .portfolio-item {
        min-width: 280px;
    }
    
    .portfolio-slider {
        gap: 15px;
    }
}


/* Стили для раздела технологий */
.technologies {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.tech-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tech-tab {
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tech-tab.active {
    background: var(--secondary-color);
    color: white;
}

.tech-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tech-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tech-description {
    display: none;
    padding: 30px;
}

.tech-description.active {
    display: flex;
    gap: 40px;
}

.tech-media {
    flex: 1;
}

.tech-text {
    flex: 1;
}

.tech-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tech-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.tech-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.tech-features {
    list-style: none;
    margin: 20px 0;
}

.tech-features li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.tech-features i {
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.tech-stats {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.tech-comparison table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.tech-comparison th, .tech-comparison td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tech-comparison th {
    background: var(--primary-color);
    color: white;
}

.tech-comparison tr:nth-child(even) {
    background: #f9f9f9;
}

.tech-gallery {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-thumb:hover {
    transform: scale(1.1);
}

/* Существующие стили */
.tech-benefits {
    margin-top: 60px;
}

.benefits-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tech-benefits h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.tech-benefits h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Ваши новые стили добавляются здесь */
.tech-benefits {
    margin-top: 60px;
    position: relative;
}

.benefits-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.benefits-slider {
    display: flex;
    gap: 30px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 20px 0;
    margin: 0 -15px;
}

.benefit-item {
    min-width: calc(33.333% - 20px);
    scroll-snap-align: start;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s;
    flex: 0 0 auto;
    margin: 0 15px;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary-color);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--secondary-color);
    color: white;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--secondary-color);
}

@media (max-width: 992px) {
    .benefit-item {
        min-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .benefit-item {
        min-width: calc(100% - 20px);
    }
    
    .benefits-container {
        padding: 0 30px;
    }
    
    .carousel-prev, .carousel-next {
        width: 30px;
        height: 30px;
    }
}

.benefit-item {
    min-width: 250px;
    scroll-snap-align: start;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.benefit-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .tech-description.active {
        flex-direction: column;
    }
    
    .tech-media, .tech-text {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tech-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .tech-stats {
        flex-direction: column;
    }
}


.benefits-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Для плавного скролла на iOS */
    scrollbar-width: none; /* Скрыть скроллбар в Firefox */
}

.benefits-slider::-webkit-scrollbar {
    display: none; /* Скрыть скроллбар в Chrome/Safari */
}

.benefit-item {
    min-width: 250px;
    scroll-snap-align: start;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    flex: 0 0 auto;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.benefit-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.benefit-item p {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}


/* Стили для страницы отзывов */
.reviews-page {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-author h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.review-date {
    font-size: 14px;
    color: var(--text-light);
}

.rating {
    color: #FFD700;
    margin-bottom: 15px;
}

.rating i {
    margin-right: 3px;
}

.review-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.leave-review {
    text-align: center;
    padding: 40px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.leave-review h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.leave-review p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.btn-review {
    background: linear-gradient(45deg, #FF0000, #FF3333);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-review:hover {
    background: linear-gradient(45deg, #FF3333, #FF0000);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,51,51,0.3);
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        padding: 20px;
    }
}


/* Portfolio Section - Similar to Technologies */
.portfolio {
    padding: 80px 0;
    background-color: white;
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.portfolio-tab {
    padding: 12px 20px;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 15px;
}

.portfolio-tab.active {
    background: var(--secondary-color);
    color: white;
}

.portfolio-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolio-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.portfolio-description {
    display: none;
    padding: 40px;
}

.portfolio-description.active {
    display: flex;
    gap: 50px;
}

.portfolio-media {
    flex: 1;
    min-width: 0;
}

.portfolio-text {
    flex: 1;
    min-width: 0;
}

.portfolio-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolio-text h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.portfolio-text p {
    margin-bottom: 10px;
    font-size: 16px;
}

.portfolio-text p strong {
    color: var(--primary-color);
}

.view-plan-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-plan-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .portfolio-description.active {
        flex-direction: column;
        gap: 30px;
    }
    
    .portfolio-media, .portfolio-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .portfolio-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .portfolio-description {
        padding: 25px;
    }
}


.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 18px;
}


/* Стили для соцсетей в шапке */
.header-social {
    display: flex;
    gap: 15px;
    margin: 0 20px;
}

.header-social .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.header-social .social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Адаптация для мобильных */
@media (max-width: 992px) {
    .header-social {
        display: none; /* Скрываем на мобильных или уменьшаем */
    }
    
    /* Альтернативный вариант - уменьшаем иконки */
    /*
    .header-social {
        gap: 10px;
        margin: 0 10px;
    }
    .header-social .social-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    */
}

@media (max-width: 768px) {
    .header-social {
        display: none; /* Полностью скрываем на маленьких экранах */
    }
}


/* Стили для блока тарифов */
.pricing {
    background-color: #f5f7fa;
    padding: 80px 0;
}


.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch; /* Добавьте это свойство */
}

.price-card {
    height: 100%; /* Добавьте это свойство */
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.price-header {
    background: var(--primary-color);
    color: white;
    padding: 25px;
    text-align: center;
}

.price-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.price-header .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
}

.price-body {
    flex-grow: 1; /* Это заставит тело карточки занимать все доступное пространство */
}

.price-features {
    list-style: none;
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features i {
    color: var(--secondary-color);
}

.price-footer {
    padding: 25px;
    text-align: center;
    background: #f9f9f9;
}

.btn-order {
    background: linear-gradient(45deg, var(--secondary-color), #2a8bc8);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.btn-order:hover {
    background: linear-gradient(45deg, #2a8bc8, var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .price-card {
        max-width: 350px;
        margin: 0 auto;
    }
}



/* Стили для команды */
.team-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.member-photo {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-member:hover .member-photo img {
    transform: scale(1.1);
}

.member-social {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.team-member:hover .member-social {
    opacity: 1;
}

.member-social a {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.member-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.experience {
    color: var(--text-light);
    font-size: 14px;
}

/* Стили для статистики */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), #1a2a3a);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 18px;
    line-height: 1.4;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-number {
        font-size: 36px;
    }
}



/* Стили для блока партнеров */
.partners-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    text-align: center;
}

.partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    /* Убрал фильтры, которые делали логотипы серыми */
    transition: all 0.3s ease;
}

.partner-item:hover .partner-logo img {
    /* Убрал изменение фильтра при наведении */
    opacity: 1;
    transform: scale(1.05); /* Добавил небольшое увеличение вместо изменения цвета */
}

.partner-name {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .partners-row {
        gap: 20px;
    }
    
    .partner-item {
        min-width: 120px;
    }
    
    .partner-logo {
        height: 60px;
    }
    
    .partner-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .partners-row {
        gap: 15px;
    }
    
    .partner-item {
        min-width: 100px;
    }
    
    .partner-logo {
        height: 50px;
    }
    
    .partner-name {
        font-size: 14px;
    }
}

/* Стили для блока с картой */
.map-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.yandex-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.map-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .map-section {
        padding: 40px 0;
    }
    
    .yandex-map-container {
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .map-description {
        padding: 0 15px;
    }
}

/* Упрощенная карусель портфолио */
.portfolio-media {
    position: relative;
    width: 100%;
}

.portfolio-carousel {
    position: relative;
    width: 100%;
    height: 400px;
}

.portfolio-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.portfolio-slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
}

.portfolio-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: none;
}

.portfolio-image:first-child {
    display: block;
}

/* Убираем старые стили карусели */
.portfolio-carousel,
.portfolio-slider,
.portfolio-slide,
.portfolio-carousel-controls,
.portfolio-carousel-prev,
.portfolio-carousel-next,
.portfolio-carousel-dots {
    display: none !important;
}

/* Упрощенные контролы */
.portfolio-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
}

.portfolio-carousel-prev,
.portfolio-carousel-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.portfolio-carousel-prev:hover,
.portfolio-carousel-next:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}


/* Точки навигации */
/* Убрал стили для точек навигации */
.portfolio-carousel-dots {
    display: none; /* Скрываем контейнер с точками */
}

.portfolio-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.portfolio-carousel-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .portfolio-carousel {
        height: 300px;
    }
    
    .portfolio-carousel-prev,
    .portfolio-carousel-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .portfolio-carousel-controls {
        padding: 0 10px;
    }
}


@media (max-width: 480px) {
    .portfolio-carousel {
        height: 250px;
    }
    
    .portfolio-carousel-prev,
    .portfolio-carousel-next {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Кнопки под изображением */
.portfolio-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.view-plan-btn, .view-houses-btn {
    flex: 1;
    min-width: 200px;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-houses-btn {
    background: #27ae60;
}

.view-plan-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.view-houses-btn:hover {
    background: #219653;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39,174,96,0.3);
}

/* Модальное окно для готовых домов */
.houses-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.houses-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.houses-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
}

.houses-slider {
    display: flex;
    transition: transform 0.5s ease;
    border-radius: 8px;
    overflow: hidden;
}

.houses-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.houses-slide img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.houses-prev, .houses-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.houses-prev:hover, .houses-next:hover {
    background: var(--secondary-color);
}

.houses-prev {
    left: 20px;
}

.houses-next {
    right: 20px;
}

.close-houses-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1002;
}

.close-houses-modal:hover {
    color: var(--secondary-color);
}

.houses-counter {
    color: white;
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .portfolio-image {
        height: 300px;
    }
    
    .portfolio-carousel-prev,
    .portfolio-carousel-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .portfolio-carousel-controls {
        padding: 0 10px;
    }
    
}  

@media (max-width: 480px) {
    .portfolio-image {
        height: 250px;
    }
    
    .portfolio-carousel-prev,
    .portfolio-carousel-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}


/* Унифицированные стили для кнопок портфолио */
.portfolio-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.portfolio-btn {
    flex: 1;
    min-width: 200px;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    text-align: center;
    /* Добавляем фиксированную ширину для одинакового размера */
    min-height: 50px;
    box-sizing: border-box;
}

.view-plan-btn {
    background: var(--secondary-color);
}

.view-houses-btn {
    background: #27ae60;
}

.view-plan-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.view-houses-btn:hover {
    background: #219653;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39,174,96,0.3);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .portfolio-buttons {
        flex-direction: column;
    }
    
    .portfolio-btn {
        min-width: 100%;
        width: 100%;
    }
}

/* Улучшения для модального окна готовых домов */
.houses-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.houses-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.houses-slide img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

/* Гарантия правильного отображения */
.houses-modal-content {
    width: 100%;
    max-width: 90vw;
}

.houses-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}


/* Исправления для модального окна готовых домов */
.houses-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.houses-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    margin: auto;
}

.houses-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.houses-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.houses-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.houses-slide img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.houses-prev, .houses-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.houses-prev:hover, .houses-next:hover {
    background: var(--secondary-color);
}

.houses-prev {
    left: 20px;
}

.houses-next {
    right: 20px;
}

.close-houses-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1002;
}

.close-houses-modal:hover {
    color: var(--secondary-color);
}

.houses-counter {
    color: white;
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .houses-prev, .houses-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .houses-prev {
        left: 10px;
    }
    
    .houses-next {
        right: 10px;
    }
    
    .close-houses-modal {
        top: -40px;
        font-size: 30px;
    }
}

/* Добавляем в style.css простые стили для модального окна: */

.houses-slide {
    display: none;
    text-align: center;
}

.houses-slide:first-child {
    display: block;
}

.houses-slide img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    display: block;
    margin: 0 auto;
}



/* Обновленные стили для карусели преимуществ */
/* Обновленные стили для карусели преимуществ */
.tech-benefits {
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.tech-benefits h3 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 28px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.tech-benefits h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.benefits-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.benefits-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    padding: 20px 0;
    overflow: hidden;
}

.benefit-item {
    min-width: 300px;
    flex: 0 0 auto;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.benefit-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.3;
}

.benefit-item p {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Кнопки навигации */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Точки навигации */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.carousel-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--primary-color);
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
    .benefits-container {
        padding: 0 50px;
    }
    
    .benefit-item {
        min-width: 280px;
        padding: 20px;
    }
    
    .benefit-item img {
        height: 130px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .benefits-container {
        padding: 0 40px;
    }
    
    .benefit-item {
        min-width: 250px;
        padding: 15px;
    }
    
    .benefit-item img {
        height: 120px;
    }
    
    .benefit-item h4 {
        font-size: 16px;
    }
    
    .benefit-item p {
        font-size: 13px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .benefits-container {
        padding: 0 30px;
    }
    
    .benefit-item {
        min-width: 220px;
        padding: 12px;
    }
    
    .benefit-item img {
        height: 100px;
    }
}

/*END Обновленные стили для карусели преимуществ */


/* Стили для модального окна галереи технологий */

.tech-gallery-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.tech-gallery-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    margin: auto;
}

.tech-gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.tech-gallery-slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.tech-gallery-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.tech-gallery-slide img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.tech-gallery-prev, .tech-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.tech-gallery-prev:hover, .tech-gallery-next:hover {
    background: var(--secondary-color);
}

.tech-gallery-prev {
    left: 20px;
}

.tech-gallery-next {
    right: 20px;
}

.close-tech-gallery {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1003;
}

.close-tech-gallery:hover {
    color: var(--secondary-color);
}

.tech-gallery-counter {
    color: white;
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
}

/* Стили для миниатюр галереи */
.gallery-thumb {
    cursor: pointer;
    transition: transform 0.3s;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .tech-gallery-prev, .tech-gallery-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .tech-gallery-prev {
        left: 10px;
    }
    
    .tech-gallery-next {
        right: 10px;
    }
    
    .close-tech-gallery {
        top: -40px;
        font-size: 30px;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
}



/* END Стили для модального окна галереи технологий */


/* Стили для пагинации отзывов */
.reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0 30px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-item:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination-item.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    cursor: default;
}

/* Улучшения для карточек отзывов */
.review-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.review-content p {
    margin-bottom: 0;
    word-break: break-word;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .pagination-item {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}