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 {
  margin-bottom: 60px;
}

/* ===== COLOR PALETTE ===== */
.text-primary-custom {
    color: #0A3D91 !important;
}

/* ===== HERO CAROUSEL ===== */
.hero-container {
    border-radius: 24px;
}

.hero-img {
    height: 480px;
    object-fit: cover;
    border-radius: 24px !important;
}

.hero-caption {
    background: rgba(10, 61, 145, 0.55);
    padding: 20px 30px;
    border-radius: 16px;
}

/* Arrows blue tinted */
.blue-arrow {
    filter: invert(23%) sepia(98%) saturate(1400%) hue-rotate(195deg) brightness(90%);
}

/* ===== INTRO IMAGE ===== */
.intro-image img {
    border-radius: 20px;
}

/* ===== BENEFIT CARDS ===== */
.benefit-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

    .benefit-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

.benefit-icon {
    height: 48px;
    opacity: 0.85;
}

/* ===== PARTNER LOGOS ===== */
.partner-logo {
    max-height: 60px;
    opacity: 0.7;
    transition: 0.3s;
    filter: grayscale(100%);
}

    .partner-logo:hover {
        opacity: 1;
        filter: grayscale(0%);
    }

/* ===== GENERAL ===== */
section {
    scroll-margin-top: 80px;
}

/* WHY CHOOSE US CARDS */

.why-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    padding: 40px 30px;
    transition: 0.3s;
    height: 100%;
}

    .why-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

.why-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #0d6efd; /* адаптивный зелёно-синий акцент как на примере */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

    .why-icon img {
        width: 32px;
        height: 32px;
    }

.why-stat {
    font-size: 34px;
    font-weight: bold;
    color: #009688;
    margin-bottom: -4px;
}

.why-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: #8a8a8a;
}

.stat-number {
    font-size: 40px;
    font-weight: bold;
    color: #00A2C8;
}

.stat-label {
    font-size: 13px;
    letter-spacing: 1px;
    color: #8a8a8a;
}

.leader-img-container {
    border-radius: 26px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.leader-badge {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: #fff;
    padding: 18px 24px;
    border-radius: 18px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: #00A2C8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .badge-icon img {
        width: 22px;
        height: 22px;
        filter: brightness(0) invert(1);
    }

.hero-wrapper,
.hero-slide {
    width: 100%;
    height: 550px; /* Было 650px — картинка стала выше и визуально шире */
    border-radius: 20px; /* можно менять радиус */
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Blue-turquoise overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* затемнение, регулируемое */
}

/* Content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 12%; /* Было по центру — смещаем правее */
    transform: translateY(-50%);
    color: white;
    max-width: 650px;
}

/* Small top label */
.hero-label {
    font-size: 14px;
    letter-spacing: 3px;
    opacity: 0.9;
}

/* Title */
.hero-title {
    font-weight: 800;
    font-size: 32px;
    line-height: 1.2;
    margin: 15px 0 25px;
}

/* Subtitle */
.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 35px;
}

/* Button */
.hero-btn {
    display: inline-block;
    background: #0d6efd;
    padding: 14px 35px;
    border-radius: 40px;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}
    .hero-btn:hover {
        background: #0d6efd;
        color: #fff;
    }

/* Arrows */
.hero-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 50px; /* ширина кнопки */
    height: 50px; /* высота кнопки */
    background: rgba(128, 128, 128, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: background 0.3s;
}

    .hero-arrow:focus,
    .hero-arrow:active {
        background: rgba(128, 128, 128, 0.8);
        box-shadow: none;
    }

.hero-arrow:hover {
        background: rgba(255, 255, 255, 1);
}

.arrow-circle {
    width: 52px;
    height: 40px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.arrow-circle:hover {
    background: rgba(255,255,255,0.4);
}

.arrow-icon {
    pointer-events: none;
    color: #fff;
}

/* Стрелки чуть дальше от текста */
.carousel-control-prev {
    left: 25px;
}

.carousel-control-next {
    right: 25px;
}

/* Стили для CTA кнопки */
.cta-section .btn {
    background-color: #0d6efd; /* такой же синий, как text-primary в Bootstrap 5 */
    color: #fff; /* белый текст */
    border: none; /* убираем рамку */
    transition: background-color 0.3s, transform 0.2s;
}

    .cta-section .btn:hover {
        background-color: #0b5ed7; /* чуть темнее при наведении */
        color: #fff;
        transform: translateY(-2px); /* лёгкое движение при hover */
    }

    .cta-section .btn:focus,
    .cta-section .btn:active {
        background-color: #0b5ed7; /* чтобы цвет не менялся при клике */
        box-shadow: none;
    }

.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;
}

/* Для базового скрытия боковой панели */
#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin .25s ease-out;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

#page-content-wrapper {
    min-width: 100vw;
}

#wrapper.toggled #page-content-wrapper {
    min-width: calc(100vw - 15rem);
}