/* ===== HERO SECTION - SLIDER ===== */

.menu-link-with-arrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.menu-link-with-arrow span {
    flex: 1;
}

/* Hero слайдер */
.hero {
    height: var(--hero-height, 100vh);     
    max-width: 1920px;
    max-height: 1080px;;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    width: 700%;
    height: 100%;
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.hero-slide {
    width: 14.2857%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Добавь ЭТИ стили: */
picture.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

picture.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-content {
    max-width: 300px;
    color: white;
    position: relative;
    z-index: 2;
    margin-left: 20px;
    margin-top: 160px;
    
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-title {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta:active {
    background: white;
    color: #333;
}

/* Точки навигации */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: white;
}


@media (min-width: 768px) {
    .hero {
         height: 100vh;   
        /*aspect-ratio: auto; */
    }
        
    
    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-content {
        max-width: 400px;
        margin-left: 30px;
        margin-top: 400px;
        
    }
}

@media (min-width: 1100px) {
    
     .hero {
         height: 100vh;       
        /*aspect-ratio: auto;  */
    }
    .hero-title {
        font-size: 46px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-content {
        max-width: 400px;
         margin-left: 60px;
        margin-top: 450px;
        
    }
}

@media (min-width: 1490px) {
    .hero-content {
        max-width: 470px;
        margin-left: 0;
        margin-top: 450px;
        
    }
}

@media (min-aspect-ratio: 21/9) {
    .hero-content {

        margin-top: 300px !important;
    }
}


.custom-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;                   /* размер «контейнера» кнопки */
  height: 60px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: transform .3s ease;
  z-index: 10;
}

/* Левая стрелка */
.custom-arrow--prev {
  left: 1rem;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%3E%3Cpath%20d='M65%2015%20L25%2050%20L65%2085'%20stroke='%23ffffff'%20stroke-width='3'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;   /* заполняет весь контейнер */
}

/* Правая стрелка */
.custom-arrow--next {
  right: 1rem;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%3E%3Cpath%20d='M35%2015%20L75%2050%20L35%2085'%20stroke='%23ffffff'%20stroke-width='3'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

/* Анимация при ховере — кнопка движется к краю */
.custom-arrow--prev:hover {
  transform: translateY(-50%) translateX(-8px);
}

.custom-arrow--next:hover {
  transform: translateY(-50%) translateX(8px);
}

/* Скрыть на мобилках */
@media (max-width: 1100px) {
    .custom-arrow {
        display: none;
    }
}

.container {
    max-width: 1470px;
    margin:0 auto;
    width: 100%;
}

/* 
  Оптимизация рендеринга: 
  will-change + translateZ(0) включают отдельный слой на GPU, 
  чтобы убрать мигание/пустые полосы при анимации translateX на мобилках.
  backface-visibility: hidden предотвращает артефакты при 3D-трансформациях.
*/
.hero-slider {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hero-slide {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}


/* ===== CATEGORIES ===== */

 /* Основная секция категорий */
        .categories {
            padding: 80px 15px 40px 15px;
            max-width: 1920px;
            margin: auto;
            background: #fafafa;
            position: relative;
        }

        .categories-container {
            max-width: 1470px;
            margin: 0 auto;
        }

        /* Заголовок секции */
        .categories-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .categories-title {
            font-size: 22px;
            color: #1a1a1a;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 20px;
            position: relative;
        }

        .categories-subtitle {
            font-size: 16px;
            color: #666;
            letter-spacing: 1px;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Сетка категорий */
        .categories-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .category-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            transition: 3s;
            transition: box-shadow 0.6s ease; 
            position: relative;
          
        }

        .category-card:hover {
            transition: box-shadow 0.6s ease;
         box-shadow: 0 12px 40px rgba(0,0,0,0.15);
        }

        .category-image {
            position: relative;
            width: 100%;
            /* Делаем изображения квадратными на всех устройствах */
            aspect-ratio: 1 / 1;
            overflow: hidden;
        }

        .category-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .category-card:hover .category-image img {
            transform: scale(1.05);
        }

        .category-content {
            padding: 30px 25px;
            text-align: center;
        }

        .category-name {
            font-size: 20px;
            font-weight: 400;
            color: #1a1a1a;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 12px;
        }

        .category-description {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
            font-weight: 300;
        }

        .category-link {
            display: inline-block;
            padding: 12px 24px;
            border: 1px solid #1a1a1a;
            background: #1a1a1a;
            color: white;
            text-decoration: none;
            font-size: 12px;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s ease;
        }

        .category-link:hover {
            background: white;
            color: #1a1a1a;
        }

        /* Адаптивность */
        @media (min-width: 768px) {
            .categories {
                padding: 100px 30px;
            }

            .categories-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 40px;
            }

            .categories-title {
                font-size: 25px;
            }
        }

        @media (min-width: 1024px) {
            .categories {
                padding: 90px 40px;
            }

            .categories-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 50px;
            }

            .categories-title {
                font-size: 25px;
                letter-spacing: 4px;
            }
        }
        
        
/* ===== B2B COMPREHENSIVE SECTION ===== */
        .b2b-section {
            background: white;
            max-width: 1920px;
            margin: auto;
            position: relative;
        }

        .b2b-container {
            max-width: 1550px;
            margin: 0 auto;
        }

        .b2b-blog-part {
            padding: 80px 15px 40px 15px;
        }

        .b2b-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .b2b-title {
            font-size: 22px;
            color: #1a1a1a;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 20px;
            position: relative;
        }

        .b2b-title::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -10px;
            width: 60px;
            height: 2px;
            background: #404040;
            transform: translateX(-50%) scaleX(0);
            transform-origin: center;
            transition: transform 1.3s ease;
        }

        .b2b-title.underline-visible::after {
            transform: translateX(-50%) scaleX(1);
        }

        .b2b-subtitle {
            font-size: 16px;
            color: #666;
            letter-spacing: 1px;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Блог сетка */
        .b2b-blog-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-bottom: 50px;
        }

        .b2b-blog-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            background: white;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            transition: box-shadow 0.6s ease;
        }
        
        .b2b-blog-item:hover {
            box-shadow: 0 12px 40px rgba(0,0,0,0.15);
        }

        .b2b-blog-link {
            display: block;
            text-decoration: none;
            color: inherit;
        }

        .b2b-blog-image {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 60%;
            overflow: hidden;
        }

        .b2b-blog-image img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .b2b-blog-item:hover .b2b-blog-image img {
            transform: scale(1.05);
        }

        .b2b-blog-content {
            padding: 25px;
        }
        
        .b2b-blog-name {
            font-size: 16px;
            font-weight: 400;
            color: #1a1a1a;
            margin-bottom: 12px;
            line-height: 1.3;
        }

        .b2b-blog-description {
            font-size: 14px;
            color: #666;
            font-weight: 300;
            line-height: 1.5;
            margin-bottom: 15px;
        }


        .b2b-advantages-part {
            padding: 40px 20px 40px 20px;
        }

        .b2b-advantages-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .b2b-advantages-title {
            font-size: 20px;
            color: #1a1a1a;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 15px;
            font-weight: 400;
        }

        .b2b-advantages-subtitle {
            font-size: 14px;
            color: #666;
            letter-spacing: 1px;
        }

        /* B2B Преимущества сетка */
        .b2b-advantages-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .b2b-advantage {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            padding: 25px;
            background: #fafafa;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .b2b-advantage:hover {
            background: white;
            box-shadow: 0 8px 30px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }

        .b2b-advantage-icon {
            flex-shrink: 0;
            width: 45px;
            height: 45px;
            background: #1a1a1a;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .b2b-advantage-icon svg {
            width: 30px;
            height: 30px;
            color: white;
        }

        .b2b-advantage-content h4 {
            font-size: 15px;
            color: #1a1a1a;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
            font-weight: 400;
        }

        .b2b-advantage-content p {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
            font-weight: 300;
        }

        /* CTA кнопка */
        .b2b-cta {
            text-align: center;
            margin-top: 40px;
        }

        .b2b-cta-button {
            display: inline-block;
            padding: 12px 24px;
            border: 1px solid #1a1a1a;
            background: #1a1a1a;
            color: white;
            text-decoration: none;
            font-size: 12px;
            font-weight: 400;
            /*text-transform: uppercase;*/
            letter-spacing: 1px;
            transition: all 0.3s ease;
        }

        .b2b-cta-button:hover {
            background: white;
            color: #1a1a1a;
        }

        /* Адаптивность */
        @media (min-width: 768px) {
            .b2b-blog-part {
                padding: 100px 30px 40px 30px;
            }

            .b2b-advantages-part {
                padding: 40px 30px 40px 30px;
            }

            .b2b-title {
                font-size: 25px;
            }

            .b2b-blog-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 30px;
            }

            .b2b-advantages-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 25px;
            }
        }

        @media (min-width: 1024px) {
            .b2b-blog-part {
                padding: 90px 40px 40px 40px;
            }

            .b2b-advantages-part {
                padding: 40px 40px 40px 40px;
            }

            .b2b-title {
                font-size: 25px;
                letter-spacing: 4px;
            }

            .b2b-blog-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 40px;
            }

            .b2b-advantages-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 30px;
            }
        }

        /* Анимации */
        .animate-on-scroll {
            transform: translate3d(0, 80px, 0);
            visibility: hidden;
            opacity: 0;
            transition: transform 1.3s ease-in-out, opacity 0.7s ease-in-out;
            will-change: transform, opacity;
            backface-visibility: hidden;
        }

        .animate-on-scroll.visible {
            visibility: visible;
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }

        @media (min-width:768px) {
            .b2b-blog-grid .b2b-blog-link:nth-child(1) .b2b-blog-item.animate-on-scroll { transition-delay: 0ms; }
            .b2b-blog-grid .b2b-blog-link:nth-child(2) .b2b-blog-item.animate-on-scroll { transition-delay: 150ms; }
            .b2b-blog-grid .b2b-blog-link:nth-child(3) .b2b-blog-item.animate-on-scroll { transition-delay: 300ms; }
            .b2b-blog-grid .b2b-blog-link:nth-child(4) .b2b-blog-item.animate-on-scroll { transition-delay: 450ms; }
            .b2b-blog-grid .b2b-blog-link:nth-child(5) .b2b-blog-item.animate-on-scroll { transition-delay: 600ms; }
            .b2b-blog-grid .b2b-blog-link:nth-child(6) .b2b-blog-item.animate-on-scroll { transition-delay: 750ms; }
        }

        @media (min-width:768px) {
            .b2b-advantages-grid .b2b-advantage.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
            .b2b-advantages-grid .b2b-advantage.animate-on-scroll:nth-child(2) { transition-delay: 150ms; }
            .b2b-advantages-grid .b2b-advantage.animate-on-scroll:nth-child(3) { transition-delay: 300ms; }
            .b2b-advantages-grid .b2b-advantage.animate-on-scroll:nth-child(4) { transition-delay: 450ms; }
            .b2b-advantages-grid .b2b-advantage.animate-on-scroll:nth-child(5) { transition-delay: 600ms; }
            .b2b-advantages-grid .b2b-advantage.animate-on-scroll:nth-child(6) { transition-delay: 750ms; }
        }



