/* ============================================================
   КЛИМАТ ПРО — page styles: search, sale, brand, about, portfolio
   ============================================================ */

/* ============ SEARCH RESULTS ============ */
.srch-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 8px 6px 22px; box-shadow: var(--sh-sm); max-width: 760px;
  transition: border-color .15s, box-shadow .15s;
}
.srch-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.srch-input { flex: 1; border: 0; background: none; outline: none; font-size: 17px; color: var(--ink); padding: 12px 0; }
.srch-input::placeholder { color: var(--muted-2); }
.srch-go { flex-shrink: 0; }
.srch-empty { margin-top: 28px; }
.srch-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.srch-sec { margin-bottom: 38px; }
.srch-sec:last-child { margin-bottom: 0; }
.srch-sec-h { margin-bottom: 16px; }

.brand-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.brand-chipcard { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; }
.brand-chipcard:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh-md); }
.brand-chip-logo { width: 42px; height: 42px; border-radius: var(--r-sm); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex-shrink: 0; }

/* ============ SALE / PROMO ============ */
.sale-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, #b3361f, var(--warm) 70%);
  padding: clamp(36px,5vw,68px) 0 clamp(40px,5vw,76px);
}
.sale-hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.08); }
.sale-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; }
.sale-hero-copy { min-width: 0; }
.sale-cd-wrap { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.cd { display: flex; align-items: center; gap: 10px; }
.cd-cell { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-sm); padding: 10px 14px; min-width: 64px; text-align: center; backdrop-filter: blur(4px); }
.cd-num { display: block; font-size: 30px; font-weight: 800; color: #fff; line-height: 1; }
.cd-lbl { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.78); margin-top: 5px; }
.cd-sep { color: rgba(255,255,255,.5); font-size: 26px; font-weight: 700; }
.sale-hero-card { position: relative; padding: 18px; cursor: pointer; text-align: left; border: 0; background: var(--surface); box-shadow: var(--sh-lg); }
.sale-hero-card:hover { transform: translateY(-3px); }
.sale-hero-disc { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--sale); color: #fff; font-weight: 800; font-size: 15px; padding: 6px 11px; border-radius: var(--r-sm); }
.sale-hero-media { border-radius: var(--r-md); overflow: hidden; margin-bottom: 12px; }

.sale-deals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sale-deal { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.sale-deal-ic { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--surface-2); display: grid; place-items: center; margin-bottom: 4px; }
.sale-deal strong { font-size: 16px; }

.promo-band {
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  padding: clamp(26px,4vw,44px); flex-wrap: wrap;
  background: linear-gradient(120deg, var(--brand-800), var(--brand-600));
}
.promo-band-copy { flex: 1; min-width: 260px; }
.promo-code-card { background: var(--surface); border-radius: var(--r-lg); padding: 18px; width: 240px; text-align: center; box-shadow: var(--sh-md); }
.promo-code { font-size: 28px; font-weight: 800; letter-spacing: .06em; color: var(--accent); border: 2px dashed var(--line); border-radius: var(--r-md); padding: 12px; margin: 8px 0 14px; }

/* ============ BRAND PAGE ============ */
.brand-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, color-mix(in oklab, var(--brand-accent, var(--accent)) 85%, #000), var(--brand-accent, var(--brand-600)));
  padding: clamp(34px,5vw,64px) 0 clamp(40px,5vw,72px);
}
.brand-hero::before { content: ""; position: absolute; right: -60px; bottom: -100px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.07); }
.brand-hero-in { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 28px; margin-top: 20px; }
.brand-hero-logo { width: 96px; height: 96px; border-radius: var(--r-lg); background: rgba(255,255,255,.92); color: var(--brand-accent, var(--accent)); display: grid; place-items: center; font-weight: 800; font-size: 48px; flex-shrink: 0; box-shadow: var(--sh-md); }
.brand-hero-meta { display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.brand-hero-meta > div { display: flex; flex-direction: column; gap: 4px; }
.bm-l { font-size: 12.5px; color: rgba(255,255,255,.7); }
.bm-v { font-size: 19px; color: #fff; }
.brand-hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.brand-hl { display: flex; align-items: center; gap: 12px; padding: 18px; }
.brand-hl-ic { width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }

/* ============ ABOUT PAGE ============ */
.about-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, var(--brand-900), var(--brand-700));
  padding: clamp(36px,5vw,72px) 0 clamp(64px,7vw,108px);
}
.about-hero::before { content: ""; position: absolute; right: -70px; top: -70px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.06); }
.about-hero .chip { margin-top: 14px; }
.about-stats-wrap { margin-top: clamp(-48px, -4vw, -36px); position: relative; z-index: 2; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.about-stat { background: var(--surface); padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; }
.about-stat .display { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; }

.about-story { display: grid; grid-template-columns: 0.85fr 1fr; gap: 40px; align-items: center; }
.about-story-media { border-radius: var(--r-lg); overflow: hidden; }
.about-story-pts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.about-pt { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); }

