/* Labyrinth 616 — Fendi: 20 оттенков, полосы, крупная типографика */
:root {
  --teal: #2a7a7b;
  --teal-bright: #3dd0cf;
  --teal-hover: #34b5b4;
  --teal-glow: rgba(61, 208, 207, 0.4);
  --text: #f8faf9;
  --text-muted: #b8c4c2;
  --font: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 6px;
  --line: 1px;
  --sidebar-w: 260px;
  --stripe: rgba(61, 208, 207, 0.25);
  /* Fendi: 20 позиций от тёмного к светлому */
  --fendi-1: #060706;
  --fendi-2: #0a0c0b;
  --fendi-3: #0e100f;
  --fendi-4: #121413;
  --fendi-5: #161918;
  --fendi-6: #1a1d1c;
  --fendi-7: #1e2221;
  --fendi-8: #222726;
  --fendi-9: #262c2b;
  --fendi-10: #2a3130;
  --fendi-11: #2e3635;
  --fendi-12: #333b3a;
  --fendi-13: #37403f;
  --fendi-14: #3b4544;
  --fendi-15: #404a49;
  --fendi-16: #454f4e;
  --fendi-17: #4a5554;
  --fendi-18: #4f5a59;
  --fendi-19: #54605f;
  --fendi-20: #5a6665;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; -webkit-font-smoothing: antialiased; }
body { margin: 0; font-family: var(--font); background: var(--fendi-1); color: var(--text); line-height: 1.5; min-height: 100vh; }

.labyrinth-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.labyrinth-bg canvas { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ----- Плазма по краям: собирается — распадается ----- */
.plasma-edges {
  position: fixed;
  inset: 0;
  z-index: 0.5;
  pointer-events: none;
  overflow: hidden;
}
.plasma-edges canvas { display: block; width: 100%; height: 100%; }

/* ----- Логотип сверху: только картинка ----- */
.top-logo {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.5rem 0;
  pointer-events: none;
}
.top-logo__img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(61, 208, 207, 0.5)) brightness(1.05);
}

/* ----- Под фоном: Labyrinth 616 в стиле Fendi (свет) ----- */
.brand-underlay {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0.4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.brand-underlay__logo {
  height: 28px;
  width: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 16px rgba(61, 208, 207, 0.6));
}
.brand-underlay__text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-bright);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(61, 208, 207, 0.5);
}

