/* Защита от горизонтального скролла (мобильные) */
html { overflow-x: hidden; }

/* ============================================================
   Delai-sait — общие утилиты дизайн-системы «Kinetic Precision»
   (собраны из 11 code.html макета) + функциональные компоненты.
   Специфические для страницы правила — в <style> шаблона
   (как в макете). Правила с @apply — в input.css (компилирует CLI).
   ============================================================ */

:root {
  --ds-cyan: #00d4ff;
  --ds-cyan-light: #a8e8ff;
  --ds-cyan-hover: #3cd7ff;
  --ds-green: #a3fa00;
  --ds-green-dim: #8edb00;
  --ds-orange: #ffb08b;
  --ds-bg: #0b0e14;
  --ds-surface: #10131a;
  --ds-surface-glass: rgba(26, 26, 26, 0.6);
  --ds-carbon: #1a1a1a;
  --ds-on-surface: #e1e2eb;
  --ds-variant: #bbc9cf;
  --ds-outline: #859398;
  --ds-outline-variant: #3c494e;
  --ds-border-cyan: rgba(0, 212, 255, 0.3);
  --ds-success: #5cb85c;
  --ds-on-cyan: #003642;
  --ds-on-cyan-container: #00586b;
  --ds-secondary: #ffffff;
  --ds-error: #ffb4ab;
  --ds-container: #1d2026;
  --ds-container-low: #191c22;
  --ds-container-high: #272a31;
  --ds-container-highest: #32353c;
  --ds-surface-bright: #363940;
  /* RGB-каналы (для Tailwind opacity-модификаторов bg-primary/50 и т.п.) */
  --ds-surface-rgb: 16 19 26;
  --ds-bg-rgb: 11 14 20;
  --ds-carbon-rgb: 26 26 26;
  --ds-cyan-rgb: 0 212 255;
  --ds-cyan-light-rgb: 168 232 255;
  --ds-outline-variant-rgb: 60 73 78;
  --ds-border-cyan-rgb: 0 212 255;
  --ds-container-high-rgb: 39 42 49;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background-color: var(--ds-bg);
  color: var(--ds-on-surface);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(0, 212, 255, 0.35); color: #fff; }
img { max-width: 100%; height: auto; }

/* Material Symbols helpers */
.material-symbols-outlined { font-size: 24px; line-height: 1; vertical-align: middle; }
.icon-18 { font-size: 18px; }
.icon-20 { font-size: 20px; }
.icon-28 { font-size: 28px; }
.icon-36 { font-size: 36px; }
.icon-48 { font-size: 48px; }

/* ---------- Shared utilities (из макета, дедуплицированы) ---------- */
.neon-bloom { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
.neon-bloom:hover { box-shadow: 0 0 25px rgba(0, 212, 255, 0.6); }
.neon-bloom-green { box-shadow: 0 0 15px rgba(163, 250, 0, 0.4); }
.neon-glow { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
.glow-cyan { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
.hover-glow-cyan:hover { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); border-color: #00d4ff; }
.hover-neon-bloom:hover { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
.neon-bloom-active { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
.neon-bloom-hover:hover { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
.neon-bloom-primary { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }

.glass-panel {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.3);
}
.glass-panel-neutral {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #3c494e;
}
.text-glow { text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }
.text-glow-green { text-shadow: 0 0 10px rgba(163, 250, 0, 0.4); }

.tech-border { border: 1px solid rgba(0, 212, 255, 0.3); }

/* Micro-grid: варианты фона как в макете (классы на body/карточках) */
.micro-grid { background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 24px 24px; }
.micro-grid-cyan { background-image: linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px); background-size: 24px 24px; }
.micro-grid-cyan-bright { background-image: linear-gradient(to right, rgba(0, 212, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 212, 255, 0.05) 1px, transparent 1px); background-size: 24px 24px; }
.micro-grid-white-4 { background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 4px 4px; }
.bg-micro-grid { background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 24px 24px; }
.bg-micro-grid-gray { background-image: linear-gradient(to right, rgba(133, 147, 152, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(133, 147, 152, 0.05) 1px, transparent 1px); background-size: 24px 24px; }

/* ---------- Crosshair / HUD corners ---------- */
.crosshair-corners::before,
.crosshair-corners::after,
.crosshair-corners .corner-btm::before,
.crosshair-corners .corner-btm::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-color: rgba(0, 212, 255, 0.5);
  border-style: solid;
  pointer-events: none;
  z-index: 10;
}
.crosshair-corners::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.crosshair-corners::after { top: 0; right: 0; border-width: 1px 1px 0 0; }
.crosshair-corners .corner-btm::before { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.crosshair-corners .corner-btm::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.crosshair-tl::before, .crosshair-tr::after, .crosshair-bl::before, .crosshair-br::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-color: #00d4ff;
  border-style: solid;
  pointer-events: none;
}
.crosshair-tl::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.crosshair-tr::after { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.crosshair-bl::before { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.crosshair-br::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.crosshair-lines-tl { position: relative; }
.crosshair-lines-tl::before { content: ''; position: absolute; top: 0; left: 0; width: 10px; height: 1px; background: #00d4ff; }
.crosshair-lines-tl::after { content: ''; position: absolute; top: 0; left: 0; width: 1px; height: 10px; background: #00d4ff; }
.crosshair-lines-br { position: relative; }
.crosshair-lines-br::before { content: ''; position: absolute; bottom: 0; right: 0; width: 10px; height: 1px; background: #00d4ff; }
.crosshair-lines-br::after { content: ''; position: absolute; bottom: 0; right: 0; width: 1px; height: 10px; background: #00d4ff; }

.hud-border { border: 1px solid rgba(0, 212, 255, 0.3); position: relative; }
.hud-border::before, .hud-border::after { content: ''; position: absolute; width: 8px; height: 8px; background-color: #00d4ff; }
.hud-border::before { top: -1px; left: -1px; }
.hud-border::after { bottom: -1px; right: -1px; }

.hud-corner-tl::after { content: ''; position: absolute; top: -1px; left: -1px; width: 8px; height: 8px; border-top: 2px solid #00d4ff; border-left: 2px solid #00d4ff; }
.hud-corner-tr::after { content: ''; position: absolute; top: -1px; right: -1px; width: 8px; height: 8px; border-top: 2px solid #00d4ff; border-right: 2px solid #00d4ff; }
.hud-corner-bl::after { content: ''; position: absolute; bottom: -1px; left: -1px; width: 8px; height: 8px; border-bottom: 2px solid #00d4ff; border-left: 2px solid #00d4ff; }
.hud-corner-br::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 8px; height: 8px; border-bottom: 2px solid #00d4ff; border-right: 2px solid #00d4ff; }

.input-glow:focus { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); border-color: #00d4ff; outline: none; }

/* ---------- Scrollbars (варианты из макета) ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0b0e14; }
::-webkit-scrollbar-thumb { background: #3c494e; }
::-webkit-scrollbar-thumb:hover { background: #00d4ff; }

/* ---------- Details marker ---------- */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ---------- Autofill ---------- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #0B0E14 inset !important;
  -webkit-text-fill-color: #a8e8ff !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: var(--ds-on-surface);
}

/* ---------- Forms (Kinetic) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="search"], input[type="url"], input[type="password"], select, textarea {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--ds-outline-variant);
  color: var(--ds-on-surface);
  font-family: Inter, sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 12px 8px;
  width: 100%;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-bottom-color: var(--ds-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}
input::placeholder, textarea::placeholder { color: var(--ds-outline); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300d4ff' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.5 5 8.5l1.4-1.4L12 12.7l5.6-5.6L19 8.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
select option { background-color: #0b0e14; color: var(--ds-on-surface); }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Checkbox — квадрат, зелёная заливка */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  flex: none;
  border: 1px solid var(--ds-outline-variant);
  background-color: var(--ds-carbon);
  cursor: pointer;
  position: relative;
  border-radius: 0;
  transition: background-color 0.15s, border-color 0.15s;
}
input[type="checkbox"]:hover { border-color: var(--ds-cyan); }
input[type="checkbox"]:checked {
  background-color: var(--ds-green);
  border-color: var(--ds-green);
}
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 12px;
  border: solid #112000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Range — общий */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%; height: 4px;
  background: rgba(0, 212, 255, 0.3);
}
input[type="range"]::-moz-range-track {
  width: 100%; height: 4px;
  background: rgba(0, 212, 255, 0.3);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px; width: 16px;
  background: var(--ds-cyan);
  cursor: grab;
  border-radius: 0;
  margin-top: -6px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}
input[type="range"]::-moz-range-thumb {
  height: 16px; width: 16px;
  background: var(--ds-cyan);
  cursor: grab;
  border-radius: 0;
  border: none;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}
/* Acid green (калькулятор) */
input[type="range"].range-acid::-webkit-slider-thumb {
  height: 16px; width: 8px;
  background: var(--ds-green);
  margin-top: -7px;
  box-shadow: 0 0 10px rgba(163, 250, 0, 0.5);
}
input[type="range"].range-acid::-webkit-slider-runnable-track { height: 2px; background: rgba(0, 212, 255, 0.3); }
input[type="range"].range-acid::-moz-range-thumb {
  height: 16px; width: 8px;
  background: var(--ds-green);
  box-shadow: 0 0 10px rgba(163, 250, 0, 0.5);
}
input[type="range"].range-acid::-moz-range-track { height: 2px; background: rgba(0, 212, 255, 0.3); }

/* ---------- Buttons (стиль макета) ---------- */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 24px;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.ds-btn-primary {
  background-color: var(--ds-cyan);
  color: #003642;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}
.ds-btn-primary:hover { background-color: var(--ds-cyan-light); box-shadow: 0 0 25px rgba(0, 212, 255, 0.6); }
.ds-btn-outline {
  background: rgba(26, 26, 26, 0.6);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--ds-cyan);
}
.ds-btn-outline:hover { border-color: var(--ds-cyan); box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
.ds-btn-green {
  background-color: var(--ds-green);
  color: #112000;
}
.ds-btn-green:hover { box-shadow: 0 0 25px rgba(163, 250, 0, 0.5); }
.ds-btn-ghost {
  border-color: var(--ds-outline-variant);
  color: var(--ds-variant);
  background: transparent;
}
.ds-btn-ghost:hover { border-color: var(--ds-cyan); color: var(--ds-cyan); }

/* ---------- Chips ---------- */
.ds-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--ds-outline-variant);
  color: var(--ds-variant);
}
.ds-chip-cyan { border-color: rgba(0, 212, 255, 0.3); color: var(--ds-cyan-light); }
.ds-chip-green { border-color: rgba(163, 250, 0, 0.4); color: var(--ds-green); }

/* ---------- Tables ---------- */
.ds-table { width: 100%; border-collapse: collapse; }
.ds-table th {
  font-family: Inter, sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ds-cyan-light);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ds-border-cyan);
}
.ds-table td {
  font-family: Inter, sans-serif; font-size: 14px; font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ds-variant);
  padding: 14px 16px;
  border-bottom: 1px solid var(--ds-outline-variant);
}
.ds-table tbody tr { transition: background-color 0.15s; }
.ds-table tbody tr:hover { background-color: var(--ds-carbon); }

/* ---------- FAQ ---------- */
details.ds-faq { border: 1px solid var(--ds-outline-variant); transition: border-color 0.2s; }
details.ds-faq[open] { border-color: var(--ds-border-cyan); }
details.ds-faq summary {
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-family: Montserrat, sans-serif; font-weight: 700; font-size: 15px;
  color: var(--ds-on-surface);
}
details.ds-faq summary .material-symbols-outlined { transition: transform 0.25s; color: var(--ds-cyan); }
details.ds-faq[open] summary .material-symbols-outlined { transform: rotate(180deg); }
details.ds-faq .ds-faq-body { padding: 0 24px 20px; font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--ds-variant); }

/* ---------- Cards ---------- */
.ds-card { background-color: var(--ds-carbon); border: 1px solid var(--ds-outline-variant); transition: border-color 0.2s, transform 0.2s; }

/* ---------- Section head (kicker) ---------- */
.ds-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: Inter, sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ds-cyan);
}
.ds-kicker::before { content: ''; width: 8px; height: 2px; background: var(--ds-cyan); display: inline-block; }

/* ---------- Reveal (необязательно; в макете нет — оставлено для интерактива) ---------- */
.ds-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.ds-reveal.ds-revealed { opacity: 1; transform: none; }

/* ---------- Dropzone (форма) ---------- */
.ds-dropzone { border: 2px dashed var(--ds-outline-variant); background: rgba(0, 212, 255, 0.02); transition: border-color 0.2s, background 0.2s; position: relative; overflow: hidden; }
.ds-dropzone.ds-dragover { border-color: var(--ds-cyan); background: rgba(0, 212, 255, 0.06); }
.ds-file-info { color: var(--ds-green); }
/* Полоса скана в дропзоне: от верхней границы до нижней, бесконечно.
   Анимируем top в % от высоты контейнера (translateY в % считался бы от самой полосы в 1px). */
@keyframes dsScanLine {
  0%   { top: -1px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% - 1px); opacity: 0; }
}
.scan-line-anim { animation: dsScanLine 3.2s ease-in-out infinite; }

/* Полоса прогресса скролла в шапке: циан → кислотный, блик + свечение.
   Анимация только transform/opacity; блик отключается при prefers-reduced-motion. */
.ds-progress {
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity .4s ease;
}
.ds-progress.is-active { opacity: 1; }
.ds-progress__fill {
  display: block; height: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #00D4FF, #A3FA00);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.45);
  position: relative; overflow: hidden;
}
.ds-progress__fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.5) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: dsProgressShine 3.2s linear infinite;
}
@keyframes dsProgressShine { to { transform: translateX(100%); } }
html:not(.dark) .ds-progress__fill {
  background: linear-gradient(90deg, #0071E3, #65D800);
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .ds-progress__fill::after { animation: none; opacity: 0; }
}
@keyframes scan { 0% { top: 0%; opacity: 0; } 10% { opacity: 0.5; } 90% { opacity: 0.5; } 100% { top: 100%; opacity: 0; } }
@keyframes dsPulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.pulse-dot { animation: dsPulseDot 2s ease-in-out infinite; }

/* ---------- Toasts ---------- */
#ds-toasts { position: fixed; top: 84px; right: 16px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.ds-toast {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ds-outline-variant);
  border-left: 3px solid var(--ds-outline);
  padding: 14px 16px;
  color: var(--ds-on-surface);
  font-size: 14px; line-height: 1.5;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  animation: dsToastIn 0.25s ease;
}
.ds-toast.ds-toast-success { border-left-color: var(--ds-green); }
.ds-toast.ds-toast-success .material-symbols-outlined { color: var(--ds-green); }
.ds-toast.ds-toast-error { border-left-color: #ff5c5c; }
.ds-toast.ds-toast-error .material-symbols-outlined { color: #ff5c5c; }
.ds-toast.ds-toast-warning { border-left-color: var(--ds-orange); }
.ds-toast.ds-toast-warning .material-symbols-outlined { color: var(--ds-orange); }
.ds-toast.ds-toast-info { border-left-color: var(--ds-cyan); }
.ds-toast.ds-toast-info .material-symbols-outlined { color: var(--ds-cyan); }
.ds-toast.ds-toast-hide { animation: dsToastOut 0.25s ease forwards; }
@keyframes dsToastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes dsToastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(24px); } }

/* ---------- Modal ---------- */
.ds-modal-backdrop { position: fixed; inset: 0; z-index: 9990; background: rgba(11, 14, 20, 0.85); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; }
.ds-modal-backdrop.ds-open { display: flex; }
.ds-modal { background: var(--ds-carbon); border: 1px solid var(--ds-border-cyan); box-shadow: 0 0 40px rgba(0, 212, 255, 0.15); max-width: 520px; width: 100%; max-height: calc(100vh - 64px); overflow-y: auto; padding: 28px; position: relative; animation: dsModalIn 0.2s ease; }
@keyframes dsModalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.ds-modal-close { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--ds-outline); cursor: pointer; padding: 6px; transition: color 0.15s; }
.ds-modal-close:hover { color: var(--ds-cyan); }
/* Компактная модалка (консультация — только телефон). */
.ds-modal-compact { max-width: 400px; }
/* Скролл-лок под модалкой (вешается JS на body при открытии). */
body.ds-no-scroll { overflow: hidden; }
/* Заголовок и преамбула модалок: аккуратные отступы при длинном тексте. */
.ds-modal .font-headline-sm { letter-spacing: 0.01em; }
@media (max-width: 767px) {
	.ds-modal-backdrop { padding: 12px; }
	.ds-modal { padding: 24px 16px; max-height: calc(100dvh - 24px); }
	.ds-modal-close { top: 10px; right: 8px; }
}

/* ---------- Nav (wp_nav_menu) ---------- */
.menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.menu > li { list-style: none; }
.menu a { text-decoration: none; }
[data-mobile-nav-panel] ul { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; }
[data-mobile-nav-panel] li { list-style: none; }
[data-mobile-nav-panel] a { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ds-on-surface); text-decoration: none; }
footer .menu { flex-direction: column; gap: 8px; align-items: flex-start; }
footer .menu a { font-family: Inter, sans-serif; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; color: var(--ds-variant); transition: color .15s; }
footer .menu a:hover { color: var(--ds-green); }
footer .menu .current-menu-item > a { color: var(--ds-cyan-light); }

