:root {
    --bg-main: radial-gradient(circle at 0% 0%, #edf2ff 0%, #f8fafc 50%, #e2ebff 100%);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 12px 32px rgba(0, 40, 110, 0.06);
    --pri: #0052cc;
    --pri-hover: #003d99;
    --pri-glow: rgba(0, 82, 204, 0.12);
    --txt-main: #0f172a;
    --txt-sub: #475569;
    --card-bg: rgba(255, 255, 255, 0.65);
    --radius-l: 24px;
    --radius-m: 16px;
}
[data-theme="dark"] {
    --bg-main: radial-gradient(circle at 100% 0%, #090d16 0%, #111827 50%, #060911 100%);
    --glass-bg: rgba(17, 24, 39, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    --pri: #3b82f6;
    --pri-hover: #60a5fa;
    --pri-glow: rgba(59, 130, 246, 0.18);
    --txt-main: #f8fafc;
    --txt-sub: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Google Sans', sans-serif; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { background: var(--bg-main); background-attachment: fixed; color: var(--txt-main); padding-bottom: 110px; min-height: 100vh; font-size: 15px; line-height: 1.5; }
.glass { background: var(--glass-bg); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: var(--radius-l); }
.cnt { max-width: 980px; margin: 0 auto; padding: 0 16px; perspective: 1200px; }
.hdr { position: sticky; top: 10px; z-index: 100; padding: 10px 18px; display: flex; justify-content: space-between; align-items: center; border-radius: 999px; margin-top: 10px; transition: padding 0.25s ease, box-shadow 0.25s ease; }
.hdr.scrolled { padding: 6px 18px; box-shadow: 0 10px 26px rgba(0,40,110,0.12); }

/* === Полоса прогресу скролу === */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--pri), var(--pri-hover)); z-index: 1200; transition: width 0.1s linear; }
.logo { font-size: 18px; font-weight: 800; color: var(--pri); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo span { font-size: 24px; }

/* === 3D-логотип (куб) === */
.logo3d-wrap { width: 36px; height: 36px; perspective: 220px; flex-shrink: 0; }
.logo3d {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    animation: logoSpin 6s linear infinite, logoBob 3s ease-in-out infinite;
}
.logo3d-face {
    position: absolute;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, var(--pri) 0%, var(--pri-hover) 55%, var(--pri) 100%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -8px 10px rgba(0,0,0,0.2), 0 4px 10px rgba(0,82,204,0.3);
    backface-visibility: hidden;
    overflow: hidden;
}
.logo3d-face::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(115deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.05) 30%, transparent 55%);
    pointer-events: none;
}
.logo3d-face span.material-symbols-outlined { font-size: 19px; color: #fff; }
.logo3d-face.code-sym { font-family: 'Courier New', monospace; font-weight: 800; font-size: 14px; color: #fff; letter-spacing: -0.5px; }
.logo3d-face.front  { transform: translateZ(18px); }
.logo3d-face.back   { transform: rotateY(180deg) translateZ(18px); }
.logo3d-face.right  { transform: rotateY(90deg) translateZ(18px); background: linear-gradient(145deg, var(--pri-hover), var(--pri)); }
.logo3d-face.left   { transform: rotateY(-90deg) translateZ(18px); background: linear-gradient(145deg, var(--pri-hover), var(--pri)); }
.logo3d-face.top    { transform: rotateX(90deg) translateZ(18px); background: rgba(255,255,255,0.3); }
.logo3d-face.bottom { transform: rotateX(-90deg) translateZ(18px); background: rgba(0,0,0,0.2); }
@keyframes logoSpin {
    from { transform: rotateY(0deg) rotateX(-16deg); }
    to   { transform: rotateY(360deg) rotateX(-16deg); }
}
@keyframes logoBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.hdr:hover .logo3d { animation-duration: 1.2s, 3s; }

/* ======================================================
   3D-ФОН: КУБИ ЗІ СИМВОЛАМИ КОДУ, ЩО ОБЕРТАЮТЬСЯ
   ====================================================== */
.code-bg {
    position: fixed; inset: 0; z-index: -1;
    overflow: hidden; pointer-events: none;
    perspective: 1000px;
}
.code-cube-wrap {
    position: absolute;
    transform-style: preserve-3d;
    opacity: 0.55;
    filter: drop-shadow(0 18px 26px rgba(0,82,204,0.18));
}
[data-theme="dark"] .code-cube-wrap { opacity: 0.42; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45)); }
.code-cube {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    animation-name: cubeSpin;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.code-cube-face {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Courier New', monospace;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(150deg, var(--pri) 0%, var(--pri-hover) 55%, var(--pri) 100%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    backface-visibility: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -14px 18px rgba(0,0,0,0.18), 0 6px 18px rgba(0,82,204,0.25);
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
    overflow: hidden;
}
/* Скляний блік по діагоналі кожної грані */
.code-cube-face::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(115deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.05) 30%, transparent 55%);
    pointer-events: none;
}
/* Грані top/bottom — світліші/темніші для ефекту освітлення зверху */
.code-cube-face.face-top { background: linear-gradient(150deg, rgba(255,255,255,0.85), var(--pri-hover)); }
.code-cube-face.face-bottom { background: linear-gradient(150deg, rgba(0,20,60,0.55), var(--pri)); }
@keyframes cubeSpin {
    from { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    to   { transform: rotateX(360deg) rotateY(360deg) rotateZ(0deg); }
}
@keyframes cubeDrift {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -30px; }
}
.code-cube-drift { animation: cubeDrift 9s ease-in-out infinite; }

