/* --- Загальні стилі --- */

:root {
  --bg: #040406;
  --text: #a0f0f0;
  --accent: #00ffff;
  --accent-2: #00bfff;
  --muted: #1f1f2a;
  --muted-2: rgba(31, 31, 42, 0.7);
  --glass: rgba(0, 191, 255, 0.1);
  --glass-strong: rgba(0, 191, 255, 0.15);
  --font-text: 'IBM Plex Sans', sans-serif;
  --font-title: 'Exo 2', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --max-width: 900px;
  --page-max-width: 1400px;
  --page-padding-x: 50px;
  --page-text-max-width: 800px
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: auto;
  /* Убрано 100vh чтобы не было пустого места */
}

* {
  transition: color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease,
    filter 0.3s ease;
}

/* Для всего сайта Firefo */
* {
  scrollbar-width: thin;
  /* auto | thin | none */
  scrollbar-color: #00ffff #111;
  /* thumb track */
}

/* header basics (страницы используют header) */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Canvas фон - стили перенесены в bg-sphere.css */

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.15) 1px,
      transparent 1px,
      transparent 2px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.16;
}

/* Canvas для линий с точками - на весь экран */
canvas#bgCanvasLines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
  visibility: visible;
  opacity: 0.6;
}

body:not(.home-page) #bgCanvas {
  display: none;
}

/* ==================== ЛОГОТИП ==================== */

.logo {
  position: fixed;
  top: 15px;
  left: 10px;
  display: flex;
  align-items: center;
  font-family: var(--font-title, Arial);
  font-size: 28px;
  color: #00ffff;
  text-decoration: none;
  z-index: 9999;
}

/* Анимация «ползущего жука» */
.logo-bug {
  width: 36px;
  height: 36px;
  margin-right: 8px;
  position: relative;
  animation: 2s ease-in-out infinite crawl;
  filter: drop-shadow(0 0 8px #00ffff) drop-shadow(0 0 4px rgba(0, 255, 255, .5));
}

@keyframes crawl {

  0%,
  100% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-5px) rotate(10deg);
  }

  50% {
    transform: translateY(0) rotate(-10deg);
  }

  75% {
    transform: translateY(5px) rotate(5deg);
  }
}

/* Текст логотипа — фиксированный цвет, мягкое свечение */
.logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: #00ffff;
  text-shadow: 0 0 15px #00ffff, 0 0 30px rgba(0, 255, 255, .6);
  animation: 3s ease-in-out infinite softGlow;
  will-change: filter, text-shadow;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  display: inline-block;
}

@keyframes softGlow {

  0%,
  100% {
    text-shadow: 0 0 15px #00ffff, 0 0 30px rgba(0, 255, 255, .6);
    filter: brightness(1);
  }

  50% {
    text-shadow: 0 0 35px #00ffff, 0 0 70px rgba(0, 255, 255, .8);
    filter: brightness(1.25);
  }
}

.bug {
  width: 60px;
  position: absolute;
  bottom: 0;
  left: 0;
  filter: drop-shadow(0 0 15px #00ffff);
}

/* конец лого */


main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 60px;
  /* Увеличен padding-bottom для footer */
  box-sizing: border-box;
}

main p {
  max-width: var(--page-text-max-width);
  margin: 0 auto 20px auto;
  line-height: 1.6;
  text-align: center;
}

.contact-page .working-hours li {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.18);
  background: rgba(0, 191, 255, 0.06);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.25);
  box-sizing: border-box;
}

/* Shared slider UI */
.site-slider-status {
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 191, 255, 0.18);
}

.site-slider-progress {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 191, 255, 0.82), rgba(0, 255, 255, 1));
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.18);
}

.site-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.site-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(140, 240, 245, 0.28);
  cursor: pointer;
}

.site-slider-dot.is-active {
  background: #8df8ff;
  box-shadow: 0 0 10px rgba(141, 248, 255, 0.68);
}

.site-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 255, 0.35);
  background: rgba(0, 255, 255, 0.12);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.18);
  cursor: pointer;
}

.site-slider-nav:hover:not(:disabled):not([aria-disabled="true"]) {
  background: rgba(0, 255, 255, 0.18);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.26);
  transform: scale(1.06);
}

.site-slider-nav:disabled,
.site-slider-nav[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.site-slider-arrow {
  position: relative;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: transparent !important;
  text-shadow: none;
}

.site-slider-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.38));
  transform-origin: center;
}