/* ----- Шапка ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  margin-top: 68px;
  background: var(--fendi-2);
  border-bottom: var(--line) solid var(--fendi-8);
  backdrop-filter: blur(10px);
}
.header__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.header__left { flex-shrink: 0; }
.lang-switcher-wrap { padding-right: 0.5rem; }
.nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 1.5rem; flex: 1 1 auto; min-width: 0; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--teal-bright); }
.nav__cta { color: var(--teal-bright) !important; }
.header__right { display: flex; align-items: center; gap: 0.75rem 1rem; flex-wrap: wrap; flex-shrink: 0; }
.header__auth-link {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted); text-decoration: none;
  background: none; border: none; cursor: pointer; font-family: inherit; padding: 0.35rem 0.6rem;
  border-radius: var(--radius); white-space: nowrap;
}
.header__auth-link:hover { color: var(--teal-bright); }
.header__auth-link--dashboard { color: var(--teal-bright); font-weight: 600; }
.header__auth-link--register { color: var(--fendi-1) !important; background: var(--teal-bright); }
.header__auth-link--register:hover { background: var(--teal-hover); color: var(--fendi-1) !important; }
.lang-switcher { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; }
.lang-switcher__label { color: var(--text-muted); }
.lang-switcher__link { color: var(--text-muted); text-decoration: none; padding: 0.2rem 0.4rem; border-radius: 4px; }
.lang-switcher__link:hover { color: var(--teal-bright); }
.lang-switcher__link.is-active { color: var(--teal-bright); font-weight: 600; }

/* ----- Auth modal (Login/Register in header) ----- */
.auth-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.auth-modal__box {
  position: relative; background: var(--fendi-5); border: 1px solid var(--fendi-10);
  border-radius: var(--radius); padding: 1.5rem; max-width: 400px; width: 100%;
}
.auth-modal__close { position: absolute; top: 0.5rem; right: 0.5rem; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.auth-modal__close:hover { color: var(--teal-bright); }
.auth-modal__title { margin: 0 0 1rem; font-size: 1.25rem; }
.auth-modal__tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.auth-modal__tab { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; padding: 0.35rem 0.6rem; border-radius: 4px; font-family: inherit; }
.auth-modal__tab:hover { color: var(--teal-bright); }
.auth-modal__tab.auth-modal__tab--active { color: var(--teal-bright); font-weight: 600; }
.auth-modal__panel { display: block; }
.auth-modal__panel[hidden] { display: none !important; }
.auth-form--modal .auth-form__label { display: block; margin-top: 0.5rem; margin-bottom: 0.2rem; }
.auth-form--modal .auth-form__input { width: 100%; margin-bottom: 0.5rem; }
.auth-form__message { margin: 0.5rem 0; font-size: 0.9rem; }
.auth-form__message--success { color: var(--teal-bright); }

/* ----- Dashboard layout (single column, no sidebars) ----- */
.layout--dashboard { grid-template-columns: 1fr; padding: 2rem 1rem; position: relative; z-index: 2; min-height: 60vh; }
.main-center--dashboard { max-width: 720px; margin: 0 auto; padding: 0; width: 100%; }
.office--page { display: block; width: 100%; }
.office--page .office__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.api-form--bybit .api-form__row--bybit { display: grid; grid-template-columns: auto 1fr 1fr; gap: 0.5rem; align-items: center; }
.api-form__exchange-label { font-weight: 600; color: var(--teal-bright); min-width: 5rem; }
.api-form__message { margin: 0.5rem 0; font-size: 0.9rem; }
.btn--telegram { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ----- Layout и полосы между колонками ----- */
.layout {
  display: grid;
  grid-template-columns: minmax(200px, var(--sidebar-w)) 1fr minmax(200px, var(--sidebar-w));
  gap: 0 0.5rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  position: relative;
  z-index: 1;
}
.sidebar { position: relative; padding: 0.75rem 0.5rem; }
.sidebar--left { padding-right: 0; }
.sidebar--right { padding-left: 0; }
.main-center {
  min-width: 0;
  padding: 0 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.main-center .frame,
.main-center .section-title { max-width: 740px; width: 100%; }
.main-center .frame { margin-left: auto; margin-right: auto; }

.stripes {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(61, 208, 207, 0.15) 2px, rgba(61, 208, 207, 0.15) 3px),
    repeating-linear-gradient(180deg, var(--stripe) 0, var(--stripe) 1px, transparent 1px, transparent 5px);
  background-size: 8px 100%, 8px 100%;
  background-position: 0 0, 0 0;
}
.stripes--left { left: 0; }
.stripes--right { right: 0; }
.stripes__data {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(61, 208, 207, 0.45);
  letter-spacing: 0.1em;
  opacity: 0.9;
}
.stripes__data--right { transform: translate(-50%, -50%) rotate(90deg); }
.main-center { }

/* ----- Панели с Fendi-оттенками ----- */
.panel {
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  border: var(--line) solid var(--fendi-8);
}
/* ----- Новостные каналы (слева и справа) ----- */
.news-channel {
  margin-bottom: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius);
  border: var(--line) solid var(--fendi-8);
  background: var(--fendi-3);
}
.news-channel__title { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; color: var(--teal-bright); }
.news-channel__sources { margin: 0 0 0.6rem; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.news-channel__list { list-style: none; margin: 0; padding: 0; max-height: 200px; overflow-y: auto; }
.news-channel__item {
  padding: 0.45rem 0;
  border-bottom: var(--line) solid var(--fendi-6);
  font-size: 0.8rem;
  line-height: 1.4;
}
.news-channel__list li:last-child .news-channel__item { border-bottom: none; }
.news-channel__item a { color: var(--text-muted); text-decoration: none; }
.news-channel__item a:hover { color: var(--teal-bright); }
.news-channel__source { color: var(--teal); font-size: 0.7rem; margin-bottom: 0.15rem; }

.panel--left { background: var(--fendi-3); }
.panel--right { background: var(--fendi-4); }
.panel__title { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700; color: var(--teal-bright); }
.panel__sub { margin: 0 0 0.6rem; font-size: 0.8rem; color: var(--text-muted); }

/* Таблицы ----- */
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.data-table th,
.data-table td { padding: 0.4rem 0.5rem; text-align: left; border-bottom: var(--line) solid var(--fendi-7); }
.data-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; }
.data-table td { color: var(--text); }
.data-table .long { color: var(--teal-bright); }
.data-table .short { color: var(--text-muted); }
.data-table .profit { color: var(--teal-bright); }
.data-table .loss { color: #c75c5c; }
.account-summary { margin-top: 0.75rem; padding-top: 0.75rem; border-top: var(--line) solid var(--fendi-7); font-size: 0.9rem; color: var(--text-muted); }
.account-summary .profit { color: var(--teal-bright); }

/* ----- Справа: псевдо-счёт — сделки в реальном времени, перевод на инвест-счёт ----- */
.panel--realtime { margin-top: 1rem; }
.realtime-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.realtime-feed__item {
  padding: 0.4rem 0.5rem;
  border-bottom: var(--line) solid var(--fendi-6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.realtime-feed__item:last-child { border-bottom: none; }
.realtime-feed__time { color: var(--text-muted); font-size: 0.7rem; }
.realtime-feed__action.realtime-feed__action--buy { color: var(--teal-bright); }
.realtime-feed__action.realtime-feed__action--sell { color: var(--text-muted); }
.realtime-feed__action.realtime-feed__action--transfer { color: rgba(61, 208, 207, 0.9); }
.realtime-feed__detail { color: var(--text); }

/* ----- Центр: рамки и Fendi-оттенки ----- */
.frame {
  background: var(--fendi-4);
  border: var(--line) solid var(--fendi-9);
  border-radius: var(--radius);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.25rem;
}
.frame--hero { background: var(--fendi-3); padding: 1.5rem 1.75rem; }
.section-title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: var(--line) solid var(--fendi-8);
}

.hero__title { margin: 0 0 0.4rem; font-size: 1.35rem; font-weight: 700; color: var(--teal-bright); }
.hero__lead { margin: 0 0 0.75rem; font-size: 1rem; color: var(--text); line-height: 1.55; }
.hero__cta { margin-top: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: var(--teal);
  color: #0a0f0f;
}
.btn:hover { background: var(--teal-hover); box-shadow: 0 0 16px var(--teal-glow); }

.advantages__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.card {
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  border: var(--line) solid var(--fendi-7);
}
.card--1 { background: var(--fendi-5); }
.card--2 { background: var(--fendi-6); }
.card--3 { background: var(--fendi-5); }
.card--4 { background: var(--fendi-6); }
.card__title { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 700; color: var(--text); }
.card__text { margin: 0; font-size: 0.9rem; color: var(--text); line-height: 1.45; }

.trading__intro { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.trade-flow--mini { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.trade-flow__badge {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius);
  font-family: var(--font-mono);
}
.trade-flow__badge--long { background: rgba(61, 208, 207, 0.15); color: var(--teal-bright); border: var(--line) solid var(--teal); }
.trade-flow__badge--short { background: var(--fendi-6); color: var(--text-muted); border: var(--line) solid var(--fendi-9); }

.steps--compact { display: flex; flex-direction: column; gap: 0.5rem; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: var(--fendi-5);
  border: var(--line) solid var(--fendi-8);
  border-radius: var(--radius);
}
.step--1 { background: var(--fendi-5); }
.step--2 { background: var(--fendi-6); }
.step--3 { background: var(--fendi-5); }
.step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #0a0f0f;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 4px;
}
.step__text { margin: 0; font-size: 0.9rem; color: var(--text); line-height: 1.5; }

.safety__grid--compact { display: flex; flex-direction: column; gap: 0.4rem; }
.safety__item {
  margin: 0;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--fendi-5);
  border: var(--line) solid var(--fendi-8);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
}

.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.stat {
  text-align: center;
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius);
  border: var(--line) solid var(--fendi-8);
}
.stat--1 { background: var(--fendi-5); }
.stat--2 { background: var(--fendi-6); }
.stat--3 { background: var(--fendi-5); }
.stat--4 { background: var(--fendi-6); }
.stat__value { display: block; font-size: 1.6rem; font-weight: 700; color: var(--teal-bright); font-family: var(--font-mono); }
.stat__suffix { color: var(--teal-bright); font-size: 1.1rem; font-weight: 700; }
.stat__label { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--text); }

