/* ============================================================
   style.css – ПОЛНАЯ ВЕРСИЯ
   Фон "зебра" на всех устройствах
   Заглушки для кейсов на мобильных – единый тёмный стиль
   Аватарки в отзывах – круглые, логотипы вписаны
   Все анимации и адаптивы сохранены
   ============================================================ */

/* ----- Обнуление и базовые настройки ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e1e2f;
    background-image: url('фон.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ----- Кнопки ----- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

.btn--primary {
    background-color: #1e1e2f;
    color: #fff;
    border-color: #1e1e2f;
}
.btn--primary:hover {
    background-color: #2c2c44;
    border-color: #2c2c44;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(30, 30, 47, 0.22);
}

.btn--outline {
    background-color: transparent;
    border-color: #1e1e2f;
    color: #1e1e2f;
}
.btn--outline:hover {
    background-color: #1e1e2f;
    color: #fff;
    transform: translateY(-3px);
}

.hero .btn--primary,
.hero .btn--outline {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}
.hero .btn--primary:hover,
.hero .btn--outline:hover {
    background-color: #ffffff;
    color: #1e1e2f;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.25);
}

.btn-spinner {
    display: inline-block;
    margin-left: 8px;
}
.btn-spinner i {
    font-size: 1.2rem;
}

/* ----- Шапка ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.header--scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.35s ease;
}
.logo:hover .logo-img {
    transform: scale(1.06) rotate(-2deg);
}
.nav__list {
    display: flex;
    gap: 40px;
}
.nav__link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s;
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: #d4af37;
    transition: width 0.3s ease;
}
.nav__link:hover::after {
    width: 100%;
}
.nav__link:hover {
    color: #d4af37;
}
.header__btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}
.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.header__toggle span {
    width: 25px;
    height: 3px;
    background-color: #1e1e2f;
    transition: 0.3s;
}

/* ----- Hero ----- */
.hero {
    padding: 140px 0 80px;
    background: rgba(20, 20, 34, 0.7);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
}
.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero__title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
    min-height: 4rem;
}
.hero__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 30px;
    max-width: 500px;
}
.hero__btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hero__image {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    opacity: 0;
    animation: heroFadeIn 1s ease forwards;
    animation-delay: 0.35s;
}
.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}
.hero__title,
.hero__subtitle,
.hero__btns {
    opacity: 0;
    animation: heroFadeUp 0.9s ease forwards;
}
.hero__title { animation-delay: 0.1s; }
.hero__subtitle { animation-delay: 0.3s; }
.hero__btns { animation-delay: 0.5s; }