.site-slider-arrow.swiper-button-prev::before,
.site-slider-arrow.finds-prev::before,
.site-slider-arrow.carousel-prev::before {
  transform: translate(-42%, -50%) rotate(-135deg);
}

.site-slider-arrow.swiper-button-next::before,
.site-slider-arrow.finds-next::before,
.site-slider-arrow.carousel-next::before {
  transform: translate(-58%, -50%) rotate(45deg);
}

/* Стили скролла для всего сайта WebKit (Chrome, Edge, Safari)*/
::-webkit-scrollbar {
  width: 12px;
  /* ширина вертикального скролла */
  height: 12px;
  /* высота горизонтального скролла */
}

::-webkit-scrollbar-track {
  background: #111;
  /* цвет дорожки скролла */
}

::-webkit-scrollbar-thumb {
  background-color: #00ffff;
  /* цвет ползунка */
  border-radius: 6px;
  /* скругление ползунка */
  border: 3px solid #111;
  /* отступ вокруг ползунка */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #00cccc;
  /* цвет при наведении */
}

/* Навигация */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* background: rgba(15,15,21,0.85); */
  display: flex;
  justify-content: center;
  gap: 30px;
  font-weight: bold;
  transition: background-color 0.3s;
  z-index: 9999;
  padding-top: 45px;
  isolation: isolate;
}

nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -18px 0;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 10px;
  transition: 0.3s;
  margin: 0 10px;
}

/* Hover эффект для nav */
nav a:hover {
  color: var(--accent);
  /* background: var(--muted);*/
  transform: scale(1.1);
  box-shadow:
    0 0 15px var(--accent),
    0 0 25px var(--accent-2);
  transition: var(--transition-default);
  border-radius: 10px;
  cursor: pointer;
}

/* Активный пункт меню */
nav a[aria-current="page"],
nav a.active {
  font-weight: bold;
  color: var(--accent);
  /*background: var(--muted);*/
  box-shadow:
    0 0 15px var(--accent),
    0 0 25px var(--accent-2);
  cursor: default;
  pointer-events: none;
}

/* Фон по умолчанию прозрачный */
nav.transparent {
  background-color: rgba(15, 15, 21, 0);
  /* полностью прозрачный */
}

/* Фон после скролла */
nav.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 90px;
  padding-bottom: 10px;
}

nav.scrolled::before {
  opacity: 0;
}

/* Списки */
.card-list {
  list-style: none;
  padding-left: 0;
  margin: 20px auto;
  max-width: 800px;
}

.card-list li {
  background: var(--glass);
  position: relative;
  padding: 12px 15px 12px 40px;
  margin-bottom: 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 1.05em;
  line-height: 1.5;
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.42);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  cursor: default;
  user-select: none;
  border: 1px solid #00ffff29;
}

.card-list li:last-child {
  margin-bottom: 0;
}

.card-list li::before {
  content: "✔";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: bold;
  text-shadow: 0 0 8px var(--accent);
}

.card-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Заголовки */
h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 700;
}

code,
pre {
  font-family: var(--font-mono);
}

/* Заголовки */
h1,
h2,
h3,
h4 {
  color: var(--accent);
  text-align: center;
  text-shadow: 0 0 15px var(--accent);
  margin-bottom: 20px;
}

h1 {
  font-size: 2em;
  text-shadow:
    0 0 20px var(--accent),
    0 0 20px var(--accent),
    0 0 0px var(--accent),
    0 0 0px var(--accent-2),
    0 0 0px var(--accent-2);
  transform: translateY(-30px);
  animation: dropFade 2s forwards;
  margin-top: 40px;
}

