/* Meetly — основні стилі */
:root {
	--brand: #7c3aed;
	--brand-d: #5b21b6;
	--accent: #ec4899;
	--grad: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
	--bg: #faf8ff;
	--card: #ffffff;
	--text: #1f1b2e;
	--muted: #6b6785;
	--line: #e9e4f5;
	--ok: #16a34a;
	--warn: #f59e0b;
	--err: #dc2626;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(31, 27, 46, .05), 0 8px 24px rgba(91, 33, 182, .08);
	--shadow-h: 0 2px 4px rgba(31, 27, 46, .06), 0 14px 34px rgba(91, 33, 182, .16);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
:focus-visible { outline: 3px solid rgba(124, 58, 237, .45); outline-offset: 2px; border-radius: 6px; }

/* Кнопки */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
	font: 600 15px/1.2 var(--font); cursor: pointer; text-decoration: none !important;
	transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(124, 58, 237, .35); }
.btn--primary:hover { box-shadow: 0 10px 24px rgba(236, 72, 153, .4); }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn--light { background: #fff; color: var(--brand-d); }
.btn--tg { background: #229ed9; color: #fff; }
.btn--block { display: flex; width: 100%; margin-bottom: 10px; }
.btn--lg { padding: 15px 28px; font-size: 17px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; text-decoration: none !important; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav .menu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); font-weight: 600; }
.nav .menu a:hover { background: #f3edff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--text); position: relative; margin: 0 auto; content: ""; }
.burger::before { position: absolute; top: -6px; left: 0; }
.burger::after { position: absolute; top: 6px; left: 0; }

/* Hero */
.hero { background: var(--grad); color: #fff; padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hero::before { width: 380px; height: 380px; right: -100px; top: -140px; }
.hero::after { width: 240px; height: 240px; left: -80px; bottom: -120px; }
.hero-in { position: relative; z-index: 1; }
.hero__title { font-size: clamp(2rem, 5.5vw, 3.4rem); margin-bottom: .3em; max-width: 780px; }
.hero__title span { display: block; opacity: .92; }
.hero__lead { font-size: 1.15rem; max-width: 620px; opacity: .95; margin-bottom: 28px; }
.search {
	display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 8px; background: #fff;
	padding: 8px; border-radius: 20px; box-shadow: 0 20px 50px rgba(31, 27, 46, .25); max-width: 960px;
}
.search input, .search select, .filters input, .filters select {
	width: 100%; padding: 13px 14px; border: 0; background: #f6f3fd; border-radius: 12px; font: 16px var(--font); color: var(--text);
}

/* Секції */
.section { padding: 34px 20px 8px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section__head h2 { margin: 0; }
.link-more { font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: -48px; position: relative; z-index: 2; }
.tile {
	display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: var(--radius); color: var(--text);
	background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); text-decoration: none !important; transition: transform .15s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.tile__icon { font-size: 2rem; }
.tile__name { font-size: 1.35rem; font-weight: 800; }
.tile__count { color: var(--muted); }
.tile--znayomstva { background: linear-gradient(135deg, #fff, #fdeef6); }
.tile--intym { background: linear-gradient(135deg, #fff, #fff1f2); }
.tile--poslugy { background: linear-gradient(135deg, #fff, #efe9ff); }

/* Сітка карток */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid--2 { grid-template-columns: repeat(3, 1fr); }
.grid__ad { grid-column: 1 / -1; }
.card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: #efe9ff; display: block; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3.4rem; font-weight: 800; color: #fff; background: var(--grad); opacity: .85; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.card__title { font-size: 1.05rem; margin: 0; }
.card__title a { color: var(--text); }
.card__meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin: 0; }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); }
.card__price { font-weight: 800; color: var(--text); font-size: 1rem; }
.card--paid { border-color: #d8c6ff; box-shadow: 0 0 0 2px rgba(124, 58, 237, .12), var(--shadow); }
.card--highlight { background: linear-gradient(180deg, #fffdf2, #fff); border-color: #fde68a; }
.card--top { border-color: #f9a8d4; }
.card--vip { border-color: #c4b5fd; background: linear-gradient(180deg, #faf5ff, #fff); }

.badge {
	position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; color: #fff;
	font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--brand);
}
.badge--highlight { background: #f59e0b; }
.badge--top { background: #ec4899; }
.badge--vip { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.badge--inline { position: static; display: inline-block; margin-bottom: 10px; }

/* Кроки */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }

/* Порожній стан */
.empty { text-align: center; padding: 48px 20px; background: var(--card); border: 1px dashed #cfc3ee; border-radius: var(--radius); }

/* Заголовок сторінки, фільтри */
.page-head { padding-top: 30px; padding-bottom: 8px; }
.filters { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 8px; margin-top: 16px; background: #fff; padding: 8px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Макет зі стовпцем */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-top: 24px; padding-bottom: 40px; align-items: start; }
.layout__side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.15rem; }
.panel--cta { background: var(--grad); color: #fff; border: 0; }
.panel--cta p { opacity: .95; }
.panel--ok { border-color: #bbf7d0; background: #f0fdf4; }
.pager { margin-top: 26px; }
.pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pager .page-numbers { padding: 9px 15px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.pager .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }

/* Одне оголошення */
.crumbs { padding-top: 18px; color: var(--muted); font-size: .9rem; }
.ad-detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.ad-detail--paid { border-color: #d8c6ff; }
.ad-detail__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 16px 0; }
.gallery__img { width: 100%; border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__img:first-child:nth-last-child(1) { aspect-ratio: auto; max-height: 560px; }
.contact__price { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.contact__hint { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.report { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .92rem; }
.report summary { cursor: pointer; color: var(--muted); }
.report form { display: grid; gap: 8px; margin-top: 12px; max-width: 420px; }

/* Контент, форма */
.prose-wrap { padding-top: 32px; padding-bottom: 50px; max-width: 860px; }
.prose { line-height: 1.7; }
.prose ul { padding-left: 1.2em; }
.page-title { margin-bottom: .3em; }
.lead { font-size: 1.1rem; color: var(--muted); }
.notice { padding: 14px 18px; border-radius: 12px; margin: 14px 0; font-size: .95rem; }
.notice--warn { background: #fffbeb; border: 1px solid #fde68a; }
.notice--err { background: #fef2f2; border: 1px solid #fecaca; }
.notice--err ul { margin: 6px 0 0; padding-left: 1.2em; }
.notice--ok { background: #f0fdf4; border: 1px solid #bbf7d0; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-top: 18px; }
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label, .report label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=number], .form input[type=file],
.form select, .form textarea, .report select, .report textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fcfbff; font: 16px var(--font); color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.tiers { border: 0; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.tiers legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.tier { display: block; cursor: pointer; margin: 0 !important; }
.tier input { position: absolute; opacity: 0; }
.tier__body { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; height: 100%; background: #fff; transition: border-color .15s, box-shadow .15s; }
.tier__body em { font-style: normal; font-weight: 800; color: var(--brand-d); }
.tier__body small { color: var(--muted); font-weight: 400; }
.tier input:checked + .tier__body { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.tier input:focus-visible + .tier__body { outline: 3px solid rgba(124, 58, 237, .45); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin: 16px 0 !important; }
.check input { margin-top: 5px; width: 18px; height: 18px; }
.price-big { font-size: 2rem; font-weight: 800; margin: 0 0 8px; }
.price-big small { font-size: 1rem; color: var(--muted); font-weight: 400; }

/* Реклама */
.ad-row { margin-top: 14px; }
.ad { margin: 18px 0; text-align: center; overflow: hidden; }
.ad--placeholder {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	border: 2px dashed #cfc3ee; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #faf8ff, #faf8ff 12px, #f3edff 12px, #f3edff 24px);
	color: var(--muted); padding: 14px;
}
.ad__tag { position: absolute; top: 8px; left: 12px; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #9a93b8; }
.ad--placeholder strong { color: var(--text); font-size: .95rem; }
.ad--placeholder small { font-size: .8rem; }
.layout__side .ad { margin: 0; }

/* Футер */
.site-footer { background: #1f1b2e; color: #cfcbe0; margin-top: 50px; padding: 44px 0 20px; }
.site-footer a { color: #e9d5ff; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 30px; }
.footer-brand { color: #fff; font-size: 1.2rem; display: block; margin-bottom: 8px; }
.footer-col strong { color: #fff; display: block; margin-bottom: 8px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col p { font-size: .92rem; }
.footer-copy { border-top: 1px solid #383350; margin-top: 26px; padding-top: 16px; font-size: .85rem; color: #8f8aa8; }

/* Адаптивність */
@media (max-width: 1020px) {
	.grid { grid-template-columns: repeat(3, 1fr); }
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.layout { grid-template-columns: 1fr; }
	.layout__side { position: static; }
}
@media (max-width: 820px) {
	.nav-toggle { display: block; }
	.nav { position: absolute; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 14px 20px 20px; gap: 12px; display: none; box-shadow: 0 20px 30px rgba(31, 27, 46, .1); }
	.nav.is-open { display: flex; }
	.nav .menu { flex-direction: column; }
	.search, .filters { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.footer-in { grid-template-columns: 1fr; }
	.grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.wrap { padding: 0 16px; }
	.hero { padding: 38px 0 64px; }
	.tiles { grid-template-columns: 1fr; margin-top: -40px; }
	.grid, .grid--2 { grid-template-columns: 1fr; }
	.row { grid-template-columns: 1fr; gap: 0; }
	.form, .ad-detail { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq__item summary { cursor: pointer; font-weight: 700; }
.faq__item p { margin: 10px 0 0; color: var(--muted); }

/* Керування, оплата */
.kv { list-style: none; margin: 0 0 12px; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv span { color: var(--muted); }
.btn--danger { background: #fff; color: var(--err); border-color: #fecaca; }
.btn--danger:hover { background: #fef2f2; }
.payform .tiers { margin: 10px 0 14px; }
.payform select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fcfbff; font: 16px var(--font); }
.panel--ok hr { border: 0; border-top: 1px solid #bbf7d0; margin: 18px 0; }

/* Розділ 18+ */
.agegate { max-width: 560px; margin: 30px auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 34px 28px; box-shadow: var(--shadow-h); }
.agegate__icon { font-size: 3rem; }
.agegate ul { text-align: left; display: inline-block; margin: 0 0 18px; padding-left: 1.2em; }
.agegate__actions { display: grid; gap: 10px; margin: 8px 0 14px; }
.check--adult { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 12px 14px; }
body.is-adult .site-header { border-bottom-color: #fecaca; }

[hidden] { display: none !important; }
.row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.badge--demo { left: auto; right: 10px; background: #1f1b2e; }
