* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    width: 100%;
    padding: 18px 30px;
    border-bottom: 1px solid #dddddd;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 25px;
}

.brand {
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.search-form {
    display: flex;
    gap: 6px;
}

.search-form input {
    width: 220px;
    padding: 9px 10px;
    border: 1px solid #bbbbbb;
}

.search-form button,
.contact-form button {
    padding: 9px 14px;
    border: 1px solid #999999;
    background: #eeeeee;
    cursor: pointer;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.toolbar a {
    padding: 8px 11px;
    border: 1px solid #cccccc;
    background: #f7f7f7;
}

.toolbar a:hover,
.toolbar a.active {
    background: #e5e5e5;
}

.main-content {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 30px 0 50px;
}

.hero {
    text-align: center;
    margin-bottom: 14px;
}

.slider {
    position: relative;
    width: min(1000px, 100%);
    height: 430px;
    margin: 0 auto;

    overflow: hidden;

    border: 1px solid #cccccc;
    background: #f3f3f3;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;

    position: relative;

    align-items: center;
    justify-content: center;
}

.slide:first-child {
    display: flex;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #777777;
    font-size: 22px;

    pointer-events: none;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    border: 0;

    background: rgba(0, 0, 0, 0.35);
    color: white;

    font-size: 30px;
    padding: 8px 14px;

    cursor: pointer;
}

.slider-button.previous {
    left: 10px;
}

.slider-button.next {
    right: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
}

.slider-dots button {
    width: 12px;
    height: 12px;

    border-radius: 50%;
    border: 1px solid #777777;

    background: #ffffff;

    cursor: pointer;
}

.text-blocks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

    margin-top: 18px;
}

.text-block {
    min-height: 120px;
    padding: 20px;

    border: 1px solid #dddddd;
}

.contact-area {
    margin-top: 45px;
    padding: 25px;

    border-top: 1px solid #cccccc;
}

.contact-details {
    margin: 15px 0;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;

    gap: 10px;

    max-width: 700px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 11px;

    border: 1px solid #bbbbbb;

    font: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
}

.page {
    min-height: 500px;
}

.page-text {
    min-height: 300px;

    padding: 25px;

    border: 1px solid #dddddd;
}

.search-results,
.message-page {
    min-height: 500px;
}

.site-footer {
    min-height: 60px;
    border-top: 1px solid #dddddd;
}

@media (max-width: 850px) {

    .site-header {
        flex-direction: column;
    }

    .header-right {
        width: 100%;
        align-items: stretch;
    }

    .search-form input {
        flex: 1;
        width: auto;
    }

    .toolbar {
        justify-content: flex-start;
    }

    .text-blocks {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider {
        height: 350px;
    }
}

@media (max-width: 550px) {

    .site-header {
        padding: 15px;
    }

    .main-content {
        width: 94%;
    }

    .text-blocks {
        grid-template-columns: 1fr;
    }

    .slider {
        height: 260px;
    }

    .toolbar a {
        flex: 1 1 auto;
        text-align: center;
    }
}
