/* α
   style.css - MTRemote Promo */

/* Единая тёмная дизайн-система (CLAUDE.md) - светлой темы больше нет, переключатель убран */
:root {
  --bg: #0e1525;
  --surface: #141d30;
  --border: #25304a;
  --border-soft: #1a2338;
  --text: #e8edf6;
  --text-dim: #97a4bf;
  --text-mute: #5c6a86;
  --accent: #4f9dff;
  --accent-hover: #6cabff; /* светлее акцента - hover на тёмном фоне светлеет, а не темнеет */
  --accent-soft: rgba(79, 157, 255, 0.12);
  --bull: #22b8a0; /* зелёная свеча в приложении */
  --bull-soft: rgba(34, 184, 160, 0.12);
  --bear: #ef5350; /* красная свеча в приложении */
  --bear-soft: rgba(239, 83, 80, 0.12);
  --amber: #f0b429; /* только для security/callout панелей */
  --amber-soft: rgba(240, 180, 41, 0.1);
  --white: #ffffff;
  --nav-bg: rgba(14, 21, 37, 0.92);
  --footer-bg: #0a0f1a;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --transition: 0.25s ease;
  --font-body: "Manrope", sans-serif; /* основной шрифт текста - переопределяется в head.php по языку */
  --font-mono: "JetBrains Mono", ui-monospace, monospace; /* лейблы, номера шагов, теги */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-text {
  color: var(--accent);
}

.nav-logo-sub {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-inline-start: 0.5rem;
  white-space: nowrap;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap; /* запрещаем перенос внутри пункта nav - лучше компактно выйти за край, чем сломать строку */
}

.nav-links .nav-app {
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--accent);
  white-space: nowrap;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition:
    background var(--transition),
    transform var(--transition);
}

.nav-links .nav-app:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.nav-links .nav-app::after {
  display: none;
}

/* Nav-ссылка с иконкой слева от текста (Home/Setup/Support) */
.nav-ico {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-ico .material-icons {
  font-size: 18px; /* меньше 24px, чтобы не ломать высоту nav */
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--accent);
}
.nav-links a.active::after {
  width: 100%;
}

/* Lang switcher */

.lang-switcher {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.lang-current {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-dim);
  background: none;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-current:hover,
.lang-switcher.open .lang-current {
  color: var(--accent);
  border-color: var(--accent);
}

/* меню языков в два столбца, порядок сверху вниз по столбцам */
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-end: 0;
  padding: 6px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  max-height: min(90vh, calc(100vh - 5rem));
  overflow-y: auto;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  grid-template-rows: repeat(var(--lang-rows, 20), auto);
  gap: 0 4px;
  width: 19rem;
  max-width: calc(100vw - 24px);
  z-index: 10;
}

.lang-switcher.open .lang-dropdown {
  display: grid;
}

/* раскрытие проездом курсора - только там, где наведение существует */
@media (hover: hover) {
  .lang-switcher:hover .lang-dropdown {
    display: grid;
  }
}

.lang-dropdown a {
  display: block;
  padding: 3px 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text);
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 6px;
  transition: background var(--transition);
}

.lang-dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.lang-dropdown a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Hero */

.hero {
  min-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  background:
    radial-gradient(ellipse 900px 500px at 82% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 700px 400px at 15% 110%, var(--bull-soft), transparent 60%),
    linear-gradient(180deg, rgba(14, 21, 37, 0.5) 0%, rgba(14, 21, 37, 0.25) 45%, rgba(14, 21, 37, 0.6) 100%),
    url('/img/hero-illustration.jpg');
  background-size: auto, auto, auto, cover;
  background-position: 0 0, 0 0, 0 0, center 35%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  background: radial-gradient(ellipse 520px 300px at center, rgba(14, 21, 37, 0.55) 0%, rgba(14, 21, 37, 0.28) 55%, transparent 80%);
  border-radius: var(--radius);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 36px;
  line-height: 1.5;
}

.hero-small {
  min-height: 44vh;
  padding: 100px 24px 48px;
}

.hero-small h1 {
  font-size: 2.6rem;
}