/* ===== Process section ===== */

        .process-section {
            padding: 80px 15px 40px 15px;
            max-width: 1920px;
            margin: auto;
            background: #fafafa;
            position: relative;
        }

        .process-container {
            max-width: 1470px;
            margin: 0 auto;
        }

        /* Заголовок секции в стиле категорий */
        .process-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .process-title {
            font-size: 22px;
            color: #1a1a1a;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 20px;
            position: relative;
        }

        .process-subtitle {
            font-size: 16px;
            color: #666;
            letter-spacing: 1px;
            max-width: 600px;
            margin: 0 auto;
        }

        .process-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            position: relative;
        }

        .process-item {
            text-align: center;
            position: relative;
        }

        .process-number {
            width: 48px;
            height: 48px;
            background-color: #404040;
            color: #ffffff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 500;
            margin: 0 auto 16px;
            position: relative;
            z-index: 2;
        }

        .process-item h4 {
            font-size: 18px;
            color: #404040;
            margin-bottom: 8px;
        }

        .process-item p {
            font-size: 16px;
            color: #666;
            text-align: left;
            line-height: 1.5;
        }

        @media (min-width: 768px) {
            .process-section {
                padding: 90px 30px;
            }

            .process-title {
                font-size: 25px;
            }

            .process-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 40px;
            }

            .process-item {
                text-align: left;
            }

            .process-number {
                margin: 0 0 16px 0;
            }
        }

        @media (min-width: 1024px) {
            .process-section {
                padding: 90px 40px;
            }

            .process-title {
                font-size: 25px;
                letter-spacing: 4px;
            }

            .process-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 50px;
            }

            .process-item {
                text-align: center;
            }

            .process-number {
                margin: 0 auto 16px;
            }

            /* Соединительные линии только на десктопе */
            .process-item:not(:last-child)::after {
                content: '';
                position: absolute;
                top: 24px;
                left: calc(50% + 57px);
                width: calc(100% - 64px);
                height: 2px;
                background-color: #404040;
                z-index: 1;
            }
        }
        
