/* ===================================
   Technologies Pages
   =================================== */

.tech-hero {
    min-height: 60vh;
    padding: 140px 0 60px;
    position: relative;
}

.tech-hero .hero-content {
    max-width: 900px;
}

.tech-hero .hero-badge {
    margin-bottom: 20px;
    opacity: 1;
    animation: none;
    position: static;
    transform: none;
    display: inline-flex;
}

.tech-hero h1 {
    opacity: 1;
    animation: none;
    font-size: clamp(42px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.tech-hero h1 .gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-hero p {
    opacity: 1;
    animation: none;
    font-size: 18px;
    line-height: 1.7;
    max-width: 650px;
    color: var(--text-secondary);
}

.tech-hero .breadcrumb {
    margin-bottom: 32px;
    opacity: 1;
    animation: none;
    transform: none;
}

/* Technologies Section */
.tech-section {
    padding: 80px 0 180px;
    position: relative;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

/* Tech Card */
.tech-card {
    display: block;
    padding: 40px 32px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 61, 61, 0.08);
    border-radius: 20px;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 61, 61, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card:hover {
    border-color: rgba(255, 61, 61, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 61, 61, 0.1);
}

.tech-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(180deg, rgba(60, 60, 70, 0.6) 0%, rgba(40, 40, 50, 0.7) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.25),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.tech-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Увеличиваем яркость и контраст для тёмных лого + тень для светлых */
    filter: brightness(1.2) contrast(1.2) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
    transition: filter 0.3s, transform 0.3s;
}

.tech-card:hover .tech-logo {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 0 0 1px rgba(255, 61, 61, 0.4);
    border-color: rgba(255, 61, 61, 0.5);
}

.tech-card:hover .tech-logo img {
    filter: brightness(1.25) contrast(1.25) drop-shadow(0 4px 12px rgba(0, 0, 0, 1))
            drop-shadow(0 0 24px rgba(255, 61, 61, 0.35));
    transform: scale(1.03);
}

.tech-category {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255, 61, 61, 0.12), rgba(255, 61, 61, 0.08));
    border: 1px solid rgba(255, 61, 61, 0.2);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
    transition: all 0.3s;
}

.tech-card:hover .tech-category {
    background: linear-gradient(135deg, rgba(255, 61, 61, 0.2), rgba(255, 61, 61, 0.15));
    border-color: rgba(255, 61, 61, 0.3);
}

.tech-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.tech-card:hover h3 {
    color: var(--accent);
}

.tech-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.tech-card:hover p {
    color: var(--text-tertiary);
}

/* Animations */
@keyframes techCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-card {
    animation: techCardFadeIn 0.4s ease-out forwards;
}

.tech-card:nth-child(1) { animation-delay: 0.05s; }
.tech-card:nth-child(2) { animation-delay: 0.1s; }
.tech-card:nth-child(3) { animation-delay: 0.15s; }
.tech-card:nth-child(4) { animation-delay: 0.2s; }
.tech-card:nth-child(5) { animation-delay: 0.25s; }
.tech-card:nth-child(6) { animation-delay: 0.3s; }
.tech-card:nth-child(7) { animation-delay: 0.35s; }
.tech-card:nth-child(8) { animation-delay: 0.4s; }
.tech-card:nth-child(9) { animation-delay: 0.45s; }
.tech-card:nth-child(10) { animation-delay: 0.5s; }

/* Empty State */
.tech-empty {
    text-align: center;
    padding: 100px 0;
}

.tech-empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 61, 61, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.tech-empty-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.tech-empty h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.tech-empty p {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .tech-card {
        padding: 32px 24px;
    }
    
    .tech-logo {
        width: 64px;
        height: 64px;
    }
}
    
@media (max-width: 768px) {
    .tech-hero {
        padding: 120px 0 60px;
    }
    
    .tech-hero h1 {
        font-size: 36px;
    }
    
    .tech-hero p {
        font-size: 16px;
    }
    
    .tech-section {
        padding: 60px 0 120px;
    }
    
    .tech-card {
        padding: 28px 24px;
    }
    
    .tech-logo {
        width: 56px;
        height: 56px;
    }
    
    .tech-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .tech-hero {
        padding: 80px 0 50px;
    }
    
    .tech-hero h1 {
        font-size: 28px;
    }
    
    .tech-hero p {
        font-size: 14px;
    }
    
    .tech-section {
        padding: 60px 0 100px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tech-card {
        padding: 24px 20px;
    }
    
    .tech-logo {
        width: 48px;
        height: 48px;
    }
    
    .tech-card h3 {
        font-size: 18px;
    }
    
    .tech-card p {
        font-size: 13px;
    }
}

/* Technology Detail */
.tech-detail-hero {
    min-height: 50vh;
    padding: 140px 0 60px;
    position: relative;
}

.tech-detail-hero .hero-content {
    max-width: 900px;
}

.tech-detail-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(180deg, rgba(60, 60, 70, 0.7) 0%, rgba(40, 40, 50, 0.8) 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tech-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.2) drop-shadow(0 4px 16px rgba(0, 0, 0, 1));
}

.tech-detail-category {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 61, 61, 0.1);
    border: 1px solid rgba(255, 61, 61, 0.2);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.tech-detail-hero h1 {
    opacity: 1;
    animation: none;
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 24px;
}

.tech-detail-hero p {
    opacity: 1;
    animation: none;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.tech-detail-content {
    padding: 80px 0 180px;
}

.tech-detail-description {
    max-width: 900px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.tech-detail-description h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 24px;
    color: var(--text);
}

.tech-detail-description h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--text);
}

.tech-detail-description p {
    margin-bottom: 20px;
}

.tech-detail-description ul,
.tech-detail-description ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.tech-detail-description li {
    margin-bottom: 12px;
}

.tech-detail-description img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

/* Tech Detail Responsive */
@media (max-width: 768px) {
    .tech-detail-hero {
        padding: 120px 0 60px;
    }
    
    .tech-detail-hero h1 {
        font-size: 32px;
    }
    
    .tech-detail-logo {
        width: 80px;
        height: 80px;
        padding: 16px;
    }
    
    .tech-detail-logo img {
        width: 100%;
        height: 100%;
    }
    
    .tech-detail-content {
        padding: 60px 0 120px;
    }
    
    .tech-detail-description {
        font-size: 15px;
    }
    
    .tech-detail-description h2 {
        font-size: 26px;
    }
    
    .tech-detail-description h3 {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .tech-detail-hero {
        padding: 90px 0 50px;
    }
    
    .tech-detail-hero h1 {
        font-size: 26px;
    }
    
    .tech-detail-logo {
        width: 64px;
        height: 64px;
        padding: 12px;
    }
    
    .tech-detail-description {
        font-size: 14px;
    }
    
    .tech-detail-description h2 {
        font-size: 22px;
    }
    
    .tech-detail-description h3 {
        font-size: 18px;
    }
}