/* ----- Цитата ----- */
.quote { text-align: center; }
.quote__text {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}
.quote__cite { font-size: 0.9rem; color: var(--teal-bright); font-style: normal; }

/* ----- Регистрация и вход ----- */
.auth__tabs { display: flex; gap: 0; margin-bottom: 1rem; border-bottom: var(--line) solid var(--fendi-8); }
.auth__tab {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
}
.auth__tab:hover { color: var(--text); }
.auth__tab--active { color: var(--teal-bright); border-bottom-color: var(--teal); }
.auth__panel { display: block; }
.auth-form { display: flex; flex-direction: column; gap: 0.5rem; max-width: 360px; }
.auth-form__label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.auth-form__input {
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  background: var(--fendi-5);
  border: var(--line) solid var(--fendi-8);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
}
.auth-form__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-glow); }
.auth-form__checkbox { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; }
.auth-form__checkbox input { margin-top: 0.2rem; }
.auth-form__submit { margin-top: 0.5rem; align-self: flex-start; }
.btn--ghost { background: transparent; color: var(--teal-bright); border: var(--line) solid var(--fendi-9); }
.btn--ghost:hover { background: var(--fendi-6); }

/* ----- Личный кабинет ----- */
.office__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.office__head .section-title { margin: 0; }
.office__welcome { margin: 0 0 1rem; font-size: 0.95rem; color: var(--text-muted); }
.office__summary { margin-bottom: 1.25rem; padding: 1rem; background: var(--fendi-5); border: var(--line) solid var(--fendi-8); border-radius: var(--radius); }
.office__summary-title { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 700; color: var(--teal-bright); }
.office__summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.office__summary-item { text-align: center; }
.office__summary-value { display: block; font-size: 1.25rem; font-weight: 700; color: var(--text); font-family: var(--font-mono); }
.office__summary-value.profit { color: var(--teal-bright); }
.office__summary-unit { font-size: 0.9rem; color: var(--text-muted); }
.office__summary-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
/* ----- Форма API (до 20 инвестиционных счетов) ----- */
.office__api { margin-bottom: 1.25rem; }
.office__api-title { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700; color: var(--teal-bright); }
.office__api-desc { margin: 0 0 1rem; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.api-form__list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.api-form__row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.api-form__input {
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  background: var(--fendi-5);
  border: var(--line) solid var(--fendi-8);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
}
.api-form__row .api-form__input { min-width: 0; }
.api-form__row .api-form__select {
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  background: var(--fendi-5);
  border: var(--line) solid var(--fendi-8);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
}
.api-form__row-remove { padding: 0.4rem 0.5rem; font-size: 0.85rem; color: var(--text-muted); background: transparent; border: none; cursor: pointer; }
.api-form__row-remove:hover { color: var(--teal-bright); }
.api-form__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.api-form__actions .btn--ghost { font-size: 0.9rem; }

/* ----- Сводка по инвестиционным счетам (онлайн) ----- */
.office__accounts-summary {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--fendi-5);
  border: var(--line) solid var(--fendi-8);
  border-radius: var(--radius);
}
.office__accounts-summary-title { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; color: var(--teal-bright); }
.office__accounts-summary-update { margin: 0 0 0.75rem; font-size: 0.8rem; color: var(--text-muted); }
.accounts-summary__total {
  padding: 0.75rem;
  background: var(--fendi-3);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.accounts-summary__total-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.accounts-summary__total-value { font-size: 1.5rem; font-weight: 700; color: var(--teal-bright); font-family: var(--font-mono); }
.accounts-summary__by-exchange { display: flex; flex-direction: column; gap: 0.4rem; }
.accounts-summary__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
  background: var(--fendi-4);
  border-radius: var(--radius);
}
.accounts-summary__row-name { color: var(--text); font-weight: 600; }
.accounts-summary__row-value { color: var(--teal-bright); font-family: var(--font-mono); }

