html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  cursor: default;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Основной шрифт и отступы навбара */
.custom-navbar {
    padding: 1.2rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* Стилизация логотипа */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: #000 !important;
}

/* Стили ссылок */
.custom-link {
    font-weight: 500;
    color: #333 !important;
    margin: 0 10px;
    position: relative;
    font-size: 0.95rem;
}

    /* Эффект при наведении */
    .custom-link:after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: #0056b3;
        transition: width 0.3s ease;
    }

    .custom-link:hover:after {
        width: 100%;
    }

/* Особенная подсветка для Реферальной программы */
.active-special {
    color: #0056b3 !important;
    font-weight: 600;
}

/* Кнопка связи в стиле SoftServe */
.btn-contact {
    border-radius: 0; /* Или 4px для мягкости */
    background-color: #002e5e;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

    .btn-contact:hover {
        background-color: #0056b3;
    }

.logo-minimal {
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    color: #1a1a1a !important;
}

.text-primary-gradient {
    background: linear-gradient(45deg, #0056b3, #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Маленькая точка-индикатор под логотипом */
.logo-minimal::after {
    content: '';
    display: block;
    width: 12px;
    height: 3px;
    background: #0056b3;
    margin-top: -4px;
    transition: width 0.3s ease;
}

.logo-minimal:hover::after {
    width: 100%;
}

/* --- Обновленный, читабельный Футер --- */

/* * Изменяем фон с чисто черного (#0a0a0a) на глубокий, 
 * благородный графитово-синий. Это смягчает контраст.
 */
.footer-custom {
    background-color: #121418; /* Более светлый, мягкий графит */
    color: #ffffff;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 10;
}

/* * Стили логотипа для темного фона. 
 * Теперь основной текст "SOFT" — белый.
 */
.logo-minimal-footer {
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    color: #ffffff !important; /* КРИТИЧНО: белый текст */
    display: inline-block;
    text-decoration: none;
}

/* Синий градиент сохраняем для акцента */
.text-primary-gradient {
    background: linear-gradient(45deg, #33aaff, #00d2ff); /* Более яркий градиент */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Точка под логотипом */
.logo-minimal-footer::after {
    content: '';
    display: block;
    width: 15px;
    height: 3px;
    background: #00d2ff;
    margin-top: -3px;
    transition: width 0.3s ease;
}

.logo-minimal-footer:hover::after {
    width: 100%;
}

/* --- Читабельность заголовков и текста --- */

/* Заголовки: Чистый белый, чтобы их было видно */
.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1.8rem;
    color: #ffffff; /* КРИТИЧНО: белый текст */
}

/* Описание: Светло-серый, но не темный */
.footer-text {
    line-height: 1.7;
    font-size: 0.95rem;
    color: #c0c4cc; /* Яркий светло-серый для текста */
}

/* Контактная информация в 4-й колонке */
.footer-contact-info p {
    margin-bottom: 0.5rem;
    color: #c0c4cc; /* Светлый текст */
}

.footer-contact-info a {
    color: #ffffff; /* Ссылки контактов — белые */
    text-decoration: none;
    font-weight: 600;
}

/* --- Стили ссылок навигации --- */

.footer-links li {
    margin-bottom: 0.9rem;
}

/* * Исходный цвет ссылок: светло-серый (#c0c4cc). 
 * На картинке-примере они были синими, что плохо читалось.
 * Мы делаем их серыми, а синим — только при наведении.
 */
.footer-links a {
    color: #c0c4cc !important; /* Яркий серый */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    display: inline-block;
}

    /* Акцент при наведении: яркий голубой */
    .footer-links a:hover {
        color: #00d2ff !important;
        transform: translateX(3px); /* Тонкий эффект сдвига */
    }

/* --- Социальные иконки --- */
.social-links a {
    color: #ffffff; /* Иконки белые */
    font-size: 1.3rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

    .social-links a:hover {
        opacity: 1;
        color: #00d2ff;
        transform: translateY(-3px);
    }

/* --- Нижняя панель (Copy) --- */
.footer-hr {
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Очень тонкая линия */
}

.footer-copy {
    font-size: 0.85rem;
    color: #8a8e99; /* Темно-серый для копирайта (он второстепенен) */
}

/* --- Главная страница --- */

.hero-section {
    min-height: 80vh;
    padding-top: 100px;
    padding-bottom: 100px;
}

.ls-2 {
    letter-spacing: 2px;
}

/* Кнопка в стиле SoftServe */
.btn-primary-custom {
    background-color: #002e5e;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s;
}

    .btn-primary-custom:hover {
        background-color: #0056b3;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
    }

/* Карточки сервисов */
.service-card {
    background: #fff;
    border: 1px solid #f1f1f1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border-radius: 4px;
}

    .service-card:hover {
        transform: translateY(-10px);
        border-color: #0056b3;
    }

    /* Активная карточка (выделенная) */
    .service-card.active {
        background-color: #002e5e;
        color: #fff;
        border: none;
    }

        .service-card.active .text-muted {
            color: rgba(255,255,255,0.7) !important;
        }

.service-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0056b3;
}

.service-card.active .service-link {
    color: #00d2ff;
}

/* Анимация плавания картинки */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.stat-item h2 {
    font-size: 3.5rem;
}

/* --- CTA Section Styles --- */

.cta-section {
    background: #fff; /* Фон секции белый, чтобы выделить внутренний блок */
}

.cta-box {
    background: linear-gradient(135deg, #002e5e 0%, #0056b3 100%);
    border-radius: 8px; /* Немного скругляем для современности */
    position: relative;
    overflow: hidden;
    border: none;
}

    /* Эффект фонового свечения внутри блока */
    .cta-box::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 400px;
        height: 400px;
        background: rgba(0, 170, 255, 0.1);
        border-radius: 50%;
        filter: blur(80px);
    }

.cta-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

/* Кнопка "Почати проект" */
/* --- Исправленная Кнопка CTA --- */
.btn-light-custom {
    background-color: #ffffff !important;
    color: #002e5e !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 0;
    border: 2px solid #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5; /* Чтобы кнопка всегда была поверх фоновых свечений */
    text-decoration: none;
}

    /* Эффект при наведении: инверсия цветов */
    .btn-light-custom:hover {
        background-color: #0056b3 !important; /* Вместо прозрачного делаем синим */
        color: #ffffff !important;
        border-color: #ffffff !important;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    /* Состояние при нажатии (Active) */
    .btn-light-custom:active {
        transform: translateY(-1px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    /* Чтобы иконка внутри кнопки тоже не пропадала */
    .btn-light-custom i {
        transition: transform 0.3s ease;
    }

    .btn-light-custom:hover i {
        transform: translateX(5px);
    }

/* Стили для выпадающего списка на мобильных */
@media (max-width: 991.98px) {
    .custom-mobile-menu {
        background-color: #ffffff;
        /* Добавляем мягкую тень снизу при раскрытии */
        box-shadow: 0 15px 30px rgba(0,0,0,0.05);
        border-top: 1px solid #f8f9fa;
        padding: 0 15px;
        /* Плавное появление контента */
        transition: all 0.3s ease-in-out;
    }

    .navbar-nav .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid #f8f9fa;
        text-align: center;
        font-size: 1.1rem;
    }

    /* Убираем рамку у последнего пункта */
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Центрируем кнопку в мобильном меню */
    .btn-primary-custom {
        width: 100%;
        margin-top: 10px;
    }
}

/* Эффект акцента для Реферальной программы в списке */
.active-special {
    color: #0056b3 !important;
    font-weight: 700 !important;
}

/* Убираем синий контур кнопки бургера при клике */
.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* --- About Page Specific --- */

/* Контейнер для кредо с мягким фоном */
.credo-box {
    background: #ffffff;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

    .credo-box:hover {
        transform: scale(1.02);
    }

    /* Элемент декора для кредо */
    .credo-box::before {
        content: '"';
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 15rem;
        color: rgba(0, 86, 179, 0.05);
        font-family: serif;
        z-index: 0;
    }

/* Итальянский наклон для финала */
.italic {
    font-style: italic;
    color: #444;
}

/* Повторение анимации появления (если не добавил в общие) */
.reveal-fade {
    animation: fadeInAbout 1s ease-out forwards;
}

@keyframes fadeInAbout {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Градиентный блок в Hero */
.bg-primary-gradient {
    background: linear-gradient(135deg, #002e5e 0%, #0056b3 100%);
}

/* --- Professional About Page --- */

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Эффект для изображений в стиле Tech */
.grayscale-hover {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

    .grayscale-hover:hover {
        filter: grayscale(0%);
    }

.about-image-wrapper {
    position: relative;
    padding: 15px;
}

    .about-image-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 70%;
        height: 70%;
        border-top: 4px solid #0056b3;
        border-right: 4px solid #0056b3;
        z-index: -1;
    }

/* Объектное покрытие для фото в блоках */
.object-fit-cover {
    object-fit: cover;
}

/* Жирный акцент на тексте без эмодзи */
.lh-1 {
    line-height: 1.1;
}

.ls-1 {
    letter-spacing: 1px;
}

/* Тень для фото */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- Why Us Page Styles --- */

/* Карточки преимуществ */
.advantage-card {
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f1f1;
}

    .advantage-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    }

/* Стилизация цифр в шагах (01, 02, 03) */
.step-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0056b3;
    background: rgba(0, 86, 179, 0.05);
    padding: 10px 15px;
    border-radius: 4px;
    line-height: 1;
}

/* Декор для изображения */
.image-overlay-box {
    position: relative;
    padding-left: 20px;
}

    .image-overlay-box::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20px;
        bottom: 20px;
        width: 100px;
        background: #0056b3;
        z-index: -1;
    }

/* Текстовые акценты */
.ls-2 {
    letter-spacing: 2px;
}

.ls-1 {
    letter-spacing: 1px;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* --- Сетка преимуществ в стиле Minimal Tech --- */

.advantage-item {
    transition: all 0.4s ease;
    position: relative;
    background-color: #fff;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Номер пункта */
.advantage-number {
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* Эффект при наведении */
.advantage-item:hover {
    background-color: #fcfcfc;
    z-index: 1;
}

/* Активный или выделенный блок (как мы делали в сервисах) */
.advantage-item.active {
    background-color: #002e5e;
}

    .advantage-item.active .text-dark,
    .advantage-item.active h5 {
        color: #fff !important;
    }

    .advantage-item.active .text-muted {
        color: rgba(255, 255, 255, 0.7) !important;
    }

/* Тонкие линии границ */
.border-light {
    border-color: #eee !important;
}

@media (max-width: 991px) {
    .advantage-item {
        min-height: auto;
        padding: 40px 30px !important;
    }
}

/* --- Pricing & Conditions Styling --- */

/* Карточки факторов */
.pricing-factor-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    border: 1px solid transparent;
}

    .pricing-factor-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.05) !important;
        border-color: #eee;
    }

/* Маленькие номера шагов */
.step-num-small {
    font-size: 0.75rem;
    font-weight: 900;
    color: #0056b3;
    letter-spacing: 2px;
    background: #f0f7ff;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Декоративные линии для цитаты */
.credo-line {
    width: 60px;
    height: 3px;
    background: #0056b3;
}

/* Темная секция со скруглением сверху */
.rounded-top-5 {
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
}

@media (max-width: 768px) {
    .rounded-top-5 {
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
    }
}

.italic {
    font-style: italic;
}

/* --- Seamless Minimal CTA --- */

.cta-minimal-box {
    background-color: #ffffff;
    border: 1px solid #f1f1f1;
    border-radius: 0; /* Строгие углы в стиле инжиниринга */
    position: relative;
    transition: border-color 0.3s ease;
}

    .cta-minimal-box:hover {
        border-color: #0056b3;
    }

/* Кнопка в стиле SoftServe */
.btn-outline-dark {
    border-radius: 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

    .btn-outline-dark:hover {
        background-color: #333;
        color: #fff;
    }

/* Убираем лишние отступы, если секция идет после светлого блока */
.border-light {
    border-color: #eee !important;
}

/* Повторное использование стиля сетки из WhyUs */
.advantage-item {
    transition: all 0.3s ease;
    background-color: #fff;
}

    .advantage-item:hover {
        background-color: #fcfcfc;
    }

.advantage-number {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Изображение с эффектом */
.grayscale-hover {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

    .grayscale-hover:hover {
        filter: grayscale(0%);
    }

.ls-2 {
    letter-spacing: 2px;
}

/* --- Стили страницы Сервисов --- */

.services-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-nav-item {
    cursor: pointer;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* Чтобы не прыгало при наведении */
}

/* Номер сервиса */
.s-num {
    font-size: 0.9rem;
    font-weight: 800;
    color: #ccc;
    margin-right: 25px;
    transition: color 0.3s ease;
}

/* Название сервиса */
.s-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Эффект наведения */
.service-nav-item:hover .s-title {
    color: #333;
}

/* АКТИВНОЕ СОСТОЯНИЕ (как на картинке) */
.service-nav-item.active {
    border: 3px solid #000; /* Жирная черная рамка */
}

    .service-nav-item.active .s-num {
        color: #0056b3;
    }

    .service-nav-item.active .s-title {
        color: #000;
    }

/* Правая часть: Контент */
.service-detail-content {
    display: none; /* Прячем всё по умолчанию */
    animation: fadeInService 0.5s ease;
}

    .service-detail-content.active-detail {
        display: block; /* Показываем активный */
    }

.service-points-list {
    list-style: none;
    padding: 0;
}

    .service-points-list li {
        font-size: 1.1rem;
        padding: 8px 0;
        position: relative;
        padding-left: 25px;
    }

        .service-points-list li::before {
            content: "\2022";
            position: absolute;
            left: 0;
            color: #0056b3;
            font-weight: bold;
        }

@keyframes fadeInService {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Стили для новых блоков --- */

/* Цифры этапов процесса */
.process-step {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f0f0f0; /* Очень светлый серый */
    line-height: 1;
    position: relative;
    transition: color 0.3s ease;
}

.process-card:hover .process-step {
    color: #0056b3; /* Синий при наведении */
}

.process-card {
    transition: transform 0.3s ease;
    border-radius: 0;
}

    .process-card:hover {
        transform: translateY(-10px);
    }

/* Эффект для логотипов партнеров */
.grayscale-filter {
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
}

    .grayscale-filter:hover {
        opacity: 1;
        filter: grayscale(0%);
    }

.ls-2 {
    letter-spacing: 2px;
}

/* --- Contact Page Styles --- */

.contact-item {
    transition: all 0.4s ease;
    background-color: #ffffff;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .contact-item:hover {
        background-color: #fcfcfc;
        z-index: 1;
    }

/* Визуальный элемент в Hero */
.contact-visual-element {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Кастомная кнопка для телеграм */
.btn-outline-primary {
    border-radius: 0;
    border-width: 2px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.ls-2 {
    letter-spacing: 2px;
}

/* Тонкая рамка для бейджа */
.badge.border {
    border-color: #eee !important;
}