.ks-results-section {
    padding: 0px 20px;
    background-color: #ffffff;
}

.ks-results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ks-results-main-title {
    text-align: center;
    font-size: clamp(24px, 5vw, 30px);
    font-weight: 500;
    margin-bottom: 50px;
}

.ks-results-sub-section {
    margin-bottom: 60px;
}

.ks-results-sub-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    border-left: 5px solid #2575db;
    padding-left: 20px;
    text-transform: uppercase;
}

/* СЛАЙДЕР ДО/ПОСЛЕ (Обновленный) */
.ks-comparison-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.ks-comparison-slider {
    position: relative;
    flex: 1;
    min-width: 320px;
    /* Увеличена высота: соотношение сторон теперь 1180 к 800 (более квадратное) */
    aspect-ratio: 1180 / 800; 
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    user-select: none;
}

.ks-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: width; /* Оптимизация для плавности */
}

.ks-img-before {
    width: 50%;
    z-index: 2;
    overflow: hidden;
}

/* Текстовые метки ДО/ПОСЛЕ */
.ks-label {
    position: absolute;
    top: 20px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    pointer-events: none;
    z-index: 3;
}
.ks-label-before { left: 20px; }
.ks-label-after { right: 20px; }

/* Линия и ползунок */
.ks-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    z-index: 4;
    pointer-events: none;
    transform: translateX(-50%);
}

.ks-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: #2575db;
    border: 4px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.ks-handle-arrows {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ks-handle-arrows::before, .ks-handle-arrows::after {
    content: '';
    width: 0; height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.ks-handle-arrows::before { border-right: 8px solid white; margin-right: 5px; }
.ks-handle-arrows::after { border-left: 8px solid white; margin-left: 5px; }

/* Невидимый инпут управления */
.ks-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: col-resize;
    z-index: 10;
    margin: 0;
}

.ks-slider-input::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 50px;
    height: 500px; /* Большой хит-бокс для удобства */
}

/* Секция Видео на всю ширину */
.ks-full-video-wrapper {
    width: 80%;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.ks-full-video-wrapper video {
    width: 100%;
    display: block;
}

/* Вертикальные видео 9:16 */
.ks-portrait-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ks-video-card {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #1a1a1a;
    border-radius: 18px;
    overflow: hidden;
}

.ks-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ks-video-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #2575db;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .ks-portrait-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ks-comparison-grid {
        flex-direction: column;
    }
    .ks-portrait-video-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 320px;
        margin: 0 auto;
    }
    .ks-results-main-title {
        margin-bottom: 30px;
    }
}




/* НОВЫЕ СТИЛИ ДЛЯ ОТЗЫВОВ */
.ks-rev-section {
    padding: 50px 20px;
    background-color: #fbfbfb;
    overflow: hidden;
}

.ks-rev-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.ks-rev-header {
    position: relative;
    margin-bottom: 40px;
}