.office__support { padding: 1rem; background: var(--fendi-5); border: var(--line) solid var(--fendi-8); border-radius: var(--radius); }
.office__support-title { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700; color: var(--teal-bright); }
.office__support-desc { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--text-muted); }
.support-chat__messages {
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.75rem;
  background: var(--fendi-3);
  border: var(--line) solid var(--fendi-7);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.support-chat__msg { margin-bottom: 0.5rem; font-size: 0.9rem; }
.support-chat__msg--user { color: var(--teal-bright); }
.support-chat__msg--support { color: var(--text-muted); }
.support-chat__msg-time { font-size: 0.75rem; opacity: 0.8; margin-right: 0.35rem; }
.support-chat__form { display: flex; gap: 0.5rem; }
.support-chat__input {
  flex: 1;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  background: var(--fendi-5);
  border: var(--line) solid var(--fendi-8);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
}
.support-chat__input:focus { outline: none; border-color: var(--teal); }
.support-chat__send { flex-shrink: 0; }

.cta__title { margin: 0 0 0.35rem; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.cta__text { margin: 0 0 0.6rem; font-size: 0.95rem; color: var(--text); }
.cta__form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cta__input {
  padding: 0.5rem 0.65rem;
  font-size: 0.95rem;
  background: var(--fendi-5);
  border: var(--line) solid var(--fendi-8);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  min-width: 160px;
}
.cta__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-glow); }

