html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: #f5f7fa;
    color: #1c2b39;
}

.logo {
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: #00c2a8;
}




/*HEADER*/
header {
    position: relative; /* добавьте это */
    background: #002B63;
    color: white;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header nav a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}
header nav a:hover {
    color: #0083ba;
    transform: translateY(-3px);
}
.header-socials {
    position: absolute;
    bottom: 20px;  /* 20px от нижнего края блока hero */
    left: 50%;
    transform: translateX(-50%);
    gap: 18px;
    display: flex;
}


.header-socials a img {
    width: 24px;              /* уменьшенный размер */
    height: 24px;
    filter: brightness(0) saturate(100%) invert(82%) sepia(4%) saturate(18%) hue-rotate(184deg) brightness(93%) contrast(85%);
    /* немного светлее с помощью filter, можно подправить под твой дизайн */
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.header-socials a:hover img {
    filter: brightness(0) saturate(100%) invert(33%) sepia(76%) saturate(378%) hue-rotate(182deg) brightness(97%) contrast(87%);
    transform: scale(1.2);
}

/*HERO*/
.hero {
    min-height: 280px;
    background: #003d66 url('../images/full-hero-background.png') no-repeat center calc(50% - 65px);
    background-size: cover;
    color: white;
    padding: 100px 40px 80px;
    text-align: left;
    position: relative;
    animation: fadeInDown 1s ease forwards;
}
.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
    max-width: 600px;
}
.hero p {
    font-size: 18px;
    max-width: 500px;
}
.hero-buttons {
    margin-top: 30px;
}
.hero-buttons button {
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    margin-right: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-buttons button:hover {
    transform: scale(1.05);
}



/*ОБЩИЕ ПЕРЕИСПОЛЬЗУЕМЫЕ КНОПКИ*/
.btn-orange {
    background-color: #ff7a00;
    color: white;
}
.btn-white {
    background-color: white;
    color: #005b99;
    border: 2px solid white;
}



/*ОБЩИЕ СТИЛИ ДЛЯ СЕКЦИЙ*/
section {
    padding: 60px 40px;
    position: relative;
    z-index: 0;
}
section:nth-of-type(even) {
    background: #ffffff;
}
section:nth-of-type(odd) {
    background: #eaf3fb;
}



/*ОБЩИЕ СТИЛИ ДЛЯ ЗАГОЛОВКОВ*/
h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
h2.visible {
    opacity: 1;
    transform: translateY(0);
}


/* КНОПКА ВВЕРХ-ВНИЗ */
.scroll-btn {
    position: fixed;
    z-index: 999;
    background: #005b99;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.scroll-btn:hover {
    background: #0077cc;
}

#scrollUp {
    top: 20px;
    left: 20px;
}

#scrollDown {
    bottom: 20px;
    left: 20px;
}



/* СЕКЦИЯ "КАК МЫ РАБОТАЕМ" */

#how.how-section {
    background-color: #eaf3fb;
    background-size: 140%;
    padding: 50px 20px 150px;
    text-align: center;
}
.animate-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-title.visible {
    opacity: 1;
    transform: translateY(0);
}
.step {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}
.step.visible {
    opacity: 1;
    transform: translateY(0);
}


.steps {
    max-width: 100%; /* или убрать */
    margin: 0;       /* убрать автоматическое центрирование */
    justify-content: flex-start; /* если нужно прижать контент влево */
}

.step-wrapper {
    position: relative;
    width: 240px; /* фиксированная ширина карточки */
    margin-bottom: 100px; /* место под блок .step-details */
    border-radius: 12px;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}


.step:hover {
    background: #e0f3ff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid #0f98e2;
}


.step img {
    height: 50px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.step:hover img {
    transform: scale(1.1) rotate(3deg);
}

.step p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.step-details {
    margin-top: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 480px;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e8f6 100%);
    border-left: 5px solid #007acc;

    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 91, 153, 0.1); /* глубокая синяя тень */
    font-size: 15px;
    line-height: 1.6;
    color: #1c2b39; /* тёмно-синий, как основной текст сайта */
    text-align: left;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    z-index: 5;
    border-left: 5px solid #007acc; /* синий акцент слева */
    transform: translateY(10px);
}

