.manrope {
font-family: "Manrope", sans-serif;
font-optical-sizing: auto;
font-style: normal;
}

.great-vibes-regular {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --light-color: #d4d4d4;
    --dark-color: #2c3e50;
}


/* Дополнительные стили для улучшения внешнего вида */
    .offcanvas {
        width: 300px !important;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
        font-size: 1.1rem;
    }

    @media (min-width: 992px) {
        .navbar-collapse {
            display: flex !important;
        }

        .navbar-toggler {
            display: none;
        }
    }


    /*Герой банер*/

.header{
    margin-top: 117px;
    margin-bottom: 112px;
}

.mini-portfolio{
    margin-top: 80px;
    margin-bottom: 83px;
}

.header-text h2{
    font-family: "Great Vibes", cursive;

    font-style: normal;
    text-align: center;
    color: white;
    text-shadow: #000000 1px 2px 2px;
    font-size: 5rem; /* десктоп */
}

@media (max-width: 768px) {
  .header-text h2 {
    font-size: 3.5rem; /* планшеты и мобильные */
  }
}

@media (max-width: 576px) {
  .header-text h2 {
    font-size: 3.5rem; /* телефоны */
  }
}


.header-text p{
    font-family: "Manrope", sans-serif;

    text-align: center;
    color: #fff2be;

}

.hero-section {
    position: relative;

    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(3px);
}

/*!* Медиа-запрос для мобильных устройств *!*/
/*@media (max-width: 767.98px) {*/
/*    .hero-section {*/
/*        height: 80vh; !* немного меньше на мобильных *!*/
/*    }*/
/*}*/

/*Карусель под герой-банером*/
.featured-card {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}
.featured-card img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}
.featured-card .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}
.featured-card:hover .overlay,
.featured-card:focus-within .overlay {
  opacity: 1;
}


/*@media only screen and (max-width: 1024px) {*/
/*    .hero-section {*/
/*        background-attachment: scroll !important;*/
/*    }*/
/*}*/

/*@supports (-webkit-overflow-scrolling: touch) {*/
/*    .hero-section {*/
/*        background-attachment: scroll !important;*/
/*    }*/
/*}*/

/*Калькулятор ремонта*/
.calculator-section {

  min-height: 100vh;
  display: flex;
  align-items: center;
}

.quiz-container {

  margin: 0 auto;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

/* Стили для кастомных чекбоксов и радио */
.form-check-label {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #dee2e6;
}

.type-option input:checked + label,
.repair-option input:checked + label,
.material-option input:checked + label {
  border-color: #FF9966;
  box-shadow: 0 0 0 1px #FF9966;
  background-color: rgba(255, 153, 102, 0.1);
}

.check-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: inline-block;
  position: relative;
}

