/* Основные стили для страницы АДС */

/* Benefit Cards */
.benefit-card {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background-color: #dedef0;
    border-radius: 5px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 150px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1400px) {
    .benefit-card {
        padding: 0.5rem;
    }
}

@media (max-width: 1200px) {
    .benefit-card {
        flex-direction: column;
    }
}

@media (max-width: 991px) {
    .benefit-card {
        padding: 1rem
    }
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Изображения */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Feature images - для больших скриншотов */
.feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.feature-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ограничение размера для больших изображений в секциях */
.col-lg-6 .feature-image {
    max-height: 500px;
    object-fit: contain;
    width: 100%;
}

@media (max-width: 991px) {
    .col-lg-6 .feature-image {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .col-lg-6 .feature-image {
        max-height: 300px;
    }
}


.ads-carousel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 18px;
    position: relative;
    min-height: 390px;
    height: 390px;
}

.ads-carousel .carousel-inner {
    height: 100%;
    position: relative;
}

.ads-carousel .carousel-item {
    height: 100%;
    position: relative;
}

.ads-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ads-carousel .carousel-indicators,
.ads-carousel .carousel-control-prev,
.ads-carousel .carousel-control-next {
  z-index: 2;
}

.carousel-control-next-icon, 
.carousel-control-prev-icon {
    filter: drop-shadow(0 0 2px #000);
    width: 16px;
    height: 16px;
}

.dark-mode .carousel-control-next-icon,
.dark-mode .carousel-control-prev-icon {
    filter: invert(1) drop-shadow(0 0 2px #fff);
}


.ads-carousel .carousel-control-prev,
.ads-carousel .carousel-control-next {
  width: 16px;
  height: 16px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  opacity: 0.8;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  position: absolute;
}

.carousel-indicators {
    margin: 0;
    position: relative;
}

.carousel-indicators li {
    height: 0.2rem
}

.carousel-indicators li {
    background-color: var(--primary);
}

/* Адаптивность для карусели */
@media (max-width: 991px) {
    .ads-carousel {
        min-height: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .ads-carousel {
        min-height: 300px;
        height: 300px;
    }
}

@media (max-width: 576px) {
    .ads-carousel {
        min-height: 280px;
        height: 280px;
    }
}

.bg-light {
    background-color: #dedef0 !important;
}

/* Shadow */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Info Box - информационные блоки с акцентной линией */
.info-box {
    display: flex;
    /* padding: 1rem; */
    border-radius: 8px;
    /* background-color: #f8f9fa; */
    transition: all 0.3s ease;
}

.info-box:hover {
    /* background-color: #e9ecef; */
    transform: translateX(5px);
}

.info-box-accent {
    width: 4px;
    min-width: 4px;
    background-color: var(--primary);
    border-radius: 2px;
    margin-right: 1rem;
}

.info-box-content {
    flex: 1;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .info-box {
        padding: 0.75rem;
    }
}

/* Feature Highlight - простые выделенные блоки */
.feature-highlight {
    border-radius: 8px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* CTA Box - призывы к действию */
.cta-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #dedef0;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.cta-box:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

@media (max-width: 991px) {
    .cta-box {
        padding: 2rem;
    }
    
    .cta-box h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .cta-box {
        padding: 1.5rem;
    }
}

/* Why Us Cards */
.why-us-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.why-us-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.why-us-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

@media (max-width: 991px) {
    .why-us-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .why-us-card {
        padding: 1.25rem;
    }
}

/* Final CTA Box */
.final-cta-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #dedef0;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.final-cta-box .btn {
    margin-right: 1rem;
}

@media (max-width: 991px) {
    .final-cta-box {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .final-cta-box {
        padding: 1.5rem;
    }
    
    .final-cta-box .btn {
        margin-right: 0;
        width: 100%;
    }
}

/* Button improvements */
.btn-primary,
.btn-warning {
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Utility classes */
.gap-2 {
    gap: 0.5rem;
}

/* Улучшенная анимация для списков */
.list-unstyled li {
    transition: all 0.2s ease;
}

.list-unstyled li:hover {
    transform: translateX(5px);
}

/* Улучшенные заголовки секций */
.text-center h3,
.text-center h4 {
    position: relative;
    padding-bottom: 1rem;
}

/* Улучшенные изображения hero секции */
.lead img {
    transition: transform 0.3s ease;
}

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

/* Фокус состояния для доступности */
.btn:focus,
.btn:active {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

/* Плавная анимация для карусели */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Улучшенные тени для изображений */
.img-fluid {
    transition: all 0.3s ease;
}

.img-fluid:hover {
    filter: brightness(1.05);
}

.images-animation {
    transition: transform 1s, box-shadow 1s;
    position: relative; /* или absolute, если нужно */
    z-index: 1;
}

.images-animation:hover {
    transition: 1s;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10; /* становится выше текста */
}

/* Адаптивная типографика для маленьких экранов */
@media (max-width: 576px) {
    /* h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    h4, .h4 {
        font-size: 1.1rem;
    } */
}

/* Улучшенные иконки */
.ic {
    transition: all 0.3s ease;
}

.media:hover .ic,
.list-unstyled li:hover .ic {
    transform: scale(1.1);
}

/* Загрузка с плавным появлением */
.container-parent {
    animation: fadeIn 0.5s ease-in;
}

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

/* Печатные стили */
@media print {
    .info-box,
    .feature-highlight,
    .cta-box,
    .why-us-card,
    .final-cta-box {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
    
    .carousel {
        display: block !important;
        height: auto !important;
    }
    
    .carousel-item {
        display: block !important;
        opacity: 1 !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
}

/* Стили для полноэкранного просмотра картинок */
.modal-content {
    border-radius: 16px;
}

.modal-dialog {
    max-width: 95vw;
    margin: 2.5vh auto;
}

.modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); */
}

/* Стили для интерактивности картинок */
.calls-modal-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.calls-modal-trigger:hover {
    transform: scale(1.05);
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); */
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-dialog {
        max-width: 98vw;
        margin: 1vh auto;
    }

    .modal-body {
        min-height: 85vh;
    }

    #modalImage {
        max-height: 85vh;
    }

}