.step-details h4 {
    font-size: 1rem;
    margin-top: 0;
    color: #005b99;
    margin-bottom: 10px;
}

.step-wrapper.expanded .step-details {
    transform: translateY(0);
}


.step-wrapper.expanded .step-details {
    max-height: 200px;
    padding: 20px;
    opacity: 1;
}
.step-wrapper.last .step-details {
    left: auto;
    right: 0;
}

/* НЕ ВЫЯВЛЕНО ДЛЯ ЧЕГО */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* КАРТОЧКИ В СЕКЦИИ "ЧТО МЫ ДЕЛАЕМ" */
.features-fixed > div {
    border: 2px solid transparent;
    justify-content: center;
    position: relative;
    background: white;
    padding: 36px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 120px;
}

.features-fixed > div:hover {
    border: 2px solid #0f98e2;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.features-fixed > div.show-overlay {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border: 2px solid #ff7a00;
}

.features-fixed > div img {
    height: 50px;
    margin-bottom: 16px;
    transition: filter 0.3s ease;
}

.features-fixed > div:hover img,
.features-fixed > div.show-overlay img {
    filter: grayscale(0%);
}

.features-fixed > div .title {
    font-weight: 600;
    color: #1c2b39;
    margin-bottom: 0;
}

/* Градиентный оверлей с анимацией */
.features-fixed > div .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #eaf6ff 0%, #cbe9fd 100%);
    color: #663300;
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, background 0.5s ease;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
}

