.patients-page__intro {
    padding: 40px 0 80px;
}

.patients-page .bread-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 40px;
    padding: 0;
}

.patients-page .bread-crumbs__item,
.patients-page .bread-crumbs__item-unactive {
    color: rgba(28, 28, 28, 0.5);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.patients-page .bread-crumbs__item {
    list-style: none;
}

.patients-page .bread-crumbs__item a {
    text-decoration: none;
}

.patients-page .bread-crumbs__item-active {
    color: #1c1c1c;
}

.patients-page__title {
    margin: 0;
    color: #1c1c1c;
    font-size: 72px;
    font-weight: 500;
    line-height: 1;
}

.patients-information {
    margin-bottom: 120px;
}

.patients-entry-form {
    margin-bottom: 120px;
    padding-top: 0;
}

.patients-legal {
    margin-bottom: 120px;
}

.patients-legal__title {
    margin: 0 0 40px;
    color: #1c1c1c;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.3;
}

.patients-legal__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 38px;
}

.patients-legal__documents {
    display: flex;
    flex: 0 1 1165px;
    flex-wrap: wrap;
    gap: 24px;
    min-width: 0;
}

.patients-legal__document {
    display: flex;
    flex: 0 1 calc((100% - 24px) / 2);
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border-radius: 8px;
    color: #1c1c1c;
    background-color: #efefef;
    text-decoration: none;
    transition: background-color 200ms ease;
}

.patients-legal__document:hover {
    background-color: #e7e7e7;
}

.patients-legal__document:focus-visible {
    outline: 2px solid #38c1d5;
    outline-offset: 2px;
}

.patients-legal__document-icon {
    display: flex;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    align-items: center;
    justify-content: center;
}

.patients-legal__document-icon img {
    display: block;
    width: 70px;
    height: 70px;
}

.patients-legal__document-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.patients-legal__document-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.patients-legal__document-meta {
    color: #a1a1a1;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.patients-legal__preview {
    position: relative;
    width: 555px;
    height: 398px;
    flex: 0 1 555px;
    overflow: hidden;
}

.patients-legal__preview::before {
    position: absolute;
    top: 55px;
    left: 73px;
    width: 387px;
    height: 549px;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    background-color: #f6f6f6;
    content: '';
    transform: rotate(-3.7deg);
    transform-origin: top left;
}

.patients-legal__preview-image {
    position: absolute;
    top: 10px;
    left: 48px;
    display: block;
    width: 459px;
    height: 388px;
}