.ks-rev-bg-text {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 80px;
    font-weight: 900;
    color: #f0f0f0;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

.ks-rev-title {
    position: relative;
    z-index: 2;
    font-size: 30px;
    font-weight: 600;
    color: #333;
    max-width: 800px;
    line-height: 1.3;
}

.ks-rev-title .red {
    color: #e31e24;
}

/* Плашка рейтингов */
.ks-rev-platforms {
    background: #f2f2f2;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ks-platform-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.ks-platform-item img {
    height: 21px;
}

.ks-platform-item b {
    font-weight: 700;
}

/* Сводка оценок */
.ks-rev-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.ks-summary-num {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.ks-stars {
    display: flex;
    gap: 2px;
}

.ks-stars svg {
    width: 22px;
    height: 22px;
    fill: #ffbc00;
}

.ks-stars svg.half {
    fill: #e0e0e0; /* Просто для примера, можно сделать маску */
}

.ks-stars.small svg {
    width: 16px;
    height: 16px;
}

.ks-summary-count {
    font-size: 13px;
    color: #999;
}

/* Сетка карточек */
.ks-rev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.ks-rev-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.ks-rev-card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.ks-rev-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.ks-rev-user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ks-rev-name {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ks-rev-check {
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232e87f1"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>') no-repeat center;
}

.ks-rev-stars-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.ks-rev-date {
    font-size: 12px;
    color: #bbb;
}

.ks-rev-text {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.ks-rev-expand {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 15px;
    cursor: pointer;
}

.ks-rev-source {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-top: auto;
}

.ks-rev-source img {
    width: 60px;
}

/* Адаптивность для отзывов */
@media (max-width: 1024px) {
    .ks-rev-grid { grid-template-columns: repeat(2, 1fr); }
    .ks-rev-bg-text { font-size: 60px; }
}

@media (max-width: 768px) {
    .ks-rev-grid { grid-template-columns: 1fr; }
    .ks-rev-title { font-size: 24px; }
    .ks-rev-platforms { gap: 15px; }
    .ks-rev-bg-text { display: none; } /* Скрываем на моб, чтобы не мешал */
}



/* Блок Telegram под видео */
.ks-tg-callout {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
}

.ks-tg-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.ks-tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #24A1DE; /* Фирменный цвет Telegram */
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(36, 161, 222, 0.3);
}

.ks-tg-btn:hover {
    background-color: #2190c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 161, 222, 0.4);
    color: #fff;
}

.ks-tg-btn svg {
    flex-shrink: 0;
}

/* Адаптивность */
@media (max-width: 640px) {
    .ks-tg-callout {
        margin-top: 30px;
        padding: 25px 15px;
    }
    .ks-tg-text {
        font-size: 16px;
    }
}


/* Уменьшаем высоту видео на мобильных устройствах */
@media (max-width: 640px) {
    .ks-video-card {
        /* Изменяем соотношение сторон на менее вытянутое */
        aspect-ratio: 4 / 5; 
    }
}

.ks-rev-card-img {
    padding: 0;           /* Убираем внутренние отступы, чтобы скриншот был во всю ширину */
    overflow: hidden;     /* Чтобы углы картинки скруглялись по границе карточки */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    height: 100%;         /* Чтобы все карточки в ряду были одной высоты */
    transition: transform 0.3s ease; /* Плавный эффект при наведении */
}

.ks-rev-card-img:hover {
    transform: translateY(-50px); /* Легкий подъем при наведении */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Стили для самого скриншота */
.ks-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Картинка впишется полностью без обрезки */
    display: block;
}

/* На мобильных устройствах */
@media (max-width: 768px) {
    .ks-rev-card-img {
        max-width: 400px; /* Чтобы скриншоты не растягивались на весь экран телефона */
        margin: 0 auto;   /* Центрируем */
    }
}


/* Стили для модального окна */
.ks-modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Темный фон */
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.ks-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    /* Анимация появления */
    animation: zoom 0.3s ease-out;
}

@keyframes zoom {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Кнопка закрытия (крестик) */
.ks-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Добавляем курсор-лупу на сами скриншоты в сетке */
.ks-screenshot {
    cursor: zoom-in;
}


/* Стили для всплывающего окна */
.custom-popup-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.custom-popup-wrapper.active {
    display: flex;
}

.callback-popup {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    text-decoration: none;
    color: #999;
    transition: color 0.2s;
    z-index: 999999;
}

.popup-close:hover {
    color: #00599d;
}

.callback-popup .h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    text-align: center;
    line-height: 1.2;
}

.callback-popup .h2 span {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

.callback-popup .desc {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}

/* Форма и инпуты */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    padding-left: 5px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #00599d;
    box-shadow: 0 0 0 3px rgba(0, 89, 157, 0.1);
}

.btn-blue {
    width: 100%;
    padding: 15px;
    background: #00599d;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, transform 0.1s;
}

.btn-blue:hover {
    background: #00467a;
}

.btn-blue:active {
    transform: scale(0.98);
}

.call-form__description {
    margin-top: 15px;
    font-size: 11px;
    color: #999;
    text-align: center;
    line-height: 1.4;
}

.call-form__description a {
    color: #00599d;
    text-decoration: underline;
}

/* Скрываем на мобилках, если там своя логика */
@media (max-width: 1023px) {
    /* Если вы хотите оставить мобильную версию без изменений, 
       можно просто не вызывать .active через JS для мобилок */
}

.call-form__submit-btn {
    width: 270px;
    margin: 30px auto;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 17px;
    /* Заменяем градиент на синий (от темного к светлому) */
    background: -webkit-gradient(linear, left bottom, left top, from(#096dd3), to(#3391ee)) !important;
    background: linear-gradient(to top, #096dd3, #3391ee) !important;
    min-height: 48px;
    -webkit-align-self: center;
    -ms-flex-item-align: center;
    align-self: center;
    font-weight: 600;
    border-radius: 6px;
    position: relative;
    color: #fff;
    text-transform: uppercase;
    /* Твоя новая конфигурация тени */
    -webkit-box-shadow: 0 3px 0 0 #096dd3, 0 13px 32px rgb(0 102 255 / 71%) !important;
    box-shadow: 0 3px 0 0 #096dd3, 0 13px 32px rgb(0 102 255 / 71%) !important;
    border: none; /* Добавил на всякий случай, чтобы убрать дефолтную рамку */
    cursor: pointer;
}


/* Стили для гамбургера (анимация) */
.header__navigation-btn {
    position: relative;
    z-index: 1001;
    cursor: pointer;
}

.header__navigation-btn.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__navigation-btn.is-active span:nth-child(2) { opacity: 0; }
.header__navigation-btn.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Скрыто за экраном */
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 50%);
    z-index: 9998;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.mobile-menu-overlay.is-open {
    right: 0;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    padding: 60px 25px 30px;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 40px;
    background: none;
    border: none;
    color: #00599d;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    margin-bottom: 20px;
}

.mobile-nav ul li a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: color 0.2s;
}

.mobile-nav ul li a:hover {
    color: #00599d;
}

.mobile-menu-footer {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.mobile-phone {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    margin-bottom: 15px;
}

/* Запрет скролла при открытом меню */
body.menu-open {
    overflow: hidden;
}



/* Обновленные стили для кнопки Messenger Max с точным градиентом */
.messenger-max-container {
    display: flex;
        justify-content: flex-start;
    margin: 25px 0;
}

.messenger-max-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(100deg, #4091f6 30%, #3760e5 92%, #007fff 150%);
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(55, 96, 229, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.messenger-max-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(55, 96, 229, 0.4);
    filter: brightness(1.1); /* Легкое осветление вместо смещения градиента */
}

.messenger-max-btn:active {
    transform: translateY(-1px);
}

.messenger-max-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.messenger-max-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    margin-left: 9px;
}

@media (max-width: 767px) {
    .messenger-max-btn {
            width: 100%;
    max-width: 261px;
    justify-content: flex-start;
    padding: 13px;
    }
    
    .messenger-max-container {
     margin: 5px 0;
    }
}




.ps-anticor-section {
    --ps-bg-color: #f8f9fb;
    --ps-card-bg: #ffffff;
    --ps-title-color: #1a2b4b;
    --ps-text-color: #6b7280;
    --ps-accent-color: #2c3e50;
    
    background-color: var(--ps-bg-color);
    padding: 60px 20px;
}

.ps-anticor-container {
    max-width: 1110px;
    margin: 0 auto;
}

.ps-anticor-main-title {
    color: var(--ps-title-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
}

.ps-anticor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ps-anticor-card {
    background: var(--ps-card-bg);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.ps-anticor-card:hover {
    transform: translateY(-5px);
}

.ps-anticor-icon-wrapper {
    margin-bottom: 20px;
}

.ps-anticor-card-title {
    color: var(--ps-title-color);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.ps-anticor-card-text {
    color: var(--ps-text-color);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .ps-anticor-main-title {
        font-size: 24px;
        text-align: center;
    }
    .ps-anticor-card {
        padding: 24px;
    }
}


/* Контейнер для относительного позиционирования стрелок, если нужно */
.ks-rev-slider-container {
    position: relative;
    width: 100%;
}

/* Стили стрелок (по умолчанию скрыты для ПК) */
.ks-rev-arrows {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 10px;
}

.ks-rev-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 89, 157, 0.3);
    transition: background 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.ks-rev-arrow:active {
    transform: scale(0.9);
}

.ks-rev-arrow svg {
    width: 30px;
    height: 30px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .ks-rev-grid {
        display: flex !important; /* Переключаем в flex для ряда */
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory; /* Магнитное прилипание */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 0 !important; /* Убираем стандартные зазоры сетки */
        padding-bottom: 5px;
        /* Скрываем скроллбар */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .ks-rev-grid::-webkit-scrollbar {
        display: none;
    }

    .ks-rev-card-img {
        min-width: 100% !important; /* Один отзыв на экран */
        scroll-snap-align: center;
        padding: 0 10px; /* Боковые отступы, чтобы было видно края */
        box-sizing: border-box;
    }

    .ks-rev-arrows {
        display: flex; /* Показываем стрелки на мобилках */
    }
    
    .ks-rev-card-img:hover {
        transform: none !important; /* Убираем эффект подъема на мобилках, чтобы не ломать слайдер */
    }
}


/* --- Стили для блока "Дополнительные услуги" --- */

.ks-dop-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.ks-dop-main-title {
    text-align: center;
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 700;
    color: #1a2b4b;
    margin-bottom: 45px;
    text-transform: uppercase;
}

.ks-dop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.ks-dop-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    background-color: #000; /* Цвет фона для плавности затемнения */
}

.ks-dop-card:hover {
    transform: translateY(-8px);
}

.ks-dop-img-wrapper {
    width: 100%;
    /* Фиксированное соотношение сторон для изображений 432x480 */
    aspect-ratio: 432 / 260; 
    position: relative;
    overflow: hidden;
}

.ks-dop-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.ks-dop-card:hover .ks-dop-img-wrapper img {
    transform: scale(1.1);
}

/* Наложение текста прямо по центру картинки */
.ks-dop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Базовое затемнение */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.ks-dop-card:hover .ks-dop-overlay {
    background: rgba(0, 0, 0, 0.55); /* Более сильное затемнение при наведении */
}

.ks-dop-overlay h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    pointer-events: none;
}

.dop_zag {
text-align: center;
    padding-bottom: 41px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1em;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991px) {
    .ks-dop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dop_zag {
    font-size: 20px;
}
    
}

@media (max-width: 640px) {
    .ks-dop-section {
        padding: 40px 15px;
    }
    
    .ks-dop-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ks-dop-main-title {
        margin-bottom: 30px;
    }
    
    .ks-dop-card:hover {
        transform: none;
    }
}


.yandex-map-contact-section {
            max-width: 1180px;
            margin: 40px auto;
            padding: 0 20px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            color: #333;
            box-sizing: border-box;
        }

        .yandex-map-contact-section * {
            box-sizing: border-box;
        }

        .yandex-map-contact-title {
            font-size: 32px;
            font-weight: 600;
            margin-bottom: 25px;
            color: #222;
        }

        .yandex-map-contact-header {
            display: flex;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        .yandex-map-contact-icon {
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            margin-right: 15px;
            margin-top: 4px;
        }

        .yandex-map-contact-details {
            display: flex;
            flex-direction: column;
        }

        .yandex-map-contact-address {
            font-size: 20px;
            line-height: 1.3;
            margin-bottom: 12px;
            color: #444;
        }

        .yandex-map-contact-link {
            color: #f38240; /* Оранжевый цвет как на скрине */
            text-decoration: none;
            font-size: 22px;
            border-bottom: 1px solid rgba(243, 130, 64, 0.3);
            display: inline-block;
            transition: border-color 0.2s ease;
        }

        .yandex-map-contact-link:hover {
            border-bottom-color: rgba(243, 130, 64, 1);
        }

        /* Контейнер для карты */
        .yandex-map-contact-container {
            width: 100%;
            height: 523px;
            background-color: #f0f0f0;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            position: relative;
        }

        /* Адаптивность для мобильных устройств */
        @media (max-width: 768px) {
            .yandex-map-contact-title {
                font-size: 26px;
            }
            .yandex-map-contact-address {
                font-size: 18px;
            }
            .yandex-map-contact-link {
                font-size: 18px;
            }
            .yandex-map-contact-container {
                height: 400px;
            }
        }

        @media (max-width: 480px) {
            .yandex-map-contact-icon {
                width: 24px;
                height: 24px;
                margin-right: 10px;
            }
            .yandex-map-contact-container {
                height: 300px;
            }
        }
        
        
/* Стили для главного блока ПК версии */
.ks-hero-container-unique {
    display: flex;
    align-items: center;
    justify-content: start;
    margin: 0 auto;
    gap: 0px;
}

.ks-hero-text-block {
     /* Занимает доступное пространство */
    
}

.ks-hero-visual-block {
    display: flex;
    justify-content: center;
    max-width: 860px;
    width: 100%;
    position: relative;
    top: 25px;
}

.ks-hero-main-img {
    width: 360px;
    height: 360px;
    object-fit: cover; /* Сохранение пропорций */
    border-radius: 12px; /* Легкое скругление углов, если нужно */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Небольшая тень для объема */
}

/* Адаптация: если экран меньше 1300px, немного уменьшаем картинку */
@media (max-width: 1300px) {
    .ks-hero-visual-block {
        flex: 0 0 500px;
    }
    .ks-hero-main-img {
        width: 500px;
        height: 500px;
    }
}

/* Уникальные стили для кнопок в блоке материалов */
.ks-mat-details-btn-unique {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background-color: #2575db; /* Оранжевый цвет в стиле сайта */
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    max-width: 180px;
    text-align: center;
}

.ks-mat-details-btn-unique:hover {
    background-color: #e66100;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Выравнивание кнопки в мобильной версии */
@media (max-width: 767px) {
    .matItem .info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ks-mat-details-btn-unique {
        width: 100%;
        max-width: 140px;
    }
}


/* Стили для галереи дополнительных работ */
.ks-additional-gallery-unique {
    display: flex;
    justify-content: center;
    gap: 65px;
    margin-top: 30px;
    flex-wrap: wrap; /* Позволяет переносить фото на новый ряд на узких экранах */
}

.ks-gallery-card-unique {
    flex: 1;
    min-width: 280px;
    max-width: 310px; /* Ограничиваем ширину, чтобы вертикальные фото не были огромными */
    text-align: center;
}

.ks-gallery-img-wrapper-unique {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #f0f0f0;
    transition: transform 0.3s ease;
}

.ks-gallery-img-wrapper-unique:hover {
    transform: translateY(-5px);
}

.ks-img-fluid-unique {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer; /* Указатель на возможность клика */
}

.ks-gallery-caption-unique {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
}

/* Адаптивность для планшетов и мобильных */
@media (max-width: 1024px) {
    .ks-additional-gallery-unique {
        gap: 15px;
    }
    .ks-gallery-card-unique {
        max-width: 30%;
    }
}

@media (max-width: 768px) {
    .ks-gallery-card-unique {
        max-width: 100%;
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    .ks-gallery-img-wrapper-unique {
        max-width: 250px; /* На мобильных ограничиваем ширину по центру */
        margin: 0 auto;
    }
}

/* Разделение контактов на 2 колонки */
.contacts-split-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contacts-info-side, .certificate-side {
    flex: 1;
}

/* Стили контейнера сертификата */
.sert-container {
    width: 100%;
    max-width: 400px; /* Ограничение ширины для гармонии с картой */
    aspect-ratio: 865 / 1431; /* Соблюдение пропорций картинки */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #f9f9f9;
}

.sert-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

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

.map-wrapper {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
}

/* Адаптивность для мобильных */
@media (max-width: 1024px) {
    .contacts-split-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .ks-results-sub-title {
    font-size: 18px;
    }
    
    .advantages__wrapper h2 {
    font-size: 24px;
    }
    
    .sert-container {
        max-width: 100%;
        margin: 0 auto;
        aspect-ratio: 295 / 391;
    }
    
    .contacts-info-side .dop_zag, 
    .certificate-side .dop_zag {
        text-align: center !important;
    }
    #map {
        height: 350px !important; 
    }
}

/* Контейнер для кнопок в мобильном меню */
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 40px 0;
}

/* Общие правки для кнопок внутри меню */
.menu-side-btn {
    width: fit-content;
    width: 180px; /* Ограничение 50% от ширины меню (280px) */
    min-height: auto !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    justify-content: flex-start !important;
    white-space: nowrap;
    overflow: hidden;
}

/* Корректировка иконок для компактного вида */
.menu-side-btn svg {
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px !important;
}

.messenger-max-icon {
    margin-right: 0 !important;
}


/* Общий контейнер уведомления */
.warning {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 10001 !important;
    max-width: 440px;
    background: #ebebeb !important;
    color: #000000;
    padding: 20px !important;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgb(0 0 0 / 30%);
    display: none;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.5s ease-out;
}

/* Класс для отображения (если используется JS для активации) */
.warning--active {
    display: flex;
}

/* Текст уведомления */
.warning__text {
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
}

.warning__text a {
    color: #f38240; /* Оранжевый акцент как на сайте */
    text-decoration: underline;
    transition: opacity 0.2s;
}

.warning__text a:hover {
    opacity: 0.8;
}

/* Кнопка OK */
.warning__apply {
    background: #ffffff;
    color: #383838;
    border-radius: 6px;
    padding: 6px 15px !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.1s;
    text-transform: uppercase;
    border: 1px solid grey;
    margin-top: -4px;
}

.warning__apply:hover {
    background: #e67635;
}

.warning__apply:active {
    transform: scale(0.95);
}

/* Анимация появления */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .warning {
            left: 10px !important;
    right: 10px;
    bottom: 10px !important;
    padding: 15px !important;
    max-width: 350px;
    margin: 0 auto;
    }
    
    .warning__text {
        font-size: 12px;
    }
}