/* ---------- Pagination ---------- */
.page-numbers, .nav-links a, .nav-links span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--ds-outline-variant);
  font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.15em;
  color: var(--ds-variant); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.page-numbers:hover, .nav-links a:hover { border-color: var(--ds-cyan); color: var(--ds-cyan); box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
.page-numbers.current, .nav-links .current { background: var(--ds-cyan); border-color: var(--ds-cyan); color: #003642; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Prose ---------- */
.ds-prose { color: var(--ds-variant); font-family: Inter, sans-serif; font-size: 17px; font-weight: 300; line-height: 1.7; letter-spacing: 0.01em; }
.ds-prose h2, .ds-prose h3 { font-family: Montserrat, sans-serif; font-weight: 700; color: var(--ds-on-surface); margin: 1.8em 0 0.7em; line-height: 1.3; }
.ds-prose h2 { font-size: 28px; text-transform: uppercase; letter-spacing: 0.03em; }
.ds-prose h3 { font-size: 20px; }
.ds-prose a { color: var(--ds-cyan); text-decoration: none; border-bottom: 1px solid rgba(0, 212, 255, .3); }
.ds-prose a:hover { color: var(--ds-cyan-light); border-bottom-color: var(--ds-cyan); }
.ds-prose ul, .ds-prose ol { padding-left: 1.4em; margin: 1em 0; }
.ds-prose ul { list-style: square; }
.ds-prose li { margin: 0.4em 0; }
.ds-prose blockquote { border-left: 2px solid var(--ds-cyan); padding-left: 20px; margin: 1.5em 0; font-style: italic; color: var(--ds-on-surface); }
.ds-prose img { border: 1px solid var(--ds-outline-variant); }

/* ---------- WooCommerce tabs ---------- */
.woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ds-outline-variant); }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a { display: inline-block; padding: 14px 24px; font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ds-variant); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.woocommerce-tabs ul.tabs li a:hover { color: var(--ds-cyan-light); }
.woocommerce-tabs ul.tabs li.active a { color: var(--ds-cyan); border-bottom-color: var(--ds-cyan); }
.woocommerce-tabs .woocommerce-Tabs-panel { padding: 24px 0; }

