/**
 * СТИЛИ СТРАНИЦ
 * Специфичные стили для компонентов и секций
 */

/* ========================================
   HERO СЕКЦИЯ С ФОНОВЫМ ИЗОБРАЖЕНИЕМ
======================================== */
.hero {
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background-image: url('https://sspark.genspark.ai/cfimages?u1=uJ5aUdKxjmPJkwjZHMUOAqFsGxYKuWgm7wcRYephH0Sa%2FIUfDEXmlkLiC424%2BFVs5dgqt3T7xuQ5JDshxi%2FgWabAM6pSlnSivgKy23WiOj616jta6b%2BJoB4YH8kwBIR%2B%2B5JGUyG1kMHsJmUOD7OWjBmsgsJyz5IEyw6YRRwosfNfw5o%2BPyRiD2t%2BWPPZc0Bde%2FNr1S5iUtMUBsK4E4DRbshOTx0E099nxTeZkM2kFhHTqIfM&u2=WMwmRGhAgKJD%2F%2BEq&width=2560');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Темный оверлей для читаемости текста */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.88) 0%, rgba(37, 99, 235, 0.85) 50%, rgba(59, 130, 246, 0.88) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   БЛОК ПРОЦЕССА (5 ШАГОВ)
======================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-blue);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.process-step h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.process-step p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   КАТАЛОГ ДИПЛОМОВ (ТАБЫ)
======================================== */
.catalog-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border-gray);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-blue);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
}

.tab-btn:hover {
    color: var(--primary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.diploma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    justify-items: center;
}

.diploma-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-gray);
}

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

.diploma-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-blue);
    border-bottom: 3px solid var(--primary-blue);
}

.diploma-content {
    padding: 1.75rem;
}

.diploma-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.diploma-years {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.diploma-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
}

.diploma-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-gray);
}

/* ========================================
   ИНФОГРАФИКА ЗАЩИТЫ
======================================== */
.security-visual {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    border: 2px dashed var(--primary-blue);
    position: relative;
}

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

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.security-item::before {
    content: '✓';
    width: 40px;
    height: 40px;
    background: var(--success-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.security-item span {
    font-weight: 600;
    color: var(--text-dark);
}

/* ========================================
   ТАБЛИЦА ЦЕН
======================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
}

.price-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.price-table th,
.price-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
}

.price-table th {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.price-table tr:nth-child(even) {
    background: var(--bg-light);
}

.price-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.price-table td:last-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
}

/* ========================================
   ГАРАНТИИ (КАРТОЧКИ С ИКОНКАМИ)
======================================== */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.guarantee-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.guarantee-card:hover {
    border-color: var(--success-green);
    transform: scale(1.03);
}

.guarantee-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--success-green), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

/* ========================================
   ОТЗЫВЫ
======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    border-left: 4px solid var(--accent-orange);
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.author-info strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-info small {
    color: var(--text-gray);
}

.testimonial-date {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ========================================
   FAQ (АККОРДЕОН)
======================================== */
.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-gray);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 2rem 1.5rem 2rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ========================================
   КАРТА И КОНТАКТЫ
======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray);
}

.contact-method:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-details a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* ========================================
   ФОРМА ЗАЯВКИ
======================================== */
.contact-form {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: white !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   СПЕЦИАЛЬНОСТИ (GRID ССЫЛОК)
======================================== */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.specialty-link {
    display: block;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary-blue);
}

.specialty-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   БЛОКИ УНИКАЛИЗАЦИИ
======================================== */
.uniqueness-block {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    border-left: 5px solid var(--accent-orange);
    box-shadow: var(--shadow-sm);
}

.uniqueness-block h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.uniqueness-block p {
    color: var(--text-dark);
    opacity: 0.8;
}

/* ========================================
   ИСТОРИИ (КЕЙСЫ)
======================================== */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    gap: 2.5rem;
    margin-top: 3rem;
}

.story-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--accent-orange);
    transition: transform 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   ПЛАВАЮЩАЯ КНОПКА CTA
======================================== */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-cta .btn {
    padding: 1.25rem 2rem;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   АДАПТИВНОСТЬ ДЛЯ СТРАНИЦ
======================================== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero {
        padding: 3rem 0;
    }

    .process-grid,
    .diploma-grid,
    .guarantee-grid,
    .testimonials-grid,
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .price-table {
        font-size: 0.85rem;
        min-width: 450px;
    }

    .price-table th,
    .price-table td {
        padding: 0.65rem 0.75rem;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
    }

    .floating-cta .btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .specialties-grid {
        grid-template-columns: 1fr;
    }
}

/* Дополнительная оптимизация для узких экранов */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero h1 {
        font-size: 1.65rem;
        line-height: 1.3;
    }
    
    .hero-lead {
        font-size: 0.95rem;
    }
    
    .process-grid,
    .diploma-grid,
    .guarantee-grid,
    .testimonials-grid,
    .stories-grid {
        gap: 1rem;
    }
    
    .process-step {
        padding: 1.75rem 1.25rem;
    }
    
    .diploma-card,
    .testimonial-card {
        margin: 0;
    }
    
    .price-table {
        font-size: 0.8rem;
        min-width: 400px;
    }
    
    .price-table th,
    .price-table td {
        padding: 0.5rem;
    }
}