/* короткая страница - подвал прижат к низу окна */
body.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-404 .hero {
  flex: 1;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-white {
  background: var(--surface);
  color: var(--text);
}

.btn-white:hover {
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* Sections */

.section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt {
  background: var(--surface);
}

/* узкая колонка по центру - единственный владелец ширины читаемой строки */
.guide-section,
.cta-block,
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}

.section-alt .section {
  padding: 80px 24px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 56px;
  max-width: 600px;
  margin-inline: auto;
}

/* Cards Grid - 4 карточек: делим на 4, 2 или 1, чтобы не было ряда из 3 + хвоста в 1 */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) {
  /* узко для 4-в-ряд (4×240 + 3×28 ≈ 1044px + padding) - переходим на 2×2 */
  .cards { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-align: center;
}

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

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 32px;
}

.card-icon .material-icons {
  font-size: 32px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
}

/* Кружок-номер шага - используется как крупный самостоятельный бейдж в .guide-step-header (setup.php) */
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--bull));
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

/* внутри карточки шага (.steps) номер - маленький квадрат в моно-шрифте, переопределяет крупный кружок выше */
.step .step-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Feature rows - чередующиеся строки картинка/текст */
.feature-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
}
.feature-row.reverse {
  grid-template-columns: 1fr 340px;
}
.feature-row.reverse .feature-shot {
  order: 2;
}
.feature-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.7);
}
.feature-shot img {
  width: 100%;
  display: block;
}
.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 157, 255, 0.3);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.feature-row h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-row p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}
.check-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "\2713";
  color: var(--bull);
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }
  .feature-row.reverse .feature-shot {
    order: 0;
  }
  .feature-shot {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Gallery - горизонтальная прокручиваемая лента скриншотов со стрелками */
.hscroll-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.hscroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 4px 18px;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.hscroll::-webkit-scrollbar {
  height: 8px;
}
.hscroll::-webkit-scrollbar-track {
  background: transparent;
}
.hscroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.hscroll figure {
  flex: 0 0 220px;
  scroll-snap-align: start;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.hscroll img {
  width: 100%;
  display: block;
}
.hscroll figcaption {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.hscroll-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: all var(--transition);
}
.hscroll-arrow:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(79, 157, 255, 0.3);
}
.hscroll-arrow-left {
  left: -8px;
}
.hscroll-arrow-right {
  right: -8px;
}
@media (max-width: 720px) {
  .hscroll-arrow {
    display: none; /* на тач-устройствах достаточно свайпа */
  }
  .hscroll figure {
    flex-basis: 190px;
  }
}

/* Architecture flow - EA на графике -> MTAgent -> панель, три стадии со стрелками */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.flow-arrow {
  align-self: center;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 1.25rem;
}
.flow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-card .stage {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.flow-card .material-icons {
  color: var(--accent);
  font-size: 28px;
}
.flow-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.flow-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* Security panel - янтарная плашка, использовать только для security/callout-контента */
.panel {
  background: linear-gradient(160deg, var(--amber-soft), transparent);
  border: 1px solid rgba(240, 180, 41, 0.28);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.panel .lock {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--amber-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel .lock .material-icons {
  color: var(--amber);
}
.panel h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.panel ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text-dim);
}
.panel li {
  margin-bottom: 8px;
}
.panel strong {
  color: var(--text);
}
@media (max-width: 600px) {
  .panel { flex-direction: column; }
}

/* Who it's for - список с картинкой сбоку */
.who-row {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}
.who-row h2 {
  text-align: left;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.who-row > div:first-child > p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 24px;
}
.who-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.who-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 1rem;
}
.who-list li:last-child {
  border-bottom: none;
}
.who-list .idx {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  padding-top: 2px;
  flex-shrink: 0;
}
.who-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.who-shot img {
  width: 100%;
  display: block;
}
@media (max-width: 720px) {
  .who-row { grid-template-columns: 1fr; }
  .who-row h2 { text-align: center; }
  .who-shot { max-width: 320px; margin: 0 auto; }
}

/* Pricing / CTA block */

.cta-block {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(135deg, var(--bg), var(--accent));
  border-radius: var(--radius);
  color: var(--white);
}

.cta-block h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-block p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 532px;
  margin: 0 auto;
}

.cta-grid .btn {
  justify-content: center;
}

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

.download-group.cta-cards {
  grid-template-columns: 1fr;
  max-width: 532px;
  margin: 12px auto 0;
}

.cta-cards .link-card {
  border-radius: 50px;
}

.cta-cards .link-card:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
  .cta-cards .link-card { justify-content: center; padding: 14px 36px; }
  .cta-cards .link-card .material-icons { font-size: 24px; }
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
  margin: 32px auto 0;
}

.demo-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}

.demo-form input {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border, var(--border));
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color var(--transition);
}

.demo-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.demo-form button {
  align-self: center;
  margin-top: 12px;
}

