/* ==========================================================================
   STG-soft — High-End Studio Design System (Apple & Toimi.pro Style)
   Поддержка тем оформления: Dark (по умолчанию) и Light
   Фирменный акцент: #76CFC2 (Dark) / #199B8B (Light)
   ========================================================================== */

/* --- ТЁМНАЯ ТЕМА (Dark Theme) --- */
:root,
:root[data-theme="dark"] {
  --bg-primary: #0a0b10;
  --bg-secondary: #12141f;
  --bg-tertiary: #181b29;
  --bg-card: rgba(20, 23, 35, 0.72);
  --bg-card-hover: rgba(28, 32, 48, 0.88);
  --bg-glass-nav: rgba(10, 11, 16, 0.82);

  --text-main: #f5f6fa;
  --text-muted: #959bb0;
  --text-faint: #5b6277;

  --accent: #76CFC2;
  --accent-rgb: 118, 207, 194;
  --accent-hover: #5fc4b5;
  --accent-glow: rgba(118, 207, 194, 0.28);
  --accent-surface: rgba(118, 207, 194, 0.12);
  --accent-contrast: #071210;

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(118, 207, 194, 0.35);
  --input-bg: rgba(255, 255, 255, 0.04);

  --shadow-subtle: 0 12px 32px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px -5px var(--accent-glow);

  --mockup-bg: #1e2233;
  --mockup-bar: #161824;
}

/* --- СВЕТЛАЯ ТЕМА (Apple Light Studio) --- */
:root[data-theme="light"] {
  --bg-primary: #f6f7fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eceef5;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-glass-nav: rgba(246, 247, 251, 0.82);

  --text-main: #131622;
  --text-muted: #565d72;
  --text-faint: #8a92a7;

  --accent: #199b8b;
  --accent-rgb: 25, 155, 139;
  --accent-hover: #148073;
  --accent-glow: rgba(25, 155, 139, 0.22);
  --accent-surface: rgba(25, 155, 139, 0.1);
  --accent-contrast: #ffffff;

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(25, 155, 139, 0.4);
  --input-bg: #f0f2f8;

  --shadow-subtle: 0 12px 32px -10px rgba(18, 21, 34, 0.08);
  --shadow-glow: 0 0 30px -5px var(--accent-glow);

  --mockup-bg: #ffffff;
  --mockup-bar: #e9ebf2;
}

