/* ========== СТРАНИЦА "СТУДЕНТАМ" ========== */

/* ----- ОСНОВНЫЕ СТИЛИ СТРАНИЦЫ ----- */
.students-page__container {
    max-width: 1200px;
    margin: 0 auto;
}

.students-page__title {
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.students-page__divider {
    width: 80px;
    height: 4px;
    margin: 0 auto 60px;
    border-radius: 2px;
}

.students-page__back-wrapper {
    text-align: center;
}

.students-page__back-button {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.students-page__back-button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ----- БЛОК: ВНЕШНИЕ СЕРВИСЫ (external-services) ----- */
.external-services__title {
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
    padding-left: 20px;
}

.external-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.external-services__card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.external-services__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.external-services__card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.external-services__card-icon img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.external-services__card-title {
    margin-bottom: 10px;
    font-weight: 600;
}

.external-services__card-text {
    opacity: 0.9;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 15px;
}

.external-services__card-link-wrapper {
    margin-top: auto;
}

.external-services__card-link {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.external-services__card-link:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

/* ----- БЛОК: ИНФОРМАЦИОННЫЕ РАЗДЕЛЫ (info-students) ----- */
.info-students__title {
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
    padding-left: 20px;
}

.info-students__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-students__card {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.info-students__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.info-students__card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.info-students__card-icon img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.info-students__card-title {
    margin-bottom: 10px;
    font-weight: 600;
}

.info-students__card-text {
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 15px;
}

.info-students__card-link-wrapper {
    margin-top: auto;
}

.info-students__card-link {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.info-students__card-link:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

/* ========== БЛОК: ПОЛЕЗНЫЕ ДОКУМЕНТЫ (useful-docs) ========== */

.useful-docs {
    --docs-margin-bottom: 80px;
    --docs-margin-bottom-mobile: 50px;
    --docs-title-size: 3rem;
    --docs-title-size-mobile: 2.2rem;
    --docs-card-title-size: 2.3rem;
    --docs-card-text-size: 1.5rem;
    --docs-card-text-size-mobile: 1.3rem;
    --docs-button-size: 1.4rem;
    --docs-button-size-mobile: 1.2rem;
    margin-bottom: var(--docs-margin-bottom);
}

.useful-docs__title {
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
    padding-left: 20px;
    font-size: var(--docs-title-size);
}

.useful-docs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.useful-docs__card {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.useful-docs__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.useful-docs__card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.useful-docs__card-icon img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.useful-docs__card-title {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: var(--docs-card-title-size);
}

.useful-docs__card-text {
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
    font-size: var(--docs-card-text-size);
}

.useful-docs__card-button-wrapper {
    margin-top: auto;
}

.useful-docs__card-button {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    word-break: break-all;
    font-size: var(--docs-button-size);
}

.useful-docs__card-button:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    .external-services__grid,
    .info-students__grid,
    .useful-docs__grid {
        gap: 25px;
    }
    
    .external-services__card,
    .info-students__card,
    .useful-docs__card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .students-page__divider {
        margin-bottom: 40px;
    }
    
    .students-page__back-button {
        padding: 12px 30px;
    }
    
    .external-services__grid,
    .info-students__grid,
    .useful-docs__grid {
        gap: 20px;
    }
    
    .external-services__card,
    .info-students__card,
    .useful-docs__card {
        padding: 25px 20px;
    }
    
    .external-services__card-icon,
    .info-students__card-icon,
    .useful-docs__card-icon {
        font-size: 2.5rem;
    }
    
    .external-services__card-icon img,
    .info-students__card-icon img,
    .useful-docs__card-icon img {
        max-width: 50px;
        max-height: 50px;
    }
    
    .external-services__card-link,
    .info-students__card-link,
    .useful-docs__card-button {
        padding: 4px 10px;
    }
}