.contacts {
    color: #281D18;
    background: #FFFEF9;
}

/* Хлебные крошки */
.contacts__breadcrumbs {
    margin: 20px 20px 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(40, 29, 24, 0.5);
    font-size: 12px;
    text-transform: uppercase;
}

.contacts__breadcrumbs a {
    color: rgba(40, 29, 24, 0.8);
    text-decoration: none;
}

/* Заголовки */
.contacts__title {
    color: #281D18;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 20px;
    margin-bottom: 20px;
}

.contacts__subtitle {
    font-family: 'Bounded';
    color: #281D18;
    font-size: 48px;
    font-weight: 400;
    text-transform: uppercase;
    margin-left: 20px;
    margin-bottom: 50px;
}

/* Cлайдер, основные ссылки и карта */
.contacts__info {
    display: flex;
    gap: 55px;
    padding: 0 20px;
    margin-bottom: 95px;
    box-sizing: border-box;
}

/* Слайдер */
.contacts__slider {
    flex: 0 0 45%;
    width: 45%;
    position: relative;
}

.contacts__slider .swiper {
    width: 100%;
    height: 100%;
}

.contacts__swiper-slide img, .contacts__swiper-slide video {
    width: 100%;
    height: 100%;
    aspect-ratio: 0.65;
    object-fit: cover;
    display: block;
}

.contacts__swiper-pagination {
    position: absolute;
    bottom: -10px !important;
    left: 50% !important;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.contacts__swiper-pagination .swiper-pagination-bullet {
    width: 62px;
    height: 3px;
    background: rgba(40, 29, 24, 0.2);
    border-radius: 0;
    opacity: 1;
    transition: all 0.4s ease;
    margin: 0 !important;
}

.contacts__swiper-pagination .swiper-pagination-bullet-active {
    width: 155px;
}

/* Основные ссылки и карта */
.contacts__links {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contacts__logo {
    margin-top: -60px;
    margin-left: -25px;
}

.contacts__socials {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 30px;
    margin-bottom: 50px;
}

.contacts__social {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: rgba(40, 29, 24, 0.6);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.contacts__social-value {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #281D18;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

/* Кнопка */
.contacts__btn {
    width: 100%;
    height: 45px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #281D18;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    border: 1px solid #281D18;
    overflow: hidden;
}

.contacts__btn span {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.contacts__btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #281D18;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 0;
}

.contacts__btn:hover::after {
    transform: scaleX(1);
}

.contacts__btn:hover span {
    color: #FFFEF9;
}

/* Карта */
.contacts__map {
    flex: 1;
    width: 100%;
    background: #F3EFE4;
    filter: grayscale(100%) brightness(70%) contrast(130%);
}

/* Карточки плитки */
.contacts__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 620px);
}

.contacts__card {
    position: relative;
}

.contacts__card--mobile {
    display: none;
}

.contacts__card--links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 13px;
    color: #FFFEF9;
    text-transform: uppercase;
    background: #281D18;
}

.contacts__card-bg {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.contacts__card-bg img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: all .4s ease;
}

.contacts__card:has(.contacts__card-link:hover) .contacts__card-bg img {
  transform: scale(1.1);
}

.contacts__card-content {
    position: absolute;
    top: 50px;
    left: 50px;
    color: #FFFEF9;
    text-transform: uppercase;
}

.contacts__card-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.contacts__card-title {
    font-family: 'Bounded';
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 10px;
}

.contacts__card--links .contacts__card-title {
    font-family: 'Montserrat';
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 27px;
}

.contacts__card-info {
    font-weight: 500;
    line-height: 22px;
    margin-bottom: 20px;
}

ul.contacts__card-info {
    display: flex;
    gap: 5px;
    list-style: none;
}

ul.contacts__card-info li:not(:last-of-type):after {
    content: '/';
    margin-left: 5px;
}

.contacts__card-link {
    max-width: 360px;
    color: #FFFEF9;
    border: 1px solid #FFFEF9;
}

.contacts__card--links .contacts__card-link {
    max-width: 300px;
}

.contacts__card-link::after {
    background: #FFFEF9;
}

.contacts__card-link:hover span {
    color: #281D18;
}

.contacts__form-wrapper {
    padding: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contacts__form {
    width: 100%;
    max-width: 770px;
}

.contacts__form-title {
    color: #281D18;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contacts__textarea {
    padding-top: 20px;
    line-height: 1.4;
    box-sizing: border-box;
    resize: none;
}

.contacts__input,
.contacts__textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(62, 52, 47, 0.2);
    height: 60px;
    font-size: 14px;
    outline: none;
    background: none;
}

.contacts__input::placeholder,
.contacts__textarea::placeholder {
    color: rgba(40, 29, 24, 0.6);
}

.contacts__form-btn {
    max-width: 300px;
    margin-top: 20px;
    margin-bottom: 15px;
    cursor: pointer;
}

.contacts__agree {
    width: 295px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    cursor: pointer;
    color: rgba(40, 29, 24, 0.6);
}

.contacts__agree input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 1px solid #281D18;
    background: #FFFEF9;
    cursor: pointer;
    appearance: none;
    position: relative;
    margin-top: 2px;
    transition: background 0.3s, border 0.3s;
}

