.selection-section {
    background-image: url("/assets/svg/dots-background.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #009fe3;
    padding-bottom: 56px;
}

.selection__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2.selection-title {
    margin: 0;
    padding-top: 56px;
    text-align: center;
    font-size: clamp(48px, 5.2vw, 70px);
    font-weight: 300;
    color: #fff;
    white-space: nowrap;
}

.selection-grid {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.selection-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin-top: 70px;
    gap: 32px;
}

.card-title {
    text-align: center;
    font-size: 50px;
    font-weight: normal;
    color: #fff;
    white-space: nowrap;
    font-family: 'Panton';
    margin: 0;
}

.card-image-box {
    height: 564px;
}

.card-image-box img{
    height: 100%;
}


.card-text,
.card-button {
    text-align: center;
    font-weight: 300;
    color: #fff;
    font-size: 32px;
    width: min(calc(50svw - 40px), 720px);
    letter-spacing: 4%;
}

.selection__card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 56px;
  border: 2px solid #fff;
  border-radius: 50px;
  color: #fff;
  font-size: 32px;
  font-weight: normal;
  transition: background-color 0.2s ease, color 0.2s ease;
  /* margin-top: 0px; */
}

.selection__card-btn:hover {
  background-color: #fff;
  color: #009fe3;
}

@media (max-width: 768px) {
    .selection-section {
        height: 906px;
        padding-bottom: 0;
        overflow: hidden;
        overflow-x: clip;
        background-color: #009fe3;
    }

    h2.selection-title {
        width: 320px;
        padding-top: 19px;
        font-size: 22px;
        line-height: 1.18;
        white-space: normal;
    }

    .selection-grid {
        position: relative;
        display: block;
        width: 100%;
        height: 827px;
        margin-top: 0;
    }

    .selection-card {
        position: absolute;
        left: 0;
        width: 100%;
        margin-top: 0;
        gap: 0;
    }

    .selection-card:first-child {
        top: 27px;
    }

    .selection-card:last-child {
        top: 433px;
    }

    .card-title {
        margin: 0 0 18px;
        font-size: 28px;
        line-height: 1.1;
    }

    .card-image-box {
        width: 232px;
        height: auto;
        max-width: none;
    }

    .card-image-box img {
        width: 100%;
        height: auto;
        display: block;
    }

    .card-text {
        width: 330px;
        margin: 17px 0 13px;
        font-size: 13px;
        line-height: 1.15;
    }

    .selection__card-btn {
        width: 190px;
        height: 49px;
        padding: 0;
        font-size: 18px;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .selection-section {
        overflow: hidden;
    }

    .selection__inner {
        width: 100%;
        padding: 0 40px;
    }

    h2.selection-title {
        font-size: 54px;
        white-space: normal;
    }

    .selection-grid {
        width: 100%;
        gap: 24px;
    }

    .selection-card {
        min-width: 0;
        gap: 24px;
    }

    .card-title {
        font-size: 38px;
    }

    .card-image-box {
        width: 100%;
        height: auto;
        max-width: 440px;
    }

    .card-image-box img {
        width: 100%;
        height: auto;
        display: block;
    }

    .card-text {
        width: 100%;
        font-size: 24px;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    .selection-section {
        height: auto;
        min-height: 0;
        padding-bottom: 42px;
    }

    h2.selection-title {
        width: min(700px, calc(100% - 64px));
        padding-top: 34px;
        font-size: 38px;
    }

    .selection-grid {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
        width: min(900px, calc(100% - 48px));
        height: auto;
        margin-top: 38px;
    }

    .selection-card,
    .selection-card:first-child,
    .selection-card:last-child {
        position: static;
        width: 100%;
        margin: 0;
        gap: 18px;
    }

    .card-title {
        margin: 0;
        font-size: 32px;
    }

    .card-image-box {
        width: min(100%, 310px);
    }

    .card-text {
        width: 100%;
        min-height: 64px;
        margin: 0;
        font-size: 17px;
        line-height: 1.2;
    }

    .selection__card-btn {
        width: 174px;
        height: 48px;
        font-size: 17px;
    }
}

@media (min-width: 1401px) and (max-width: 1600px) {
    .selection-section {
        overflow: hidden;
    }

    .selection__inner {
        width: 100%;
        padding: 0 40px;
    }

    h2.selection-title {
        font-size: 58px;
        white-space: normal;
    }

    .selection-grid {
        width: 100%;
        gap: 40px;
    }

    .selection-card {
        min-width: 0;
        gap: 26px;
    }

    .card-title {
        font-size: 42px;
    }

    .card-image-box {
        width: 100%;
        max-width: 410px;
        height: auto;
    }

    .card-image-box img {
        width: 100%;
        height: auto;
    }

    .card-text {
        width: 100%;
        font-size: 24px;
    }

    .selection__card-btn {
        padding: 16px 48px;
        font-size: 25px;
    }
}
