@font-face {
    font-family: "Helvetica";
    src: url("./fonts/Helvetica.woff2") format("woff2"),
         url("./fonts/Helvetica.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Helvetica", "Arial", sans-serif;
    background: linear-gradient(to left, #1A59B0, #1A59B0, #1A59B0);
    background-size: 400% 100%;
    animation: gradientMove 60s ease infinite;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 0;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    padding: 20px 3vw 10px 3vw; 
    gap:30px;
    box-sizing: border-box;
}

.main-title-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    color: rgb(255, 255, 255);
    gap: 2px;
    padding: 0;
}

.main-title {
    padding: 10px 0 0 0;
    font-size: 1.5vw;
    text-align: left;
    width: 100%;
    white-space: nowrap;
    font-weight: normal;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.main-subtitle {
    padding: 0;
    font-weight: 800;
    font-size: 3.4vw;
    text-align: left;
    width: 100%;
    color: white;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}

.main-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.main-widgets {
    width: 100vw;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 1vw;
    box-sizing: border-box;
    padding: 0.5vw 2vw;
    align-items: start;
}

.main-widgets > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 1vw; 
    width: 100%;
}

.admission-news-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admission-news-title {
    color: #ffffff;
    font-size: 2.9vw;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.important-block {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    padding: 30px 26px 20px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 140px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 90%;
}

.important-content {
    width: 100%;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.partners-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.partners-title {
    color: #ffffff;
    font-size: 2.9vw;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.partners-container {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    padding: 30px 26px 20px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    position: relative;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    position: relative;
}

.partner-cell {
    background: rgba(255, 255, 255, 1);
    border: 2px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 10px #8db3e633;
    min-width: 90px;
    min-height: 90px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 1;
    transform: translateX(0);
}

.partner-cell.empty-cell {
    background: rgba(255, 255, 255, 0.3);
    border: 2px dashed #b3d9f7;
    cursor: default;
}

.empty-partner {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3d9f7;
    font-size: 24px;
}

.partners-pagination {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partners-pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 1);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.partners-pagination-dot.active {
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
}

.partner-cell:hover:not(.empty-cell) {
    transform: scale(1.05);
    box-shadow: 0 6px 18px #8db3e666;
    border-color: #2c5589;
}

.partner-cell img {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 8px;
    object-fit: contain;
}

.partner-name {
    font-size: 0.7em;
    color: #176fae;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    height: 100%;
    width: 100%;
    margin-top: 3vw;
}

.date-weather-row {
    display: flex;
    gap: 2vw;
    align-items: stretch;
}

.weather-time-wrapper {
    position: relative;
    width: 100%;
    padding-top: 18px;
    min-height: 190px;
}

.time-card {
    position: absolute;
    width: 60%;
    top: -25px;
    right: 18px;
    background: #ffffff;
    color: #004a99;
    border-radius: 16px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 14px;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.time-big {
    font-size: 40px;
    font-weight: 700;
}

.time-date {
    text-align: right;
}

.time-weekday {
    font-size: 16px;
    font-weight: 600;
}

.time-fulldate {
    font-size: 14px;
}

.weather-card {
    background: rgba(255, 255, 255, 0.15);
    color: #e1efff;
    border-radius: 16px;
    padding: 32px 18px 2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
    text-align: center;
    min-height: 190px;
}

.weather-main-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 0;
}

.weather-icon-large {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.weather-main {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
}

.weather-temp {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 
        2px 2px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 3px #000;
}

.weather-feel {
    font-size: 14px;
    color: #b3d9ff;
    font-weight: 500;
    text-shadow: 
        1px 1px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 2px #000;
}

.weather-desc {
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 
        1px 1px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 2px #000;
}

.sun-block {
    text-align: right;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sun-row {
    color: #b3d9ff;
    text-shadow: 
        1px 1px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 2px #000;
    font-weight: 500;
}

.sun-time {
    font-weight: 700;
    color: #ffffff;
    margin-left: 5px;
    text-shadow: 
        1px 1px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 3px #000;
}

.weather-footer {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    font-size: 13px;
    margin-top: 3px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-item {
    flex: 1;
    padding: 1px;
}

.weather-item span {
    color: #b3d9ff;
    margin: 0 0 0 0;
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 
        1px 1px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 2px #000;
    letter-spacing: 0.2px;
}

.weather-item b {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: block;
    margin-top: 0;
    text-shadow: 
        1px 1px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 3px #000;
}

.qr-codes-block {
    margin-top: 0.3vw;
    margin-left: 7vw;
}

.qr-codes-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.qr-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    border: none;
    backdrop-filter: none;
    padding: 0;
    box-shadow: none;
    margin-left: 5px;
}

.qr-code-wrapper {
    background: transparent;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
    padding: 0;
    box-shadow: none;
}

.qr-code-wrapper img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.qr-text {
    color: #ffffff;
    font-size: 1.1vw;
    line-height: 1.3;
    flex: 1;
}

.qr-text .first-line {
    font-weight: normal;
    display: block;
}

.qr-text .second-line {
    font-weight: bold;
    display: block;
}

.modal-bg {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-window {
    background: #f3faff;
    border-radius: 18px;
    max-width: 400px;
    padding: 30px 24px 18px;
    box-shadow: 0 8px 32px #377ce099;
    text-align: center;
    position: relative;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1563b5;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 26px;
    color: #174fb6;
    cursor: pointer;
}

.modal-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.bg-words {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    pointer-events: none;
    overflow: hidden;
}

.bg-word {
    position: absolute;
    width: auto;
    font-weight: 900;
    color: #2a74c5;
    user-select: none;
    white-space: nowrap;
    animation: moveWord 9s linear infinite;
}

@keyframes moveWord {
    from {
        top: var(--start-top, -20vh);
    }
    to {
        top: 110vh;
    }
}

.news-item {
    padding: 8px 20px;
    text-align: left;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.news-title {
    font-size: 1.8vw;
    color: #ffffff;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 2px;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.news-date {
    font-size: 1.1vw;
    color: #b3d9ff;
    font-weight: 500;
    text-align: left;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.news-slide-out {
    animation: newsSlideOut 0.3s ease forwards;
}

@keyframes newsSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

.news-slide-in {
    animation: newsSlideIn 0.5s ease forwards;
    opacity: 0;
    transform: translateX(100px);
}

@keyframes newsSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.news-pagination {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 1);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.news-dot.active {
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
}

@media (max-width: 1100px) {
    .main-widgets {
        grid-template-columns: 1fr;
    }
    
    .weather-time-wrapper {
        min-height: 180px;
    }
    
    .time-card {
        width: 70%;
        right: 15px;
    }
    
    .weather-icon-large {
        width: 75px;
        height: 75px;
    }
    
    .weather-temp {
        font-size: 30px;
    }
    
    .weather-desc {
        font-size: 14px;
    }
    
    .weather-card {
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3vw;
    }
    
    .main-subtitle {
        font-size: 5vw;
    }
    
    .admission-news-title,
    .partners-title {
        font-size: 4vw;
    }
    
    .weather-temp {
        font-size: 26px;
    }
    
    .time-big {
        font-size: 32px;
    }
    
    .time-card {
        width: 80%;
        padding: 8px 15px;
    }
    
    .weather-main-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4px;
    }
    
    .weather-icon-large {
        width: 65px;
        height: 65px;
        margin: 0 auto;
        order: -1;
    }
    
    .weather-main {
        text-align: center;
        order: 0;
    }
    
    .sun-block {
        text-align: center;
        margin-top: 4px;
        order: 1;
    }
    
    .weather-footer {
        flex-direction: column;
        gap: 2px;
        margin-top: 6px;
        padding-top: 4px;
    }
    
    .weather-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 3px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .weather-item:last-child {
        border-bottom: none;
    }
    
    .weather-item span,
    .weather-item b {
        margin: 0;
    }
    
    .qr-text {
        font-size: 2vw;
    }
    
    .qr-code-wrapper img {
        width: 100px;
        height: 100px;
    }
    
    .important-block,
    .partners-container {
        padding: 18px 15px 8px;
        min-height: 130px;
    }
}