:root {
    --primary: #004f50;
    --surface: #eee4d4;
    --on-background: #1d1d1b;
    --background: #f9f5ef;
    --on-primary: #ffffff;
    --modal-bg: rgba(226, 209, 182, 0.9);
    --error: rgba(241, 49, 76, 0.2);
    --success: rgba(109, 217, 147, 1);
    --success-body: rgba(123, 218, 138, 0.08);
}

* {
    font-family: "Montserrat", sans-serif;
}

html {
    scroll-behavior: smooth;
}

a {
    color: var(--on-background);
    font-size: 24px;
    font-weight: 500;
    line-height: 120%;
}

h1 {
    color: var(--on-background);
    font-size: 116px;
    font-weight: 600;
    line-height: 120%;
}

h2 {
    color: var(--on-background);
    font-size: 48px;
    font-weight: 600;
    line-height: 120%;
}

h3 {
    color: var(--on-background);
    font-size: 32px;
    font-weight: 600;
    line-height: 120%;
}

p {
    color: var(--on-background);
    font-size: 24px;
    font-weight: 500;
    line-height: 120%;
}

span {
    color: var(--on-background);
    opacity: 0.8;
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
}

body {
    padding-bottom: 80px;
    background-color: var(--background);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.primary {
    color: var(--primary);
}

.on-primary {
    color: var(--on-primary);
}

.on-primary-80 {
    color: var(--on-primary);
    opacity: 0.8;
}

.bg-surface {
    background-color: var(--surface) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.caption-20 {
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: 0%;
}

.caption-18 {
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: 0%;
}

.caption-16 {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0%;
}

.caption-14 {
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0%;
}

.underline {
    text-decoration: underline !important;
}

.rotate-180 {
    transform: rotate(180deg);
}

.centered {
    align-self: center;
}

.checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--primary);
    border-radius: 2px;
    min-width: 20px;
}

.checkbox img {
    opacity: 0;
    transition: opacity 0.1s linear;
}

.checkbox.active img {
    opacity: 1;
}

.header {
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
}

.header-links {
    display: flex;
    align-items: center;
    column-gap: 32px;
    margin-left: auto;
}

.header-link {
    position: relative;
}

.header-link::after {
    content: "";
    width: 100%;
    position: absolute;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--on-background);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-link:hover::after,
.header-link:focus::after,
.header-link:active::after {
    opacity: 1;
}

.main {
    display: flex;
    flex-direction: column;
    row-gap: 120px;
}

.section {
    display: flex;
    flex-direction: column;
    row-gap: 48px;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.section-header__info {
    display: flex;
    flex-direction: column;
    row-gap: 32px;
    max-width: 1093px;
    width: 100%;
}

.section-header__group {
    display: flex;
    flex-direction: column;
    row-gap: 48px;
    max-width: 1093px;
}

.table-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.table-wrapper .slider {
    display: none;
}

.table-info {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    margin-left: 746px;
}

.group-info {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    padding: 24px;
}

.table-header {
    display: grid;
    grid-template-columns: 528px 1fr 1fr;
}

.table-header li {
    padding: 16px 32px;
}

.table-info span {
    max-width: 680px;
}

.section-header__group .section-header__info {
    row-gap: 24px;
}

.section-header__info-caption {
    max-width: 698px;
}

.section-content__list {
    display: grid;
    column-gap: 24px;
    row-gap: 32px;
    grid-template-columns: 722px 1fr 1fr;
    grid-template-areas: "learning teachers load" "flexibility personalization personalization";
}

.section-content__list-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 32px;
    border-radius: 48px;
    height: 380px;
    background-color: var(--primary);
    position: relative;
}

.learning {
    grid-area: learning;
}

.teachers {
    grid-area: teachers;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url("/images/teachers-bg-desc.png");
}

.load {
    grid-area: load;
}

.flexibility {
    grid-area: flexibility;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url("/images/flexibility-bg-decs.png");
}

.personalization {
    grid-area: personalization;
}

.learning .list-item__text-content,
.personalization .list-item__text-content {
    max-width: 441px;
}

.teachers .list-item__text-content {
    max-width: 471px;
}

.load .list-item__text-content {
    max-width: 377px;
}
.flexibility .list-item__text-content {
    max-width: 658px;
}