.features-fixed > div.show-overlay .overlay {
    opacity: 1;
    background: linear-gradient(135deg, #fff7e6 0%, #ffd699 100%);
}

.features-fixed > div .overlay p {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.features-fixed > div.show-overlay .overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* АНИМАЦИИ КАРТОЧЕК */

.features-fixed > div.fade-in {
    opacity: 0;
    transform: scale(0.97);
    display: block !important;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.features-fixed > div.fade-in.visible {
    opacity: 1;
    transform: scale(1);
}

.features-fixed > div.fade-in img,
.features-fixed > div.fade-in .title {
    opacity: 0;
    filter: blur(1px);
    transition: opacity 0.4s ease, filter 0.4s ease; /* без задержек */
}
.features-fixed > div.fade-in.visible img,
.features-fixed > div.fade-in.visible .title {
    opacity: 1;
    filter: blur(0);
}

.features-fixed > div.fade-out {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.features-fixed > div.hidden {
    display: none !important;
    opacity: 0;
}


/* СЕТКА И ОФОРМЛЕНИЕ */
.features-fixed {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    text-align: center;
}

@media (max-width: 1024px) {
    .features-fixed {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .features-fixed {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .features-fixed {
        grid-template-columns: 1fr;
    }
}

.features-wrapper {
    max-width: 1140px;
    margin: 0 auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.features > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.features div, .step {
    min-height: 120px;
    cursor: pointer;
    background: #ffffff;
    padding: 36px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.features div:hover, .step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    background: #e0f3ff;
}

.features img, .steps img {
    margin-bottom: 16px;
    height: 50px;
    transition: filter 0.3s ease;
}

.features div:hover img, .steps div:hover img {
    filter: grayscale(0%);
}

/* ОТСТУПЫ */
#services h2,
#how h2 {
    margin-top: 15px;
    margin-bottom: 60px;
}

/* Что мы делаем - Дополнительно */
.mini-cards-wrapper {
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

.mini-cards-wrapper h3 {
    font-size: 22px;
    margin-bottom: 80px;
    text-align: center;
    color: #333;
}

.scroll-wrapper {
    overflow: hidden;
    width: 100%;
}

.scroll-track {
    display: flex;
    width: fit-content;
    will-change: transform;
}

.mini-card {
    flex: 0 0 260px;
    background: #fff;
    padding: 20px;
    margin-right: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    min-height: 180px;
    transition: transform 0.3s;
}

.mini-card:hover {
    transform: translateY(-5px);
}

.mini-card .icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.mini-card h4 {
    font-size: 17px;
    color: #007acc;
    margin-bottom: 6px;
}

.mini-card p {
    font-size: 14px;
    color: #444;
    margin: 0;
    line-height: 1.4;
}






/* СЕКЦИЯ О НАС */
.about-section {
    background-color: #eaf4ff;
    padding: 60px 30px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: black;
    margin-bottom: 40px;
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;
}

.team-card {
    flex: 2;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.small-card {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
}

.card img {
    width: 40px;
    margin-bottom: 10px;
}

.card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1c2b39;
}

.card p {
    font-size: 14px;
    line-height: 1.6;
    color: #3c4d5f;
}

/* Команда */
.team-member {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.member-info {
    flex: 2;
}

.member-photo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-photo img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-frame {
    width: 100px;
    height: 100px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
}

.team-member strong {
    font-size: 16px;
    color: #f57c00;
}

.position {
    font-size: 14px;
    font-weight: 500;
    color: #005b99;
    margin: 4px 0;
}

/* Печатающийся текст */
.about-typing {
    margin-top: 40px;
    font-size: 20px; /* ← увеличь это значение */
    font-family: monospace;
    color: #f57c00;
}

.typing-text {
    font-weight: bold;
}


.typing-text::after {
    content: "|";
    animation: blink 0.8s infinite;
}

#typed-text {
    min-height: 3em; /* или точная высота строки */
    display: block;
}


@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 992px) {
    .about-grid {
        flex-direction: column;
    }

    .team-card, .right-column {
        width: 100%;
    }

    .team-member {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-photo {
        margin-top: 10px;
    }
}


/* Бренд Integrio в оранжевом */
.brand {
    color: #f57c00;
    font-weight: 600;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/*СЕКЦИЯ КОНТАКТЫ*/
#contacts h2 {
    font-size: 32px;
    font-weight: 700;
    color: #004ba1;
    margin: 0 auto 30px auto; /* центрируем по горизонтали */
    position: relative;
    display: block;          /* теперь блок, чтобы margin auto сработал */
    width: max-content;      /* ширина по контенту */
    padding-bottom: 8px;
    letter-spacing: 0.05em;
}

.contacts-box {
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 91, 153, 0.1);
    transition: box-shadow 0.3s ease;
}
.contacts-box:hover {
    box-shadow: 0 15px 30px rgba(0, 91, 153, 0.2);
}
.contacts-box p {
    font-size: 20px;
    margin: 18px 0;
    color: #1c2b39;
    line-height: 1.5;
}

.contacts-socials {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-item img {
    width: 40px;
    height: 40px;
}

/* Только для Max */
.max-icon {
    filter: brightness(0.6);
}

.contacts-socials a {
    background-color: #e0f3ff;
    border-radius: 50%;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 91, 153, 0.15);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contacts-socials a:hover {
    background-color: #005b99;
    transform: scale(1.1);
}

.contacts-socials a:hover img {
    filter: brightness(0) invert(1);
}

.contact-link {
    color: #0077cc;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.contact-link:hover {
    color: #004080;
    text-decoration: underline;
}





/* НЕ ВЫЯВЛЕНО ДЛЯ ЧЕГО */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}






@media (max-width: 768px) {

    /* 📌 HEADER: socials поверх элементов */
    .header-socials {
        margin-top: 30px;
        position: relative;
        display: flex;
        gap: 14px;
        width: auto;
        justify-content: center;  /* центрирование иконок */
        align-items: center;
        z-index: 999;
    }


    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    header nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
    }

    header nav a {
        margin: 0;
    }

    .logo {
        align-self: center;
    }

    /* 📌 HERO BUTTONS: отступ между кнопками */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons button {
        margin-right: 0;
        width: 100%;
    }

    /* 📌 step-details — скрываем полностью */
    .step-details {
        display: none !important;
    }

    .step-wrapper {
        margin-bottom: 20px; /* было 100px */
    }

    .steps {
        gap: 20px !important; /* между колонками */
    }

    /* 📌 case-slide: растягиваем карточку по содержимому */
    .case-slide {
        display: flex;
        flex-direction: column;
        height: auto !important;
    }

    .case-slide .description {
        max-height: none !important;
        overflow: visible;
    }

    /* 📌 team-card и certificates-card в ширину экрана */
    .team-card,
    .certificates-card {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 📌 about-section layout фиксы */
    .about-grid {
        flex-direction: column;
        gap: 20px;
    }

    .right-column {
        flex-direction: column;
    }

    .challenges-infographic .container {
        max-width: 100%;
        padding: 0 16px; /* отступы по краям */
        height: auto; /* пусть высота зависит от контента */
        overflow: visible;
    }

    .challenge-pair {
        position: relative; /* вместо absolute — чтобы карточки шли друг за другом */
        flex-direction: column; /* вертикально, одна под другой */
        width: 100%;
        height: auto;
        padding: 120px 216px;
        pointer-events: auto;
        gap: 16px;
        margin-bottom: 40px; /* отступ между карточками */
        box-sizing: border-box;
    }

    .challenge {
        flex-basis: auto;
        width: 100%;
    }

    .arrow {
        display: none; /* можно скрыть стрелку на мобилке */
    }

    /* Убираем эффекты слоёв для мобильных */
    .challenge-pair.prev,
    .challenge-pair.next {
        opacity: 1;
        transform: none;
        z-index: auto;
    }


    /* CASES */
    .case-slider-wrapper {
        height: auto !important;
    }

    .case-slide {
        position: static; /* чтобы карточки шли одна за другой */
        height: auto !important;
        flex-direction: column;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto;
        z-index: auto;
        margin-bottom: 40px;
    }

    .case-slide:not(.active) {
        display: none; /* скрываем все, кроме активного */
    }

    .case-text {
        padding: 20px;
    }

    .case-image {
        height: 200px;
    }

    /* Форма получить консультацию */
    .modal-content {
        width: 60%;
        max-width: 60%;
        height: auto;
        margin: 0 10px; /* небольшой внутренний отступ от краев экрана */
        padding: 20px;
        border-radius: 0; /* можно убрать скругления, если они не нужны */
        box-sizing: border-box;
    }
}

/* business-challenges.css */

.challenges-infographic .container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    height: 320px; /* увеличена высота для размещения карточек */
    overflow: visible;
}

.challenge-pair {
    transition: all 0.8s ease-in-out;
    position: absolute;
    left: 0;
    width: 100%;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 30px 20px;
    border-radius: 12px;
    opacity: 0;
    transform: scale(1);
    z-index: 1;
    box-sizing: border-box;
    pointer-events: none;
}

.challenge {
    flex-basis: 48%;
    padding: 20px;
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.challenge.problem {
    background: linear-gradient(135deg, #FF7A00 0%, #FF9A33 100%);
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.4);
}

.challenge.solution {
    background: linear-gradient(135deg, #005B99 0%, #0077CC 100%);
    box-shadow: 0 4px 10px rgba(0, 91, 153, 0.4);
}

.arrow {
    font-size: 1.5rem;
    color: #000; /* черная стрелка */
    font-weight: 700;
    flex-shrink: 0;
    width: 4%;
    text-align: center;
    transition: opacity 0.3s ease;
}

/* Показывать стрелку только в активной */
.challenge-pair:not(.active) .arrow {
    opacity: 0;
    visibility: hidden;
}
.challenge-pair.active .arrow {
    animation: arrowMove 1.5s infinite ease-in-out;
}
@keyframes arrowMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}
/* Активная карточка */
.challenge-pair.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.05) translateY(0); /* чуть крупнее — визуально выделяет */
    filter: none;
    z-index: 3;
}

/* Предыдущая — выше и бледнее */
.challenge-pair.prev {
    opacity: 0.1;
    transform: scale(0.95) translateY(-120px); /* выше и чуть меньше */
    z-index: 2;
}

/* Следующая — ниже и бледнее */
.challenge-pair.next {
    opacity: 0.2;
    transform: scale(0.95) translateY(120px); /* ниже и чуть меньше */
    z-index: 2;
}


.challenges-infographic h2 {
    margin-bottom: 120px;
    font-size: 32px; /* как в общих h2 */
    font-weight: 700;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1); /* лёгкая тень */
    color: #1c2b39; /* основной цвет текста (чуть темнее базового) */
}

.challenges-infographic h2.visible {
    opacity: 1;
    transform: translateY(0);
}



/* cases.css */
#cases {
    background-color: #eaf3fb;
    padding: 20px 20px; /* чтобы внутри было немного отступов */
    border-radius: 12px; /* по желанию, если хочешь скругления */
}


#cases h2 {
    margin-top: 15px;
    margin-bottom: 60px;
}

/* Слайд */
.case-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    height: 450px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    display: flex;
    overflow: hidden;
    transform: scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.case-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Контент внутри карточки */
.case-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

/* Левая часть — картинка */
.case-image {
    flex: 0 0 40%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.case-image img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    background-color: #fff;
    display: block;
}
/* Правая часть — текст */
.case-text {
    flex: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #1c2b39;
}
.case-text h3 {
    color: #005b99;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
}
.case-text p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

/* Обёртка слайдера */
.case-slider-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: 450px;
    position: relative;
}

