/* ==========================================================================
   Q Clima — compare page (/sravnenie/): 2 product columns + spec table.
   Columns line up: heads grid and table share the same column widths
   (label 284px on desktop; the 2 value columns split the rest). On mobile both
   products stay side by side and each row label sits above its two values.
   ========================================================================== */

.qc-cmp { padding: 24px 0 var(--qc-section); }
@media (min-width: 900px) { .qc-cmp { padding-top: 40px; } }

/* Empty state (shared look with the account area) */
.qc-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 760px; margin: 0 auto; padding: 48px 20px; border: 1px dashed var(--qc-line-strong); border-radius: var(--qc-r-lg); background: var(--qc-ice); text-align: center; }
.qc-empty p { max-width: 46ch; color: var(--qc-text-2); }
.qc-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; background: var(--qc-sky-soft); color: var(--qc-sky); }
.qc-empty__title { margin: 0 0 4px; font-size: 22px; }

/* Heads ------------------------------------------------------------------ */
.qc-cmp__heads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; margin: 0 -5px 20px; }
.qc-cmp__intro { grid-column: 1 / -1; display: grid; gap: 8px; margin: 0 5px 14px; }
.qc-cmp__diff { align-self: start; min-height: 44px; align-items: center; padding: 0 14px; border: 1px solid var(--qc-line); border-radius: var(--qc-r); background: #fff; font-weight: 700; color: var(--qc-navy); justify-self: start; }
.qc-cmp__diff input { margin: 0; }
.qc-cmp__legend { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; color: var(--qc-muted); line-height: 1.45; }
.qc-cmp__legend .qc-cmp__best-dot { margin-top: 1px; }

.qc-cmp__prod { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0 5px; padding: 8px 8px 12px; background: #fff; border: 1px solid var(--qc-line); border-radius: var(--qc-r-lg); box-shadow: var(--qc-shadow-1); transition: opacity .2s; }
.qc-cmp__prod.is-leaving { opacity: .35; }
.qc-cmp__remove { position: absolute; top: 6px; right: 6px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(241, 245, 249, .92); color: var(--qc-navy); transition: background-color .15s, color .15s; }
.qc-cmp__remove:hover { background: var(--qc-coral); color: #fff; }
.qc-cmp__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: var(--qc-r-md); background: radial-gradient(60% 60% at 50% 55%, #EEF6FF 0%, #fff 75%); overflow: hidden; }
.qc-cmp__img { width: 88%; height: 88%; object-fit: contain; }
.qc-cmp__body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 8px 4px 0; }
.qc-cmp__name { margin: 0 0 6px; font: 600 15px/1.25 var(--qc-font-head); letter-spacing: .01em; }
.qc-cmp__name a { color: var(--qc-navy); }
.qc-cmp__name a:hover { color: var(--qc-sky); }
.qc-cmp__buy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; padding-bottom: 12px; }
.qc-cmp__buy .qc-price__now { font-size: 19px; }
.qc-cmp__cart { min-height: 44px; padding: 0 10px; }
.qc-cmp__cart-long { display: none; }
.qc-cmp__cart.is-added { background: var(--qc-green); }

.qc-cmp__add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; margin: 0 5px; padding: 20px 12px; border: 2px dashed var(--qc-line-strong); border-radius: var(--qc-r-lg); background: var(--qc-ice); color: var(--qc-text-2); text-align: center; transition: border-color .15s, background-color .15s; }
.qc-cmp__add:hover { border-color: var(--qc-sky); background: #fff; color: var(--qc-text-2); }
.qc-cmp__add strong { font: 600 18px/1.2 var(--qc-font-head); color: var(--qc-navy); }
.qc-cmp__add > span:last-child { font-size: 13px; }
.qc-cmp__add-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--qc-sky-soft); color: var(--qc-sky); }

