:root {
    --default-font-size: 18px;
    --default-font-color: black;
    --default-bar-height: 100vh;
    --background-color: #f7f7f7; /* Цвет белого мрамора */
    --navbar-background-color: #121212; /* Темный фон для навигационной панели */
    --default-text-block-width: 80%;
    --default-text-weight: normal;
    --default-text-style: normal;
    --fixed-text-color: #e6ccff; /* Цвет фиолетовой сирени */
    --default-line-height: 1.5;
    --text-block-width: 80%;
    --text-size: 20px;
    --text-color: #333; /* Черный цвет текста */
    --text-weight: bold;
    --text-style: normal;
    --line-height: 1.6;
    --spacing: 5vh;
    --content-spacing: 10vh;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    color: var(--default-font-color);
    text-align: center;
    font-size: var(--default-font-size);
    background-color: var(--background-color);
    line-height: var(--default-line-height);
}

.fixed-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--navbar-background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.fixed-text {
    color: var(--fixed-text-color);
    font-size: 24px;
    font-weight: bold;
    margin-right: auto;
}

.fixed-bar nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.fixed-bar nav a {
    margin: 0 15px;
    color: white; /* Белый цвет кнопок */
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.fixed-bar nav a:hover {
    text-decoration: underline;
}

.header-content {
    height: var(--default-bar-height);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 60px;
}

.content-wrapper {
    background-color: var(--background-color);
    padding: var(--content-spacing) 0;
}

.text-block {
    width: var(--text-block-width);
    margin: var(--content-spacing) auto;
    font-size: var(--text-size);
    color: var(--text-color);
    font-weight: var(--text-weight);
    font-style: var(--text-style);
    line-height: var(--line-height);
}

.text-block h2 {
    text-align: center;
}

.text-block p {
    text-align: justify;
}

.text-block-left-aligned {
    text-align: left;
}

.file-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: var(--content-spacing) 0;
}

.file-block img {
    width: 100%; /* Изображения на всю ширину */
    height: auto;
}

.text-block-angled {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(14deg);
    color: white;
    font-size: 2em;
    background-color: transparent;
}

.text-block-angled-lower {
    position: absolute;
    top: calc(70% + 10vh);
    left: 50%;
    transform: translate(-50%, -50%) rotate(14deg);
    color: white;
    font-size: 2em;
    background-color: transparent;
}

.document-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-left: 20px;
    vertical-align: middle;
}

.justify-text {
    text-align: justify;
}

/* Стили для панели на странице Услуги */
.panel {
    display: flex;
    height: auto; /* Высота по содержимому */
    width: 100%;
    background-color: lightblue;
    border-radius: 10px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
}

.panel-left, .panel-right {
    width: 100%; /* Полная ширина для мобильных устройств */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.info-box, .service-box, .button-box {
    width: 100%;
    background-color: #f7f7f7;
    border-radius: 5px;
    margin: 10px 0;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

.info-box input, .button-box button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
}

.info-box input {
    font-weight: normal;
}

.info-box div, .service-box div, .service-box button, .button-box button {
    font-weight: bold;
}

.service-box button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    background-color: #f7f7f7;
    color: black;
    cursor: pointer;
    box-sizing: border-box;
}

.service-box .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 10;
    box-sizing: border-box;
}

.service-box .dropdown button {
    width: 100%;
    background: none;
    border: none;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-sizing: border-box;
}

.service-box .dropdown button:hover {
    background-color: #f0f0f0;
}

.button-box button {
    width: 100%;
    background-color: ivory;
    color: black;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.error {
    border: 1px solid red !important;
}

.error-message {
    display: none;
}

/* Медиазапросы для адаптивности */
@media (max-width: 768px) {
    .fixed-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .fixed-bar nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .fixed-bar nav a {
        margin: 5px 0;
        font-size: 16px;
    }

    .panel {
        flex-direction: column;
        height: auto;
    }

    .panel-left, .panel-right {
        width: 100%;
    }

    .info-box input, .button-box button {
        font-size: 14px;
        padding: 8px;
    }

    .service-box button {
        font-size: 14px;
        padding: 8px;
    }

    .service-box .dropdown button {
        font-size: 14px;
        padding: 8px;
    }

    .text-block {
        font-size: 18px;
    }

    .file-block img {
        height: auto;
        width: 100%;
    }
}