.demo-trap {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.shots-wrap {
  position: relative;
}

.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.shots-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
  z-index: 1;
}

.shots-prev {
  inset-inline-start: -14px;
}

.shots-next {
  inset-inline-end: -14px;
}

.shots-nav.off {
  opacity: 0;
  pointer-events: none;
}

/* на сенсорном экране лента листается пальцем */
@media (hover: none) {
  .shots-wrap .shots-nav { display: none; }
}

.shots-full {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.92);
  overflow: hidden;
}

.shots-full::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.shots-lock {
  overflow: hidden;
}

.shots-full-strip {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.shots-full-strip img {
  flex: 0 0 100%;
  width: 100%;
  height: calc(100dvh - 24px);
  align-self: center;
  object-fit: contain;
  scroll-snap-align: center;
}

.shots-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shots-full .shots-prev {
  inset-inline-start: 16px;
}

.shots-full .shots-next {
  inset-inline-end: 16px;
}

.shots img {
  flex: 0 0 auto;
  align-self: center;
  max-height: 600px;
  width: auto;
  height: auto;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  scroll-snap-align: center;
}

.demo-band {
  padding: 56px 24px 0;
}

.demo-cta h2 {
  margin-bottom: 28px;
}

/* Instruction page specific */

.guide-section {
  padding: 60px 24px;
}

.guide-step {
  margin-bottom: 56px;
}

.guide-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.guide-step-header .step-num {
  flex-shrink: 0;
  margin-bottom: 0;
}

/* Иконка-кружок в шапке секции (support-страница) - замена .step-num когда у секции нет номера */
.support-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--bull));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-step-icon .material-icons {
  font-size: 28px;
}

/* Крупная иконка в hero - только на support-странице */
.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent-soft);
  margin-bottom: 20px;
}
.hero-icon .material-icons {
  font-size: 44px;
  color: var(--accent);
}

.guide-step-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.guide-step p,
.guide-step li {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 12px;
}

.guide-step ul,
.guide-step ol {
  padding-inline-start: 24px;
  margin-bottom: 16px;
}

.guide-step li {
  margin-bottom: 8px;
}