/* --- keyframes для h1 (dropFade) --- */
@keyframes dropFade {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* уважение к prefers-reduced-motion для всей страницы */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.3em;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 5px 0;
  background: linear-gradient(180deg, #0d1b2a 0%, #00111a 100%);
  color: #a3d2f2;
  font-family: var(--font-code), var(--font-mono);
  z-index: 9999999;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

footer a {
  color: #a3d2f2;
  text-decoration: none;
  margin: 0 6px;
  transition: var(--transition-default);
  display: inline-flex;
  align-items: center;
}

footer a:hover {
  text-shadow: 0 0 5px #a3d2f2, 0 0 10px #81b3d2;
}

footer a img {
  height: 15px;
  margin-right: 6px;
  vertical-align: middle;
}

footer a span {
  font-weight: bold;
  font-size: 0.95rem;
  color: inherit;
}

/* Общие правила для кнопки под контентом*/
#Button_pages {
  display: inline-block;
  font-weight: bold;
  font-size: 0.9em;
  padding: 14px 30px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  border: 2px solid var(--accent);
  color: var(--accent);
  /*background: linear-gradient(145deg, rgba(0,255,255,0.1), rgba(0,255,255,0.2));*/
  box-shadow:
    0 0 10px rgba(0, 255, 255, 0.5),
    0 0 20px rgba(0, 255, 255, 0.3),
    inset 0 0 6px rgba(0, 255, 255, 0.2);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  margin: 30px 0;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(5px) scale(0.95);
}

/* Показать кнопку */
#Button_pages.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: neonPulse 2.5s infinite ease-in-out;
}

/* Hover эффект */
#Button_pages:hover {
  color: #00ffff;
  transform: scale(1.1);
  box-shadow:
    0 0 25px #00ffff,
    0 0 50px rgba(0, 255, 255, 0.4),
    inset 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Active эффект */
#Button_pages:active {
  transform: scale(0.95);
  box-shadow:
    inset 2px 2px 8px rgba(0, 255, 255, 0.4),
    0 0 15px rgba(0, 255, 255, 0.3);
  background: rgba(0, 255, 255, 0.2);
}

/* Анимация пульса */
@keyframes neonPulse {

  0%,
  100% {
    box-shadow:
      0 0 10px #00ffff,
      0 0 20px rgba(0, 255, 255, 0.4),
      inset 0 0 6px rgba(0, 255, 255, 0.2);
  }

  50% {
    box-shadow:
      0 0 20px #00ffff,
      0 0 40px rgba(0, 255, 255, 0.5),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
}


/* Кнопка Top — прозрачная с рамкой */
#scrollTopBtn {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: #000000;
  color: transparent;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(111, 255, 255, 0.42);
  font-size: 0;
  font-family: var(--font-mono);
  text-align: center;
  text-decoration: none;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 204, 204, 0.3);
}

#scrollTopBtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 4px solid #8efeff;
  border-right: 4px solid #8efeff;
  transform: translate(-50%, -32%) rotate(-45deg);
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.45));
}

#scrollTopBtn.show {
  z-index: 99999999;
  opacity: 1;
  transform: scale(1);
  animation: pulseGlow 2s infinite ease-in-out;
}

#scrollTopBtn:hover {
  animation-play-state: paused;
  box-shadow: 0 0 20px #00cccc, 0 0 40px #009999;
  border-color: var(--accent);
  cursor: pointer;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 10px #00cccc, 0 0 20px #009999;
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 20px #00cccc, 0 0 40px #009999;
    transform: scale(1.1);
  }
}

/* --- КНОПКА FEEDBACK --- */
#quickContactBtn {
  position: fixed;
  bottom: 20px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 15, 21, 0.85);
  color: #00ffff;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 0 12px #00ffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  z-index: 10000000;
  perspective: 600px;

  /* Пульсация */
  animation: pulse 1.5s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Анимация пульса --- */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

/* --- Анимация вращения по оси X --- */
@keyframes fb-spin-x {
  from {
    transform: rotateX(0deg);
  }

  to {
    transform: rotateX(360deg);
  }
}

/* Запуск вращения 1 раз + постоянный пульс */
#quickContactBtn.do-spin {
  animation: fb-spin-x 0.9s ease-in-out 1, pulse 1.5s infinite;
}

/* --- Hover эффект (отключает пульс пока наведен) --- */
#quickContactBtn:hover {
  animation: none;
  transform: scale(1.1);
  box-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
}

/* --- Уважение prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  #quickContactBtn {
    animation: none !important;
    transition: none !important;
  }
}




/* --- Модалка --- */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.modal.fade-out {
  opacity: 0;
  visibility: hidden;
}

.modal.show::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  z-index: 998;
  pointer-events: none;
}

.modal-content {
  background: rgba(15, 15, 21, 0.95);
  padding: 30px 30px 15px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.25);
  position: relative;
  transform: translateY(-20px) scale(0.95);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

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

.modal-content .close {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 24px;
  color: #00ffff;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.modal-content .close:hover {
  transform: scale(1.2);
  color: #fc4d4d;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  /* максимально по ширине модалки */
  max-width: 450px;
  /* можно ограничить, чтобы не слишком растягивались */
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 7px;
  border: 1px solid #00ffff;
  background: rgba(15, 15, 21, 0.8);
  color: rgb(177, 238, 249);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  resize: none;
}