input:checked + label .check-indicator:before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #FF9966;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Стили для иконок */
.icon-circle {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-light-orange {
  background-color: rgba(255, 153, 102, 0.2);
}

.text-orange {
  color: #FF9966;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Стили для ползунка площади */
.area-selector {
  background-color: #f8f9fa;
}

.area-value {
  color: #FF9966;
}

/* Стили для результата */
.result-card {
  position: relative;
  overflow: hidden;
}

.badge {
  font-weight: normal;
}

/* Медиа запросы для адаптивности */
@media (max-width: 768px) {
  .step {
    padding: 15px;
  }

  .repair-option label,
  .material-option label,
  .type-option label {
    padding: 10px !important;
  }
}

/* Стили для анимации загрузки */
.loading {
  position: relative;
}

.loading:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading:before {
  content: '⏳';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: 2rem;
}
/*Калькулятор ремонта*/


/*Наши услуги*/
.services-section {
padding: 5rem 0;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.benefits-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.portfolio-section {
    padding: 5rem 0;
}

.portfolio-item {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.reviews-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.review-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.customer-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.cta-section {
    padding: 5rem 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://picsum.photos/seed/living1/1200/600?grayscale&blur=2');
    background-size: cover;
    background-position: center;
    color: white;
}

.cta-form {

    border-radius: 10px;
    padding: 2rem;
}

footer {
    padding: 3rem 0;
    background-color: #1a1d20cf;
    color: white;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}


.faq-section {
padding: 5rem 0;
background-color: var(--light-color);
}

.accordion-item {

box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-button {
font-weight: 600;
padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
background-color: var(--primary-color);
color: white;
}

.accordion-button:focus {
box-shadow: none;
border-color: rgba(0,0,0,0.125);
}

.accordion-body {
padding: 1.5rem;
background-color: white;
}

/* Команда */
.team-section {
padding: 5rem 0;
}

.team-card {
        background-color: white;
text-align: center;
padding: 2rem;
border-radius: 10px;
transition: all 0.3s ease;
height: 100%;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
/* Добавляем flexbox для равномерного распределения контента */
display: flex;
flex-direction: column;
justify-content: space-between;
}

.team-card:hover {
transform: translateY(-5px);
}

.team-img img {
width: 180px;
height: 180px;
object-fit: cover;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-info {
margin-top: 1.5rem;
/* Позволяем этому блоку расти и занимать доступное место */
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.team-skills .badge {
padding: 0.6rem 0.8rem;
margin-bottom: 0.3rem;
}

.team-cert i {
font-size: 1.2rem;
cursor: pointer;
}

/* Добавляем стили только для карусели команды */
#teamSplide .splide__slide {
    height: auto;
    display: flex;
}

/* Ограничиваем длину текста опыта, чтобы карточки не сильно различались */
.team-info .small {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Максимум 3 строки */
    -webkit-box-orient: vertical;
    min-height: 4.5rem; /* Примерно 3 строки текста */
}

/* Процесс работы */
.process-section {
padding: 5rem 0;
background-color: var(--light-color);
}


.timeline {
position: relative;
padding: 0;
list-style: none;
}

.timeline:before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 2px;
margin-left: -1px;
background-color: var(--secondary-color);
}

.timeline-item {
position: relative;
margin-bottom: 3rem;
width: 100%;
clear: both;
}

.timeline-badge {
position: absolute;
z-index: 100;
left: 50%;
width: 50px;
height: 50px;
margin-left: -25px;
border-radius: 50%;
text-align: center;
font-weight: 700;
line-height: 50px;
color: white;
background-color: var(--secondary-color);
font-size: 1.25rem;
}

.timeline-panel {
position: relative;
float: left;
width: 46%;
padding: 1.5rem;
border-radius: 10px;
background-color: white;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
margin-top: 15px; /* Добавлено для отступа от цифры */
}

.timeline-item:nth-child(even) .timeline-panel {
float: right;
}

.timeline-item:nth-child(odd) .timeline-panel:before {
content: "";
position: absolute;
top: 26px;
right: -15px;
border-top: 15px solid transparent;
border-left: 15px solid white;
border-bottom: 15px solid transparent;
}

.timeline-item:nth-child(even) .timeline-panel:before {
content: "";
position: absolute;
top: 26px;
left: -15px;
border-top: 15px solid transparent;
border-right: 15px solid white;
border-bottom: 15px solid transparent;
}

.timeline-heading h4 {
margin-top: 0;
font-weight: 600;
color: var(--secondary-color);
}

.sub-steps {
margin-top: 1rem;
}

.sub-step {
padding: 0.5rem 0;
border-top: 1px solid #eee;
}

.sub-step:last-child {
border-bottom: 1px solid #eee;
}

.process-time-card {
text-align: center;
padding: 2rem;
background-color: white;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
height: 100%;
transition: transform 0.3s ease;
margin-bottom: 1rem; /* Добавлено для отступа между карточками */
}

.process-time-card:hover {
transform: translateY(-5px);
}

.process-time-icon {
font-size: 3rem;
color: var(--secondary-color);
margin-bottom: 1.5rem;
}

.process-time-info {
text-align: left;
}

.process-time-info p {
margin-bottom: 0.7rem;
}

.process-time-info i {
color: var(--secondary-color);
margin-right: 0.5rem;
}

/* Адаптивность для таймлайна */
@media (max-width: 767px) {
.timeline:before {
left: 40px;
}
.timeline-badge {
left: 40px;
margin-left: 0;
}
.timeline-panel {
width: calc(100% - 90px);
float: right;
margin-left: 70px; /* Добавлено для мобильной версии */
}
.timeline-item:nth-child(odd) .timeline-panel:before {
content: "";
position: absolute;
top: 26px;
left: -15px;
border-top: 15px solid transparent;
border-right: 15px solid white;
border-bottom: 15px solid transparent;
border-left: 0;
right: auto;
}
.timeline-item:nth-child(even) .timeline-panel {
float: right;
}
}



/* CSS для эффектов появления*/
.scroll-animate {
opacity: 0;
transform: translateY(100px); /* Начальное смещение */
transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animate {
opacity: 1;
transform: translateY(0);
}

/* Доп. эффекты */
.fade-in { opacity: 0; }
.fade-in.animate { opacity: 1; }

.slide-left { transform: translateX(-500px); }
.slide-left.animate { transform: translateX(0); }

/* Эффект выезжания справа */
.slide-right {
transform: translateX(500px);
}
.slide-right.animate {
transform: translateX(0);
}


/* Базовые стили для анимации */
.scroll-animate {
opacity: 0;
transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Эффект плавного появления (fade-in) */
.fade-in {
opacity: 0;
}
.fade-in.animate {
opacity: 1;
}

/* Дополнительно: можно добавить задержки */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }


@media (min-width: 768px) {
.scroll-animate {
opacity: 0;
transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Fade-in */
.fade-in { opacity: 0; }
.fade-in.animate { opacity: 1; }

/* Slide-left */
.slide-left { transform: translateX(-500px); }
.slide-left.animate { transform: translateX(0); }

/* Slide-right */
.slide-right { transform: translateX(500px); }
.slide-right.animate { transform: translateX(0); }

/* Задержки */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
}

/* Отключение анимаций на мобильных */
@media (max-width: 767px) {
.scroll-animate {
opacity: 1 !important;
transform: none !important;
}
}


/* Стили для карусели в модальном окне */
.portfolio-carousel {
    position: relative;
}

#portfolioImageCarousel .carousel-item {
    height: 400px;
    background-color: #f8f9fa;
    overflow: hidden;
    text-align: center;
}

#portfolioImageCarousel .carousel-item img {
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: auto 15px;
}

/* Стили для превью изображений в форме редактирования */
.image-preview {
    display: inline-block;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 100px;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .btn-danger {
    font-size: 10px;
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.image-preview .btn-danger:hover {
    opacity: 1;
}

/* Стили для кнопок редактирования и удаления на элементах портфолио */
.portfolio-item {
    transition: all 0.3s ease;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}


/*Отзывы - карусель в отзывов*/


/* Комментарии к задачам */
.comment-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.comment-list::-webkit-scrollbar {
    width: 5px;
}

.comment-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.comment-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.comment-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/*Для фиксации в некоторых браузерах*/
html, body {
  height: 100%;
  overflow-x: hidden;
  /*overscroll-behavior: none;*/
  scroll-behavior: smooth;
}

body {
  position: relative;
}
.navbar.fixed-top {
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}



/*Видеопрезентация*/

.video-container-reels {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.btn-play {
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 3;
}

.btn-play:hover {
    transform: scale(1.1);
    opacity: 1;
}

.video-overlay {
    background-color: rgba(0, 0, 0, 0.3); /* визуально красиво */
    pointer-events: auto;
}

.video-overlay:hover {
    background: rgba(0,0,0,0.3);
}

@media (max-width: 991.98px) {
    .video-container-reels {
        max-width: 300px;
    }
}

/* Стили для кнопок фильтрации */
    .filter-buttons .btn {
        min-width: 150px;
        transition: all 0.3s ease;
        border-radius: 0;
    }

    .filter-buttons .btn:first-child {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

    .filter-buttons .btn:last-child {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }



    /* Улучшенные стили для элементов портфолио */
    .portfolio-item {
        transition: all 0.3s ease;
    }

    .portfolio-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    }

    .portfolio-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        padding: 20px;
    }

    .portfolio-item:hover .portfolio-overlay {
        opacity: 1;
    }

    .price-badge {
        transform: translateY(20px);
        transition: transform 0.3s ease 0.1s;
    }

    .portfolio-item:hover .price-badge {
        transform: translateY(0);
    }

    /* Для адаптивности на мобильных устройствах */
    @media (max-width: 768px) {
        .filter-buttons {
            flex-direction: column;
            width: 100%;
        }

        .filter-buttons .btn {
            border-radius: 4px;
            margin-bottom: 5px;
            width: 100%;
        }
    }







/* =============================================================================
   TELEGRAM FLOATING BUTTON STYLES
   Добавьте этот код в конец вашего файла styles.css
   ============================================================================= */

.telegram-float-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    cursor: pointer;
    user-select: none;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.telegram-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc, #229ed9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 12px rgba(0, 136, 204, 0.4),
        0 8px 24px rgba(0, 136, 204, 0.2),
        0 0 0 0 rgba(0, 136, 204, 0.4);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: telegram-pulse-ring 2s infinite;
}

.telegram-btn i {
    color: white;
    font-size: 26px;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Пульсирующее кольцо */
@keyframes telegram-pulse-ring {
    0% {
        box-shadow:
            0 4px 12px rgba(0, 136, 204, 0.4),
            0 8px 24px rgba(0, 136, 204, 0.2),
            0 0 0 0 rgba(0, 136, 204, 0.4);
    }
    50% {
        box-shadow:
            0 4px 12px rgba(0, 136, 204, 0.4),
            0 8px 24px rgba(0, 136, 204, 0.2),
            0 0 0 15px rgba(0, 136, 204, 0);
    }
    100% {
        box-shadow:
            0 4px 12px rgba(0, 136, 204, 0.4),
            0 8px 24px rgba(0, 136, 204, 0.2),
            0 0 0 0 rgba(0, 136, 204, 0);
    }
}

/* Hover эффекты */
.telegram-float-button:hover .telegram-btn {
    transform: scale(1.1);
    background: linear-gradient(135deg, #229ed9, #0088cc);
    animation-play-state: paused;
    box-shadow:
        0 6px 16px rgba(0, 136, 204, 0.5),
        0 12px 32px rgba(0, 136, 204, 0.3);
}

.telegram-float-button:hover .telegram-btn i {
    transform: scale(1.1);
}

/* Активное состояние */
.telegram-float-button:active .telegram-btn {
    transform: scale(0.95);
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .telegram-float-button {
        bottom: 15px;
        left: 15px;
    }

    .telegram-btn {
        width: 55px;
        height: 55px;
    }

    .telegram-btn i {
        font-size: 24px;
    }
}

/* Мобильные устройства */
@media (max-width: 480px) {
    .telegram-float-button {
        bottom: 12px;
        left: 12px;
    }

    .telegram-btn {
        width: 50px;
        height: 50px;
    }

    .telegram-btn i {
        font-size: 22px;
    }
}

/* Состояния показа/скрытия */
.telegram-float-button.show {
    opacity: 1;
    transform: translateY(0);
}

.telegram-float-button.hide {
    opacity: 0;
    transform: translateY(100px);
}

/* Всплывающая подсказка (только на десктопе) */
.telegram-float-button::after {
    content: 'Напишите нам в Telegram';
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: "Manrope", sans-serif;
}

.telegram-float-button:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    .telegram-float-button::after {
        display: none;
    }
}

/*****************************************/
/*Партнёры********************************/

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --light-color: #d4d4d4;
    --dark-color: #2c3e50;
}

body {
    font-family: "Manrope", sans-serif;
    background-color: #fffef5;
}

.partners-section {
    padding: 5rem 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.section-title {
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-family: "Great Vibes", cursive;
    font-size: 3.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.partners-carousel {
    position: relative;
    z-index: 2;
}

/* Кастомные стили для Splide партнёров */
#partnersSplide .splide__track {
    overflow: visible !important;
}

#partnersSplide .splide__list {
    align-items: center;
}

#partnersSplide .splide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0.5rem;
    height: auto;
}

.partner-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 220px;
}

.partner-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.08),
        0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    height: 120px;
    width: 100%;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), #ff6b8a);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.partner-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 15px 35px rgba(231, 76, 60, 0.15),
        0 8px 15px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
    text-decoration: none;
    color: inherit;
}

.partner-card:hover::before {
    opacity: 0.05;
}

.partner-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
    transform: scale(1.1);
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

.partner-logo i {
    font-size: 1.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo i {
    color: var(--secondary-color);
    transform: rotateY(360deg);
}

.partner-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-align: center;
    margin: 0 0 0.3rem 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.partner-card:hover .partner-name {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.partner-specialty {
    font-size: 0.7rem;
    color: #6c757d;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    line-height: 1.1;
}

.partner-card:hover .partner-specialty {
    color: #495057;
}

/* Стили для стрелок карусели партнёров */
#partnersSplide .splide__arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

#partnersSplide .splide__arrow {
    position: static;

    border-radius: 50%;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    color: var(--secondary-color);
    pointer-events: auto;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

#partnersSplide .splide__arrow:hover {
    background: var(--secondary-color);


    opacity: 1;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

#partnersSplide .splide__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

#partnersSplide .splide__arrow svg {
    width: 16px;
    height: 16px;
}

#partnersSplide .splide__arrow--prev {
    left: -25px;
}

#partnersSplide .splide__arrow--next {
    right: -25px;
}

