:root {
  --bg: #0b0f1a;
  --bg-soft: #11172a;
  --text: #e7eaf3;
  --muted: #9aa4bf;
  --accent: #4da3ff;
  --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BACKGROUND PARALLAX (многослойный) ===== */
.bg-glow {
  position: fixed;
  inset: -20%;
  z-index: -1;
  transform: translateY(0);
  transition: transform 0.05s linear;
  pointer-events: none;
}

#bg-layer-1 {
  background:
    radial-gradient(800px 400px at 20% 10%, #1d3b8b66, transparent),
    radial-gradient(600px 400px at 80% 20%, #0d5c8a55, transparent);
  opacity: 0.8;
}

.bg-glow-2 {
  background:
    radial-gradient(500px 500px at 60% 30%, #4da3ff33, transparent),
    radial-gradient(400px 400px at 30% 60%, #2563eb22, transparent);
  opacity: 0.6;
  filter: blur(40px);
}

.bg-glow-3 {
  background:
    radial-gradient(300px 300px at 70% 70%, #1d3b8b44, transparent),
    radial-gradient(350px 350px at 40% 40%, #0d5c8a33, transparent);
  opacity: 0.4;
  filter: blur(60px);
}

/* ===== HERO ===== */
header {
  padding: 120px 0 90px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

/* Анимированный заголовок с градиентом */
.animated-title {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animated-title.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #4da3ff 0%,
    #2563eb 25%,
    #4da3ff 50%,
    #2563eb 75%,
    #4da3ff 100%
  );
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
  display: inline-block;
  position: relative;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* IT/Nyaction hover эффект */
.title-it {
  color: #ffffff;
  display: inline-block;
  position: relative;
  cursor: pointer;
  margin-left: 0.15em;
  transition: transform 0.3s ease;
}

.title-it::after {
  content: attr(data-hover);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(
    135deg,
    #4da3ff 0%,
    #2563eb 25%,
    #4da3ff 50%,
    #2563eb 75%,
    #4da3ff 100%
  );
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.title-it:hover {
  transform: scale(1.05);
}

.title-it:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.title-it:hover {
  color: transparent;
}

/* Легкая пульсация для описания */
.hero-description {
  font-size: 20px;
  max-width: 720px;
  color: var(--muted);
  animation: fadeInUp 1s ease 0.3s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.5s backwards;
}

.btn {
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(77, 163, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn.primary {
  background: linear-gradient(135deg, #4da3ff, #2563eb);
  border: none;
  box-shadow: 0 4px 15px rgba(77, 163, 255, 0.4);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .4);
}

.btn.primary:hover {
  box-shadow: 0 12px 35px rgba(77, 163, 255, 0.6);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.1s;
}

/* ===== SECTIONS ===== */
section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.lead {
  font-size: 18px;
  max-width: 720px;
  color: var(--muted);
  margin-bottom: 48px;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 24px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease;
}

.card::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px at 0% 0%, #4da3ff22, transparent 40%);
  opacity: 0;
  transition: opacity .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #4da3ff55;
}

.card:hover::after {
  opacity: 1;
}

/* ===== PRODUCTS ===== */
.product {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product svg {
  width: 48px;
  height: 48px;
}

.product h3 {
  font-size: 22px;
}

.product p {
  color: var(--muted);
  font-size: 15px;
}

/* ===== SERVICES ===== */
.services ul {
  list-style: none;
  margin-top: 12px;
}

.services li {
  color: var(--muted);
  margin-bottom: 8px;
}

/* ===== PORTFOLIO ===== */
form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

input, textarea {
  background: #0c1224;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  color: var(--text);
}

/* ===== FOOTER ===== */
footer {
  padding: 60px 0;
  background: #070a14;
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--muted);
}

/* ===== SCROLL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .hero h1 { font-size: 40px; }
}

.product-logo {
  width: 48px;
  height: 48px;
  transition: transform .25s ease, filter .25s ease;
}

.card:hover .product-logo {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(77,163,255,.4));
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  max-width: 480px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #4da3ff, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
  box-shadow: 0 10px 30px rgba(77, 163, 255, 0.5);
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--text);
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

.modal-content p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

.modal-content .btn {
  animation: fadeInUp 0.6s ease 0.5s backwards;
}

/* ===== ПЛАВНАЯ ПРОКРУТКА ===== */
html {
  scroll-behavior: smooth;
}

/* ===== УЛУЧШЕННАЯ АНИМАЦИЯ КАРТОЧЕК ===== */
.card {
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color .3s ease,
              box-shadow .3s ease;
}

.card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== FILE UPLOAD ===== */
.file-upload-area {
  border: 2px dashed rgba(77, 163, 255, 0.3);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
  background: rgba(12, 18, 36, 0.5);
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--accent);
  background: rgba(77, 163, 255, 0.06);
}

.file-upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.file-upload-prompt svg {
  color: var(--accent);
  opacity: 0.7;
}

.file-upload-hint {
  font-size: 12px;
  opacity: 0.5;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}

.file-list:not(:empty) {
  margin-top: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.2s ease;
}

.file-item.uploading {
  opacity: 0.6;
}

.file-item.uploaded {
  border-color: rgba(77, 163, 255, 0.25);
}

.file-item.error {
  border-color: rgba(255, 80, 80, 0.4);
}

.file-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
  color: var(--text);
}

.file-item-status {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

.file-item.error .file-item-status {
  color: #ff5050;
}

.file-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.file-item-remove:hover {
  color: #ff5050;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-soft) 25%, rgba(77, 163, 255, 0.1) 50%, var(--bg-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 16px;
}

.skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: 8px;
}

.skeleton-text.short {
  width: 70%;
}

.skeleton-card {
  min-height: 140px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.category-spec {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.category-desc {
  color: var(--muted);
  font-size: 14px;
  flex-grow: 1;
}

.card-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.card-link::after {
  content: '\2192';
  transition: transform 0.3s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

.service-card:hover .card-link {
  gap: 10px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 80px 0 40px;
}

.page-header h1 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.3s ease, gap 0.3s ease;
}

.back-link:hover {
  color: var(--accent);
  gap: 12px;
}

.back-link svg {
  transition: transform 0.3s ease;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* ===== CASES GRID ===== */
.cases-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ===== CASE CARDS ===== */
.case-card {
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
  transition: transform 0.4s ease;
}

.case-card:hover .case-image {
  transform: scale(1.05);
}

.case-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.case-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 12px;
}

.case-price {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-card .card-link {
  padding-top: 8px;
}

.case-card.skeleton-card .case-image {
  height: 200px;
}

.case-card.skeleton-card .case-content {
  padding: 24px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  gap: 16px;
}

.empty-state svg {
  color: var(--muted);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 24px;
  color: var(--text);
}

.empty-state p {
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 16px;
}

/* ===== CASE DETAIL PAGE ===== */
.case-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.case-gallery {
  position: sticky;
  top: 24px;
}

.case-main-image {
  width: 100%;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
}

.case-main-image:hover {
  transform: scale(1.02);
}

.case-thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.case-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
  opacity: 0.6;
}

.case-thumb:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.case-thumb.active {
  border-color: var(--accent);
  opacity: 1;
}

.case-info h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.case-full-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-line;
  margin-bottom: 24px;
}

.case-detail-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
}

/* ===== IMAGE MODAL ===== */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.show {
  opacity: 1;
  visibility: visible;
}

.image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.image-modal.show img {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.modal-nav:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 24px;
}

.modal-next {
  right: 24px;
}

@media (max-width: 900px) {
  .case-detail-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-gallery {
    position: static;
  }

  .case-info h1 {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .page-header h1 {
    font-size: 36px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .modal-nav {
    width: 44px;
    height: 44px;
  }

  .modal-prev {
    left: 12px;
  }

  .modal-next {
    right: 12px;
  }
}

/* ===== AI AUTOMATION SECTION ===== */
.process-timeline {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  position: relative;
  margin-top: 16px;
}

.process-step {
  flex: 1;
  max-width: 280px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 24px;
  position: relative;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.process-step::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px at 50% 0%, #4da3ff22, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: #4da3ff55;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.process-step:hover::after {
  opacity: 1;
}

/* Номер шага */
.step-number {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #4da3ff, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(77, 163, 255, 0.4);
  position: relative;
  z-index: 1;
}

/* Иконка шага */
.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--accent);
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.process-step:hover .step-icon {
  transform: scale(1.1);
  opacity: 1;
}

/* Заголовок шага */
.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

/* Описание шага */
.step-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Соединительные линии между шагами */
.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 54px;
  right: -24px;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  z-index: 0;
}

/* Стрелка между шагами */
.step-connector {
  display: none;
}

/* CTA контейнер */
.cta-container {
  text-align: center;
  margin-top: 56px;
}

.cta-cases-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
}

.cta-cases-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.cta-cases-btn:hover svg {
  transform: translateX(4px);
}

/* Responsive: мобильная версия */
@media (max-width: 900px) {
  .process-timeline {
    flex-wrap: wrap;
    gap: 20px;
  }

  .process-step {
    flex: 1 1 calc(50% - 10px);
    max-width: none;
  }

  .process-step:not(:last-child)::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .process-timeline {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .process-step {
    flex: none;
    width: 100%;
    max-width: 320px;
  }

  .process-step:not(:last-child)::before {
    display: none;
  }

  /* Вертикальная линия на мобильных */
  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 16px;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.5;
    border-radius: 0;
    inset: auto;
  }

  .step-icon {
    width: 48px;
    height: 48px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.cookie-banner-btn.primary {
  background: var(--accent);
  color: #fff;
}

.cookie-banner-btn.primary:hover {
  background: #3b8ee6;
  transform: translateY(-1px);
}

.cookie-banner-btn.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.cookie-banner-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ===== FOOTER LEGAL LINKS ===== */
.footer-legal {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer-legal .separator {
  color: var(--border);
}

/* ===== CONSENT CHECKBOX ===== */
.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;
}

.consent-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-group label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.consent-group label a {
  color: var(--accent);
  text-decoration: underline;
}

.consent-group.error label {
  color: #f87171;
}

.consent-group.error input[type="checkbox"] {
  outline: 2px solid #f87171;
  outline-offset: 2px;
}
