* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff;
    color: #0b5b49;
}

img {
    display: block;
    max-width: 100%;
}



/* FILTER */

.filter-form {
    margin: 36px 0 30px;
}

.filter-form__wrapper {
    background: #fff;
    border-radius: 18px;
    padding: 10px 20px;
    box-shadow: 0 10px 28px rgba(20, 46, 37, .1);
    max-width: 400px;
    margin-left: auto;
}

.filter-form__form {
    display: flex;
    align-items: center;
    gap: 72px;
}

.filter-form__control {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.filter-form__input {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 18px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #cde577;
    outline: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #555;
}

.filter-form__input::placeholder {
    color: #5d6461;
    opacity: 1;
}

.filter-form__toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.filter-form__toggle span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-right: 1.5px solid #CFE38B;
    border-bottom: 1.5px solid #CFE38B;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform .22s ease;
}

.filter-form__control.open .filter-form__toggle span {
    transform: translate(-50%, -50%) rotate(225deg);
}

.filter-form__button {
    flex: 0 0 210px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #CFE38B;
    color: #0c5d49;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}

.filter-form__button:hover {
    background: #c9e84b;
    transform: translateY(-1px);
}

.filter-form__search-icon {
    position: relative;
    width: 14px;
    height: 14px;
    border: 2px solid #0c5d49;
    border-radius: 50%;
    flex-shrink: 0;
}

.filter-form__search-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    background: #0c5d49;
    border-radius: 999px;
    right: -4px;
    bottom: -1px;
    transform: rotate(45deg);
}

/* Dropdown */

.filter-form__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: min(530px, 100%);
    padding: 10px 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(20, 46, 37, .15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    z-index: 10;
    overflow: visible;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.filter-form__control.open .filter-form__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.filter-form__option {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    border: 0;
    background: transparent;
    color: #0b5b49;
    cursor: pointer;
    font-size: 14px;
    line-height: 54px;
    text-align: left;
    transition: background .18s ease, color .18s ease;
}

.filter-form__option:hover,
.filter-form__option.active {
    background: #f8fbef;
    color: #0b5b49;
}

/* SPECIALTY LIST */

.specialty-list {
    margin-bottom: 60px;
}

.specialty-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 42px;
}