/* --- БАЗОВЫЕ КОНСТАНТЫ --- */
:root {
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

main {
  flex: 1;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

p {
  margin: 0;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   ИКОНКИ И СТАТУСНЫЕ ЭЛЕМЕНТЫ
   ========================================================================== */

.icon, .icon-xs, .icon-sm, .icon-lg, .icon-xl {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-xs { width: 0.875rem; height: 0.875rem; }
.icon-sm { width: 1.125rem; height: 1.125rem; }
.icon { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }
.icon-xl { width: 2.25rem; height: 2.25rem; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--accent-surface);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-glow 2s infinite ease-in-out;
}

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

.font-bold {
  font-weight: 700;
}

/* ==========================================================================
   АДАПТИВНАЯ ШАПКА И НАВИГАЦИЯ
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent) 0%, #167a6d 100%);
  color: #ffffff;
  box-shadow: 0 0 16px var(--accent-glow);
}

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

.nav-main {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
@media (min-width: 1120px) {
  .nav-main {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.885rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: var(--bg-card);
  border-color: var(--border);
}

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

@media (max-width: 1250px) {
  .header-status {
    display: none;
  }
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(15deg);
}

.dropdown {
  position: relative;
}

.caret {
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid currentColor;
  transition: transform 0.2s ease;
}

.dropdown:hover .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  left: -20px;
  top: 100%;
  display: none;
  padding-top: 0.75rem;
  animation: drop-appear 0.2s ease;
}

@keyframes drop-appear {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-panel {
  width: 22rem;
  padding: 0.65rem;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle), var(--shadow-glow);
  display: grid;
  gap: 0.25rem;
}

.dp-item {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.dp-item:hover {
  background: var(--accent-surface);
  border-left: 2px solid var(--accent);
}

.dp-title {
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--text-main);
}

.dp-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.header-phone:hover {
  color: var(--accent);
}

@media (max-width: 1200px) {
  .header-phone { display: none; }
}
@media (max-width: 640px) {
  .header-cta { display: none; }
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
}
@media (min-width: 1120px) {
  .burger { display: none !important; }
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: all 0.2s ease;
}
.burger.is-active span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.burger.is-active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ==========================================================================
   ПОЛНОЭКРАННОЕ МОБИЛЬНОЕ МЕНЮ (100dvh, привязано к <body>)
   ========================================================================== */

.mobile-menu {
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - 4.5rem);
  height: calc(100dvh - 4.5rem);
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 9999;
  display: none;
  padding: 1.5rem 1.5rem max(2rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.mobile-menu.is-open {
  display: block;
  animation: mobile-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobile-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1120px) {
  .mobile-menu,
  .mobile-menu.is-open {
    display: none !important;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-group {
  display: grid;
  gap: 0.4rem;
}
.mobile-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.m-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}
.m-link:hover, .m-link.active {
  color: var(--text-main);
  background: var(--accent-surface);
  border-color: var(--accent);
}

.mobile-contacts {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.5rem;
}
.m-contact-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}
.m-location {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ==========================================================================
   КНОПКИ
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.85rem;
  padding: 0 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-sm {
  height: 2.35rem;
  padding: 0 1rem;
  font-size: 0.825rem;
}

.btn-lg {
  height: 3.35rem;
  padding: 0 2rem;
  font-size: 1.05rem;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 0 20px -3px var(--accent-glow);
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 28px -2px var(--accent-glow);
}

.btn-glass {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}
.btn-row-center {
  justify-content: center;
}

/* ==========================================================================
   HERO СЕКЦИЯ (Apple Style)
   ========================================================================== */

.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}

.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.35;
}
.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -100px;
  right: -50px;
}
.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: #3b5bdb;
  top: 15%;
  left: -100px;
  opacity: 0.15;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.65rem;
  line-height: 1.1;
  max-width: 860px;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .hero-title { font-size: 3.5rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 4.4rem; }
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .hero-sub { font-size: 1.25rem; }
}

/* ==========================================================================
   МАКЕТЫ УСТРОЙСТВ И ВИДЕО (Apple Showcase)
   ========================================================================== */

.media-mockup {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--mockup-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle), var(--shadow-glow);
  overflow: hidden;
  margin-top: 2.5rem;
}

