:root {
    --accent-color: #564cff;
    --black-color: #141414;
    --light-blue-bg: #eef4fb;
    --light-gray-bg: #f7f7f7;
    --light-green-bg: #e9f6f6;
    --light-orange-bg: #fbf5f4;
    --gray-text: #858585;
    --border-light-gray: #e5e7eb;
    --dark-gray: #222;
}

.fw-400 {
    font-weight: 400;
}

body {
    font-family: 'Wix Madefor Display', sans-serif;
    background-color: #ffffff;
    color: var(--black-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 18px;
    line-height: 1.4;
}

/* Коррекция прыжка экрана при открытии модалок Bootstrap */
body.modal-open {
    padding-right: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--black-color);
    letter-spacing: -0.04em;
}

h1 {
    font-size: 60px;
    font-weight: 700;
}
h1 i {
    font-style: normal;
    color: var(--accent-color);
}
h2 {
    font-size: 52px;
}

.subtitle {
    font-weight: 500;
}
.text-muted-custom {
    color: var(--gray-text);
}

a:hover { text-decoration: none; }
a.link {text-underline-offset: 0.25rem;}

/* --- Кнопки --- */
.btn-custom {
    cursor: pointer;
    box-sizing: border-box;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    padding: 0 32px 1px;
    background: var(--dark-gray);
    transition: 0.25s ease all;
    border-radius: 10px;
    height: 65px;
    width: max-content;
}
.btn-custom:hover {
    opacity: 0.85;
    color: #fff;
}
.btn-custom:disabled {
    cursor: default;
    background: gray;
    opacity:0.7;
}
.btn-custom:disabled:hover {
    background: gray;
    opacity:0.7;
}
.btn-accent {
    background: var(--accent-color);
}
.btn-accent:hover {
    background: #4338ca;
    color: #fff;
}

.btn-header {
    height: 48px;
    font-size: 16px;
    padding: 0 24px;
    border-radius: 8px;
}

/* --- Навигация --- */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0px 15px 25px -10px rgba(0, 0, 0, 0.08);
    height: 90px;
    transition: 0.5s ease all;
}
.navbar-brand {
    font-weight: 900;
    font-size: 28px;
    color: var(--black-color);
}
.navbar-brand span {
    color: var(--accent-color);
}

.nav-link {
    color: var(--black-color) !important;
    font-weight: 500;
    font-size: 20px;
    margin: 0 15px;
    transition: 0.25s ease all;
}
.nav-link:hover {
    color: #fdaf47 !important;
}

.header-contact {
    font-weight: 600;
    font-size: 22px;
    color: var(--black-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.25s ease all;
}
.header-contact:hover {
    opacity: 0.75;
    color: var(--black-color);
}
.tg-icon {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    fill: #000;
}

/* --- Общие секции --- */
section {
    padding: 125px 0;
}
.section-head {
    margin-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
}
.section-head h2 {
    margin: 0 0 12px;
}
.section-head p {
    font-size: 24px;
    margin: 0;
    line-height: 1.3;
}

/* --- Блок 1: Hero Section --- */
.hero-section {
    background: var(--light-blue-bg);
    padding-top: 150px;
    padding-bottom: 70px;
}
.hero-text {
    padding-top: 50px;
    position: relative;
    z-index: 1;
}
.hero-text p {
    font-size: 22px;
    margin: 22px 0 40px;
}

.img-placeholder {
    background-color: #e2e8f0;
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: #475569;
    font-size: 16px;
    width: 100%;
}
.hero-img-placeholder {
    height: 450px;
}

/* --- Блок 2: Форматы --- */
.format-card {
    background: var(--light-gray-bg);
    padding: 55px 50px 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    transition: 0.25s ease all;
    border: 1px solid transparent;
}
.format-card:hover {
    box-shadow: -1px -1px 0 0 rgba(0,0,0,.1), 1px 1px 0 0 rgba(0,0,0,.1);
    border-color: var(--border-light-gray);
    transform: translateY(-5px);
}
.format-card.blue-bg {
    background: var(--light-blue-bg);
}
.format-title {
    margin-bottom: 30px;
}
.format-title i {
    font-style: normal;
    line-height: 1;
    display: block;
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 8px;
}
.format-title span {
    opacity: 0.6;
    display: block;
    font-size: 18px;
}
.format-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* --- Блок 3: Технология --- */
.tech-section {
    background: #fff;
}
.adv-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.adv-item {
    display: flex;
    flex-direction: column;
    width: 30%;
    margin-bottom: 30px;
}
.adv-ico {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 8px -5px rgba(0,0,0,0.2);
    background: #fff;
    border-radius: 20px;
    border: 1px solid #F0F0F0;
    margin-bottom: 20px;
    font-size: 40px;
}
.adv-title {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 10px;
}
.adv-desc {
    font-size: 16px;
    color: var(--gray-text);
}

/* --- Блок 4: Методология --- */
.method-section {
    background: var(--light-gray-bg);
}
.method-item {
    padding: 40px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    background: #fff;
    margin-bottom: 24px;
    border: 1px solid var(--border-light-gray);
}
.method-item.bg-green {
    background: var(--light-green-bg);
}
.method-item.bg-orange {
    background: var(--light-orange-bg);
}
.method-item.bg-blue {
    background: var(--light-blue-bg);
}
.method-item span.step {
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
    display: block;
    margin-bottom: 7px;
}
.method-item i.desc {
    font-style: normal;
    display: block;
    font-size: 18px;
    opacity: 0.7;
    line-height: 1.4;
}
.method-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

/* --- Блок 5: Функционал --- */
.feature-img-placeholder {
    height: 500px;
}
.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    position: relative;
    padding: 18px 0 18px 40px;
    line-height: 1.25;
    border-bottom: 1px dotted rgba(0,0,0,.2);
    font-weight: 500;
    font-size: 20px;
}
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-weight: bold;
    font-size: 24px;
}

