:root {
    --primary-color: #2d8a5a;
    --secondary-color: #3cb371;
    --success-color: #28a745;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --white: #ffffff;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
}

/* Общие стили */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px; /* Базовый размер текста */
}

/* Унифицированная типографика */
p, .text, .lead {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.lead {
    font-size: 18px;
    font-weight: 400;
}

h1,
.hero-title {
    font-size: 2.5rem !important;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem !important;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Переопределение Bootstrap стилей для h2 */
@media (min-width: 1200px) {
    h2, .h2 {
        font-size: 1.75rem !important;
    }
}

/* Универсальные стили для всех страниц */
body h1,
body .hero-title {
    font-size: 2.5rem !important;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

body h2 {
    font-size: 1.75rem !important;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

body .hero-text {
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Ограничение ширины контента для всех страниц */
.container {
    max-width: 1000px !important;
}

/* Дополнительные правила для гарантии применения */
body .container {
    max-width: 1000px !important;
}

/* Для всех контейнеров на страницах */
.site-content .container,
.hero-section .container {
    max-width: 1000px !important;
}

/* Форма SMS - более узкая для лучшей читаемости */
.sms-form-container {
    max-width: 700px !important;
}

/* Хедер */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.site-logo:hover {
    text-decoration: none;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin-bottom: 0;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Переключалка языков в хедере */
.language-switcher-header {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-button-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lang-button-header:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
    text-decoration: none;
}

.lang-button-header.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Мобильная навигация */
.navbar-toggler {
    border: none;
    background: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    transform: scale(1.1);
}

.navbar-toggler-icon {
    font-size: 24px;
    color: var(--primary-color);
}

#navbarMenu {
    background-color: var(--white);
    border-top: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 10px;
    border-radius: 0 0 10px 10px;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1001;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    display: none;
}

#navbarMenu.show {
    display: block;
}

#navbarMenu .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

#navbarMenu .nav-link:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
    padding-left: 25px;
}

/* Мобильная переключалка языков */
.mobile-language-switcher {
    padding: 20px;
    border-top: 1px solid #f8f9fa;
}

.mobile-lang-label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.mobile-lang-buttons {
    display: flex;
    gap: 10px;
}

.mobile-lang-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mobile-lang-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
    text-decoration: none;
}

.mobile-lang-button.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Героический баннер */
.hero-section {
    padding: 3rem 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
}

/* Медиа-запрос для ПК (десктоп) */
@media (min-width: 1024px) {
    .hero-section {
        margin-top: -25px;
    }
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 18px; /* Унифицированный размер */
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Hero CTA стили */
.hero-cta {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.hero-cta .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Форма отправки SMS */
.sms-form-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 500px;
    margin: -70px auto 0;
    position: relative;
}

/* Секция c преимуществами */
.features-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.feature-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Новые секции */
.why-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.benefit-item {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.benefit-item h4 {
    color: var(--text-color);
    font-size: 16px; /* Унифицированный размер */
    margin: 0;
    font-weight: 400;
}

/* Раздел "Как это работает" */
.how-it-works-section {
    padding: 4rem 0;
    background-color: #f0f4f8;
}

/* Секция блога */
.blog-section {
    padding: 4rem 0;
    background-color: var(--white);
}

/* Финальная CTA секция */
.final-cta-section {
    padding: 4rem 0;
    background-color: #f0f4f8;
    margin-bottom: 2rem; /* Добавляем отступ снизу */
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step h3 {
    font-size: 18px; /* Унифицированный размер */
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Футер */
.site-footer {
    background-color: #343a40;
    color: var(--white);
    padding: 3rem 0;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #adb5bd;
}

/* Отслеживание SMS */
.tracking-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tracking-timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #ddd;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    left: -37px;
    top: 5px;
}

.timeline-dot-primary {
    background-color: var(--primary-color);
}

.timeline-dot-success {
    background-color: var(--success-color);
}

.timeline-dot-info {
    background-color: #17a2b8;
}

.timeline-dot-danger {
    background-color: #dc3545;
}

.time-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    body h1,
    body .hero-title {
        font-size: 2rem !important;
    }

    body h2 {
        font-size: 1.5rem !important;
    }

    body .hero-text {
        font-size: 1.25rem !important; /* 1.25rem on mobile for better hierarchy */
        font-weight: 400 !important;
    }
    }

    .sms-form-container {
        margin-top: -50px;
        padding: 1.5rem;
    }

    /* Мобильные стили для новых секций */
    .hero-cta {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-cta .btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .why-section,
    .blog-section,
    .final-cta-section {
        padding: 2rem 0;
    }

    .benefit-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .benefit-item h4 {
        font-size: 16px; /* Унифицированный размер */
    }

    /* Улучшения для мобильной версии */
    .site-header {
        padding: 0.75rem 0;
    }

    .site-logo img {
        max-width: 200px !important;
    }

    .navbar-toggler {
        padding: 10px;
        border-radius: 8px;
        background-color: transparent;
    }

    .navbar-toggler:hover {
        background-color: transparent;
    }

    #navbarMenu {
        margin-top: 0;
        border-radius: 0 0 15px 15px;
        overflow: hidden;
    }

    #navbarMenu .nav-link {
        padding: 18px 25px;
        font-size: 16px;
        position: relative;
    }

    #navbarMenu .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
        z-index: -1;
    }

    #navbarMenu .nav-link:hover::before {
        width: 100%;
    }

    #navbarMenu .nav-link:hover {
        color: var(--white);
        padding-left: 30px;
    }

    .mobile-language-switcher {
        padding: 25px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .mobile-lang-label {
        font-size: 18px;
        margin-bottom: 20px;
        color: var(--primary-color);
    }

    .mobile-lang-button {
        width: 55px;
        height: 55px;
        font-size: 18px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .mobile-lang-button:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .mobile-lang-button.active {
        box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    }

    /* Улучшения для футера на мобильных */
    .site-footer {
        padding: 2rem 0;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-links a {
        padding: 8px 0;
        display: block;
        transition: all 0.3s ease;
    }

    .footer-links a:hover {
        padding-left: 10px;
        color: var(--primary-color) !important;
    }
}

/* Дополнительные улучшения для планшетов */
@media (min-width: 769px) and (max-width: 1023px) {
    .site-header {
        padding: 1.25rem 0;
    }

    .nav-menu li {
        margin-left: 1.25rem;
    }

    .lang-button-header {
        width: 45px;
        height: 45px;
        font-size: 15px;
    }
}

/* Анимации для плавности */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#navbarMenu {
    animation: fadeInUp 0.3s ease-out;
}

.mobile-language-switcher {
    animation: fadeInUp 0.4s ease-out;
}

/* Улучшения для кнопок переключения языков */
.language-switcher-header {
    position: relative;
}

.language-switcher-header::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background-color: #e9ecef;
}

@media (max-width: 768px) {
    .language-switcher-header::after {
        display: none;
    }
}


/* Додаткові стилі для таблиць і кнопок */
.table th {
    background-color: #f0f4f8;
    color: var(--text-color);
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

.label {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.payment-data {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 1rem;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
}

.form-group.text-center .btn {
    margin: 0.5rem;
}

.circle-number{
    --size: 40px;
    inline-size: var(--size);
    block-size: var(--size);
    aspect-ratio: 1 / 1;
    flex: 0 0 var(--size);
    display: grid;
    place-items: center;
    background: #28a745;        /* зелёный */
    color: #fff;
    border-radius: 50% !important;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    margin-right: 15px;
}
@media (max-width: 768px){
    .circle-number{
        --size: 36px;
        font-size: 16px;
    }
}