/* ========================================================
   VIP-СТИЛИ РАЗДЕЛА FAQ / БАЗА ЗНАНИЙ SHARFF.RU
   ======================================================== */
.faq-page-wrapper {
    max-width: 1440px;
    margin: 40px auto 100px auto;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #222222;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.faq-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    color: #4a3c5a;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.faq-header p {
    font-size: 18px;
    color: #555555;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.6;
}

/* НАВИГАЦИОННЫЕ VIP-ТАБЫ (СТРОГО В ОДИН РЯД, РЕЗИНОВЫЕ) */
.faq-nav-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 0 auto 55px auto;
    max-width: 1200px;
    width: 100%;
    flex-wrap: nowrap;
}

.faq-tab-btn {
    appearance: none;
    border: 2px solid rgba(147, 96, 152, 0.28);
    background: #ffffff;
    color: #4a3c5a;
    padding: 16px 14px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    box-sizing: border-box;
}

.faq-tab-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.faq-tab-btn svg {
    color: #df1b53;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-tab-btn:hover {
    border-color: #df1b53;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(223, 27, 83, 0.18);
}

.faq-tab-btn.active {
    background: linear-gradient(135deg, #df1b53 0%, #936098 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(223, 27, 83, 0.35);
}

.faq-tab-btn.active svg {
    color: #ffffff;
    transform: scale(1.15);
}

/* ========================================================
   ДВУХКОЛОНОЧНЫЙ МАКЕТ СТРАНИЦЫ (КОНТЕНТ + БОКОВАЯ КОЛОНКА)
   ======================================================== */
.faq-layout-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 35px;
    align-items: start;
    width: 100%;
}

.faq-main-content {
    min-width: 0;
    width: 100%;
}

/* БОКОВОЙ БЛОК ПОРТФОЛИО: КАРТОЧКИ ДРУГ ПОД ДРУГОМ */
.faq-sidebar-portfolio {
    width: 100%;
    min-width: 0;
}

.faq-sidebar-sticky {
    position: sticky;
    top: 25px;
}

.faq-sidebar-portfolio .pf-showcase-section {
    padding: 0;
}

.faq-sidebar-portfolio .pf-showcase-container {
    padding: 0;
    max-width: 100%;
}

.faq-sidebar-portfolio .pf-showcase-header {
    margin-bottom: 20px;
    text-align: left;
}

.faq-sidebar-portfolio .pf-showcase-title {
    font-size: 24px;
    line-height: 1.2;
}

.faq-sidebar-portfolio .pf-showcase-subtitle {
    font-size: 13.5px;
    margin: 0;
}

/* ПРИНУДИТЕЛЬНО 1 КОЛОНКА ДЛЯ КАРТОЧЕК ДРУГ ПОД ДРУГОМ */
.faq-sidebar-portfolio .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 25px;
}

/* СЕКЦИИ КОНТЕНТА */
.faq-tab-content {
    display: none;
    animation: faqFadeIn 0.4s ease forwards;
}

.faq-tab-content.active {
    display: block;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ТАБ: АККОРДЕОНЫ ЧАСТЫХ ВОПРОСОВ */
.faq-accordion-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.faq-accordion-group {
    background: #fdfafb;
    border: 1px solid #ebdbe9;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(147, 96, 152, 0.04);
}

.faq-group-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #4a3c5a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #936098;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-group-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 24px;
    background: #df1b53;
    border-radius: 4px;
}

.faq-qa-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-qa-item {
    background: #ffffff;
    border: 1px solid #e0e4e8;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-qa-item:hover {
    border-color: #df1b53;
    box-shadow: 0 4px 12px rgba(223, 27, 83, 0.08);
}

.faq-qa-item.active {
    border-color: #936098;
    box-shadow: 0 6px 18px rgba(147, 96, 152, 0.12);
}

.faq-qa-question {
    width: 100%;
    padding: 18px 24px;
    background: #ffffff;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #4a3c5a;
    transition: color 0.2s, background-color 0.2s;
}

.faq-qa-question:hover {
    color: #df1b53;
    background-color: #fffbfe;
}

.faq-qa-item.active .faq-qa-question {
    color: #df1b53;
    background-color: #fffbfe;
    border-bottom: 1px dashed #ebdbe9;
}

.faq-qa-chevron {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f4ebf6;
    color: #5A2A75;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.2s, color 0.2s;
}

