/*
Theme Name: ivi
Text Domain: ivi
Description: ivi
Version: 1.0.0
*/

/* Theme styles — rebuilt during generation. */
:root {
	--black: #000000;
	--surface: #111115;
	--surface-2: #1a1a20;
	--accent: #f30745;
	--white: #ffffff;
	--muted: #a0a0a0;
	--radius: 12px;
	--font: "iviSansBase";
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	padding-top: 104px;
	background:
		radial-gradient(circle at 78% 8%, rgba(243, 7, 69, .09), transparent 23rem),
		var(--black);
	color: var(--white);
	font-family: var(--font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4, strong, th { font-weight: 700; }
.container, .site-container { width: min(1440px, calc(100% - 48px)); margin-inline: auto; }

.header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 1000;
	height: 104px;
	background: rgba(0, 0, 0, .97);
}
.header::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(243, 7, 69, .55), transparent);
}
.header__container {
	height: 100%;
	display: grid;
	grid-template-columns: auto minmax(280px, 1fr) auto;
	grid-template-areas: "brand popular city";
	align-items: center;
	gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; min-width: 0; }
.brand__mark { width: auto; height: auto; max-height: 56px; flex: 0 0 auto; }
.brand__copy { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-size: 18px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.brand__caption { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.2; white-space: nowrap; }
.header__brand { grid-area: brand; }
.header__popular {
	grid-area: popular;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.header__popular-link {
	padding: 9px 12px;
	color: var(--muted);
	border-radius: 9px;
	text-decoration: none;
	white-space: nowrap;
	font-size: 14px;
}
.header__popular-link:hover, .header__popular-link:focus-visible, .header__scope {
	color: var(--white);
	background: var(--surface-2);
}
.header__scope { position: relative; padding-left: 26px; }
.header__scope::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	background: var(--accent);
}
.header__location-btn, .header__filter {
	min-height: 42px;
	padding: 9px 15px;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 10px;
	background: transparent;
	color: var(--white);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	cursor: pointer;
}
.header__location-btn { grid-area: city; }
.header__location-pin {
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(243,7,69,.15);
}
.header__filter { display: none; }
.header__location {
	position: fixed;
	inset: 0;
	z-index: 1400;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}
.header__location.open { visibility: visible; opacity: 1; pointer-events: auto; }
.header__location-backdrop {
	position: absolute; inset: 0; width: 100%; border: 0;
	background: rgba(0,0,0,.82); cursor: default;
}
.header__location-dropdown {
	position: absolute;
	top: 6vh; right: max(24px, calc((100vw - 1440px) / 2));
	width: min(720px, calc(100% - 48px));
	max-height: 88vh;
	overflow: auto;
	padding: 28px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.header__location-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.header__location-head h2 { margin: 0; font-size: 24px; }
.header__location-close {
	width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25);
	border-radius: 50%; background: transparent; color: var(--white); font-size: 28px; cursor: pointer;
}
.header__location-all {
	display: block; margin-bottom: 18px; padding: 13px 16px; border-radius: 9px;
	background: var(--accent); color: var(--white); text-align: center; text-decoration: none; font-weight: 700;
}
.header__location-citys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.header__location-city {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 14px; border-radius: 9px; background: #202026; text-decoration: none;
}
.header__location-city:hover, .header__location-city.is-current { background: #2b161d; color: #ff7597; }

.main-area { padding-block: 34px 72px; }
.main-area__container { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 34px; align-items: start; }
.sidebars-column { min-width: 0; }
.sidebar { position: sticky; top: 128px; }
.sidebar__block { padding: 18px; border-radius: var(--radius); background: var(--surface); }
.sidebar__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sidebar__title h2 { margin: 0; font-size: 24px; }
.sidebar__x { display: none; color: var(--white); background: transparent; border: 0; font-size: 26px; }
.filter { padding: 15px 0; }
.filter + .filter { border-top: 1px solid rgba(255,255,255,.07); }
.filter__header {
	display: flex; align-items: center; gap: 10px; margin: 0 0 11px;
	color: var(--white); font-size: 15px;
}
.filter__marker { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.filter__list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.filter__link {
	display: flex; align-items: center; justify-content: center; min-height: 34px;
	padding: 6px 10px; border-radius: 8px; background: #222228;
	color: #d6d6d9; font-size: 13px; line-height: 1.2; text-align: center; text-decoration: none;
}
.filter__link:hover, .filter__link:focus-visible { background: var(--accent); color: var(--white); }
.filter__more {
	margin-top: 10px; min-height: 34px; width: 100%; border: 1px solid rgba(255,255,255,.2);
	border-radius: 8px; background: transparent; color: var(--white); cursor: pointer;
}
/* normalize sets button{display:inline-block} which otherwise beats UA [hidden] */
[hidden] { display: none !important; }

.main-content, .single-content { min-width: 0; }
.catalog-hero { margin-bottom: 22px; overflow: hidden; }
.catalog-hero__track { padding: 0 20px; }
.catalog-hero__slide {
	position: relative; min-height: clamp(330px, 32vw, 450px); overflow: hidden;
	border-radius: var(--radius); background: var(--surface);
}
.catalog-hero__slide::before, .catalog-hero__slide::after {
	content: ""; position: absolute; z-index: -1; top: 6%; bottom: 6%; width: 60px;
	border-radius: var(--radius); background: #17171c;
}
.catalog-hero__slide::before { right: calc(100% + 10px); }
.catalog-hero__slide::after { left: calc(100% + 10px); }
/* Face baked upper-left; lock position so CSS cover doesn't re-pan */
.catalog-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 0%; }
.catalog-hero__veil {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.56) 48%, rgba(0,0,0,.94) 100%);
}
.catalog-hero__copy {
	position: absolute; z-index: 1; inset: 0 4% 0 50%;
	display: flex; align-items: center; justify-content: flex-start;
	pointer-events: none;
}
.catalog-hero__copy a,
.catalog-hero__copy button { pointer-events: auto; }
.catalog-hero__title {
	margin: 0;
	font-size: clamp(32px, 4vw, 64px);
	line-height: .98;
	text-wrap: balance;
	pointer-events: auto;
	user-select: text;
}
.panel-seo-text1 {
	margin: -4px 20px 24px;
	color: #d3d3d5;
	pointer-events: auto;
	user-select: text;
}
.catalog-hero .panel-seo-text1 * {
	pointer-events: auto;
	user-select: text;
}
.single-nav { margin: 14px 20px 24px; color: var(--muted); font-size: 13px; }
.single-nav a { color: var(--muted); text-decoration: none; }
.single-nav__separator { margin-inline: 8px; color: var(--accent); }

