/* ================================================
   Стили для аккордеона содержания
   ================================================ */
.accordion-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    border: 2px solid #50b432;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.accordion-toggle {
    background: #50b432;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-toggle:hover {
    background: #3f9a27;
}

.accordion-toggle i {
    font-style: normal;
    transition: transform 0.3s ease;
}

.accordion-toggle.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 15px;
}

.accordion-content.active {
    max-height: 900px;
    padding: 20px 15px 10px;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 1;
}

.content-list li {
    margin-bottom: 8px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.content-list a {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
    line-height: 1.4;
}

.content-list a:hover {
    background-color: #e3f2fd;
    color: #3498db;
    border-left-color: #3498db;
    padding-left: 15px;
}

.content-list a:before {
    content: "•";
    color: #50b432;
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

.content-list a[href^="#toc"] {
    font-weight: 600;
    color: #2c3e50;
    background-color: #f1f8e9;
    border-left: 4px solid #50b432;
}

/* Адаптивность аккордеона */
@media (min-width: 768px) {
    .accordion-content.active { max-height: 850px; }
    .content-list { column-count: 2; column-gap: 30px; }
    .content-list li { margin-bottom: 7px; }
}
@media (min-width: 992px) {
    .accordion-content.active { max-height: 800px; }
    .content-list { column-count: 3; column-gap: 25px; }
    .content-list li { margin-bottom: 6px; }
    .content-list a { font-size: 10px; padding: 5px 8px; }
}
@media (min-width: 1200px) {
    .accordion-content.active { max-height: 850px; }
    .content-list { column-count: 3; column-gap: 40px; }
}
@media (max-width: 480px) {
    .accordion-toggle { font-size: 14px; padding: 10px 15px; }
    .accordion-content.active { max-height: 1000px; }
    .content-list a { font-size: 13px; padding: 5px 8px; }
    .content-list li { margin-bottom: 6px; }
}

/* ================================================
   Современные стили для блока FAQ (цвет #2a7fff)
   ================================================ */
:root {
    --primary-color: #2a7fff;
    --primary-dark: #1a5bbf;
    --accent-color: #e9c46a;
    --text-color: #2d3e50;
    --bg-light: #f8f9fa;
    --border-radius: 24px;
    --card-bg: #ffffff;
    --shadow: 0 20px 40px -12px rgba(0, 20, 30, 0.15);
}

.faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px 40px 20px;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-sizing: border-box;
}

.faq-section h2.fxd_6 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}
.faq-section h2.fxd_6::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 4px;
    margin-top: 8px;
}

.faq-section .fxd_8 {
    font-size: 1.2rem;
    color: #4a5f73;
    margin-bottom: 35px;
    line-height: 1.5;
    max-width: 80%;
}

.faq-image-wrapper {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    background: white;
    padding: 12px 12px 8px 12px;
    border-radius: 28px;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    max-width: 220px;
    border: 1px solid rgba(42, 127, 255, 0.1);
}
.faq-image-wrapper:hover { transform: translateY(-5px); }
.faq-image-wrapper img.fxd_7 {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    background: #eef2f5;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
    clear: none;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 22px;
    padding: 8px 8px 8px 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.25s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    backdrop-filter: blur(2px);
}
.faq-item:hover {
    box-shadow: var(--shadow);
    border-color: rgba(42, 127, 255, 0.2);
}

.faq-icon {
    font-size: 2.2rem;
    line-height: 1;
    min-width: 50px;
    text-align: center;
    color: var(--primary-color);
    opacity: 0.8;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.05));
}

.faq-content {
    flex: 1;
    padding: 12px 25px 12px 0;
}
.faq-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.faq-content h3::before { content: none; }

