/* ==========================================================================
   CRYFY STUDIOS — DESIGN SYSTEM & STYLESHEET
   Честный, чистый и производительный стиль независимой студии
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ЛОКАЛЬНЫЕ ШРИФТЫ (Inter: 400, 500, 600, 700 с поддержкой кириллицы)
   Никаких внешних запросов к Google Fonts — стабильно работает в РФ
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. ПЕРЕМЕННЫЕ ДИЗАЙН-СИСТЕМЫ
   -------------------------------------------------------------------------- */

:root {
  /* Фирменный жёлтый акцент */
  --color-yellow: #ffd50a;
  --color-yellow-hover: #ffe033;
  --color-yellow-glow: rgba(255, 213, 10, 0.16);

  /* Тёмные базовые поверхности */
  --bg-page: #0a0a0d;
  --bg-surface: #121217;
  --bg-surface-elevated: #181820;
  --bg-surface-subtle: #0e0e13;
  --bg-header: rgba(10, 10, 13, 0.88);

  /* Границы и разделители */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-yellow: rgba(255, 213, 10, 0.35);

  /* Текстовые цвета (AA / AAA контраст) */
  --text-main: #f5f5f7;
  --text-secondary: #9e9ea8;
  --text-muted: #6b6b78;
  --text-inverse: #0a0a0d;

  /* Статусы */
  --status-green: #10b981;
  --status-green-bg: rgba(16, 185, 129, 0.12);
  --status-amber: #f59e0b;
  --status-amber-bg: rgba(245, 158, 11, 0.12);
  --status-blue: #3b82f6;
  --status-blue-bg: rgba(59, 130, 246, 0.12);

  /* Типографика */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Сетка и контейнер */
  --container-max: 1200px;
  --container-pad: 24px;
  --header-height: 72px;

  /* Тайминги анимаций (150-250ms) */
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   3. СБРОС И БАЗОВЫЕ ПРАВИЛА
   -------------------------------------------------------------------------- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-page);
  color: var(--text-main);
}

/* Доступный фокус для клавиатуры */
:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
}

/* Контейнер */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Ограничение длины строки для комфортного чтения */
p, .hero-lead, .section-desc {
  max-width: 68ch;
}

.max-w-700 {
  max-width: 640px;
}

.text-center {
  text-align: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   4. КНОПКИ (TOUCH TARGETS ≥ 44px)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  font-family: var(--font-main);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

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

/* Основная жёлтая кнопка (AA / AAA контраст: тёмный текст на ярком жёлтом) */
.btn-yellow {
  background-color: var(--color-yellow);
  color: var(--text-inverse);
  border-color: var(--color-yellow);
}

.btn-yellow:hover {
  background-color: var(--color-yellow-hover);
  border-color: var(--color-yellow-hover);
}

/* Контурная кнопка */
.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  background-color: rgba(255, 213, 10, 0.05);
}

/* Компактная кнопка */
.btn-sm {
  min-height: 38px;
  padding: 7px 16px;
  font-size: 0.85rem;
}

.w-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. ШАПКА И НАВИГАЦИЯ
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: border-color var(--transition-fast);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

/* Десктопное меню */
.desktop-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--color-yellow);
}

/* Правая группа действий */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Переключатель языка RU / EN */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.lang-switch:hover {
  border-color: var(--border-medium);
  color: var(--text-main);
}

.lang-opt {
  font-weight: 500;
}

.lang-opt.active {
  color: var(--color-yellow);
  font-weight: 700;
}

.lang-sep {
  opacity: 0.35;
}

/* Бургер-кнопка для мобильных */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
}

.menu-bar {
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle.open .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open .menu-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобильная шторка меню */
.mobile-menu {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px var(--container-pad) 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.mobile-nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover {
  color: var(--color-yellow);
}

/* --------------------------------------------------------------------------
   6. HERO СЕКЦИЯ
   -------------------------------------------------------------------------- */

.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 70px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 213, 10, 0.08);
  border: 1px solid rgba(255, 213, 10, 0.25);
  color: var(--color-yellow);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-yellow);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   7. СЕКЦИИ И ТИПОГРАФИКА
   -------------------------------------------------------------------------- */