.timeline { position: relative; display: flex; flex-direction: column; gap: 6px; padding-left: 2px; }
.tl-item { display: grid; grid-template-columns: 84px 28px 1fr; align-items: stretch; gap: 0; }
.tl-year { font-weight: 800; font-size: 18px; color: var(--accent); padding-top: 18px; }
.tl-dot { position: relative; }
.tl-dot::before { content: ""; position: absolute; left: 50%; top: 24px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); box-shadow: 0 0 0 4px var(--accent-tint); z-index: 1; }
.tl-dot::after { content: ""; position: absolute; left: 50%; top: 24px; bottom: -6px; width: 2px; background: var(--line); transform: translateX(-50%); }
.tl-item:last-child .tl-dot::after { display: none; }
.tl-card { padding: 16px 20px; margin-bottom: 14px; }
.tl-card strong { display: block; margin-bottom: 3px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card { padding: 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.team-ava { width: 100%; border-radius: var(--r-md); overflow: hidden; margin-bottom: 12px; }
.team-card strong { font-size: 15px; }
.team-exp { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-tint); padding: 4px 10px; border-radius: var(--r-pill); }

.lic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lic-card { padding: 14px; }
.lic-img { border-radius: var(--r-sm); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); }
.lic-body strong { display: block; }

/* ============ PORTFOLIO / WORKS ============ */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }
.work-card { overflow: hidden; padding: 0; }
.work-body { padding: 20px; }
.work-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.work-meta-i { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.work-meta-i svg { color: var(--accent); flex-shrink: 0; }

/* before / after */
.ba { position: relative; user-select: none; touch-action: none; cursor: ew-resize; overflow: hidden; }
.ba-layer { position: relative; }
.ba-layer .imgslot, .ba-layer .imgslot-live { border-radius: 0; }
.ba-before { position: absolute; inset: 0; }
.ba-tag { position: absolute; top: 12px; z-index: 3; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(14,26,36,.62); padding: 5px 10px; border-radius: var(--r-pill); backdrop-filter: blur(3px); pointer-events: none; }
.ba-tag-l { left: 12px; }
.ba-tag-r { right: 12px; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; transform: translateX(-50%); z-index: 4; box-shadow: 0 0 8px rgba(0,0,0,.3); pointer-events: none; }
.ba-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; box-shadow: var(--sh-md); }

/* ============ PRODUCT — brand link ============ */
.pg-brandlink { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: color .15s; }
.pg-brandlink:hover { color: var(--accent); }
.pg-brandlink svg { opacity: .6; }

/* ============ COMPARE — best value ============ */
.cmp-best { position: relative; background: var(--eco-soft); color: var(--eco) !important; font-weight: 800; }
.cmp-best-pill { display: block; margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--eco); }

/* ============ MICRO-ANIMATIONS ============ */
@keyframes popIn { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hdr-badge { animation: popIn .25s cubic-bezier(.34,1.56,.64,1) both; }
.cat-card, .pcard, .brand-hl, .sale-deal, .about-stat, .team-card, .lic-card, .work-card { animation: fadeUp .5s cubic-bezier(.22,.61,.36,1) both; }
.btn-cart:active { transform: scale(.9); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .sale-hero-in { grid-template-columns: 1fr; }
  .sale-hero-card { max-width: 320px; }
  .sale-deals, .brand-hl-grid, .about-stats, .team-grid, .lic-grid { grid-template-columns: 1fr 1fr; }
  .about-story { grid-template-columns: 1fr; gap: 24px; }
  .about-story-media { order: -1; }
  .works-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sale-deals, .brand-hl-grid, .team-grid, .lic-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .brand-hero-in { flex-direction: column; gap: 18px; }
  .brand-hero-logo { width: 72px; height: 72px; font-size: 36px; }
  .about-story-pts { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 64px 24px 1fr; }
  .cd-cell { min-width: 54px; padding: 8px 10px; }
  .cd-num { font-size: 24px; }
  .promo-code-card { width: 100%; }
  .srch-input { font-size: 16px; }
}
