html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: auto;
  overflow-x: hidden;
  width: 100%;
}

:root {
    --main-bg: #18181b;
    --section-bg: #23272f;
    --accent-color: #60a5fa;
    --accent-hover: #2563eb;
    --text-color: #f0f0f0;
    --text-muted: #b0b0b0;
    --card-bg: #23272f;
    --border-radius: 14px;
    --box-shadow: 0 8px 24px rgba(0,0,0,0.32);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

/* === Основной layout === */
body {
    background-color: var(--main-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: block;
    flex-direction: unset;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    flex: unset;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
    /* padding убран для футера на всю ширину */
}

.main-container {
    margin-bottom: 6.2rem;
}

/* === Header === */
header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.logo-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 60px;
    max-height: 60px;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    margin: 0;
    padding: 0;
    display: block;
    overflow: visible;
}

.logo span {
    background: linear-gradient(135deg, var(--accent-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    display: inline-block;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.divider {
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin: 0 auto 30px;
    border-radius: 3px;
}

/* === Секции фильтра и результатов === */
.filter-section, .results-section {
    background-color: var(--section-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 70%;
    width: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1.5px solid #262a32;
    background-color: #18181b;
    color: var(--text-color);
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2360a5fa'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.search-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
    width: 200px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(96,165,250,0.2);
}

.search-btn:hover {
    background-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(96,165,250,0.3);
}

/* === Карточки === */
.card-display {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.32);
    padding: 32px 32px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    transition: box-shadow 0.3s, transform 0.3s, border 0.3s;
    border: 1.5px solid #262a32;
}

.card-display:hover {
    box-shadow: 0 16px 48px rgba(96,165,250,0.10), 0 2px 16px rgba(0,0,0,0.22);
    transform: translateY(-4px) scale(1.02);
    border: 1.5px solid var(--accent-color);
}

.card-image {
    max-width: 420px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 24px auto;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    background: #23272f;
    padding: 16px;
}

.card-info {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.card-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin: 0 auto;
    max-width: 340px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: #262a32;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1.05rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border-left: 3px solid var(--accent-color);
}

.spec-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.98rem;
}

.spec-value {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.08rem;
}

.empty-state {
    text-align: center;
    padding: 50px 0;
    color: var(--text-muted);
}

/* === Кастомный select === */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select input {
  width: 100%;
  padding: 12px 44px 12px 15px;
  border-radius: 14px;
  border: 1.5px solid #262a32;
  background: #18181b;
  color: #f0f0f0;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: none;
}
.custom-select input:focus {
  border: 1.5px solid var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-color);
}
.custom-select-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  pointer-events: none;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2360a5fa'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}
.custom-select-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 10;
  background: #18181b;
  color: #f0f0f0;
  border: 1.5px solid #262a32;
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 24px 0 rgba(0,0,0,0.32);
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: fadeInUp 0.18s;
}
.custom-select-dropdown li {
  padding: 12px 15px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.15s;
}
.custom-select-dropdown li:hover,
.custom-select-dropdown li.active {
  background: var(--accent-color);
  color: #fff;
}
.custom-select-dropdown li.disabled {
  color: #888;
  background: none;
  cursor: not-allowed;
}
.custom-select input:disabled {
  background: #232527;
  color: #888;
  cursor: not-allowed;
}

.select-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

/* === Футер === */
.quay-footer {
  background: #111;
  color: #fff;
  padding: 48px 0 0 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.quay-footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  gap: 60px;
  flex-wrap: wrap;
}

.quay-footer__logo {
  flex: 0 0 auto;
  text-align: center;
}

.quay-footer__logo img {
  width: 120px;
  display: block;
  filter: brightness(0) invert(1);
  margin: 0 auto;
}

.quay-footer__columns {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.quay-footer__col {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.quay-footer__col h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.quay-footer__col a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.quay-footer__col a:hover {
  color: #60a5fa;
}

.quay-footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin: 36px 0;
  width: 100%;
  padding: 0 20px;
  flex-wrap: wrap;
}

.qf-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: transform 0.2s;
}

.qf-social:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.qf-social svg {
  width: 36px;
  height: 36px;
  display: block;
  transition: fill 0.2s;
  fill: #fff;
}

.qf-social.yt:hover svg {
  fill: #FF0000;
}

.qf-social.tg:hover svg {
  fill: #229ED9;
}

.qf-social.ig:hover svg {
  fill: #E1306C;
}

.qf-social.tiktok:hover svg {
  fill: #25F4EE;
}

.qf-social.vk:hover svg {
  fill: #4C75A3;
}

.quay-footer__copy {
  text-align: center;
  color: #b0b0b0;
  font-size: 0.98rem;
  margin: 0;
  padding: 20px 0;
  letter-spacing: 1px;
  border-top: 1px solid #333;
  width: 100%;
}

/* === Медиа-запросы для футера === */
@media (max-width: 1024px) {
  .quay-footer__main {
    gap: 40px;
    padding: 0 15px;
  }
  
  .quay-footer__columns {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .quay-footer {
    padding: 32px 0 0 0;
  }
  
  .quay-footer__main {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 0 15px;
  }
  
  .quay-footer__columns {
    flex-direction: column;
    gap: 32px;
    width: 100%;
  }
  
  .quay-footer__col {
    min-width: 100%;
    text-align: center;
  }
  
  .quay-footer__social {
    gap: 20px;
    margin: 28px 0;
  }
  
  .qf-social {
    width: 36px;
    height: 36px;
  }
  
  .qf-social svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .quay-footer {
    padding: 24px 0 0 0;
  }
  
  .quay-footer__main {
    gap: 24px;
    padding: 0 10px;
  }
  
  .quay-footer__logo img {
    width: 100px;
  }
  
  .quay-footer__columns {
    gap: 24px;
  }
  
  .quay-footer__col h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .quay-footer__col a {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .quay-footer__social {
    gap: 16px;
    margin: 24px 0;
  }
  
  .qf-social {
    width: 32px;
    height: 32px;
  }
  
  .qf-social svg {
    width: 28px;
    height: 28px;
  }
  
  .quay-footer__copy {
    font-size: 0.9rem;
    padding: 16px 10px;
  }
}



/* === Медиа-запросы === */
@media (max-width: 900px) {
  .container {
    max-width: 100%;
    padding: 0 5px;
    margin: 0 auto;
  }
  .filter-section, .results-section {
    padding: 16px;
    margin: 0 5px 20px 5px;
  }
  .card-display {
    padding: 16px 8px 12px 8px;
    margin: 0 5px;
  }
  .section-title {
    font-size: 1.1rem;
    padding-left: 8px;
  }
  .divider {
    width: 40px;
  }
  .quay-footer__main { flex-direction: column; align-items: center; gap: 32px; }
  .quay-footer__columns { flex-direction: column; gap: 24px; align-items: center; }
  .quay-footer__logo { margin-bottom: 18px; }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
        gap: 10px;
    }
    .logo-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 40px;
        max-height: 40px;
    }
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }
    .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .gap-8 {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
  .splash-logo-anim {
    flex-direction: column;
    gap: 12px;
  }
  #gpu-svg {
    width: 120px !important;
    height: 90px !important;
    max-width: 90vw;
    max-height: 30vh;
  }
  #splash-title {
    font-size: 1.3rem;
    margin-left: 0;
    margin-top: 10px;
    text-align: center;
  }
  .container {
    padding: 0 2px;
    max-width: 100%;
  }
  .main-container {
    margin-bottom: 1rem;
  }
  header {
    font-size: 1.1rem;
    margin-bottom: 18px;
  }
  .logo {
    font-size: 1.2rem;
    gap: 6px;
  }
  .logo-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 32px;
    max-height: 32px;
  }
  .filter-section, .results-section {
    padding: 8px;
    font-size: 0.98rem;
    margin: 0 2px 15px 2px;
  }
  .filter-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .card-title {
    font-size: 1.1rem;
  }
  .card-specs {
    max-width: 100%;
    font-size: 0.95rem;
  }
  .search-btn {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 10px 0;
  }
}