/* === Скляні 3D-сфери (додатковий шар глибини) === */
.code-sphere {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.9), var(--pri-hover) 45%, var(--pri) 75%, rgba(0,40,110,0.9) 100%);
    box-shadow: inset -10px -14px 24px rgba(0,20,60,0.35), inset 8px 10px 18px rgba(255,255,255,0.5), 0 14px 30px rgba(0,82,204,0.28);
    opacity: 0.5;
    animation: sphereFloat ease-in-out infinite, sphereSpin linear infinite;
}
[data-theme="dark"] .code-sphere { opacity: 0.35; }
@keyframes sphereFloat { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-24px) translateX(8px); } }
@keyframes sphereSpin { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(18deg); } }

@media (max-width: 640px) {
    .code-cube-wrap.hide-mobile, .code-sphere.hide-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .code-cube { animation: none; transform: rotateX(-20deg) rotateY(30deg); }
    .code-cube-drift, .code-sphere { animation: none; }
}

/* === Термінальні картки з ефектом друку коду === */
.code-terminal {
    position: absolute;
    width: 300px;
    max-width: 78vw;
    background: rgba(10, 18, 32, 0.82);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0,20,60,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
    opacity: 0.8;
    backdrop-filter: blur(2px);
}
[data-theme="dark"] .code-terminal { opacity: 0.65; }
.code-terminal-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-terminal-dot { width: 8px; height: 8px; border-radius: 50%; }
.code-terminal-dot.r { background: #ff5f56; }
.code-terminal-dot.y { background: #ffbd2e; }
.code-terminal-dot.g { background: #27c93f; }
.code-terminal-body {
    padding: 14px 16px;
    font-family: 'Courier New', monospace;
    font-size: 12.5px;
    line-height: 1.7;
    color: #cfe4ff;
    min-height: 96px;
    white-space: pre-wrap;
    word-break: break-word;
}
.code-terminal-body .kw { color: #7aa7ff; font-weight: 700; }
.code-terminal-body .str { color: #ffd479; }
.code-terminal-body .fn { color: #6ee7c8; }
.code-terminal-cursor {
    display: inline-block; width: 7px; height: 14px;
    background: #7aa7ff; margin-left: 2px; vertical-align: text-bottom;
    animation: cursorBlink 0.9s steps(1) infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

@media (max-width: 640px) {
    .code-terminal.hide-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .code-terminal-cursor { animation: none; }
}
.logo3d-face.front  { transform: translateZ(17px); }
.logo3d-face.back   { transform: rotateY(180deg) translateZ(17px); }
.logo3d-face.right  { transform: rotateY(90deg) translateZ(17px); background: linear-gradient(135deg, var(--pri-hover), var(--pri)); }
.logo3d-face.left   { transform: rotateY(-90deg) translateZ(17px); background: linear-gradient(135deg, var(--pri-hover), var(--pri)); }
.logo3d-face.top    { transform: rotateX(90deg) translateZ(17px); background: rgba(255,255,255,0.25); }
.logo3d-face.bottom { transform: rotateX(-90deg) translateZ(17px); background: rgba(0,0,0,0.15); }
@keyframes logoSpin {
    from { transform: rotateY(0deg) rotateX(-14deg); }
    to   { transform: rotateY(360deg) rotateX(-14deg); }
}
@keyframes logoBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.hdr:hover .logo3d { animation-duration: 1.4s, 3s; }

/* === Плавное появление секций (3D-въезд) === */
.reveal { opacity: 0; transform: translateY(26px) rotateX(8deg); transform-origin: top center; transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0) rotateX(0deg); }

/* === 3D-тilt для карточек === */
.card { transform-style: preserve-3d; will-change: transform; }
.cico { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.card:hover .cico { transform: translateZ(20px) rotateY(10deg); box-shadow: 0 10px 18px rgba(0,82,204,0.25); }
.nav { display: flex; gap: 4px; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nbtn { background: transparent; border: 0; color: var(--txt-sub); padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: 0.2s; position: relative; }
.nbtn::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--pri); border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform 0.25s ease; }
.nbtn:hover, .nbtn:active { background: var(--pri-glow); color: var(--pri); }
.nbtn.active { background: var(--pri-glow); color: var(--pri); font-weight: 700; }
.nbtn.active::after { transform: scaleX(1); }
.nbtn-user { color: var(--pri); font-weight: 700; }
.theme-btn { background: var(--pri-glow); border: 0; color: var(--pri); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), background 0.2s; }
.theme-btn:hover { transform: rotate(25deg) scale(1.08); }
.theme-btn:active { transform: rotate(180deg) scale(0.92); }
.hero { text-align: center; padding: 35px 0 20px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--pri-glow); color: var(--pri); padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 14px; animation: badgeIn 0.6s ease, badgeGlow 2.4s ease-in-out infinite 0.6s; }
@keyframes badgeIn { from { opacity: 0; transform: translateY(-8px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes badgeGlow { 0%, 100% { box-shadow: 0 0 0 rgba(0,82,204,0); } 50% { box-shadow: 0 0 16px var(--pri-glow); } }
.dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px #10b981; animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }
.hero-title {
    font-size: 30px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 12px;
    background: linear-gradient(100deg, var(--txt-main) 30%, var(--pri) 50%, var(--txt-main) 70%);
    background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: titleShine 5s linear infinite, heroIn 0.7s ease;
}
@keyframes titleShine { to { background-position: -220% center; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-desc { animation: heroIn 0.7s ease 0.1s both; }
.sttl { font-size: 22px; font-weight: 800; margin: 36px 0 18px; display: flex; align-items: center; gap: 10px; color: var(--pri); }
.sttl .material-symbols-outlined { transition: transform 0.4s ease; }
.sttl:hover .material-symbols-outlined { transform: rotate(-12deg) scale(1.15); }
.feat-card { padding: 16px; text-align: center; border-radius: var(--radius-m); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feat-card:hover { transform: translateY(-6px); box-shadow: 0 14px 26px var(--pri-glow); }
.feat-card span { font-size: 28px; color: var(--pri); margin-bottom: 6px; display: block; animation: featFloat 3.4s ease-in-out infinite; }
.feat-card:nth-child(2) span { animation-delay: 0.3s; }
.feat-card:nth-child(3) span { animation-delay: 0.6s; }
.feat-card:nth-child(4) span { animation-delay: 0.9s; }
.hero-desc { color: var(--txt-sub); font-size: 15px; max-width: 620px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 20px 0; }
@keyframes featFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.card { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.3s ease, box-shadow 0.35s ease; position: relative; overflow: hidden; background: var(--card-bg); }
.card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, var(--pri), transparent 40%, transparent 60%, var(--pri));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.card:hover { box-shadow: 0 20px 40px rgba(0,82,204,0.16); }
.card:hover::before { opacity: 1; }
.cico { width: 48px; height: 48px; background: var(--pri-glow); color: var(--pri); border-radius: var(--radius-m); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 24px; }
.btn {
    background: var(--pri); color: #ffffff; border: 0; padding: 15px 22px; border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer; width: 100%;
    display: flex; justify-content: center; align-items: center; gap: 8px; transition: 0.2s; touch-action: manipulation;
    position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); opacity: 0.9; }
.in, .txta, select.in { width: 100%; padding: 14px 16px; border-radius: var(--radius-m); border: 1px solid rgba(255,255,255,0.2); background: var(--glass-bg); color: var(--txt-main); font-size: 15px; outline: 0; margin-top: 6px; -webkit-appearance: none; }
.in:focus, .txta:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-glow); }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.chip input { position: absolute; opacity: 0; }
.clbl { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; background: var(--glass-bg); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-m); font-size: 13px; cursor: pointer; text-align: center; }
.chip input:checked + .clbl { background: var(--pri); color: #fff; font-weight: 700; animation: chipPop 0.35s ease; }
@keyframes chipPop { 0% { transform: scale(0.9); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }
.clbl { transition: transform 0.2s ease, background 0.2s ease; }
.clbl:hover { transform: translateY(-2px); }
.fab { position: fixed; bottom: 16px; right: 16px; left: 16px; z-index: 999; padding: 14px 20px; border-radius: 999px; text-decoration: none; color: var(--pri); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); transition: transform 0.2s, box-shadow 0.2s; animation: fabIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.3s both, fabPulse 2.8s ease-in-out infinite 1s; }
@keyframes fabIn { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fabPulse { 0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.15); } 50% { box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 0 0 6px var(--pri-glow); } }
.fab:hover { transform: translateY(-3px); }
.fab .material-symbols-outlined { transition: transform 0.3s ease; }
.fab:hover .material-symbols-outlined { transform: rotate(-14deg) scale(1.15); }
.faq { margin-bottom: 10px; overflow: hidden; border-radius: var(--radius-m); transition: box-shadow 0.3s ease; }
.faq:hover { box-shadow: 0 10px 24px rgba(0,82,204,0.1); }
.fh { padding: 16px 18px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.fh .material-symbols-outlined { transition: transform 0.35s ease; }
.faq.active .fh .material-symbols-outlined { transform: rotate(180deg); }
.fb-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.fb-wrap > .fb { overflow: hidden; }
.faq.active .fb-wrap { grid-template-rows: 1fr; }
.fb { padding: 0 18px 16px; color: var(--txt-sub); font-size: 14px; line-height: 1.5; }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 1000; justify-content: center; align-items: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-card { width: 100%; max-width: 420px; padding: 28px; border-radius: var(--radius-l); background: var(--glass-bg); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 16px; background: transparent; border: 0; font-size: 28px; cursor: pointer; color: var(--txt-sub); }
.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 18px; text-align: center; }
.modal-toggle { text-align: center; margin-top: 14px; font-size: 14px; }
.modal-toggle a { color: var(--pri); font-weight: 700; cursor: pointer; text-decoration: underline; }
.msg-error { color: #ef4444; font-size: 13px; margin-top: 6px; }
.msg-success { color: #10b981; font-size: 13px; margin-top: 6px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.filter-bar select, .filter-bar .btn { padding: 8px 16px; border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--txt-main); }
.product-category { font-size: 12px; color: var(--txt-sub); background: var(--pri-glow); padding: 2px 10px; border-radius: 999px; display: inline-block; }
.range-badge { background: var(--pri-glow); color: var(--pri); padding: 4px 14px; border-radius: 999px; font-weight: 700; display: inline-block; margin-top: 8px; }

/* === Доступность фокуса === */
a:focus-visible, button:focus-visible, .in:focus-visible, .txta:focus-visible, select:focus-visible, .clbl:focus-visible {
    outline: 2px solid var(--pri); outline-offset: 2px;
}

/* === Кнопка "нагору" === */
.to-top {
    position: fixed; right: 16px; bottom: 84px; z-index: 998;
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--pri);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* === Тост === */
.toast {
    position: fixed; left: 50%; bottom: -70px; transform: translateX(-50%);
    background: var(--pri); color: #fff; padding: 12px 22px; border-radius: 999px;
    font-size: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 1100; transition: bottom 0.35s ease; display: flex; align-items: center; gap: 8px;
    max-width: 90vw; text-align: center;
}
.toast.show { bottom: 100px; }

/* === Спиннер загрузки на кнопке === */
.btn.loading { pointer-events: none; opacity: 0.8; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }
.btn-label { display: inline-flex; align-items: center; gap: 8px; }
.btn.loading .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === Более отзывчивые кнопки === */
.btn { transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease; }
.btn:hover { box-shadow: 0 8px 20px var(--pri-glow); }
@keyframes rippleGo { to { transform: scale(2.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .logo3d { animation: none; transform: rotateY(-25deg) rotateX(-14deg); }
    .reveal { transition: none; opacity: 1; transform: none; }
    .card { transition: none !important; }
    .hero-title { animation: none; }
    .badge, .dot, .feat-card span, .fab { animation: none; }
}
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 1000; justify-content: center; align-items: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-card { width: 100%; max-width: 420px; padding: 28px; border-radius: var(--radius-l); background: var(--glass-bg); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 16px; background: transparent; border: 0; font-size: 28px; cursor: pointer; color: var(--txt-sub); }
.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 18px; text-align: center; }
.modal-toggle { text-align: center; margin-top: 14px; font-size: 14px; }
.modal-toggle a { color: var(--pri); font-weight: 700; cursor: pointer; text-decoration: underline; }
.msg-error { color: #ef4444; font-size: 13px; margin-top: 6px; }
.msg-success { color: #10b981; font-size: 13px; margin-top: 6px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.filter-bar select, .filter-bar .btn { padding: 8px 16px; border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--txt-main); }
.product-category { font-size: 12px; color: var(--txt-sub); background: var(--pri-glow); padding: 2px 10px; border-radius: 999px; display: inline-block; }
.range-badge { background: var(--pri-glow); color: var(--pri); padding: 4px 14px; border-radius: 999px; font-weight: 700; display: inline-block; margin-top: 8px; }