/* Эффект для featured партнёров */
.featured-partner {
    position: relative;
}

.featured-partner::after {
    content: 'ТОП';
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .partners-section {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .partner-card {
        height: 110px;
        max-width: 200px;
        padding: 1.2rem;
    }

    .partner-logo {
        width: 45px;
        height: 45px;
    }

    .partner-logo i {
        font-size: 1.3rem;
    }

    .partner-name {
        font-size: 0.8rem;
    }

    .partner-specialty {
        font-size: 0.65rem;
    }



    #partnersSplide .splide__arrow--prev {
        left: -20px;
    }

    #partnersSplide .splide__arrow--next {
        right: -20px;
    }
}

@media (max-width: 576px) {
    #partnersSplide .splide__arrow--prev {
        left: -15px;
    }

    #partnersSplide .splide__arrow--next {
        right: -15px;
    }

    .partner-card {
        max-width: 180px;
    }
}

/* Анимация появления */
.partners-carousel {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.partners-carousel.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Эффект свечения */
@keyframes glow {
    0%, 100% { box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
    50% { box-shadow: 0 8px 25px rgba(231, 76, 60, 0.15); }
}

.partner-card.highlight {
    animation: glow 2s ease-in-out;
}


/* =============================================================================
   404 ERROR PAGE STYLES
   Добавьте этот код в конец вашего файла styles.css
   ============================================================================= */

/* Анимации для плавающих инструментов */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.4;
    }
}