.modal-content input {
  height: 38px;
  /* нормальная высота */
}

.modal-content textarea {
  height: 120px;
  /* оставляем большую только для текста */
  resize: none;
}


.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
  background: rgba(15, 15, 21, 0.9);
}

.modal-content .form-row {
  width: 100%;
  margin-bottom: 16px;
}

#submitBtn {
  padding: 10px 24px;
  border-radius: 25px;
  border: 1px solid #00ffff;
  background: rgba(15, 15, 21, 0.5);
  color: #00ffff;
  font-size: 16px;
  cursor: pointer;
  display: block;
  margin: 0 auto 30px;
  opacity: 0.8;
  transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

#submitBtn:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

#submitBtn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 12px #00ffff;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(15, 15, 21, 0.75);
  color: var(--text);
  caret-color: var(--accent);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  background: rgba(15, 15, 21, 0.88);
  color: var(--text);
}

.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill,
.contact-form select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0px 1000px rgba(15, 15, 21, 0.88) inset;
  box-shadow: 0 0 0px 1000px rgba(15, 15, 21, 0.88) inset;
  transition: background-color 9999s ease-out 0s;
}

.success-message {
  display: none;
  background: rgba(15, 15, 21, 0.95);
  color: #00ffff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  text-align: center;
  font-size: 18px;
  animation: fadeInOut 3s ease forwards;
  border: 1px solid #00ffff;
  max-width: 320px;
  margin: 0 auto;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  10% {
    opacity: 1;
    transform: scale(1);
  }

  90% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

.modal-content .privacy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #fff;
  width: 100%;
  margin-top: 10px;
}

.modal-content .privacy-row input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.modal-content .privacy-row .custom-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid #00ffff;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.8);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 3px rgba(0, 255, 255, 0.2);
}

.modal-content .privacy-row .custom-checkbox:hover {
  box-shadow: 0 0 10px #00ffff, inset 0 0 4px rgba(0, 255, 255, 0.3);
  border-color: #00ffff;
}

.modal-content .privacy-row input[type="checkbox"]:checked+.custom-checkbox::after {
  content: '✔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-size: 14px;
  color: #00ffff;
  line-height: 1;
}

/* Только для iOS (Safari и WebView) */
@supports (-webkit-touch-callout: none) and (not (translate: none)) {
  .modal-content .privacy-row input[type="checkbox"]:checked+.custom-checkbox::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -54%);
    /* чуть выше, чтобы не выпадала на iOS */
    font-size: 14px;
    line-height: 1;
  }
}

.modal-content .privacy-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 20px;
}

.modal-content .privacy-row label a {
  color: #00ffff;
  text-decoration: underline;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.modal-content .privacy-row label a:hover {
  text-shadow: 0 0 6px #00ffff;
}

/* --- Счётчик символов для textarea --- */
.modal-content .form-row {
  position: relative;
  /* для абсолютного позиционирования счётчика */
}

.modal-content .char-counter {
  position: absolute;
  bottom: 6px;
  /* чуть выше нижнего края поля */
  right: 10px;
  font-size: 12px;
  color: #00ffff;
  background: rgba(0, 0, 0, 0.6);
  /* небольшой полупрозрачный фон */
  padding: 2px 6px;
  border-radius: 6px;
  pointer-events: none;
  /* чтобы счетчик не мешал клику в поле */
}

/* --- конец feedback form --- */

/* --- COOKIE BANNER --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  border-top: 1px solid #00ffff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: sans-serif;
  font-size: 14px;
  z-index: 999999999;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0, 191, 255, 0.2);
  border-radius: 8px 8px 0 0;
  color: #a0f0f0;
}

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

.cookie-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

#cookie-banner .cookie-link {
  color: #00ffff;
  text-decoration: none;
  font-weight: 500;
}

#cookie-banner .cookie-link:hover {
  text-shadow: 0 0 8px #00ffff, 0 0 16px #00ffff, 0 0 24px #00ffff, 0 0 32px #00ffff;
}

#cookie-banner button {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

#accept-cookies {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

#accept-cookies:hover {
  background: #00e0e0;
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.7);
}

button.settings {
  background: rgba(0, 255, 255, 0.08);
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

button.settings:hover {
  background: rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

@media (max-width: 767px) {
  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    padding: 10px 12px;
  }

  #cookie-banner .cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  #cookie-banner button {
    width: 100%;
    padding: 8px 10px;
  }
}

/* --- COOKIE SETTINGS MODAL --- */
#cookie-settings-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  z-index: 120000;
  transition: opacity 0.3s ease;
}

