/* ═══════════════════════════════════════════
   КАСТОМНЫЕ СТИЛИ — Фонд «Бирюзовый цвет»
   Только то, что нельзя сделать утилитами Tailwind:
   анимации, glass-эффекты, mesh-градиенты, псевдоэлементы
   ═══════════════════════════════════════════ */

/* Плавный скролл */
html {
  scroll-behavior: smooth;
}

/* Noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Glass surface (cards on dark bg) ===== */
.glass {
  background: rgba(28, 36, 53, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.05),
    inset -1px -1px 0 rgba(45, 212, 217, 0.14);
  z-index: 0;
}
.glass > * { position: relative; z-index: 1; }

/* ===== Paper card (hover-lift on dark bg) ===== */
.paper {
  background: rgba(28, 36, 53, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s, border-color 0.3s;
  position: relative;
  isolation: isolate;
}
.paper::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.paper > * { position: relative; z-index: 1; }
.paper:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 217, 0.4);
  box-shadow: 0 24px 60px rgba(45, 212, 217, 0.12);
}

/* ===== Mesh gradient blobs ===== */
.mesh {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  z-index: 0;
}
.mesh--turquoise { background: radial-gradient(circle, #2DD4D9 0%, transparent 70%); }
.mesh--violet { background: radial-gradient(circle, #6B5BE9 0%, transparent 70%); opacity: 0.32; }
.mesh--cyan { background: radial-gradient(circle, #5BC2E9 0%, transparent 70%); opacity: 0.35; }

/* ===== Dotted background pattern ===== */
.dots-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(91, 233, 238, 0.18) 1px, transparent 1.5px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 80%);
}

/* ===== Light beams (atmospheric) ===== */
.beam {
  position: absolute;
  width: 1px;
  height: 100%;
  top: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
  transform-origin: top;
  transform: rotate(18deg);
  pointer-events: none;
}

/* ===== Inflated 3D sticker spheres ===== */
.inflate {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(197, 244, 246, 0.85) 35%, #2DD4D9 70%, #0E6A6E 100%);
  box-shadow:
    0 8px 24px rgba(45, 212, 217, 0.4),
    inset -3px -6px 8px rgba(14, 106, 110, 0.4),
    inset 3px 4px 6px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
.inflate--mint {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), #C5F4F6 50%, #7DDFE3 100%);
}
.inflate--coral {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 230, 220, 0.95), #FF8A6B 70%);
  box-shadow: 0 8px 24px rgba(255, 138, 107, 0.35);
}

/* ===== Capsule badge ===== */
.capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(28, 36, 53, 0.65);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 24px rgba(45, 212, 217, 0.18);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F4F6F8;
}
.capsule .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2DD4D9;
  box-shadow: 0 0 10px #2DD4D9;
}
.capsule--sm {
  gap: 7px;
  padding: 4px 11px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.capsule--sm .dot {
  width: 5px; height: 5px;
}

/* ===== Eyebrow label ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 246, 248, 0.6);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: #2DD4D9;
  box-shadow: 0 0 8px #2DD4D9;
}
.eyebrow--dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 12px #2DD4D9;
}

/* ===== Chip / tag ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: rgba(244, 246, 248, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.chip:hover { border-color: rgba(45, 212, 217, 0.5); }
.chip--active {
  background: #2DD4D9;
  color: #0B1220;
  border-color: #2DD4D9;
}

/* ===== Animated gradient text ===== */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.t-outline {
  background: linear-gradient(
    90deg,
    #C5F4F6 0%,
    #5BE9EE 25%,
    #9DEEF1 50%,
    #5BE9EE 75%,
    #C5F4F6 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 14s ease-in-out infinite;
}

/* ===== Buttons (custom — не покрываются утилитами) ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(180deg, #5BE9EE 0%, #2DD4D9 100%);
  color: #0B1220;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 -1px 0 rgba(14, 106, 110, 0.3) inset,
    0 8px 30px rgba(45, 212, 217, 0.35);
}
.btn-primary:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 -1px 0 rgba(14, 106, 110, 0.3) inset,
    0 12px 40px rgba(45, 212, 217, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  background: transparent;
  color: #F4F6F8;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  border-color: rgba(45, 212, 217, 0.7);
  box-shadow: inset 0 0 24px rgba(45, 212, 217, 0.1);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #F4F6F8;
  position: relative;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.btn-ghost:hover { color: #5BE9EE; }

/* Arrow icon in buttons */
.arrow-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
}
.btn-primary:hover .arrow-icon,
.btn-secondary:hover .arrow-icon,
.btn-ghost:hover .arrow-icon { transform: translateX(4px); }

/* ===== Scroll hint (hero bottom) ===== */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}
.scroll-hint {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ===== Form fields on dark bg ===== */
.field-dark input,
.field-dark select,
.field-dark textarea {
  font: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(28, 36, 53, 0.6);
  color: #F4F6F8;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field-dark input::placeholder,
.field-dark select::placeholder,
.field-dark textarea::placeholder {
  color: rgba(244, 246, 248, 0.35);
}
.field-dark textarea { resize: vertical; min-height: 100px; }
.field-dark input:focus,
.field-dark select:focus,
.field-dark textarea:focus {
  outline: none;
  border-color: #2DD4D9;
  box-shadow: 0 0 0 4px rgba(45, 212, 217, 0.12);
}
.field-dark label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(244, 246, 248, 0.7);
  letter-spacing: -0.005em;
}

/* ===== Checkbox custom (dark) ===== */
.check-dark {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: rgba(244, 246, 248, 0.7);
  cursor: pointer;
  line-height: 1.45;
}
.check-dark input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #2DD4D9;
  cursor: pointer;
}

/* ===== Согласие на обработку ПД ===== */
.consent-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(244, 246, 248, 0.6);
}
.consent-wrap input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: #2DD4D9;
  cursor: pointer;
}
.consent-wrap a {
  color: #5BE9EE;
  text-decoration: underline;
}
.consent-wrap a:hover { opacity: 0.8; }

