/* Chezis — фундамент дизайна. Один фиксированный брендовый вид (не
   подстраивается под системную тёмную/светлую тему): это осознанное
   решение для маркетингового сайта — бренд должен выглядеть одинаково
   у всех посетителей, а не зависеть от их настроек ОС. */

:root {
  --graphite-900: #14151a;
  --graphite-800: #1a1c22;
  --graphite-700: #23262e;
  --graphite-600: #33363f;
  --graphite-500: #52565f;
  --ink-200: #c9cbd3;
  --ink-100: #eceef2;
  --white: #ffffff;

  --orange-600: #e8600a;
  --orange-500: #ff7a1a;
  --orange-400: #ff9142;
  --orange-tint: rgba(255, 122, 26, 0.12);

  --success: #3ecf8e;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-orange: 0 8px 24px rgba(255, 122, 26, 0.25);

  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--graphite-900);
  color: var(--ink-100);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 88px 0;
}

@media (max-width: 720px) {
  section {
    padding: 56px 0;
  }
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 16px;
  color: var(--ink-200);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-400);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--orange-500);
  color: var(--graphite-900);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background: var(--orange-400);
}

.btn-ghost {
  background: transparent;
  border-color: var(--graphite-600);
  color: var(--ink-100);
}

.btn-ghost:hover {
  border-color: var(--orange-500);
  color: var(--orange-400);
}

.btn-block {
  width: 100%;
}

/* ---------- Шапка ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 21, 26, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--graphite-700);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  /* Раньше здесь стоял display:flex + gap:10px. С flex-контейнером текстовый
     узел "Chez" и элемент <span class="dot"> становятся ДВУМЯ отдельными
     flex-элементами, и gap вставляет между ними видимый зазор — визуально
     "Chezis" читался как два слова. Логотип — просто текст, flex ему не
     нужен: обычный инлайновый поток держит буквы вплотную, как и должно
     быть в одном слове. */
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--white);
}

.logo .dot {
  color: var(--orange-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-200);
  font-size: 0.94rem;
  font-weight: 500;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 100px;
  background: var(--graphite-700);
  border: 1px solid var(--graphite-600);
}

.lang-switch a {
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-200);
}

.lang-switch a.active {
  background: var(--orange-500);
  color: var(--graphite-900);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--graphite-600);
  background: transparent;
  color: var(--ink-100);
  cursor: pointer;
  padding: 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* Порядок в разметке — logo, nav-toggle, nav-links, nav-right (см.
     HTML): на мобильном флекс-контейнер .nav переносится, и открытая
     .nav-links обязана оказаться СВОЕЙ строкой во всю ширину, а не
     втиснута между переключателем языка и логотипом. */
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    order: 10;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--graphite-700);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 8px 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 96px;
  padding-bottom: 60px;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--graphite-500);
}

/* ---------- Живая демонстрация ---------- */

.demo-card {
  margin-top: 56px;
  background: linear-gradient(180deg, var(--graphite-800), var(--graphite-900));
  border: 1px solid var(--graphite-700);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  text-align: left;
}

@media (max-width: 780px) {
  .demo-card {
    grid-template-columns: 1fr;
    padding: 26px;
  }
}

.demo-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--graphite-700);
  border: 1px solid var(--graphite-600);
  border-radius: var(--radius-md);
}

.channel-row .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-tint);
  color: var(--orange-400);
  flex-shrink: 0;
}

.channel-row strong {
  display: block;
  font-size: 0.95rem;
}

.channel-row span {
  font-size: 0.83rem;
  color: var(--graphite-500);
}

.channel-row .tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
}

.tag.live {
  background: rgba(62, 207, 142, 0.14);
  color: var(--success);
}

.tag.soon {
  background: var(--graphite-600);
  color: var(--ink-200);
}

/* Мокап окна чата — чистая CSS/разметка, без внешних изображений */

.chat-mock {
  background: var(--graphite-700);
  border: 1px solid var(--graphite-600);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.chat-mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--graphite-600);
  font-size: 0.88rem;
  font-weight: 600;
}