.specialty-card {
    overflow: hidden;
    border-radius: 10px;
    background: #f4f5f4;
    box-shadow: 0 8px 18px rgba(20, 46, 37, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}

.specialty-card:hover {
    box-shadow: 0 18px 36px rgba(20, 46, 37, .2);
    transform: translateY(-8px);
}

.specialty-card__image {
    width: 100%;
    border-bottom: 5px solid #cde577;
    background: linear-gradient(135deg, #e0e0e0 0%, #d4d4d4 52%, #e8e8e8 100%);
}

.specialty-card__body {
    min-height: 140px;
    padding: 16px 18px 14px;
}

.specialty-card h3 {
    margin: 0 0 14px;
    color: #0b5b49;
    font-size: 19px;
    line-height: 1.25;
}

.specialty-card p {
    margin: 0;
    color: #6c7470;
    font-size: 14px;
    line-height: 1.55;
}

.specialty-card a {
    display: block;
    width: 18px;
    height: 18px;
    margin-top: 18px;
    border-top: 1.5px solid #CFE38B;
    border-right: 1.5px solid #CFE38B;
    transform: rotate(45deg);
}

/* BOOKING */
.booking-form {
    padding: 72px 0 82px;
    background: #ffffff !important;
}

.booking-form h2 {
    margin: 0 0 34px;
    color: #10644f;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.booking-form__form {
    width: min(850px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 30px;
}

.booking-form__column {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.booking-form__column h3 {
    margin: 0 0 5px;
    color: #0D5641;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.booking-form__input {
    width: 100%;
    height: 45px;
    border: 1px solid #edf0eb;
    border-radius: 10px;
    background: #fff;
    padding: 0 18px;
    color: #6f7773;
    font-size: 14px;
    outline: none;
}

.booking-form__input::placeholder,
.booking-form__textarea::placeholder {
    color: #b9bfbc;
    opacity: 1;
}

.booking-form select.booking-form__input {
    color: #b9bfbc;
}

.booking-form select.booking-form__input option {
    color: #6f7773;
}

.booking-form__select {
    position: relative;
    z-index: 1;
}

.booking-form__select.open {
    z-index: 10;
}

.booking-form__select-button {
    position: relative;
    width: 100%;
    height: 45px;
    padding: 0 38px 0 18px;
    border: 1px solid #edf0eb;
    border-radius: 10px;
    background: #fff;
    color: #b9bfbc;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
}

.booking-form__select-button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #999;
    border-bottom: 1.5px solid #999;
    transform: translate(0, -50%) rotate(45deg);
    transition: transform .18s ease;
}

.booking-form__select.open .booking-form__select-button::after {
    transform: translate(0, -50%) rotate(225deg);
}

.booking-form__select.open .booking-form__select-button {
    border-color: #dce8bd;
    box-shadow: 0 0 0 3px rgba(199, 231, 99, .18);
}

.booking-form__select.has-value .booking-form__select-button {
    color: #6f7773;
}

.booking-form__select-list {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: 100%;
    max-height: 170px;
    overflow-y: auto;
    padding: 4px 0;
    border: 1px solid #edf0eb;
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 12px 22px rgba(20, 46, 37, .12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 20;
}

.booking-form__select.open .booking-form__select-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.booking-form__select-list button {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    background: #fff;
    color: #08709a;
    cursor: pointer;
    font-size: 14px;
    line-height: 40px;
    text-align: left;
    white-space: nowrap;
}

.booking-form__select-list button:hover,
.booking-form__select-list button.active {
    background: #f5f8ec;
    color: #0b5b49;
}

.booking-form__inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
}

.booking-form__radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4c5652;
    font-size: 14px;
    white-space: nowrap;
}

.booking-form__radio input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #9fcf28;
}

.booking-form__textarea {
    width: 100%;
    height: 110px;
    padding: 16px 18px;
    border: 1px solid #edf0eb;
    border-radius: 10px;
    background: #fff;
    color: #6f7773;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
}

.booking-form__input:focus,
.booking-form__textarea:focus {
    outline: none;
    border-color: #dce8bd;
    box-shadow: 0 0 0 3px rgba(199, 231, 99, .18);
}

.booking-form__agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    color: #56615d;
    font-size: 13px;
    line-height: 1.4;
}

.booking-form__agree input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #9fcf28;
}

.booking-form__agree a {
    color: #0b5b49;
    font-weight: 600;
    text-decoration: none;
}

.booking-form__button {
    height: 45px;
    margin-top: 20px;
    border: none;
    border-radius: 999px;
    background: #bebebe;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.booking-form__button:hover {
    background: #a8a8a8;
    transform: translateY(-1px);
}

.booking-form__note {
    grid-column: 1/-1;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid #e2e2dc;
    color: #6f7471;
    font-size: 13px;
    font-style: italic;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {

    .container {
        width: min(100% - 28px, 720px);
    }

    .filter-form {
        margin: 24px 0 42px;
    }

    .filter-form__wrapper {
        padding: 22px;
        max-width: 100%;
        margin-left: 0;
    }

    .filter-form__form {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .filter-form__button {
        width: 100%;
        flex-basis: auto;
    }

    .filter-form__dropdown {
        width: 100%;
    }

    .specialty-list__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .booking-form {
        padding: 54px 0 64px;
    }

    .booking-form h2 {
        margin-bottom: 28px;
        font-size: 26px;
    }

    .booking-form__form {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media screen and (max-width: 576px) {

    .specialty-list__grid {
        grid-template-columns: 1fr;
    }

    .specialty-card__body {
        min-height: auto;
        padding: 20px;
    }

    .booking-form h2 {
        font-size: 22px;
    }

    .booking-form__inline {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}