.main-content__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.card__body { min-height: 346px; display: grid; grid-template-columns: minmax(0, 1fr) 45%; }
.card__info { min-width: 0; padding: 20px 16px; display: flex; flex-direction: column; }
.card__image { position: relative; min-width: 0; overflow: hidden; }
.card__image-link { display: block; width: 100%; height: 100%; position: relative; z-index: 1; }
.card__image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.card__scrim { position: absolute; inset: 42% 0 0; z-index: 2; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.92)); }
.card__identity { position: absolute; z-index: 3; inset: auto 16px 16px; display: flex; flex-direction: column; pointer-events: none; }
.card__identity a { pointer-events: auto; }
.card__identity strong { font-size: 23px; line-height: 1.05; }
.card__name, .card__area { color: inherit; text-decoration: none; }
.card__area { margin-top: 5px; color: #d0d0d2; font-size: 13px; }
.card__badges { position: absolute; z-index: 3; top: 12px; right: 12px; pointer-events: none; }
.card__badge { display: inline-flex; padding: 5px 8px; border-radius: 6px; background: var(--accent); color: var(--white); font-size: 11px; font-weight: 700; }
.card__phone { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; color: var(--white); text-decoration: none; }
.card__phone span { color: var(--muted); font-size: 12px; }
.card__phone strong { font-size: 16px; letter-spacing: .06em; }
.card__params { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 18px; }
.card__param { min-width: 0; padding: 8px 5px; border-radius: 7px; background: #202026; text-align: center; }
.card__param dt { color: var(--muted); font-size: 10px; line-height: 1.1; }
.card__param dd { margin: 3px 0 0; font-size: 13px; line-height: 1.1; overflow-wrap: anywhere; }
.card__table { width: 100%; margin-top: auto; border-collapse: collapse; font-size: 11px; }
.card__table th, .card__table td { padding: 7px 3px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: right; }
.card__table th:first-child, .card__table td:first-child { text-align: left; color: var(--muted); }
.card__table th { color: var(--muted); font-size: 10px; }
.paginator { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.paginator .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px;
	border-radius: 9px; background: var(--surface); color: var(--white); text-decoration: none;
}
.paginator .current, .paginator a:hover { background: var(--accent); }
.catalog-empty { padding: 24px; border-radius: var(--radius); background: var(--surface); }

.text-content, .sidebar-seo-content {
	width: 100%; margin-top: 46px; padding-top: 30px;
	border-top: 1px solid rgba(255,255,255,.11);
}
.text-content h2, .sidebar-seo-content h3 { margin-bottom: 18px; font-size: clamp(24px, 3vw, 38px); line-height: 1.1; }
.text-content__body, .sidebar-seo-content__text { width: 100%; color: #cacacd; }
.text-content__body p, .sidebar-seo-content__text p { margin: 0; }
.text-content__body p + p, .sidebar-seo-content__text p + p { margin-top: 18px; }
.below-full { width: 100%; }

.profile-identity h1 { margin: 0; font-size: clamp(38px, 5vw, 72px); line-height: 1; }
.profile-identity .single-nav { margin-left: 0; }
.profile-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, .75fr); gap: 22px; align-items: stretch; }
.profile-gallery, .profile-summary, .profile-section {
	padding: 22px; border-radius: var(--radius); background: var(--surface);
}
.profile-gallery h2, .profile-summary h2, .profile-section h2 { margin: 0 0 18px; font-size: 24px; }
/* Related: heading outside card chrome; packing matches catalog 2-col grid */
.profile-related {
	margin-top: 22px;
	padding: 0;
	background: transparent;
	border-radius: 0;
}
.profile-related h2 { margin: 0 0 18px; font-size: 24px; }
.single-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.profile-gallery__item { min-height: 104px; overflow: hidden; border-radius: 9px; background: #222228; }
.profile-gallery__item.is-main { grid-column: 1 / -1; height: min(58vw, 620px); }
.profile-gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile-summary { display: flex; flex-direction: column; }
.profile-details dl { margin: 0; }
.profile-details dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.profile-details dt { color: var(--muted); }
.profile-details dd { margin: 0; text-align: right; font-weight: 700; }
.profile-contact {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 74px; margin-top: auto; padding: 12px; border: 1px solid var(--accent);
	border-radius: 10px; color: var(--white); text-align: center; text-decoration: none;
}
.profile-contact span { color: #ff9ab4; font-size: 12px; }
.profile-contact strong { font-size: 20px; }
.profile-section { margin-top: 22px; }
.profile-description > div { color: #d0d0d2; }
.profile-description p { margin-bottom: 16px; }
.profile-services__list { display: flex; flex-wrap: wrap; gap: 9px; }
.profile-services__list a {
	display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
	padding: 8px 14px; border-radius: 9px; background: #24242a; text-decoration: none;
}
.profile-services__list a:hover { background: var(--accent); }
.profile-prices table { width: 100%; border-collapse: collapse; }
.profile-prices th, .profile-prices td { padding: 13px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: right; }
.profile-prices th:first-child, .profile-prices td:first-child { text-align: left; color: var(--muted); }
.profile-related__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	justify-content: center;
	align-items: stretch;
}
.profile-related__item { min-width: 0; }
@media (max-width: 900px) {
	.profile-related__list { grid-template-columns: 1fr; }
}

.mfp-bg { background: #000000; opacity: .96; }
.mfp-wrap, .mfp-container, .mfp-content, .mfp-title, .mfp-counter { font-family: var(--font); }
.mfp-figure::after { border-radius: var(--radius); background: var(--surface); box-shadow: none; }
.mfp-img { border-radius: var(--radius); }
.mfp-arrow { opacity: 1; width: 52px; height: 52px; margin-top: -26px; border: 1px solid rgba(255,255,255,.35)!important; border-radius: 50%; background: #15151a!important; }
.mfp-arrow::before, .mfp-arrow::after { border: 0!important; margin: 0!important; }
.mfp-arrow::before { content: ""; position: absolute; inset: 17px; width: 13px; height: 13px; border-top: 2px solid #fff!important; border-right: 2px solid #fff!important; }
.mfp-arrow-left::before { transform: rotate(-135deg); left: 20px; }
.mfp-arrow-right::before { transform: rotate(45deg); right: 20px; }
.mfp-close { color: var(--white)!important; font-family: var(--font)!important; font-size: 36px!important; }
.mfp-counter { color: var(--white); background: var(--accent); padding: 4px 8px; border-radius: 6px; }
.catalog-gallery-thumbs {
	position: fixed; z-index: 1100; left: 50%; bottom: 18px; transform: translateX(-50%);
	display: flex; gap: 7px; max-width: min(90vw, 720px); overflow-x: auto; padding: 8px;
	border-radius: 10px; background: #111115;
}
.catalog-gallery-thumbs__item { flex: 0 0 54px; width: 54px; height: 66px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 7px; background: transparent; }
.catalog-gallery-thumbs__item.is-active { border-color: var(--accent); }
.catalog-gallery-thumbs__item img { width: 100%; height: 100%; object-fit: cover; }

.footer { padding: 44px 0; background: #0b0b0d; }
.footer__container { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.footer__brand { justify-self: start; }
.footer__nav { display: flex; gap: 10px; }
.footer__nav a { padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; text-decoration: none; }
.footer__legal { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); }
.scroll-top {
	position: fixed; z-index: 900; right: 22px; bottom: 22px; width: 46px; height: 46px;
	border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: var(--accent); color: var(--white);
	opacity: 0; visibility: hidden; cursor: pointer;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; }

.notfound__card { padding: clamp(30px, 7vw, 90px); border-radius: var(--radius); background: var(--surface); text-align: center; }
.notfound__title { font-size: clamp(38px, 7vw, 74px); }
.notfound__text { color: var(--muted); }
.notfound__button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 9px; background: var(--accent); text-decoration: none; }

.html-sitemap { padding: 40px 0 72px; }
.html-sitemap__page-title { font-size: clamp(38px, 6vw, 70px); }
.html-sitemap__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.html-sitemap__section { padding: 20px; border-radius: var(--radius); background: var(--surface); }
.html-sitemap__heading { margin-bottom: 14px; color: var(--white); font-size: 20px; }
.html-sitemap__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.html-sitemap__link { color: var(--muted); text-decoration: none; }
.html-sitemap__link:hover { color: var(--accent); }
.html-sitemap__empty { color: var(--muted); }

@media (max-width: 1180px) {
	body { padding-top: 128px; }
	.header { height: 128px; }
	.header__container { grid-template-columns: 1fr auto; grid-template-areas: "brand city" "popular popular"; gap: 8px 18px; padding-block: 12px; }
	.header__popular { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
	.main-area__container { grid-template-columns: 224px minmax(0, 1fr); gap: 22px; }
	.sidebar { top: 148px; }
	.main-content__cards { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	body { padding-top: 78px; }
	.container, .site-container { width: min(100% - 28px, 1440px); }
	.header { height: 78px; }
	.header__container { grid-template-columns: auto 1fr auto; grid-template-areas: "filter brand city"; gap: 10px; padding-block: 10px; }
	.header__filter { grid-area: filter; display: inline-flex; width: 42px; padding: 0; }
	.header__filter span:first-child { width: 16px; height: 12px; border-block: 2px solid var(--white); position: relative; }
	.header__filter span:first-child::after { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; border-top: 2px solid var(--white); }
	.header__filter span:last-child { display: none; }
	.header__brand { justify-self: center; }
	.header__brand .brand__mark { max-height: 42px; }
	.header__brand .brand__copy { display: none; }
	.header__popular { display: none; }
	.header__location-btn { width: 42px; padding: 0; }
	.header__location-btn > span:last-child { display: none; }
	.header__location-dropdown { top: 14px; right: 14px; width: calc(100% - 28px); max-height: calc(100vh - 28px); padding: 20px; }
	.header__location-citys { grid-template-columns: 1fr; }
	.main-area { padding-block: 20px 50px; }
	.main-area__container { display: block; }
	.sidebars-column {
		position: fixed; z-index: 1300; inset: 0; padding: 14px; background: rgba(0,0,0,.9);
		visibility: hidden; opacity: 0; pointer-events: none;
	}
	.sidebars-column.active { visibility: visible; opacity: 1; pointer-events: auto; }
	.sidebar { position: static; height: calc(100vh - 28px); overflow: auto; }
	.sidebar__x { display: block; }
	.catalog-hero__track { padding: 0; }
	.catalog-hero__slide { min-height: 390px; }
	.catalog-hero__image { object-position: 10% 0%; }
	.catalog-hero__veil { background: linear-gradient(0deg, rgba(0,0,0,.94), rgba(0,0,0,.04) 75%); }
	.catalog-hero__copy { inset: auto 22px 24px; }
	.catalog-hero__title { font-size: 38px; }
	.panel-seo-text1, .single-nav { margin-inline: 0; }
	.card__body { min-height: 370px; grid-template-columns: minmax(0, 1fr) 47%; }
	.card__info { padding: 16px 12px; }
	.card__identity { inset-inline: 12px; }
	.card__identity strong { font-size: 20px; }
	.profile-hero { grid-template-columns: 1fr; }
	.profile-gallery__item.is-main { height: 118vw; max-height: 620px; }
	.profile-contact { margin-top: 24px; }
	.footer__container { grid-template-columns: 1fr; }
	.footer__nav, .footer__brand { justify-self: start; }
	.footer__legal { grid-column: 1; }
	.html-sitemap__grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
	.card__body { min-height: 0; grid-template-columns: 1fr; }
	.card__image { grid-row: 1; height: 430px; }
	.card__info { grid-row: 2; }
	.single-gallery { grid-template-columns: repeat(3, 1fr); }
}
/* === THEME-HERO-CONTENT-SANITATION === */
.catalog-hero__slide {
  height: clamp(330px, 32vw, 450px);
  min-height: 0;
}
.catalog-hero__copy,
.catalog-hero__content,
.catalog-hero__body,
.catalog-hero__text,
.catalog-intro__copy,
.catalog-intro__content,
.catalog-intro__body,
.catalog-intro__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.catalog-hero .panel-seo-text1,
.catalog-intro .panel-seo-text1 {
  width: 100%;
  max-width: 100%;
  margin: 0.75em 0 0;
}
:root {
  --panel-hero-h1-lines-desktop: 2;
  --panel-hero-h1-lines-mobile: 2;
}
/* === /THEME-HERO-CONTENT-SANITATION === */