/* ===== Header scroll effect ===== */
#site-header {
  transition: background 0.3s, border-color 0.3s;
}
#site-header.header-scrolled {
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#header-inner {
  transition: padding 0.3s;
}
#site-header.header-scrolled #header-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ===== Скрыть скроллбар ===== */
.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* ===== Dialog ===== */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
dialog[open] {
  animation: fadeInUp 0.25s ease forwards;
}

/* Disabled form fields */
form input:disabled,
form select:disabled,
form textarea:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.owl-carousel .owl-stage {
  display: flex;
  flex-flow: nowrap row;
}

/* Owl nav — стрелки в стиле сайта (ink + turquoise) */
.owl-carousel .owl-dots {
  display: flex;
  flex-flow: nowrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.owl-carousel .owl-dots .owl-dot {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.25rem;
  background: #2DD4D9;
  opacity: 0.5;
}
.owl-carousel .owl-dots .owl-dot.active {
  opacity: 1;
}
.owl-carousel .owl-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;

}
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  background: #2DD4D9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F4F6F8;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-1.75rem);
}
.owl-carousel .owl-nav button.owl-prev {
  left: -0.5rem;
}
.owl-carousel .owl-nav button.owl-next {
  right: -0.5rem;
}
.owl-carousel .owl-nav button.owl-prev:hover:not(.disabled),
.owl-carousel .owl-nav button.owl-next:hover:not(.disabled) {
  background: rgba(45, 212, 217, 0.15);
  border-color: #2DD4D9;
  color: #5BE9EE;
}
.owl-carousel .owl-nav button.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.owl-carousel .owl-nav button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.owl-carousel .owl-nav.disabled {
  display: none;
}

/* ========== News content (BlockRenderer output) ========== */
.news-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
}

/* Параграфы */
.news-content p {
  margin-bottom: 1em;
}
.news-content p:last-child {
  margin-bottom: 0;
}
.news-content p:empty {
  display: none;
}

/* Заголовки */
.news-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.75em 0 0.6em;
  color: #111827;
}
.news-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.5em 0 0.5em;
  color: #1f2937;
}
.news-content h2:first-child,
.news-content h3:first-child {
  margin-top: 0;
}

/* Списки */
.news-content ul,
.news-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.news-content ul { list-style-type: disc; }
.news-content ol { list-style-type: decimal; }
.news-content li {
  margin-bottom: 0.35em;
  line-height: 1.7;
  padding-left: 0.25em;
}
.news-content li:last-child {
  margin-bottom: 0;
}
.news-content li::marker {
  color: #2DD4D9;
}