.patients-legal__preview-fade {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 124px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.patients-seo-text {
    margin-bottom: 120px;
}

.patients-seo-text .seo-text__title,
.patients-seo-text .seo-text__desc,
.patients-seo-text .seo-text__desc p,
.patients-seo-text .seo-text__content,
.patients-seo-text .seo-text__content h3,
.patients-seo-text .seo-text__content p {
    margin-top: 0;
}

.patients-seo-text .seo-text__title {
    margin-bottom: 40px;
    color: #1c1c1c;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.3;
}

.patients-seo-text .seo-text__desc {
    margin-bottom: 40px;
}

.patients-seo-text .seo-text__desc p,
.patients-seo-text .seo-text__content p {
    margin-bottom: 0;
    color: #1c1c1c;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.patients-seo-text .seo-text__content h3 {
    margin-bottom: 16px;
    color: #1c1c1c;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

.patients-information__groups {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.patients-information__group {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.patients-information__heading {
    display: flex;
    flex: 0 1 24%;
    flex-direction: column;
    gap: 16px;
    max-width: 421px;
    min-width: 0;
}

.patients-information__title,
.patients-information__description,
.patients-accordion__heading,
.patients-accordion__content p,
.patients-accordion__content ul,
.patients-accordion__content ol {
    margin: 0;
}

.patients-information__title {
    color: #1c1c1c;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
}

.patients-information__description {
    color: #707070;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.patients-information__accordions {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.patients-accordion {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background-color: #ededed;
}

.patients-accordion__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 61px;
    margin: 0;
    padding: 16px 24px;
    border: 0;
    color: #1c1c1c;
    background: transparent;
    font-family: inherit;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.patients-accordion__button:focus-visible {
    outline: 2px solid #9acc35;
    outline-offset: -4px;
}

.patients-accordion__title {
    flex: 1 1 auto;
    min-width: 0;
}

.patients-accordion__icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: url('../images/patients-accordion-arrow.svg') no-repeat center / 24px 24px;
    transform: rotate(0deg);
    transition: transform 300ms ease;
}

.patients-accordion__button[aria-expanded="true"] .patients-accordion__icon {
    transform: rotate(180deg);
}

.patients-accordion__content {
    padding: 8px 24px 24px;
    color: #1c1c1c;
    font-family: "Geist", "Golos Text", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.patients-accordion__content p + p,
.patients-accordion__content p + ul,
.patients-accordion__content p + ol,
.patients-accordion__content ul + p,
.patients-accordion__content ol + p {
    margin-top: 8px;
}

.patients-accordion__content ul,
.patients-accordion__content ol {
    padding-left: 24px;
}

.patients-accordion__content ul,
.patients-accordion__content ul li {
    list-style: disc;
}

.patients-accordion__content ol,
.patients-accordion__content ol li {
    list-style: decimal;
}

.patients-accordion__content li + li {
    margin-top: 8px;
}

.patients-accordion__content strong {
    font-weight: 600;
}

@media (max-width: 1024px) {
    .patients-information__group {
        flex-direction: column;
    }

    .patients-information__heading {
        flex-basis: auto;
        max-width: none;
    }

    .patients-information__accordions {
        width: 100%;
    }

    .patients-legal__body {
        flex-direction: column;
    }

    .patients-legal__documents {
        width: 100%;
        flex-basis: auto;
    }

    .patients-legal__preview {
        order: -1;
        flex-basis: auto;
        align-self: center;
    }
}

@media (max-width: 640px) {
    .patients-page__intro {
        padding: 16px 0 80px;
    }

    .patients-page .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .patients-page .bread-crumbs {
        margin-bottom: 48px;
    }

    .patients-page .bread-crumbs__item,
    .patients-page .bread-crumbs__item-unactive {
        font-size: 12px;
    }

    .patients-page__title {
        font-size: 40px;
        line-height: 1.1;
    }

    .patients-information {
        margin-bottom: 64px;
    }

    .patients-entry-form {
        margin-bottom: 46px;
    }

    .patients-legal {
        margin-bottom: 64px;
    }

    .patients-legal__title {
        margin-bottom: 24px;
        font-size: 24px;
        line-height: 1.2;
    }

    .patients-legal__body {
        gap: 24px;
    }

    .patients-legal__preview {
        width: 100%;
        max-width: 343px;
        height: 239px;
    }

    .patients-legal__preview::before {
        top: 26px;
        left: 38px;
        width: 222px;
        height: 315px;
        border-radius: 7px;
    }

    .patients-legal__preview-image {
        top: 0;
        left: 24px;
        width: 263px;
        height: auto;
    }

    .patients-legal__preview-fade {
        height: 94px;
    }

    .patients-legal__documents {
        gap: 8px;
    }

    .patients-legal__document {
        flex-basis: 100%;
        width: 100%;
    }

    .patients-legal__document-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .patients-legal__document-icon img {
        width: 40px;
        height: 40px;
    }

    .patients-legal__document-title {
        font-size: 16px;
    }

    .patients-legal__document-meta {
        font-size: 14px;
    }

    .patients-seo-text {
        margin-bottom: 80px;
    }

    .patients-seo-text .seo-text__title {
        margin-bottom: 24px;
        font-size: 24px;
        line-height: 1.2;
    }

    .patients-seo-text .seo-text__desc {
        margin-bottom: 24px;
    }

    .patients-seo-text .seo-text__content h3 {
        margin-bottom: 12px;
        font-size: 18px;
        line-height: 1.2;
    }

    .patients-information__groups {
        gap: 40px;
    }

    .patients-information__group {
        gap: 24px;
    }

    .patients-information__heading {
        gap: 8px;
    }

    .patients-information__title {
        font-size: 24px;
    }

    .patients-information__description {
        font-size: 16px;
    }

    .patients-accordion__button {
        align-items: flex-start;
        gap: 16px;
        min-height: 56px;
        padding: 16px;
        font-size: 18px;
    }

    .patients-accordion__content {
        padding: 0 16px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .patients-accordion__icon {
        transition: none;
    }
}