.faq-answer {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2c3e50;
    background: #f4f9fc;
    padding: 18px 22px;
    border-radius: 18px;
    border-left: 4px solid var(--primary-color);
    margin-top: 5px;
    transition: background 0.2s;
}
.faq-answer:hover { background: #e9f2f8; }

.cta-button {
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    padding: 8px 18px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin: 0 5px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(42, 127, 255, 0.2);
}
.cta-button:hover {
    background: linear-gradient(145deg, var(--primary-dark), #0f3d8c);
    transform: scale(1.02);
    box-shadow: 0 8px 14px rgba(42, 127, 255, 0.3);
    color: white;
}

.faq-answer a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
}
.faq-answer a:hover {
    color: #0a3a4f;
    border-bottom: 2px solid var(--accent-color);
}

@media (max-width: 768px) {
    .faq-section h2.fxd_6 { font-size: 1.9rem; }
    .faq-section .fxd_8 { max-width: 100%; font-size: 1.1rem; }
    .faq-image-wrapper { float: none; margin: 0 auto 25px auto; display: block; }
    .faq-item { flex-direction: column; padding: 20px; }
    .faq-icon { align-self: flex-start; }
    .faq-content { padding-right: 0; }
    .faq-content h3 { font-size: 1.15rem; }
}
@media (max-width: 480px) {
    .cta-button { display: block; text-align: center; margin: 8px 0; }
}

/* ================================================
   Общие стили для секций с советами
   ================================================ */
.tips-section, .care-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 30px 25px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.tips-section .fxd_6, .care-section .fxd_6 { margin-top: 0; }
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}
.tips-card, .care-card {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.tips-card:hover, .care-card:hover { transform: translateY(-5px); }
.tips-card { border-left: 4px solid #ff6b35; }
.care-card { border-top: 4px solid #2a7fff; }
.cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 30px;
}
.recommendations-block {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.gradient-info-block {
    background: linear-gradient(135deg, #1e3c72 0%, #2a7fff 100%);
    border-radius: 16px;
    padding: 20px 25px;
    margin-top: 20px;
    color: white;
}
@media (max-width: 768px) {
    .tips-section, .care-section { padding: 20px 15px; }
    .tips-section .fxd_6, .care-section .fxd_6 { font-size: 24px; }
    .tips-card, .care-card { min-width: 100%; }
}
.card-icon {
    background: rgba(42, 127, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.warning-text {
    background: #fff3e8;
    padding: 10px;
    border-radius: 12px;
    color: #cc5200;
    font-size: 14px;
}
.info-tag {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
}
.phone-block {
    display: inline-block;
    background: #fff;
    border-radius: 30px;
    padding: 12px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.phone-block a {
    font-weight: bold;
    color: #2a7fff;
    text-decoration: none;
}
.checkmark {
    position: absolute;
    left: 0;
    color: #2a7fff;
    font-weight: bold;
}

/* ================================================
   Адаптивность для блока "Срочный вызов" (до содержания)
   ================================================ */
@media (max-width: 650px) {
    .urgent-call {
        flex-direction: column;
        text-align: center;
    }
    .urgent-call div:first-child { width: 100%; }
    .urgent-call div:last-child img {
        width: 150px !important;
        height: 188px !important;
    }
}

/* ================================================
   ПРИНУДИТЕЛЬНОЕ ИСПРАВЛЕНИЕ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ================================================ */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #container {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .fixed_header {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .upper__header {
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
        box-sizing: border-box !important;
    }
    .upper__header > div {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .header_list {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }
    .header_list ul {
        flex-wrap: nowrap !important;
        padding-left: 0 !important;
    }
    .header__contacts {
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    .header__contacts .flex { flex-wrap: wrap !important; }
    .socials { flex-wrap: wrap !important; }
    .divider { display: none !important; }
    * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
}

/* ================================================
   ИСПРАВЛЕНИЕ ТОЛЬКО ОТСТУПОВ ПО БОКАМ (мобильные)
   ================================================ */
@media screen and (max-width: 768px) {
    body { margin: 0 !important; padding: 0 !important; }
    #container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .fixed_header {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .upper__header {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin: 0 !important;
    }
    .navi_cont {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .nav_mob_text {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .nav-phone { margin-left: auto !important; }
    .fxd_3 { font-weight: bold !important; }
    #gorizontnavi1 {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .fxd_menu ul {
        padding: 10px !important;
        margin: 0 !important;
    }
    .contentall {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* ================================================
   ИСПРАВЛЕНИЕ ДЛЯ МОДАЛЬНОГО ОКНА НА МОБИЛЬНЫХ
   ================================================ */
@media screen and (max-width: 768px) {
    .popup_window {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 400px !important;
        margin: 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        z-index: 100000 !important;
    }
    .popup_bg {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0,0,0,0.7) !important;
        z-index: 99999 !important;
    }
    .popup_window__content { width: 100% !important; }
    .popup_window__input {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 10px !important;
    }
    .btn_submit_form { width: 100% !important; }
}
@media screen and (max-width: 480px) {
    .popup_window { width: 95% !important; padding: 15px !important; }
}

/* ================================================
   ИСПРАВЛЕНИЕ ДЛЯ ТАБЛИЦ (показываем все строки)
   ================================================ */
#ourtable2 tbody tr {
    display: table-row !important;
    visibility: visible !important;
}
#ourtable2 td {
    display: table-cell !important;
    visibility: visible !important;
}
#ourtable2,
#ourtable2 tbody,
.demotable {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}
#ourtable2 tr:nth-child(7),
#ourtable2 tr:nth-child(8) {
    display: table-row !important;
}

/* ================================================
   ИСПРАВЛЕНИЕ ДЛЯ БЛОКА "ШАГИ ЗАКАЗА" (мобильные)
   ================================================ */
@media screen and (max-width: 768px) {
    .order-steps {
        overflow-x: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .order-steps > div {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .order-steps > div > div {
        min-width: 160px !important;
        max-width: 180px !important;
        margin-bottom: 10px !important;
    }
    .order-steps p { font-size: 0.7em !important; }
    .order-steps h4 { font-size: 0.85em !important; }
}
@media screen and (max-width: 480px) {
    .order-steps > div > div {
        min-width: 140px !important;
        max-width: 160px !important;
    }
}

/* ================================================
   ДЛЯ видео
   ================================================ */
  .video-wrapper {
    width: 150px;
    height: 180px;
    flex: 0 0 auto;
}

