html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
    font-size: 1.3rem;
    line-height: 1.6;
    padding-top: 80px; /* Учитываем высоту фиксированного хедера */
}
.logo-container-big{
    display: flex;
    justify-content:space-between !important;
    min-width: 100%;
}

@font-face {
    font-family: "Roboto";
    src: url(/visually_impaired/fonts/Roboto.ttf);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 64px);
    z-index: 1000;
    transition: top 0.3s ease-in-out;
}

/* Класс для скрытия хедера при прокрутке вниз */
header.hidden {
    top: -115px;
}

/* Логотип */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 214px;
}

/* Навигация */
header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

header nav a {
    font-family: 'Roboto';
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: all 0.3s ease;
}

header nav a:hover {
    color: #621717;
}

header nav .highlight {
    background-color: #252122CC; /* Цвет кнопки без наведения */
    color: white; /* Белый текст */
    padding: 0.5rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav .highlight:hover {
    background-color: #621717; /* Цвет кнопки при наведении */
    color: white; /* Белый текст при наведении */
}

/* Бургер-меню */
.burger {
    margin-left: auto;
    width: 25px;
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    transition: right 0.3s ease;
}

.mobile-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.mobile-menu a.highlight {
    background-color: #252122CC; /* Цвет кнопки без наведения */
    color: white; /* Белый текст */
    padding: 0.5rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    text-align: center;
    width: fit-content;
}

.mobile-menu a.highlight:hover {
    background-color: #621717; /* Цвет кнопки при наведении */
    color: white; /* Белый текст при наведении */
}

.mobile-menu.open {
    right: 0;
}

.close-menu {
    align-self: flex-end;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color: #555;
}

/* Контент */
main {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

h1 {
    font-family: 'Roboto';
    text-align: center;
    color: black;
    font-size: 64px;
    margin-bottom: 2rem;
    font-weight: 700;
}

.room {
    margin-bottom: 8rem;
}

.room h2 {
    font-family: 'Roboto';
    font-size: 50px;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 120%;
    color: black;
}

.room p {
    font-family: 'Roboto';
    font-weight: 700;
    font-size: 30px;
    line-height: 150%;
    margin-bottom: 1rem;
    text-align: left;
    color: black;
}

.room button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-family: 'Roboto';
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    color: #fff;
    background-color: #252122CC;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.room button:hover {
    background-color: #621717;
}

.services {
    margin-bottom: 8rem;
}

.services h2 {
    font-family: 'Roboto';
    font-size: 50px;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 120%;
    color: black;
}

.services p {
    font-family: 'Roboto';
    font-weight: 700;
    font-size: 30px;
    text-align: justify;
    line-height: 150%;
    margin-bottom: 1rem;
    text-align: left;
    color: black;
}

.services li{
    font-family: 'Roboto';
    font-weight: 700;
    font-size: 30px;
    line-height: 150%;
    color: black;
}

.services button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-family: 'Roboto';
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    color: #fff;
    background-color: #252122CC;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.call-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    color: #fff;
    background-color: #333;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-container {
    display: flex;
    gap: 20px; 
}


.services button:hover {
    background-color: #621717;
}

.burger-container{
    width: 100%;
}
/* запрос для мобильных устройств */
@media (max-width: 1100px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .logo-container {
        flex-direction: column;
        align-items: center;
    }

    .logo-container img {
        width: 214px;
    }

    header{
        flex-direction: row;
    }

    header.hidden {
        top: -180px;
    }

    nav {
        display: none !important;
    }

    .burger {
        display: flex;
    }

    .room h2 {
        font-family: 'Roboto';
        font-size: 50px;
        font-weight: 700;
        line-height: 120%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: left;
    }

    .services h2 {
        font-family: 'Roboto';
        font-size: 50px;
        font-weight: 700;
        line-height: 120%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: left;
    }

}
@media (max-width: 400px) {
    
    h1 {
        font-family: 'Roboto';
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        color: black;
        font-size: 56px;
        margin-bottom: 2rem;
        font-weight: 700;
        line-height: 120%;
    }

    .logo-container img {
        width: 165px;
    }
}