.image {
    position: absolute;
    bottom: 0;
    right: 0;
}

.slider {
    display: flex;
    flex-direction: column;
    row-gap: 24px;
    overflow: hidden;
}

.slides-list {
    display: flex;
    column-gap: 24px;
    transition: all 0.5s ease;
}

.slide {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    width: 722px;
    min-width: 722px;
}

.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px;
    background-color: var(--primary);
    border-radius: 48px;
    height: 204px;
}

.slide-header__number {
    display: inline-flex;
    background-color: var(--on-primary);
    height: 88px;
    width: 88px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border-radius: 16px;
}

.slide-header__info {
    display: flex;
    flex-direction: column;
    row-gap: 24px;
    max-width: 476px;
}

.slide-list {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    background-color: var(--on-primary);
    border-radius: 48px;
}

.slide-list__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mark {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
}

.action-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    border: 1px solid var(--primary);
    width: 96px;
    height: 48px;
    transition: opacity 0.3s ease;
}

.slider-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    touch-action: none;
}

.list-item__text-content {
    display: inline-flex;
    flex-direction: column;
    row-gap: 12px;
    position: relative;
    z-index: 1;
}

.info__image {
    height: 372px;
    width: 100%;
    background-image: url("/images/desc-info.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.info__caption {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

.reg-btn {
    padding: 8px 8px 8px 16px;
    background-color: var(--primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    column-gap: 16px;
    max-width: 250px;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    width: 45px;
    height: 45px;
    background-color: var(--on-primary);
}

.news {
    display: flex;
    justify-content: center;
}

.news a {
    display: inline-block;
}

.news h3 {
    max-width: 1094px;
    text-align: center;
}

.footer {
    margin-top: 120px;
}

.footer-wrapper {
    display: flex;
    background-color: var(--surface);
    padding: 32px;
    border-radius: 48px;
    column-gap: 32px;
}

.footer-wrapper__block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    row-gap: 16px;
    flex: 1;
}

.footer-wrapper__block-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 16px;
}

.modal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0;
    padding: 32px 76px;
    background-color: var(--modal-bg);
    transition: all 0.3s ease-in-out;
    overflow-y: scroll;
}

.modal-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    max-width: 708px;
    width: 100%;
    padding: 32px;
    background-color: var(--background);
    border-radius: 48px;
    row-gap: 24px;
}

.modal.visible {
    opacity: 1;
    z-index: 2;
}

.modal-content__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.general-content {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    list-style: decimal;
    padding-left: 20px;
}

.inputs-list {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

.inputs-list input {
    border: none;
    outline: none;
    background-color: var(--surface);
    border-radius: 8px;
    padding: 18px 16px;
}

.inputs-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    row-gap: 8px;
}