/* ---------- WooCommerce notices ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--ds-carbon) !important;
  color: var(--ds-on-surface) !important;
  border-top-color: var(--ds-cyan) !important;
  border-radius: 0;
}
.woocommerce-error { border-top-color: #ff5c5c !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ds-cyan) !important; }
.woocommerce-error::before { color: #ff5c5c !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  background-color: var(--ds-cyan) !important;
  color: #003642 !important;
  font-family: Inter, sans-serif !important;
  font-size: 12px !important; font-weight: 600 !important;
  letter-spacing: 0.15em !important; text-transform: uppercase !important;
  padding: 8px 24px !important;
  border-radius: 0.25rem !important;
  border: none !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { box-shadow: 0 0 25px rgba(0, 212, 255, 0.6); }
.woocommerce .quantity input[type="number"] { background: var(--ds-bg); border: 1px solid var(--ds-outline-variant); text-align: center; padding: 10px; }

/* ---------- Blog sidebar search ---------- */
.ds-sidebar-search input[type="search"] { border: 1px solid var(--ds-outline-variant); padding: 12px 16px; }
.ds-sidebar-search button[type="submit"] { margin-top: 12px; width: 100%; }

/* ---------- Cart ---------- */
.ds-cart-table { width: 100%; border-collapse: collapse; }
.ds-cart-table th { font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ds-cyan-light); text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--ds-border-cyan); }
.ds-cart-table td { padding: 18px 12px; border-bottom: 1px solid var(--ds-outline-variant); vertical-align: middle; font-family: Inter, sans-serif; font-size: 14px; letter-spacing: 0.05em; color: var(--ds-on-surface); }
.ds-cart-table .quantity input[type="number"] { width: 70px; text-align: center; background: var(--ds-bg); border: 1px solid var(--ds-outline-variant); color: var(--ds-on-surface); font-family: Inter, sans-serif; padding: 10px 8px; }
.ds-cart-remove { color: var(--ds-outline); text-decoration: none; font-size: 20px; line-height: 1; transition: color 0.15s; }
.ds-cart-remove:hover { color: #ff5c5c; }
.ds-cart-thumb { border: 1px solid var(--ds-outline-variant); display: block; }
@media (max-width: 767px) {
  .ds-cart-table thead { display: none; }
  .ds-cart-table tr { display: block; border-bottom: 1px solid var(--ds-outline-variant); padding: 16px 0; }
  .ds-cart-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 8px 0; }
  .ds-cart-table td::before { content: attr(data-label); font-family: Inter, sans-serif; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ds-outline); }
}

