* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

figure {
    margin: 0;
}

.home-image-gallery {
    margin-bottom: 0;
}

.home-image-gallery img {
    border-radius: 8px;
}

.home-image-gallery:hover {
    cursor: pointer;
}

.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.mastheader {
    background: #2c3e50;
    color: white;
    padding: 10px 0;
}

.header-title {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.site-title {
    text-align: center;
    color: white;
    text-decoration: none;
    font-size: 3em;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.site-description {
    color: #ecf0f1;
    font-size: 2em;
    letter-spacing: 3px;
    margin-top: -5px;
    margin-bottom: 0;
    font-weight: 300;
}

.bottom-header {
    background: #34495e;
    padding: 0;
    display: flex;
    justify-content: center;
    transition: transform 0.5s;
}

.primary-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 0;
}

.primary-menu a {
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    display: block;
    transition: background 0.3s;
}

.primary-menu a:hover,
.primary-menu .active a {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
}

.main-content-area-wrap {
    padding-top: 10px;
    min-height: 60vh;
}

.page-title h1 {
    font-size: 2.5em;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.default-page-content-area {
    padding: 10px 20px 20px;
}

.modalHomeGallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    cursor: zoom-out;
}

.content {
    position: sticky;
    top: 0;
    padding-left: 38px;
    margin-bottom: 1rem;
}

.content-title {
    /*margin-left: 40px;*/
}

.content-title h3 {
    font-size: 1.5em;
    width: fit-content;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.sidebar-title h3 {
    width: fit-content;
    font-size: 1.2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    /*border-bottom: 2px solid #ecf0f1;*/
}

.content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.block-image {
    padding-left: 38px;
    padding-right: 38px;
}

.block-image img {
    max-width: 100%;
    height: auto;
    /*border-radius: 8px;*/
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.block-list {
    background: #ecf0f1;
    padding: 20px;
    /*border-radius: 10px;*/
    margin: 20px 35px;
}

.block-list li {
    margin-bottom: 10px;
    padding-left: 5px;
    position: relative;
    font-size: 1.5em;
    font-weight: 300;
}

.block-gallery, .block-gallery-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 5px;
    margin-bottom: 20px;
}

.block-gallery {
    padding-right: 38px;
}

.block-gallery img, .block-gallery-home img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.block-gallery img:hover, .block-gallery-home img:hover {
    cursor: pointer;
    transform: scale(1.05);
}


.block-gallery-home {
    margin: 0 38px 20px;
}

.footer {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-top: 0;
}

.contacts-info {
    text-align: center;
}

.contacts-info p {
    margin-bottom: 10px;
}

.contacts-info a {
    font-size: 1.5em;
    color: white;
    text-decoration: none;
}

.copyright-info a:hover {
    text-decoration: underline;
}

.phone-footer {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.address-footer {
    font-size: 1.2em;
    font-weight: 300;
}

.copyright {
    margin-top: 15px;
    font-size: 10px;
    /* Дополнительные стили, если нужны */
}

.form-wrap {
    margin: 10px 38px 10px 0;
    padding: 10px 20px 10px 20px;
    background: #2c3e50;
    border-radius: 8px;
}

.form-wrap label {
    color: white;
}

.form-control-wrap input {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.textarea {
    resize: vertical;
    font-family: inherit;
}

.submit {
    background-color: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit:hover {
    background-color: #005a87;
}

.error {
    color: #dc3232;
    font-size: 14px;
    margin: 5px 0;
}

.response-output {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.response-output.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.response-output.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.list-item input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
}

.list-item-label {
    font-size: 14px;
}

.your-accept-label a {
    color: white;
    text-decoration: none;
    font-weight: 300;
    transition: 1s;
}

.your-accept-label a:hover {
    opacity: 95%;
    transition: 1s;
}

.form-control-input {
    margin-bottom: 10px;
}

.form-control-button {
    display: flex;
    justify-content: center;
}


@media (max-width: 1200px) {
    .site-title {
        line-height: 1.2;
    }

    .primary-menu {
        /*flex-direction: column;*/
        align-items: center;
        gap: 0;
    }

    .page-title h1 {
        font-size: 1.8em;
    }

    .block-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .content {
        padding-left: 0;
    }

    .primary-menu {
        padding-left: 0;
    }

    .block-image {
        padding: 0;
    }

    .block-list, .block-gallery-home {
        margin-left: 0;
        margin-right: 0;
    }

    .block-gallery {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .site-title {
        font-size: 2.5em;
    }

    .form-wrap {
        margin-right: 0;
    }

    .col-lg-4,
    .col-lg-8 {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .col-lg-4,
    .col-lg-8 {
        flex: 0 0 100%;
    }

    .block-list li {
        font-size: 1.2em;
    }

    .header-title {
        width: 80%;
        margin-bottom: 0;
    }

    .site-title {
        font-size: 2.0em;
    }

    .content-title h3 {
        font-size: 1.2em;
    }

    .mastheader {
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
    }

    .mastheader button {
        z-index: 5;
    }

    .bottom-header {
        position: absolute;
        align-items: flex-start !important;
        padding-top: 10px;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #2c3e50;
        z-index: 3;
        transition: transform 0.5s;
    }

    .primary-menu {
        font-size: 1.5em;
    }

    .contacts-info {
        padding-left: 25px;
        padding-right: 25px;
    }

    .contacts-info a {
        white-space: nowrap;
    }
}
