﻿
.min-w-0 {
    min-width: 0;
}
/* Шапка */
.page-header {
    display: flex;
    align-items: center;
}

.header-content {
    margin-right: auto;
    padding: 0.5rem 0;
}

.ds-color {
    color: #005399;
}
.ds-bg-color-gray {
    background-color: #D0D0D0;
}
.ds-bg-color-blue {
    background-color: #005399;
}
/*нуумерованныцй список с подпунктами*/
.two-level-list {
    counter-reset: first-level;
    list-style: none;
    padding-left: 0;
}

    .two-level-list > li {
        counter-increment: first-level;
        margin-bottom: 1rem;
        
    }

        .two-level-list > li::before {
            content: counter(first-level) ".";
            margin-right: 0.5rem;           
        }

        .two-level-list > li > ol {
            counter-reset: second-level;
            list-style: none;
          /*  padding-left: 1.5rem;*/
            margin-top: 0.5rem;
        }

            .two-level-list > li > ol > li {
                counter-increment: second-level;
                margin-bottom: 0.25rem;               
            }

                .two-level-list > li > ol > li::before {
                    content: counter(first-level) "." counter(second-level);
                    margin-right: 0.5rem;                
                    font-size: 0.9em;
                }
.list-none-bullet {
    list-style-type:none;
}
.two-level-list > li > ol > li > ol {
    counter-reset: third-level;
    list-style: none;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

    .two-level-list > li > ol > li > ol > li {
        counter-increment: third-level;
        margin-bottom: 0.25rem;
    }

        .two-level-list > li > ol > li > ol > li::before {
            content: counter(first-level) "." counter(second-level) "." counter(third-level);
            margin-right: 0.5rem;
            font-size: 0.85em;         
        }


/*хлебные крошки*/
.ds-breadcrumb-nav {
    display: flex;
    list-style: none;
    font-size: 20px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding:0px; /*ol тянет за собой стили бутстрап, обнуляем их*/
}

.ds-breadcrumb-item + .ds-breadcrumb-item::before {
    content: "»";
    padding: 0 0.7rem;
    color: #005399;
}

.ds-breadcrumb-home {
    color: #005399;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

    .ds-breadcrumb-home:hover {
        color: #005399;
        background-color: rgba(0, 83, 153, 0.1);
        text-shadow: 0 0 8px rgba(0, 83, 153, 0.3);
        box-shadow: 0 0 12px rgba(0, 83, 153, 0.2);
        transform: translateY(-1px);
    }

.ds-breadcrumb-link {
    color: dimgrey;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

    .ds-breadcrumb-link:hover {
        color: #005399;
        background-color: rgba(0, 83, 153, 0.1);
        text-shadow: 0 0 8px rgba(0, 83, 153, 0.3);
        box-shadow: 0 0 12px rgba(0, 83, 153, 0.2);
        transform: translateY(-1px);
    }

.ds-breadcrumb-current {
    color: #005399;
    font-weight: 700;
    /*padding: 0.25rem 0.5rem;*/
}
/*====================================*/

.ds-text {
    font-size: calc(0.7rem + 0.3vw);/* 1rem-16px. Адаптивность под ширину экрана*/
    font-weight:400;
    line-height: 1.5;
    color:black;
}
/*Наследование всем вложенным элементам*/
    .ds-text * {
        font-size: inherit;
        line-height: inherit;
    }

/*Кнока подробнее на карточка (новости, акции)*/
.btn-details-icon {
    
    background-color: rgba(0, 83, 153, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 83, 153, 0.3);
}

    .btn-details-icon:hover {
        background-color: rgba(0, 83, 153, 0.7);
        box-shadow: 0 6px 20px rgba(0, 83, 153, 0.5);
        transform: translateY(-2px);
        padding-right: 1.2rem;
        padding-left: 1.2rem;
    }
/*-------------------------------------------*/
/*!!!прозрачность карточек новостей и акций!!!*/
.card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 83, 153, 0.1);
}

    .card:hover {
        box-shadow: 0 8px 30px rgba(0, 83, 153, 0.2);
        transform: translateY(-5px);
    }

.btn-details-icon {
    background-color: rgba(0, 83, 153, 0.7);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 83, 153, 0.3);
}

    .btn-details-icon:hover {
        background-color: rgba(0, 83, 153, 0.9);
        box-shadow: 0 6px 20px rgba(0, 83, 153, 0.5);
        transform: translateY(-2px);
    }