/* Навигационные точки */
.case-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}
.case-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.case-dots button.active {
    background-color: #005b99;
}

/* Кнопки (если есть) */
.case-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
}
.case-controls button {
    background: #005b99;
    color: #fff;
    border: none;
    padding: 15px 40px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1.5rem;
    user-select: none;
    transition: background-color 0.3s ease;
}
.case-controls button:hover {
    background: #004080;
}

@media (max-width: 768px) {
    .case-slider-wrapper {
        height: auto !important;
    }

    .case-slide {
        position: static; /* чтобы карточки шли одна за другой */
        height: auto !important;
        flex-direction: column;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto;
        z-index: auto;
        margin-bottom: 40px;
    }

    .case-slide:not(.active) {
        display: none; /* скрываем все, кроме активного */
    }

    .case-text {
        padding: 20px;
    }

    .case-image {
        height: 200px;
    }
}




/* certificates.css */
.image-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;

    /* Добавим для надёжности */
    margin: 0 !important;
    padding: 0 !important;
}

.image-modal .modal-box {
    position: relative;
    width: 450px;
    height: 650px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);

    /* Сбрасываем margin, padding и float */
    margin: 0;
    padding: 0;
    float: none;
}


/* Изображение внутри */
.image-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}


/* Кнопка закрытия */
.image-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #000;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