.section {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.section-heading {
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. ПРОДУКТЫ СТУДИИ (3 КАРТОЧКИ)
   -------------------------------------------------------------------------- */

.products-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 36px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.product-card:hover {
  border-color: var(--border-medium);
}

.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.product-category {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Статус-бейджи */
.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.status-active {
  background: var(--status-green-bg);
  color: var(--status-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-beta {
  background: var(--status-amber-bg);
  color: var(--status-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-soon {
  background: var(--status-blue-bg);
  color: var(--status-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.product-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
}

.product-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
}

/* Список ключевых возможностей */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: #d1d1db;
  line-height: 1.5;
}

.feature-icon {
  color: var(--color-yellow);
  font-weight: 700;
  line-height: 1.4;
}

/* Платформы */
.product-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.platform-pill {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Действия карточки */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.action-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Место под реальный скриншот (аккуратный плейсхолдер) */
.screenshot-frame {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  background: linear-gradient(145deg, #101015 0%, #0b0b0e 100%);
}

.placeholder-top-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.window-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.placeholder-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  gap: 8px;
}

.placeholder-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-yellow);
  background: rgba(255, 213, 10, 0.08);
  border: 1px solid rgba(255, 213, 10, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
}

.placeholder-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
}

.placeholder-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Тизер КЕССОН */
.teaser-card {
  border-color: rgba(255, 213, 10, 0.2);
}

.teaser-bg {
  background: radial-gradient(circle at 50% 50%, rgba(255, 213, 10, 0.06) 0%, #0c0c10 70%);
}

.teaser-symbol {
  font-size: 2rem;
  color: var(--color-yellow);
  margin-bottom: 4px;
}

/* Реальное изображение (когда пользователь заменит плейсхолдер) */
.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   9. ЭКОСИСТЕМА (СВЯЗЬ ЧЕРЕЗ CRYTALK АККАУНТ)
   -------------------------------------------------------------------------- */

.ecosystem-diagram {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 44px 36px;
  margin-bottom: 32px;
}

/* Центральное ядро */
.eco-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 320px;
  margin: 0 auto 36px;
  padding: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-yellow);
  border-radius: 12px;
  box-shadow: 0 0 25px var(--color-yellow-glow);
}

.core-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 213, 10, 0.12);
  color: var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.core-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.core-sub {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--color-yellow);
}

/* Узлы экосистемы (3 колонки) */
.eco-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

.eco-node {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
}

.node-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-yellow);
  margin-bottom: 8px;
}

.node-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.node-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* 3 карточки преимуществ */
.eco-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
}

.benefit-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-yellow);
  margin-bottom: 8px;
}

.benefit-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.benefit-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. О СТУДИИ (4 ЧЕСТНЫХ ПРИНЦИПА)
   -------------------------------------------------------------------------- */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.principle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  transition: border-color var(--transition-fast);
}

.principle-card:hover {
  border-color: var(--border-medium);
}

.principle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-yellow);
}

.principle-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.principle-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.principle-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. КОНТАКТЫ
   -------------------------------------------------------------------------- */

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.accent-icon {
  color: var(--color-yellow);
  border-color: rgba(255, 213, 10, 0.25);
  background: rgba(255, 213, 10, 0.08);
}

.contact-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.contact-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.email-box {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
}

.email-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--color-yellow);
}

.btn-copy {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  min-height: 36px;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--color-yellow);
}

.contact-actions {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   12. ПОДВАЛ (FOOTER)
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 36px;
  background-color: #07070a;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 26px;
  width: auto;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col-title {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-yellow);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. TOAST УВЕДОМЛЕНИЕ
   -------------------------------------------------------------------------- */

.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--color-yellow);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 1000;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   14. АДАПТИВНОСТЬ (360px → WIDE)
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .eco-nodes {
    grid-template-columns: 1fr;
  }
  .eco-benefits-grid {
    grid-template-columns: 1fr;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 18px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hide-mobile {
    display: none !important;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 50px;
    min-height: auto;
  }

  .section {
    padding: 64px 0;
  }

  .product-card {
    padding: 24px 20px;
  }

  .ecosystem-diagram {
    padding: 28px 18px;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   15. ПРЕФЕРЕНСЫ ДВИЖЕНИЯ (PREFERS-REDUCED-MOTION)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-canvas {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   16. ПРАВКИ ВЫРАВНИВАНИЯ (2026-10-21)
   -------------------------------------------------------------------------- */

/* Подзаголовок в центрированных секциях сам по центру: у <p> есть max-width,
   а text-align родителя центрирует только строки, не сам блок. */
.text-center > .section-desc,
.text-center > p {
  margin-left: auto;
  margin-right: auto;
}

/* Ровные переносы в заголовках вместо «висящих» слов. */
.section-title,
.product-name {
  text-wrap: balance;
}

.hero-title {
  text-wrap: pretty;
}

.hero-lead,
.section-desc,
.product-summary {
  text-wrap: pretty;
}

/* Служебная подсказка «Подставьте assets/…» — для разработчика, посетителям не нужна. */
.placeholder-hint {
  display: none;
}

/* Телефоны: кнопки на всю ширину, одной колонкой, одинакового размера. */
@media (max-width: 560px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons,
  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn,
  .product-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .action-note {
    text-align: center;
  }

  .footer-bottom {
    text-align: left;
    align-items: flex-start;
  }
}

/* Планшеты (561–992 px): не растягивать короткие карточки в одну колонку на всю ширину. */
@media (min-width: 561px) and (max-width: 992px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eco-nodes,
  .eco-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 561px) and (max-width: 720px) {
  .eco-nodes,
  .eco-benefits-grid {
    grid-template-columns: 1fr;
  }
}