/* --- Новые Тарифы (Карточки на ПК, Мобильный Слайдер) --- */
.tariffs-section {
    background: var(--light-gray-bg);
}
.tariff-card-custom {
    background: #ffffff;
    border: 1px solid var(--border-light-gray);
    border-radius: 16px;
    padding: 45px 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.25s ease all;
}
.tariff-card-custom:hover {
    box-shadow: -1px -1px 0 0 rgba(0,0,0,.1), 1px 1px 0 0 rgba(0,0,0,.1);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}
.tariff-card-custom.featured {
    border: 2px solid var(--accent-color);
    background: #ffffff;
    position: relative;
}
.tariff-card-custom .__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
}
.tariff-card-custom .__name {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 15px;
}
.tariff-card-custom .__price {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}
.tariff-card-custom .__price span {
    font-size: 18px;
    font-weight: 500;
    color: var(--gray-text);
}
.tariff-card-custom ul {
    list-style: none;
    padding: 0;
    margin: 25px 0 35px;
    font-size: 17px;
}
.tariff-card-custom ul li {
    padding: 12px 0;
    border-bottom: 1px dotted rgba(0,0,0,.1);
    font-weight: 500;
}
.tariff-card-custom ul li strong {
    color: var(--black-color);
}

/* Горизонтальный нативный скролл для мобилок */
@media (max-width: 767.98px) {
    .mobile-scroll-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 25px;
        snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-scroll-row > div {
        flex: 0 0 85%;
        max-width: 85%;
        snap-align: start;
        margin-right: 15px;
    }
}

/* --- Блок для партнеров --- */
.yandex-block {
    background: var(--light-orange-bg);
    padding: 40px 60px 40px 60px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}
/*.yandex-block::after {
    content: "🤝";
    font-size: 60px;
    position: absolute;
    left: 40px;
    top: 40px;
}*/
.yandex-block span {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
    z-index: 2;
    position: relative;
}
.yandex-block i {
    font-style: normal;
    opacity: 0.7;
    font-size: 22px;
    z-index: 2;
    position: relative;
}

/* --- Блок 6: Калькулятор (Перемещен вниз) --- */
.calc-section {
    background: #fff;
}
.calc-wrap {
    padding: 85px 110px;
    background: var(--light-green-bg);
    border-radius: 16px;
}
.calc-item {
    margin-bottom: 20px;
}
.calc-item > span {
    font-size: 15px;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.result-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light-gray);
    text-align: center;
}
.result-val {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}
.form-control-custom {
    height: 65px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8e8e8;
    width: 100%;
    padding-left: 18px;
    font-size: 18px;
    transition: 0.2s ease all;
}
.form-control-custom:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* --- Блок 8: FAQ (Бутстрап Аккордеон с анимацией) --- */
.faq-section {
    background: var(--light-blue-bg);
    padding: 85px 0;
}
.accordion-item-custom {
    background: #fff;
    border: none;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.accordion-button-custom {
    font-size: 22px;
    font-weight: 500;
    padding: 24px 32px;
    background: #fff;
    color: var(--black-color);
    border: none;
    width: 100%;
    text-align: left;
    display: d-flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none !important;
}
.accordion-button-custom:not(.collapsed) {
    background: #fff;
    color: var(--accent-color);
}
.accordion-body-custom {
    padding: 0 32px 24px;
    font-size: 18px;
    color: #494949;
    line-height: 1.5;
}

/* --- Отзывы (Бутстрап Карусель) --- */
.reviews-section {
    background: #fff;
    padding: 100px 0;
}
.review-slider-box {
    background: var(--light-gray-bg);
    border-radius: 16px;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.review-text-content {
    font-size: 22px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: var(--black-color);
    margin-bottom: 25px;
}
.review-author {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
}
.review-company {
    font-size: 16px;
    color: var(--gray-text);
    display: block;
    margin-top: 2px;
}

/* --- Блок 9: Footer --- */
.footer {
    background: #F5F5F5;
    padding: 50px 0 40px;
}
.footer-logo {
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
}
.footer-logo span {
    font-weight: 500;
    font-size: 14px;
    opacity: 0.6;
    margin-left: 12px;
    line-height: 1.1;
}
.footer-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 35px;
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}
.footer-nav a {
    color: #000;
    text-decoration: none;
}
.footer-nav a:hover {
    color: var(--accent-color);
}
.footer-bottom {
    padding-top: 30px;
    margin-top: 35px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 15px;
    color: rgba(0,0,0,0.5);
}
.footer-bottom a {
    color: #000;
    text-decoration: none;
    opacity: 0.5;
}
.footer-bottom a:hover {
    opacity: 1;
}

/* Адаптив */
@media (max-width: 991px) {
    h1 {
        font-size: 44px;
    }
    h2 {
        font-size: 36px;
    }
    .hero-text p {
        font-size: 18px;
    }
    .calc-wrap {
        padding: 40px 30px;
    }
    .yandex-block {
        padding: 30px 30px 30px 30px;
    }
    .yandex-block::after {
        font-size: 40px;
        left: 20px;
        top: 30px;
    }
    .review-slider-box {
        padding: 40px 20px;
    }
}
@media (max-width: 767px) {
    section {
        padding: 50px 0;
    }
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        position: absolute;
        top: 90px;
        width: 100%;
        left: 0;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