#cookie-settings-modal.show {
  display: flex !important;
}

.cookie-modal-content {
  padding: 22px;
  border-radius: 12px;
  max-width: 480px;
  width: calc(100% - 40px);
  box-shadow: 0 10px 40px rgba(0, 191, 255, 0.12);
  pointer-events: auto;
  outline: none;
  border: 1px solid rgba(0, 255, 255, 0.2);
  transform: scale(1);
  opacity: 1;
  transition: all 0.3s ease;
}

.cookie-modal-content h2 {
  color: #00ffff;
  text-align: center;
  font-size: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 4px;
  font-size: 15px;
}

.cookie-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #00ffff;
  cursor: pointer;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

.cookie-option input[type="checkbox"]:not(:checked) {
  opacity: 0.5;
  accent-color: #00bfbf;
}

.cookie-option input[type="checkbox"]:not(:checked)+label {
  opacity: 0.6;
  color: #ccc;
}

.cookie-option input[type="checkbox"]:not(:checked):hover {
  opacity: 0.7;
}

.cookie-option input[type="checkbox"]:not(:checked):hover+label {
  opacity: 0.8;
}

.cookie-option.required input[type="checkbox"] {
  accent-color: #66ffff;
  cursor: not-allowed;
  opacity: 0.8;
}

.cookie-option label {
  cursor: pointer;
  user-select: none;
}

.cookie-option.required label {
  opacity: 0.8;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.modal-buttons button {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#save-cookie-settings {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

#save-cookie-settings:hover {
  background: #00e0e0;
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.7);
}

#close-cookie-settings {
  background: transparent;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

#close-cookie-settings:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.6);
}




#footer-lang-list,
#lang-switch #lang-list {
  position: absolute;
  display: none;
  list-style: none;
  background: var(--bg);
  margin: 0;
}

#lang-switch {
  position: fixed;
  top: 25px;
  right: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 99999;
}

#lang-switch img {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  cursor: pointer;
  transition: .3s;
}

#lang-switch img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px var(--accent),
    0 0 18px var(--accent-2);
}

#lang-switch #active-flag {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  box-shadow: 0 0 6px var(--accent);
}

#footer-lang-switch img,
#lang-switch #lang-list li img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

#lang-switch #lang-list {
  top: 45px;
  right: 0;
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 0 15px rgba(0, 255, 255, .3);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .3s, transform .3s;
  z-index: 99999;
}

#lang-switch #lang-list.show-left {
  transform: translateX(-100%) translateY(0);
  opacity: 1;
}

#lang-switch #lang-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  line-height: 46px;
  padding: 0 12px;
  margin-bottom: 4px;
  cursor: pointer;
  color: #fff;
  transition: background .2s, box-shadow .3s;
  position: relative;
  list-style: none;
}

#footer-lang-list li::before,
#lang-switch #lang-list li::before {
  content: none !important;
}

#lang-switch #lang-list li:last-child {
  margin-bottom: 0;
}

#footer-lang-list li:hover,
#lang-switch #lang-list li:hover {
  background-color: rgba(0, 255, 255, .15);
  box-shadow: 0 0 10px var(--accent),
    0 0 18px var(--accent-2);
  transform: none !important;
}

#lang-switch #lang-list li.active {
  background-color: rgba(0, 255, 255, .25);
  box-shadow: 0 0 10px var(--accent),
    0 0 15px var(--accent-2);
  cursor: default;
}

#footer-lang-switch {
  display: inline-block;
  position: relative;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

#footer-lang-switch img#footer-active-flag {
  vertical-align: middle;
  cursor: pointer;
}

#footer-lang-switch img {
  vertical-align: middle;
  transition: .3s;
}

#footer-lang-switch img:hover {
  box-shadow: 0 0 8px var(--accent),
    0 0 12px var(--accent-2);
  transform: scale(1.05);
}

#footer-lang-list {
  bottom: 100%;
  left: 0;
  border-radius: 5px;
  padding: 0 !important;
  min-width: 140px;
  box-shadow: 0 0 10px rgba(0, 255, 255, .3);
}

