/* ============================================================
   MYINF ИИ — стили сайта
   Палитра: тёмный фон + фирменный градиент логотипа
   бирюза #2bd2db → синий #1c86e0
   ============================================================ */

:root {
  --bg: #05080f;
  --bg-2: #0a1120;
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.02);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eaf2ff;
  --muted: #93a1b8;
  --cyan: #2bd2db;
  --blue: #1c86e0;
  --grad: linear-gradient(120deg, #2bd2db 0%, #1c86e0 100%);
  --radius: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

/* Защита от горизонтального переполнения (в т.ч. iOS WebKit):
   clip не создаёт контейнер прокрутки, в отличие от hidden */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Фоновый декор ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.35;
}

.blob-1 {
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(43, 210, 219, 0.55), transparent 65%);
}

.blob-2 {
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(28, 134, 224, 0.5), transparent 65%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease,
    backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(5, 8, 15, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 46px;
  height: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 14px;
  background: var(--grad);
  color: #04121c;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(28, 134, 224, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(43, 210, 219, 0.45);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13.5px;
  border-radius: 11px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 16px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  padding: 170px 0 90px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 48px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(43, 210, 219, 0.3);
  background: rgba(43, 210, 219, 0.08);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.hero-chips i {
  color: var(--cyan);
  font-style: normal;
}

/* ============================================================
   ОРБИТАЛЬНАЯ АНИМАЦИЯ
   ============================================================ */
.orbit-scene {
  /* Радиусы и размеры заданы в cqw (1cqw = 1% ширины сцены),
     поэтому орбита пропорционально масштабируется при ЛЮБОЙ
     ширине сцены — и в двух колонках на десктопе, и на телефоне.
     px-значения выше — фолбэк для браузеров без поддержки cqw. */
  --r1: 176px;    /* радиус внутренней орбиты */
  --r2: 260px;    /* радиус внешней орбиты */
  --tile: 56px;   /* размер плашки с иконкой */
  --r1: 30.3cqw;  /* 176/580 */
  --r2: 44.8cqw;  /* 260/580: 44.8 + tile/2(4.8) = 49.6 < 50 — плашки всегда внутри сцены */
  --tile: 9.6cqw; /* 56/580 */
  container-type: inline-size;
  position: relative;
  width: min(580px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  /* Подрезаем ограничивающий прямоугольник вращающихся колец:
     повёрнутый квадрат шире сцены и расширял страницу на iOS.
     Иконки никогда не выходят за пределы сцены, поэтому визуально
     ничего не обрезается */
  overflow: hidden;
  overflow: clip;
}

.orbit-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(43, 210, 219, 0.22) 0%,
      rgba(28, 134, 224, 0.12) 45%,
      transparent 70%);
  filter: blur(28px);
  animation: glow-pulse 5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

/* видимые кольца орбит */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ring-1 {
  width: calc(var(--r1) * 2);
  height: calc(var(--r1) * 2);
}

.ring-2 {
  width: calc(var(--r2) * 2);
  height: calc(var(--r2) * 2);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.05);
}

/* логотип в центре */
.orbit-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  width: 41.4cqw; /* 240/580 — масштабируется вместе со сценой */
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 45px rgba(28, 134, 224, 0.45));
  animation: float-logo 6s ease-in-out infinite;
  z-index: 3;
}

@keyframes float-logo {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-12px); }
}

/* вращающиеся кольца */
.orbit {
  position: absolute;
  inset: 0;
  --dur: 38s;
  animation: spin var(--dur) linear infinite;
  will-change: transform;
}

.orbit-2 {
  --dur: 62s;
  animation-direction: reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* точка на окружности */
.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1));
}

.orbit-1 .orbit-item { --r: var(--r1); }
.orbit-2 .orbit-item { --r: var(--r2); }

/* плашка с иконкой: центрируется и контр-вращается, чтобы стоять ровно */
.tile {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--tile);
  height: var(--tile);
  border-radius: 31%;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transform: translate(-50%, -50%);
  animation: counter-spin var(--dur) linear infinite;
  transition: box-shadow 0.25s ease;
  will-change: transform;
}

.orbit-2 .tile {
  animation-direction: reverse;
}

.tile:hover {
  box-shadow: 0 10px 30px rgba(43, 210, 219, 0.5),
    0 0 0 1px rgba(43, 210, 219, 0.6) inset;
}

.tile img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

@keyframes counter-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* ---------- Секции ---------- */
.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.over-title {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 16.5px;
}

