:root {
    --primary-color: #083874;
    --secondary-color: #0094ff;
    --text-dark: #032c65;
    --text-gray: #616161;
    --text-light: #9e9e9e;
    --bg-light: #f7f7f7;
    --border-color: #e2e7ee;
    --white: #ffffff;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.main-block .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-block a {
    text-decoration: none;
    color: inherit;
}

.main-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-block img {
    max-width: 100%;
    height: auto;
    display: block;
}

.main-block .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.main-block .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.main-block .btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.main-block .btn-primary:hover {
    background-color: #007acc;
}

.main-block .btn-outline {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.main-block .btn-outline:hover {
    background-color: var(--bg-light);
}

.main-block .input-field {
    width: 100%;
    padding: 14px 18px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    font-size: 16px;
    color: var(--text-dark);
    outline: none;
}

.main-block .input-field::placeholder {
    color: var(--text-light);
}

.main-block .input-field:focus {
    border-color: var(--secondary-color);
}

.main-block .textarea-field {
    width: 100%;
    padding: 14px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    font-size: 16px;
    color: var(--text-dark);
    outline: none;
    resize: vertical;
    min-height: 120px;
}

.main-block .textarea-field::placeholder {
    color: var(--text-light);
}

.main-block .textarea-field:focus {
    border-color: var(--secondary-color);
}

.topWidgetLogo {
    height: 108px;
}

.logoWrapperTop {
    width: 262px;
    top: 9px;
}

.logoWrapperTop .logoText {
    font-size: 18px;
    width: auto;
    border-left: 1px solid #083874;
    height: 44px;
    bottom: 0px;
    padding-left: 11px;
}

.logoWrapperTop .logoText span {
    float: left;
    margin-top: 15px;
}

#search {
    top: 30px;
    display: block;
    position: absolute;
    left: calc(50% - 181px);
}

#search .search {
    width: 362px;
    height: 48px;
    border: 1px solid #F7F7F7;
    background: #F7F7F7;
    border-radius: 24px;
    padding: 13px 18px;
}

#search .search:focus {
    outline: none;
}

#search .search::placeholder {
    font-size: 18px;
    color: #9E9E9E;
}

#search .btn-search {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    background: url('/assets/images/search.png');
    position: absolute;
    z-index: 10;
    right: 18px;
    top: 13px;
}

.topWidgetLogo .telegramLink {
    top: 38px;
    right: calc(50% - 240px);
}

.topWidgetLogo .vkLink {
    top: 38px;
    right: calc(50% - 285px);
}

.topWidgetLogo .rzd {
    position: absolute;
    top: 41px;
    right: calc(50% - 310px);
    display: block;
    width: 1px;
    height: 26px;
    border-left: 1px solid #E2E7EE;
}

.userInfoWrapper {
    position: absolute;
    min-width: 155px;
    height: 48px;
    z-index: 10;
    right: 0px;
    top: 38px;
    cursor: pointer;
}

.userInfoWrapper-auth {
    top: 20px;
    cursor: pointer;
    color: #032C65;
}

.userInfoWrapper-auth .userWhite32 {
    margin-top: 18px;
}    

.userInfoWrapper .userWhite32 {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #032C65;
    border-radius: 16px;
    float: left;
}

.userInfoWrapper .userWhite32 img {
    margin: 6px;    
}

.userInfoInner {
    display: inline-block;
    margin-left: 5px;
    float: left;
    margin-top: 2px;
}

.userStatus {
    margin-left: 8px;
}

.notification {
    right: 0px;
    top: 0px;
}

.userInfoWrapper .userName {
    color: #032C65;
    font-size: 18px;
}

.userInfoWrapper .userName-auth {
    font-size: 14px;
}

#userTopMenu {
    top: 85px;
    right: -50px;
    z-index: 10000;
}

.nav-item {
    margin-right: 40px;
}

.nav-item .nav-link {
    font-size: 18px;
    color: #fff;
}

.nav-item-last {
    margin-right: 0px;
    margin-left: auto;
}

.wtLinkBtn {
    color: #032C65 !important;
    display: block;
    width: max-content;
    background: #fff;
    border-radius: 20px;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-weight: 500;
}

support {
    margin-top: 120px;
    margin-bottom: 70px;
    background: url('/assets/images/graduation-hat2.png') no-repeat  88% bottom;
}

.container-footer {
    width: calc(100% - 100px);
    max-width: 1750px
}

.footer-block {
    padding: 70px 175px;
    border-radius: 20px;
}

.footer-block .logoWrapperBottom {
    width: 220px;
}

.footer-block .logoText {
    border-left: 1px solid #fff;
    padding-left: 5px;
    margin-left: 5px;
    margin-bottom: 8px;
    float: left;
    width: 135px;
}

.footer-block .linkFooter {
    font-size: 18px;
    margin-bottom: 8px;
}

.footer-block .contactFooterInner {
    opacity: 0.3;
}

.footer-block .widgetBlueMedium {
    margin-top: 14px;
    display: block;
    width: max-content;
}

.footer-block .vkLink {
    margin-right: 14px;
}

.footer-block .rzd {
    display: block;
    width: 1px;
    height: 100%;
    margin-right: 120px;
    float: left;
    border-left: 1px solid #fff;
    opacity: 0.3;
}

.footer-block .rzd-hor {
    height: 10px;
}

