.table-rates {
    position: relative;
}
.table-rates .row {
    max-width: 144rem;
}
.table-rates header {
    margin-bottom: 2.1rem;
}
.table-rates h2 {
    color: var(--light-green);
    font-size: 3.6rem;
    line-height: 1.2em;
    max-width: 23rem;
}
.table-rates .line {
    isolation: isolate;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}
.table-rates h3 {
    color: var(--light-green);
    font-size: 2.2rem;
    line-height: 1.13em;
}
.table-rates span {
    font-family: var(--work-font);
    font-size: 1.4rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--light-green);
}
.table-rates span.year {
    font-size: 1.2rem;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--light-green);
}


.table-rates .line:not(.head) {
    height: 5.8rem;
}
.table-rates .line > div:nth-child(1) {
    flex: 0 1 17rem;
    max-width: 17rem;
    margin-right: 1rem;
}
.table-rates .line>div:nth-child(2) {
    margin-right: 1rem;
}
.table-rates .line>div:nth-child(2),
.table-rates .line>div:nth-child(3) {
    flex: 1;
    max-width: 10rem;
}
.table-rates .line>div span {
    display: block;
}

@media only screen
and (min-width : 961px) {

    .table-rates header {
        margin-bottom: 6rem;
    }
    .table-rates h2 {
        text-align: center;
        font-size: 5.4rem;
        line-height: 1.12em;
        max-width: 100%;
    }
    .table-rates .line {
        border-bottom: .1rem solid var(--rates-olive-font);
        justify-content: center;
        cursor: pointer;
    }
    .table-rates .line > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        margin: 0;
    }
    .table-rates .line > div:nth-child(1) {
        flex: 0 1 47rem;
        max-width: 47rem;
    }
    .table-rates .line > div:nth-child(2),
    .table-rates .line > div:nth-child(3) {
        flex: 0 1 23.6rem;
        max-width: 23.6rem;
    }
    .table-rates .line>div:nth-child(2) {
        margin-right: 1.5rem;
    }


    .table-rates .line.head {
        padding-bottom: 1.5rem;
    }
    .table-rates .line.head .year {
        flex: 0 1 100%;
        max-width: 100%;
        margin: 0 0 .75rem;
    }
    .table-rates .line:not(.head) {
        height: 12.9rem;
    }


    .table-rates h3 {
        font-size: 5.4rem;
        line-height: 1.12em;
    }
    .table-rates span {
        color: var(--light-green);
        flex: 1;
        font-size: 1.8rem;
        letter-spacing: 0.06em;
        transition: all .7s;
    }
    .table-rates span.year {
        color: var(--light-green);
        font-size: 1.8rem;
        letter-spacing: .04em;
    }

    .table-rates .hoverimage {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 51.4rem;
        opacity: 0;
        pointer-events: none;
        z-index: -1;
        transition: opacity .7s, translate 10s ease;
    }
    .table-rates .hoverimage::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        pointer-events: none;
        width: 100%;
        height: 28.8rem;
        background: transparent linear-gradient(180deg, rgba(34, 60, 36, 1) 0%, rgba(34, 60, 36, 0) 100%) 0% 0% no-repeat padding-box;
        mix-blend-mode: multiply;
    }

    .table-rates .line:not(.head):hover {
        z-index: 2;
    }
    .table-rates .line:not(.head):hover span {
        color: var(--rates-light-font);
    }
    .table-rates .line:not(.head):hover .hoverimage {
        opacity: 1;
        translate: 0 calc(-100% + 12.9rem)  0;
    }

}
@media only screen
and (min-width : 0)
and (max-width : 960px) {
    .table-rates .line.head {
        align-items: flex-end;
    }
    .table-rates .line.head > div {
        border-bottom: .1rem solid var(--rates-olive-font);
        padding-bottom: 1rem;
    }
    .table-rates .line:not(.head) > div {
        display: flex;
        align-items: center;
        height: 5.5rem;
        border-bottom: .1rem solid var(--rates-olive-font);
    }
    .table-rates .line:not(.head)>div {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    .table-rates .line.head span:first-child {
        margin: 0 0 .75rem;
    }
    .table-rates .line.head span:last-child,
    .table-rates .line:not(.head)>div:not(:first-child) span:last-child {
        font-weight: 700;
        margin: .75rem 0 0;
    }

}