.faq-qa-item.active .faq-qa-chevron {
    transform: rotate(180deg);
    background: #df1b53;
    color: #ffffff;
}

.faq-qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.65;
    color: #444444;
}

.faq-qa-item.active .faq-qa-answer {
    max-height: 1000px;
    padding: 18px 24px 22px 24px;
}

.faq-qa-answer strong {
    color: #111111;
    font-weight: 700;
}

/* КАРТОЧКИ ТРЕБОВАНИЙ К МАКЕТАМ */
.faq-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.faq-card {
    background: #ffffff;
    border: 1px solid #ebdbe9;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(147, 96, 152, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(147, 96, 152, 0.16);
    border-color: #df1b53;
}

.faq-card-icon-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f4eaf3;
}

.faq-card-title-wrap {
    text-align: center;
    margin-bottom: 18px;
}

.faq-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.badge-purple { background: #f4ebf6; color: #5A2A75; border: 1px solid #d1c7d6; }
.badge-red { background: #fff2f4; color: #df1b53; border: 1px solid #fed7df; }
.badge-blue { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-green { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.faq-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #4a3c5a;
    margin: 0;
    line-height: 1.25;
}

.faq-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-specs-list li {
    font-size: 14px;
    line-height: 1.5;
    color: #444444;
    padding-left: 18px;
    position: relative;
}

.faq-specs-list li::before {
    content: "•";
    color: #df1b53;
    font-weight: 900;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: -2px;
}

.faq-specs-list strong {
    color: #111111;
    font-weight: 700;
}

.faq-sub-sizes {
    margin-top: 15px;
    margin-bottom: 0;
}

.faq-sub-sizes-title {
    font-size: 14px;
    font-weight: 800;
    color: #4a3c5a;
    display: block;
    margin-bottom: 6px;
}

.faq-tz-box-animated {
    position: relative;
    margin-top: 18px;
    border-radius: 12px;
    padding: 2px;
    background: #fdfafb;
    overflow: hidden;
}

.faq-tz-inner {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    z-index: 2;
}

.faq-tz-inner h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: #4a3c5a;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-tz-inner h4::before {
    content: "📋";
    font-size: 15px;
}

.faq-tz-inner ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13.5px;
    color: #444444;
    line-height: 1.55;
}

.faq-tz-border-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.faq-tz-border-rect {
    fill: none;
    stroke: #df1b53;
    stroke-width: 2.5;
    stroke-dasharray: 12, 8;
    animation: dashLoop 16s linear infinite;
}

@keyframes dashLoop {
    to {
        stroke-dashoffset: -400;
    }
}

.faq-notes-numbered {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e2dae6;
}

.faq-notes-numbered h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: #4a3c5a;
    margin: 0 0 8px 0;
}

.faq-notes-numbered ol {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #555555;
    line-height: 1.6;
}

/* СЕКЦИЯ ПРАВИЛ УХОДА */
.faq-care-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.faq-care-card {
    background: #ffffff;
    border: 1px solid #ebdbe9;
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 8px 25px rgba(147, 96, 152, 0.06);
    display: flex;
    flex-direction: column;
    border-top: 5px solid #df1b53;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-care-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(147, 96, 152, 0.14);
}

.faq-care-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f4eaf3;
}

.faq-care-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #4a3c5a;
    margin: 10px 0 5px 0;
    line-height: 1.3;
}

.faq-care-subtitle {
    font-size: 12px;
    font-weight: 800;
    color: #936098;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-care-intro {
    font-size: 14px;
    color: #555555;
    line-height: 1.55;
    margin-bottom: 18px;
}

.faq-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-step-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq-step-label {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #df1b53;
    letter-spacing: 0.5px;
}

.faq-step-desc {
    font-size: 13.5px;
    color: #333333;
    line-height: 1.5;
}

.faq-pledy-section {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #f0eaf2;
}

.faq-pledy-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-pledy-section h4 {
    font-size: 14px;
    font-weight: 800;
    color: #4a3c5a;
    margin: 0 0 10px 0;
}

/* СЕКЦИЯ СЕРТИФИКАЦИИ И ДЕКЛАРАЦИИ ЕАС */
.faq-cert-box {
    background: #fdfafb;
    border: 1px solid #ebdbe9;
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 8px 30px rgba(147, 96, 152, 0.05);
}

.faq-cert-header {
    text-align: center;
    margin-bottom: 30px;
}

.faq-cert-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #4a3c5a;
    margin: 0 0 10px 0;
}