/* ======== Portfolio section ======== */
        .portfolio-section {
            padding: 80px 15px 40px 15px;
            background: #fff;
            max-width: 1920px;
            margin: auto;
            position: relative;
        }

        .portfolio-container {
            max-width: 1470px;
            margin: 0 auto;
        }

        /* Заголовок секции */
        .portfolio-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .portfolio-title {
            font-size: 22px;
            color: #1a1a1a;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 20px;
            position: relative;
        }

        .portfolio-subtitle {
            font-size: 16px;
            color: #666;
            letter-spacing: 1px;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Галерея работ */
        .portfolio-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-bottom: 50px;
        }

        .portfolio-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            background: white;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            transition: box-shadow 0.6s ease;
        }
        
        .portfolio-item:hover {
            transition: .6s;
            box-shadow: 0 12px 40px rgba(0,0,0,0.15);
        }

        .portfolio-item-link {
            display: block;
            text-decoration: none;
            color: inherit;
        }

        .portfolio-image {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 75%; /* 4:3 соотношение */
            overflow: hidden;
        }

        .portfolio-image img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .portfolio-item:hover .portfolio-image img {
            transform: scale(1.05);
        }

        .portfolio-content {
            padding: 20px;
            text-align: center;
        }

        .portfolio-name {
            font-size: 16px;
            font-weight: 400;
            color: #1a1a1a;
            margin-bottom: 8px;
        }

        .portfolio-description {
            font-size: 14px;
            color: #666;
            font-weight: 300;
        }

        /* CTA кнопка */
        .portfolio-cta {
            text-align: center;
        }

        .cta-button {
            display: inline-block;
            padding: 12px 24px;
            border: 1px solid #1a1a1a;
            background: #1a1a1a;
            color: white;
            text-decoration: none;
            font-size: 12px;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s ease;
        }

        .cta-button:hover {
            background: white;
            color: #1a1a1a;
        }

        /* Адаптивность */
        @media (min-width: 768px) {
            .portfolio-section {
                padding: 80px 30px 40px 30px;
            }

            .portfolio-title {
                font-size: 25px;
            }

            .portfolio-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 30px;
            }

        }

        @media (min-width: 1024px) {
          
            .portfolio-title {
                font-size: 25px;
                letter-spacing: 4px;
            }

            .portfolio-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 40px;
            }

        }

        @media (min-width: 1200px) {
            .portfolio-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        
/* ===== Преимущества ===== */
/* Advantages section с фото фоном и параллаксом */

        .advantages-section {
            background: white;
            max-width: 1920px;
            margin: auto;
        }

        .advantages-container {
            max-width: 1270px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        /* Заголовок секции - вынесен из фото */
        .advantages-header {
            padding: 80px 15px 40px;
            background: #fafafa;
            text-align: center;
            position: relative;
        }

        .advantages-title {
            font-size: 22px;
            color: #1a1a1a;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 20px;
            position: relative;
        }

        .advantages-subtitle {
            font-size: 16px;
            color: #666;
            letter-spacing: 1px;
        }

         .advantages-photo-section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.parallax-bg {
    position: absolute;
    top: -5%;
    left: 0;
    width: 100%;
    height: 150%;
    z-index: 0;
}

.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    display: block
}

.advantages-container {
    position: relative;
    z-index: 1;
}

@media (max-width: 1023px) {
  .parallax-bg {
    top: 0;
    height: 100%;
  }

  .parallax-image {
    transform: none !important; /* параллакс-смещения не применяются */
    will-change: auto;
  }
}

        /* Сетка преимуществ */
        .advantages-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            justify-items: center; 
            max-width: 1100px;
            margin:auto;
        }

        .advantage-item {
            background: rgba(255, 255, 255, 0.95);
            max-width: 350px;
            padding: 20px 20px;
            border-radius: 8px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: default; 
        }
        
        .advantage-svg {
         width: 45px;
         height: 45px;
        }

        .advantage-item:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateY(-5px);
        }

       
        .advantage-title {
            font-size: 16px;
            color: #1a1a1a;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .advantage-description {
            font-size: 15px;
            color: #666;
            line-height: 1.6;
            font-weight: 300;
        }

        /* Адаптивность */
        @media (min-width: 768px) {
            .advantages-header {
                padding: 40px 30px 40px;
            }

            .advantages-photo-section {
                padding: 80px 30px;
            }

            .advantages-title {
                font-size: 25px;
            }

            .advantages-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
        }

        @media (min-width: 1024px) {
            .advantages-header {
                padding: 40px 40px 40px;
            }

            .advantages-photo-section {
                padding: 80px 40px;
            }

            .advantages-title {
                font-size: 25px;
                letter-spacing: 4px;
            }

            .advantages-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
            }

            .advantage-item {
                padding: 20px 20px;
            }

            .advantage-icon {
                width: 80px;
                height: 80px;
                margin-bottom: 25px;
            }

            .advantage-title {
                font-size: 16px;
            }

            .advantage-description {
                font-size: 16px;
            }
        }