/* ----- Индикатор скролла ----- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 5;
}
.scroll-indicator span {
    display: block;
    width: 26px;
    height: 26px;
    border-bottom: 3px solid #d4af37;
    border-right: 3px solid #d4af37;
    transform: rotate(45deg);
    opacity: 0.7;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-8px); }
}

/* ----- Секция Услуги ----- */
.services {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.85);
}
.section-header {
    margin-bottom: 60px;
}
.section-header.center {
    text-align: center;
}
.section-subtitle {
    display: block;
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e1e2f;
    line-height: 1.2;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: #fff;
    padding: 40px 25px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.05);
    border-color: #d4af37;
}
.service-card__icon {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}
.service-card:hover .service-card__icon {
    transform: scale(1.15) rotate(-8deg);
}
.service-card__icon i {
    display: inline-block;
    transition: transform 0.3s;
}
.service-card:hover .service-card__icon i {
    animation: pulseIcon 1s ease infinite;
}
@keyframes pulseIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.service-card__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.service-card__text {
    color: #555;
    line-height: 1.6;
}
.service-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ----- О нас ----- */
.about {
    padding: 100px 0;
    background: rgba(20, 20, 34, 0.85);
}
.about .section-title {
    color: #fff;
}
.about .about__text {
    color: rgba(255, 255, 255, 0.75);
}
.about .stat__number {
    color: #fff;
}
.about .stat__label {
    color: rgba(255, 255, 255, 0.55);
}
.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about__text {
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.about__stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.stat {
    text-align: center;
}
.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
.stat__label {
    font-size: 0.9rem;
}
.about__image {
    position: relative;
    border-radius: 20px;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
    background-color: #f0f0f0;
}
.about__video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ----- Как мы работаем (десктоп) ----- */
.how-we-work {
    padding: 110px 0 120px;
    background: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    position: relative;
}
.how-we-work::before {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0) 68%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.steps-wrapper {
    margin-top: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
    z-index: 1;
}
.steps-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.steps-road {
    position: relative;
}
.steps-road__line {
    position: absolute;
    top: 8px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: rgba(212, 175, 55, 0.18);
    border-radius: 3px;
    overflow: visible;
}
.steps-road__line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #d4af37, #f0d68b);
    border-radius: 3px;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.steps-wrapper.is-visible .steps-road__line::after {
    transform: scaleX(1);
}
.steps-road__dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 14px 4px rgba(212, 175, 55, 0.85);
    transform: translate(-50%, -50%);
    opacity: 0;
}
.steps-wrapper.is-visible .steps-road__dot {
    animation: travelDot 3.8s ease-in-out 1.6s infinite;
}
@keyframes travelDot {
    0%   { left: 0%;   opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.steps-road__items {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.step-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(34px) scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.steps-wrapper.is-visible .step-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.steps-wrapper.is-visible .step-item:nth-child(1) { transition-delay: 0.35s; }
.steps-wrapper.is-visible .step-item:nth-child(2) { transition-delay: 0.55s; }
.steps-wrapper.is-visible .step-item:nth-child(3) { transition-delay: 0.75s; }
.steps-wrapper.is-visible .step-item:nth-child(4) { transition-delay: 0.95s; }

.step-item:nth-child(even) .step-item__stem { height: 54px; }
.step-item:nth-child(odd)  .step-item__stem { height: 26px; }

.step-item__marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #d4af37;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    transition: box-shadow 0.4s ease, background 0.4s ease;
}
.steps-wrapper.is-visible .step-item:nth-child(1) .step-item__marker { transition-delay: 0.35s; animation: markerPulse 0.6s ease 0.35s; }
.steps-wrapper.is-visible .step-item:nth-child(2) .step-item__marker { animation: markerPulse 0.6s ease 0.55s; }
.steps-wrapper.is-visible .step-item:nth-child(3) .step-item__marker { animation: markerPulse 0.6s ease 0.75s; }
.steps-wrapper.is-visible .step-item:nth-child(4) .step-item__marker { animation: markerPulse 0.6s ease 0.95s; }
@keyframes markerPulse {
    0%   { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
.step-item:hover .step-item__marker {
    background: #d4af37;
}

.step-item__stem {
    width: 2px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.7), rgba(212, 175, 55, 0.1));
    flex-shrink: 0;
}

.step-card {
    background: #fff;
    padding: 26px 16px 30px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(30, 30, 47, 0.07);
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    width: 100%;
    border: 1px solid transparent;
}
.step-item:hover .step-card {
    transform: translateY(-8px);
    box-shadow: 0 22px 38px rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.4);
}
.step__number {
    font-size: 2.6rem;
    font-weight: 700;
    color: #d4af37;
    opacity: 0.22;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.step-item:hover .step__number {
    opacity: 0.9;
    transform: translateY(-2px);
}
.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #1e1e2f;
}
.step-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* ----- Кейсы ----- */
.cases {
    padding: 100px 0;
    background: rgba(20, 20, 34, 0.85);
}
.cases .section-title {
    color: #fff;
}
.cases__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}
.case-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.case-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.case-card__image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f4f4f8, #eaeaf2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
    flex-shrink: 0;
}
.case-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}
.case-card:hover .case-card__image img {
    transform: scale(1.06);
}
.case-card__body {
    padding: 25px 20px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.case-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e1e2f;
}
.case-card__desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}
.case-card__tag {
    display: inline-block;
    background: #f0f0f5;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #d4af37;
    border: 1px solid #d4af37;
    align-self: flex-start;
}
.case-card__image--placeholder {
    background: linear-gradient(135deg, #1e1e2f, #2e2e45);
    color: #d4af37;
    font-size: 2.5rem;
}
.case-card__tag--pr {
    background: #fdf6e3;
    color: #b8962e;
    border-color: #b8962e;
}

/* ============================================================
   ЗАГЛУШКИ ДЛЯ КЕЙСОВ НА МОБИЛЬНЫХ – ЕДИНЫЙ ТЁМНЫЙ СТИЛЬ
   ============================================================ */

/* По умолчанию заглушки скрыты, логотипы видны */
.case-card__placeholder {
    display: none;
}

/* На мобильных прячем логотипы и показываем заглушки */
@media (max-width: 768px) {
    .case-card__logo {
        display: none !important;
    }
    .case-card__placeholder {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 2.8rem;
        color: #d4af37 !important;
        border-radius: 20px 20px 0 0;
        transition: transform 0.5s ease;
        background: linear-gradient(135deg, #1e1e2f, #2e2e45) !important;
    }
    .case-card:hover .case-card__placeholder {
        transform: scale(1.04);
    }

    /* Все заглушки – одинаковый тёмный фон */
    .case-card__placeholder--flowers,
    .case-card__placeholder--chiptuning,
    .case-card__placeholder--profgaz {
        background: linear-gradient(135deg, #1e1e2f, #2e2e45) !important;
    }

    /* Убираем лишние отступы у картинок */
    .case-card__image {
        padding: 0 !important;
        height: 180px !important;
        min-height: auto !important;
    }
    .case-card__image--placeholder {
        padding: 28px !important;
        height: 180px !important;
        min-height: auto !important;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .case-card__image,
    .case-card__image--placeholder {
        height: 150px !important;
    }
    .case-card__placeholder {
        font-size: 2.2rem;
    }
}

/* ----- Отзывы ----- */
.testimonials {
    padding: 100px 0;
    background: rgba(20, 20, 34, 0.85);
}
.testimonials .section-title {
    color: #fff;
}
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.testimonial-card__stars {
    color: #d4af37;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.testimonial-card__text {
    color: #444;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial-card__avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50% !important;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #eaeaf0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
}
.testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0 !important;
}
.testimonial-card__name {
    font-weight: 600;
    color: #1e1e2f;
    font-size: 0.95rem;
}
.testimonial-card__company {
    color: #888;
    font-size: 0.85rem;
}

/* Специально для горизонтальных логотипов (Chiptuning) */
.testimonial-card:nth-child(2) .testimonial-card__avatar img {
    width: 85%;
    height: auto;
    max-height: 85%;
}

/* Для квадратного логотипа Профгазтех – центрируем на светлом фоне */
.testimonial-card:nth-child(3) .testimonial-card__avatar {
    background: #f5f5f5;
    border-color: #ddd;
}
.testimonial-card:nth-child(3) .testimonial-card__avatar img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

/* Адаптив для аватарок */
@media (max-width: 768px) {
    .testimonial-card__avatar {
        width: 50px;
        height: 50px;
        min-width: 50px;
        padding: 3px;
        border-width: 1.5px;
    }
    .testimonial-card__author {
        gap: 12px;
    }
    .testimonial-card:nth-child(2) .testimonial-card__avatar img {
        width: 80%;
    }
    .testimonial-card:nth-child(3) .testimonial-card__avatar img {
        width: 85%;
        height: 85%;
    }
}
@media (max-width: 480px) {
    .testimonial-card__avatar {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 2px;
    }
    .testimonial-card__author {
        gap: 10px;
    }
}

/* ============================================================
   СЛАЙДЕР КОМАНДЫ – ПРЯМОУГОЛЬНЫЕ ФОТО ВО ВСЮ ШИРИНУ
   ============================================================ */
.team-slider {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.85);
}
.slider-wrapper {
    position: relative;
    overflow: hidden;
}
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 -10px;
}
.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.team-slide {
    flex: 0 0 100%;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: stretch;
}
.team-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.team-card__photo {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    overflow: hidden;
    background: #f0f0f5;
}
.team-card__photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.team-card:hover .team-card__photo img {
    transform: scale(1.05);
}
.team-card__info {
    padding: 16px 20px 24px;
}
.team-card__name {
    font-weight: 600;
    color: #1e1e2f;
    font-size: 1.15rem;
    margin-bottom: 2px;
}
.team-card__role {
    color: #888;
    font-size: 0.95rem;
}

/* Стрелки */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-size: 1.3rem;
    color: #1e1e2f;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-arrow:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    color: #d4af37;
    transform: translateY(-50%) scale(1.05);
}
.slider-arrow--prev {
    left: 12px;
}
.slider-arrow--next {
    right: 12px;
}

