/* ==========================================
   УЛУЧШЕНИЯ UX/UI - ЭТАП 1-5
   ========================================== */

/* ==========================================
   1.1 ПЛАВАЮЩАЯ КНОПКА "ЗАКАЗАТЬ"
   ========================================== */

.floating-cta {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
}

.floating-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35, #E85A24);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.floating-cta__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6);
}

.floating-cta__btn svg {
    width: 24px;
    height: 24px;
}

.floating-cta__btn--phone {
    background: linear-gradient(135deg, #22C55E, #16A34A);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.floating-cta__btn--phone:hover {
    box-shadow: 0 6px 30px rgba(34, 197, 94, 0.6);
}

.floating-cta__btn--chat {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.floating-cta__btn--chat:hover {
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.6);
}

.floating-cta__tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 17, 23, 0.95);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.floating-cta__btn:hover + .floating-cta__tooltip,
.floating-cta__btn:hover .floating-cta__tooltip {
    opacity: 1;
    visibility: visible;
}

/* Мобильная версия - прилипает к низу */
@media (max-width: 768px) {
    .floating-cta {
        right: 0;
        left: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 0;
        padding: 12px 16px;
        background: rgba(13, 17, 23, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }
    
    .floating-cta__btn {
        flex: 1;
        width: auto;
        height: 48px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
    }
    
    .floating-cta__btn:first-child {
        border-radius: 8px 0 0 8px;
    }
    
    .floating-cta__btn:last-child {
        border-radius: 0 8px 8px 0;
    }
    
    .floating-cta__btn span {
        display: inline;
        margin-left: 8px;
    }
    
    .floating-cta__tooltip {
        display: none;
    }
    
    /* Добавляем отступ для контента */
    body.has-floating-cta {
        padding-bottom: 80px;
    }
}

/* ==========================================
   1.2 ИНФОРМАЦИОННАЯ КАРТОЧКА (Quick Info)
   ========================================== */

.quick-info {
    background: linear-gradient(135deg, #1a1f2e, #0d1117);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.quick-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.quick-info__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.quick-info__item:hover {
    background: rgba(255, 107, 53, 0.15);
}

.quick-info__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B35, #FF8F5C);
    border-radius: 10px;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.quick-info__content {
    flex: 1;
}

.quick-info__label {
    font-size: 11px;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.quick-info__value {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

/* ==========================================
   1.3 СРАВНИТЕЛЬНАЯ ТАБЛИЦА
   ========================================== */

.comparison-section {
    padding: 60px 0;
    background: #0D1117;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
}

.comparison-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table td {
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 15px;
}

.comparison-table tbody tr {
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table__price {
    font-weight: 700;
    color: var(--accent, #FF6B35);
}

.comparison-table__btn {
    padding: 8px 16px;
    background: var(--accent, #FF6B35);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comparison-table__btn:hover {
    background: #E85A24;
    transform: translateY(-1px);
}

/* Мобильная адаптация таблицы */
@media (max-width: 768px) {
    .comparison-table {
        display: block;
    }
    
    .comparison-table thead {
        display: none;
    }
    
    .comparison-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .comparison-table tr {
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .comparison-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .comparison-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: rgba(255, 255, 255, 0.6);
        font-size: 12px;
        text-transform: uppercase;
    }
    
    .comparison-table td:last-child {
        border-bottom: none;
        justify-content: center;
        padding-top: 16px;
    }
}

/* ==========================================
   2.1 FAQ АККОРДИОН
   ========================================== */

.faq-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #161B22 0%, #0D1117 100%);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 107, 53, 0.3);
}

.faq-item.active {
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 107, 53, 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.faq-question__text {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    flex: 1;
    padding-right: 16px;
}

.faq-question__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 50%;
    color: var(--accent, #FF6B35);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question__icon {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer__content {
    padding: 0 24px 24px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

/* ==========================================
   3.4 КАЛЬКУЛЯТОР СТОИМОСТИ
   ========================================== */

.calculator-section {
    padding: 60px 0;
    background: #0D1117;
}

.calculator {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
}

.calculator__group {
    margin-bottom: 24px;
}

.calculator__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculator__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.calculator__option {
    flex: 1;
    min-width: 100px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.calculator__option:hover {
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 107, 53, 0.1);
}

.calculator__option.active {
    border-color: var(--accent, #FF6B35);
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent, #FF6B35);
}

.calculator__result {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}

.calculator__result-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.calculator__result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent, #FF6B35);
}

.calculator__result-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

.calculator__cta {
    margin-top: 24px;
    text-align: center;
}

.calculator__cta .btn {
    width: 100%;
    padding: 16px;
}

/* ==========================================
   3.3 ПОРТФОЛИО ПРОЕКТОВ
   ========================================== */

.portfolio-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #0D1117 0%, #161B22 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.portfolio-card__content {
    padding: 20px;
}

.portfolio-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
}

.portfolio-card__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.portfolio-card__tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.portfolio-card__tag {
    padding: 4px 10px;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent, #FF6B35);
}

/* ==========================================
   5.1 ОТЗЫВЫ КЛИЕНТОВ
   ========================================== */

.reviews-section {
    padding: 60px 0;
    background: #161B22;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
}

.review-card__stars {
    color: #FFD166;
    font-size: 18px;
    margin-bottom: 12px;
}

.review-card__text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6B35, #E85A24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.review-card__name {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.review-card__date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   5.3 TRUST BADGES
   ========================================== */

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 24px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
}

.trust-badge__icon {
    width: 24px;
    height: 24px;
    color: #22C55E;
}

.trust-badge__text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   5.2 БЛОК "О КОМПАНИИ" (Краткий)
   ========================================== */

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.company-stat {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.company-stat__icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.company-stat__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent, #FF6B35);
    line-height: 1;
}

.company-stat__label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* ==========================================
   АНИМАЦИИ
   ========================================== */

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

.floating-cta__btn--order {
    animation: pulse 2s infinite;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-cta.visible .floating-cta__btn {
    animation: slideInRight 0.5s ease forwards;
}

.floating-cta.visible .floating-cta__btn:nth-child(2) {
    animation-delay: 0.1s;
}

.floating-cta.visible .floating-cta__btn:nth-child(3) {
    animation-delay: 0.2s;
}
