:root {
    --bg-dark: #121418;
    --bg-card: #1b1e24;
    --accent-red: #e31e24;
    --accent-blue: #00b4ff;
    --text-main: #ffffff;
    --text-muted: #99aab5;
    --border-color: #2a2f38;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: rgba(18, 20, 24, 0.95); border-bottom: 1px solid var(--border-color); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 22px; font-weight: 900; }
.logo span { color: var(--accent-red); }
.phone-header { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.phone-header span { color: var(--accent-blue); }

/* Menu Bar */
.nav-menu { background: #16181d; border-bottom: 1px solid var(--border-color); }
.nav-menu ul { display: flex; list-style: none; gap: 30px; justify-content: center; padding: 12px 0; }
.nav-menu a { font-weight: 600; font-size: 14px; text-transform: uppercase; transition: 0.3s; }
.nav-menu a:hover { color: var(--accent-blue); }

/* Carousel */
.carousel-section { padding: 0px 0; background: var(--bg-dark); }
.section-title { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 30px; text-transform: uppercase; }
.section-title span { color: var(--accent-blue); }
.carousel-container { position: relative; max-width: 900px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; display: none; }
.carousel-slide.active { display: block; }
.carousel-slide img { width: 100%; height: 450px; object-fit: cover; display: block; }

/* [МУСОР / УДАЛИТЬ]: Ошибка в значении position: top (у св-ва position нет значения top, из-за чего ломалось позиционирование стрелок) */
.carousel-btn { position: top; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: white; border: none; padding: 15px; cursor: pointer; font-size: 18px; z-index: 10; transition: 0.3s; }
.carousel-btn:hover { background: var(--accent-red); }
.carousel-btn.prev { position: absolute; left: 10px; }
.carousel-btn.next { position: absolute; right: 10px; }

/* Hero Section */
.hero { padding: 60px 0; background: linear-gradient(135deg, #121418 0%, #1a1e26 100%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-content h1 { font-size: 38px; font-weight: 900; text-transform: uppercase; margin-bottom: 20px; line-height: 1.1; }
.hero-content h1 span { color: var(--accent-red); }
.hero-badge { display: inline-block; background: rgba(0, 180, 255, 0.1); color: var(--accent-blue); border: 1px solid var(--accent-blue); padding: 6px 12px; border-radius: 4px; font-weight: 700; font-size: 12px; margin-bottom: 15px; text-transform: uppercase; }
.hero-content p { color: var(--text-muted); font-size: 16px; }
.hero-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.hero-card h3 { font-size: 20px; margin-bottom: 10px; }
.form-group { margin-bottom: 15px; }
.form-group input { width: 100%; padding: 12px; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 6px; color: white; font-size: 15px; }
.form-group input:focus { border-color: var(--accent-blue); outline: none; }
.btn { display: inline-block; background: var(--accent-red); color: white; padding: 14px; border-radius: 6px; font-weight: 700; text-transform: uppercase; border: none; cursor: pointer; width: 100%; font-size: 15px; transition: 0.3s; }
.btn:hover { background: #c8161c; }
.alert-success { background: rgba(0, 180, 255, 0.1); border: 1px solid var(--accent-blue); color: var(--accent-blue); padding: 12px; border-radius: 6px; margin-bottom: 15px; text-align: center; font-size: 14px; font-weight: 600; }

/* [МУСОР / УДАЛИТЬ]: Устаревший закомментированный блок стилей старой сетки услуг, дублирующийся ниже в актуальном виде */
/* 
.services { padding: 60px 0; background: #16181d; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 25px; border-radius: 10px; transition: 0.3s; }
.service-card:hover { border-color: var(--accent-blue); }
.service-icon { font-size: 28px; margin-bottom: 15px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 13px; }   
*/

/* Стили для блока услуг с картинками */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.services-grid2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки (если нужно 2, замените на repeat(2, 1fr)) */
    gap: 15px;
}

.services-grid2 .service-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
}

.services-grid2 .service-card .service-img {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
}

.services-grid2 .service-card .service-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Контейнер для текста, чтобы разделить заголовок и описание по строкам */
.service-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-grid2 .service-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
    line-height: 1.2;
}

.services-grid2 .service-card p {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.2;
}

/* Адаптация под экраны */
@media(max-width: 1024px) {
    .services-grid2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 650px) {
    .services-grid2 {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 10px;
    transition: 0.3s;
}

.service-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.service-img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Footer */
footer { background: #0d0e12; padding: 25px 0; text-align: center; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border-color); }

/* Media Queries (Mobile Optimization) */
@media(max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .nav-menu ul { gap: 15px; font-size: 12px; flex-wrap: wrap; justify-content: center; padding: 10px; }
    .hero-content h1 { font-size: 28px; }
    .carousel-slide img { height: 260px; }
    .phone-header { font-size: 15px; }
}

/* Стили для точек под каруселью */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background: var(--accent-red);
    transform: scale(1.2);
}

/* Секция карусели со стилизованным паттерном инструментов на фоне */
.carousel-section {
    padding: 50px 0;
    background-color: var(--bg-dark);
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='%232a2f38' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'%3E%3C/path%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='%232a2f38' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9h12M6 15h12M12 3v18'%3E%3C/path%3E%3C/svg%3E");
    background-position: 0 0, 30px 30px;
    background-repeat: repeat;
    position: relative;
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 20, 24, 0.50);
    pointer-events: none;
}

/* [МУСОР / УДАЛИТЬ]: Дублирующееся объявление .carousel-container (выше в файле оно уже описано, дубль можно удалить для чистоты) */
.carousel-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* [МУСОР / УДАЛИТЬ]: Дублирующееся объявление .section-title (уже задано вверху файла) */
.section-title {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* SEO Текстовый блок */
.seo-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.seo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.seo-card h2 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-main);
}

.seo-card h2 span {
    color: var(--accent-red);
}

.seo-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.seo-card p:last-child {
    margin-bottom: 0;
}

@media(max-width: 900px) {
    .seo-card {
        padding: 25px;
    }
    .seo-card h2 {
        font-size: 20px;
    }
}

/* Блок Почему выбирают нас */
.why-us-section {
    padding: 60px 0;
    background-color: #16181d;
    border-top: 1px solid var(--border-color);
}

.why-us-banner {
    max-width: 100%;       /* Растягиваем на всю доступную ширину */
    width: 100%;
    margin: 0 auto 30px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.why-us-banner img {
    width: 100%;
    height: auto;          /* Сохраняем пропорции картинки, чтобы она не сплющивалась */
    display: block;
    object-fit: cover;
    max-height: none;      /* Убираем ограничение по высоте, чтобы картинка не обрезалась */
}

.why-us-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 40px;
}

.why-us-text p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.why-us-text p:last-child {
    margin-bottom: 0;
}

@media(max-width: 900px) {
    .why-us-content {
        padding: 20px;
    }
}

/* Блок Фототур по сервису */
.phototour-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.phototour-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
}

.phototour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.phototour-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.phototour-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.phototour-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: 0.3s;
}