.mockup-header {
  height: 2.5rem;
  background: var(--mockup-bar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.mockup-url-bar {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  height: 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  color: var(--text-muted);
}

.mockup-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mockup-video,
.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  outline: none;
  transition: transform 0.4s ease;
}
.media-mockup:hover .mockup-video {
  transform: scale(1.02);
}

.mockup-fallback-graphic {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--accent);
  padding: 2rem;
  text-align: center;
}
.mockup-fallback-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Кнопка включения звука на видео */
.video-sound-btn {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 11, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.video-sound-btn:hover {
  background: rgba(10, 11, 16, 0.9);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 20px -5px var(--accent-glow);
}

.video-sound-btn.is-unmuted {
  background: rgba(118, 207, 194, 0.18);
  border-color: var(--accent);
  color: var(--accent);
}

.sound-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .video-sound-btn {
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   БЕГУЩАЯ СТРОКА ТЕХНОЛОГИЙ (Marquee)
   ========================================================================== */

.marquee-wrap {
  width: 100%;
  overflow: hidden;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  position: relative;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: marquee-scroll 28s linear infinite;
  align-items: center;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.marquee-item svg {
  color: var(--accent);
  opacity: 0.75;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.marquee-item:hover {
  color: var(--text-main);
}
.marquee-item:hover svg {
  transform: scale(1.2);
  opacity: 1;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   BENTO GRID & КАРТОЧКИ СО SPOTLIGHT
   ========================================================================== */

.bento-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    var(--accent-surface),
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.spotlight-card:hover::after {
  opacity: 1;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle), 0 0 25px -10px var(--accent-glow);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-media img {
  transform: scale(1.05);
}

.card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-lg);
  background: var(--accent-surface);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.card-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-link-arrow {
  margin-top: auto;
  padding-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.card-link-arrow svg {
  transition: transform 0.2s ease;
}
.card:hover .card-link-arrow svg {
  transform: translateX(4px);
}

/* ==========================================================================
   СЕКЦИИ И ЗАГОЛОВКИ
   ========================================================================== */

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-head {
  margin-bottom: 3.5rem;
}
.section-head.text-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-pretitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .section-title { font-size: 2.85rem; }
}

.section-desc {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip, .chip-choice {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover, .chip-choice:hover {
  color: var(--text-main);
  border-color: var(--accent);
}

.chip.active, .chip-choice.active {
  background: var(--accent-surface);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px -3px var(--accent-glow);
}

.metrics-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}
.metric-val {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   МИНИМАЛИСТИЧНАЯ ТАБЛИЦА ПРАЙСА (Apple / Stripe Style)
   ========================================================================== */

.price-controls-box {
  margin-top: 2rem;
  max-width: 820px;
}

.price-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.price-search-bar svg {
  position: absolute;
  left: 1.15rem;
  color: var(--accent);
  pointer-events: none;
}

.price-search-input {
  width: 100%;
  height: 3.35rem;
  padding: 0 1.25rem 0 3.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s ease;
}

.price-search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 20px -5px var(--accent-glow);
}

.price-table-container {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
}

.price-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 1rem 1.75rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.price-table-body {
  display: flex;
  flex-direction: column;
}

.price-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row:hover {
  background: var(--bg-card-hover);
}

.price-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s ease, transform 0.2s ease;
}

.price-service-link svg {
  color: var(--accent);
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.price-row:hover .price-service-link {
  color: var(--accent);
}

.price-row:hover .price-service-link svg {
  transform: translate(2px, -2px);
  opacity: 1;
}

.price-cat-badge {
  display: inline-flex;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.price-cat-accent {
  background: var(--accent-surface);
  color: var(--accent);
  border-color: var(--accent);
}

.price-amount {
  text-align: right;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-row-featured {
  background: rgba(118, 207, 194, 0.05);
}

@media (max-width: 768px) {
  .price-table-header { display: none; }
  .price-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1.25rem 1.25rem;
  }
  .price-amount {
    text-align: left;
    font-size: 1.25rem;
    color: var(--accent);
  }
}

/* ==========================================================================
   ТАРИФНАЯ СЕТКА БИТРИКС24 (Apple / Toimi Comparison)
   ========================================================================== */

.b24-billing-switcher {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  gap: 0.35rem;
  box-shadow: var(--shadow-subtle);
  margin-top: 1.75rem;
}

.b24-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.b24-switch-btn.active {
  background: var(--accent-surface);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px -3px var(--accent-glow);
}

.b24-discount-pill {
  font-size: 0.725rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.b24-pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 3.5rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .b24-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .b24-pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .b24-pricing-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.b24-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.b24-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle), 0 0 25px -10px var(--accent-glow);
}

.b24-card-featured {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 32px -8px var(--accent-glow);
}

.b24-featured-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: radial-gradient(120px circle at 50% 0%, var(--accent-surface), transparent 85%);
  pointer-events: none;
}

.b24-card-header {
  min-height: 108px;
  display: flex;
  flex-direction: column;
}

.b24-plan-badge {
  display: inline-block;
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.b24-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.b24-plan-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.b24-plan-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.b24-meta-wrap {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  margin: 1rem 0;
}

.b24-users-pill, .b24-disk-pill {
  font-size: 0.775rem;
  color: var(--text-main);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b24-disk-pill svg {
  color: var(--accent);
}

.b24-select-wrap {
  width: 100%;
}

.b24-ent-select {
  width: 100%;
  height: 2rem;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0 1.5rem 0 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background-color: var(--bg-tertiary);
  color: var(--accent);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2376CFC2' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}
.b24-ent-select:focus {
  outline: none;
  box-shadow: 0 0 10px var(--accent-glow);
}

.b24-price-box {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.b24-old-price {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-decoration: line-through;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.b24-old-price-hidden {
  visibility: hidden;
}

.b24-price-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.b24-price-value span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.b24-price-note {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.b24-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 1.25rem;
}

.b24-features-list {
  display: grid;
  gap: 0.55rem;
  font-size: 0.785rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.75rem;
}

.b24-check {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.25rem;
}

.b24-order-btn {
  margin-top: auto;
  width: 100%;
  height: 2.5rem;
  font-size: 0.825rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   FAQ АККОРДЕОНЫ
   ========================================================================== */

.faq-list {
  display: grid;
  gap: 0.85rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 0 1.5rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.faq-item summary {
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "—";
}
.faq-answer {
  padding-bottom: 1.35rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   ФОРМЫ И ПОЛЯ ВВОДА
   ========================================================================== */

.form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: grid;
  gap: 1.25rem;
  box-shadow: var(--shadow-subtle);
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.input, .select, .textarea {
  width: 100%;
  height: 3rem;
  padding: 0 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.textarea {
  height: auto;
  min-height: 110px;
  padding: 0.85rem 1.15rem;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-secondary);
  box-shadow: 0 0 15px -3px var(--accent-glow);
}

/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================================== */

.breadcrumbs {
  font-size: 0.825rem;
  color: var(--text-faint);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumbs a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs .current {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО ПОДТВЕРЖДЕНИЯ (Apple Style)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  width: 100%;
  max-width: 460px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-subtle), var(--shadow-glow);
  transform: translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.active .modal-box {
  transform: translateY(0);
}
.modal-icon-wrap {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--accent-surface);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.modal-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.modal-close-btn {
  width: 100%;
}

/* ==========================================================================
   ПОДВАЛ (Footer)
   ========================================================================== */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: 4.5rem;
}
.footer-top {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  padding-bottom: 3.5rem;
}
@media (min-width: 640px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-desc {
  margin: 1.25rem 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.775rem;
  color: var(--text-muted);
}
.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}
.footer-links {
  display: grid;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-direct-phone {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}
.footer-direct-email {
  display: block;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.footer-address, .footer-hours {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.ai-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent-surface);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.825rem;
  color: var(--text-faint);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a:hover {
  color: var(--text-muted);
}
/* ==========================================================================
   Адаптивные фиксы для мобильных экранов (320px – 480px)
   ========================================================================== */

/* 1. Защита от бокового скролла на уровне окна */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* 2. Гарантированно скрываем кнопку «Обсудить проект» в шапке на мобилках */
@media (max-width: 768px) {
  .site-header .header-cta {
    display: none !important;
  }

  .header-inner {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    gap: 0.5rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  /* Уменьшаем логотип на узких смартфонах, чтобы бургер свободно встал */
  .brand {
    font-size: 1.05rem;
    gap: 0.5rem;
  }
  .brand-logo {
    width: 1.95rem;
    height: 1.95rem;
  }
}

/* 3. Фикс сползания зеленого кружка в бейдже Hero при переносе текста */
.hero-tag {
  display: inline-flex;
  align-items: flex-start;
  text-wrap: balance;
  line-height: 1.4;
  max-width: 100%;
}

.hero-tag .status-dot {
  margin-top: 5px;
  flex-shrink: 0;
}

/* 4. Адаптивный размер заголовка для компактных экранов */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.15rem;
    line-height: 1.15;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }
}

/* Аккуратное оформление блока капчи */
.captcha-container-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.captcha-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rust);
}

.smart-captcha {
  display: flex;
  justify-content: center;
  width: 100%;
}