@import url("new_roddom.css");
@import url("new_translator.css");
@import url("online-record.css");
@import url("new_hospitalization.css");
@import url("new_record_search.css");

body {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 81px)
}

#layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: calc(100vh - 81px)
}

.blur-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.record_sendSms {
    width: 230px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.record_back__icon{
    margin-right: 5px;
}

.confirm_record__layout .approval_radio{
    max-width: 100%;

}

.approval_radio{
    margin-bottom: 15px;
    max-width: 350px
}

.choice {
    /* font-family: var(--bold-font); */
    max-width: 1168px;
    margin: 0 auto;
}

@media (max-width: 1198px) {
    .choice {
        padding: 0 20px;
    }
}

.choice>h1 {
    font-weight: 400;
    font-size: 40px;
    color: #232427;
    margin-bottom: 40px;
}

.choice>.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 160px;
}

@media (max-width: 1100px) {
    .choice>.grid {
        grid-template-columns: 1fr 1fr;
    }
}

.grid>.grid__service {
    background: #F4F5F7;
    height: 200px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    cursor: pointer;
    font-family: var(--bold-font);
    font-weight: 400;
    line-height: 19px;
    font-size: 16px;
    text-transform: none;
    color: #000;
    user-select: none;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.grid>.grid__service>p {
    font-family: var(--medium-font);
    max-width: 140px;
    margin-bottom: 24px;
    margin-left: 24px;
    font-weight: 400;
}

.grid>.grid__service:hover {
    border-color: var(--main-color);
    color: var(--main-color)
}

/* Стили для отключенного блока */
.grid>.grid__service--disabled {
    background: #E5E5E5;
    opacity: 0.6;
    cursor: not-allowed;
    color: #999;
}

.grid>.grid__service--disabled:hover {
    border-color: transparent;
    color: #999;
}

.grid>.grid__service--disabled > p {
    color: #999;
}

.grid>.grid__service--disabled > img {
    opacity: 0.5;
    filter: grayscale(100%);
}

@media (max-width: 500px) {
    .choice>h1 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .choice>.grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .grid>.grid__service {
        height: 100px;
        font-size: 16px;
        font-family: var(--regular-font);
    }

    .grid__service > img {
        width: 100px;
    }
}

.record-footer {
    background-color: #50606E;
    padding: 40px 0;
    margin-top: auto;
}

/* Desktop version - показываем на больших экранах */
.record-footer__desktop {
    display: block;
}

.record-footer__mobile {
    display: none;
}

.record-footer__container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
    padding: 0 50px;
}

.record-footer__copyright {
    font-family: var(--regular-font);
    font-size: 12px;
    line-height: 20px;
    color: #95A6B3;
    margin-bottom: 15px;
}

.record-footer__policy {
    font-family: var(--regular-font);
    font-size: 12px;
    line-height: 20px;
    max-width: 568px;
    color: #FFF;
}

.record-footer__link {
    color: #909EAA;
    text-decoration: none;
    transition: color 0.3s;
}

.record-footer__link:hover {
    color: var(--light-color, #FFF);
}

/* Mobile version styles */
.record-footer__mobile-container {
    padding: 30px 20px;
    background-color: #50606E;
}

.record-footer__mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 30px;
}

.record-footer__mobile-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.record-footer__mobile-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.record-footer__mobile-link {
    font-family: var(--regular-font);
    font-size: 16px;
    line-height: 24px;
    color: #FFF;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.record-footer__mobile-link:hover {
    color: var(--main-color, #FE5403);
}

.record-footer__mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.record-footer__mobile-email {
    font-family: var(--regular-font);
    font-size: 16px;
    line-height: 24px;
    color: #FFF;
    text-decoration: none;
}

.record-footer__mobile-director {
    font-family: var(--medium-font);
    font-size: 16px;
    line-height: 24px;
    color: var(--main-color, #FE5403);
    text-decoration: none;
    transition: opacity 0.3s;
}

.record-footer__mobile-director:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .record-footer {
        padding: 0;
    }

    /* Hide desktop, show mobile */
    .record-footer__desktop {
        display: none;
    }

    .record-footer__mobile {
        display: block;
    }
}
