:where([class^="ri-"])::before {
    content: "\f3c2";
}

body {
    font-family: 'Roboto', sans-serif;
    color: #2F1810;
    background-color: #FFF8DC;
}

h1,
h2,
h3,
h4 {
    font-family: 'Pacifico', serif;
}

.subheading {
    font-family: 'Montserrat', sans-serif;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #8B4513;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
}

.custom-checkbox:checked {
    background-color: #8B4513;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #8B4513;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
}

.custom-radio:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #8B4513;
}

:root {
    --slider-overlap: 25px;
    /* 10% от макс. ширины 260px */
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

/* Hero Vertical Slider */
#hero-slider {
    perspective: 1000px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
}

.slider-item {
    position: absolute;
    width: auto;
    max-width: 220px;
    /* Немного уменьшим для двух колонок */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    /* Усилим тень для лучшего разделения при наложении */
    overflow: hidden;
    will-change: transform;
    background: white;
    padding: 2px;
    /* Минимальный внутренний отступ */
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

@media (min-width: 1280px) {
    .slider-item {
        max-width: 260px;
    }
}

.slider-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    /* Сохраняем пропорции без обрезки */
}

/* Loader for slider */
#hero-slider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 69, 19, 0.1);
    border-top-color: #8B4513;
    border-radius: 50%;
    animation: slider-spin 1s linear infinite;
    z-index: 0;
}

#hero-slider.loaded::before {
    display: none;
}

@keyframes slider-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #8B4513;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8B4513;
    cursor: pointer;
}

.custom-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8B4513;
    cursor: pointer;
    border: none;
}




@media (min-width: 768px) {
    .primery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.template-option {
    position: relative;
}

.template-option .galka {
    position: absolute;
    bottom: 15px;
    left: -8px;
}


.preloader-4 {
    position: relative;
    display: grid;
    grid-template-columns: 33% 33% 33%;
    grid-gap: 2px;
    width: 100px;
    height: 100px;
    margin: 30px auto;
}

.preloader-4>div {
    position: relative;
    width: 100%;
    height: 100%;
    background: #8b4513;
    transform: scale(0);
    transform-origin: center center;
    animation: preloader-4-anim 2s infinite linear;
}

.preloader-4>div:nth-of-type(1),
.preloader-4>div:nth-of-type(5),
.preloader-4>div:nth-of-type(9) {
    animation-delay: 0.4s;
}

.preloader-4>div:nth-of-type(4),
.preloader-4>div:nth-of-type(8) {
    animation-delay: 0.2s;
}

.preloader-4>div:nth-of-type(2),
.preloader-4>div:nth-of-type(6) {
    animation-delay: 0.6s;
}

.preloader-4>div:nth-of-type(3) {
    animation-delay: 0.8s;
}

@keyframes preloader-4-anim {
    0% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }

    80% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

.preloader-4_ {
    width: 100%;
    height: 100%;
    position: absolute;
    background: #000000a6;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
}

.pozd_samim {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.dlina_pozdrav {
    height: 0px;
    opacity: 0;
    transition: 0.3s;
}

.show_dlina_pozdrav {
    height: 122px;
    opacity: 1;
}

a[href="#sami"] {
    color: #ff325b;
    font-size: 14px;
    text-decoration: underline;
}

div#samitxt {
    border: 1px solid #ff325b57;
    border-radius: 3px;
    padding: 0 5px;
    color: #ff325bb5;
    background: white;
    position: absolute;
    top: 22%;
    display: none;
}

span#timetext {
    position: absolute;
    left: calc(51% - 60px);
    bottom: -6px;
    font-size: 10px;
    color: gray;
}

.messaners {
    display: flex;
    flex-direction: column;
}

.messrs {
    bottom: 5px;
    position: relative;
}

#faq {
    padding-bottom: 45px;
}

#faq .container {
    max-width: 840px;
}

#faq .flex {
    flex-direction: column;
    margin-bottom: 1.75rem;
}


#blog {
    background-color: unset;
}

.ShowWorkModal {
    cursor: pointer;
}

.primery2 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stylish subtitle block */
.stylish-subtitle {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #c44569 100%);
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-block;
    box-shadow:
        0 8px 32px rgba(238, 90, 36, 0.4),
        0 4px 0 rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transform: skewX(-5deg);
    transition: all 0.3s ease;
}

.stylish-subtitle:hover {
    transform: skewX(-5deg) translateY(-2px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(238, 90, 36, 0.5),
        0 6px 0 rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stylish-subtitle-text {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
    transform: skewX(5deg);
    position: relative;
    z-index: 1;
}

@media (max-width: 678px) {
    .stylish-subtitle-text {
        font-size: 14px;
    }

    p.modern-highlight-block-text.text-white {
        font-size: 17px;
        line-height: 22px;
    }

    .modern-highlight-block {
        padding: 11px;
    }

    .mainh1 {
        padding-top: 23px;
    }
}


/* Modern highlight block */
.modern-highlight-block {
    background: linear-gradient(135deg, #00d26a 0%, #00b894 50%, #00cec9 100%);
    border-radius: 20px;
    padding: 24px 28px;
    margin-top: 35px;
    box-shadow:
        0 10px 40px rgba(0, 210, 106, 0.3),
        0 4px 0 rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-highlight-block:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px rgba(0, 210, 106, 0.4),
        0 8px 0 rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}



.modern-highlight-block-text {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.modern-highlight-block-highlight {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 10px;
    border-radius: 8px;
    font-weight: 700;
}

.modern-highlight-block-wow {
    font-size: 1.3em;
    font-weight: 800;
    background: linear-gradient(to right, rgb(255 29 29), rgb(24 0 255)) text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-highlight-block-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}