/* ============================================
   ThermoSteel — Полностью локальная стилизация
   Без внешних CDN. Заменяет Tailwind.
   ============================================ */

/* ---------- Базовое ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, system-ui, -apple-system, Roboto, Arial, sans-serif;
    background: #f5f7fa;
    color: #0f1720;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: #f97316; color: #fff; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color .25s ease; }

button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---------- Скроллбар ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #e6ebf0; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5a6f85, #2b3a4a);
    border-radius: 10px;
    border: 2px solid #e6ebf0;
}
::-webkit-scrollbar-thumb:hover { background: #0f1720; }

/* ============================================
   ТИПОГРАФИКА
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.5em;
    color: #0f1720;
}

h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { line-height: 1.7; margin-bottom: 1em; }

.text-xs   { font-size: 0.75rem; line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem; line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl  { font-size: 3rem; line-height: 1; }
.text-6xl  { font-size: 3.75rem; line-height: 1; }
.text-7xl  { font-size: 4.5rem; line-height: 1; }

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-black    { font-weight: 900; }

.leading-tight    { line-height: 1.25; }
.leading-relaxed  { line-height: 1.625; }

.tracking-tight    { letter-spacing: -0.025em; }
.tracking-wide     { letter-spacing: 0.025em; }
.tracking-wider    { letter-spacing: 0.05em; }
.tracking-widest   { letter-spacing: 0.1em; }

.uppercase    { text-transform: uppercase; }
.line-through { text-decoration: line-through; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* ============================================
   ЦВЕТА
   ============================================ */