/* Точки */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}
.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.slider-dots .dot.active {
    background: #d4af37;
    transform: scale(1.25);
}
.slider-dots .dot:hover {
    background: #d4af37;
}

/* ----- Модальные окна кейсов ----- */
.case-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.case-modal.is-open {
    display: flex;
}
.case-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 47, 0.75);
    backdrop-filter: blur(3px);
}
.case-modal__content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.case-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f3f3;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s ease;
}
.case-modal__close:hover {
    background: #e8e8e8;
}
.case-modal__tag {
    display: inline-block;
    background: #f0f0f5;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #d4af37;
    border: 1px solid #d4af37;
    margin-bottom: 16px;
}
.case-modal__tag--pr {
    background: #fdf6e3;
    color: #b8962e;
    border-color: #b8962e;
}
.case-modal h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: #1e1e2f;
}
.case-modal__block {
    margin-bottom: 16px;
}
.case-modal__block h4 {
    font-size: 0.95rem;
    color: #b8962e;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.case-modal__block p {
    color: #444;
    line-height: 1.7;
}
.case-modal__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #d4af37;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.case-modal__link:hover {
    color: #b8962e;
}

/* ----- Контакты ----- */
.contact {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.85);
}
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact__form input,
.contact__form textarea {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}
.contact__form input:focus,
.contact__form textarea:focus {
    outline: none;
    border-color: #d4af37;
}
.contact__form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact__info {
    background: #f8f8ff;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.contact__item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1e1e2f;
}
.contact__item i {
    font-size: 1.5rem;
    color: #d4af37;
    width: 30px;
}
.contact__social {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.contact__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #1e1e2f;
    color: #fff;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.contact__social a:hover {
    background-color: #d4af37;
    transform: translateY(-5px);
}

