/* Отредактируйте переменные в :root для ручной смены цветовой схемы */
:root {
	--primary: #f2a7b3;
	--theme-color: #f2a7b3;
	--primary-hover: #e8919f;
	--bg: #fff9f2;
	--card-bg: #ffffff;
	--chip-bg: #f5e1e7;
	--promo-bg: #fdf2f5;
	--text: #333333;
	--text-light: #666666;
	--header-bg: #f2a7b3;
	--footer-bg: #2f2f2f;
	--footer-text: #ffffff;
	--footer-text-light: #aaaaaa;
	--radius: 30px;
	--radius-sm: 12px;
	--shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	--transition: 0.3s ease;
	--container: 1200px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Inter", sans-serif;
	font-size: 16px;
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	overflow-x: hidden;
}

.container {
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.btn {
	display: inline-block;
	padding: 14px 30px;
	background: var(--primary);
	color: #fff;
	border: none;
	border-radius: var(--radius);
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background var(--transition);
	text-decoration: none;
	text-align: center;
}

.btn:hover {
	background: var(--primary-hover);
}

/* === HEADER === */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: var(--header-bg);
	z-index: 1000;
	padding: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
}

.header__logo {
	font-family: "Lobster", cursive;
	font-size: 28px;
	color: #fff;
	text-decoration: none;
}

.header__logo img {
	max-height: 50px;
	height: auto;
	display: block;
}

.logo-text {
	font-family: "Lobster", cursive;
	color: #fff;
}

.header__nav {
	display: flex;
	gap: 24px;
}

.header__link {
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: opacity var(--transition);
}

.header__link:hover {
	opacity: 0.8;
}

.header__cta {
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid #fff;
	color: #fff;
	padding: 10px 24px;
	font-size: 14px;
}

.header__cta:hover {
	background: #fff;
	color: var(--primary);
}

.header__mobile-icons {
	display: none;
	align-items: center;
	gap: 12px;
}

.header__mobile-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.header__burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}

.header__burger span {
	width: 25px;
	height: 3px;
	background: #fff;
	border-radius: 2px;
	transition: var(--transition);
}

/* === POPOVER === */
.popover {
	position: fixed;
	top: 70px;
	right: 20px;
	background: #fff;
	border-radius: var(--radius-sm);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	padding: 30px;
	z-index: 2001;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all var(--transition);
	max-width: 320px;
	width: 100%;
}

.popover--active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.popover__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: var(--text-light);
}

.popover__name {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
}

.popover__phone {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: var(--primary);
	text-decoration: none;
	margin-bottom: 20px;
}

.popover__messengers {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.popover__messenger {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--text);
	padding: 10px;
	border-radius: 8px;
	transition: background var(--transition);
}

.popover__messenger:hover {
	background: var(--chip-bg);
}

.popover__messenger span {
	font-size: 15px;
	font-weight: 500;
}

/* === HERO === */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	/* background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('/img/hero-bg.jpg') center/cover no-repeat; */
	background: #c0b4b4 center / cover no-repeat;
	margin-top: 70px;
}

.hero__content {
	position: relative;
	z-index: 1;
}

.hero__title {
	font-size: clamp(32px, 5vw, 56px);
	color: #fff;
	font-weight: 700;
	max-width: 700px;
	margin-bottom: 16px;
	line-height: 1.2;
}

.hero__subtitle {
	font-size: clamp(18px, 2.5vw, 24px);
	color: #fff;
	font-weight: 300;
	margin-bottom: 32px;
	opacity: 0.9;
}

.hero__btn {
	font-size: 18px;
	padding: 16px 40px;
}

/* === SECTIONS GENERAL === */
.section {
	padding: 80px 0;
}

.section__title {
	font-size: 36px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 16px;
	text-align: center;
}

.section__subtitle {
	font-size: 18px;
	color: var(--text-light);
	text-align: center;
	margin-bottom: 40px;
}

/* === CATALOG === */
.catalog__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 20px;
}

.catalog__tab {
	padding: 10px 20px;
	background: none;
	border: none;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	color: var(--text-light);
	border-bottom: 3px solid transparent;
	transition: all var(--transition);
}

.catalog__tab--active {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

.catalog__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 40px;
}

.catalog__chip {
	padding: 8px 18px;
	background: var(--chip-bg);
	border: none;
	border-radius: 20px;
	font-size: 14px;
	cursor: pointer;
	transition: all var(--transition);
	color: var(--text);
}

.catalog__chip--active {
	background: var(--primary);
	color: #fff;
}

.catalog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.catalog__card {
	background: var(--card-bg);
	border-radius: var(--radius-sm);
	overflow: hidden;
	box-shadow: var(--shadow);
	cursor: pointer;
	transition:
		transform var(--transition),
		box-shadow var(--transition);
	opacity: 0;
	animation: fadeIn 0.3s forwards;
	display: flex;
	flex-direction: column;
}

.catalog__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.catalog__card-img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	background: var(--chip-bg);
	display: block;
}

.catalog__card-body {
	padding: 20px 20px 0;
	flex: 1;
}

.catalog__card-action {
	padding: 0 20px 20px;
}