.contacts__agree input[type="checkbox"]:checked {
    background: #281D18;
}

.contacts__agree input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    color: #FFFEF9;
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 1440px) {
    .contacts__slider {
        flex: 0 0 25%;
        width: 25%;
    }
}

@media (max-width: 1024px) {
    .contacts__info {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, 50%);
        gap: 55px 0;
    }

    .contacts__links {
        order: -1;
        grid-column: 1 / -1;
    }

    .contacts__slider {
        width: 100%;
    }
    
    .contacts__cards {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(4, 500px);
    }
}

@media (max-width: 768px) {
    /* Хлебные крошки */
    .contacts__breadcrumbs {
        margin: 15px 15px 25px;
        gap: 5px;
    }

    /* Заголовки */
    .contacts__title {
        font-size: 16px;
        margin-left: 15px;
        margin-bottom: 10px;
    }

    .contacts__subtitle {
        font-size: 20px;
        margin-left: 15px;
        margin-bottom: 40px;
    }

    /* Cлайдер, основные ссылки и карта */
    .contacts__info {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 0 15px;
        margin-bottom: 20px;
    }

    /* Слайдер */
    .contacts__slider {
        width: 100%;
    }

    /* Основные ссылки и карта */
    .contacts__logo {
        display: none;
    }

    .contacts__socials {
        margin-bottom: 40px;
    }

    .contacts__social-value {
        font-size: 14px;
    }

    .contacts__social-value svg {
        width: 19px;
        height: auto;
    }

    .contacts__btn--delivery {
        max-width: 280px;
    }

    /* Кнопка */
    .contacts__btn {
        width: 100%;
        height: 40px;
        font-size: 12px;
        font-weight: 400;
    }

    /* Карточки плитки */
    .contacts__card--links {
        gap: 10px;
    }

    .contacts__card--desktop {
        display: none;
    }

    .contacts__card--mobile {
        display: flex;
    }

    .contacts__card-bg {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .contacts__card-content {
        top: 30px;
        left: 15px;
    }

    .contacts__card--mobile .contacts__card-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .contacts__card-label {
        gap: 5px;
        font-size: 10px;
        margin-bottom: 12px;
    }

    .contacts__card--mobile .contacts__card-label {
        justify-content: center;
    }

    .contacts__card-label svg {
        width: 12px;
        height: auto;
    }

    .contacts__card-title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .contacts__card--links .contacts__card-title {
        font-size: 16px;
        font-weight: 400;
        margin-bottom: 10px;
    }

    .contacts__card-info {
        line-height: normal;
        margin-bottom: 14px;
    }

    ul.contacts__card-info {
        flex-direction: column;
        list-style: disc;
        padding-left: 20px;
    }

    ul.contacts__card-info li:not(:last-of-type):after {
        content: '';
    }

    .contacts__card-link {
        width: 210px;
    }

    .contacts__card--links .contacts__card-link {
        width: 210px;
    }

    .contacts__form-wrapper {
        padding: 60px 15px;
    }

    .contacts__form-title {
        font-size: 14px;
    }

    .contacts__textarea {
        padding-top: 15px;
    }

    .contacts__input,
    .contacts__textarea {
        height: 50px;
    }

    .contacts__form-btn {
        max-width: 245px;
    }
}


.contacts__agree-text a {
    text-decoration: underline;
    color: #281D18;
}