/*---------------------------------------*/
/*анимация при наведении на типы устройств*/
.ds-img-type-device {   
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .ds-img-type-device:hover {
        opacity: 0.5;
        transform: translate(5px, 5px);
    }
    /*---------------------------------------*/
    /*переопределения bootstrap*/
.dropup:hover .dropdown-menu {
    display: block;
    margin-bottom: 10px;
}
.btn-secondary {
    --bs-btn-color: #005399;
    --bs-btn-bg: #D0D0D0;
}
    /*---------------------------------------*/
    /*иконка скачивания файла(стрелка в круге)*/
    .download-icon-minimal {
    cursor: pointer;
    transition: all 0.3s ease;
}

    .download-icon-minimal:hover {
        transform: translateY(-3px);
        filter: drop-shadow(0 6px 12px rgba(0, 83, 153, 0.3));
    }

        .download-icon-minimal:hover .base-circle {
            animation: color-pulse 2s ease-in-out infinite;
        }

        .download-icon-minimal:hover .minimal-arrow {
            animation: smooth-bounce 1s ease-in-out infinite;
        }

        .download-icon-minimal:hover .wave {
            animation: wave-appear 1.5s ease-in-out infinite;
        }
@keyframes color-pulse {
    0%, 100% {
        fill: #005399;
    }

    50% {
        fill: #0080ff;
    }
}

@keyframes smooth-bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1px);
    }
}

@keyframes wave-appear {
    0%, 100% {
        opacity: 0;
        transform: scaleX(0.8);
    }

    50% {
        opacity: 0.6;
        transform: scaleX(1);
    }
}
.test {
    background-image: url('../assets/Dors-service/_.jpg.webp');
    background-repeat: no-repeat;
    background-size: contain;
    width:100%;
}
/*--------------------------------------------------*/
/* Home page. */
.ds-homepage {
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
    width: 100%;
}
    .ds-homepage > * {
        padding: 1.5rem 0 1.5rem 0;
        width: 100%;
    }
    .ds-homepage > *:nth-child(even) {
        background-color: #F0F0F0;
    }
        .ds-homepage > * > * {
            margin: 0 auto 0 auto;
            max-width: 1200px;
        }

    /* Меню кружков. */
    .ds-homepage .circle-menu {
        /* Центрирование содержимого. */
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: flex-start;
    }
        /* Перенос каждого "кружка" будет выполняться по размеру, но не более 3-х по главной оси. */
        .ds-homepage .circle-menu > div {
            width: 26%;
            min-width: 121px;
            text-align: center;
            /* Центрирование содержимого. */
            display: flex;
            justify-content: center;
        }
            /* Ссылка, пункт меню. */
            .ds-homepage .circle-menu > div > a {
                display: block;
                width: 100%;
                max-width: 193px;
            }
                /* Кружок. */
                .ds-homepage .circle-menu > div > a > .cm-icon {
                    width: 100%;
                    padding-bottom: 100%; /* Квадратный размер элемента. */
                    border-radius: 50%;
                    background-color: #dde5eb;
                    background-position: center center;
                    background-repeat: no-repeat;
                    background-size: 55% auto;
                }
                /* Подпись. */
                .ds-homepage .circle-menu > div > a > .cm-text {
                    margin: 0.5rem 0 2rem 0;
                    color: #000000;
                    font-size: 1.25rem;
                    text-align: center;
                }
    /* Меню кружков. */
    .ds-homepage .circle-graph {
        /* Центрирование содержимого. */
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: flex-start;
    }
        /* Вершины графа.*/
        .ds-homepage .circle-graph > div {
            width: 9%;
            min-width: 109px;
            text-align: center;
            /* Центрирование содержимого. */
            display: flex;
            justify-content: center;
        }
            /* Вершина графа. */
            .ds-homepage .circle-graph > div > div {
                display: block;
                width: 100%;
                max-width: 149px;
            }
                /* Кружок. */
                .ds-homepage .circle-graph > div > div > .cg-icon {
                    width: 100%;
                    padding-bottom: 100%; /* Квадратный размер элемента. */
                    border-radius: 50%;
                    background-color: #dde5eb;
                    background-position: center center;
                    background-repeat: no-repeat;
                    background-size: 55% auto;
                }
                /* Подпись. */
                .ds-homepage .circle-graph > div > div > .cg-text {
                    margin: 0.5rem 0 2rem 0;
                    color: #000000;
                    font-size: .875em;
                    text-align: center;
                }
                /* Стрелка. */
                .ds-homepage .circle-graph > div > div > .cg-arrow {
                    width: 100%;
                    padding-bottom: 100%; /* Квадратный размер элемента. */
                    background-position: center center;
                    background-repeat: no-repeat;
                }
        @media (max-width: 576px) {
            .ds-homepage .circle-graph > .arrow {
                display: none;
            }
        }
    /* Кнопка, завершающая блок. */
    .ds-homepage .block_center_button {
        /* Центрирование содержимого. */
        display: flex;
        justify-content: center;
    }