/* Цитаты */
.news-content blockquote {
  border-left: 3px solid #2DD4D9;
  padding: 0.75em 0 0.75em 1.25em;
  margin: 1.5em 0;
  color: #4b5563;
  font-style: italic;
  background: #f0fdfd;
  border-radius: 0 0.5rem 0.5rem 0;
}
.news-content blockquote p {
  margin-bottom: 0.5em;
}
.news-content blockquote p:last-child {
  margin-bottom: 0;
}
.news-content blockquote cite {
  display: block;
  margin-top: 0.75em;
  font-style: normal;
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Изображения */
.news-content figure.news-image {
  margin: 1.75em 0;
}
.news-content figure.news-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  display: block;
}

/* Ссылки */
.news-content a {
  color: #0E6A6E;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.news-content a:hover {
  color: #2DD4D9;
}

/* Инлайн-форматирование */
.news-content b,
.news-content strong {
  font-weight: 600;
  color: #111827;
}
.news-content s {
  text-decoration: line-through;
  color: #9ca3af;
}

/* Разделитель */
.news-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2em 0;
}

/* CTA block */
.news-content .news-cta-block {
  margin: 2em 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f0fdfd 0%, #e0fafb 100%);
  border: 1px solid #b2eff2;
  border-radius: 1rem;
  text-align: center;
}
.news-cta-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5em;
}
.news-cta-text {
  font-size: 0.9375rem;
  color: #4b5563;
  margin-bottom: 1em;
}
.news-content .news-cta-btn,
.news-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(180deg, #5BE9EE 0%, #2DD4D9 100%);
  color: #0B1220 !important;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.75rem;
  text-decoration: none !important;
  transition: all 0.2s;
}
.news-content .news-cta-btn:hover,
.news-cta-btn:hover {
  box-shadow: 0 8px 24px rgba(45, 212, 217, 0.35);
  transform: translateY(-1px);
}

/* Code / Prompt block */
.news-content .news-code-block {
  margin: 1.5em 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #1e293b;
}
.news-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #334155;
  font-size: 0.75rem;
  color: #94a3b8;
}
.news-code-copy {
  padding: 0.2rem 0.6rem;
  border: 1px solid #475569;
  border-radius: 0.375rem;
  background: transparent;
  color: #94a3b8;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
}
.news-code-copy:hover {
  background: #475569;
  color: #e2e8f0;
}
.news-content .news-code-block pre {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
}
.news-content .news-code-block code {
  font-family: "SF Mono", Monaco, Consolas, "Courier New", monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ========== News content — Dark theme (on bg-ink) ========== */
.news-content--dark {
  color: rgba(244, 246, 248, 0.8);
}
.news-content--dark h2 {
  color: #F4F6F8;
}
.news-content--dark h3 {
  color: rgba(244, 246, 248, 0.9);
}
.news-content--dark p {
  color: rgba(244, 246, 248, 0.75);
}
.news-content--dark ul,
.news-content--dark ol {
  color: rgba(244, 246, 248, 0.75);
}
.news-content--dark li::marker {
  color: #2DD4D9;
}
.news-content--dark b,
.news-content--dark strong {
  color: #F4F6F8;
}
.news-content--dark s {
  color: rgba(244, 246, 248, 0.4);
}
.news-content--dark a {
  color: #5BE9EE;
}
.news-content--dark a:hover {
  color: #2DD4D9;
}
.news-content--dark blockquote {
  background: rgba(244, 246, 248, 0.05);
  border-left-color: #2DD4D9;
}
.news-content--dark blockquote p {
  color: rgba(244, 246, 248, 0.7);
}
.news-content--dark blockquote cite {
  color: rgba(244, 246, 248, 0.5);
}
.news-content--dark .news-cta-block {
  background: linear-gradient(135deg, rgba(45, 212, 217, 0.08) 0%, rgba(14, 106, 110, 0.1) 100%);
  border-color: rgba(45, 212, 217, 0.2);
}
.news-content--dark .news-cta-title {
  color: #F4F6F8;
}
.news-content--dark .news-cta-text {
  color: rgba(244, 246, 248, 0.7);
}
.news-content--dark hr {
  border-top-color: rgba(244, 246, 248, 0.1);
}


/* ═══════════════════════════════════════════
   Project media slider (на главной, под описанием проекта)
   ═══════════════════════════════════════════ */
.project-cards {
  position: relative;
}

/* Owl nav: круглые стрелки по центру вертикали, навешены на края слайдера */
.project-cards .owl-nav {
  margin: 0;
  pointer-events: none;
}
.project-cards .owl-nav button.owl-prev,
.project-cards .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(11, 18, 32, 0.78);
  border: 1px solid rgba(244, 246, 248, 0.22);
  color: #F4F6F8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s, transform .2s;
  z-index: 4;
}
.project-cards .owl-nav button.owl-prev { left: -4px; }
.project-cards .owl-nav button.owl-next { right: -4px; }
.project-cards .owl-nav button.owl-prev:hover,
.project-cards .owl-nav button.owl-next:hover {
  background: rgba(45, 212, 217, 0.92);
  border-color: rgba(45, 212, 217, 1);
  color: #0B1220;
  transform: translateY(-50%) scale(1.05);
}
.project-cards .owl-nav button.owl-prev.disabled,
.project-cards .owl-nav button.owl-next.disabled {
  opacity: 0;
  pointer-events: none;
}
.project-cards .owl-nav button.owl-prev svg,
.project-cards .owl-nav button.owl-next svg {
  width: 18px;
  height: 18px;
}
.project-cards .owl-dots { display: none; }

