/* Основные переменные и настройки */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --white: #ffffff;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --text-color: #2c3e50;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.5;
    font-size: 16px;
    background-color: var(--white);
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

p {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 16px;
}

/* Утилиты */
.hidden {
    opacity: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 60px 0;
}

.section-bg {
    background-color: var(--light-bg);
}

/* Карточки */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
    border: none;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c0392b 100%);
    color: var(--white);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Хлебные крошки */
.breadcrumb {
    background: var(--white);
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.breadcrumb-item {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-item:not(:last-child)::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin: 0 10px;
    color: #6c757d;
    font-size: 12px;
}

.breadcrumb-item.active {
    color: var(--text-color);
}

/* Swiper стили */
.swiper {
    max-width: 1470px;
    width: 100%;
    padding-bottom: 40px;
}

.banner {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.swiper_banner {
    max-width: 1170px;
    position: relative;
    align-items: center;
    height: 605px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 150px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.banner_text {
    position: absolute;
    left: -15px;
    bottom: 45px;
    z-index: 2;
    height: 223px;
    width: 730px;
    background: rgba(44, 62, 80, 0.85);
    border-radius: var(--border-radius);
    position: relative;
    top: -317px;
    left: -31px;
    color: var(--white);
    font-size: 32px;
    backdrop-filter: blur(10px);
}

.banner_text>div {
    z-index: 3;
    width: 565px;
    height: 52px;
    background: var(--accent-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    position: relative;
    top: 39px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner_text>p {
    z-index: 4;
    margin-top: 35px;
    margin-left: 66px;
    position: relative;
    top: -39px;
    font-weight: 700;
    font-size: 32px;
    color: var(--white);
    font-family: 'Roboto', sans-serif;
}

.swiper-slide img {
    display: block;
    max-width: 100%;
    z-index: 1;
    object-fit: cover;
    height: 605px;
    width: 100%;
    border-radius: var(--border-radius);
}

#comp_img img {
    display: block;
    z-index: 1;
    object-fit: contain;
    height: 300px;
    width: 100%;
    border-radius: var(--border-radius);
}

.swiper-button-next,
.swiper-button-prev {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    height: 70px;
    width: 70px;
    z-index: 5;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

.swiper-button-next {
    right: 0px;
}

.swiper-button-prev {
    left: 0px;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    color: var(--white);
    font-size: 30px;
    font-weight: 700;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    opacity: 0.6;
    z-index: 1;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    opacity: 1;
    transform: scale(1.2);
}

/* Фото универа */
#uniPic {
    width: 100%;
    height: 605px;
    background: var(--light-bg);
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

#uniPicContent {
    width: 1170px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

#uniPicContent>img {
    z-index: 1;
    object-fit: cover;
    height: 605px;
    width: 100%;
}

#uniPicContent>div {
    z-index: 2;
    height: 223px;
    width: 730px;
    background: rgba(44, 62, 80, 0.85);
    border-radius: var(--border-radius);
    position: relative;
    top: -317px;
    left: -31px;
    color: var(--white);
    font-size: 32px;
    backdrop-filter: blur(10px);
}

#uniPicContent>div>div {
    z-index: 3;
    width: 565px;
    height: 52px;
    background: var(--accent-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    position: relative;
    top: 39px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#uniPicContent>div>p {
    z-index: 4;
    margin-left: 66px;
    position: relative;
    top: -39px;
    font-weight: 700;
    font-size: 32px;
    color: var(--white);
}

/* Про вуз */
#aboutUs {
    display: flex;
    justify-content: center;
    padding: 60px 0;
    background: var(--white);
}

#aboutUsContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

hr {
    margin: 20px 0;
    padding: 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
    width: 100px;
}

#aboutUsHeader {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 520px;
    margin-bottom: 30px;
}

#aboutUsHeader>p {
    margin: 0 20px;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

#aboutUsText {
    text-align: center;
    max-width: 800px;
    margin-bottom: 40px;
}

#aboutUsText p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
}

#join {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

#join:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

#join:active {
    transform: translateY(0);
}

#toNews {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

#toNews:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

#Main_parthner {
    text-align: center;
    margin: 60px 0 30px 0;
}

#Main_parthner p {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

#NewsHeader {
    text-align: center;
    margin: 60px 0 30px 0;
}

#NewsHeader p {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Ссылки */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Карусель новостей */
.test-page-wrapper * {
    box-sizing: border-box;
}

