.contacts-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, rgba(11, 42, 58, 0.85) 0%, rgba(13, 61, 79, 0.85) 100%);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.contacts-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.contacts-hero-text {
    flex: 1;
}

.contacts-hero-text h1 {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.contacts-hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

.contacts-hero-icon {
    font-size: 80px;
    color: #00c8d2;
    opacity: 0.6;
}

.contacts-section {
    padding: 40px 0 60px;
    position: relative;
    z-index: 1;
}

.contacts-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: grid;
    grid-template-columns: 320px 1fr;
    border: 1px solid rgba(0, 200, 210, 0.12);
}

.contacts-card-left {
    background: linear-gradient(145deg, rgba(11, 42, 58, 0.9), rgba(13, 61, 79, 0.9));
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    border-right: 1px solid rgba(0, 200, 210, 0.08);
}

.teacher-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 200, 210, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #00c8d2;
    border: 3px solid rgba(0, 200, 210, 0.2);
    flex-shrink: 0;
    overflow: hidden;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.teacher-name h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.teacher-role {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.teacher-role i {
    margin-right: 6px;
    color: #00c8d2;
}

.contacts-card-right {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    transition: background 0.2s;
}

.contact-item:hover {
    background: rgba(0, 200, 210, 0.05);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 200, 210, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #00c8d2;
    flex-shrink: 0;
}

.contact-icon.max-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(62%) sepia(100%) saturate(400%) hue-rotate(150deg);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-value {
    font-size: 16px;
    color: #d4f0f5;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.contact-value:hover {
    color: #00c8d2;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link.vk {
    background: #4a76a8;
}

.social-link.tg {
    background: #0088cc;
}

.social-link.email {
    background: #ea4335;
}

.social-link.phone {
    background: #25d366;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 200, 210, 0.2);
}

.materials-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, rgba(11, 42, 58, 0.85) 0%, rgba(13, 61, 79, 0.85) 100%);
    border-bottom: 1px solid rgba(0, 200, 210, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.materials-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.materials-hero-text {
    flex: 1;
}

.materials-hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.materials-hero-text h1 span {
    color: #00c8d2;
}

.materials-hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
}

.materials-hero-icon {
    font-size: 80px;
    color: rgba(0, 200, 210, 0.2);
}

.materials-hero-icon i {
    color: #00c8d2;
    opacity: 0.3;
}

@media (max-width: 992px) {
    .contacts-card {
        grid-template-columns: 1fr;
    }

    .contacts-card-left {
        padding: 30px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 200, 210, 0.08);
    }

    .teacher-avatar {
        width: 100px;
        height: 100px;
        font-size: 44px;
    }

    .contacts-card-right {
        padding: 24px 20px;
    }
}

@media (max-width: 768px) {
    .contacts-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .contacts-hero-text h1 {
        font-size: 28px;
    }

    .contacts-hero-icon {
        font-size: 50px;
    }

    .materials-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .materials-hero-text h1 {
        font-size: 28px;
    }

    .materials-hero-icon {
        font-size: 50px;
    }
}

@media (max-width: 500px) {
    .contact-item {
        padding: 8px 12px;
        flex-wrap: wrap;
    }

    .contact-value {
        font-size: 14px;
    }

    .contact-social {
        justify-content: center;
    }

    .materials-hero-text h1 {
        font-size: 22px;
    }
}