/*Home page круглые значки*/
.service-icon-wrap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #dde5eb; /* светлый круг */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .service-icon-wrap img {
        max-width: 55%; /* размер иконки */
        height: auto;
    }

.service-icon-min {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #dde5eb; /* светлый круг */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .service-icon-min img {
        max-width: 55%; /* размер иконки */
        height: auto;
    }
@media (max-width: 767.98px) {
    .service-item {
        margin-bottom: 60px;
    }

} 
/*--------------------------------------------------*/

/*!!!Баннер!!!*/
.ds-banner-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    /*min-height: 100%;*/ 
}

.ds-banner-image {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.ds-banner-content {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    background: rgba(0, 83, 153, 0.8); 
    max-width: 45%;
}

.ds-banner-homepage {
    border: 1px solid #F0F0F0;
}
.ds-banner-homepage:hover {
    border: 1px solid #005399;
}
/*-----------------------------------------------------*/

/*Таймлайн (страница О Нас)*/
.timeline-container {
    position: relative;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #0066cc;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;/*расстояние между элементами*/
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

    .timeline-item:nth-child(1) {
        animation-delay: 0.5s;
    }

    .timeline-item:nth-child(2) {
        animation-delay: 0.7s;
    }

    .timeline-item:nth-child(3) {
        animation-delay: 1s;
    }

    .timeline-item:nth-child(4) {
        animation-delay: 1.2s;
    }

    .timeline-item:nth-child(5) {
        animation-delay: 1.5s;
    }

    .timeline-item:nth-child(6) {
        animation-delay: 1.8s;
    }

    .timeline-item:nth-child(7) {
        animation-delay: 2s;
    }
    .timeline-item:nth-child(8) {
        animation-delay: 2.3s;
    }
    .timeline-item:nth-child(9) {
        animation-delay: 2.7s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: yellow;
    font-weight: bold;
    font-size: 20px;
    z-index: 10;
    border: 4px solid #f0f0f0;
}

.timeline-content-left {
    width: 45%;
    text-align: right;
    padding-right: 30px;
}

.timeline-content-right {
    width: 45%;
    margin-left: 55%;
    text-align: left;
    padding-left: 30px;
}

.timeline-year {
    font-size: 28px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-description {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}


@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .timeline-content-left,
    .timeline-content-right {
        width: calc(100% - 80px);
        margin-left: 80px;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }
}


/*!!!Как работает DORS-SERVICE!!!*/
.process {
    padding: 40px 0;
}

.process-step {
    position: relative;
    text-align: center;
    padding: 0 25px;
}

/* синие квадраты с иконкой */
.process-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 15px;  
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;    
}


/* стрелки между шагами (только на md и выше) */
@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        content: "\2192"; /* → */
        position: absolute;
        top: 45px;
        right: -10px;
        font-size: 28px;
        color: #000;
    }
}

