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


body {
    font-family: 'Quicksand', sans-serif;
    color: #fff;
    background-color: #00060f;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-prices {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.center {
    text-align: center;
}


/* Шапка */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 6, 15, 0.3);
    padding: 15px 0;
    transition: background-color 0.3s;
}

header.scrolled {
    background-color: rgba(0, 6, 15, 1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 150px;
    height: auto;
    font-size: 18px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    font-weight: 100;
}

.nav-menu li {
    margin-left: 40px;
}

.nav-menu a {
    color: #fff;
    font-weight: 300;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #c2c2c4;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-white {
    background-color: #fff;
    color: #000;
}

.btn-blue {
    background-color: #FF6B35;
    color: #fff;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Стили для иконок соцсетей в шапке (в стиле кнопок) */
.header-social-links {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 22px;
    transition: all 0.3s ease;
    font-size: 18px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border: none;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.telegram-btn {
    background-color: #0088cc;
    color: white;
    border: none;
}

.telegram-btn:hover {
    background-color: #006699;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

/* Адаптивность для иконок в шапке */
@media (max-width: 768px) {
    .header-social-links {
        display: none; /* Скрываем на мобильных, так как они есть в мобильном меню */
    }
    
    .header-buttons {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .btn-social {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}



/* Мобильное меню для страницы проектов */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.mobile-menu-btn i {
    color: #e0e0e0;
    font-size: 18px;
    transition: color 0.3s ease;
}

.mobile-menu-btn.active {
    background-color: rgba(0, 0, 0, 0.9);
}

.mobile-menu-btn.active i {
    color: #fff;
    transform: rotate(90deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100svh;
    background-color: #00060f;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    padding: 80px 30px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
}

.mobile-nav-menu {
    list-style: none;
    flex: 1;
}

.mobile-nav-menu li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 0;
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    border: none;
}

.mobile-nav-menu a:hover {
    color: #FF6B35;
}

.mobile-menu-contact {
    background-color: #FF6B35;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-align: center;
    margin-top: 10px;
    display: inline-block;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-copyright {
    text-align: center;
    color: #c2c2c4;
    font-size: 14px;
}

/* Адаптивность для мобильного меню */
@media (max-width: 768px) {
    .nav, .header-buttons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-container {
        position: relative;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 280px;
    }
    
    .mobile-menu-container {
        padding: 70px 20px 20px;
    }
    
    .mobile-nav-menu a {
        font-size: 16px;
        padding: 12px 0;
    }
    
    .mobile-menu-btn {
        width: 28px;
        height: 28px;
    }
    
    .mobile-menu-btn i {
        font-size: 16px;
    }
}

/* Улучшения для шапки на странице проектов */
.projects-page {
    padding: 100px 0 100px;
}

/* Адаптивность для шапки проектов */
@media (max-width: 768px) {
    .projects-page {
        padding: 120px 0 80px;
    }
}

/* Улучшения для мобильного меню */
.mobile-menu, .mobile-menu-overlay {
    transform: translateZ(0);
    backface-visibility: hidden;
}

body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Плавные переходы */
.mobile-nav-menu a,
.mobile-menu-contact,
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Улучшения для иконки меню на разных устройствах */
@media (max-width: 768px) {
    .mobile-menu-btn {
        background-color: rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-btn i {
        color: #d0d0d0;
    }
}

/* Улучшение доступности */
.mobile-menu-btn:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* Плавная анимация иконки */
.mobile-menu-btn i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Герой-секция */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 100;
    letter-spacing: 3px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    font-family: 'Arial' !important;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 100;
    letter-spacing: 1px;
    color: #ffffff;
    font-family: 'Arial' !important;
    letter-spacing: 3px;
}

.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 24px;
    animation: bounce 2s infinite;
    text-decoration: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.scroll-arrow:hover {
    color: #c2c2c4;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}



/* Секция "О нас" */
.about {
    padding: 100px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.about-images-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-img {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Соотношение 4:3 */
    background-color: #333;
    background-size: cover;
    background-position: center;
}

.about-content {
    flex: 1;
}

/* Адаптивность для секции "О нас" */
@media (max-width: 1200px) {
    .about-container {
        gap: 40px;
    }
    
    .about-images {
        gap: 15px;
    }
    
    .about-images-2 {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-images {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .about-img {
        padding-bottom: 80%; /* Более квадратное соотношение на планшетах */
    }
    
    .about-content {
        width: 100%;
    }

    .section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }
    
    .about-container {
        gap: 30px;
    }
    
    .about-images {
        gap: 12px;
    }
    
    .about-images-2 {
        gap: 12px;
    }
    
    .about-img {
        padding-bottom: 80%;
    }
    
    .section-title {
        font-size: 26px;
        text-align: center;
    }
    
    .section-text {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .about {
        padding: 60px 0;
    }
    
    .about-container {
        gap: 25px;
    }
    
    .about-images {
        gap: 10px;
    }
    
    .about-images-2 {
        gap: 10px;
    }
    
    .about-img {
        padding-bottom: 80%; /* Более вертикальное соотношение на мобильных */
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .section-text {
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 50px 0;
    }
    
    .about-container {
        gap: 20px;
        flex-direction: column;
    }
    
    .about-images {
        gap: 10px;
    }

    .about-images-2 {
        gap: 10px;
    }

    .about-img {
        padding-bottom: 80%; /* Более вертикальное соотношение на мобильных */
    }
    
    .section-title {
        font-size: 22px;
        text-align: center;
    }
    
    .section-text {
        font-size: 13px;
    }
}

/* Для очень больших экранов */
@media (min-width: 1400px) {
    .about-container {
        gap: 60px;
    }
    
    .about-images {
        gap: 25px;
    }
    
    .about-images-2 {
        gap: 25px;
    }
    
    .about-img {
        padding-bottom: 70%;
    }
}

/* Секция "Услуги" */
.services {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1;
    height: 300px;
    background-color: #333;
    background-size: cover;
    background-position: center;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 15px;
}

.service-text {
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .service-item, 
    .service-item:nth-child(even) {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .service-img {
        width: 100%;
        height: 250px;
        flex: none;
    }
    
    .service-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .service-item {
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .service-img {
        height: 220px;
        border-radius: 8px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-text {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .service-item {
        gap: 20px;
        margin-bottom: 35px;
    }
    
    .service-img {
        height: 200px;
        border-radius: 6px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .service-content .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .service-img {
        height: 180px;
    }
    
    .service-title {
        font-size: 17px;
    }
    
    .service-text {
        font-size: 13px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .service-img {
        height: 160px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Альтернативный вариант - адаптивная высота через padding */
.service-img.adaptive {
    height: auto;
    width: 100%;
    padding-bottom: 60%; /* Соотношение примерно 5:3 */
}

@media (max-width: 768px) {
    .service-img.adaptive {
        padding-bottom: 50%; /* Более квадратное соотношение на мобильных */
    }
}

/* Улучшение для изображений с разным контентом */
.service-img {
    position: relative;
    overflow: hidden;
}

.service-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-img:hover::after {
    opacity: 1;
}

/* Гарантия отображения изображений на всех устройствах */
.service-img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}



/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow: hidden;
    overscroll-behavior: contain;
}

.modal-content {
    background-color: #00060f;
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 24px;
    font-weight: 300;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #c2c2c4;
}

.modal-body {
    display: flex;
    min-height: 400px;
}

.modal-images {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-img {
    flex: 1;
    background-color: #333;
    background-size: cover;
    background-position: center;
    min-height: 200px;
}

.modal-text {
    flex: 1;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-description {
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-contact {
    font-weight: 500;
    color: #FF6B35;
}


/* Дополнительные улучшения для маленьких экранов */
@media (max-width: 992px) {
    .modal-images {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr); /* всегда 2 колонки */
        gap: 10px;
        width: 100%;
    }

    .modal-images .modal-img {
        width: 100%;
        aspect-ratio: 1 / 1; /* квадрат */
        background-size: cover;
        background-position: center;
        border-radius: 6px;
    }

    /* первая на всю ширину только если нечётное количество */
    .modal-images .modal-img:first-child:nth-last-child(odd) {
        grid-column: span 2;
        aspect-ratio: 2 / 1; /* широкое изображение */
    }
}

/* Анимация появления модального окна */
.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Улучшение скролла для модальных окон */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 3px;
}

/* Базовая оптимизация изображений для всех устройств */
.modal-img {
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.modal-img:hover {
    transform: scale(1.02);
}

/* Улучшение контрастности для лучшего восприятия */
.modal-text strong {
    color: #FF6B35;
    font-weight: 600;
}

.modal-text p[style*="color: #FF6B35"] {
    margin-bottom: 1.5rem;
    font-size: 16px;
}



/* Секция "Реализованные проекты" */
.projects {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 6, 15, 0.85);
}

.projects-container {
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s, background-color 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.project-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #FF6B35;
}

.project-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
}

.project-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.project-result {
    font-weight: 600;
    margin-bottom: 5px;
    color: #FF6B35;
}



/* Секция преимуществ */
.advantages {
    padding: 100px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.advantage-item {
    text-align: center;
}

.advantage-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 20px;
    color: #FF6B35;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

.advantage-text {
 text-align: left;
}



/* Секция "Тарифы" */
.pricing {
    background-color: #fff;
}

.pricing-hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* фиксируем везде по умолчанию */
    position: relative;
    padding: 160px 0;
    text-align: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 6, 15, 0.7);
}

/* ▼▼▼ ОТКЛЮЧАЕМ background-attachment: fixed ДЛЯ iOS ▼▼▼ */
/* iOS детект через WebKit-фичу (уникальна для Safari iOS) */
@supports (-webkit-touch-callout: none) {
    .pricing-hero {
        background-attachment: scroll !important; /* фон прокручивается */
        background-position: center center !important;
    }
}

.pricing-title {
    position: relative;
    z-index: 1;
    font-size: 36px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 2px;
}

.pricing-content {
    padding: 80px 0;
    background-color: #fff;
}

.pricing-row {
    display: flex;
    margin-bottom: 50px;
    align-items: flex-start;
    gap: 40px;
}

.pricing-col {
    flex: 1;
}

.pricing-col-title {
    flex: 1;
    min-width: 200px;
}

.pricing-col-description {
    flex: 2;
}

.pricing-col-price {
    flex: 1;
    min-width: 180px;
    text-align: right;
}

.pricing-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #00060f;
    line-height: 1.4;
    margin: 0;
}

.pricing-item-description {
    color: #495057;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
}

.pricing-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #00060f;
    white-space: nowrap;
}

/* Адаптивность для тарифов */
@media (max-width: 992px) {
    .pricing-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .pricing-col {
        width: 100%;
    }

    .pricing-col-price {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .pricing-title {
        font-size: 28px;
    }

    .pricing-hero {
        padding: 80px 0;
    }

    .pricing-content {
        padding: 60px 0;
    }

    .pricing-item-title {
        font-size: 17px;
    }

    .pricing-item-price {
        font-size: 16px;
    }
}



/* Секция "Заявка" */
.request {
    padding: 0;
}

.request-background {
    background-size: cover; /* исправлено со 100% высоты на равномерное покрытие */
    background-position: center;
    background-attachment: fixed; /* фиксирован на всех кроме iOS */
    position: relative;
    padding: 100px 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.request-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 6, 15, 0.7);
}

/* ▼▼▼ ОТКЛЮЧАЕМ fixed ФОН НА IOS ▼▼▼ */
@supports (-webkit-touch-callout: none) {
    .request-background {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center !important;
    }
}

.request-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.request-title {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 40px;
    line-height: 1.2;
}

.request-text {
    font-size: 16px;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 80px;
    opacity: 0.9;

}

.request-btn {
    font-size: 16px;
    padding: 12px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 126, 35, 0.3);
}

/* Адаптивность для секции заявки */
@media (max-width: 768px) {
    .request-background {
        padding: 80px 0;
    }

    .request-title {
        font-size: 26px;
    }

    .request-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .request-background {
        padding: 60px 20px;
    }

    .request-title {
        font-size: 24px;
    }

    .request-text {
        font-size: 15px;
    }

    .request-btn {
        padding: 10px 25px;
        font-size: 15px;
    }
}



/* Секция отзывов */
.testimonials {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* фиксирован везде, кроме iOS */
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 6, 15, 0.85);
}

.testimonials-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ▼▼▼ ОТКЛЮЧАЕМ fixed ФОН НА IOS ▼▼▼ */
@supports (-webkit-touch-callout: none) {
    .testimonials {
        background-attachment: scroll !important;
        background-position: center !important;
        background-size: cover !important;
    }
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    display: none;
}

.testimonial-item.active {
    display: block;
}

.testimonial-author {
    font-weight: 500;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
}

.dot.active {
    background-color: #fff;
}

/* Стили для карусели отзывов */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-items {
    position: relative;
    width: 100%;
    min-height: 200px; /* Фиксированная минимальная высота */
    height: 300px; /* Фиксированная высота по самому большому отзыву */
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-item {
    display: none;
    text-align: center;
    padding: 0 20px;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonial-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-arrow-prev {
    left: -80px;
}

.testimonial-arrow-next {
    right: -80px;
}

.testimonial-arrow i {
    font-size: 20px;
}

.testimonial-text {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
    max-height: 220px; /* Ограничиваем высоту текста */
    overflow-y: auto; /* Добавляем прокрутку если текст не помещается */
    padding: 10px;
    width: 100%;

    /* Скрываем широкую стандартную прокрутку и делаем свою */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255,255,255,0.5) rgba(255,255,255,0.15); /* Firefox */
}

/* Chrome, Edge, Safari */
.testimonial-text::-webkit-scrollbar {
    width: 6px; /* Тонкая */
}

.testimonial-text::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.10);
    border-radius: 4px;
}

.testimonial-text::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.45);
    border-radius: 4px;
}

.testimonial-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.75);
}

.testimonial-author {
    font-weight: 500;
    font-size: 16px;
    margin-top: auto; /* Прижимаем автора к низу */
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

/* Адаптивность для фиксированной высоты */
@media (max-width: 768px) {
    .testimonial-items {
        height: 400px; /* Увеличиваем высоту на мобильных */
    }
    
    .testimonial-text {
        font-size: 16px;
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .testimonial-items {
        height: 400px; /* Еще больше на маленьких экранах */
    }

    .testimonial-text {
        font-size: 15px;
        max-height: 400px;
    }
}


/* Адаптивность для карусели */
@media (max-width: 992px) {
    .testimonial-arrow-prev {
        left: -40px;
    }
    
    .testimonial-arrow-next {
        right: -40px;
    }

    .testimonial-arrow i {
        font-size: 16px;
    }

    .testimonial-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .testimonial-arrow {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-arrow i {
        font-size: 16px;
    }
    
    .testimonial-arrow-prev {
        left: -20px;
    }
    
    .testimonial-arrow-next {
        right: -20px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .testimonial-arrow {
        width: 35px;
        height: 35px;
        display: none; /* Скрываем стрелки на очень маленьких экранах */
    }

    .testimonial-arrow-prev {
        left: -5px;
    }
    .testimonial-arrow-next {
        right: -5px;
    }
    
    .testimonial-slider {
        padding: 0 10px;
    }
}





/* Подвал */
footer {
    padding: 60px 0;
    text-align: center;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .service-item, 
    .service-item:nth-child(even) {
        flex-direction: column;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts {
        flex-direction: column;
    }
    
    #map, .contact-info {
        height: 50vh;
        flex: none;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-images {
        flex-direction: row;
    }
    
    .modal-img {
        min-height: 150px;
    }
    
    .pricing-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .pricing-col {
        width: 100%;
    }
    
    .pricing-col-price {
        text-align: left;
    }
    
    .testimonial-arrow-prev {
        left: -40px;
    }
    
    .testimonial-arrow-next {
        right: -40px;
    }
}

@media (max-width: 768px) {
    .nav-menu, .header-buttons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-images {
        flex-direction: column;
    }
    
    .pricing-title {
        font-size: 28px;
    }
    
    .pricing-hero {
        padding: 80px 0;
    }
    
    .pricing-content {
        padding: 60px 0;
    }
    
    .pricing-item-title {
        font-size: 17px;
    }
    
    .pricing-item-price {
        font-size: 16px;
    }
    
    .request-background {
        padding: 80px 0;
    }
    
    .request-title {
        font-size: 26px;
    }
    
    .request-text {
        font-size: 16px;
    }
    
    .testimonial-arrow {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-arrow i {
        font-size: 16px;
    }
    
    .testimonial-arrow-prev {
        left: -20px;
    }
    
    .testimonial-arrow-next {
        right: -20px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .contact-content {
        max-width: 100%;
    }
    
    .contact-title {
        font-size: 26px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .testimonial-arrow {
        width: 35px;
        height: 35px;
        display: none;
    }
    
    .testimonial-slider {
        padding: 0 10px;
    }
    
    .request-background {
        padding: 60px 20px;
    }
    
    .request-title {
        font-size: 24px;
    }
    
    .request-text {
        font-size: 15px;
    }
    
    .request-btn {
        padding: 10px 25px;
        font-size: 15px;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .contact-title {
        font-size: 24px;
    }
    
    .contact-details p {
        font-size: 14px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Секция контактов */
.contacts-container {
    display: flex;
    height: 90vh;
    width: 100%;
}

.map {
    flex: 2;
    height: 100%;
    width: 100%;
}

.contact-info {
    flex: 1;
    background-color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.contact-content {
    max-width: 400px;
    width: 100%;
}

.contact-title {
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--white);
    text-align: center;
}

.contact-img {
    width: 30%;
    height: 0;
    padding-bottom: 37.5%; /* Соотношение 4:5 (высота больше ширины) */
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 30px;
    text-align: center;
}

.contact-details p {
    margin-bottom: 15px;
    color: var(--white);
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
    font-size: 20px;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 126, 35, 0.3);
}

/* Адаптивность для контактов */
@media (max-width: 1200px) {
    .contacts-container {
        height: 80vh;
    }
    
    .contact-content {
        max-width: 350px;
    }
    
    .contact-img {
        width: 40%;
        height: 0;
        padding-bottom: 50%;
        max-width: none;
    }
}

@media (max-width: 992px) {
    .contacts-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .map {
        flex: none;
        height: 50vh;
    }
    
    .contact-info {
        flex: none;
        height: auto;
        padding: 40px 30px;
    }
    
    .contact-content {
        max-width: 500px;
    }
    
    .contact-img {
        height: 250px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        padding: 30px 20px;
    }
    
    .contact-title {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .contact-img {
        height: 220px;
        max-width: 280px;
        margin-bottom: 25px;
    }
    
    .contact-details p {
        font-size: 15px;
    }
    
    .social-links {
        margin-top: 25px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .contact-info {
        padding: 25px 15px;
    }
    
    .contact-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .contact-img {
        height: 200px;
        max-width: 250px;
        margin-bottom: 20px;
    }
    
    .contact-details p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .social-links {
        margin-top: 20px;
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-img {
        height: 180px;
        max-width: 220px;
    }
    
    .contact-details p {
        font-size: 13px;
    }
    
    .contact-title {
        font-size: 22px;
    }
}


/* Блокировка скролла экрана при открытой модалке */
html.modal-open,
body.modal-open {
    height: 100%;
    position: fixed;
    width: 100%;
}


/* Модальное окно должно отлавливать overscroll */
.modal {
    overscroll-behavior: contain;
}

/* Внутренняя прокрутка модалки */
.modal-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Активация модального окна */
.modal.active {
    display: flex !important; /* или block — если у тебя модалки так открываются */
}


