/* =========================================================
   XCool - stylesheet (public site + admin)
   Navy from the logo, pale frost surfaces, one diagonal cut
   taken from the slope of the X mark.
   ========================================================= */
:root{
  --navy:#00275e; --navy-2:#0b3d8c; --deep:#001a42;
  --frost:#eaf3fa; --ice:#9bd4ee;
  --ink:#0f1a2c; --steel:#56657c; --line:#d3deea; --white:#fff;
  --ok:#17794a; --err:#b3261e; --warn:#8a5a00;
  --font:"Segoe UI Variable","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--white);line-height:1.65;font-size:1rem}
img{max-width:100%;height:auto}
a{color:var(--navy-2)}
h1,h2,h3,h4{line-height:1.12;letter-spacing:-.02em;color:var(--navy);margin:0 0 .5em}
p{margin:0 0 1em}
:focus-visible{outline:3px solid var(--ice);outline-offset:2px}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.narrow{max-width:760px}
.skip{position:absolute;left:-999px;top:0;background:var(--navy);color:#fff;padding:10px 16px;z-index:100}
.skip:focus{left:0}

/* ---------- buttons ---------- */
.btn{display:inline-block;background:var(--navy);color:#fff;border:2px solid var(--navy);border-radius:4px;padding:11px 20px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;line-height:1.3}
.btn:hover{background:var(--navy-2);border-color:var(--navy-2)}
.btn-light{background:var(--frost);border-color:var(--frost);color:var(--navy)}
.btn-light:hover{background:#d9e8f4;border-color:#d9e8f4}
.btn-ghost{background:transparent;border-color:transparent;color:var(--steel)}
.btn-ghost:hover{background:transparent;border-color:transparent;text-decoration:underline}
.btn-white{background:#fff;border-color:#fff;color:var(--navy)}
.btn-white:hover{background:var(--frost);border-color:var(--frost)}
.btn-outline{background:transparent;border-color:rgba(255,255,255,.55);color:#fff}
.btn-outline:hover{background:rgba(255,255,255,.12);border-color:#fff}
.text-link{font-weight:600;text-decoration:none;border-bottom:2px solid var(--ice)}
.text-link:hover{border-color:var(--navy)}

/* ---------- header ---------- */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.hrow{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}
.brand img{height:30px;width:auto;display:block}
.nav{display:flex;gap:28px;align-items:center}
.nav a{color:var(--ink);text-decoration:none;font-weight:600;padding:6px 0;border-bottom:2px solid transparent}
.nav a:hover{border-bottom-color:var(--ice)}
.nav a.on{border-bottom-color:var(--navy);color:var(--navy)}
.burger{display:none;background:none;border:0;padding:10px;cursor:pointer}
.burger span{display:block;width:24px;height:2px;background:var(--navy);margin:5px 0}

/* ---------- hero (the one bold move) ---------- */
.hero{position:relative;overflow:hidden;color:#fff;background:linear-gradient(120deg,var(--deep) 0%,var(--navy) 58%,var(--navy-2) 100%);padding:96px 0 150px;clip-path:polygon(0 0,100% 0,100% 86%,0 100%)}
.hero::before{content:"";position:absolute;right:-7%;top:46%;transform:translateY(-50%);width:min(64vw,860px);aspect-ratio:1000/735;background:url(../img/mark-white.png) center/contain no-repeat;opacity:.10}
.hero-in{position:relative;z-index:1}
.hero h1{color:#fff;font-size:clamp(2.2rem,5.4vw,4.1rem);font-weight:800;max-width:15em;margin-bottom:.45em}
.hero-lead{font-size:1.2rem;max-width:36em;color:#dbe8f6;margin-bottom:1.6em}
.hero-btns{display:flex;gap:12px;flex-wrap:wrap}

/* ---------- sections ---------- */
.section{padding:72px 0}
.section-tight{padding:36px 0 72px}
.section-frost{background:var(--frost)}
.section-title{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:800}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.section-head .section-title{margin:0}
.empty{color:var(--steel);padding:12px 0}

.cover{display:grid;grid-template-columns:repeat(3,1fr);gap:36px;margin-top:28px}
.cover-item{border-top:3px solid var(--navy);padding-top:20px}
.cover-item svg{width:38px;height:38px;fill:none;stroke:var(--navy);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:14px}
.cover-item h3{font-size:1.25rem}
.cover-item p{color:var(--steel);margin:0}

/* ---------- tiles: product groups ---------- */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:24px}
.tile{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;text-decoration:none;color:inherit}
.tile:hover{border-color:var(--navy)}
.tile-img{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;background:#fff;border-bottom:1px solid var(--line)}
.tile-img img{width:100%;height:100%;object-fit:cover}
.tile-img.is-empty{background:linear-gradient(135deg,var(--navy),var(--navy-2))}
.tile-img.is-empty img.ph{width:42%;height:auto;object-fit:contain;opacity:.35}
.tile-body{display:flex;flex-direction:column;gap:6px;padding:18px 20px 22px}
.tile-body strong{font-size:1.2rem;color:var(--navy);letter-spacing:-.01em}
.tile-sum{color:var(--steel);font-size:.95rem}
.tile-meta{color:var(--navy-2);font-size:.9rem;font-weight:600;margin-top:4px}

/* ---------- product cards ---------- */
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px}
.pcard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;text-decoration:none;color:inherit}
.pcard:hover{border-color:var(--navy)}
.pcard-img{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;background:#fff;border-bottom:1px solid var(--line)}
.pcard-img img{width:100%;height:100%;object-fit:contain;padding:14px}
.pcard-body{display:flex;flex-direction:column;gap:4px;padding:14px 16px 18px}
.pcard-body strong{color:var(--navy);font-size:1.02rem;line-height:1.35}
.pcard-sum{color:var(--steel);font-size:.9rem}
.noimg{color:var(--steel);font-size:.9rem}
.sku{color:var(--steel);font-size:.9rem;margin:0}

/* ---------- about / steps ---------- */
.about{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.about p{color:var(--steel);font-size:1.08rem;max-width:34em}
.steps{list-style:none;margin:0;padding:0;counter-reset:s;display:flex;flex-direction:column;gap:22px}
.steps li{counter-increment:s;display:grid;grid-template-columns:44px 1fr;column-gap:16px;align-items:start}
.steps li::before{content:counter(s);grid-row:1 / span 2;width:44px;height:44px;border-radius:50%;border:2px solid var(--navy);color:var(--navy);font-weight:800;display:flex;align-items:center;justify-content:center}
.steps strong{color:var(--navy);font-size:1.1rem}
.steps span{color:var(--steel)}

/* ---------- call to action band ---------- */
.cta{background:var(--navy);color:#fff;padding:52px 0}
.cta-in{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.cta h2{color:#fff;margin:0 0 6px;font-size:1.7rem}
.cta p{margin:0;color:#cfe0f3}

/* ---------- inner page heads ---------- */
.page-head{background:var(--frost);padding:34px 0 40px;border-bottom:1px solid var(--line)}
.page-head h1{font-size:clamp(1.9rem,4vw,2.9rem);font-weight:800;margin-bottom:.3em}
.page-head p{color:var(--steel);max-width:40em;margin-bottom:0}
.page-head-slim{padding:18px 0}
.crumbs{display:flex;flex-wrap:wrap;gap:0;margin-bottom:14px;font-size:.92rem;color:var(--steel)}
.crumbs a{color:var(--navy-2);text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.crumbs > * + *::before{content:"/";margin:0 9px;color:#9aa8bb}
.page-head-slim .crumbs{margin:0}
.search{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 26px}
.search input{flex:1;min-width:220px;max-width:480px;padding:11px 14px;border:1px solid #b9c8da;border-radius:4px;font:inherit;background:#fff}
.page-head .search{margin:22px 0 0}
.notice{background:#fff4d6;border:1px solid #efd58a;color:#5c4300;padding:9px 14px;border-radius:4px;margin-bottom:16px;max-width:none!important}
.prose{max-width:46em;color:#2a3850;margin-bottom:26px}

/* ---------- product detail ---------- */
.detail{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.detail-img{display:flex;align-items:center;justify-content:center;min-height:300px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:20px}
.detail-img img{max-width:100%;max-height:460px;object-fit:contain}
.detail-info h1{font-size:clamp(1.7rem,3.4vw,2.5rem);font-weight:800;margin:10px 0 6px}
.detail-info .lead{font-size:1.1rem;color:#2a3850;margin:14px 0 22px}
.tag{display:inline-block;background:var(--frost);color:var(--navy);font-size:.85rem;font-weight:600;padding:3px 12px;border-radius:99px;text-decoration:none}
.tag:hover{background:#d9e8f4}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.block{margin-top:34px;padding:26px 28px;border:1px solid var(--line);border-radius:6px;background:#fff}
.block h2{font-size:1.3rem}
.block-plain{border:0;padding:0}
.specs{width:100%;border-collapse:collapse}
.specs th,.specs td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.specs tr:nth-child(odd){background:#f7fafd}
.specs th{width:34%;color:var(--steel);font-weight:600}

/* ---------- footer ---------- */
.site-footer{background:var(--deep);color:#c6d6ea;padding-top:52px}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px}
.foot-brand img{height:30px;width:auto;margin-bottom:14px}
.foot-brand p{max-width:26em;margin:0}
.site-footer h4{color:#fff;font-size:1rem;margin-bottom:12px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:6px}
.site-footer a{color:#c6d6ea;text-decoration:none}
.site-footer a:hover{color:#fff;text-decoration:underline}
.foot-base{margin-top:40px;padding-top:18px;padding-bottom:22px;border-top:1px solid rgba(255,255,255,.14);font-size:.88rem;color:#8ea5c4}

/* ---------- admin ---------- */
.is-admin{background:#f4f7fb}
.is-admin main{padding-top:32px;padding-bottom:56px}
.admin-bar{background:var(--navy)}
.admin-bar .brand img{height:28px}
.admin-nav{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.admin-nav a,.admin-nav .link-btn{color:#fff;text-decoration:none;font-size:.95rem;opacity:.85;font-weight:500}
.admin-nav a:hover,.admin-nav .link-btn:hover{opacity:1;text-decoration:underline}
.admin-nav a.on{opacity:1;border-bottom:2px solid var(--ice)}
.is-admin h1{font-size:1.7rem;font-weight:800}
.form{display:flex;flex-direction:column;gap:16px;background:#fff;padding:26px;border:1px solid var(--line);border-radius:6px}
.form label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.95rem}
.form small{font-weight:400;color:var(--steel)}
.form input[type=text],.form input[type=password],.form input[type=number],.form select,.form textarea{padding:10px 12px;border:1px solid #b9c8da;border-radius:4px;font:inherit;font-weight:400;background:#fff;color:var(--ink)}
.form input[type=file]{font-weight:400}
.hint{color:var(--steel);font-size:.92rem;margin:0}
.current-img{display:flex;gap:16px;align-items:center}
.current-img img{height:80px;border:1px solid var(--line);border-radius:4px;background:#fff}
.check{flex-direction:row!important;align-items:center;font-weight:400!important}
.msg{padding:10px 14px;border-radius:4px;margin-bottom:14px}
.msg.ok{background:#e1f4ea;color:var(--ok)}
.msg.err{background:#fde8e6;color:var(--err)}
.bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.bar h1{margin:0}
.filters{display:flex;gap:10px;margin-bottom:18px}
.filters select{padding:9px 12px;border:1px solid #b9c8da;border-radius:4px;font:inherit;background:#fff}
.stats{display:flex;gap:18px;flex-wrap:wrap;margin:6px 0 22px}
.stat{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:18px 26px;min-width:220px}
.stat b{font-size:2.4rem;color:var(--navy);line-height:1}
.stat small{color:var(--steel)}
.table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:6px}
.admin-table{width:100%;border-collapse:collapse;min-width:780px}
.admin-table th,.admin-table td{padding:10px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.admin-table th{font-size:.82rem;color:var(--steel);font-weight:600;background:#f7fafd}
.admin-table code{background:var(--frost);padding:1px 6px;border-radius:3px}
.thumb img{width:52px;height:52px;object-fit:contain;border:1px solid var(--line);border-radius:4px;background:#fff}
.badge{display:inline-block;font-size:.78rem;padding:2px 10px;border-radius:99px;font-weight:600}
.b-pub{background:#e1f4ea;color:var(--ok)}
.b-draft{background:#eef0f4;color:var(--steel)}
.warn{color:var(--warn)}
.acts{white-space:nowrap}
.acts a,.acts .link-btn{margin-right:12px;font-size:.92rem}
.inline{display:inline;margin:0}
.link-btn{background:none;border:0;padding:0;cursor:pointer;color:var(--navy-2);font:inherit;text-decoration:underline}
.link-btn.danger{color:var(--err)}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .cover{grid-template-columns:1fr;gap:28px}
  .about{grid-template-columns:1fr;gap:32px}
  .foot-grid{grid-template-columns:1fr 1fr}
  .foot-brand{grid-column:1 / -1}
}
@media (max-width:760px){
  .burger{display:block}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;align-items:flex-start;gap:0;padding:8px 20px 14px}
  .nav.open{display:flex}
  .nav a{padding:12px 0;width:100%}
  .hero{padding:64px 0 110px}
  .detail{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}

/* contact: social icons + catalog, clickable links in text */
.social{display:flex;gap:10px;margin-top:16px}
.site-footer .social a{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.4);border-radius:50%;color:#fff}
.site-footer .social a:hover{background:#fff;color:var(--deep);text-decoration:none}
.social svg{width:20px;height:20px}
.site-footer .foot-catalog{display:inline-flex;align-items:center;gap:10px;margin-top:16px;padding:9px 14px;border:1px solid rgba(255,255,255,.4);border-radius:6px;color:#fff;font-weight:600}
.site-footer .foot-catalog:hover{background:#fff;color:var(--deep);text-decoration:none}
.foot-catalog svg{width:20px;height:20px;flex:none}
.prose,.specs td{overflow-wrap:anywhere}
.prose a,.specs a{color:var(--navy-2);text-decoration:underline}