/* ----- Подвал ----- */
.footer {
    background-color: #1e1e2f;
    color: #aaa;
    padding: 30px 0;
}
.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.footer__copy {
    margin: 0;
}
.footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}
.footer__links a {
    color: #aaa;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
}
.footer__links a:hover {
    color: #d4af37 !important;
}

/* ----- Страница услуг ----- */
.services-page {
    padding: 140px 0 80px;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.85);
}
.services-page__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}
.service-item {
    background: #fff;
    padding: 35px 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.service-item__icon {
    font-size: 2.8rem;
    color: #d4af37;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}
.service-item:hover .service-item__icon {
    transform: scale(1.15) rotate(-8deg);
}
.service-item__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e1e2f;
}
.service-item__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.service-item__list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f5;
    font-size: 1rem;
    color: #333;
}
.service-item__list li:last-child {
    border-bottom: none;
}
.service-item__list strong {
    color: #1e1e2f;
}
.service-item__desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f5;
}
.services-page__cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.services-page__cta p {
    font-size: 1.2rem;
    color: #1e1e2f;
    margin-bottom: 20px;
}

/* ----- Анимации появления ----- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .hero__title,
    .hero__subtitle,
    .hero__btns,
    .hero__image {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ (до 992px)
   ============================================================ */
@media (max-width: 992px) {
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__container,
    .about__container {
        grid-template-columns: 1fr;
    }
    .hero__image {
        order: -1;
        height: 300px;
    }
    .about__image {
        height: 300px;
    }
    .services-page__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ (768px и меньше)
   ============================================================ */
@media (max-width: 768px) {
    body {
        background-size: cover !important;
        background-position: center center !important;
        background-attachment: scroll !important;
    }
    body::before {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .nav {
        display: none;
    }
    .header__btn {
        display: none;
    }
    .header__toggle {
        display: flex;
    }
    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    .nav__list {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero__title {
        font-size: 2.2rem;
    }
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__image {
        order: -1;
        height: 250px;
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__btns {
        justify-content: center;
    }

    .about__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about__image {
        height: 250px;
    }
    .about__stats {
        justify-content: center;
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
    }

    .footer__container {
        flex-direction: column;
        text-align: center;
    }

    .video-label {
        top: 12px;
        left: 12px;
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .cases__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .case-card__image {
        padding: 0 !important;
        height: 180px !important;
        min-height: auto !important;
    }
    .case-card__image--placeholder {
        padding: 28px !important;
        height: 180px !important;
        min-height: auto !important;
    }
    .case-card__body {
        padding: 16px 16px 20px;
    }
    .case-card__title {
        font-size: 1.1rem;
    }
    .case-card__desc {
        font-size: 0.9rem;
    }

    .team-slider {
        padding: 70px 0;
    }
    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .slider-arrow--prev {
        left: 6px;
    }
    .slider-arrow--next {
        right: 6px;
    }
    .team-card__info {
        padding: 14px 16px 20px;
    }
    .team-card__name {
        font-size: 1.05rem;
    }
    .team-card__role {
        font-size: 0.9rem;
    }

    .services-page {
        padding: 120px 0 50px;
    }
    .service-item {
        padding: 25px 20px 30px;
    }
    .service-item__title {
        font-size: 1.3rem;
    }
    .services-page__cta {
        padding: 25px 20px;
    }

    .case-modal__content {
        padding: 28px 22px;
    }
    .case-modal h3 {
        font-size: 1.3rem;
    }

    .testimonials {
        padding: 70px 0;
    }

    .how-we-work {
        padding: 80px 0 90px;
    }

    .steps-road {
        position: relative;
        padding-left: 35px;
        display: flex;
        flex-direction: column;
    }

    .steps-road__line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 14px;
        width: 3px;
        height: 100%;
        background: rgba(212, 175, 55, 0.2);
        border-radius: 3px;
        overflow: visible;
        transform: none !important;
        right: auto;
    }
    .steps-road__line::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, #d4af37, #f0d68b);
        transform-origin: top center;
        transform: scaleY(0);
        transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
        border-radius: 3px;
    }
    .steps-wrapper.is-visible .steps-road__line::after {
        transform: scaleY(1);
    }

    .steps-road__dot {
        position: absolute;
        top: 0;
        left: 14px;
        transform: translateX(-50%);
        width: 12px;
        height: 12px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 0 14px 4px rgba(212, 175, 55, 0.85);
        opacity: 0;
        z-index: 3;
        pointer-events: none;
    }
    .steps-wrapper.is-visible .steps-road__dot {
        animation: travelDotVertical 4s ease-in-out 1.6s infinite;
    }
    @keyframes travelDotVertical {
        0%   { top: 0%;   opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }

    .steps-road__items {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0;
        position: relative;
        z-index: 1;
    }

    .step-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        width: 100%;
        gap: 0;
    }
    .steps-wrapper.is-visible .step-item {
        opacity: 1;
        transform: translateX(0);
    }
    .steps-wrapper.is-visible .step-item:nth-child(1) { transition-delay: 0.15s; }
    .steps-wrapper.is-visible .step-item:nth-child(2) { transition-delay: 0.35s; }
    .steps-wrapper.is-visible .step-item:nth-child(3) { transition-delay: 0.55s; }
    .steps-wrapper.is-visible .step-item:nth-child(4) { transition-delay: 0.75s; }

    .step-item__marker {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        border: 3px solid #d4af37;
        flex-shrink: 0;
        margin-right: 14px;
        position: relative;
        z-index: 2;
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
        transition: box-shadow 0.4s ease, background 0.4s ease;
    }
    .steps-wrapper.is-visible .step-item:nth-child(1) .step-item__marker { animation: markerPulse 0.6s ease 0.35s; }
    .steps-wrapper.is-visible .step-item:nth-child(2) .step-item__marker { animation: markerPulse 0.6s ease 0.55s; }
    .steps-wrapper.is-visible .step-item:nth-child(3) .step-item__marker { animation: markerPulse 0.6s ease 0.75s; }
    .steps-wrapper.is-visible .step-item:nth-child(4) .step-item__marker { animation: markerPulse 0.6s ease 0.95s; }
    @keyframes markerPulse {
        0%   { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
        70%  { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
        100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
    }
    .step-item:hover .step-item__marker {
        background: #d4af37;
    }

    .step-item__stem {
        display: none;
    }

    .step-card {
        background: #fff;
        padding: 16px 18px 20px;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(30, 30, 47, 0.06);
        text-align: left;
        flex: 1;
        border: 1px solid #f0f0f0;
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .step-item:hover .step-card {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(212, 175, 55, 0.15);
        border-color: rgba(212, 175, 55, 0.3);
    }
    .step__number {
        font-size: 2rem;
        font-weight: 700;
        color: #d4af37;
        opacity: 0.2;
        margin-bottom: 4px;
        font-family: 'Inter', sans-serif;
        line-height: 1;
        text-align: left;
    }
    .step-card h3 {
        font-size: 1.05rem;
        margin-bottom: 6px;
        color: #1e1e2f;
    }
    .step-card p {
        color: #666;
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0;
    }
}

/* ----- Очень маленькие экраны (до 480px) ----- */
@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }
    .step-card {
        padding: 14px 14px 18px;
    }
    .step__number {
        font-size: 1.6rem;
    }
    .step-card h3 {
        font-size: 0.95rem;
    }
    .step-card p {
        font-size: 0.8rem;
    }
    .steps-road {
        padding-left: 28px;
    }
    .steps-road__line {
        left: 10px;
    }
    .steps-road__dot {
        left: 10px;
        width: 10px;
        height: 10px;
    }
    .step-item__marker {
        width: 14px;
        height: 14px;
        margin-right: 10px;
        border-width: 2.5px;
    }

    .case-card__image,
    .case-card__image--placeholder {
        height: 150px !important;
    }
    .case-card__placeholder {
        font-size: 2.2rem;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .slider-arrow--prev {
        left: 4px;
    }
    .slider-arrow--next {
        right: 4px;
    }
    .team-card__info {
        padding: 10px 12px 16px;
    }
    .team-card__name {
        font-size: 0.95rem;
    }
    .team-card__role {
        font-size: 0.8rem;
    }
}

/* ----- Анимация бургера ----- */
.header__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.header__toggle.active span:nth-child(2) {
    opacity: 0;
}
.header__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}