/*
Theme Name: Meat Web
Description: შპს „მით სერვის გრუპი“ — ხორცის სადისტრიბუციო კომპანიის საიტის თემა (B2B დიზაინი).
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: meat-web
*/

:root {
	--navy: var(--wp--preset--color--primary-dark);
	--navy-2: var(--wp--preset--color--navy-2);
	--red: var(--wp--preset--color--primary);
	--red-light: var(--wp--preset--color--accent);
	--ink: var(--wp--preset--color--ink);
	--muted: var(--wp--preset--color--muted);
	--soft: var(--wp--preset--color--soft);
	--line: var(--wp--preset--color--line);
	--on-navy: #c3ccd5;
	--on-navy-dim: #a9b6c3;
	--navy-line: #2c3d50;
	--radius: 10px;
}

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { overflow-wrap: break-word; letter-spacing: -0.01em; }
.site-main { padding-bottom: 0; }
.site-main > .wp-block-post-content > *:first-child { margin-top: 0; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.page .site-main, .error404 .site-main { padding-bottom: 4rem; }
.home .site-main { padding-bottom: 0; }

/* Small label above headings. Red on light backgrounds, light red on navy. */
.eyebrow {
	display: inline-block;
	font-size: 0.85rem !important; font-weight: 600; letter-spacing: 0.04em;
	color: var(--red) !important; margin-bottom: 0 !important;
}
.is-navy .eyebrow, .b2b-hero .eyebrow { color: var(--red-light) !important; }
.lead { font-size: 1.12rem; color: var(--muted); }
.note {
	background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1rem 1.25rem;
}

/* ---------- Header ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.site-header { background: var(--navy); color: #fff; padding: 0 16px; }
.site-header__inner {
	max-width: 1200px; margin: 0 auto; min-height: 68px;
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand__logo { display: block; width: 44px; height: 44px; flex-shrink: 0; }
.brand__name { font-size: 1.08rem; font-weight: 800; white-space: nowrap; }
.site-nav { display: flex; gap: 1.6rem; font-weight: 500; font-size: 0.97rem; margin-left: auto; }
.site-nav__link { color: var(--on-navy); text-decoration: none; white-space: nowrap; }
.site-nav__link:hover, .site-nav__link[aria-current] { color: #fff; }
.header-tools { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; border: 1px solid #3a4b5e; border-radius: 6px; overflow: hidden; }
.lang-switch a {
	padding: 0.35rem 0.6rem; font-size: 0.82rem; font-weight: 700;
	color: var(--on-navy); text-decoration: none;
}
.lang-switch a + a { border-left: 1px solid #3a4b5e; }
.lang-switch a[aria-current] { background: var(--red); color: #fff; }
.lang-switch a:not([aria-current]):hover { color: #fff; background: var(--navy-2); }
.hdr-cta {
	display: inline-block; white-space: nowrap;
	border: 1px solid #3a4b5e; border-radius: 6px; padding: 0.45rem 0.9rem;
	color: #fff; font-weight: 600; text-decoration: none;
}
.hdr-cta:hover { border-color: #fff; color: #fff; }

/* Mobile menu (no JavaScript): a <details> toggle. */
.mnav { display: none; position: relative; }
.mnav summary {
	list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 6px;
	border: 1px solid #3a4b5e; display: grid; place-content: center; gap: 5px;
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.mnav[open] summary { background: var(--navy-2); }
.mnav__panel {
	position: absolute; right: 0; top: calc(100% + 10px); width: min(80vw, 280px);
	background: var(--navy); border: 1px solid var(--navy-line); border-radius: var(--radius);
	padding: 0.5rem; display: grid; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
.mnav__link { color: #fff; text-decoration: none; padding: 0.75rem 0.9rem; border-radius: 6px; font-weight: 500; }
.mnav__link:hover, .mnav__link[aria-current] { background: var(--navy-2); color: #fff; }
.mnav__phone { border-top: 1px solid var(--navy-line); margin-top: 0.35rem; border-radius: 0; font-weight: 700; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
	background: var(--navy); color: var(--on-navy);
	padding: 3.25rem 16px 3rem;
	margin-bottom: 3rem !important;
}
.page-banner h1 { color: #fff; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 16px; margin: 0 !important; }
.section--soft { background: var(--soft); }
.sec-head { margin-bottom: 2rem; gap: 2rem; align-items: flex-end; }
.sec-head h2 { margin: 0.3rem 0 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.sec-head p { color: var(--muted); margin: 0; max-width: 44ch; }

/* ---------- Home: hero ---------- */
.b2b-hero { background: var(--navy); color: #fff; padding: 3rem 16px 0; margin: 0 !important; }
.b2b-hero__cols { gap: 3rem !important; align-items: stretch !important; margin: 0 !important; }
.b2b-hero__text { padding-bottom: 3rem; }
.b2b-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: 1.15; margin: 0.8rem 0 1rem; }
.b2b-hero p { color: var(--on-navy); font-size: 1.08rem; max-width: 48ch; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.5rem; }
.checks li::before { content: "✓"; color: var(--red-light); font-weight: 800; margin-right: 0.6rem; }
.b2b-hero .is-style-outline .wp-block-button__link {
	background: transparent; color: #fff; border: 1px solid #3a4b5e;
}
.b2b-hero .is-style-outline .wp-block-button__link:hover { border-color: #fff; }
.b2b-hero__media { display: flex; }
.b2b-hero__media figure { margin: 0 !important; flex: 1; display: flex; }
.b2b-hero__media img {
	width: 100%; height: 100%; min-height: 420px; object-fit: cover;
	border-radius: var(--radius) var(--radius) 0 0; display: block;
}

/* ---------- Home: KPI band ---------- */
.kpi { background: var(--navy-2); color: #fff; padding: 0 16px; margin: 0 !important; }
.kpi__cols { gap: 0 !important; margin: 0 !important; }
.kpi__item { padding: 1.6rem 1.25rem; border-left: 1px solid var(--navy-line); }
.kpi__item:first-child { border-left: 0; padding-left: 0; }
.kpi__num { font-size: 1.9rem !important; font-weight: 800; line-height: 1.2; margin: 0 !important; color: #fff; }
.kpi__label { color: var(--on-navy-dim); font-size: 0.92rem; margin: 0.2rem 0 0 !important; }

/* ---------- Home: catalog table ---------- */
.catalog { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.catalog__row {
	display: grid; grid-template-columns: 112px 1.1fr 2fr 110px; align-items: center; gap: 1.5rem;
	padding: 1rem 1.25rem; border-top: 1px solid var(--line);
	color: var(--ink); text-decoration: none;
}
.catalog__row:first-child { border-top: 0; }
.catalog__row.is-head {
	background: var(--soft); font-size: 0.82rem; font-weight: 600; color: var(--muted);
	padding-top: 0.7rem; padding-bottom: 0.7rem;
}
a.catalog__row:hover { background: #fafbfc; color: var(--ink); }
a.catalog__row:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.catalog__img { width: 112px; height: 74px; object-fit: cover; border-radius: 6px; display: block; }
.catalog__title { margin: 0; font-size: 1.12rem; font-weight: 700; }
.catalog__desc { margin: 0; color: var(--muted); font-size: 0.95rem; }
.catalog__more { color: var(--red); font-weight: 700; text-align: right; white-space: nowrap; }

/* ---------- Home: steps ---------- */
.steps { gap: 1rem !important; counter-reset: step; }
.step {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.5rem !important;
}
.step::before {
	counter-increment: step; content: "ნაბიჯი " counter(step);
	display: block; color: var(--red); font-weight: 700; font-size: 0.85rem;
}
.step h3 { margin: 0.35rem 0 0.4rem; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Home: contact band ---------- */
.contact-band { gap: 2.5rem !important; align-items: center !important; }
.contact-band h2 { margin: 0.3rem 0 0.6rem; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.contact-band p { color: var(--muted); }
.contact-card {
	border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.5rem !important; display: grid; gap: 1rem;
}
.contact-card > * { margin: 0 !important; }
.contact-card__label { color: var(--muted); font-size: 0.82rem; }
.contact-card__value { font-weight: 700; font-size: 1.05rem; margin-top: 0.1rem !important; }
.contact-card__value a { color: var(--ink); text-decoration: none; }
.contact-card__value a:hover { color: var(--red); }

/* ---------- Cards (contact page etc.) ---------- */
.card-grid,
.contact-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 1rem !important;
}
.contact-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid > .wp-block-column,
.contact-grid > .wp-block-column { flex-basis: auto !important; margin: 0 !important; }
.contact-grid > .wp-block-column:last-child:nth-child(odd) { grid-column: 1 / -1; }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.5rem 1.5rem 1.35rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0; }
.contact-grid .card a { font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-grid .card a:hover { color: var(--red); }

/* ---------- About: stats ---------- */
.stat-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem !important; margin: 2rem auto 2.5rem !important;
}
.stat-grid > .wp-block-column { flex-basis: auto !important; margin: 0 !important; }
.stat { background: var(--navy); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.15rem; }
.stat__num { font-size: 1.75rem !important; font-weight: 800; line-height: 1.2; color: #fff; margin: 0 !important; }
.stat__label { color: var(--on-navy-dim); font-size: 0.93rem; margin: 0.35rem 0 0 !important; }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }

/* ---------- Cut cards (product pages) ---------- */
.cut-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}
.cut-grid > * { margin: 0 !important; }
.cut-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 0.75rem 0.75rem 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cut-card:hover { border-color: #c5ced7; box-shadow: 0 6px 18px rgba(20, 32, 46, 0.08); }
.cut-card__img {
	margin: 0 0 0.75rem !important;
	height: 150px; display: grid; place-items: center;
	background: #fff; border-radius: 6px; overflow: hidden;
}
/* Crops come from a small photo (rendered at 2x by tools/chart-ka): never stretch them. */
.cut-card__img img { display: block; width: auto; height: auto; max-width: 100%; max-height: 140px; }
.cut-card__img.is-photo { padding: 0; background: none; }
.cut-card__img.is-photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.cut-card__img.is-empty {
	background: repeating-linear-gradient(135deg, #f3f5f7 0 12px, #eceff3 12px 24px);
	color: var(--muted); font-size: 0.85rem; text-align: center; padding: 0 0.75rem;
}
.cut-card__img.is-empty p { margin: 0; }
.cut-card h3 { font-size: 1.02rem !important; font-weight: 700; margin: 0 0.25rem !important; }
.cut-card__note {
	display: inline-block;
	margin: 0.4rem 0.25rem 0 !important;
	font-size: 0.82rem !important; line-height: 1.4;
	color: var(--red); background: #fbe9ea; border-radius: 999px; padding: 0.15rem 0.6rem;
}
@media (prefers-reduced-motion: reduce) { .cut-card { transition: none; } }

.beef-chart { margin: 0 auto 2rem !important; }
.beef-chart img {
	display: block; width: 100%; max-width: 960px; height: auto; margin: 0 auto;
	border-radius: var(--radius); border: 1px solid var(--line);
}
.pork-chart img { background: #fff; padding: 0.5rem; }

/* ---------- Products page blocks ---------- */
.product-cat {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.75rem 1.75rem 1.5rem;
	margin-bottom: 1.5rem !important;
}
.product-cat h2 { margin-top: 0; font-size: 1.4rem !important; }
.product-cat > p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-dim); padding: 3rem 16px 1.5rem; font-size: 0.95rem; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; }
.site-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer__logo { display: block; width: 72px; height: 72px; margin-bottom: 0.9rem; }
.site-footer__name { color: #fff; font-size: 1.15rem; font-weight: 800; margin: 0 0 0.5rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 0.75rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.site-footer__copy {
	border-top: 1px solid var(--navy-line);
	margin-top: 2.5rem !important; padding-top: 1.25rem;
	font-size: 0.88rem; color: var(--on-navy-dim);
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	.hdr-cta, .site-nav { display: none; }
	.mnav { display: block; }
	.site-footer__cols { grid-template-columns: 1fr; gap: 1.75rem; }
	.b2b-hero__media img { min-height: 260px; }
	.kpi__cols { display: grid !important; grid-template-columns: repeat(2, 1fr); }
	.kpi__item { border-left: 0; padding-left: 0; padding-right: 0.5rem; }
	.kpi__num { font-size: 1.35rem !important; }
	.catalog__row { grid-template-columns: 76px 1fr auto; gap: 1rem; }
	.catalog__img { width: 76px; height: 58px; }
	.catalog__desc, .catalog__row.is-head { display: none; }
}
@media (max-width: 781px) {
	.cut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
	.brand__name { font-size: 0.98rem; }
	.product-cat { padding: 1.35rem 1.2rem 1.2rem; }
	.page-banner { padding: 2.5rem 16px 2.25rem; margin-bottom: 2rem !important; }
	.b2b-hero__text { padding-bottom: 1rem; }
}

/* Small phones: keep logo, language switcher and menu button on one row. */
@media (max-width: 480px) {
	.site-header__inner { gap: 0.6rem; }
	.header-tools { gap: 0.5rem; }
	.brand { min-width: 0; gap: 0.5rem; }
	.brand__logo { width: 38px; height: 38px; }
	.brand__name { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; }
	.lang-switch a { padding: 0.3rem 0.45rem; font-size: 0.76rem; }
	.mnav summary { width: 38px; height: 38px; }
}

/* ---------- Cut photo viewer (assets/js/lightbox.js) ---------- */
.cut-card.is-zoomable { cursor: zoom-in; position: relative; }
.cut-card.is-zoomable:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.cut-card.is-zoomable .cut-card__img { position: relative; }
.cut-card.is-zoomable .cut-card__img::after {
	content: ""; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%;
	background: rgba(20, 32, 46, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 16px no-repeat;
	opacity: 0; transition: opacity 0.2s ease;
}
.cut-card.is-zoomable:hover .cut-card__img::after,
.cut-card.is-zoomable:focus-visible .cut-card__img::after { opacity: 1; }
@media (hover: none) { .cut-card.is-zoomable .cut-card__img::after { opacity: 1; } }

html.lightbox-open { overflow: hidden; }
.lightbox {
	border: 0; padding: 0; background: transparent; max-width: none; max-height: none;
	width: 100vw; height: 100vh; margin: 0;
	display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(10, 16, 24, 0.86); }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 0.9rem; }
.lightbox__img {
	display: block; object-fit: contain; background: #fff;
	border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	animation: lightbox-in 0.18s ease-out;
}
@keyframes lightbox-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.lightbox__caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; color: #fff; text-align: center; }
.lightbox__title { font-size: 1.2rem; font-weight: 800; }
.lightbox__note { font-size: 0.85rem; color: var(--red); background: #fbe9ea; border-radius: 999px; padding: 0.1rem 0.6rem; }
.lightbox__count { font-size: 0.85rem; color: var(--on-navy-dim); }
.lightbox__btn {
	position: fixed; border: 0; cursor: pointer; color: #fff;
	background: rgba(255, 255, 255, 0.12); border-radius: 50%;
	width: 48px; height: 48px; font-size: 1.6rem; line-height: 1;
	display: grid; place-items: center;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__btn:focus-visible { outline: 3px solid var(--red-light); outline-offset: 2px; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 16px; right: 16px; font-size: 1.2rem; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.lightbox__img { animation: none; }
	.cut-card.is-zoomable .cut-card__img::after { transition: none; }
}

/* ---------- Price request: card button ---------- */
/* Cards stretch to equal height; the button sits at the bottom of each card. */
.cut-card { display: flex; flex-direction: column; }
.cut-card > .wp-block-heading, .cut-card > .cut-card__note { margin-bottom: 0.8rem !important; }
.cut-card > .wp-block-heading:has(+ .cut-card__note) { margin-bottom: 0 !important; }
.cut-card > .cut-card__note { align-self: flex-start; }
.cut-card__quote {
	margin: auto 0.25rem 0 !important; padding: 0.55rem 0.75rem;
	border: 1px solid var(--red); border-radius: 6px; background: #fff; color: var(--red);
	font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer;
}
.cut-card__quote:hover { background: var(--red); color: #fff; }
.cut-card__quote:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Price request: form ---------- */
.quote-form, .quote-form *, .quote-dialog, .quote-dialog * { box-sizing: border-box; }
.quote-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
.quote-field { display: grid; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.quote-field b { color: var(--red); }
.quote-field--wide { grid-column: 1 / -1; }
.quote-field input, .quote-field textarea {
	font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
	border: 1px solid #c9d1d9; border-radius: 6px; padding: 0.7rem 0.8rem; background: #fff; width: 100%;
}
.quote-field textarea { resize: vertical; min-height: 104px; }
.quote-field input:focus, .quote-field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.quote-field [aria-invalid="true"] { border-color: var(--red); background: #fdf3f3; }
.quote-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.1rem; }
.quote-form__submit {
	font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
	background: var(--red); color: #fff; border: 0; border-radius: 6px; padding: 0.9rem 1.6rem;
}
.quote-form__submit:hover { background: #a01f24; }
.quote-form__submit:disabled { opacity: 0.6; cursor: wait; }
.quote-form__alt { color: var(--muted); font-size: 0.95rem; }
.quote-form__alt a { color: var(--ink); font-weight: 700; text-decoration: none; }
.quote-form__note { color: var(--muted); font-size: 0.82rem; margin: 0.8rem 0 0; }
.quote-form__msg { margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: 6px; font-weight: 600; }
.quote-form__msg[data-state="sent"] { background: #e8f6ee; color: #14532d; border: 1px solid #b7e3c6; }
.quote-form__msg[data-state="error"] { background: #fdf0f0; color: #8a1c20; border: 1px solid #f2c4c6; }
.quote-form.is-sent .quote-form__grid, .quote-form.is-sent .quote-form__actions, .quote-form.is-sent .quote-form__note { display: none; }

/* Contact page section */
.quote-section {
	margin-top: 2.5rem !important; padding: 1.75rem; border: 1px solid var(--line);
	border-radius: var(--radius); background: var(--soft); scroll-margin-top: 90px;
}
.quote-section h2 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.quote-section__lead { color: var(--muted); margin: 0 0 1.25rem; }

/* Pop-up window */
.quote-dialog {
	border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 24px));
	max-height: calc(100vh - 24px); margin: auto;
}
.quote-dialog::backdrop { background: rgba(10, 16, 24, 0.7); }
.quote-dialog__box {
	position: relative; background: #fff; border-radius: 12px; padding: 1.75rem;
	max-height: calc(100vh - 24px); overflow: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.quote-dialog__title { margin: 0 2.5rem 0.3rem 0; font-size: 1.5rem; }
.quote-dialog__lead { color: var(--muted); margin: 0 0 1.25rem; }
.quote-dialog__close {
	position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
	border: 0; background: var(--soft); color: var(--ink); font-size: 1.05rem; cursor: pointer;
}
.quote-dialog__close:hover { background: var(--line); }
.quote-dialog__close:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- WhatsApp / Viber floating buttons ---------- */
.chat-buttons {
	position: fixed; right: 18px; bottom: 18px; z-index: 60;
	display: flex; flex-direction: column; gap: 10px;
}
.chat-btn {
	width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
	color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease;
}
.chat-btn svg { width: 30px; height: 30px; }
.chat-btn--wa { background: #25d366; }
.chat-btn--viber { background: #7360f2; }
.chat-btn:hover { transform: scale(1.07); color: #fff; }
.chat-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
html.lightbox-open .chat-buttons { display: none; }
@media (prefers-reduced-motion: reduce) { .chat-btn { transition: none; } }

@media (max-width: 600px) {
	.quote-form__grid { grid-template-columns: 1fr; }
	.quote-dialog__box { padding: 1.25rem; }
	.quote-section { padding: 1.25rem; }
	.chat-buttons { right: 12px; bottom: 12px; gap: 8px; }
	.chat-btn { width: 48px; height: 48px; }
	.chat-btn svg { width: 26px; height: 26px; }
}