.faq-cert-header p {
    font-size: 15px;
    color: #555555;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.faq-cert-page-card {
    background: #ffffff;
    border: 2px solid #ebdbe9;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.faq-cert-page-card:hover {
    transform: translateY(-5px);
    border-color: #df1b53;
    box-shadow: 0 12px 28px rgba(223, 27, 83, 0.18);
}

.faq-cert-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1.41;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
}

.faq-cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.faq-cert-page-card:hover .faq-cert-img-wrapper img {
    transform: scale(1.04);
}

.faq-cert-page-card span {
    font-size: 13px;
    font-weight: 800;
    color: #4a3c5a;
    display: block;
    line-height: 1.35;
}

.faq-cert-signer {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px dashed #d1c7d6;
    text-align: center;
    font-size: 14px;
    color: #444444;
}

/* МОДАЛЬНОЕ ОКНО ПРОСМОТРА СЕРТИФИКАТА */
.faq-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.faq-modal-box {
    background: #ffffff;
    border-radius: 18px;
    max-width: 850px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    overflow: hidden;
}

.faq-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.faq-modal-close:hover {
    background: #df1b53;
    color: #ffffff;
    transform: rotate(90deg);
}

.faq-modal-img {
    width: 100%;
    max-height: calc(92vh - 80px);
    object-fit: contain;
    padding: 25px;
    box-sizing: border-box;
}

/* СТИЛИ ДЛЯ КРУПНЫХ АНИМИРОВАННЫХ ВЕКТОРНЫХ ИКОНОК */
.icon-svg-wrapper {
    width: 110px;
    height: 110px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-svg-wrapper svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.thread-path {
    stroke: #955A94;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawThreadContinuous 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: filter 0.3s ease;
}

.screen-thread-path {
    stroke: #955A94;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawThreadContinuousScreen 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: filter 0.3s ease;
}

.accent-sparkle {
    fill: #bca0ba;
    animation: floatSparkle 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.sparkle-top-right { transform-origin: 95px 25px; }
.sparkle-middle-left { transform-origin: 20px 45px; animation-delay: 1.5s; }
.sparkle-top-left { transform-origin: 15px 25px; }
.sparkle-bottom-right { transform-origin: 90px 85px; animation-delay: 1.5s; }
.sparkle-bottom-left { transform-origin: 20px 85px; animation-delay: 1.5s; }

.icon-svg-wrapper:hover {
    transform: scale(1.1) translateY(-4px);
}

.icon-svg-wrapper:hover .thread-path,
.icon-svg-wrapper:hover .screen-thread-path {
    stroke: #df1b53;
    filter: drop-shadow(0 0 8px rgba(223, 27, 83, 0.6));
}

.icon-svg-wrapper:hover .accent-sparkle {
    fill: #df1b53;
    animation: spinSparkle 1s linear infinite;
}

@keyframes drawThreadContinuous {
    0% { stroke-dashoffset: 800; opacity: 0; }
    5% { opacity: 1; }
    40% { stroke-dashoffset: 0; opacity: 1; }
    60% { stroke-dashoffset: 0; opacity: 1; }
    95% { opacity: 1; }
    100% { stroke-dashoffset: -800; opacity: 0; }
}

@keyframes drawThreadContinuousScreen {
    0% { stroke-dashoffset: 600; opacity: 0; }
    5% { opacity: 1; }
    40% { stroke-dashoffset: 0; opacity: 1; }
    60% { stroke-dashoffset: 0; opacity: 1; }
    95% { opacity: 1; }
    100% { stroke-dashoffset: -600; opacity: 0; }
}

@keyframes floatSparkle {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1.15); }
}

@keyframes spinSparkle {
    0% { transform: rotate(0deg) scale(1.25); }
    100% { transform: rotate(180deg) scale(1.25); }
}

/* ========================================================
   АДАПТИВНОСТЬ
   ======================================================== */
@media (max-width: 1150px) {
    .faq-layout-columns {
        grid-template-columns: 1fr;
    }
    .faq-sidebar-sticky {
        position: static;
    }
    .faq-sidebar-portfolio .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .faq-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-care-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
    .faq-nav-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    .faq-tab-btn {
        flex: 1 1 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    .faq-cards-grid { grid-template-columns: 1fr; }
    .faq-care-grid { grid-template-columns: 1fr; }
    .faq-cert-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 550px) {
    .faq-sidebar-portfolio .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
    .faq-tab-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }
}