.bg-steel-50  { background-color: #f5f7fa; }
.bg-steel-100 { background-color: #e6ebf0; }
.bg-steel-200 { background-color: #c8d2dc; }
.bg-steel-800 { background-color: #1c2733; }
.bg-steel-900 { background-color: #0f1720; }
.bg-steel-950 { background-color: #070c13; }

.text-steel-300 { color: #a4b3c2; }
.text-steel-400 { color: #7a8ea3; }
.text-steel-500 { color: #5a6f85; }
.text-steel-600 { color: #3f5367; }
.text-steel-700 { color: #2b3a4a; }
.text-steel-900 { color: #0f1720; }

.border-steel-100 { border-color: #e6ebf0; }
.border-steel-200 { border-color: #c8d2dc; }
.border-steel-800 { border-color: #1c2733; }

.bg-accent    { background-color: #f97316; }
.text-accent  { color: #f97316; }
.border-accent { border-color: #f97316; }

.bg-white       { background-color: #fff; }
.text-white     { color: #fff; }
.text-transparent { color: transparent; }

.bg-red-50      { background-color: #fef2f2; }
.text-red-500   { color: #ef4444; }
.text-red-600   { color: #dc2626; }

.bg-green-50    { background-color: #f0fdf4; }
.bg-green-500   { background-color: #22c55e; }
.bg-green-600   { background-color: #16a34a; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }

.bg-accent-10 { background-color: rgba(249, 115, 22, 0.1); }
.bg-white-70  { background-color: rgba(255, 255, 255, 0.7); }
.bg-white-85  { background-color: rgba(255, 255, 255, 0.85); }
.bg-white-95  { background-color: rgba(255, 255, 255, 0.95); }

/* ============================================
   DISPLAY И FLEX/GRID
   ============================================ */
.block        { display: block; }
.inline-block { display: inline-block; }
.inline-flex  { display: inline-flex; }
.flex         { display: flex; }
.grid         { display: grid; }
.hidden       { display: none; }

.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.flex-1        { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.items-start    { align-items: flex-start; }
.items-center   { align-items: center; }
.items-end      { align-items: flex-end; }
.items-baseline { align-items: baseline; }

.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   ОТСТУПЫ
   ============================================ */
.p-0  { padding: 0; }
.p-1  { padding: 4px; }
.p-2  { padding: 8px; }
.p-3  { padding: 12px; }
.p-4  { padding: 16px; }
.p-5  { padding: 20px; }
.p-6  { padding: 24px; }
.p-8  { padding: 32px; }
.p-12 { padding: 48px; }
.p-16 { padding: 64px; }
.p-20 { padding: 80px; }

.px-2 { padding-left: 8px;  padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }

.py-1  { padding-top: 4px;  padding-bottom: 4px; }
.py-2  { padding-top: 8px;  padding-bottom: 8px; }
.py-3  { padding-top: 12px; padding-bottom: 12px; }
.py-4  { padding-top: 16px; padding-bottom: 16px; }
.py-6  { padding-top: 24px; padding-bottom: 24px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }

.pt-0  { padding-top: 0; }
.pt-2  { padding-top: 8px; }
.pt-4  { padding-top: 16px; }
.pt-8  { padding-top: 32px; }
.pt-16 { padding-top: 64px; }
.pb-3  { padding-bottom: 12px; }
.pb-4  { padding-bottom: 16px; }

.pr-1 { padding-right: 4px; }
.pr-2 { padding-right: 8px; }

.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 4px; }
.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; }
.mt-5  { margin-top: 20px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-14 { margin-top: 56px; }
.mt-16 { margin-top: 64px; }
.mt-24 { margin-top: 96px; }

.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 4px; }
.mb-2  { margin-bottom: 8px; }
.mb-3  { margin-bottom: 12px; }
.mb-4  { margin-bottom: 16px; }
.mb-5  { margin-bottom: 20px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-14 { margin-bottom: 56px; }
.mb-16 { margin-bottom: 64px; }

.ml-2  { margin-left: 8px; }
.ml-auto { margin-left: auto; }
.mr-2  { margin-right: 8px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.gap-1  { gap: 4px; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-5  { gap: 20px; }
.gap-6  { gap: 24px; }
.gap-7  { gap: 28px; }
.gap-8  { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }

.gap-x-6 { column-gap: 24px; }
.gap-y-2 { row-gap: 8px; }
.gap-x-12 { column-gap: 48px; }
.gap-y-4  { row-gap: 16px; }

/* ============================================
   РАЗМЕРЫ
   ============================================ */
.w-1  { width: 4px; } .w-1\.5 { width: 6px; } .w-2  { width: 8px; } .w-3  { width: 12px; }
.w-3\.5 { width: 14px; } .w-4  { width: 16px; } .w-5  { width: 20px; } .w-6  { width: 24px; }
.w-7  { width: 28px; } .w-8  { width: 32px; } .w-9  { width: 36px; } .w-10 { width: 40px; }
.w-12 { width: 48px; } .w-14 { width: 56px; } .w-16 { width: 64px; } .w-20 { width: 80px; }
.w-24 { width: 96px; } .w-32 { width: 128px; } .w-56 { width: 224px; } .w-full { width: 100%; }

.h-1  { height: 4px; } .h-1\.5 { height: 6px; } .h-2  { height: 8px; } .h-3  { height: 12px; }
.h-4  { height: 16px; } .h-5  { height: 20px; } .h-6  { height: 24px; } .h-7  { height: 28px; }
.h-8  { height: 32px; } .h-9  { height: 36px; } .h-10 { height: 40px; } .h-12 { height: 48px; }
.h-14 { height: 56px; } .h-16 { height: 64px; } .h-20 { height: 80px; } .h-24 { height: 96px; }
.h-32 { height: 128px; } .h-full { height: 100%; } .h-px { height: 1px; }

.min-h-screen { min-height: 100vh; }

.max-w-md  { max-width: 448px; } .max-w-lg  { max-width: 512px; } .max-w-xl  { max-width: 576px; }
.max-w-2xl { max-width: 672px; } .max-w-3xl { max-width: 768px; } .max-w-4xl { max-width: 896px; }
.max-w-5xl { max-width: 1024px; } .max-w-6xl { max-width: 1152px; } .max-w-7xl { max-width: 1280px; }

.max-h-48 { max-height: 192px; } .max-h-64 { max-height: 256px; } .max-h-96 { max-height: 384px; }

.min-w-\[180px\] { min-width: 180px; } .min-w-\[20px\] { min-width: 20px; }

/* ============================================
   ПОЗИЦИОНИРОВАНИЕ
   ============================================ */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }

.inset-0   { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0     { top: 0; } .top-24 { top: 96px; }
.bottom-6  { bottom: 24px; } .right-6 { right: 24px; }
.left-8    { left: 32px; } .right-8 { right: 32px; }

.-top-1   { top: -4px; } .-top-6 { top: -24px; } .-bottom-6 { bottom: -24px; }
.-left-6  { left: -24px; } .-right-6 { right: -24px; }

.-z-10 { z-index: -10; } .z-10 { z-index: 10; } .z-40 { z-index: 40; }
.z-50 { z-index: 50; } .z-\[100\] { z-index: 100; }

/* ============================================
   ГРАНИЦЫ И СКРУГЛЕНИЯ
   ============================================ */
.border    { border: 1px solid #e6ebf0; }
.border-t  { border-top: 1px solid #e6ebf0; }
.border-b  { border-bottom: 1px solid #e6ebf0; }
.border-l  { border-left: 1px solid #e6ebf0; }
.border-r  { border-right: 1px solid #e6ebf0; }
.border-b-0 { border-bottom: none; }
.border-none { border: none; }
.border-white-30 { border-color: rgba(255, 255, 255, 0.3); }

.rounded      { border-radius: 4px; }
.rounded-lg   { border-radius: 8px; }
.rounded-xl   { border-radius: 12px; }
.rounded-2xl  { border-radius: 16px; }
.rounded-3xl  { border-radius: 24px; }
.rounded-full { border-radius: 9999px; }

/* ============================================
   ТЕНИ
   ============================================ */
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow    { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15); }

/* ============================================
   ЭФФЕКТЫ
   ============================================ */
.opacity-0   { opacity: 0; } .opacity-20  { opacity: 0.2; } .opacity-30  { opacity: 0.3; }
.opacity-70  { opacity: 0.7; } .opacity-100 { opacity: 1; }

.invisible { visibility: hidden; } .visible { visibility: visible; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }

.whitespace-nowrap { white-space: nowrap; }

.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }

.transition        { transition: all .25s ease; }
.transition-all    { transition: all .3s ease; }
.transition-colors { transition: color .25s ease, background-color .25s ease, border-color .25s ease; }

.duration-200 { transition-duration: .2s; }
.duration-300 { transition-duration: .3s; }
.duration-500 { transition-duration: .5s; }
.duration-1000 { transition-duration: 1s; }

.backdrop-blur-xl {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.blur-3xl { filter: blur(48px); }

/* ============================================
   ГРАДИЕНТЫ
   ============================================ */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-from, #f97316), var(--tw-to, #ea580c));
}
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-from, #f97316), var(--tw-to, #ea580c));
}
.from-accent      { --tw-from: #f97316; }
.to-accent-600    { --tw-to: #ea580c; }
.from-steel-900   { --tw-from: #0f1720; }
.to-steel-700     { --tw-to: #2b3a4a; }
.from-accent-to-orange {
    background-image: linear-gradient(to right, #f97316, #fb923c);
}
.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   HOVER-ЭФФЕКТЫ
   ============================================ */
.hover\:text-accent:hover  { color: #f97316; }
.hover\:text-white:hover   { color: #fff; }
.hover\:text-red-500:hover { color: #ef4444; }
.hover\:text-steel-900:hover { color: #0f1720; }
.hover\:underline:hover    { text-decoration: underline; }
.hover\:bg-steel-50:hover  { background-color: #f5f7fa; }
.hover\:bg-steel-100:hover { background-color: #e6ebf0; }
.hover\:bg-steel-800:hover { background-color: #1c2733; }
.hover\:bg-accent-600:hover { background-color: #ea580c; }
.hover\:bg-white:hover     { background-color: #fff; }
.hover\:bg-red-50:hover    { background-color: #fef2f2; }
.hover\:border-accent:hover { border-color: #f97316; }
.hover\:border-steel-900:hover { border-color: #0f1720; }
.hover\:shadow-lg:hover    { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }
.hover\:shadow-xl:hover    { box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1); }

.hover\:scale-105:hover  { transform: scale(1.05); }
.hover\:scale-110:hover  { transform: scale(1.1); }
.hover\:-translate-y-1:hover { transform: translateY(-4px); }
.hover\:-translate-y-6:hover { transform: translateY(-24px); }
.hover\:-translate-y-8:hover { transform: translateY(-32px); }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:text-accent { color: #f97316; }
.group:hover .group-hover\:text-white  { color: #fff; }
.group:hover .group-hover\:scale-105   { transform: scale(1.05); }
.group:hover .group-hover\:bg-accent   { background-color: #f97316; }
.group:hover .group-hover\:w-3         { width: 12px; }

/* ============================================
   КОМПОНЕНТЫ
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    transition: all .3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    text-align: center;
    font-family: inherit;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 10px 25px -8px rgba(249, 115, 22, 0.5);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px -8px rgba(249, 115, 22, 0.6);
}
.btn-dark { background: #0f1720; color: #fff; }
.btn-dark:hover { background: #1c2733; transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    border: 1.5px solid #c8d2dc;
    color: #2b3a4a;
}
.btn-outline:hover {
    border-color: #0f1720;
    background: #0f1720;
    color: #fff;
}
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-outline-secondary {
    background: transparent;
    border: 1.5px solid #c8d2dc;
    color: #5a6f85;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all .25s;
}
.btn-outline-secondary:hover { border-color: #0f1720; color: #0f1720; }

.form-input,
.form-select,
.form-textarea,
.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid #c8d2dc;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    color: #0f1720;
    transition: border-color .2s, box-shadow .2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-control:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: #a4b3c2; }

.form-textarea { resize: vertical; min-height: 100px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2b3a4a;
}
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.form-check-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #f97316;
}
.form-check-label { font-size: 14px; cursor: pointer; }

.card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e6ebf0;
    overflow: hidden;
}
.card-body { padding: 24px; }
.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e6ebf0;
    background: #f9fafb;
}
.card-title { margin: 0; font-size: 18px; font-weight: 700; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}
.badge-accent   { background: rgba(249, 115, 22, 0.1); color: #ea580c; }
.badge-success  { background: rgba(34, 197, 94, 0.1);  color: #16a34a; }
.badge-warning  { background: rgba(234, 179, 8, 0.1);  color: #ca8a04; }
.badge-danger   { background: rgba(239, 68, 68, 0.1);  color: #dc2626; }
.badge-info     { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.badge-secondary { background: #e6ebf0; color: #2b3a4a; }

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.section    { padding: 80px 0; }
.section-lg { padding: 120px 0; }
.section-sm { padding: 48px 0; }

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Карточки товаров --- */
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e6ebf0;
    transition: transform .4s, box-shadow .4s, border-color .3s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 30px 60px -20px rgba(15, 23, 32, 0.25);
}
.product-card__image,
.product-card .aspect-square {
    aspect-ratio: 1 / 1;
    background: #f5f7fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
    will-change: transform;
}
.product-card:hover .product-card__image img { transform: scale(1.08); }

.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video  { aspect-ratio: 16 / 9; }

.min-h-\[2\.7em\] { min-height: 2.7em; }
.min-h-\[2\.6em\] { min-height: 2.6em; }

/* --- Анимации --- */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .5; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.animate-pulse { animation: pulse 2s infinite; }
.float { animation: float 4s ease-in-out infinite; }
.fade-in-up { opacity: 0; animation: fadeInUp .8s ease forwards; }

[data-animate] {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    transform: translateY(60px);
}
[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}
[data-animate-fallback="visible"] { opacity: 1 !important; transform: none !important; }

.hero-gradient {
    background:
        radial-gradient(ellipse at top left, rgba(249, 115, 22, 0.15), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.08), transparent 60%);
}

/* --- Кнопка наверх --- */
#scroll-top {
    transition: opacity .3s, visibility .3s, transform .3s;
}
#scroll-top:hover {
    transform: translateY(-4px) scale(1.05);
}

#flash-message { animation: slideIn .4s ease; }

/* ============================================
   HEADER — стили шапки
   ============================================ */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #e6ebf0;
    transition: all .3s ease;
}
#main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 32, 0.1);
}

/* Top bar */
.header-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 12px;
    color: #5a6f85;
    border-bottom: 1px solid #e6ebf0;
}
.header-topbar-left,
.header-topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5a6f85;
    text-decoration: none;
    transition: color .2s;
}
.header-topbar-item:hover { color: #f97316; }
.header-topbar-item svg { color: #f97316; }
.header-topbar-divider { color: #c8d2dc; }
.header-topbar-group { color: #f97316; font-weight: 500; }

/* Main row */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 68px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.header-logo-text {
    font-size: 22px;
    font-weight: 900;
    color: #0f1720;
    letter-spacing: -.5px;
}
.header-logo-text .accent { color: #f97316; }

/* Desktop menu */
.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
}
.header-nav-link {
    color: #2b3a4a;
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}
.header-nav-link:hover,
.header-nav-link.active { color: #f97316; }

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: #3f5367;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.header-icon-btn:hover {
    color: #f97316;
    background: #f5f7fa;
}
.header-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #f97316;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(249,115,22,.4);
}
.header-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    background: #0f1720;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.header-admin-btn:hover { background: #1c2733; }
.header-login-btn {
    padding: 9px 14px;
    border-radius: 10px;
    color: #2b3a4a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.header-login-btn:hover {
    color: #f97316;
    background: #f5f7fa;
}
.header-register-btn {
    padding: 10px 18px;
    border-radius: 10px;
    background: #f97316;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 6px 16px -6px rgba(249,115,22,.5);
}
.header-register-btn:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -6px rgba(249,115,22,.6);
}
.header-burger {
    display: none;
    padding: 8px;
    background: none;
    border: none;
    color: #3f5367;
    cursor: pointer;
    border-radius: 10px;
    transition: all .2s;
}
.header-burger:hover { color: #f97316; background: #f5f7fa; }

/* Search dropdown */
.header-search-bar {
    border-top: 1px solid #e6ebf0;
    background: #fff;
}
.header-search-form { display: flex; gap: 12px; }
.header-search-input-wrap { flex: 1; position: relative; }
.header-search-input-wrap input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #c8d2dc;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
.header-search-input-wrap input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249,115,22,.12);
}

/* Mobile menu */
.header-mobile-menu {
    border-top: 1px solid #e6ebf0;
    background: #fff;
}
.header-mobile-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.header-mobile-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #2b3a4a;
    text-decoration: none;
    transition: background .2s;
}
.header-mobile-nav a:hover { background: #f5f7fa; }
.header-mobile-divider { height: 1px; background: #e6ebf0; margin: 8px 0; }
.header-mobile-register {
    background: #f97316 !important;
    color: #fff !important;
    text-align: center;
    font-weight: 600 !important;
}
.header-mobile-logout { color: #ef4444 !important; }

/* MAIN — отступ под фикс-хедер */
.main-content { padding-top: 68px; }
@media (min-width: 901px) {
    .main-content { padding-top: 105px; }
}

/* ============================================
   ДРОПДАУН ПРОФИЛЯ
   ============================================ */
.profile-dropdown { position: relative; }
.profile-toggle {
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    transition: all .2s;
}
.profile-toggle:hover { background: #f5f7fa; }
.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(249,115,22,.3);
    transition: all .2s;
}
.profile-toggle:hover .profile-avatar {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(249,115,22,.4);
}
.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 32, 0.25);
    border: 1px solid #e6ebf0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s cubic-bezier(.2, .9, .3, 1.2);
    z-index: 100;
}
.profile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.profile-menu-header {
    padding: 12px 14px;
    border-bottom: 1px solid #e6ebf0;
    margin-bottom: 6px;
}
.profile-menu-name {
    font-weight: 700;
    font-size: 14px;
    color: #0f1720;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-menu-email {
    font-size: 12px;
    color: #7a8ea3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: #2b3a4a;
    text-decoration: none;
    transition: all .2s;
}
.profile-menu-item:hover {
    background: #f5f7fa;
    color: #0f1720;
}
.profile-menu-item svg {
    color: #7a8ea3;
    flex-shrink: 0;
    transition: color .2s;
}
.profile-menu-item:hover svg { color: #f97316; }

.profile-menu-item-danger {
    color: #ef4444;
    margin-top: 4px;
    border-top: 1px solid #e6ebf0;
    padding-top: 12px;
    border-radius: 0 0 10px 10px;
}
.profile-menu-item-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}
.profile-menu-item-danger svg { color: #ef4444; }
.profile-menu-item-danger:hover svg { color: #dc2626; }

/* ============================================
   FLASH
   ============================================ */
.flash-message {
    position: fixed;
    top: 120px;
    right: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px -10px rgba(34, 197, 94, 0.4);
    font-size: 14px;
    font-weight: 500;
    animation: slideIn .4s ease;
    max-width: 400px;
}
.flash-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
    margin-left: 6px;
    padding: 0;
}
.flash-close:hover { opacity: 1; }

/* ============================================
   АДАПТИВ
   ============================================ */
@media (min-width: 640px) {
    .sm\:inline { display: inline; }
    .sm\:px-4 { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 768px) {
    .md\:flex    { display: flex; }
    .md\:hidden  { display: none; }
    .md\:inline-flex  { display: inline-flex; }
    .md\:inline-block { display: inline-block; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:col-span-2  { grid-column: span 2 / span 2; }
    .md\:col-span-3  { grid-column: span 3 / span 3; }
    .md\:flex-row    { flex-direction: row; }
    .md\:flex-row-reverse { flex-direction: row-reverse; }
    .md\:text-left   { text-align: left; }
    .md\:text-right  { text-align: right; }
    .md\:pt-\[104px\] { padding-top: 104px; }
    .md\:pt-24 { padding-top: 96px; }
    .md\:h-full { height: 100%; }
    .md\:aspect-auto { aspect-ratio: auto; }
    .md\:gap-3 { gap: 12px; }
}

@media (min-width: 1024px) {
    .lg\:flex   { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:inline { display: inline; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:gap-7 { gap: 28px; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Планшет */
@media (max-width: 1024px) {
    .section    { padding: 60px 0; }
    .section-lg { padding: 80px 0; }
    .container-custom { padding: 0 20px; }
    .header-nav { display: none; }
    .header-burger { display: inline-flex; }
}

/* Мобильный */
@media (max-width: 900px) {
    .header-topbar { display: none; }
    .main-content { padding-top: 68px; }
    .header-admin-btn span { display: none; }
    .header-admin-btn { padding: 9px 11px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    .btn { padding: 12px 20px; font-size: 14px; }
    .product-card__image,
    .product-card .aspect-square { aspect-ratio: 1 / 1; }
}

@media (max-width: 640px) {
    .sm\:hidden { display: none; }
}

@media (max-width: 480px) {
    .container-custom { padding: 0 16px; }
    .section { padding: 48px 0; }
    .header-logo-text { display: none; }
    .header-register-btn { padding: 10px 14px; font-size: 13px; }
    .header-login-btn { padding: 9px 10px; font-size: 13px; }
    .profile-menu { min-width: 240px; right: -8px; }
    .flash-message { right: 12px; left: 12px; max-width: none; }
}

/* ============================================
   Утилиты
   ============================================ */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.divide-y > * + * { border-top: 1px solid #e6ebf0; }
.divide-steel-100 > * + * { border-color: #e6ebf0; }
.last\:border-0:last-child { border: none; }
.last\:mb-0:last-child { margin-bottom: 0; }

.scroll-container {
    overflow-y: auto;
    scrollbar-width: thin;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* ============================================
   ЦИТАТА / ДОВЕРИЕ
   ============================================ */
.quote-section {
    padding: 80px 24px;
    background: transparent;
}
.quote-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Картинка — без рамки, без тени */
.quote-image {
    position: relative;
}
.quote-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Контент */
.quote-content {
    position: relative;
}

.quote-mark {
    font-size: 120px;
    font-weight: 900;
    color: #f97316;
    line-height: 0.8;
    margin-bottom: 8px;
    font-family: Georgia, serif;
    opacity: 0.9;
}

.quote-text {
    font-size: 22px;
    line-height: 1.55;
    font-weight: 500;
    color: #2b3a4a;
    margin: 0 0 32px;
    letter-spacing: -0.01em;
}
.quote-accent {
    color: #f97316;
    font-weight: 700;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 16px;
}
.quote-author-line {
    width: 48px;
    height: 3px;
    background: #f97316;
    border-radius: 3px;
}
.quote-author-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f1720;
    margin-bottom: 2px;
}
.quote-author-role {
    font-size: 13px;
    color: #7a8ea3;
}

/* Адаптив */
@media (max-width: 900px) {
    .quote-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .quote-mark {
        font-size: 80px;
    }
    .quote-text {
        font-size: 18px;
    }
    .quote-image {
        max-width: 400px;
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .quote-section {
        padding: 48px 16px;
    }
}