#footer-lang-list li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  cursor: pointer;
  color: #fff;
}

#footer-lang-list li.active {
  background-color: rgba(0, 255, 255, .25);
  box-shadow: 0 0 10px var(--accent),
    0 0 15px var(--accent-2);
  cursor: default !important;
  pointer-events: none;
  font-weight: 600;
}

@media (max-width: 1200px) {

  /* Футер: список языков раскрывается влево от кнопки */
  #footer-lang-list {
    left: auto !important;
    /* отключаем левый отступ */
    right: 0 !important;
    /* привязываем к правой границе кнопки */
    transform: translateX(0) !important;
    /* убираем смещение вправо/влево */
  }

  /* При показе списка */
  #footer-lang-list.show-left {
    display: block !important;
    transform: translateX(-100%) !important;
    /* растёт влево от правой границы */
  }
}

/* ==================== INFO ICON + TOOLTIP ==================== */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  cursor: pointer;
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.3s ease;
  vertical-align: middle;
}

.info-icon svg {
  width: 16px;
  height: 16px;
  fill: #00ffff;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.info-icon:hover {
  transform: scale(1.2);
  opacity: 1;
  filter: drop-shadow(0 0 6px #00ffff);
}

.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.35);
  color: #00ffff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95em;
  line-height: 1.6;
  white-space: normal;
  width: max-content;
  max-width: 340px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 99999;
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4),
    0 0 40px rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: scale(0.95);
}

.tooltip.visible {
  opacity: 1;
  transform: scale(1.05);
}

.tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.6));
}

.tooltip.top::after {
  bottom: -8px;
  border-width: 8px 8px 0 8px;
  border-color: rgba(0, 0, 0, 0.35) transparent transparent transparent;
}

.tooltip.bottom::after {
  top: -8px;
  border-width: 0 8px 8px 8px;
  border-color: transparent transparent rgba(0, 0, 0, 0.35) transparent;
}

.brand-cta-bridge {
  width: min(100%, 1200px);
  margin: 64px auto;
  padding: 48px 40px;
  text-align: center;
  background: linear-gradient(145deg, rgba(0, 191, 255, 0.1), rgba(0, 255, 255, 0.03));
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 
              inset 0 0 30px rgba(0, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.brand-cta-bridge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.brand-cta-bridge h2 {
  margin: 0 0 16px;
  color: var(--accent);
}

.brand-cta-bridge p {
  width: min(100%, 860px);
  margin: 0 auto;
  line-height: 1.7;
  text-align: center;
}

.brand-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.brand-cta-primary,
.brand-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease, border-color .25s ease, color .25s ease;
}

.brand-cta-primary {
  border: 1px solid var(--accent);
  background: rgba(0, 255, 255, 0.12);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.12);
}

.brand-cta-primary:hover {
  background: rgba(0, 255, 255, 0.18);
  box-shadow: 0 0 28px rgba(0, 255, 255, 0.22);
  transform: translateY(-2px);
}

.brand-cta-secondary {
  border: 1px solid rgba(0, 255, 255, 0.35);
  background: rgba(0, 191, 255, 0.06);
  color: var(--accent);
  box-shadow: 0 0 14px rgba(0, 191, 255, 0.1);
}

.brand-cta-secondary:hover {
  background: rgba(0, 191, 255, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.16);
  transform: translateY(-2px);
}

.brand-info-note {
  width: min(100%, 1220px);
  margin: 26px auto 34px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand-info-note__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.28));
}

.brand-info-note__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.brand-info-note__content {
  flex: 1 1 auto;
}

.brand-info-note__content p {
  width: 100%;
  margin: 0;
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 1200px) {
  .brand-cta-bridge {
    width: min(100%, var(--page-max-width));
    padding: 28px var(--page-padding-x);
  }

  .brand-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-cta-primary,
  .brand-cta-secondary {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .brand-info-note {
    width: min(100%, var(--page-max-width));
    padding: 16px 18px;
  }
}

@media (max-width: 768px) {
  .brand-cta-bridge {
    padding: 24px var(--page-padding-x);
    border-radius: 18px;
  }

  .brand-cta-bridge h2 {
    margin-bottom: 12px;
  }

  .brand-cta-primary,
  .brand-cta-secondary {
    min-height: 50px;
    padding: 12px 18px;
  }

  .brand-info-note {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 16px;
  }

  .brand-info-note__icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
}