.accordions-list {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

.accordion {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background-color: var(--on-primary);
    padding: 16px;
    row-gap: 16px;
    max-height: 60px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.accordion.active {
    max-height: 1000px;
}

.accordion.active .accordion-header img {
    transform: rotate(180deg);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-header img {
    transition: all 0.3s ease-in-out;
}

.accordion-content {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.checkboxes-list {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
}

.checkboxes-list label {
    display: flex;
    align-items: center;
    column-gap: 8px;
    transition: opacity 0.3s ease-in-out;
}

.checkboxes-list label.disabled {
    opacity: 0.7;
    cursor: default;
}

.checkboxes-list input {
    display: none;
}

.agreement {
    display: flex;
    align-items: center;
    column-gap: 8px;
}

.agreement input {
    display: none;
}

.error-caption {
    display: none;
    background-color: var(--error);
    padding: 8px 24px;
    border-radius: 4px;
}

.error-caption.visible {
    display: inline-flex;
}

.send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 41px;
    border: 1.5px solid var(--primary);
    border-radius: 24px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.send-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    touch-action: none;
}

.send-btn:hover {
    background-color: var(--primary);
    color: var(--on-primary);
}

.modal-close-btn-fixed {
    position: fixed;
    top: 32px;
    right: 32px;
    background-color: var(--on-primary);
    width: 56px;
    height: 48px;
    border-radius: 12px;
}

.success-warning {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translate(-50%, 200px);
    max-width: 668px;
    width: 100%;
    z-index: 3;
    border-radius: 8px;
    background-color: var(--surface);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(3, 3, 2, 0.3);
}

.success-warning.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.warning-header {
    border-radius: 8px 8px 0 0;
    background-color: var(--success);
    padding: 16px;
    display: flex;
    align-items: center;
    column-gap: 8px;
}

.warning-body {
    border-radius: 0 0 8px 8px;
    padding: 25px 16px;
    background-color: var(--success-body);
}

@media screen and (width < 1770px) {
    .section-header {
        flex-direction: column;
        row-gap: 48px;
    }

    .load .image {
        width: 190px;
    }

    .personalization .image {
        width: 272px;
    }

    .table-info {
        margin-left: 0;
    }

    .section-content__list {
        grid-template-columns: 480px 1fr 1fr;
    }

    .learning .image {
        width: 230px;
    }
}

@media screen and (width < 1280px) {
    h1 {
        font-size: 48px;
    }
}

@media screen and (width < 1022px) {
    .header-links {
        display: none;
    }
}

@media screen and (width < 926px) {
    .modal {
        padding: 36px 12px;
        background-color: var(--background);
    }

    .modal-content {
        padding: 0;
    }
}

@media screen and (width < 566px) {
    .inputs-group {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (width < 441px) {
    body {
        padding-bottom: 60px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 18px;
    }

    span {
        font-size: 16px;
    }

    .container {
        max-width: 375px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-links {
        display: none;
    }

    .reg-btn {
        max-width: none;
        justify-content: space-between;
    }

    .main {
        row-gap: 80px;
    }

    .info__image {
        height: 220px;
        background-image: url("/images/mobile-info.png");
    }

    .section {
        row-gap: 32px;
    }

    .section-header {
        flex-direction: column;
        row-gap: 24px;
    }

    .section-header__info {
        row-gap: 24px;
    }

    .section-content__list {
        display: flex;
        flex-direction: column;
    }

    .section-content__list-item {
        padding: 24px;
        border-radius: 32px;
    }

    .list-item__text-content {
        row-gap: 8px;
    }

    .list-item__text-content h3 {
        font-size: 30px;
    }

    .list-item__text-content span {
        font-size: 18px;
    }

    .load .list-item__text-content {
        max-width: 224px;
    }

    .slider {
        overflow: hidden;
    }

    .slide {
        width: 351px;
        min-width: 351px;
        row-gap: 8px;
    }

    .slide-header {
        height: 210px;
        flex-direction: column;
        row-gap: 24px;
        border-radius: 32px;
        padding: 24px;
    }

    .slide-header__number {
        order: -1;
        align-self: flex-end;
        width: 57px;
        height: 57px;
    }

    .slide-header__info {
        row-gap: 8px;
    }

    .slide-list {
        padding: 24px;
        row-gap: 12px;
        border-radius: 32px;
    }

    .action-btns button {
        flex: 1;
    }

    .learning,
    .load {
        height: 249px;
    }

    .teachers {
        height: 194px;
    }

    .flexibility {
        height: 180px;
    }

    .personalization {
        height: 290px;
    }

    .learning .image {
        width: 100px;
    }

    .load .image {
        width: 130px;
    }

    .personalization .image {
        width: 150px;
    }

    .table-info {
        margin-left: 0;
    }

    .table-wrapper .slider {
        display: flex;
    }

    .table-image {
        display: none;
    }

    .footer {
        margin-top: 80px;
    }

    .footer-wrapper {
        flex-direction: column;
        row-gap: 24px;
        border-radius: 32px;
    }

    .footer-wrapper__block {
        row-gap: 8px;
    }

    .footer-wrapper__block-item {
        flex-direction: column;
        row-gap: 4px;
        align-items: flex-start;
    }

    .modal {
        padding: 36px 12px;
        background-color: var(--background);
    }

    .modal-content {
        padding: 0;
    }

    .inputs-group {
        display: flex;
        flex-direction: column;
    }

    .modal-content__header img {
        display: none;
    }

    .modal-close-btn-fixed {
        top: 16px;
        right: 8px;
    }

    .success-warning {
        bottom: 0;
    }
}