/* ----- Модальное окно подтверждения (двойное подтверждение по email) ----- */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.confirm-modal[hidden] { display: none !important; }
.confirm-modal__step[hidden] { display: none !important; }
.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.confirm-modal__box {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  background: var(--fendi-4);
  border: 1px solid var(--fendi-9);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.confirm-modal__title { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 700; color: var(--teal-bright); }
.confirm-modal__text { margin: 0 0 1rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.confirm-modal__label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.confirm-modal__input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  background: var(--fendi-5);
  border: 1px solid var(--fendi-8);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  box-sizing: border-box;
}
.confirm-modal__input:focus { outline: none; border-color: var(--teal); }
.confirm-modal__input--code { font-family: var(--font-mono); letter-spacing: 0.2em; text-align: center; }
.confirm-modal__hint { margin: 0 0 0.75rem; font-size: 0.8rem; color: var(--teal-bright); }
.confirm-modal__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.confirm-modal__cancel { margin-left: 0; }

.footer {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1rem;
  border-top: var(--line) solid var(--fendi-8);
  text-align: center;
  background: var(--fendi-2);
}
.footer__copy { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar--left { order: 2; }
  .sidebar--right { order: 3; }
  .main-center { order: 1; border-left: none; border-right: none; }
  .stripes { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .advantages__grid { grid-template-columns: 1fr; }
  .office__summary-grid { grid-template-columns: 1fr; }
  .api-form__row { grid-template-columns: 1fr 1fr; }
  .api-form__row .api-form__select { grid-column: 1 / -1; }
  .api-form__row-remove { grid-column: 2; justify-self: end; }
}