.footer-block .record-block {
    display: block;
    float: left;
    max-width: 390px;
}

.footer-block .messageComment, .messageEmail, .messageText, .messageBtn {
    margin-top: 15px;
}

.footer-block .messageComment {
    font-size: 18px;
    font-weight: bold;
}

.messageText {
    height: 160px;
    box-sizing: border-box;
    resize: none;
}

.messageBtn {
    font-size: 18px;
}

.main-block {
    padding-top: 80px !important;
    background: url('/assets/images/stationery1.png') no-repeat  8% 150px,
        url('/assets/images/book1.png') no-repeat  60% top,
        url('/assets/images/graduation-hat2.png') no-repeat  92% 140px;

}


.main-block .allOlympiad {
    margin-top: 80px !important;
    margin-bottom: 80px !important;
}

.main-block .personalOlympiadWrapper {
    width: 438px;
    height: 330px;
}

.main-block .aksiosOlympiad {
    background: url('/assets/images/bgAkcios.png') no-repeat;
    background-size: cover;
}


.main-block .allOlympiad .aksiosOlympiad .personalOlympiad,
.main-block .allOlympiad .opkOlympiad .personalOlympiad,
.main-block .allOlympiad .ovioOlympiad .personalOlympiad {
    background: none;
}

.main-block .allOlympiad .personalOlympiad {
    border: none;
    box-shadow: none;
    padding: 40px;
}

.main-block img.logoOlympiad {
    top: 15px;
    left: 19px;
    width: 120px;
}

.main-block .allOlympiad .personalOlympiad .title {
    margin-top: 5px;
    padding: 0px;
}

.main-block .allOlympiad .personalOlympiad .title2 {
    font-size: 20px;
    font-weight: 700;
}

.main-block .allOlympiad .personalOlympiad .content {
    margin-top: 15px;
}

.main-block .opkOlympiad {
    background: url('/assets/images/bgOpk.png') no-repeat;
    background-size: cover;
}

.main-block .ovioOlympiad {
    background: url('/assets/images/bgNN.png') no-repeat;
    background-size: cover;
}

.main-block .aboutOlympiad {
    margin-top: 20px;
    font-size: 18px;
    margin-bottom: 20px;
}

.main-block .section-title {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.main-block .calendar-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.main-block .filter-btn {
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.main-block .filter-btn.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.main-block .section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.main-block .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.main-block .btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.main-block .btn-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-block .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.main-block .news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.main-block .news-image {
    height: 240px;
    width: 100%;
}

.main-block .news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.main-block .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-block .news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.main-block .news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.main-block .news-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.main-block .news-date img, .main-block .gallery-date img {
    width: 16px;
    height: 16px;
}

.main-block .gallery-section {
    padding: 60px 0;
    overflow: hidden;
}

.main-block .section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.main-block .section-header-flex .section-title {
    margin-bottom: 0;
}

.main-block .gallery-slider-container {
    width: calc(100% - 40px);
    border-left: dashed 2px var(--color-surface50);
    border-right: dashed 2px var(--color-surface50);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
    left: 20px;
}

.main-block .gallery-item {
    flex: 0 0 566px;
    flex-shrink: 0;
    height: 100%;
    width: auto;
    border-radius: 15px;
    margin: 0px 12px;
    border-radius: 15px;
}

.main-block .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.main-block .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 25px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: var(--white);
    border-radius: 0 0 15px 15px;
}

.main-block .gallery-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 10px;
}

.main-block .gallery-desc {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.main-block .gallery-controls {
    display: flex;
    gap: 10px;
}

.main-block .slider-btn {
    width: 68px;
    height: 48px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.main-block .slider-btn.prev{
    border-radius: 30px 0px 0px 30px;
    transform: rotate(0deg)
}

.main-block .slider-btn.next{
    border-radius: 0px 30px 30px 0px;
    margin-left: -6px;
}

.main-block .contacts-wrapper {
    background: linear-gradient(135deg, rgba(226, 231, 238, 0.2) 0%, rgba(8, 56, 116, 0.08) 100%);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.main-block .contacts-info {
    flex: 1;
    max-width: 400px;
    margin-left: 115px;
}

.main-block .contacts-info .section-title {
    color: var(--primary-color);
    margin-bottom: 40px;
}

.main-block .contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-block .contact-item {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(3, 44, 101, 0.08);
    padding: 12px 20px;
    border-radius: 30px;
    width: fit-content;
}

.main-block .contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-block .contact-text {
    color: var(--text-dark);
    font-weight: 500;
}

.main-block .mt-4 {
    margin-top: 30px;
}
.main-block .social-links {
    display: flex;
    gap: 15px;
}

.main-block .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-light);
    transition: background-color 0.3s;
}

.main-block .subscribe-box {
    flex: 1;
    max-width: 400px;
    position: relative;
    z-index: 1;
    margin-right: 115px;
}

.main-block .subscribe-title {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.main-block .subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-block .decor-book {
    position: absolute;
    top: -20px;
    right: -155px;
    width: 120px;
    opacity: 0.5;
    z-index: -1;
}

.main-block .input-field {
    width: 100%;
    padding: 14px 18px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    font-size: 16px;
    color: var(--text-dark);
    outline: none;
}

.main-block .w-100 {
    width: 100%;
}