@media (max-width: 767.98px) {
    .process-step {
        margin-bottom: 30px;
    }
}


.process-title {
    letter-spacing: 1px;
    color: #004b87;
}

    .process-title span {
        color: #004b87;
    }

.process-step {
    position: relative;
}

.process-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #dde5eb; 
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b5ea8;
    font-size: 48px;
}

.process-icon img{
    width:75%

}

    .process-text {
        font-size: 14px;
        line-height: 1.35;
    }

/* Стрелки между шагами на широких экранах */
@media (min-width: 992px) {
    .process-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 60px;
        right: -11%;
        width: 40px;
        height: 3px;
        background: #005399;
    }

    .process-step:not(:last-child)::before {
        content: "";
        position: absolute;
        top: 56px;
        right: -12%;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 8px solid #005399; /* стрелка */
    }
}

/* немного сжимаем текст на очень больших экранах */
@media (min-width: 1200px) {
    .process-text {
        font-size: 13px;
    }
}
/*-------------------------------------------*/

/*----------------баннер*---------------------*/
   /* .banner-wrapper {
            max-width: 1200px;
            margin: 20px auto;
        }*/
        /* Фиксированная высота баннера (под свою картинку поправь) */
.banner-wrapper .carousel-item img {

    object-fit: cover; /* картинка заполняет баннер без искажений */
}
/*-------------------------------------------*/
/* Медиа-запросы для адаптивности */
@media (min-width: 768px) {
}

@media (min-width: 992px) {
   
}



.map-container {
    background-color: #e8e8e8;
    border-radius:10px;
    padding-right:70px;
    padding-bottom:30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.region {
   /* stroke: #ffffff;
    stroke-width: 2px;*/
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-FarEast,
.region-Siberia,
.region-Ural,
.region-Volga,
.region-Сentral,
.region-South,
.region-Caucasus,
.region-Northwest {
    fill: #bfb9b9;
}
  
[class^="region-"]:hover,
[class^="region-"].active {
    fill: #f4a460;
    /*transform: scale(1.02);*/
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}

.region-default-active {
    fill: #f4a460 !important;
}

.legend-default-active {
    background-color: #0066b3 !important;
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.legend-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.legend-item {
    padding: 10px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
}
.legend-item:hover,
.legend-item.active { 
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.legend-gray {
    background-color: #9d9d9d;
}
.legend-gray:hover,
.legend-gray.active {
    background-color: #0066b3;
}

.legend-title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.legend-cities {
    font-size: 0.9rem;
    opacity: 0.9;
}
.service-section {
    margin-bottom: 40px;
}

.icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #0066b3;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

    .icon-circle img {
        width: 60px;
        height: 60px;
        filter: brightness(0) invert(1);
    }

.service-content {
    flex: 1;
}

.service-title {
    font-size: 24px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.phone-link {
    color: #0066b3;
    text-decoration: none;
}

    .phone-link:hover {
        text-decoration: underline;
    }

.form-link {
    color: #ff6b6b;
    text-decoration: none;
}

    .form-link:hover {
        text-decoration: underline;
    }

.checkmark {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper {
    position: relative;
}

.divider {
    position: relative;
    width: 100%;
    max-width: 140px;
    margin-left: auto;
    margin-right: auto;
    height: 1px;
    background-color: #000000;
}


@media (max-width: 991px) {
    .legend-container {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .title {
        font-size: 1.8rem;
    }

    .legend-item {
        padding: 12px 15px;
    }
}