/* Анимация появления карточки */
.error-card {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация подпрыгивания иконки */
.error-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Градиентный текст для 404 */
.error-number h1 {
    background: linear-gradient(135deg, #FF9966, #FF5E62);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(255, 153, 102, 0.3);
}

/* Стили для плавающих инструментов */
.floating-tools i {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

/* Улучшенные hover эффекты для кнопок */
.error-404-section .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.error-404-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.error-404-section .btn:active {
    transform: translateY(0);
}

/* Стеклянный эффект для карточек */
.error-card,
.contact-banner {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .error-404-section {
        padding: 80px 15px 40px;
    }

    .error-card {
        padding: 2rem !important;
        margin: 0 10px;
    }

    .floating-tools i {
        font-size: 1.2rem !important;
    }

    .error-number h1 {
        font-size: 4rem !important;
    }

    .error-actions .d-flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .quick-links .d-flex {
        flex-direction: column !important;
        align-items: center !important;
    }

    .quick-links .btn {
        width: 100%;
        max-width: 200px;
    }

    .contact-banner .d-flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

@media (max-width: 576px) {
    .floating-tools i {
        display: none;
    }

    .error-card {
        padding: 1.5rem !important;
    }

    .error-number h1 {
        font-size: 3rem !important;
    }

    .error-icon > div {
        width: 80px !important;
        height: 80px !important;
    }

    .error-icon i {
        font-size: 2rem !important;
    }
}

/* Дополнительные стили для темной темы (если потребуется) */
@media (prefers-color-scheme: dark) {
    .error-card {
        background: rgba(30, 30, 30, 0.95) !important;
        color: white;
    }

    .error-content h2 {
        color: white !important;
    }

    .contact-banner {
        background: rgba(30, 30, 30, 0.9) !important;
    }

    .contact-banner h4 {
        color: white !important;
    }
}

/* Улучшенная прокрутка для мобильных */
.error-404-section {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}



















