.main {
    margin-top: 0px;
}

.main-image {
    width: 100%;
    height: 85vh;
    
    background: url('/img/main-img.jpg') no-repeat;
    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: start;
    align-items: end;
    padding: 0 0 4% 10%;
}

.header {
    font-family: 'Caveat', cursive;
    color: white;
    font-size: 48px;
    text-align: center;
    line-height: 1.2;
    max-width: 900px;

    -webkit-text-stroke: 1px #000;

    text-shadow:
        1px 0   0 #000,
       -1px 0   0 #000,
        0   1px 0 #000,
        0  -1px 0 #000,
        1px 1px 0 #000,
       -1px 1px 0 #000,
        1px -1px 0 #000,
       -1px -1px 0 #000;
}

.curriculum-table {
    width: 100%;
    table-layout: fixed;

    max-width: 900px; 
    margin: 0 auto 30px;
    border-collapse: separate;
    border-spacing: 6px 0;

    font-family: var(--font-body);
    letter-spacing: 2px;
}

.head-row {
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold); 
    background-color: var(--accent-main);
    color: var(--text-white);

    padding: var(--space-xs) var(--space-2xs); 
    text-align: center;
    border-bottom: 10px solid #FDF2ED; 
    border-radius: var(--br-ct) var(--br-ct) 0 0;
}

.lesson-cell {
    background-color: var(--bg-accent);

    padding: var(--space-2xs); 
    vertical-align: middle;

    height: 42px;
    min-width: 112px; 
    border: 1px solid #000;
    text-align: center;

    font-size: var(--fs-2xs);
    line-height: 0.75; 
    font-weight: var(--fw-regular);
    word-wrap: break-word;
}

.slider__wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
}

.slider__track {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 1060px;
    margin: 0 auto;
    overflow-x: auto;
    list-style: none;
    padding: 0;
    scrollbar-width: none;
    overflow-y: hidden;
}

.slider__track::-webkit-scrollbar {
    display: none;
}

.slider__img {
    width: 304px;
    height: 196px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--br-ct);
}

.btn-prev, .btn-next {
    border: 2px transparent solid;
    border-radius: 100%;
    padding: 0;
    margin: 0;
    outline: none;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;

    z-index: 10;

    transition: var(--transition-fast);
}

.btn-prev:focus, .btn-next:focus {
    outline: none;
}

.btn-prev:hover, .btn-next:hover {
    border: 2px #000 solid
}

.btn-prev img, .btn-next img {
    width: 44px; 
    height: auto;
    display: block;
}

.section-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.section-top__link {
    box-shadow: inset 0 -1px 0 0 #000; 
    transition: box-shadow 0.2s ease;
}

.section-top__link:hover {
    font-weight: 700;
    box-shadow: inset 0 -2px 0 0 #000;
}

/*--Util--*/

.rotate-1 {
    transform: rotate(-9deg);
    z-index: 2;
}

.rotate-2 {
    transform: rotate(8deg);
    z-index: 1;
}

.rotate-3 {
    transform: rotate(-10deg);
    z-index: 2;
}

.rotate-4 {
    transform: rotate(11deg);
    z-index: 2;
}

.rotate-5 {
    transform: rotate(-6deg);
    z-index: 2;
}

.rotate-6 {
    transform: rotate(6deg);
    z-index: 2;
}

@media (max-width: 768px) {

    .main {
        padding-top: 64px;
    }

    .main-image {
        display: none;
    }

    .curriculum-table {
        max-width: 100%;
        margin: 0 auto;
        font-size: var(--fs-xs-m);
        letter-spacing: 1px;
        border-spacing: 4px 0;
    }

    .head-row {
        font-size: var(--fs-2xs-m);
        padding: var(--space-xs-m) var(--space-2xs-m);
        border-bottom: 8px solid #FDF2ED;
        border-radius: 4px;
    }

    .lesson-cell {
        padding: var(--space-3xs-m);
        height: 20px;
        min-width: 20px;
        font-size: var(--fs-2xs-m);
        line-height: 0.7;
    }

    .slider__wrapper {
        gap: var(--space-xs-m);
    }

    .slider__track {
        gap: var(--space-sm-m);
        max-width: 100%;
    }

    .slider__img {
        width: 200px;
        height: 130px;
    }

    .btn-prev, .btn-next {
        display: none;
    }

    .section-top {
        flex-direction: column;
        align-items: flex-start;
        flex-direction: row;
        gap: var(--space-xs-m);
    }

    .section-top__link {
        font-size: var(--fs-2xl-m);
    }

    /* Ротації теж можна трохи зменшити, щоб не виходило за екран */
    .rotate-1 {
        transform: rotate(-6deg);
    }
    .rotate-2 {
        transform: rotate(6deg);
    }
    .rotate-3 {
        transform: rotate(-7deg);
    }
}