.phototour-item:hover img {
    transform: scale(1.03);
}

@media(max-width: 900px) {
    .phototour-item img {
        height: 200px;
    }
}

.phototour-btn-wrap {
    text-align: center;
    margin-top: 35px;
}

.btn-all-photos {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--accent-red, #ff3b30);
    color: var(--text-main, #fff);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-all-photos:hover {
    background: var(--accent-red, #ff3b30);
    box-shadow: 0 5px 20px rgba(255, 59, 48, 0.4);
}

/* Блок Отзывы */
.reviews-section {
    padding: 60px 0;
    background-color: #16181d;
    border-top: 1px solid var(--border-color);
}

.reviews-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.review-stars {
    font-size: 14px;
}

.review-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

@media(max-width: 900px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

.yandex-reviews-banner {
    margin-top: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.yandex-reviews-banner p {
    color: var(--text-muted);
    font-size: 16px;
}

.yandex-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fc3f1d;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(252, 63, 29, 0.3);
}

.yandex-reviews-link:hover {
    background: #e03517;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 63, 29, 0.4);
}

.yandex-reviews-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.external-icon {
    font-size: 14px;
    opacity: 0.8;
}

.banner-section {
    padding: 40px 0;
    background-color: var(--bg-dark);
}

.single-image-banner {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.single-image-banner img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.overlay-banner-section {
    padding: 50px 0;
    background-color: var(--bg-dark);
}

.overlay-banner-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
}

.overlay-banner-wrapper2 {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 350px;
}

.overlay-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Картинка теперь заполняет всю ширину фона */
.overlay-banner-bg2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.overlay-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay-banner-bg2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-banner-content {
    position: relative;
    z-index: 2;
    width: 58%;
    height: 100%;
    background-color: var(--accent-red);
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top-right-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
}

/* Смещаем плашку в правый угол */
.overlay-banner-content2 {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
    width: 58%;
    height: 100%;
    background-color: var(--accent-blue);
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Закругление дугой по левому краю плашки */
    border-top-left-radius: 50% 100%;
    border-bottom-left-radius: 50% 100%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.overlay-banner-content h2 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 15px;
}

.overlay-banner-content p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    max-width: 90%;
}

.overlay-banner-phone {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.overlay-banner-phone:hover {
    color: var(--accent-blue);
}


/* Адаптация для мобильных устройств */
@media(max-width: 768px) {
    .overlay-banner-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}


@media(max-width: 992px) {
    .overlay-banner-wrapper {
        height: auto;
        flex-direction: column;
    }
    .overlay-banner-bg {
        position: relative;
        height: 220px;
    }
    .overlay-banner-content {
        width: 100%;
        height: auto;
        padding: 30px 20px;
        border-radius: 0;
        text-align: center;
    }
    .overlay-banner-content p {
        max-width: 100%;
    }
    .overlay-banner-content h2 {
        font-size: 20px;
    }
    .overlay-banner-phone {
        font-size: 22px;
    }
}

.brands-section {
    padding: 60px 0;
    background-color: #16181d;
    border-top: 1px solid var(--border-color);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 10px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.brand-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.brand-card img {
    max-height: 40px;
    max-width: 80px;
    object-fit: contain;
}

.brand-card span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

@media(max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .brand-card {
        height: 90px;
        padding: 15px 5px;
    }
}

@media(max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.services-btn-wrap {
    text-align: center;
    margin-top: 40px;
}

.services {
    padding-top: 60px;
    padding-bottom: 80px; 
}

@media(max-width: 900px) {
    .contacts-grid-page {
        grid-template-columns: 1fr !important;
    }
}

/* [МУСОР / УДАЛИТЬ]: Дублирующееся переопределение .carousel-section, дублирующее настройки выше */
.carousel-section {
    width: 100%;
    padding: 40px 0;
	padding-top: 10px; 
    padding-bottom: 40px;
}

.carousel-container.carousel-container-full {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important; 
    border-left: none;
    border-right: none;
}

.carousel-container-full .carousel-slide img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    display: block;
}

.carousel-container-full .carousel-btn.prev {
    left: 20px;
}

.carousel-container-full .carousel-btn.next {
    right: 20px;
}

@media(max-width: 900px) {
    .carousel-container-full .carousel-slide img {
        height: 280px;
    }
}

/* Стили модального окна (Лайтбокса) */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 66vw;
    max-height: 66vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 66vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    padding: 10px 15px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    user-select: none;
    transition: background 0.2s;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

@media (max-width: 768px) {
    .lightbox-content { max-width: 90vw; max-height: 80vh; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 768px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 20px !important;
        line-height: 1.1;
    }
    
    .logo span {
        display: inline-block;
    }

    .phone-header {
        font-size: 14px !important;
        white-space: nowrap; 
    }
    
    .phone-header span {
        font-size: 14px;
    }
}

/* Стили стрелки прокрутки вверх */

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#scrollTopBtn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    transform: translateY(-3px);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}









/* Затемнение фона */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 40px 80px; /* Оставляем отступы по бокам для стрелок */
    box-sizing: border-box;
}

/* Контейнер картинки */
.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Сама картинка подстраивается под экран, не мешая стрелкам */
#lightbox-img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

/* Фиксированная кнопка «Закрыть» в правом верхнем углу */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent-blue);
}

/* Фиксированные стрелки по краям экрана */
.lightbox-prev, .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 35px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--accent-blue);
    color: #fff;
}