/* ---------- Карточки ---------- */
.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ---------- Возможности ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 34px 30px;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(43, 210, 219, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(43, 210, 219, 0.1);
  border: 1px solid rgba(43, 210, 219, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--cyan);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* модели */
.models {
  margin-top: 44px;
  text-align: center;
}

.models-row {
  margin-bottom: 24px;
}

.models-row:last-child {
  margin-bottom: 0;
}

.models-label {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.models-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip:hover {
  border-color: rgba(43, 210, 219, 0.5);
  background: rgba(43, 210, 219, 0.08);
  color: var(--cyan);
}

/* ---------- Тарифы ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.price-card.popular {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #0c1526, #0a1120) padding-box,
    var(--grad) border-box;
  box-shadow: 0 18px 50px rgba(28, 134, 224, 0.22);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 100px;
  background: var(--grad);
  color: #04121c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.price-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
}

.popular .price-value {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-period {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.price-desc {
  color: var(--muted);
  font-size: 13.5px;
  min-height: 42px;
  margin-bottom: 18px;
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 22px;
}

.price-card .btn {
  margin-top: auto;
}

.price-group {
  margin-bottom: 16px;
}

.price-group-title {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.price-group-items {
  font-size: 13px;
  line-height: 1.55;
  color: #c6d2e4;
}

/* эксклюзивные модели тарифа «Макс» */
.price-group-items .ex {
  display: inline-block;
  padding: 1px 9px;
  margin: 1px 0;
  border-radius: 100px;
  background: rgba(43, 210, 219, 0.12);
  border: 1px solid rgba(43, 210, 219, 0.45);
  color: var(--cyan);
  font-weight: 700;
  white-space: nowrap;
}

.price-group-items .ex::before {
  content: "★";
  margin-right: 4px;
  font-size: 9px;
}

.ex-legend {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cyan);
  opacity: 0.85;
}

.price-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: #c6d2e4;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(43, 210, 219, 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232bd2db' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 9px no-repeat;
  border: 1px solid rgba(43, 210, 219, 0.4);
}

.price-list li.off {
  color: #5d6b80;
  text-decoration: line-through;
}

.price-list li.off::before {
  background: rgba(255, 255, 255, 0.04)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b80' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E")
    center / 8px no-repeat;
  border-color: rgba(255, 255, 255, 0.12);
}

.pricing-note {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Поддержка ---------- */
.support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 52px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(43, 210, 219, 0.1), transparent 55%),
    linear-gradient(180deg, var(--card), var(--card-2));
}

.support-text h2 {
  margin-bottom: 10px;
}

.support-text p {
  color: var(--muted);
  max-width: 520px;
}

/* ---------- Футер ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: rgba(5, 8, 15, 0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--muted);
  font-size: 14.5px;
  width: fit-content;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #5d6b80;
  font-size: 13.5px;
  text-align: center;
}

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Страницы документов ---------- */
.legal {
  padding: 160px 0 90px;
}

.legal h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin-bottom: 8px;
}

.legal-date {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-body {
  max-width: 820px;
}

.legal-body h2 {
  font-size: 19px;
  margin: 36px 0 12px;
}

.legal-body p,
.legal-body li {
  color: #b9c6da;
  font-size: 15.5px;
}

.legal-body p {
  margin-bottom: 10px;
}

.legal-body ul,
.legal-body ol {
  padding-left: 22px;
  margin-bottom: 10px;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--cyan);
}

.legal-body a:hover {
  text-decoration: underline;
}

.legal-body strong {
  color: var(--text);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 940px) {
  .hero {
    padding: 140px 0 70px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 64px;
  }
  .hero-inner > * {
    min-width: 0;
  }
  .lead {
    margin-inline: auto;
  }
  .hero-actions,
  .hero-chips {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .support-card {
    flex-direction: column;
    text-align: center;
    padding: 42px 30px;
  }
  .support-text p {
    margin-inline: auto;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
  .hero {
    padding: 120px 0 56px;
  }
  h1 {
    font-size: clamp(24px, 8.4vw, 34px);
  }
  h1 br {
    display: none;
  }
  h2 {
    font-size: clamp(20px, 6.6vw, 30px);
  }
  .lead {
    font-size: 16px;
  }
  .btn-lg {
    padding: 14px 22px;
    font-size: 15px;
  }
  .support-card {
    padding: 32px 22px;
  }
  .legal {
    padding: 120px 0 64px;
  }
  .legal h1 {
    font-size: clamp(21px, 7.2vw, 30px);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .price-desc {
    min-height: 0;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 14px;
  }
  .header .btn-sm {
    padding: 9px 12px;
  }
  .header .btn-label {
    display: none;
  }
  .brand-name {
    font-size: 14px;
  }
}

/* ---------- Уменьшение анимаций по запросу системы ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}