.chat-mock-head .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.chat-mock-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}

.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.bubble.user {
  align-self: flex-end;
  background: var(--orange-500);
  color: var(--graphite-900);
  border-bottom-right-radius: 4px;
}

.bubble.bot {
  align-self: flex-start;
  background: var(--graphite-800);
  border: 1px solid var(--graphite-600);
  border-bottom-left-radius: 4px;
}

/* ---------- Как это работает ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  padding: 26px 22px;
  background: var(--graphite-800);
  border: 1px solid var(--graphite-700);
  border-radius: var(--radius-md);
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--orange-tint);
  color: var(--orange-400);
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Возможности ---------- */

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--graphite-800);
  border: 1px solid var(--graphite-700);
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: var(--orange-500);
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-tint);
  color: var(--orange-400);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.feature-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Тарифы / калькулятор ---------- */

.calc-card {
  background: var(--graphite-800);
  border: 1px solid var(--graphite-700);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 760px;
  margin: 0 auto 56px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-row label {
  font-weight: 600;
  font-size: 0.95rem;
}

.calc-value {
  font-weight: 800;
  color: var(--orange-400);
  font-size: 1.1rem;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: var(--graphite-600);
  appearance: none;
  margin: 18px 0 26px;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-500);
  border: 3px solid var(--graphite-900);
  box-shadow: 0 0 0 1px var(--orange-500);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-500);
  border: 3px solid var(--graphite-900);
  cursor: pointer;
}

.calc-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--graphite-700);
  border: 1px solid var(--graphite-600);
  flex-wrap: wrap;
}

.calc-result .plan-name {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--graphite-500);
  margin-bottom: 4px;
}

.calc-result .plan-price {
  font-size: 1.7rem;
  font-weight: 800;
}

.calc-result .plan-price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-200);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

.plan-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--graphite-800);
  border: 1px solid var(--graphite-700);
  display: flex;
  flex-direction: column;
}

.plan-card.featured {
  border-color: var(--orange-500);
  box-shadow: var(--shadow-orange);
  position: relative;
}

.plan-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--orange-500);
  color: var(--graphite-900);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
}

.plan-card h3 {
  margin-bottom: 4px;
}

.plan-card .price {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 10px 0 4px;
}

.plan-card .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--graphite-500);
}

.plan-card .limit {
  font-size: 0.86rem;
  color: var(--graphite-500);
  margin-bottom: 20px;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card li {
  font-size: 0.9rem;
  color: var(--ink-200);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.plan-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
  margin-top: 7px;
  flex-shrink: 0;
}

.pricing-footnote {
  text-align: center;
  font-size: 0.85rem;
  color: var(--graphite-500);
  margin-top: 28px;
}

/* ---------- Скоро появится ---------- */

.soon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .soon-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .soon-grid {
    grid-template-columns: 1fr;
  }
}

.soon-item {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--graphite-600);
  color: var(--graphite-500);
  font-size: 0.9rem;
  text-align: center;
}

.soon-item strong {
  display: block;
  color: var(--ink-200);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* ---------- CTA / Контакты ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: var(--graphite-900);
}

.cta-band h2 {
  color: var(--graphite-900);
}

.cta-band p {
  color: rgba(20, 21, 26, 0.75);
  max-width: 480px;
  margin: 0 auto 28px;
}

.cta-band .btn-ghost {
  border-color: rgba(20, 21, 26, 0.35);
  color: var(--graphite-900);
}

.cta-band .btn-ghost:hover {
  border-color: var(--graphite-900);
  color: var(--graphite-900);
}

.cta-band .btn-primary {
  background: var(--graphite-900);
  color: var(--white);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: var(--graphite-800);
}

/* ---------- Подвал ---------- */

footer.site-footer {
  border-top: 1px solid var(--graphite-700);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--graphite-500);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--graphite-500);
}

.footer-links a:hover {
  color: var(--ink-200);
}