.screenshot-placeholder {
  width: 100%;
  height: 280px;
  background: var(--surface);
  border: 2px dashed rgba(79, 157, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 20px 0;
  gap: 8px;
}

.screenshot-placeholder .material-icons {
  font-size: 24px;
  opacity: 0.5;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  transition: all var(--transition);
}

.link-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

/* зеркальный сдвиг при письме справа налево */
[dir="rtl"] .link-card:hover {
  transform: translateX(-6px);
}

.link-card .material-icons {
  font-size: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.link-card-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}
.link-card-text span {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.qr-card {
  display: flex;
  flex-shrink: 0;
  margin-inline-start: auto;
}

.qr-card svg {
  border-radius: 4px;
}

@media (max-width: 600px) {
  .qr-card { display: none; }
}

.download-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 600px) {
  .download-group { grid-template-columns: 1fr; }
}

.link-card-secondary {
  background: var(--surface);
  box-shadow: none;
  border: 1px solid var(--border);
}
.link-card-secondary .material-icons {
  color: var(--text-dim);
}

.link-card-wrap {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

/* сдвиг берёт на себя обёртка - у вложенной карточки он съедается обрезкой */
.link-card-wrap:has(.link-card:hover) {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}

[dir="rtl"] .link-card-wrap:has(.link-card:hover) {
  transform: translateX(-6px);
}

.link-card-wrap .link-card {
  box-shadow: none;
  margin-bottom: 0;
}

.link-card-wrap .link-card:hover {
  transform: none;
}
.download-group > .link-card {
  margin-bottom: 0;
}
.link-card-wrap .hint-box-warn {
  margin: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-plate {
  display: flex;
}

.platform-plate-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
}

.platform-plate-item + .platform-plate-item {
  border-left: 1px solid var(--border);
}
[dir="rtl"] .platform-plate-item + .platform-plate-item {
  border-left: none;
  border-right: 1px solid var(--border);
}

.platform-plate-item .material-icons {
  font-size: 26px;
  color: var(--accent);
  flex-shrink: 0;
}

.platform-plate-item.is-soon {
  color: var(--text-mute);
  cursor: default;
}
.platform-plate-item.is-soon .material-icons {
  color: var(--text-mute);
}

.platform-plate-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(240, 180, 41, 0.4);
  padding: 3px 10px;
  border-radius: 100px;
  margin-inline-start: 8px;
}

@media (max-width: 600px) {
  .platform-plate { flex-direction: column; }
  .platform-plate-item + .platform-plate-item {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

.hint-box {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
}
.hint-box .material-icons {
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}
.hint-box p {
  margin: 0;
  font-size: inherit;
}

.hint-box-warn {
  background: var(--amber-soft);
  border: 1px solid rgba(240, 180, 41, 0.3);
  margin-top: 4px;
}
.hint-box-warn .material-icons {
  color: var(--amber);
  opacity: 1;
}

/* раскрывающийся вопрос в разделе частых вопросов */
.faq {
  border-block-end: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  flex-shrink: 0;
  width: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.faq[open] summary::before {
  content: "−";
}

.faq summary:hover {
  color: var(--accent);
}

.faq p {
  padding-block-end: 14px;
  padding-inline-start: 1.6rem;
  color: var(--text-dim);
}

/* Info box */
.info-box {
  background: var(--accent-soft);
  border-inline-start: 4px solid var(--accent);
  border-start-start-radius: 0;
  border-start-end-radius: var(--radius-sm);
  border-end-end-radius: var(--radius-sm);
  border-end-start-radius: 0;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-box .material-icons {
  color: var(--accent);
  font-size: 22px;
  margin-top: 2px;
}
.info-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* Footer */

.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 36px 24px;
  font-size: 0.9rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
}
.footer a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap; /* если не помещается на мобиле - переносим */
}

/* Footer-ссылка с иконкой слева от текста (Home/Setup/Support) */
.footer-ico {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-ico .material-icons {
  font-size: 16px;
}

/* Responsive */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero .subtitle {
    font-size: 1.1rem;
  }
  .hero-small h1 {
    font-size: 1.9rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .section {
    padding: 56px 20px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .steps {
    flex-direction: column;
    align-items: center;
  }
  .step:not(:last-child)::after {
    display: none;
  }
  .cta-block {
    padding: 40px 20px;
  }
  .shots img {
    max-height: 440px;
  }
  .demo-band {
    padding: 44px 20px 0;
  }
  .cta-block h2 {
    font-size: 1.5rem;
  }
  .nav-links {
    gap: 20px; /* в иконочном режиме пунктам нужно больше воздуха, чем было бы с текстом */
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .nav-logo-sub {
    display: none; /* «/Док» прячем - декоративно и не влезает */
  }
  /* На планшете/телефоне nav-пункты сворачиваются в одни иконки; кликабельность сохраняется */
  .nav-ico-text { display: none; }
  .nav-ico { gap: 0; }
  .nav-ico .material-icons { font-size: 22px; } /* крупнее, т.к. теперь единственный визуал */
}

@media (max-width: 480px) {
  .hero {
    min-height: 56vh;
    padding: 80px 16px 40px;
  }
  .hero-small {
    min-height: 34vh;
    padding: 76px 16px 32px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
  .nav {
    padding: 0 12px;
  }
  .nav-logo {
    font-size: 1.25rem;
  }
  .nav-logo-text,
  .nav-logo-sub {
    display: none;
  }
  .nav-links { gap: 16px; } /* самые узкие экраны - чуть плотнее чем на планшете */
}

/* Blog - без готовых макетов (см. CLAUDE.md), собрано на существующих токенах и паттернах .card/.guide-section */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* .blog-card добавляется вторым классом к .card (см. style.css выше) - тот же вид, что у карточек "Why MTRemote" на главной */
.blog-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.blog-card-date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.blog-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
  padding: 40px 24px;
}

.blog-post-date {
  opacity: 0.85;
}

.blog-post-back {
  padding-top: 0;
  text-align: center;
}

/* Тело поста - типографика для HTML, отрендеренного Parsedown-ом из Markdown */
.blog-post-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 40px 0 16px;
}

.blog-post-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}

.blog-post-body p,
.blog-post-body li {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 12px;
}

.blog-post-body ul,
.blog-post-body ol {
  padding-inline-start: 24px;
  margin-bottom: 16px;
}

.blog-post-body a {
  color: var(--accent);
}

.blog-post-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.blog-post-body blockquote {
  border-inline-start: 4px solid var(--accent);
  padding-inline-start: 16px;
  color: var(--text-dim);
  font-style: italic;
  margin: 16px 0;
}

.blog-post-body code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.blog-post-body pre {
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 16px 0;
}

.blog-post-body pre code {
  background: none;
  padding: 0;
}