/* СЕКЦИЯ СЕРТИФИКАТЫ — основано на .about-section */
.certificates-section {
    background-color: #eaf4ff;
    padding: 60px 30px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.certificates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;
}

.certificates-card {
    flex: 2;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
}

.certificate-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.certificate-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-image img {
    width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.certificate-info {
    flex: 2;
}

.certificate-info strong {
    font-size: 16px;
    color: #f57c00;
}

.certificate-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #3c4d5f;
    margin-top: 6px;
}

.certificate-frame {
    width: 100px;
    height: auto;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
}

.certificates-typing {
    margin-top: 40px;
    font-size: 20px;
    font-family: monospace;
    color: #f57c00;
}

#typed-certificates.typing-text::after {
    content: "|";
    animation: blink 0.8s infinite;
}




/* tariffs.css */
#tariffs {
    background-color: #eaf3fb;
}

.tariff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.tariff-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #005b99;
}

.tariff-card .price {
    font-size: 20px;
    font-weight: 700;
    color: #ff7a00;
    margin-bottom: 16px;
}

.tariff-card p {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 20px;
    min-height: 48px;
}

.tariff-card ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 24px;
    color: #1c2b39;
    font-size: 14px;
}

.tariff-card ul li {
    margin-bottom: 8px;
}

.tariff-card button.btn-white {
    align-self: center;
    padding: 10px 26px;
    font-size: 14px;
    border-radius: 6px;
    border: 2px solid #005b99;
    color: #005b99;
    background: white;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.tariff-card button.btn-white:hover {
    background-color: #005b99;
    color: white;
}

/* Адаптивность */
@media (max-width: 1080px) {
    #tariffs #tariffsList {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .tariff-card {
        width: 100%;
        max-width: 320px;
    }
}