/* === Прочие утилиты и анимации === */
/* ... (оставьте ваши анимации, скроллбары, badge, glass-effect и т.д. как есть) ... */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.btn-primary:hover {
    transform: translateY(-0.5px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.loading { animation: pulse 2s infinite; }
.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}
.badge-hit { background: linear-gradient(135deg, #ef4444, #dc2626); }
.badge-new { background: linear-gradient(135deg, #10b981, #059669); }
.badge-sale { background: linear-gradient(135deg, #f59e0b, #d97706); }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease-out; }
.slide-up { animation: slideUp 0.5s ease-out; }
@keyframes logoFadeIn {
    0% { opacity: 0; transform: scale(0.7) translateY(-40px);}
    80% { opacity: 1; transform: scale(1.05) translateY(5px);}
    100% { opacity: 1; transform: scale(1) translateY(0);}
}
.logo.animated { animation: logoFadeIn 1.2s cubic-bezier(0.23, 1, 0.32, 1);}
#splash-screen {
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: var(--main-bg, #18181b);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s cubic-bezier(0.23,1,0.32,1);
    opacity: 1;
    pointer-events: all;
}
#splash-screen.hide {
    opacity: 0;
    pointer-events: none;
}
.splash-logo-anim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}
#splash-title {
    opacity: 0;
    transition: opacity 0.5s;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-left: 24px;
}
#gpu-body, #gpu-detail1, #gpu-detail2, #gpu-detail3, #gpu-detail4, #gpu-text {
    opacity: 0;
    transform: translateY(40px) scale(0.7);
    transition: opacity 0.5s, transform 0.5s;
}
#gpu-body.visible,
#gpu-detail1.visible,
#gpu-detail2.visible,
#gpu-detail3.visible,
#gpu-detail4.visible,
#gpu-text.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
#gpu-svg {
    max-width: 320px;
    max-height: 320px;
}
#gpu-svg path {
    stroke: white;
    fill: white;
}
#gpu-body, #gpu-detail1, #gpu-detail2, #gpu-detail3, #gpu-detail4 {
    fill: #fff !important;
    stroke: #fff !important;
}
#gpu-text text { fill: #fff; font-weight: bold; letter-spacing: 2px; }
#splash-title { opacity: 0; transition: opacity 0.5s; }
#splash-title.visible { opacity: 1; }
.splash-part { opacity: 0; transition: opacity 0.5s; }
.splash-part.visible { opacity: 1; }