/* ---------- Screen reader ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- WooCommerce: checkout / my-account (тёмная тема) ---------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-checkout .select2-container--default .select2-selection--single,
.select2-dropdown,
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="tel"],
.woocommerce form .form-row input[type="password"],
.woocommerce form.login input.input-text {
  background-color: var(--ds-carbon, #1A1A1A) !important;
  color: var(--ds-on-surface, #E1E2EB) !important;
  border: 1px solid var(--ds-outline-variant, #3c494e) !important;
  border-radius: 0 !important;
  font-family: Inter, sans-serif;
  letter-spacing: 0.05em;
  padding: 10px 14px !important;
}
.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce-checkout .select2-container--default .select2-selection--single:focus,
.select2-container--open .select2-selection--single {
  border-color: var(--ds-cyan, #00d4ff) !important;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.35) !important;
  outline: none !important;
}
.select2-dropdown { border-color: var(--ds-outline-variant, #3c494e) !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ds-on-surface, #E1E2EB) !important; line-height: 2.2 !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--ds-on-surface-variant, #a8adb8) transparent transparent transparent !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: var(--ds-cyan, #00d4ff) !important; color: #003642 !important; }
.select2-results__options { color: var(--ds-on-surface, #E1E2EB); }

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading,
.woocommerce-account .woocommerce h2, .woocommerce-account .woocommerce h3 {
  font-family: Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ds-on-surface, #E1E2EB);
  font-size: 16px;
}
.woocommerce-checkout .woocommerce-billing-fields h3::after,
.woocommerce-checkout #order_review_heading::after {
  content: ''; display: block; width: 48px; height: 2px;
  background: var(--ds-cyan, #00d4ff); margin-top: 8px;
}
#order_review {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid var(--ds-border-cyan, rgba(0, 212, 255, 0.3));
  padding: 24px;
  backdrop-filter: blur(20px);
}
.woocommerce table.shop_table {
  border: 1px solid var(--ds-outline-variant, #3c494e) !important;
  border-collapse: collapse;
}
.woocommerce table.shop_table th,
.woocommerce-checkout-review-order-table th {
  font-family: Inter, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ds-cyan-light, #a8e8ff);
  border-bottom: 1px solid var(--ds-border-cyan, rgba(0, 212, 255, 0.3)) !important;
  padding: 12px;
}
.woocommerce table.shop_table td { border-bottom: 1px solid var(--ds-outline-variant, #3c494e) !important; padding: 12px; }
.woocommerce-checkout #payment {
  background: var(--ds-carbon, #1A1A1A) !important;
  border-radius: 0 !important;
}
.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--ds-outline-variant, #3c494e);
}
.woocommerce-checkout #payment div.payment_box {
  background: var(--ds-bg, #0b0e14) !important;
  color: var(--ds-on-surface-variant, #a8adb8) !important;
}
.woocommerce-checkout #payment div.payment_box::before { border-top-color: var(--ds-bg, #0b0e14) !important; }
.woocommerce .lost_password a, .woocommerce-account a { color: var(--ds-cyan, #00d4ff); }
.woocommerce form.login, .woocommerce form.register, .woocommerce-account .woocommerce-MyAccount-content > p:first-of-type {
  border: 1px solid var(--ds-outline-variant, #3c494e);
  padding: 24px;
  background: rgba(26, 26, 26, 0.6);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none; padding: 0; margin: 0;
  border: 1px solid var(--ds-outline-variant, #3c494e);
}
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--ds-outline-variant, #3c494e); }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li:hover a { color: var(--ds-cyan, #00d4ff); }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block; padding: 12px 16px; color: var(--ds-on-surface-variant, #a8adb8);
  text-decoration: none; font-family: Inter, sans-serif; font-size: 13px; letter-spacing: 0.08em;
}
.woocommerce-checkout .woocommerce-form__label-for-checkbox span,
.woocommerce-checkout label, .woocommerce form .form-row label {
  color: var(--ds-on-surface-variant, #a8adb8) !important;
  font-family: Inter, sans-serif; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"],
.woocommerce form .form-row .woocommerce-form__label-for-checkbox input[type="checkbox"],
#createaccount { accent-color: var(--ds-cyan, #00d4ff); }
.woocommerce-checkout .place-order .woocommerce-terms-and-conditions { color: var(--ds-on-surface-variant, #a8adb8); }
.woocommerce form.checkout_coupon, .woocommerce form.login { border-color: var(--ds-outline-variant, #3c494e); }

/* ---------- Глоссарий технологий (страница «Цены») ---------- */
details.ds-glossary summary::-webkit-details-marker { display: none; }
details.ds-glossary summary:hover { border-color: var(--ds-cyan, #00d4ff); }
details.ds-glossary[open] { border-color: rgba(0, 212, 255, 0.5); box-shadow: 0 0 15px rgba(0, 212, 255, 0.15); }

/* ---------- Мобильная типографика: перенос длинных слов и адаптивные заголовки ---------- */
@media (max-width: 767px) {
  h1, h2, h3, .font-headline-lg, .font-headline-md, .font-headline-sm, .font-display-lg { overflow-wrap: break-word; }
  .text-headline-lg { font-size: clamp(22px, 7vw, 48px) !important; line-height: 1.25 !important; }
  .text-headline-md { font-size: clamp(18px, 5.5vw, 32px) !important; line-height: 1.3 !important; }
  .text-headline-sm { font-size: clamp(16px, 5vw, 24px) !important; line-height: 1.4 !important; }
  .text-display-lg { font-size: clamp(24px, 7.5vw, 72px) !important; line-height: 1.1 !important; }
  .font-display-lg.text-4xl { font-size: clamp(22px, 7vw, 36px) !important; }
}

/* ---------- Footer: меню из админки (walker выводит ul>li>a) ---------- */
.ds-ftr-main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ds-ftr-main ul li a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: var(--ds-variant); text-decoration: none;
  font-family: Inter, sans-serif; font-size: 13px; letter-spacing: 0.06em; line-height: 1.5;
  padding: 5px 0; transition: color .2s, padding-left .2s;
}
.ds-ftr-main ul li a:hover { color: var(--ds-cyan); padding-left: 6px; }

/* ---------- Product: форма «В корзину» (Kinetic Precision) ---------- */
.ds-shop-wrap form.cart {
  display: flex; align-items: stretch; gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.ds-shop-wrap form.cart .quantity { margin: 0 !important; }
.ds-shop-wrap form.cart .quantity .qty {
  width: 96px; min-height: 52px; height: 100%;
  background-color: var(--ds-carbon); color: var(--ds-on-surface);
  border: 1px solid rgba(0, 212, 255, 0.35); border-radius: 0;
  font-family: Inter, sans-serif; font-size: 14px; letter-spacing: 0.08em;
  text-align: center; padding: 0 8px;
  -moz-appearance: textfield; appearance: textfield;
  transition: border-color .2s, box-shadow .2s;
}
.ds-shop-wrap form.cart .quantity .qty::-webkit-outer-spin-button,
.ds-shop-wrap form.cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ds-shop-wrap form.cart .quantity .qty:focus {
  border-color: #00d4ff; box-shadow: 0 0 15px rgba(0, 212, 255, 0.35); outline: none;
}
.ds-shop-wrap form.cart .single_add_to_cart_button {
  flex: 1 1 160px;
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; margin: 0 !important;
  background-color: var(--ds-cyan) !important; color: var(--ds-on-cyan, #003642) !important;
  border: 1px solid var(--ds-cyan) !important; border-radius: 0 !important;
  font-family: Inter, sans-serif !important; font-size: 12px !important; font-weight: 600 !important;
  letter-spacing: 0.15em !important; text-transform: uppercase !important;
  padding: 0 24px !important;
  transition: box-shadow .3s, background-color .3s !important;
}
.ds-shop-wrap form.cart .single_add_to_cart_button::before {
  font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal;
  font-size: 18px; line-height: 1; letter-spacing: 0;
  content: 'shopping_cart';
}
.ds-shop-wrap form.cart .single_add_to_cart_button:hover {
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.6) !important;
}
.ds-shop-wrap form.cart .single_add_to_cart_button.added::before { content: 'check_circle'; }
.ds-shop-wrap form.cart .single_add_to_cart_button.loading { opacity: 0.7; cursor: wait; }
@media (max-width: 767px) {
  .ds-shop-wrap form.cart .quantity .qty { width: 88px; min-height: 48px; }
  .ds-shop-wrap form.cart .single_add_to_cart_button { flex-basis: 100%; }
}

/* ---------- Quantity stepper (−/+) ---------- */
.ds-shop-wrap form.cart .quantity { display: inline-flex; align-items: stretch; }
.ds-shop-wrap form.cart .quantity .minus,
.ds-shop-wrap form.cart .quantity .plus {
  width: 44px; min-height: 52px; margin: 0 !important;
  background-color: var(--ds-carbon); color: var(--ds-cyan);
  border: 1px solid rgba(0, 212, 255, 0.35); border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.ds-shop-wrap form.cart .quantity .minus .material-symbols-outlined,
.ds-shop-wrap form.cart .quantity .plus .material-symbols-outlined { font-size: 18px; }
.ds-shop-wrap form.cart .quantity .minus { margin-right: -1px !important; }
.ds-shop-wrap form.cart .quantity .plus { margin-left: -1px !important; }
.ds-shop-wrap form.cart .quantity .minus:hover,
.ds-shop-wrap form.cart .quantity .plus:hover {
  background-color: rgba(0, 212, 255, 0.15); color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
}
.ds-shop-wrap form.cart .quantity .minus:active,
.ds-shop-wrap form.cart .quantity .plus:active { background-color: rgba(0, 212, 255, 0.3); }
.ds-shop-wrap form.cart .quantity .qty { border-left: 0; border-right: 0; }

/* Корзина: компактный степпер */
.ds-cart-table .quantity { display: inline-flex; align-items: stretch; }
.ds-cart-table .quantity .minus,
.ds-cart-table .quantity .plus {
  width: 32px; height: 40px; margin: 0 !important; padding: 0;
  background-color: var(--ds-bg, #0b0e14); color: var(--ds-cyan, #00d4ff);
  border: 1px solid var(--ds-outline-variant, #3c494e); border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.ds-cart-table .quantity .minus .material-symbols-outlined,
.ds-cart-table .quantity .plus .material-symbols-outlined { font-size: 15px; }
.ds-cart-table .quantity .minus { margin-right: -1px !important; }
.ds-cart-table .quantity .plus { margin-left: -1px !important; }
.ds-cart-table .quantity .minus:hover,
.ds-cart-table .quantity .plus:hover { color: #ffffff; border-color: var(--ds-cyan, #00d4ff); }
.ds-cart-table .quantity input.qty {
  width: 64px; height: 40px; border-left: 0; border-right: 0;
}
@media (max-width: 767px) {
  .ds-shop-wrap form.cart .quantity .minus,
  .ds-shop-wrap form.cart .quantity .plus { width: 40px; min-height: 48px; }
}

/* ---------- Поле телефона с флагом (RU) ---------- */
.ds-phone .ds-phone-flag {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1;
}
.ds-phone .ds-phone-flag img {
  width: 22px; height: 15px; object-fit: cover;
  border-radius: 2px; border: 1px solid rgba(0, 212, 255, 0.25);
}
.ds-form .ds-phone input[type="tel"] { padding-left: 44px !important; }

/* Логотип шапки: у верхней кромки страницы крупный и выходит за нижнюю границу хедера,
   при скролле сжимается до размера, вмещающегося в шапку (48px). */
.ds-logo {
  align-self: flex-start;
  margin-top: 8px;
}
.ds-logo img {
  height: 80px;
  max-width: 280px;
  transition: height .25s ease;
}
body.ds-header-scrolled .ds-logo img {
  height: 48px;
}

/* Мобильная ширина контента: секции с px-margin-lg (64px) на мобильных
   получают отступы как у hero-секции (px-margin-sm = 16px). */
@media (max-width: 767px) {
  section.px-margin-lg,
  header.px-margin-lg,
  main.px-margin-lg,
  .ds-ftr-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Карусель портфолио на главной («Для бизнеса» / «Для себя») */
.ds-carousel-track {
  display: flex; gap: 16px;
  overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 4px;
}
.ds-carousel-track::-webkit-scrollbar { display: none; }
.ds-carousel-card { flex: 0 0 calc((100% - 32px) / 2.75); }
@media (max-width: 1023px) { .ds-carousel-card { flex-basis: calc((100% - 16px) / 1.55); } }
@media (max-width: 767px) { .ds-carousel-card { flex-basis: 82%; } }
.ds-carousel-track { -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.ds-carousel-track.is-dragging { cursor: grabbing; user-select: none; }
.ds-carousel-track.is-dragging .ds-carousel-img { pointer-events: none; }
.ds-carousel { cursor: grab; }
.ds-carousel-img img { -webkit-user-drag: none; user-select: none; }
.ds-carousel-nav { display: flex; gap: 8px; flex-shrink: 0; }
.ds-carousel-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border-radius: 4px; cursor: pointer;
  border: 1px solid rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.07);
  color: var(--ds-cyan, #00D4FF);
  transition: border-color .3s ease, background .3s ease;
}
.ds-carousel-btn:hover:not([disabled]) { border-color: rgba(0, 212, 255, 0.9); background: rgba(0, 212, 255, 0.15); }
.ds-carousel-btn[disabled] { opacity: .3; cursor: default; }
.ds-carousel-img {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: auto; aspect-ratio: 4 / 3; padding: 0; border: 0; border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  background: none; cursor: zoom-in;
}
/* Фото жёстко вписано в 4:3 с обрезкой — карточки карусели одинаковой высоты. */
.ds-carousel-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Карточка кейса (/portfolio/ и «Другие кейсы»): фото — лайтбокс, «Смотреть кейс» — ссылка справа */
.ds-pf-thumb {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; text-align: left;
}
.ds-pf-thumb img { -webkit-user-drag: none; }
.ds-pf-more {
  display: flex; justify-content: flex-end; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 10px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none;
  color: var(--ds-cyan, #00D4FF);
  transition: opacity .3s ease;
}
a.ds-pf-more:hover { opacity: .75; text-decoration: none; }
html:not(.dark) .ds-pf-more { color: #0071c7; }
.ds-carousel-img--ph {
  cursor: default;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.10), rgba(163, 250, 0, 0.05));
}

/* Лайтбокс изображений */
.ds-lb {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 32px;
  background: rgba(4, 7, 12, 0.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ds-lb-img {
  max-width: min(1100px, 92vw); max-height: 84vh; object-fit: contain;
  border: 1px solid rgba(0, 212, 255, 0.45); border-radius: 6px;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.15);
  background: #0B0E14;
}
.ds-lb-close {
  position: absolute; top: 18px; right: 18px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 4px; cursor: pointer;
  border: 1px solid rgba(0, 212, 255, 0.4); background: rgba(11, 14, 20, 0.8);
  color: #00D4FF;
}
.ds-lb-prev,
.ds-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 4px; cursor: pointer;
  border: 1px solid rgba(0, 212, 255, 0.4); background: rgba(11, 14, 20, 0.8);
  color: #00D4FF;
  transition: border-color .3s ease, background .3s ease;
}
.ds-lb-prev { left: 18px; }
.ds-lb-next { right: 18px; }
.ds-lb-prev:hover, .ds-lb-next:hover { border-color: #00D4FF; background: rgba(0, 212, 255, 0.12); }
.ds-lb-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-family: inherit; font-size: 12px; letter-spacing: .12em;
  color: rgba(225, 226, 235, 0.75); background: rgba(11, 14, 20, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.25); border-radius: 4px;
  padding: 4px 10px;
}
@media (max-width: 767px) {
  .ds-carousel-btn { width: 34px; height: 34px; }
  .ds-carousel-btn .material-symbols-outlined { font-size: 20px; }
  .ds-lb { padding: 16px; }
  .ds-lb-prev, .ds-lb-next { width: 38px; height: 38px; }
  .ds-lb-prev { left: 8px; }
  .ds-lb-next { right: 8px; }
}

/* ---------- Единый компактный стиль всех форм (как на страницах материалов):
   дропзона в сетке рядом с E-mail, 3 яруса слева; textarea компактная ---------- */
.ds-form .grid > .ds-dropzone {
  display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center;
  column-gap: 8px; row-gap: 4px; text-align: left;
  margin-top: 0 !important; padding: 8px 12px !important;
}
.ds-form .grid > .ds-dropzone > p { margin: 0 !important; }
.ds-form .grid > .ds-dropzone > p.mt-3 { order: 1; flex: 1 0 100%; font-size: 11px !important; line-height: 1.3; }
.ds-form .grid > .ds-dropzone > .material-symbols-outlined { order: 2; font-size: 18px !important; }
.ds-form .grid > .ds-dropzone > .ds-btn { order: 3; margin: 0 !important; padding: 5px 12px !important; font-size: 10px !important; }
.ds-form .grid > .ds-dropzone > p.mt-1 { order: 4; flex: 1 0 100%; font-size: 9px !important; }
.ds-form .grid > .ds-dropzone > p.ds-file-info { order: 5; flex: 1 0 100%; }
.ds-form textarea { height: 76px; min-height: 0; }
.ds-form > .mt-6 { margin-top: 16px !important; }

/* ============================================================
   Светлая тема (html:not(.dark)): палитра, отключение неона,
   scrollbar / autofill / select / toasts / модалка
   ============================================================ */
html:not(.dark) {
  color-scheme: light;
  --ds-cyan: #0071e3;
  --ds-cyan-light: #0071e3;
  --ds-cyan-hover: #005bb8;
  --ds-green: #3a8c00;
  --ds-green-dim: #4f9900;
  --ds-orange: #c93400;
  --ds-bg: #f5f5f7;
  --ds-surface: #ffffff;
  --ds-surface-glass: rgba(255, 255, 255, 0.78);
  --ds-carbon: #e8e8ec;
  --ds-on-surface: #1d1d1f;
  --ds-variant: #424245;
  --ds-outline: #86868b;
  --ds-outline-variant: #d2d2d7;
  --ds-border-cyan: rgba(0, 100, 180, 0.3);
  --ds-success: #2e7d32;
  --ds-on-cyan: #ffffff;
  --ds-on-cyan-container: #ffffff;
  --ds-secondary: #1d1d1f;
  --ds-error: #b3261e;
  --ds-container: #ececef;
  --ds-container-low: #f2f2f4;
  --ds-container-high: #e4e4e9;
  --ds-container-highest: #dcdce2;
  --ds-surface-bright: #ffffff;
  --ds-surface-rgb: 255 255 255;
  --ds-bg-rgb: 245 245 247;
  --ds-carbon-rgb: 232 232 236;
  --ds-cyan-rgb: 0 113 227;
  --ds-cyan-light-rgb: 0 113 227;
  --ds-outline-variant-rgb: 210 210 215;
  --ds-border-cyan-rgb: 0 100 180;
  --ds-container-high-rgb: 228 228 233;
}

/* --- Неон и glow отключены в светлой теме --- */
html:not(.dark) [class*="shadow-["],
html:not(.dark) .neon-bloom, html:not(.dark) .neon-bloom:hover,
html:not(.dark) .neon-bloom-green, html:not(.dark) .neon-glow,
html:not(.dark) .glow-cyan, html:not(.dark) .hover-glow-cyan:hover,
html:not(.dark) .hover-neon-bloom:hover, html:not(.dark) .neon-bloom-active,
html:not(.dark) .neon-bloom-hover:hover, html:not(.dark) .neon-bloom-primary,
html:not(.dark) .input-glow:focus,
html:not(.dark) .ds-btn-primary, html:not(.dark) .ds-btn-primary:hover,
html:not(.dark) .ds-btn-outline:hover, html:not(.dark) .ds-btn-green:hover,
html:not(.dark) .ds-modal,
html:not(.dark) .page-numbers:hover, html:not(.dark) .nav-links a:hover,
html:not(.dark) .ds-ftr-dot,
html:not(.dark) details.ds-glossary[open],
html:not(.dark) .woocommerce a.button:hover, html:not(.dark) .woocommerce button.button:hover,
html:not(.dark) .woocommerce input.button:hover,
html:not(.dark) .ds-shop-wrap form.cart .single_add_to_cart_button:hover,
html:not(.dark) .ds-shop-wrap form.cart .quantity .minus:hover,
html:not(.dark) .ds-shop-wrap form.cart .quantity .plus:hover { box-shadow: none; }
html:not(.dark) .text-glow, html:not(.dark) .text-glow-green,
html:not(.dark) .ds-ftr-cta:hover .ds-ftr-cta-title { text-shadow: none; }
html:not(.dark) .hover-glow-cyan:hover { border-color: var(--ds-cyan); }
html:not(.dark) .input-glow:focus { border-color: var(--ds-cyan); }

/* --- Хедер и стеклянные панели --- */
html:not(.dark) nav.bg-surface-glass {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--ds-outline-variant);
}
html:not(.dark) .glass-panel,
html:not(.dark) .glass-panel-neutral {
  background: var(--ds-surface-glass);
  border-color: var(--ds-outline-variant);
}
html:not(.dark) .tech-border { border-color: var(--ds-border-cyan); }
html:not(.dark) .ds-chip-cyan { border-color: var(--ds-border-cyan); }
html:not(.dark) .ds-chip-green { border-color: rgba(58, 140, 0, 0.4); }

/* --- Микросетки: убраны в светлой теме --- */
html:not(.dark) .micro-grid,
html:not(.dark) .micro-grid-cyan,
html:not(.dark) .micro-grid-cyan-bright,
html:not(.dark) .micro-grid-white-4,
html:not(.dark) .bg-micro-grid,
html:not(.dark) .bg-micro-grid-gray { background-image: none; }

/* --- Текст на циановых/зелёных кнопках: белый --- */
html:not(.dark) .text-black,
html:not(.dark) .text-\[\#000000\] { color: #ffffff; }
html:not(.dark) .ds-btn-primary { color: #ffffff; }
html:not(.dark) .ds-btn-primary:hover { background-color: var(--ds-cyan-hover); color: #ffffff; }
html:not(.dark) .ds-btn-green { color: #ffffff; }
html:not(.dark) .ds-btn-outline { background: var(--ds-surface-glass); }
html:not(.dark) .page-numbers.current, html:not(.dark) .nav-links .current { color: #ffffff; }
html:not(.dark) .woocommerce a.button, html:not(.dark) .woocommerce button.button,
html:not(.dark) .woocommerce input.button, html:not(.dark) .woocommerce a.button.alt,
html:not(.dark) .woocommerce button.button.alt,
html:not(.dark) .woocommerce #respond input#submit { color: #ffffff !important; }
html:not(.dark) .select2-container--default .select2-results__option--highlighted[aria-selected] { color: #ffffff !important; }
html:not(.dark) .ds-shop-wrap form.cart .single_add_to_cart_button { color: #ffffff !important; }
html:not(.dark) input[type="checkbox"]:checked::after { border-color: #ffffff; }

/* --- Scrollbar / autofill / select / selection --- */
html:not(.dark) ::-webkit-scrollbar-track { background: #f5f5f7; }
html:not(.dark) ::-webkit-scrollbar-thumb { background: #c7c9ce; }
html:not(.dark) ::-webkit-scrollbar-thumb:hover { background: #0071e3; }
html:not(.dark) input:-webkit-autofill,
html:not(.dark) input:-webkit-autofill:hover,
html:not(.dark) input:-webkit-autofill:focus,
html:not(.dark) input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #f5f5f7 inset !important;
  -webkit-text-fill-color: #0071e3 !important;
}
html:not(.dark) select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230071e3' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.5 5 8.5l1.4-1.4L12 12.7l5.6-5.6L19 8.5z'/%3E%3C/svg%3E");
}
html:not(.dark) select option { background-color: #ffffff; }
html:not(.dark) ::selection { background: rgba(0, 113, 227, 0.25); color: #fff; }
html:not(.dark) input:focus, html:not(.dark) select:focus, html:not(.dark) textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}
html:not(.dark) input[type="range"]::-webkit-slider-thumb,
html:not(.dark) input[type="range"]::-moz-range-thumb,
html:not(.dark) input[type="range"].range-acid::-webkit-slider-thumb,
html:not(.dark) input[type="range"].range-acid::-moz-range-thumb { box-shadow: none; }

/* --- Toasts / модалка --- */
html:not(.dark) .ds-toast {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
html:not(.dark) .ds-modal-backdrop { background: rgba(0, 0, 0, 0.4); }
html:not(.dark) .ds-modal { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); }

/* --- Crosshair / HUD / карусель: циановые линии → синие --- */
html:not(.dark) .crosshair-corners::before,
html:not(.dark) .crosshair-corners::after,
html:not(.dark) .crosshair-corners .corner-btm::before,
html:not(.dark) .crosshair-corners .corner-btm::after,
html:not(.dark) .crosshair-tl::before, html:not(.dark) .crosshair-tr::after,
html:not(.dark) .crosshair-bl::before, html:not(.dark) .crosshair-br::after,
html:not(.dark) .crosshair-lines-tl::before, html:not(.dark) .crosshair-lines-tl::after,
html:not(.dark) .crosshair-lines-br::before, html:not(.dark) .crosshair-lines-br::after,
html:not(.dark) .hud-border,
html:not(.dark) .hud-corner-tl::after, html:not(.dark) .hud-corner-tr::after,
html:not(.dark) .hud-corner-bl::after, html:not(.dark) .hud-corner-br::after { border-color: var(--ds-cyan); }
html:not(.dark) .crosshair-lines-tl::before, html:not(.dark) .crosshair-lines-tl::after,
html:not(.dark) .crosshair-lines-br::before, html:not(.dark) .crosshair-lines-br::after,
html:not(.dark) .hud-border::before, html:not(.dark) .hud-border::after { background-color: var(--ds-cyan); }
html:not(.dark) .ds-carousel-btn { border-color: rgba(0, 113, 227, 0.4); background: rgba(0, 113, 227, 0.06); }
html:not(.dark) .ds-carousel-btn:hover:not([disabled]) { border-color: rgba(0, 113, 227, 0.9); background: rgba(0, 113, 227, 0.12); }
html:not(.dark) .ds-carousel-img { border-bottom-color: rgba(0, 113, 227, 0.2); }
html:not(.dark) .ds-carousel-img--ph { background: linear-gradient(135deg, rgba(0, 113, 227, 0.08),
rgba(58, 140, 0, 0.06)); }

/* --- Prose / glossary --- */
html:not(.dark) .ds-prose a { border-bottom-color: var(--ds-border-cyan); }
html:not(.dark) details.ds-glossary[open] { border-color: var(--ds-border-cyan); }

/* --- Карта на странице контактов: multiply вместо screen --- */
html:not(.dark) .ds-map-embed { mix-blend-mode: multiply; }

/* ============================================================
   Мобильный бургер + выезжающее меню («Kinetic Precision»)
   ============================================================ */

/* --- Кнопка-гамбургер: три линии морфятся в крестик --- */
.ds-burger {
	--ds-burger-c: var(--ds-on-surface, #e1e2eb);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(0, 212, 255, 0.22);
	border-radius: 6px;
	background: rgba(0, 212, 255, 0.05);
	color: var(--ds-burger-c);
	cursor: pointer;
	transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}
html:not(.dark) .ds-burger {
	border-color: rgba(0, 113, 227, 0.25);
	background: rgba(0, 113, 227, 0.05);
}
.ds-burger:hover { border-color: rgba(0, 212, 255, 0.35); background: rgba(0, 212, 255, 0.06); }
.ds-burger:active { transform: scale(0.9); }
.ds-burger:focus-visible { outline: 2px solid var(--ds-cyan, #00d4ff); outline-offset: 2px; }

.ds-burger-box { position: relative; display: block; width: 24px; height: 18px; }
.ds-burger-line {
	position: absolute;
	left: 0;
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: var(--ds-burger-c);
	transition: transform 0.38s cubic-bezier(0.68, -0.45, 0.27, 1.25), opacity 0.22s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.ds-burger-line-1 { top: 0; }
.ds-burger-line-2 { top: 8px; }
.ds-burger-line-3 { top: 16px; }

body.ds-nav-open .ds-burger { --ds-burger-c: var(--ds-cyan, #00d4ff); }
body.ds-nav-open .ds-burger-line { box-shadow: 0 0 10px rgba(0, 212, 255, 0.45); }
body.ds-nav-open .ds-burger-line-1 { transform: translateY(8px) rotate(45deg); }
body.ds-nav-open .ds-burger-line-2 { transform: translateX(12px); opacity: 0; }
body.ds-nav-open .ds-burger-line-3 { transform: translateY(-8px) rotate(-45deg); }

/* --- Затемняющая подложка под меню --- */
.ds-nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: 45;
	background: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.05), transparent 55%), rgba(4, 6, 10, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
	cursor: pointer;
}
body.ds-nav-open .ds-nav-backdrop { opacity: 1; visibility: visible; }

/* --- Панель: стеклянная, въезжает сверху с каскадом пунктов --- */
.ds-nav-panel {
	position: fixed;
	top: 64px;
	left: 0;
	right: 0;
	z-index: 46;
	max-height: calc(100dvh - 64px);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.75rem 1.5rem 2.5rem;
	background: rgba(13, 15, 21, 0.88);
	-webkit-backdrop-filter: blur(26px) saturate(150%);
	backdrop-filter: blur(26px) saturate(150%);
	border-bottom: 1px solid var(--ds-border-cyan);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px -12px rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-18px);
	transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s ease;
	pointer-events: none;
}
body.ds-nav-open .ds-nav-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* Светлая тема: панель мобильного меню — светлая, стеклянная */
html:not(.dark) .ds-nav-panel {
	background: rgba(246, 247, 250, 0.95);
	-webkit-backdrop-filter: blur(26px) saturate(150%);
	backdrop-filter: blur(26px) saturate(150%);
	border-bottom-color: var(--ds-border-cyan);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 24px 48px -12px rgba(15, 25, 40, 0.22);
}
/* Светлая тема: текст пунктов меню — тёмный (токены темы не переключаются) */
html:not(.dark) .ds-nav-panel ul li a,
html:not(.dark) .ds-nav-panel > a {
	color: #20232b !important;
}
html:not(.dark) .ds-nav-panel ul li a:hover,
html:not(.dark) .ds-nav-panel > a:hover {
	color: #0071c7 !important;
}
html:not(.dark) .ds-nav-panel ul li a::before {
	background: #0071c7;
	box-shadow: 0 0 8px rgba(0, 113, 199, 0.45);
}

/* Каскадное появление пунктов меню */
.ds-nav-panel ul li,
.ds-nav-panel > a,
.ds-nav-panel > button {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
body.ds-nav-open .ds-nav-panel ul li,
body.ds-nav-open .ds-nav-panel > a,
body.ds-nav-open .ds-nav-panel > button {
	opacity: 1;
	transform: none;
}
body.ds-nav-open .ds-nav-panel ul li:nth-child(1) { transition-delay: 0.05s; }
body.ds-nav-open .ds-nav-panel ul li:nth-child(2) { transition-delay: 0.1s; }
body.ds-nav-open .ds-nav-panel ul li:nth-child(3) { transition-delay: 0.15s; }
body.ds-nav-open .ds-nav-panel ul li:nth-child(4) { transition-delay: 0.2s; }
body.ds-nav-open .ds-nav-panel ul li:nth-child(5) { transition-delay: 0.25s; }
body.ds-nav-open .ds-nav-panel ul li:nth-child(6) { transition-delay: 0.3s; }
body.ds-nav-open .ds-nav-panel ul li:nth-child(7) { transition-delay: 0.35s; }
body.ds-nav-open .ds-nav-panel ul li:nth-child(8) { transition-delay: 0.4s; }
body.ds-nav-open .ds-nav-panel > a:nth-of-type(1) { transition-delay: 0.05s; }
body.ds-nav-open .ds-nav-panel > a:nth-of-type(2) { transition-delay: 0.1s; }
body.ds-nav-open .ds-nav-panel > a:nth-of-type(3) { transition-delay: 0.15s; }
body.ds-nav-open .ds-nav-panel > a:nth-of-type(4) { transition-delay: 0.2s; }
body.ds-nav-open .ds-nav-panel > a:nth-of-type(5) { transition-delay: 0.25s; }
body.ds-nav-open .ds-nav-panel > a:nth-of-type(6) { transition-delay: 0.3s; }
body.ds-nav-open .ds-nav-panel > button { transition-delay: 0.48s; }

/* Пункты меню: лёгкий сдвиг и неоновая линия слева при наведении */
.ds-nav-panel ul li { transition: transform 0.25s ease, opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.ds-nav-panel ul li:hover { transform: translateX(6px); }
.ds-nav-panel ul li a { position: relative; }
.ds-nav-panel ul li a::before {
	content: "";
	position: absolute;
	left: -14px;
	top: 50%;
	width: 3px;
	height: 0;
	border-radius: 2px;
	background: var(--ds-cyan, #00d4ff);
	box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
	transform: translateY(-50%);
	transition: height 0.25s ease;
}
.ds-nav-panel ul li a:hover::before { height: 70%; }

/* Блокировка прокрутки страницы под открытым меню (только мобильные) */
@media (max-width: 767.98px) {
	body.ds-nav-open { overflow: hidden; }
}

/* Мобильная шапка: логотип к левому краю, бургер/переключатель — к правому */
@media (max-width: 767.98px) {
	.ds-header-inner { padding-left: 14px; padding-right: 14px; }
}

/* Бургер и панель живут только на мобильных (защита от каскада поверх md:hidden) */
@media (min-width: 768px) {
	.ds-burger,
	.ds-nav-panel { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.ds-burger,
	.ds-burger-line,
	.ds-nav-panel,
	.ds-nav-panel ul li,
	.ds-nav-panel > a,
	.ds-nav-panel > button,
	.ds-nav-backdrop { transition: none !important; }
}

/* --- Блог, виджет «Вопрос инженеру»: каждое поле на отдельной строке --- */
.ds-blog-question .grid {
	grid-template-columns: 1fr !important;
}
.ds-blog-question .grid > div {
	grid-column: auto !important;
}

/* --- Соцсети из «Настроек темы»: инлайн-SVG и фоллбэк-картинка --- */
svg.ds-social-svg {
	display: block;
	width: 18px;
	height: 18px;
}
svg.ds-social-svg * {
	fill: currentColor;
}
.ds-ftr-social img.ds-social-img {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

/* --- Именные иконки из набора SVG (замена шрифтовых Material Symbols) --- */
svg.ds-svg-ic {
	width: 1em;
	height: 1em;
	display: inline-block;
	flex: none;
	vertical-align: -0.125em;
}

/* ============================================================
   Плавающий виджет соцсетей (Neon HUD)
   Мобильный: горизонтальная «пилюля» внизу по центру.
   Десктоп (>=768px): вертикальная неон-рейка у правого края.
   ============================================================ */
.ds-soc-widget {
	position: fixed;
	left: 50%;
	bottom: calc(14px + env(safe-area-inset-bottom));
	transform: translateX(-50%);
	z-index: 44; /* ниже мобильного меню (45/46) и модалок (9990) */
	pointer-events: none;
}
.ds-soc-widget__rail {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 6px;
	padding: 8px;
	background: var(--ds-surface-glass);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(0, 212, 255, 0.35);
	box-shadow: 0 0 18px rgba(0, 212, 255, 0.18), inset 0 0 12px rgba(0, 212, 255, 0.05);
	animation: ds-soc-breathe 4s ease-in-out infinite;
	border-radius: 6px;
}
.ds-soc-w {
	position: relative;
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 6px;
	color: var(--ds-on-surface);
	background: rgba(26, 26, 26, 0.25);
	border: 1px solid rgba(0, 212, 255, 0.25);
	text-decoration: none;
	transition: color .25s, border-color .25s, box-shadow .25s, transform .25s, background .25s;
	animation: ds-soc-in .5s cubic-bezier(.2, .7, .3, 1.2) both;
}
.ds-soc-w:nth-child(1) { animation-delay: .05s; }
.ds-soc-w:nth-child(2) { animation-delay: .12s; }
.ds-soc-w:nth-child(3) { animation-delay: .19s; }
.ds-soc-w:nth-child(4) { animation-delay: .26s; }
.ds-soc-w:nth-child(n+5) { animation-delay: .33s; }
.ds-soc-w svg.ds-soc-ic { width: 20px; height: 20px; }
/* Кнопка звонка в виджете — только в мобильном виде (нижняя «пилюля»), на десктопе скрыта. */
.ds-soc-call { display: none; }
.ds-soc-call .ds-soc-call-ic { font-size: 20px; line-height: 1; color: var(--ds-cyan, #00D4FF); }
@media (max-width: 767px) {
	.ds-soc-call { display: inline-flex; align-items: center; justify-content: center; }
}
.ds-soc-w:hover {
	color: var(--ds-cyan);
	border-color: var(--ds-cyan);
	background: rgba(0, 212, 255, 0.08);
	box-shadow: 0 0 16px rgba(0, 212, 255, 0.55);
	transform: scale(1.08);
}
.ds-soc-w:active { transform: scale(.95); }
.ds-soc-w:focus-visible { outline: 2px solid var(--ds-cyan); outline-offset: 2px; }

@keyframes ds-soc-in {
	from { opacity: 0; transform: translateY(14px) scale(.9); }
	to { opacity: 1; transform: none; }
}
@keyframes ds-soc-breathe {
	0%, 100% { box-shadow: 0 0 14px rgba(0, 212, 255, 0.14), inset 0 0 10px rgba(0, 212, 255, 0.04); }
	50% { box-shadow: 0 0 26px rgba(0, 212, 255, 0.3), inset 0 0 16px rgba(0, 212, 255, 0.08); }
}

/* Десктоп: вертикальная рейка справа по центру */
@media (min-width: 768px) {
	.ds-soc-widget {
		left: auto;
		right: 18px;
		top: 50%;
		bottom: auto;
		transform: translateY(-50%);
	}
	.ds-soc-widget__rail {
		flex-direction: column;
		gap: 8px;
		padding: 10px 8px;
	}
	.ds-soc-w {
		width: 46px;
		height: 46px;
	}
	.ds-soc-w svg.ds-soc-ic { width: 22px; height: 22px; }
	.ds-soc-w:hover { transform: translateX(-3px) scale(1.06); }
	/* Блик, пробегающий по кнопке */
	.ds-soc-w::before {
		content: '';
		position: absolute;
		inset: 0;
		border-radius: inherit;
		overflow: hidden;
		pointer-events: none;
		background: linear-gradient(120deg, transparent 30%, rgba(168, 232, 255, 0.35) 50%, transparent 70%);
		transform: translateX(-120%);
		transition: transform .6s ease;
	}
	.ds-soc-w:hover::before { transform: translateX(120%); }
	/* Тултип с названием слева */
	.ds-soc-w::after {
		content: attr(data-label);
		position: absolute;
		top: 50%;
		right: calc(100% + 12px);
		transform: translateY(-50%) translateX(6px);
		padding: 6px 10px;
		white-space: nowrap;
		font-size: 10px;
		font-weight: 500;
		letter-spacing: .18em;
		text-transform: uppercase;
		color: var(--ds-on-surface);
		background: var(--ds-surface-glass);
		border: 1px solid rgba(0, 212, 255, 0.4);
		border-radius: 6px;
		box-shadow: 0 0 14px rgba(0, 212, 255, 0.2);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.ds-soc-w:hover::after {
		opacity: 1;
		visibility: visible;
		transform: translateY(-50%) translateX(0);
	}
}

/* Светлая тема: мягче свечение */
html:not(.dark) .ds-soc-widget__rail {
	border-color: rgba(0, 113, 227, 0.3);
	box-shadow: 0 0 14px rgba(0, 113, 227, 0.12);
	animation: none;
}
html:not(.dark) .ds-soc-w {
	border-color: rgba(0, 113, 227, 0.25);
	background: rgba(255, 255, 255, 0.5);
}
html:not(.dark) .ds-soc-w:hover {
	box-shadow: 0 0 12px rgba(0, 113, 227, 0.25);
	background: rgba(0, 113, 227, 0.06);
}
html:not(.dark) .ds-soc-w::after { border-color: rgba(0, 113, 227, 0.35); }

/* Доступность и печать */
@media (prefers-reduced-motion: reduce) {
	.ds-soc-widget__rail,
	.ds-soc-w { animation: none !important; }
	.ds-soc-w,
	.ds-soc-w::after,
	.ds-soc-w::before { transition: none !important; }
}
@media print {
	.ds-soc-widget { display: none !important; }
}

/* ============================================================
   Кнопка «Вверх» (Neon HUD)
   ============================================================ */
.ds-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 44; /* ниже мобильного меню (45/46) и модалок (9990) */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(0, 212, 255, 0.35);
	border-radius: 6px;
	background: var(--ds-surface-glass);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	color: var(--ds-on-surface);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(0.9);
	transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .3, 1.2), visibility .3s,
		box-shadow .3s ease, border-color .3s ease, color .3s ease, background-color .3s ease;
	box-shadow: 0 0 18px rgba(0, 212, 255, 0.18), inset 0 0 12px rgba(0, 212, 255, 0.05);
	-webkit-tap-highlight-color: transparent;
}
.ds-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	animation: ds-top-breathe 3.6s ease-in-out infinite;
}
/* Скрытие у нижней границы (перекрытие нижнего подвала) */
.ds-to-top.is-off,
.ds-soc-widget.is-off {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
.ds-to-top.is-off { transform: translateY(14px) !important; }
.ds-soc-widget { transition: opacity .3s ease, visibility .3s ease; }
.ds-to-top-ic {
	width: 24px;
	height: 24px;
	display: block;
	transition: transform .3s cubic-bezier(.2, .7, .3, 1.2);
}
.ds-to-top:hover {
	color: var(--ds-cyan);
	border-color: var(--ds-cyan);
	background: rgba(0, 212, 255, 0.07);
	box-shadow: 0 0 22px rgba(0, 212, 255, 0.5);
}
.ds-to-top:hover .ds-to-top-ic { transform: translateY(-3px); }
.ds-to-top:active { transform: scale(0.92); }
.ds-to-top:focus-visible { outline: 2px solid var(--ds-cyan); outline-offset: 2px; }

/* Блик по кнопке + пульсирующее кольцо-«волна» */
.ds-to-top::before,
.ds-to-top::after {
	content: '';
	position: absolute;
	pointer-events: none;
	border-radius: inherit;
}
.ds-to-top::before {
	inset: 0;
	overflow: hidden;
	background: linear-gradient(120deg, transparent 30%, rgba(168, 232, 255, 0.35) 50%, transparent 70%);
	transform: translateX(-130%);
	transition: transform .6s ease;
}
.ds-to-top:hover::before { transform: translateX(130%); }
.ds-to-top::after {
	inset: -6px;
	border: 1px solid rgba(0, 212, 255, 0.45);
	animation: ds-top-ring 2.2s ease-out infinite;
}
.ds-to-top:active::after { animation: none; opacity: 0; }

@keyframes ds-top-breathe {
	0%, 100% { box-shadow: 0 0 14px rgba(0, 212, 255, 0.16), inset 0 0 10px rgba(0, 212, 255, 0.04); }
	50% { box-shadow: 0 0 26px rgba(0, 212, 255, 0.34), inset 0 0 16px rgba(0, 212, 255, 0.08); }
}
@keyframes ds-top-ring {
	0% { opacity: 0.7; transform: scale(0.9); }
	70% { opacity: 0; transform: scale(1.35); }
	100% { opacity: 0; transform: scale(1.35); }
}

/* Светлая тема: мягче */
html:not(.dark) .ds-to-top {
	border-color: rgba(0, 113, 227, 0.3);
	box-shadow: 0 0 14px rgba(0, 113, 227, 0.12);
	animation: none;
}
html:not(.dark) .ds-to-top.is-visible { animation: none; }
html:not(.dark) .ds-to-top:hover {
	box-shadow: 0 0 14px rgba(0, 113, 227, 0.28);
	background: rgba(0, 113, 227, 0.06);
}
html:not(.dark) .ds-to-top::after { border-color: rgba(0, 113, 227, 0.4); }

/* Мобильный: компактнее и выше, чтобы не мешать «пилюле» соцсетей внизу */
@media (max-width: 767.98px) {
	.ds-to-top {
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		width: 44px;
		height: 44px;
	}
}

/* Доступность и печать */
@media (prefers-reduced-motion: reduce) {
	.ds-to-top,
	.ds-to-top::before,
	.ds-to-top::after,
	.ds-to-top .ds-to-top-ic { animation: none !important; transition: none !important; }
}
@media print {
	.ds-to-top { display: none !important; }
}