@media (min-width: 600px) {
	.qc-cmp__heads { margin: 0 -8px 24px; }
	.qc-cmp__intro, .qc-cmp__prod, .qc-cmp__add { margin: 0 8px; }
	.qc-cmp__intro { margin-bottom: 16px; }
	.qc-cmp__prod { padding: 12px 12px 16px; }
	.qc-cmp__name { font-size: 18px; }
	.qc-cmp__buy { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
	.qc-cmp__buy .qc-price__now { font-size: 22px; }
	.qc-cmp__cart-long { display: inline; }
	.qc-cmp__cart-short { display: none; }
}
@media (min-width: 900px) {
	.qc-cmp__heads { grid-template-columns: 284px repeat(2, minmax(0, 1fr)); margin: 0 0 24px; }
	.qc-cmp__intro { grid-column: 1; align-content: end; margin: 0 24px 0 0; padding-bottom: 8px; }
	.qc-cmp__prod, .qc-cmp__add { margin: 0 12px; }
	.qc-cmp__name { font-size: 21px; }
	.qc-cmp__body { padding: 12px 8px 0; }
}

/* Best-value marker */
.qc-cmp__best-dot { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--qc-green); color: #fff; }
.qc-cmp__best-dot .qc-i { stroke-width: 3; }

/* Table ------------------------------------------------------------------ */
.qc-cmp__table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.qc-cmp__table, .qc-cmp__table thead, .qc-cmp__table tbody, .qc-cmp__table tr { display: block; }
.qc-cmp__table thead { position: sticky; top: var(--qc-cmp-top, 64px); z-index: 5; }
.qc-cmp__table thead tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; background: #fff; border-bottom: 1px solid var(--qc-line); box-shadow: 0 8px 16px -12px rgba(15, 23, 42, .25); }
.qc-cmp__corner { display: none; }
.qc-cmp__mini { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 6px; text-align: left; font-weight: 400; }
.qc-cmp__mini + .qc-cmp__mini { border-left: 1px solid var(--qc-subtle); }
.qc-cmp__mini-img { flex: none; width: 36px; height: 36px; border-radius: 6px; background: var(--qc-ice); overflow: hidden; }
.qc-cmp__mini-img img { width: 100%; height: 100%; object-fit: contain; }
.qc-cmp__mini-text { display: grid; min-width: 0; line-height: 1.2; }
.qc-cmp__mini-name { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font: 600 13px/1.2 var(--qc-font-head); color: var(--qc-navy); }
.qc-cmp__mini-price { font-weight: 800; font-size: 13px; color: var(--qc-navy-ink); }

.qc-cmp__grp-row { display: block; }
.qc-cmp__grp-row th { display: block; padding: 22px 6px 8px; text-align: left; font: 600 18px/1.2 var(--qc-font-head); letter-spacing: .02em; text-transform: uppercase; color: var(--qc-navy); }
.qc-cmp__table .qc-cmp__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--qc-subtle); }
.qc-cmp__label { grid-column: 1 / -1; padding: 10px 6px 2px; text-align: left; font: 700 11.5px/1.35 var(--qc-font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--qc-muted); }
.qc-cmp__val { min-width: 0; padding: 4px 6px 10px; font-size: 14px; font-weight: 600; color: var(--qc-text); overflow-wrap: anywhere; }
.qc-cmp__val + .qc-cmp__val { border-left: 1px solid var(--qc-subtle); padding-left: 10px; }
.qc-cmp__v { display: inline-flex; align-items: center; gap: 6px; }
.qc-cmp__val.is-best { background: linear-gradient(0deg, #ECFDF5, #ECFDF5); }
.qc-cmp__val.is-best .qc-cmp__v { color: #065F46; font-weight: 800; }
.qc-cmp__none { color: var(--qc-line-strong); font-weight: 700; }
.qc-cmp__feat { display: grid; gap: 3px; list-style: none; font-size: 13px; font-weight: 600; color: var(--qc-text-2); }
.qc-cmp__feat li { position: relative; padding-left: 12px; }
.qc-cmp__feat li::before { content: ''; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--qc-sky); }
.qc-cmp__table.is-diff .qc-cmp__row.is-same { display: none; }
.qc-cmp__note { margin: 20px 0 0; font-size: 13px; }

@media (min-width: 900px) {
	.qc-cmp__table { display: table; table-layout: fixed; }
	.qc-cmp__table thead { display: table-header-group; position: static; }
	.qc-cmp__table tbody { display: table-row-group; }
	.qc-cmp__table tbody[hidden] { display: none !important; }
	.qc-cmp__table tr, .qc-cmp__table thead tr { display: table-row; box-shadow: none; background: none; }
	.qc-cmp__table thead th, .qc-cmp__table thead td { position: sticky; top: var(--qc-cmp-top, 76px); z-index: 5; background: #fff; border-bottom: 1px solid var(--qc-line); box-shadow: 0 8px 12px -12px rgba(15, 23, 42, .3); }
	.qc-cmp__corner { display: table-cell; width: 284px; }
	.qc-cmp__mini { display: table-cell; padding: 10px 24px; vertical-align: middle; }
	.qc-cmp__mini-img, .qc-cmp__mini-text { display: inline-block; vertical-align: middle; }
	.qc-cmp__mini-img { width: 44px; height: 44px; margin-right: 10px; }
	.qc-cmp__mini-text { max-width: calc(100% - 60px); }
	.qc-cmp__mini-name { font-size: 15px; }
	.qc-cmp__mini-price { display: block; font-size: 14px; }
	.qc-cmp__mini + .qc-cmp__mini, .qc-cmp__val + .qc-cmp__val { border-left: 0; }
	.qc-cmp__grp-row th { display: table-cell; padding: 32px 0 10px; font-size: 20px; border-bottom: 2px solid var(--qc-navy); }
	.qc-cmp__table .qc-cmp__row { display: table-row; border: 0; }
	.qc-cmp__label, .qc-cmp__val { display: table-cell; padding: 14px 24px; border-bottom: 1px solid var(--qc-line); vertical-align: top; }
	.qc-cmp__label { width: 284px; padding-left: 0; font: 600 14px/1.45 var(--qc-font-body); letter-spacing: 0; text-transform: none; color: var(--qc-text-2); }
	.qc-cmp__val { font-size: 15px; }
	.qc-cmp__val + .qc-cmp__val { padding-left: 24px; }
	.qc-cmp__row:hover .qc-cmp__label, .qc-cmp__row:hover .qc-cmp__val:not(.is-best) { background: var(--qc-ice); }
	.qc-cmp__val.is-best { border-radius: 0; }
	.qc-cmp__feat { font-size: 14px; }
}
@media (min-width: 900px) { .qc-cmp__media { aspect-ratio: 16 / 9; } }