.catalog__card-footer {
	padding: 0 20px 20px;
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.catalog__card-name {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
}

.catalog__card-desc {
	font-size: 14px;
	color: var(--text-light);
	margin-bottom: 12px;
	line-height: 1.5;
}

.catalog__card-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 12px;
}

.catalog__card-btn {
	padding: 10px 20px;
	font-size: 14px;
}

.catalog__more {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.catalog__more-btn {
	background: transparent;
	color: var(--primary);
	border: 2px solid var(--primary);
}

.catalog__more-btn:hover {
	background: var(--primary);
	color: #fff;
}

/* === PROMO === */
.promo {
	background: var(--promo-bg);
}

.promo__inner {
	display: flex;
	align-items: center;
	gap: 40px;
}

.promo__img {
	width: 400px;
	height: 300px;
	border-radius: var(--radius-sm);
	object-fit: cover;
	flex-shrink: 0;
	background: var(--chip-bg);
}

.promo__content {
	flex: 1;
}

.promo__title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 16px;
}

.promo__text {
	font-size: 16px;
	color: var(--text-light);
	margin-bottom: 24px;
	line-height: 1.7;
}

/* === PORTFOLIO === */
.portfolio__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.portfolio__cover {
	position: relative;
	aspect-ratio: 1;
	border-radius: var(--radius-sm);
	overflow: hidden;
	cursor: pointer;
	transition: transform var(--transition);
	min-width: 0;
}

.portfolio__cover:hover {
	transform: scale(1.02);
}

.portfolio__cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--chip-bg);
}

.portfolio__cover-label {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	padding: 0.4em 0.6em;
	font-size: 0.9rem;
	line-height: 1.3;
	text-align: center;
	word-break: break-word;
	height: auto;
}

@media (max-width: 767px) {
	.portfolio__cover-label {
		font-size: 0.7rem;
		padding: 0.3em 0.4em;
		line-height: 1.2;
	}
}

.portfolio__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
	background: none;
	border: none;
	font-size: 16px;
	color: var(--primary);
	cursor: pointer;
	font-weight: 500;
}

.portfolio__masonry {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.portfolio__masonry-sizer,
.portfolio__masonry-item {
	width: calc((100% - 32px) / 3);
}

.portfolio__masonry-item {
	margin-bottom: 16px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
}

.portfolio__masonry-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform var(--transition);
}

.portfolio__masonry-item:hover img {
	transform: scale(1.03);
}

/* === FAQ === */
.faq__list {
	max-width: 800px;
	margin: 0 auto;
}

.faq__item {
	border-bottom: 1px solid #eee;
}

.faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 24px 0;
	background: none;
	border: none;
	font-size: 18px;
	font-weight: 500;
	color: var(--text);
	cursor: pointer;
	text-align: left;
}

.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition:
		max-height 0.4s ease,
		padding 0.4s ease;
	font-size: 16px;
	color: var(--text-light);
	line-height: 1.7;
}

.faq__item--open .faq__answer {
	max-height: 300px;
	padding-bottom: 24px;
}

/* === REVIEWS === */
.reviews__carousel {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 20px 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.reviews__carousel::-webkit-scrollbar {
	display: none;
}

.reviews__card {
	flex: 0 0 250px;
	width: 250px;
	height: 450px;
	border-radius: 20px;
	border: 3px solid #eee;
	box-shadow: var(--shadow);
	overflow: hidden;
	cursor: pointer;
	background: var(--card-bg);
	display: flex;
	flex-direction: column;
}

.reviews__card-img {
	flex: 1;
	width: 100%;
	object-fit: contain;
	background: #ffffff;
}

.reviews__card-name {
	padding: 12px;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	color: var(--text);
	background: #fff9f2;
}

.reviews__wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.reviews__arrow {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--chip-border, #ddd);
	background: var(--card-bg);
	color: var(--text);
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
	z-index: 2;
}

.reviews__arrow:hover {
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
}

@media (max-width: 767px) {
	.reviews__arrow {
		display: none;
	}
}

/* === ABOUT === */
.about__inner {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.about__img {
	width: 350px;
	height: 550px;
	border-radius: var(--radius-sm);
	object-fit: cover;
	flex-shrink: 0;
	background: var(--chip-bg);
}

.about__content {
	flex: 1;
}

.about__text {
	font-size: 16px;
	line-height: 1.8;
	color: var(--text-light);
	white-space: pre-line;
	margin-bottom: 32px;
}

.about__qr-codes {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 48px;
}

@media (max-width: 767px) {
	.about__qr-codes {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 24px;
	}
}

.about__qr-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* QR-код канала Telegram и MAX. Можно заменить на дизайнерский */
.about__qr-img {
	width: 80px;
	height: 80px;
	border-radius: 8px;
	cursor: pointer;
	transition: transform var(--transition);
	background: var(--chip-bg);
}

.about__qr-img:hover {
	transform: scale(1.1);
}

.about__qr-label {
	display: inline-block;
	font-size: 12px;
	color: var(--text-light);
	margin-top: 8px;
	text-align: center;
	text-decoration: none;
}

.about__qr-label:hover {
	color: var(--primary);
}

.preview-ribbon {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 36px;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	z-index: 9999;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
}

body.is-preview {
	margin-left: 36px;
}

/* === FOOTER === */
.footer {
	background: var(--footer-bg);
	padding: 60px 0 30px;
	color: var(--footer-text);
}

.footer__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin-bottom: 40px;
}

.footer__heading {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 16px;
	color: var(--footer-text);
}

.footer__phone {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: var(--primary);
	text-decoration: none;
	margin-bottom: 12px;
}

.footer__text {
	color: var(--footer-text-light);
	font-size: 15px;
	margin-bottom: 8px;
}

.footer__links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__link-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--footer-text-light);
	text-decoration: none;
	font-size: 14px;
	transition: color var(--transition);
}