#tariffs {
    background-color: #eaf3fb;
    padding: 60px 40px;
}

/* Контейнеры с тарифами — используем классы для удобства */
#tariffsList, #marketplaceTariffsList {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}



/* Карточка тарифа */
.tariff-card {
    flex: 0 0 200px;
    max-width: 200px;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    padding: 30px 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}


.tariff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.tariff-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #005b99;
}

.tariff-card .price {
    font-size: 16px;
    font-weight: 700;
    color: #ff7a00;
    margin-bottom: 16px;
}

.tariff-card p {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 20px;
    min-height: 48px;
}

.tariff-card ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 24px;
    color: #1c2b39;
    font-size: 14px;
}

.tariff-card ul li {
    margin-bottom: 8px;
}

.tariff-card button.btn-white {
    align-self: center;
    padding: 10px 26px;
    font-size: 14px;
    border-radius: 6px;
    border: 2px solid #005b99;
    color: #005b99;
    background: white;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.tariff-card button.btn-white:hover {
    background-color: #005b99;
    color: white;
}

/* Адаптив: на экранах менее 1080px — карточки переносятся, уменьшается расстояние */
@media (max-width: 1080px) {
    #tariffsList, #marketplaceTariffsList {
        gap: 20px;
        justify-content: center;
    }
}

/* Адаптив для мобильных — карточки занимают почти всю ширину */
@media (max-width: 480px) {
    .tariff-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


.tariff-benefit {
    max-width: 750px;
    margin: 30px auto 25px;
    font-size: 18px;
    text-align: center;
    color: #1c2b39;
    line-height: 1.3; /* уменьшенный интерлиньяж */
    background-color: #fffaf3; /* более светлый и нежный персиковый */
    border-left: 4px solid #f7a64c; /* менее яркий оранжевый */
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(247, 166, 76, 0.15); /* легкая тень */
}

.tariff-benefit ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.tariff-benefit ul li {
    margin-bottom: 8px;
    font-size: 16px;
}

.orange-highlight {
    color: #f7a64c; /* менее насыщенный оранжевый */
    font-size: 19px;
    font-weight: 600;
}

.benefit-highlight {
    font-size: 19px;
    font-weight: 500;
    display: block;
    margin-bottom: 15px;
}

.why-us {
    font-style: italic;
    font-size: 15px;
    margin-top: 8px;
    color: #374151; /* чуть темнее, но спокойный цвет */
}

/* Стрелка с подписью */
.benefit-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    margin-top: 30px;
}

.benefit-arrow span {
    background-color: #f7a64c;
    color: white;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 18px;
    margin-bottom: 5px;
    font-size: 13px;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 11px solid #f7a64c;
}


/* Новый контейнер для цены и описания — выравниваем по высоте */
.price-description-wrapper {
    min-height: 80px; /* подбери под самый высокий блок */
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Цена */
.tariff-card .price {
    font-size: 18px;           /* увеличил до 20px для единообразия */
    font-weight: 700;
    color: #ff7a00;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

/* Для "По запросу" — переопределим цвет и добавим класс */
.tariff-card .price.request {
    color: #ff7a00;
}

/* Описание */
.tariff-card .description {
    margin: 0 0 20px 0; /* отступ снизу */
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.3;
    min-height: 40px; /* можно подкорректировать */
}

/* Уберём margin-bottom у p, т.к. теперь в обертке */
.tariff-card p {
    margin-bottom: 0;
}

/* Сохраняем твои текущие стили для ul */
.tariff-card ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 24px;
    color: #1c2b39;
    font-size: 14px;
}

.tariff-card ul li {
    margin-bottom: 8px;
}

/* Чтобы кнопка была прижата вниз и по центру */
.tariff-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 280px; /* фиксированная ширина для выравнивания */
}

/* Кнопка */
.tariff-card button.btn-white {
    align-self: center;
    padding: 10px 26px;
    font-size: 14px;
    border-radius: 6px;
    border: 2px solid #005b99;
    color: #005b99;
    background: white;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-top: auto; /* Чтобы оттолкнуть кнопку вниз */
}

