/* AirClima — перший екран на головній (модуль airclima_promo), варіант C */
@property --acpT { syntax: '<integer>'; initial-value: 22; inherits: false; }

.acp { container-type: inline-size; margin: 0 0 20px; font-family: 'Open Sans', sans-serif; }
.acp *, .acp *::before, .acp *::after { box-sizing: border-box; }
.acp a { text-decoration: none; }

/* ---------- Сезонні палітри ---------- */
.acp--winter {
  --acp-hero: radial-gradient(820px 560px at 82% 36%, rgba(255, 140, 0, .26) 0%, rgba(255, 140, 0, 0) 62%), linear-gradient(118deg, #06163F 0%, #0A3384 52%, #1046A0 100%);
  --acp-accent: #FFC46B; --acp-mborder: rgba(255, 183, 77, .55); --acp-mlabel: #FFB74D;
  --acp-flow: #FFB74D; --acp-aurora: rgba(255, 152, 0, .30); --acp-aurora2: rgba(66, 165, 245, .18);
  --acp-spot: rgba(255, 200, 130, .13); --acp-halo: rgba(255, 167, 38, .42); --acp-dot: rgba(255, 190, 110, .95);
  --acp-mode: #FFB74D; --acp-card: linear-gradient(160deg, #FFFFFF 0%, #FFF5E8 100%); --acp-cardsub: #5A4A36;
  --acp-tagbg: #FF9800; --acp-tagfg: #1A1206; --acp-check: #FF9800;
  --acp-glow: radial-gradient(circle, rgba(255, 167, 38, .28) 0%, rgba(255, 167, 38, 0) 65%);
  --acp-dot-anim: acpRise;
}
.acp--summer {
  --acp-hero: radial-gradient(820px 560px at 82% 36%, rgba(38, 198, 218, .28) 0%, rgba(38, 198, 218, 0) 62%), linear-gradient(118deg, #001B5E 0%, #0D47A1 52%, #0277BD 100%);
  --acp-accent: #80DEEA; --acp-mborder: rgba(128, 222, 234, .55); --acp-mlabel: #80DEEA;
  --acp-flow: #80DEEA; --acp-aurora: rgba(77, 208, 225, .30); --acp-aurora2: rgba(129, 212, 250, .20);
  --acp-spot: rgba(170, 240, 255, .13); --acp-halo: rgba(77, 208, 225, .40); --acp-dot: rgba(224, 250, 255, .95);
  --acp-mode: #80DEEA; --acp-card: linear-gradient(160deg, #FFFFFF 0%, #EAF4FD 100%); --acp-cardsub: #3B4655;
  --acp-tagbg: #64B5F6; --acp-tagfg: #002472; --acp-check: #64B5F6;
  --acp-glow: radial-gradient(circle, rgba(100, 181, 246, .32) 0%, rgba(100, 181, 246, 0) 65%);
  --acp-dot-anim: acpFall;
}
/* Темна тема UpStore (клас на <html>) — глибша основа, щоб блок не «світився» на чорному */
html.dark-theme .acp--winter { --acp-hero: radial-gradient(820px 560px at 82% 36%, rgba(255, 140, 0, .26) 0%, rgba(255, 140, 0, 0) 62%), linear-gradient(118deg, #02081C 0%, #072766 55%, #0B378A 100%); }
html.dark-theme .acp--summer { --acp-hero: radial-gradient(820px 560px at 82% 36%, rgba(38, 198, 218, .28) 0%, rgba(38, 198, 218, 0) 62%), linear-gradient(118deg, #000D2E 0%, #0A367F 55%, #035A94 100%); }

/* ---------- Панель і фон ---------- */
.acp .acp-panel { position: relative; overflow: hidden; border-radius: 24px; padding: 30px 30px 30px 34px; background: var(--acp-hero); color: #FFFFFF; box-shadow: 0 24px 48px -30px rgba(2, 16, 60, .55); }
.acp .acp-fx { position: absolute; inset: 0; pointer-events: none; }
.acp .acp-aurora { position: absolute; left: 56%; top: -18%; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, var(--acp-aurora) 0%, rgba(0, 0, 0, 0) 64%); animation: acpBreathe 10s ease-in-out infinite; }
.acp .acp-aurora--2 { left: -10%; top: 46%; width: 480px; height: 480px; background: radial-gradient(circle, var(--acp-aurora2) 0%, rgba(0, 0, 0, 0) 64%); animation-duration: 14s; animation-direction: reverse; }
.acp .acp-grid-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, rgba(0, 0, 0, 0) 1.4px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, .9) 60%, rgba(0, 0, 0, .4) 100%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, .9) 60%, rgba(0, 0, 0, .4) 100%); }
.acp .acp-spot { position: absolute; inset: 0; background: radial-gradient(460px circle at var(--mx, 72%) var(--my, 42%), var(--acp-spot) 0%, rgba(0, 0, 0, 0) 62%); }
.acp .acp-flows { position: absolute; left: 0; top: 0; -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .35) 46%, #000 62%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .35) 46%, #000 62%); }
.acp .acp-flow { stroke: var(--acp-flow); animation: acpFlow 14s linear infinite; }
.acp .acp-flow--2 { animation-duration: 19s; }
.acp .acp-flow--3 { animation-duration: 24s; }
.acp .acp-dot { position: absolute; border-radius: 50%; background: var(--acp-dot); box-shadow: 0 0 10px var(--acp-dot); opacity: 0; animation-name: var(--acp-dot-anim); animation-timing-function: linear; animation-iteration-count: infinite; }
.acp--winter .acp-dot { animation-name: acpRise; }
.acp--summer .acp-dot { animation-name: acpFall; }

/* ---------- Сітка ---------- */
.acp .acp-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 30px; align-items: stretch; }
.acp .acp-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.acp .acp-right { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.acp .acp-eyebrow { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #DCEFFB; font-size: 12px; line-height: 1.35; font-weight: 600; }
.acp .acp-eyebrow svg { flex: none; }
.acp .acp-h1 { margin: 0; padding: 0; font-family: 'Open Sans', sans-serif; font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: #FFFFFF; }
.acp .acp-h1 span { color: var(--acp-accent); }
.acp .acp-sub { margin: 0; font-size: 15.5px; line-height: 1.55; color: #D6E6F8; }

.acp .acp-mount { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid var(--acp-mborder); }
.acp .acp-mount-price { display: flex; flex-direction: column; flex: none; }
.acp .acp-mount-price span { font-size: 12px; font-weight: 700; color: var(--acp-mlabel); text-transform: uppercase; letter-spacing: .06em; }
.acp .acp-mount-price b { font-size: 24px; font-weight: 800; line-height: 1.15; color: #FFFFFF; white-space: nowrap; }
.acp .acp-mount i { width: 1px; align-self: stretch; background: var(--acp-mborder); }
.acp .acp-mount p { margin: 0; font-size: 12.5px; line-height: 1.45; color: #D6E6F8; }

.acp .acp-areas { display: flex; flex-direction: column; gap: 8px; }
.acp .acp-areas-q { font-size: 14px; font-weight: 700; color: #FFFFFF; }
.acp .acp-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.acp .acp-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 58px; padding: 8px 11px; border-radius: 13px; border: 2px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #FFFFFF; transition: transform .18s ease, background .18s ease; }
.acp .acp-chip:hover { transform: translateY(-3px); color: #FFFFFF; }
.acp .acp-chip b { font-size: 18px; font-weight: 800; }
.acp .acp-chip small { font-size: 11.5px; color: #BFD7F2; white-space: nowrap; }
.acp .acp-chip.is-on { background: #FFFFFF; border-color: #FFFFFF; color: #0D47A1; box-shadow: 0 10px 20px -12px rgba(13, 71, 161, .8); }
.acp .acp-chip.is-on small { color: #3B4655; }

.acp .acp-ctarow { margin-top: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.acp .acp-cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 14px; background: linear-gradient(180deg, #FFA726 0%, #FF9800 100%); color: #1A1206; font-size: 15.5px; font-weight: 700; box-shadow: 0 12px 24px -12px rgba(255, 152, 0, .9); }
.acp .acp-cta:hover { color: #1A1206; filter: brightness(1.04); }
.acp .acp-cta::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); animation: acpShine 5s ease-in-out infinite; pointer-events: none; }
.acp .acp-calc { color: #FFFFFF; font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.acp .acp-calc:hover { color: var(--acp-accent); }

/* ---------- Картка товару ---------- */
.acp .acp-cardwrap { position: relative; flex: 1; display: flex; }
.acp .acp-halo { position: absolute; left: -40px; right: -40px; top: -30px; bottom: -30px; border-radius: 60px; background: radial-gradient(closest-side, var(--acp-halo) 0%, rgba(0, 0, 0, 0) 100%); pointer-events: none; animation: acpHalo 6s ease-in-out infinite; }
.acp .acp-card { position: relative; flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 22px; background: var(--acp-card); border: 1px solid rgba(255, 255, 255, .6); color: #0B1F3A; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.acp .acp-card-glow { position: absolute; right: -60px; top: 20px; width: 300px; height: 300px; border-radius: 50%; background: var(--acp-glow); pointer-events: none; }
.acp .acp-tags { position: relative; display: flex; align-items: center; gap: 6px; }
.acp .acp-tag { padding: 4px 10px; border-radius: 999px; background: var(--acp-tagbg); color: var(--acp-tagfg); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.acp .acp-sale { padding: 4px 9px; border-radius: 999px; background: #D32F2F; color: #FFFFFF; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.acp .acp-live { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--acp-cardsub); white-space: nowrap; }
.acp .acp-live i { width: 7px; height: 7px; border-radius: 50%; background: #43A047; animation: acpPing 2s ease-out infinite; }
.acp .acp-imgbox { position: relative; height: 150px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.acp .acp-imgbox img { max-width: 300px; max-height: 144px; width: auto; height: auto; display: block; mix-blend-mode: multiply; animation: acpFloat 6s ease-in-out infinite; }
.acp .acp-thermo { position: absolute; right: 8px; bottom: 6px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(11, 31, 58, .92); color: #FFFFFF; box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .6); }
.acp .acp-thermo-ico { width: 24px; height: 24px; border-radius: 50%; background: var(--acp-mode); display: flex; align-items: center; justify-content: center; color: #0B1F3A; }
.acp .acp-thermo-label { font-size: 12px; font-weight: 600; color: #BFD7F2; }
.acp .acp-temp { font-size: 15px; font-weight: 800; min-width: 28px; counter-reset: t var(--acpT); }
.acp .acp-temp::after { content: counter(t) '°'; }
.acp .acp-temp--winter { --acpT: 24; animation: acpHeat 2.8s cubic-bezier(.2, .7, .2, 1) .6s both; }
.acp .acp-temp--summer { --acpT: 18; animation: acpCool 2.8s cubic-bezier(.2, .7, .2, 1) .6s both; }
.acp .acp-name { position: relative; font-size: 21px; font-weight: 800; line-height: 1.15; color: #0B1F3A; }
.acp .acp-name:hover { color: #0D47A1; }
.acp .acp-kind { position: relative; margin-top: -4px; font-size: 12.5px; color: var(--acp-cardsub); }
.acp .acp-bullets { position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.acp .acp-bullets li { position: relative; padding-left: 21px; font-size: 12.5px; line-height: 1.38; color: #0B1F3A; }
.acp .acp-bullets li::before { content: ''; position: absolute; left: 1px; top: 4px; width: 10px; height: 5px; border-left: 3px solid var(--acp-check); border-bottom: 3px solid var(--acp-check); transform: rotate(-45deg); border-radius: 1px; }
.acp .acp-pricerow { position: relative; margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.acp .acp-price { display: flex; flex-direction: column; }
.acp .acp-price s { font-size: 13px; color: var(--acp-cardsub); }
.acp .acp-price b { font-size: 28px; font-weight: 800; line-height: 1.1; color: #0B1F3A; white-space: nowrap; }
.acp .acp-price small { font-size: 15px; font-weight: 700; }
.acp .acp-buybox { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.acp .acp-buy { display: flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 12px; background: #0D47A1; color: #FFFFFF; font-size: 14.5px; font-weight: 700; }
.acp .acp-buy:hover { background: #002472; color: #FFFFFF; }
.acp .acp-more { font-size: 11.5px; color: var(--acp-cardsub); text-decoration: underline; white-space: nowrap; }

/* ---------- Рядок під карткою ---------- */
.acp .acp-strip { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #FFFFFF; }
.acp .acp-strip:hover { background: rgba(255, 255, 255, .13); color: #FFFFFF; }
.acp .acp-strip-ico { position: relative; width: 60px; height: 60px; flex: none; border-radius: 16px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(13, 71, 161, .10); }
.acp .acp-strip-ico.is-power { box-shadow: inset 0 0 0 1px rgba(255, 152, 0, .22), 0 12px 24px -14px rgba(245, 124, 0, .75); }
.acp .acp-strip-ico.is-power::before { content: ''; position: absolute; left: 50%; top: 58%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 167, 38, .38) 0%, rgba(255, 167, 38, 0) 68%); }
.acp .acp-strip-ico svg { position: relative; display: block; }
.acp .acp-strip-ico img { max-width: 54px; max-height: 50px; width: auto; height: auto; display: block; mix-blend-mode: multiply; }
.acp .acp-cell-top { animation: acpCell 2.6s ease-in-out infinite; }
.acp .acp-strip-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.acp .acp-strip-kind { font-size: 11.5px; font-weight: 700; line-height: 1.3; color: #FFB74D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acp .acp-strip-name { font-size: 14px; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acp .acp-strip-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 1px; }
.acp .acp-strip-price .acp-sale { padding: 1px 7px; font-size: 11px; }
.acp .acp-strip-price s { font-size: 12px; color: #BFD7F2; }
.acp .acp-strip-price b { font-size: 16px; font-weight: 800; white-space: nowrap; }
.acp .acp-strip-note { font-size: 11.5px; line-height: 1.3; color: #BFD7F2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acp .acp-strip-go { width: 26px; height: 26px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; }

/* ---------- Вузька колонка / планшет / телефон ---------- */
@container (max-width: 860px) {
  .acp .acp-panel { padding: 16px; border-radius: 20px; }
  .acp .acp-flows, .acp .acp-spot, .acp .acp-aurora--2 { display: none; }
  .acp .acp-grid { display: flex; flex-direction: column; gap: 12px; }
  .acp .acp-left, .acp .acp-right { display: contents; }
  .acp .acp-eyebrow { order: 1; font-size: 11px; padding: 5px 10px; }
  .acp .acp-h1 { order: 2; font-size: 29px; line-height: 1.1; }
  .acp .acp-sub { display: none; }
  .acp .acp-cardwrap { order: 3; }
  .acp .acp-mount { order: 4; padding: 9px 12px; gap: 10px; }
  .acp .acp-mount-price b { font-size: 18px; }
  .acp .acp-mount-price span { font-size: 10px; }
  .acp .acp-mount p { font-size: 11.5px; }
  .acp .acp-areas { order: 5; gap: 6px; }
  .acp .acp-areas-q { font-size: 12.5px; }
  .acp .acp-chips { gap: 6px; }
  .acp .acp-chip { align-items: center; min-height: 50px; padding: 6px 2px; border-width: 1.5px; border-radius: 12px; }
  .acp .acp-chip b { font-size: 16px; }
  .acp .acp-chip small { font-size: 10px; }
  .acp .acp-ctarow { order: 6; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 0; }
  .acp .acp-cta { justify-content: center; height: 50px; font-size: 15px; }
  .acp .acp-calc { text-align: center; font-size: 13.5px; }
  .acp .acp-strip { order: 7; }
  .acp .acp-halo { left: -24px; right: -24px; top: -20px; bottom: -20px; }
  .acp .acp-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-areas: "img tags" "img name" "img b" "img price"; column-gap: 12px; row-gap: 3px; padding: 10px; border-radius: 20px; }
  .acp .acp-card-glow, .acp .acp-kind, .acp .acp-more, .acp .acp-live span { display: none; }
  .acp .acp-tags { grid-area: tags; flex-wrap: wrap; gap: 5px; }
  .acp .acp-tag, .acp .acp-sale { font-size: 10px; padding: 3px 8px; }
  .acp .acp-imgbox { grid-area: img; height: 136px; align-items: flex-start; padding-top: 12px; background: rgba(255, 255, 255, .7); border-radius: 14px; }
  .acp .acp-imgbox img { max-width: 120px; max-height: 92px; }
  .acp .acp-thermo { left: 6px; right: 6px; bottom: 6px; justify-content: center; gap: 5px; padding: 4px 6px; }
  .acp .acp-thermo-ico { width: 18px; height: 18px; }
  .acp .acp-thermo-ico svg { width: 11px; height: 11px; }
  .acp .acp-thermo-label { font-size: 10.5px; }
  .acp .acp-temp { font-size: 13px; min-width: 0; }
  .acp .acp-name { grid-area: name; font-size: 16px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .acp .acp-bullets { grid-area: b; }
  .acp .acp-bullets li { font-size: 11.5px; padding-left: 0; }
  .acp .acp-bullets li::before { display: none; }
  .acp .acp-bullets li + li { display: none; }
  .acp .acp-pricerow { grid-area: price; gap: 6px; }
  .acp .acp-price s { font-size: 11.5px; }
  .acp .acp-price b { font-size: 20px; }
  .acp .acp-price small { font-size: 12px; }
  .acp .acp-buy { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
  .acp .acp-strip-ico { width: 48px; height: 48px; border-radius: 13px; }
  .acp .acp-strip-ico svg { width: 27px; height: 38px; }
  .acp .acp-strip-name { font-size: 13px; }
  .acp .acp-strip-price b { font-size: 14px; }
  .acp .acp-strip-note { display: none; }
}

/* ---------- Анімації ---------- */
@keyframes acpFlow { to { stroke-dashoffset: -1200; } }
@keyframes acpRise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(-40px, -280px); opacity: 0; } }
@keyframes acpFall { 0% { transform: translate(0, -30px); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(-90px, 250px); opacity: 0; } }
@keyframes acpBreathe { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.14) translate(-24px, 12px); opacity: 1; } }
@keyframes acpHalo { 0%, 100% { opacity: .55; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes acpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes acpShine { 0%, 62% { transform: translateX(-140%) skewX(-20deg); } 100% { transform: translateX(320%) skewX(-20deg); } }
@keyframes acpPing { 0% { box-shadow: 0 0 0 0 rgba(67, 160, 71, .55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(67, 160, 71, 0); } }
@keyframes acpCell { 0% { opacity: .3; } 45%, 75% { opacity: 1; } 100% { opacity: .3; } }
@keyframes acpHeat { 0% { --acpT: 17; } 100% { --acpT: 24; } }
@keyframes acpCool { 0% { --acpT: 31; } 100% { --acpT: 18; } }

@media (prefers-reduced-motion: reduce) {
  .acp .acp-flow, .acp .acp-aurora, .acp .acp-halo, .acp .acp-imgbox img, .acp .acp-cta::after, .acp .acp-live i, .acp .acp-cell-top, .acp .acp-temp { animation: none !important; }
  .acp .acp-dot { display: none; }
}

/* Площа ↔ модель: плавна заміна картки */
.acp [hidden] { display: none !important; }
.acp .acp-card > :not(.acp-card-glow) { transition: opacity .16s ease, transform .16s ease; }
.acp .acp-card.is-swapping > :not(.acp-card-glow):not(.acp-tags) { opacity: .12; transform: translateY(4px); }