/* === Универсальная анимация появления === */

.animate-on-scroll {
  transform: translate3d(0, 80px, 0);
  visibility: hidden;
  opacity: 0;
  transition: transform 1.3s ease-in-out, opacity .7s ease-in-out; 
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.animate-on-scroll.visible {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (min-width:768px) {
 .categories-grid .category-card.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
 .categories-grid .category-card.animate-on-scroll:nth-child(2) { transition-delay: 150ms; }
 .categories-grid .category-card.animate-on-scroll:nth-child(3) { transition-delay: 300ms; }
 .categories-grid .category-card.animate-on-scroll:nth-child(4) { transition-delay: 450ms; }
 .categories-grid .category-card.animate-on-scroll:nth-child(5) { transition-delay: 600ms; }
 .categories-grid .category-card.animate-on-scroll:nth-child(6) { transition-delay: 750ms; }
}

@media (min-width:768px) {
  .portfolio-grid .portfolio-item-link:nth-child(1) .portfolio-item.animate-on-scroll { transition-delay: 0ms; }
  .portfolio-grid .portfolio-item-link:nth-child(2) .portfolio-item.animate-on-scroll { transition-delay: 150ms; }
  .portfolio-grid .portfolio-item-link:nth-child(3) .portfolio-item.animate-on-scroll { transition-delay: 300ms; }
  .portfolio-grid .portfolio-item-link:nth-child(4) .portfolio-item.animate-on-scroll { transition-delay: 450ms; }
  .portfolio-grid .portfolio-item-link:nth-child(5) .portfolio-item.animate-on-scroll { transition-delay: 600ms; }
  .portfolio-grid .portfolio-item-link:nth-child(6) .portfolio-item.animate-on-scroll { transition-delay: 750ms; }
  .portfolio-grid .portfolio-item-link:nth-child(7) .portfolio-item.animate-on-scroll { transition-delay: 900ms; }
  .portfolio-grid .portfolio-item-link:nth-child(8) .portfolio-item.animate-on-scroll { transition-delay: 1050ms; }
}

/* === Универсальная полоска под заголовком === */
.section-title-animate { position: relative; }
.section-title-animate::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 60px;
  height: 2px;
  background: #404040;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 1.3s ease; /* ← скорость появления полоски */
}
.section-title-animate.underline-visible::after {
  transform: translateX(-50%) scaleX(1);
}