.footer__link-item:hover {
	color: var(--footer-text);
}

.footer__copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--footer-text-light);
	font-size: 14px;
}

/* === MODAL === */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition);
}

.modal--active {
	opacity: 1;
	visibility: visible;
}

.modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
}

.modal__content {
	position: relative;
	background: #fff;
	border-radius: var(--radius-sm);
	max-width: 700px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	transform: scale(0.95);
	transition: transform var(--transition);
}

.modal--active .modal__content {
	transform: scale(1);
}

.modal__close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal__slider {
	position: relative;
	overflow: hidden;
}

.modal__slides {
	display: flex;
	transition: transform var(--transition);
}

.modal__slides img {
	width: 100%;
	height: 350px;
	object-fit: cover;
	flex-shrink: 0;
	cursor: pointer;
}

.modal__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.8);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal__arrow--prev {
	left: 12px;
}
.modal__arrow--next {
	right: 12px;
}

.modal__info {
	padding: 30px;
}

.modal__title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 8px;
}

.modal__price {
	font-size: 22px;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 16px;
}

.modal__desc {
	font-size: 16px;
	color: var(--text-light);
	line-height: 1.7;
	margin-bottom: 24px;
}

/* === LIGHTBOX === */
.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.95);
	z-index: 3000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition);
	touch-action: none;
	overscroll-behavior: contain;
}

.lightbox--active {
	opacity: 1;
	visibility: visible;
}

.lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: rgba(0, 0, 0, 0.3);
	border: none;
	font-size: 36px;
	color: #fff;
	cursor: pointer;
	z-index: 10;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	line-height: 1;
}

.lightbox__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.2);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 30px;
	color: #fff;
	cursor: pointer;
	z-index: 20;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox__arrow--prev {
	left: 20px;
}
.lightbox__arrow--next {
	right: 20px;
}

.lightbox__img {
	max-width: 90vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.lightbox__img--next {
	opacity: 0;
	z-index: 1;
}

.lightbox__img-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 90vw;
	height: 90vh;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-on-scroll {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease;
}

.animate-on-scroll--visible {
	opacity: 1;
	transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
	.catalog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.portfolio__masonry-sizer,
	.portfolio__masonry-item {
		width: calc((100% - 16px) / 2);
	}
	.promo__inner {
		flex-direction: column;
	}
	.promo__img {
		width: 100%;
		height: 250px;
	}
	.about__inner {
		flex-direction: column;
		align-items: center;
	}
	.about__img {
		width: 100%;
		max-width: 350px;
		height: 500px;
	}
	.footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.header__nav {
		position: fixed;
		top: 70px;
		left: 0;
		right: 0;
		background: linear-gradient(
			87deg,
			#f3bdc5,
			#f4b1bb,
			#f2a7b3,
			#f4b1bb,
			#f3bdc5
		);
		flex-direction: column;
		align-items: center;
		padding: 20px;
		gap: 16px;
		transform: translateY(-100%);
		opacity: 0;
		transition: all var(--transition);
		pointer-events: none;
	}
	.header__nav--open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}
	.header__cta {
		display: none;
	}
	.header__mobile-icons {
		display: flex;
	}
	.header__burger {
		display: flex;
	}
	.catalog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
	.catalog__card-body {
		padding: 14px;
	}
	.catalog__card-img {
		height: 160px;
	}
	.catalog__card-name {
		font-size: 15px;
	}
	.catalog__card-desc {
		font-size: 12px;
	}
	.catalog__card-price {
		font-size: 16px;
	}
	.section {
		padding: 50px 0;
	}
	.section__title {
		font-size: 28px;
	}
	.footer__inner {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.promo__img {
		height: 200px;
	}
	.modal__content {
		width: 95%;
		max-height: 95vh;
	}
	.popover {
		right: 10px;
		left: 10px;
		max-width: none;
	}
	.hero {
		min-height: 80vh;
	}
}

/* === MESSENGER ICONS === */
.icon-whatsapp,
.icon-telegram,
.icon-max {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
	border-radius: 50%;
}

.icon-max {
	border-radius: 25%;
}

/* Placeholder для изображений без загруженного фото */
.placeholder-img {
	background: linear-gradient(135deg, var(--chip-bg) 0%, var(--promo-bg) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-light);
	font-size: 14px;
}
