:root {
    --primary-color: #604D69;
    --text-color: #333;
    --light-bg: #f9f7fa;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(96, 77, 105, 0.1);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    color: var(--primary-color);
    font-weight: normal;
    margin-bottom: 40px;
    text-align: center;
    font-size: 32px;
}

.masonry-container {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.contact-title {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

.contact-item {
    margin-bottom: 12px;
    line-height: 1.5;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.socials {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.icon25 {
    width: 40px;
    height: 40px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.icon25:hover {
    transform: translateY(-3px);
}

#contact_wb {
    background-image: url('/local/templates/olafa/img/contacts/wb.png');
}

#contact_ozon {
    background-image: url('/local/templates/olafa/img/contacts/ozon.png');
}

#contact_telegram {
    background-image: url('/local/templates/olafa/img/contacts/240px-Telegram_logo.svg.png');
}

#contact_whatsapp {
    background-image: url('/local/templates/olafa/img/contacts/240px-WhatsApp.svg.png');
    margin-left: 10px;
}

#contact_vk_image {
    background-image: url('/local/templates/olafa/img/contacts/240px-VK.com-logo.svg.png');
}

.route-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    text-decoration: none;
}

.route-button:hover {
    background: #4a3b52;
}


.showroom-slider {
    position: relative;
    margin-top: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 580px;
    width: 100%;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
}

.slider-slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
    position: relative;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.slider-button {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
    transition: background 0.3s;
    pointer-events: auto;
}

.slider-button:hover {
    background: rgba(255, 255, 255, 0.9);
}

.slider-button svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 1;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: var(--white);
}

.feedback-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    min-height: 100px;
    resize: vertical;
}

.submit-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #4a3b52;
}

.checkbox-group {
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
}

.checkbox-input {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-label {
    font-size: 13px;
    line-height: 1.4;
}

.masonry-item .icon25 {
    width: 40px;
    height: 40px
}

a.link-contact {
    color: blue;
}

.page-contacts-block-form-title-success {
    font-size: 36px;
    line-height: 48px;
    color: green;
}

label.error {
    position: relative;
    font-size: 12px;
}

.stared:after {
    color: #EF4444;
    content: "*";
    font-size: 16px;
}

.error {
    color: #EF4444;
}

.form-group input.error, .form-group select.error, .form-group textarea.error {
    border-color: #EF4444;
}

.form-group.error:focus {
    border-color: #EF4444;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(239, 68, 68, 0.6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(239, 68, 68, 0.6);
}

@media (max-width: 900px) {
    .masonry-container {
        column-count: 2;
    }

    .showroom-slider {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .masonry-container {
        column-count: 1;
    }

    .showroom-slider {
        height: 375px;
    }

    .slider-button {
        width: 30px;
        height: 30px;
    }

    .slider-button svg {
        width: 15px;
        height: 15px;
    }
}


@media (max-width: 900px) {
    .masonry-container {
        column-count: 2;
    }

    .showroom-slider {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .masonry-container {
        column-count: 1;
    }

    .showroom-slider {
        height: 375px;
    }

    .slider-button {
        width: 30px;
        height: 30px;
    }

    .slider-button svg {
        width: 15px;
        height: 15px;
    }
}


.rum1 {
    background: linear-gradient(45deg, rgb(255 255 255) 0%, rgb(247 247 247) 25%, rgb(255 255 255) 50%, rgb(255 255 255) 75%, rgb(247 204 227) 100%);
}

.rum2 {
    background: linear-gradient(45deg, rgb(255 255 255) 0%, rgb(247 247 247) 25%, rgb(255 255 255) 50%, rgb(255 255 255) 75%, rgb(247 204 227) 100%);
}


/* Прелоадер */
/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f7fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInScale 1s ease-out forwards 0.3s;
}

.preloader-content {
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards 0.6s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-title {
    font-family: "Montserrat", sans-serif;
    color: #604D69;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
}

.preloader-subtitle {
    font-family: "Montserrat", sans-serif;
    color: #888;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #604D69;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-sizing: border-box;
}

.spinner-circle:nth-child(1) {
    width: 100%;
    height: 100%;
    border-top-color: #604D69;
}

.spinner-circle:nth-child(2) {
    width: 70%;
    height: 70%;
    border-top-color: #c7a8d1;
    animation-delay: 0.2s;
}

.spinner-circle:nth-child(3) {
    width: 40%;
    height: 40%;
    border-top-color: #e8cfe6;
    animation-delay: 0.4s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}