/* Кнопка hover */
.tariff-card button.btn-white:hover {
    background-color: #005b99;
    color: white;
}

/* Заголовки */
.tariff-card h3 {
    font-size: 18px; /* Твой размер */
    margin-bottom: 10px;
    color: #005b99;
}

/* Подстраиваем адаптивность с учётом новой ширины */
@media (max-width: 1080px) {
    #tariffsList {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .tariff-card {
        width: 100%;
        max-width: 320px;
    }
}

.tariff-promo-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 10px 18px;
    background-color: #ff7a00;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(255, 122, 0, 0.5);
    animation: pulse 1.6s infinite;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.tariff-promo-btn:hover {
    background-color: #e86500;
    color: #fff;
}

/* Анимация мигания */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0px rgba(255, 122, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 122, 0, 0.9);
    }
    100% {
        box-shadow: 0 0 0px rgba(255, 122, 0, 0.7);
    }
}



/* forms/get_consult/form.css */
/* ======================== */
/* Модальное окно (фон) */
/* ======================== */
.modal {
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex; /* скрывается через display:none */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* ======================== */
/* Контент модального окна */
/* ======================== */
.modal-content {
    background-color: white;
    padding: 30px 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}

/* ======================== */
/* Кнопка закрытия */
/* ======================== */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #1c2b39;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #005b99;
}

/* ======================== */
/* Заголовок */
/* ======================== */
.modal-content h3 {
    margin-bottom: 20px;
    font-weight: 700;
    color: #003d66;
}

/* ======================== */
/* Форма */
/* ======================== */
#consultationForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1c2b39;
    text-align: left;
}

#consultationForm input[type="text"],
#consultationForm input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#consultationForm input[type="text"]:focus,
#consultationForm input[type="tel"]:focus {
    border-color: #005b99;
    outline: none;
}

/* ======================== */
/* Кнопка отправки */
/* ======================== */
#consultationForm button.btn-orange {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: #ff7a00;
    color: white;
    transition: background-color 0.3s ease;
}

#consultationForm button.btn-orange:hover {
    background-color: #e26900;
}

/* ======================== */
/* Вспомогательный виджет */
/* ======================== */
#consultation-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px; /* расстояние между иконкой и текстом */
    background-color: #ff7a00;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 30px; /* капсула */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 2000;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap; /* чтобы текст не переносился */
}

#consultation-widget:hover {
    background-color: #e26900;
    transform: scale(1.05);
}

#consultation-widget img {
    width: 24px;
    height: 24px;
}

.contacts-socials {
    display: flex;
    align-items: center;
    gap: 10px; /* расстояние между текстом и иконкой */
    margin-top: 10px;
}

.telegram-text {
    font-size: 16px;
    color: #005b99;
    font-weight: 500;
}




.services-cta {
    display: flex;
    justify-content: center;
    margin: 80px 0 40px;
    padding: 0 20px;
    /* фон не меняем */
}

.services-cta-inner {
    width: 60%; /* растягиваем на 30% экрана */
    min-width: 300px; /* чтобы на мобильных не сжималось слишком */
    text-align: center;
    background: #ffffff; /* белый фон */
    border-radius: 18px;
    padding: 36px 28px 40px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); /* лёгкий акцент */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-cta-inner h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #1c1c1c; /* текст чёрный */
}

.services-cta-inner p {
    font-size: 16px;
    line-height: 1.6;
    color: #333; /* читаемый текст */
    margin-bottom: 26px;
}

.services-cta-inner .btn-orange {
    /* берём все стили как в hero-buttons button и btn-orange */
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    margin-right: 0; /* если нужно убрать отступ */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ff7a00;
    color: white;
}

.services-cta-inner .btn-orange:hover {
    background-color: #e26900;
}





.challenges-cta {
    margin-top: 40px;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 16px;
    color: #fff;
}

.challenges-cta .cta-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.challenges-cta .cta-text {
    font-size: 16px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 20px auto;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: #38bdf8;
    color: #000;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #0ea5e9;
}


.section-subtitle {
    text-align: center;
}


