:root{--yellow:#ffc800;--yellow-pale:#fff8d8;--graphite:#232b2f;--ink:#20282c;--muted:#6f7b82;--line:#dfe5e8;--soft:#f4f6f7;--white:#fff}
*{box-sizing:border-box}
html,body{min-height:100%;margin:0}
body{background:#f4f6f7;color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif}
.compare-page{min-height:100vh}
.topbar .header-pill{border:1px solid rgba(255,200,0,.26)!important;color:#ffe374!important;background:rgba(255,200,0,.08)!important}
.topbar .logout{border:1px solid rgba(255,255,255,.18)!important;color:#f4f6f7!important;background:rgba(255,255,255,.06)!important}
.topbar .logout:hover{border-color:rgba(255,200,0,.55)!important;background:rgba(255,200,0,.09)!important}
.compare-main{width:min(1120px,calc(100vw - 48px));margin:0 auto;padding:0 0 54px}
.compare-hero{min-height:250px;display:grid;grid-template-columns:1fr 330px;gap:48px;align-items:center;padding:38px 0;border-bottom:1px solid var(--line);background:radial-gradient(circle at 87% 0,rgba(255,200,0,.15) 0,transparent 25%),#fff;box-shadow:0 0 0 100vmax #fff;clip-path:inset(0 -100vmax)}
.compare-hero-copy{display:flex;flex-direction:column;align-items:flex-start}
.compare-hero .eyebrow{display:flex;align-items:center;gap:9px;margin:0 0 17px;color:#826700}
.compare-hero .eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--yellow)}
.compare-hero h1{margin:0 0 14px!important;max-width:780px}
.compare-hero p{max-width:720px;margin:0;color:var(--muted);font-size:14px;line-height:1.65}
.hero-summary{position:relative;overflow:hidden;border:1px solid #dfc65f;border-radius:18px;padding:20px 21px;background:linear-gradient(145deg,#fffdf2,#fff4bd);box-shadow:0 12px 32px rgba(45,39,8,.07)}
.hero-summary:after{content:"";position:absolute;width:100px;height:100px;right:-38px;top:-42px;border-radius:50%;background:rgba(255,200,0,.25)}
.hero-summary .beta-icon{width:38px;height:38px;display:grid;place-items:center;margin-bottom:15px;border-radius:11px;background:var(--graphite);color:var(--yellow);font-size:14px}
.hero-summary label{display:block;color:#876900;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.hero-summary strong{display:block;margin:7px 0 6px;font-size:17px;line-height:1.22;letter-spacing:-.025em}
.hero-summary p{margin:0;color:#786c43;font-size:10px;line-height:1.55}
.compare-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 0 16px}
.compare-toolbar h2{margin:0 0 5px;font-size:22px;letter-spacing:-.035em}
.compare-toolbar p{margin:0;color:var(--muted);font-size:11px}
.toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.control-btn{height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);font-family:inherit;font-size:10px;font-weight:800;cursor:pointer;text-decoration:none}
.control-btn.primary{border-color:var(--yellow);background:var(--yellow)}
.control-btn:hover{border-color:#b6c0c5}
.discount-control{height:40px;display:flex;align-items:center;gap:8px;padding:0 8px 0 11px;border:1px solid #d4bb50;border-radius:11px;background:#fff8d8;color:var(--ink);font-size:10px;font-weight:800}
.discount-control i{color:#806500}
.discount-control select{height:28px;min-width:62px;padding:0 22px 0 8px;border:1px solid #d8c35d;border-radius:8px;background:#fff;color:var(--ink);font:800 10px Inter,"Segoe UI",Arial,sans-serif;outline:0;cursor:pointer}
.selector-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}
.selector-card{position:relative;min-height:172px;padding:16px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 9px 26px rgba(34,43,47,.035)}
.selector-card.is-filled{border-color:#d6c26a;box-shadow:0 10px 30px rgba(112,91,0,.07)}
.selector-index{position:absolute;top:14px;right:14px;width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:var(--graphite);color:var(--yellow);font-size:10px;font-weight:900}
.selector-card label{display:block;margin:0 0 7px;color:#876900;font-size:8px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.selector-card select{width:calc(100% - 34px);height:39px;margin-bottom:10px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:#f8f9fa;color:var(--ink);font-size:11px;font-weight:800;outline:none}
.selector-card select:focus{border-color:#d0a900;box-shadow:0 0 0 3px rgba(255,200,0,.15)}
.selector-preview{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;margin-top:2px}
.selector-preview i{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:var(--graphite);color:var(--yellow)}
.selector-preview b{display:block;font-size:12px}
.selector-preview small{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.35}
.compare-shell{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 14px 34px rgba(34,43,47,.05)}
.compare-empty{padding:65px 22px;text-align:center;color:var(--muted)}
.compare-empty i{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 14px;border-radius:17px;background:var(--graphite);color:var(--yellow);font-size:22px}
.compare-empty h3{margin:0 0 8px;color:var(--ink);font-size:18px}
.compare-empty p{max-width:500px;margin:0 auto;font-size:11px;line-height:1.6}
.comparison-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
.comparison-table th,.comparison-table td{padding:12px 14px;border-right:1px solid #e7ebed;border-bottom:1px solid #e7ebed;vertical-align:middle}
.comparison-table th:last-child,.comparison-table td:last-child{border-right:0}
.comparison-table tr:last-child td{border-bottom:0}
.comparison-table thead th{position:sticky;top:0;z-index:4;background:#fff}
.comparison-table thead th:first-child{width:220px;background:#f7f8f9;color:var(--muted);font-size:9px;text-align:left;text-transform:uppercase;letter-spacing:.09em}
.product-head{text-align:left}
.product-head span{display:block;color:#876900;font-size:8px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.product-head strong{display:block;margin:4px 0 3px;font-size:15px;letter-spacing:-.025em}
.product-head small{display:block;color:var(--muted);font-size:9px;line-height:1.35}
.product-head a{display:inline-flex;align-items:center;gap:5px;margin-top:8px;color:#615000;font-size:8px;font-weight:900;text-decoration:none}
.section-row td{padding:9px 14px!important;background:var(--graphite)!important;color:#fff!important;font-size:8px!important;font-weight:900!important;letter-spacing:.12em!important;text-transform:uppercase}
.param-label{background:#f7f8f9;color:#5e6a70;font-size:9px;font-weight:850}
.param-value{font-size:10px;font-weight:750;line-height:1.45}
.param-value.is-different{background:#fff9dc}
.price-value{font-size:15px;font-weight:900;letter-spacing:-.025em}
.price-old{display:block;color:var(--muted);font-size:8px;font-weight:700;text-decoration:line-through}
.locked-price{color:#876900;font-size:9px;font-weight:900}
.compare-note{display:flex;gap:10px;align-items:flex-start;margin-top:15px;padding:14px 16px;border:1px solid #d9e0e3;border-radius:14px;background:#eef2f3;color:#667279;font-size:9px;line-height:1.6}
.compare-note i{margin-top:2px;color:#8b7000}
.print-summary{display:none}
@media(max-width:900px){.compare-hero{grid-template-columns:1fr}.hero-summary{display:none}.selector-grid{grid-template-columns:1fr}.comparison-table{min-width:850px}.compare-shell{overflow-x:auto}.compare-toolbar{align-items:flex-start;flex-direction:column}.toolbar-actions{justify-content:flex-start}}
@media(max-width:560px){.compare-main{width:calc(100vw - 32px)}.compare-hero{min-height:0;padding:32px 0}.compare-toolbar{padding-top:19px}.discount-control{order:3}.comparison-table thead th:first-child{width:175px}}
@page{size:A4 landscape;margin:5mm}
@media print{
  html,body{width:100%;min-height:0;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .topbar,.compare-hero,.compare-toolbar,.selector-grid,.compare-note,.pereko-site-footer{display:none!important}
  .compare-page,.compare-main{width:100%!important;min-height:0;margin:0!important;padding:0!important}
  .print-summary{height:14mm;display:flex!important;align-items:center;justify-content:space-between;margin:0 0 3mm;padding:0 4mm;border:1px solid #c9d0d4;border-radius:2.5mm;background:#f3f5f6}
  .print-summary>div{display:flex;align-items:center;gap:2.5mm}
  .print-mark{width:8mm;height:8mm;display:grid;place-items:center;border-radius:2mm;background:#ffc800;color:#1f272b;font-size:13pt;font-weight:900}
  .print-summary b,.print-summary small{display:block}
  .print-summary b{font-size:8pt;line-height:1.1}
  .print-summary small{margin-top:1mm;color:#667279;font-size:5.5pt}
  .print-summary p{margin:0;padding:2.5mm 3mm;border-radius:2mm;background:#ffc800;font-size:7pt;font-weight:800}
  .print-summary strong{font-size:9pt}
  .compare-shell{width:100%!important;overflow:visible!important;border:1px solid #9aa4a9;border-radius:2mm;box-shadow:none!important}
  .comparison-table{width:100%!important;table-layout:fixed;font-size:6pt;line-height:1.08}
  .comparison-table thead{display:table-header-group}
  .comparison-table thead th{position:static!important;background:#fff!important}
  .comparison-table thead th:first-child{width:27%!important;background:#f2f4f5!important;font-size:5.4pt}
  .comparison-table th,.comparison-table td{padding:1.05mm 1.4mm!important;border-color:#cfd5d8!important;overflow-wrap:anywhere}
  .product-head span{font-size:4.8pt}
  .product-head strong{margin:.6mm 0 .4mm;font-size:8pt}
  .product-head small{font-size:5.3pt}
  .product-head a{display:none!important}
  .section-row td{padding:.9mm 1.4mm!important;background:#232b2f!important;color:#fff!important;font-size:5.2pt!important;letter-spacing:.08em!important}
  .param-label{background:#f2f4f5!important;font-size:5.3pt}
  .param-value{font-size:5.6pt;line-height:1.08}
  .param-value.is-different{background:#fff6c9!important}
  .price-value{font-size:7.4pt}
  .price-old{display:inline;margin-left:1.4mm;font-size:4.8pt}
  tr{break-inside:avoid;page-break-inside:avoid}
}
