/* Reset and Base Styles */
:root {
    --primary-color: #005A9C; /* Deep Blue */
    --secondary-color: #F87D00; /* Bright Orange */
    --text-color: #333;
    --bg-light: #f8f9fa;
    --white: #fff;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Плавный скролл по якорям */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Отступ для липкой шапки */
}

.apec-card-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}
.apec-card-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}
.apec-card-section {
    padding: 60px 0;
}
.apec-card-section:nth-child(even) {
    background-color: var(--bg-light);
}
.apec-card-h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}
.apec-card-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.apec-card-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: var(--white) !important;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}
.apec-card-btn:hover {
    background-color: #e06f00;
    transform: translateY(-2px);
}

/* =================================================================== */
/* ================== CSS ДЛЯ НОВОЙ ЛИПКОЙ ШАПКИ ================== */
/* =================================================================== */
.sticky-anchor-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    display: none; /* Изначально скрываем, чтобы не мешать основной шапке */
}
.sticky-anchor-nav.is-visible {
    transform: translateY(0);
}
.sticky-anchor-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 60px;
}
.sticky-anchor-nav li {
    margin: 0 15px;
}
.sticky-anchor-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.sticky-anchor-nav a:hover {
    color: var(--secondary-color);
}
.sticky-anchor-nav a.sticky-nav-btn {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 20px;
}
.sticky-anchor-nav a.sticky-nav-btn:hover {
    background-color: #e06f00;
}
/* Прячем липкую шапку на мобильных, чтобы не занимала место */
@media (max-width: 992px) {
    .card-appearance-grid, .advantages-grid {
        grid-template-columns: 1fr;
    }
    .payment-grid {
        display: block; /* ИЗМЕНЕНИЕ: Заставляем элементы встать друг под друга */
    }
    .card-side-description h3, .card-side-description p {
       text-align: center;
    }
    /* Добавим отступ снизу для блока с методами оплаты, чтобы он не "прилипал" к оранжевому блоку */
    .payment-methods-info {
        margin-bottom: 40px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 90, 156, 0.7), rgba(0, 90, 156, 0.7)), url('/wp-content/themes/tuttur/assets/banner-apec-scaled-v2.webp') no-repeat center center;
    background-size: cover;
    color: var(--white);
    padding: 60px 0 100px 0;
    position: relative;
}
.hero-section .apec-card-container {
    text-align: center;
}
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* --- ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ ХЛЕБНЫХ КРОШЕК --- */
.breadcrumbs-container {
    text-align: left; /* Выравниваем контейнер влево */
    margin-bottom: 30px;
}
.hero-section .breadcrumbs {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius);
    padding: 10px 15px;
    max-width: 100%;
    color: var(--white);
    font-size: 0.9rem;
}
.hero-section .breadcrumbs a {
    color: var(--white);
    text-decoration: none;
}
.hero-section .breadcrumbs a:hover {
    color: var(--white); /* Остается белым при наведении */
    text-decoration: underline;
}
.hero-section .breadcrumbs .current-item {
    font-weight: 600;
}
body .breadcrumbs {
    padding: 0;
    margin-bottom: 0;
    background: none;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.advantage-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.advantage-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.advantage-card h3 {
    font-size: 1.25rem;
}
.card-appearance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: flex-start; }
.card-side-image { width: 100%; max-width: 450px; margin: 0 auto 20px; display: block; border-radius: 20px; border: 1px solid #dee2e6; box-shadow: var(--box-shadow); }
.countries-grid {
    display: grid;
    /* CHANGE: The minimum width is now smaller, allowing two columns on more devices. */
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px; /* Optional: A slightly smaller gap can also help. */
}
.country-item { display: flex; align-items: center; padding: 15px; background: var(--white); border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.country-item img { width: 40px; height: auto; margin-right: 15px; border-radius: 4px; }
.country-info span { font-weight: 600; display: block; }
.country-info small { color: #6c757d; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.price-card { background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: center; border-top: 5px solid var(--primary-color); transition: transform 0.3s ease; }
.price-card:hover { transform: scale(1.03); }
.price-card.popular { border-top-color: var(--secondary-color); }
.price-card .price { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); margin: 15px 0; }
.price-card ul { list-style: none; padding: 0; margin: 25px 0; text-align: left; }
.price-card ul li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.price-card ul li::before { content: '✔'; color: var(--secondary-color); position: absolute; left: 0; }
.discount-block { display: flex; align-items: center; background-color: var(--white); border: 2px dashed var(--secondary-color); border-radius: var(--border-radius); padding: 25px 30px; margin-top: 50px; text-align: left; }
.discount-icon { font-size: 3rem; margin-right: 25px; }
.discount-text h3 { margin-bottom: 5px !important; text-align: left; }
.discount-text p { margin: 0; }
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.payment-method { margin-bottom: 20px; }
.payment-method h4 { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); margin-bottom: 5px; }
.payment-icons { display: flex; gap: 15px; align-items: center; margin-top: 15px; }
.payment-icon-image { height: 30px; width: auto; padding: 5px; border: 1px solid #dee2e6; border-radius: 4px; }
.installment-block { background-color: var(--secondary-color); color: var(--white); padding: 30px; border-radius: var(--border-radius); text-align: center; }
.installment-block h3 { color: var(--white); font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
.installment-block p { margin-bottom: 25px; }
.messenger-links { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 15px; }
.messenger-links a { display: flex; align-items: center; gap: 8px; background-color: var(--white); color: var(--primary-color) !important; padding: 8px 15px; border-radius: 20px; font-weight: 600; text-decoration: none !important; transition: transform 0.2s ease; }
.messenger-links a:hover { transform: scale(1.05); }
.messenger-links img { width: 24px; height: 24px; }
.installment-block .fine-print { font-size: 0.8rem; opacity: 0.8; margin-top: 20px; }
.info-box { margin-top: 50px; padding: 30px; border-left: 5px solid var(--primary-color); background-color: var(--white); box-shadow: var(--box-shadow); border-radius: var(--border-radius); text-align: left; }
.info-box p { margin-bottom: 1em; }
.info-box p:last-child { margin-bottom: 0; }
.info-box p:first-of-type { font-weight: 700; font-size: 1.1rem; color: var(--primary-color); }
.steps-container { display: flex; justify-content: space-between; gap: 30px; position: relative; }
.step-card { background: var(--white); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: center; flex: 1; position: relative; }
.step-number { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); width: 50px; height: 50px; background-color: var(--secondary-color); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; border: 3px solid var(--white); }
.intermediary-text { display: flex; flex-direction: column; justify-content: center; }
.intermediary-text p { text-align: left; margin-bottom: 1.5em; }
.intermediary-text p:last-child { margin-bottom: 0; }
.telegram-channels-block { margin-top: 40px; padding-top: 30px; border-top: 1px solid #dee2e6; }
.telegram-channels-block h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 20px; text-align: left; }
.telegram-channels-grid { display: flex; flex-direction: column; gap: 15px; }
.telegram-channel-item { background: var(--bg-light); padding: 15px 20px; border-radius: var(--border-radius); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.channel-info { display: flex; align-items: center; gap: 15px; flex-grow: 1; }
.channel-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.telegram-channel-item p { font-size: 0.9rem; margin: 0; text-align: left; line-height: 1.4; flex-grow: 1; }
.telegram-channel-item a.tg-button { display: inline-flex; align-items: center; justify-content: center; background-color: #24A1DE; color: #fff !important; font-weight: 600; font-size: 0.9rem; text-decoration: none !important; padding: 8px 16px; border-radius: 20px; transition: background-color 0.2s ease; flex-shrink: 0; }
.telegram-channel-item a.tg-button:hover { background-color: #1d8ac4; }
.telegram-channel-item a.tg-button svg { width: 1em; height: 1em; margin-right: 8px; fill: currentColor; }
.final-cta { text-align: center; background: var(--primary-color); color: var(--white); border-radius: var(--border-radius); padding: 40px 50px; }
.final-cta h2 { color: var(--white); margin-bottom: 15px; }
.final-cta p { margin-bottom: 15px; }
.documents-bullet-list { max-width: 700px; margin: 0 auto; text-align: left; }
.documents-bullet-list ul { list-style: none; padding: 0; margin: 0; }
.documents-bullet-list li { font-size: 1.1rem; line-height: 1.6; padding-left: 35px; position: relative; margin-bottom: 15px; }
.documents-bullet-list li:last-child { margin-bottom: 0; }
.documents-bullet-list li::before { content: '✔'; font-size: 1.5rem; color: var(--secondary-color); position: absolute; left: 0; top: 0px; }
.accelerated-tariff-note { text-align: center; padding: 20px; background-color: #f0f8ff; border-left: 5px solid var(--secondary-color); border-radius: var(--border-radius); max-width: 700px; margin: 40px auto 0 auto; }
.accelerated-tariff-note p { margin: 0; font-size: 1.1rem; font-weight: 500; }
.photo-requirements-link { margin-top: 5px; }
.photo-requirements-link a { font-size: 0.9rem; font-weight: 500; color: var(--primary-color); text-decoration: underline; }
.photo-requirements-link a:hover { text-decoration: none; }
.cert-image-desktop { display: none; }
.cert-image-mobile { display: block; margin: 20px auto 30px auto; max-width: 300px; }
.cert-image-mobile .card-side-image { margin-bottom: 0; }

.faq-section { padding-bottom: 30px; }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); background: var(--white); overflow: hidden; }
.faq-question { width: 100%; padding: 20px 25px; background: var(--white); border: none; text-align: left; font-size: 1.1rem; font-weight: 700; color: var(--primary-color); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s ease; }
.faq-question:hover { background-color: #f8f9fa; }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 400; transition: transform 0.3s ease; margin-left: 15px; }
.faq-question.active::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; background: var(--white); color: #333; }
.faq-answer p { padding: 0 25px 20px 25px; margin: 0; line-height: 1.7; }
.final-cta .apec-form { color: var(--white); }
.final-cta .apec-form input[type="text"], .final-cta .apec-form input[type="email"], .final-cta .apec-form input[type="tel"] { width: 100%; padding: 12px 15px; background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--border-radius); font-size: 1rem; color: var(--white); font-family: inherit; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.final-cta .apec-form input::placeholder { color: rgba(255, 255, 255, 0.7); opacity: 1; }
.final-cta .apec-form input:focus { outline: none; background-color: rgba(255, 255, 255, 0.2); border-color: var(--white); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }
.final-cta .apec-form .apec-inputs { margin-bottom: 8px; }
.final-cta .apec-form .apec-inputs .wpcf7-form-control-wrap:last-child input { margin-bottom: 0; }
.final-cta .apec-form .apec-form-positonn { text-align: left; margin: 8px 0; font-weight: 500; }
.final-cta .apec-form .apec-form-positonn .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.final-cta .apec-form .apec-form-positonn .wpcf7-list-item { display: inline-block; margin-right: 25px; }
.final-cta .apec-form .apec-form-positonn .wpcf7-list-item:last-child { margin-right: 0; }
.final-cta .apec-form .apec-form-positonn label { display: inline-flex; align-items: center; cursor: pointer; }
.final-cta .apec-form .apec-form-positonn input[type="radio"] { display: none; }
.final-cta .apec-form .apec-form-positonn input[type="radio"] + span::before { content: ''; display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 50%; margin-right: 8px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.final-cta .apec-form .apec-form-positonn input[type="radio"]:checked + span::before { border-color: var(--white); background-color: var(--white); box-shadow: inset 0 0 0 3px var(--primary-color); }
.final-cta .apec-form .text { font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); text-align: center; margin: 8px 0 0 0; }
.final-cta .apec-form .text a { color: var(--white); text-decoration: underline; }
.final-cta .apec-form .text a:hover { text-decoration: none; }
.final-cta .apec-form .apec-form-btn { margin-top: 8px; }
.final-cta .apec-form input[type="submit"] { width: 100%; padding: 12px 25px; background-color: var(--secondary-color); color: var(--white) !important; font-weight: 700; font-size: 1rem; text-decoration: none !important; border-radius: var(--border-radius); transition: background-color 0.3s ease, transform 0.3s ease; border: none; cursor: pointer; -webkit-appearance: none; }
.final-cta .apec-form input[type="submit"]:hover { background-color: #e06f00; transform: translateY(-2px); }
.final-cta .messubmitates p { text-align: center; margin-top: 15px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); line-height: 1.5; }
.final-cta .messubmitates p img { height: 24px; width: 24px; vertical-align: middle; margin: 0 3px; transition: transform 0.2s ease; }
.final-cta .messubmitates p a:hover img { transform: scale(1.1); }
.final-cta .apec-form .wpcf7-not-valid-tip { color: #FF99CC; font-weight: 500; font-size: 0.85rem; }
.final-cta .apec-form input.wpcf7-not-valid { border-color: #FF99CC !important; }

/* Media Queries */
@media (min-width: 993px) {
    .cert-image-mobile { display: none; }
    .cert-image-desktop { display: block; }
}
@media (max-width: 992px) {
    .card-appearance-grid, .payment-grid, .advantages-grid {
        grid-template-columns: 1fr;
    }
    .card-side-description h3, .card-side-description p {
       text-align: center;
    }
}
@media (max-width: 768px) {
    .pricing-grid, .steps-container {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .hero-section h1 {
    font-size: 1.8rem;
}
.pricing-grid, .steps-container {
    grid-template-columns: 1fr;
    flex-direction: column;
}
}
@media (max-width: 576px) {
    .document-item-v2 { flex-direction: column; align-items: flex-start; }
    .document-placeholder { margin-top: 15px; width: 100%; height: 120px; }
}
@media (max-width: 520px) {
    .telegram-channel-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .telegram-channel-item p {
        text-align: left;
    }
    .channel-info {
        width: 100%;
        margin-bottom: 10px;
    }
}
.section-subtitle {
text-align:center; 
max-width: 800px; 
margin: -20px auto 40px;
}

/* Кнопка Еще страны */

#show-more-countries {
    display: none;
    margin: 20px auto 0;
}

@media (max-width: 991px) {
    #show-more-countries {
        display: block;
    }

    .countries-grid .country-item:nth-child(n+11) {
        display: none;
    }
    .countries-grid.expanded .country-item {
        display: flex; 
    }
    
    .countries-grid.expanded + #show-more-countries {
        display: none;
    }
}
/* Add this code to the end of your newservice.css file */

@media (max-width: 768px) {
    .hero-section h1,
    .apec-card-h2,
    .apec-card-h3,
    .payment-method h4 {
        line-height: 1.2; /* Adjusts the line spacing for headings on mobile */
    }
    
    .apec-card-h2 {
       font-size: 2.1rem; /* Optional: you can also slightly reduce the font size of subheadings for a better look */
    }
}
/* стили для плашки и отображения видео в iframe  */
    footer {
        padding-bottom: 60px;
    }
    iframe {
        max-width: 100% !important;
    }
	
/* =================================================================== */
/* ======== СТИЛИ ДЛЯ МОБИЛЬНОЙ ЛИПКОЙ ШАПКИ (ФИНАЛЬНАЯ ВЕРСИЯ 2.0) ======= */
/* =================================================================== */
:root {
    --mobile-nav-bg: #d5d5d5; /* Новый серый цвет плашки */
    --mobile-nav-text: #1e1e1e; /* Новый цвет текста и иконок */
    --new-feature-color: #E91E63; /* Розовый для акцента */
}

.mobile-sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--mobile-nav-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    display: none;
    height: 55px;
    /* align-items: center;  <-- УДАЛЕНО */
    padding: 0 15px;
    box-sizing: border-box;
}

.mobile-sticky-nav.is-visible {
    transform: translateY(0);
}

.mobile-nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 0;
    gap: 15px;
    height: 100%; /* <-- ДОБАВЛЕНО */
}

/* Ссылки, которые всегда видны */
.mobile-nav-visible-links {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.mobile-nav-visible-links::-webkit-scrollbar {
    display: none;
}
.mobile-nav-visible-links a {
    color: var(--mobile-nav-text); /* ИЗМЕНЕН ЦВЕТ ШРИФТА */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
	line-height: 1;
}

/* Ссылка "Рассрочка" и стикер */
a.new-feature {
    color: var(--new-feature-color) !important;
    font-weight: 700 !important;
    position: relative;
    display: flex;
    align-items: center;
}
.sticker {
    display: inline-block;
    background: var(--new-feature-color);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 5px;
    line-height: 1;
}

/* Кнопка "Заявка" и Гамбургер */
.mobile-nav-main-cta {
    padding: 5px 12px !important;
    font-size: 0.85rem !important;
    flex-shrink: 0;
}
.mobile-nav-toggle {
    width: 28px;
    height: 21px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1010;
    flex-shrink: 0;
	margin-left: auto;
}
.mobile-nav-toggle span {
    display: block; position: absolute; height: 3px; width: 100%;
    background: var(--mobile-nav-text); /* ИЗМЕНЕН ЦВЕТ ГАМБУРГЕРА */
    border-radius: 3px; left: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.mobile-nav-toggle span:nth-child(1) { top: 0px; }
.mobile-nav-toggle span:nth-child(2) { top: 9px; }
.mobile-nav-toggle span:nth-child(3) { top: 18px; }
.mobile-menu-open .mobile-nav-toggle span {
    background: var(--mobile-nav-text); /* Цвет крестика */
}
.mobile-menu-open .mobile-nav-toggle span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.mobile-menu-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; }
.mobile-menu-open .mobile-nav-toggle span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Выезжающее меню */
.mobile-nav-links {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px;
    height: 100vh; background-color: #f8f9fa;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease-in-out; padding-top: 80px; z-index: 1005;
}
.mobile-menu-open .mobile-nav-links { right: 0; }
.mobile-nav-links ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav-links li a { display: block; padding: 15px 25px; color: var(--primary-color); text-decoration: none; font-weight: 600; border-bottom: 1px solid #e9ecef; transition: background-color 0.2s; }
.mobile-nav-links li a:hover { background-color: #e2e6ea; }

.mobile-only-cta { padding: 20px 25px; }
.mobile-only-cta a { text-align: center; padding: 12px; border: none; }

/* Затемнение фона (оверлей) */
.mobile-nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1001;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu-open .mobile-nav-overlay {
    opacity: 1; visibility: visible;
}

/* Медиа-запросы */
@media (max-width: 992px) {
    .sticky-anchor-nav { display: none !important; }
    .mobile-sticky-nav { display: flex; }
}
@media (min-width: 993px) {
    .mobile-sticky-nav { display: none !important; }
}
/* Прячем кнопку "Заявка" на очень маленьких экранах (меньше 452px) */
@media (max-width: 441px) {
    .mobile-sticky-nav .mobile-nav-main-cta {
        display: none;
    }
}
/* =================================================================== */
/* ============== ФИНАЛЬНЫЕ ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ ============== */
/* =================================================================== */

@media (max-width: 992px) {

    /* --- 1. Исправляем смещение оранжевого блока --- */
    /* Это правило заставит оранжевый блок занять всю ширину */
    .payment-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    /* --- 2. Исправляем кнопки в оранжевом блоке --- */
    .installment-block .messenger-links {
        display: flex;
        flex-direction: row; /* Кнопки в ряд */
        flex-wrap: wrap; /* Разрешаем перенос */
        justify-content: center;
        gap: 15px; /* Расстояние между элементами */
    }

    /* Делаем "Связаться:" отдельным заголовком */
    .installment-block .messenger-links span {
        width: 100%; /* Занимает всю ширину, заставляя кнопки перенестись на новую строку */
        text-align: center;
        margin-bottom: 0;
    }

    /* Стилизуем сами кнопки, чтобы текст не вылезал */
    .installment-block .messenger-links a {
        flex-grow: 1; /* Позволяем кнопкам расти и занимать равное место */
        flex-basis: 120px; /* Задаем базовую ширину, чтобы они не были слишком узкими */
        justify-content: center; /* Центрируем контент внутри кнопки (иконка + текст) */
        padding: 8px 10px; /* Немного уменьшаем отступы для надежности */
    }
}