/* На мобильном — без стрелок, peek-скролл свайпом */
@media (max-width: 767px) {
  .project-cards .owl-nav { display: none; }
}

/* На градиентной (highlighted) карточке — другая палитра стрелок */
.bg-gradient-to-br .project-cards .owl-nav button.owl-prev,
.bg-gradient-to-br .project-cards .owl-nav button.owl-next {
  background: rgba(11, 18, 32, 0.32);
  border-color: rgba(244, 246, 248, 0.28);
}
.bg-gradient-to-br .project-cards .owl-nav button.owl-prev:hover,
.bg-gradient-to-br .project-cards .owl-nav button.owl-next:hover {
  background: rgba(11, 18, 32, 0.55);
  border-color: rgba(244, 246, 248, 0.6);
  color: #F4F6F8;
}

/* Слайд */
.project-slide {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  font: inherit;
}
.project-slide__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(244, 246, 248, 0.04);
  border: 1px solid rgba(244, 246, 248, 0.08);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s;
}
.project-slide:hover .project-slide__media {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 217, 0.45);
  box-shadow: 0 12px 32px rgba(45, 212, 217, 0.18);
}
.project-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.project-slide:hover .project-slide__img {
  transform: scale(1.04);
}
.project-slide__img--placeholder {
  background: linear-gradient(135deg, rgba(45, 212, 217, 0.18) 0%, rgba(14, 106, 110, 0.32) 100%);
}

/* Бейдж типа — лево-верх */
.project-slide__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: var(--font-body, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #F4F6F8;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.project-slide__badge--news     { background: rgba(45, 212, 217, 0.92); color: #0B1220; }
.project-slide__badge--image    { background: rgba(11, 18, 32, 0.72); }
.project-slide__badge--image_link { background: rgba(11, 18, 32, 0.72); }
.project-slide__badge--vk_video { background: rgba(11, 18, 32, 0.78); }

/* Play-иконка по центру (для vk_video) */
.project-slide__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #F4F6F8;
}
.project-slide__play::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: rgba(11, 18, 32, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(244, 246, 248, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: background-color .25s, border-color .25s, transform .25s;
}
.project-slide__play svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  transform: translateX(2px);
  transition: transform .25s, color .25s;
}
.project-slide:hover .project-slide__play::before {
  background: rgba(45, 212, 217, 0.92);
  border-color: rgba(45, 212, 217, 1);
  transform: scale(1.08);
}
.project-slide:hover .project-slide__play svg {
  color: #0B1220;
}

/* Подпись внизу слайда (для новости / image_link) */
.project-slide__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 12px 10px;
  font-family: var(--font-body, sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #F4F6F8;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 18, 32, 0.85) 100%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* На мобильном — узкая peek-карточка */
@media (max-width: 767px) {
  .project-cards .owl-item { width: auto; }
  .project-slide { width: 68vw; }
}


/* ═══════════════════════════════════════════
   Media popup (фото + VK видео из слайдера проектов)
   ═══════════════════════════════════════════ */
.media-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.media-popup.is-open { display: flex; }
.media-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.media-popup__box {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-popup__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(244, 246, 248, 0.12);
  border: 1px solid rgba(244, 246, 248, 0.25);
  color: #F4F6F8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.media-popup__close:hover {
  background: rgba(45, 212, 217, 0.2);
  border-color: rgba(45, 212, 217, 0.7);
  color: #5BE9EE;
}
.media-popup__close svg { width: 18px; height: 18px; }
.media-popup__content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-popup__img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.media-popup__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.media-popup__video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
@media (max-width: 640px) {
  .media-popup { padding: 12px; }
  .media-popup__close { top: -40px; }
}