.test-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-wrapper .slide {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.carousel-wrapper .slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.carousel-wrapper .slide .thumb {
    position: relative;
    overflow: hidden;
}

.carousel-wrapper .slide .thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.carousel-wrapper .slide:hover .thumb img {
    transform: scale(1.05);
}

.carousel-wrapper .slide .infos h4 {
    padding: 20px 20px 10px 20px;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.carousel-wrapper .slide .infos h4 a {
    color: var(--primary-color);
    text-decoration: none;
}

.carousel-wrapper .slide .infos h4 a:hover {
    color: var(--accent-color);
}

.carousel-wrapper .slide .infos .text-wrapper {
    padding: 0 20px 20px 20px;
    color: var(--text-color);
    line-height: 1.5;
}

.carousel-wrapper .slide .infos .text-wrapper p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.carousel-wrapper .slide .infos .text-wrapper .read-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.carousel-wrapper .slide .infos .text-wrapper .read-more-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.carousel-wrapper .owl-nav .owl-prev,
.carousel-wrapper .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.carousel-wrapper .owl-nav .owl-prev:hover,
.carousel-wrapper .owl-nav .owl-next:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

.carousel-wrapper .owl-nav .owl-prev span,
.carousel-wrapper .owl-nav .owl-next span {
    color: var(--white);
    font-weight: bold;
}

.carousel-wrapper .owl-nav .owl-prev {
    left: -60px;
}

.carousel-wrapper .owl-nav .owl-next {
    right: -60px;
}

.carousel-wrapper .owl-stage-outer {
    border-radius: var(--border-radius);
}

/* Статистика */
.benefits {
    background: var(--light-bg);
    padding: 60px 0;
}

.benefits__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

.benefits__header {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.benefits__element {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.benefits__element:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.benefits__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.benefits__element:hover .benefits__icon {
    transform: scale(1.1);
}

.benefits__element p {
    margin: 10px 0;
    color: var(--text-color);
}

.benefits__number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 20px 0 10px 0;
}

.benefits__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Адаптивность */
@media screen and (max-width: 1200px) {
    .carousel-wrapper {
        max-width: 800px;
    }

    .carousel-wrapper .owl-nav .owl-prev {
        left: -50px;
    }

    .carousel-wrapper .owl-nav .owl-next {
        right: -50px;
    }
}

@media (max-width: 1170px) {
    #aboutUsContent {
        width: 90%;
        max-width: 800px;
    }

    #aboutUsHeader {
        width: 100%;
        max-width: 400px;
    }

    hr {
        width: 60px;
    }
}

@media (max-width: 800px) {
    #uniPicContent>div {
        width: 90%;
        left: 5%;
        height: auto;
        min-height: 150px;
    }

    #uniPicContent>div>div {
        width: 80%;
        left: 10%;
    }

    #uniPicContent>div>p {
        font-size: 24px;
        margin: 20px;
        text-align: center;
    }

    #aboutUsHeader {
        width: 100%;
        flex-direction: column;
    }

    #aboutUsHeader p {
        font-size: 28px;
        margin: 10px 0;
    }

    #aboutUsText p {
        font-size: 16px;
    }

    #join {
        padding: 12px 30px;
        font-size: 16px;
    }

    .swiper_banner {
        padding: 0 50px;
        height: 400px;
    }

    .banner_text {
        width: 90%;
        left: 5%;
        height: auto;
        min-height: 150px;
    }

    .banner_text div {
        width: 80%;
        left: 10%;
        height: 40px;
    }

    .banner_text p {
        font-size: 24px;
        margin: 20px;
        text-align: center;
    }

    .benefits__inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #Main_parthner p {
        font-size: 28px;
    }

    #comp_img img {
        height: 200px;
    }

    #NewsHeader p {
        font-size: 28px;
    }
}

@media (max-width: 500px) {
    .owl-carousel {
        margin: 0 -15px;
    }

    .owl-carousel .owl-stage-outer {
        padding: 0 15px;
    }

    .banner_text>div {
        width: 90%;
        left: 5%;
        height: 35px;
        font-size: 14px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        height: 50px;
        width: 50px;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 20px;
    }

    .swiper-button-next {
        right: 10px;
    }

    .swiper-button-prev {
        left: 10px;
    }

    #uniPicContent>div>p {
        font-size: 20px;
        margin: 15px;
    }

    .benefits__icon {
        width: 60px;
        height: 60px;
    }

    .benefits__number {
        font-size: 36px;
    }

    .benefits__title {
        font-size: 16px;
    }

    .benefits__header {
        font-size: 28px;
    }

    #uniPicContent>div>div {
        width: 90%;
        left: 5%;
        height: 35px;
    }

    .swiper_banner {
        padding: 0 30px;
        height: 300px;
    }

    #join {
        padding: 10px 25px;
        font-size: 14px;
    }

    #Policy {
        font-size: 12px;
    }

    .banner_text {
        width: 95%;
        left: 2.5%;
        height: auto;
        min-height: 120px;
    }

    .banner_text div {
        width: 90%;
        left: 5%;
        height: 30px;
        font-size: 12px;
    }

    .banner_text p {
        font-size: 18px;
        margin: 15px;
    }
}

/* Дополнительные стили */
* {
    box-sizing: border-box;
}

.text-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

p {
    margin-bottom: 15px;
}

.text-area h1,
.text-area h2,
.text-area h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}