/* Local-only tariff cards: equal heights, aligned titles, split daily prices */

.tariff__items {
	align-items: stretch;
}

.tariff__item {
	display: flex;
	flex-direction: column;
}

.tariff__item-top {
	flex: 0 0 auto;
	width: 100%;
	min-height: 230px;
	align-items: stretch;
	justify-content: flex-start;
	box-sizing: border-box;
}

.tariff__item-title {
	width: 100%;
	margin-top: 0;
	flex-shrink: 0;
	text-align: center;
}

.tariff__item-top > .tariff__item-price,
.tariff__item-top > .tariff__item-price-row {
	margin-top: auto;
	margin-bottom: auto;
	width: 100%;
	text-align: center;
}

.tariff__item-bottom {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.tariff__item .btn {
	margin-top: auto;
	margin-left: auto;
	margin-right: auto;
}

.tariff__item-price-row--dual {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: center;
	width: 100%;
	margin-top: 4px;
}

.tariff__item-price-row--dual .tariff__item-price {
	flex: 1 1 0;
	width: 50%;
	max-width: 50%;
	margin-right: 0;
	padding: 0 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
}

.tariff__item-price-row--dual .tariff__item-price:not(:last-child) {
	margin-right: 0;
}

.tariff__item-price-row--dual .tariff__item-price:not(:last-child)::after {
	right: 0;
	height: 72%;
}

.tariff__item-price-row--dual .tariff__item-note {
	margin-bottom: 6px;
}

@media (min-width: 1200px) {
	.tariff__items {
		display: flex;
		flex-wrap: nowrap;
		align-items: stretch;
	}

	.tariff__item {
		display: flex;
		flex-direction: column;
	}

	.tariff__item-top {
		min-height: 236px;
	}

	.tariff__item .btn {
		margin-top: auto;
	}
}

@media (max-width: 991px) {
	.tariff__item {
		display: flex;
		flex-direction: column;
	}
}

@media (max-width: 767px) {
	.tariff__items.scrolly-hidden {
		display: flex;
		flex-wrap: nowrap;
		align-items: stretch;
		white-space: nowrap;
	}

	.tariff__item,
	.tariff__item:not(:last-child) {
		margin-bottom: 0;
	}

	.tariff__item {
		display: flex;
		flex-direction: column;
		flex: 0 0 300px;
		width: 300px;
		max-width: 300px;
		white-space: normal;
		align-self: stretch;
	}

	.tariff__item-top {
		min-height: 200px;
	}

	.tariff__item .btn {
		margin-top: auto;
		margin-bottom: 0;
	}
}

@media (max-width: 576px) {
	.tariff__item-top {
		min-height: 200px;
	}
}

@media (max-width: 380px) {
	.tariff__item {
		flex: 0 0 280px;
		width: 280px;
		max-width: 280px;
	}
}

.services ul li > span {
	color: #66696f;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.4);
}

.advantages-space .advantages__slider-item,
.advantages-space .advantages__slider-row-2 .advantages__slider-item {
	display: block;
	height: 230px;
	overflow: hidden;
}

.advantages-space .advantages__slider-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 767px) {
	.advantages-space .advantages__slider-item,
	.advantages-space .advantages__slider-row-2 .advantages__slider-item {
		height: 190px;
		max-width: 100%;
	}
}

.reviews__item-text p,
.popup__review-text p {
	margin: 0;
}

.reviews__item-text p + p,
.popup__review-text p + p {
	margin-top: 0.75em;
}

@media (min-width: 992px) {
	.footer__bottom {
		min-height: 115px;
	}

	.footer__links {
		width: calc(50% - 100px);
	}
}

.services__form .btn-whatsapp {
	margin-top: 12px;
	gap: 8px;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	box-sizing: border-box;
}

.services__form .btn-whatsapp svg {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}

.services__form .btn-whatsapp span {
	text-align: center;
}

.contacts__item.phone .contacts__item-text {
	display: block;
}

.contacts__item.phone .contacts__item-text + .contacts__item-text {
	margin-top: 6px;
}

/* Fix spaces gallery on mobile */
@media (max-width: 767px) {
    .advantages__slider-row-2 {
        display: block;
        overflow: hidden;
    }

    .advantages__slider-row-2 .advantages__slider-item {
        height: 230px;
        margin-bottom: 12px;
    }

    .advantages__slider-row-2 .advantages__slider-item img {
        width: 100%;
        height: 230px;
        object-fit: cover;
        display: block;
        border-radius: 20px;
    }
}

/* Mobile spaces gallery - stable grid */
@media (max-width: 768px) {
    .advantages-space .advantages__slider-row-2 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    .advantages-space .advantages__slider-row-2 .advantages__slider-item {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 16px !important;
        aspect-ratio: 1 / 1;
    }

    .advantages-space .advantages__slider-row-2 .advantages__slider-item img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 768px) {
    .advantages__slider-row-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .advantages__slider-row-2 > .advantages__slider-item {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
    }

    .advantages__slider-row-2 > .advantages__slider-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
}

/* FIX mobile spaces gallery */
@media (max-width: 768px) {
    .advantages-space .advantages__slider {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .advantages-space .advantages__slider > .advantages__slider-item {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
        border-radius: 16px !important;
    }

    .advantages-space .advantages__slider > .advantages__slider-item img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}
