/* ========================================
   STYLES-CONTENT.CSS
   Services, Testimonials, Consumer Rights, Statistics, Process
   + ДОБАВЛЕНЫ СТИЛИ ДЛЯ СТРАХОВОГО ПОЛИСА
   ======================================== */

/* ========================================
   SECTION HEADERS (общие для всех секций)
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 400;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: var(--pearl-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.portfolio-card {
    background: white;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-badge.defect {
    background: #f44336;
}

.portfolio-badge.antique {
    background: #8b4513;
}

.portfolio-badge.synthetic {
    background: #9c27b0;
}

.portfolio-badge.court {
    background: #2196f3;
}

.portfolio-badge.insurance {
    background: #4caf50;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.portfolio-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.portfolio-category {
    color: var(--gold);
    font-weight: 500;
}

.portfolio-content p {
    line-height: 1.8;
    color: var(--soft-black);
    margin-bottom: 1.5rem;
}

.portfolio-result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4caf50;
}

.portfolio-result svg {
    color: #4caf50;
    flex-shrink: 0;
}

.portfolio-result span {
    font-weight: 500;
    color: var(--primary-black);
}

/* Статистика успеха */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--primary-black);
    color: var(--pearl-white);
}

.portfolio-stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* CTA */
.portfolio-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid var(--gold);
}

.portfolio-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.portfolio-cta p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-stats {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}


/* ========================================
   SERVICES SECTION
   ======================================== */

.services {
    padding: 100px 0;
    background: var(--pearl-white);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--pearl-white);
    border: 1px solid var(--border-light);
    padding: 3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--rose-gold));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--gold);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card.featured {
    border-color: var(--gold);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.service-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.service-price {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--platinum), var(--pearl-white));
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.testimonial-card {
    background: var(--pearl-white);
    padding: 2rem;
    border-radius: 0;
    box-shadow: var(--shadow-subtle);
    position: relative;
    transition: var(--transition);
    max-width: 100%;
    word-wrap: break-word;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--gold);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevated);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--soft-black);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pearl-white);
    font-weight: 600;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rating {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* ========================================
   CONSUMER RIGHTS SECTION
   ======================================== */

.consumer-rights {
    padding: 80px 0;
    background: var(--pearl-white);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.consumer-rights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-title {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.2rem;
    color: var(--gold);
    font-style: italic;
}

.article-preview {
    background: white;
    padding: 3rem;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 2rem;
    border-left: 4px solid var(--gold);
}

.article-preview h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
    font-family: 'Playfair Display', serif;
}

.key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.key-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.key-point-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.key-point-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.key-point-text p {
    color: var(--text-muted);
    line-height: 1.6;
}

.article-full {
    display: none;
    background: white;
    padding: 3rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-subtle);
    line-height: 1.8;
    color: var(--soft-black);
}

.article-full.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.article-full h4 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: var(--primary-black);
    font-family: 'Playfair Display', serif;
}

.article-full p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-full ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-full li {
    margin-bottom: 0.8rem;
    list-style-type: none;
    position: relative;
}

.article-full li::before {
    content: '✓';
    position: absolute;
    left: -1.5rem;
    color: var(--gold);
    font-weight: bold;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.1));
    border-left: 3px solid var(--gold);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.read-more-btn {
    background: var(--gold);
    color: var(--primary-black);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    margin: 2rem auto;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    background: var(--primary-black);
    color: var(--pearl-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.read-more-btn.active {
    background: var(--primary-black);
    color: var(--pearl-white);
}

/* ========================================
   🆕 GUARANTEE BANNER WITH INSURANCE
   ГИБРИД ВАРИАНТ 3 - Гарантийный баннер с полисом
   ======================================== */

.guarantee-banner-with-insurance {
    background: var(--primary-black);
    color: var(--pearl-white);
    padding: 3rem 2rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.guarantee-banner-with-insurance::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.guarantee-content-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.guarantee-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    position: relative;
}

.guarantee-main-text {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.guarantee-insurance-details {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.insurance-amount {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700;
}

.view-insurance-btn {
    margin-top: 1.5rem;
    background: var(--gold);
    color: var(--primary-black);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-insurance-btn:hover {
    background: var(--pearl-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.insurance-preview {
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.insurance-preview:hover {
    transform: scale(1.05);
}

.insurance-document-img {
    width: 300px;
    height: auto;
    border: 3px solid var(--gold);
    display: block;
}

.insurance-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: var(--primary-black);
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ========================================
   🆕 DOCUMENT ITEM FEATURED
   ВАРИАНТ 1 - Выделение страхового полиса в галерее
   ======================================== */

.document-item-featured {
    position: relative;
    animation: pulse-gold 3s ease-in-out infinite;
}

.document-item-featured::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--gold), var(--rose-gold), var(--gold));
    border-radius: 4px;
    z-index: -1;
    opacity: 0.5;
}

.document-item-featured:hover::before {
    opacity: 0.8;
}

.document-item-featured img {
    border: 2px solid var(--gold);
}

.document-item-featured .document-caption {
    background: linear-gradient(135deg, var(--primary-black), var(--charcoal));
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    transform: translateY(0);
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

/* ========================================
   STATISTICS SECTION
   ======================================== */

.statistics {
    background: var(--primary-black);
    padding: 80px 0;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    width: 100%;
}

.stat-block {
    text-align: center;
    color: var(--pearl-white);
}

.stat-value {
    font-size: 4rem;
    font-weight: 300;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* ========================================
   PROCESS TIMELINE
   ======================================== */

.process {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--platinum), var(--pearl-white));
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
    width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: var(--border-light);
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item.visible {
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--pearl-white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    z-index: 1;
}

.timeline-content {
    width: calc(50% - 50px);
    padding: 2rem;
    background: var(--pearl-white);
    box-shadow: var(--shadow-subtle);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ========================================
   🆕 RESPONSIVE FOR INSURANCE ELEMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Гарантийный баннер с полисом */
    .guarantee-content-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .insurance-preview {
        margin: 2rem auto 0;
    }
    
    .insurance-document-img {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .guarantee-text h3 {
        font-size: 1.5rem !important;
    }
    
    .view-insurance-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Документы в галерее */
    .document-item-featured .document-caption {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .guarantee-banner-with-insurance {
        padding: 2rem 1rem !important;
    }
    
    .guarantee-text h3 {
        font-size: 1.3rem !important;
    }
    
    .guarantee-main-text {
        font-size: 0.95rem !important;
    }
    
    .guarantee-insurance-details {
        font-size: 0.9rem !important;
    }
}

/* Стили для Telegram в футере */
.footer-telegram {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
}

.telegram-link:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* Адаптивность для футера */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-telegram {
        margin-top: 1rem;
    }
    
    .footer-legal div {
        max-width: 120px;
        margin: 1rem auto 0;
    }
}