/* ==========================================================================
   1С:БухОбслуживание.Оптимум — Основные стили
   Фирменная палитра:
   - Основной жёлтый: #FFE128
   - Красный акцентный/кнопки: #E10032
   - Белый фон/блоки: #FFFFFF
   - Чёрный текст: #000000
   Типографика:
   - Заголовки: Unbounded
   - Основной текст: Geologica
   ========================================================================== */

:root {
  --color-yellow: #FFE128;
  --color-yellow-hover: #F2D214;
  --color-yellow-light: #FFF9D2;
  --color-red: #E10032;
  --color-red-hover: #C5002C;
  --color-red-light: #FDF1F3;
  --color-black: #000000;
  --color-dark: #12141A;
  --color-dark-surface: #1E222B;
  --color-white: #FFFFFF;
  --color-gray-50: #F8F9FA;
  --color-gray-100: #F1F3F5;
  --color-gray-200: #E9ECEF;
  --color-gray-300: #DEE2E6;
  --color-gray-500: #868E96;
  --color-gray-700: #495057;
  --color-gray-900: #212529;

  --font-heading: 'Unbounded', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 8px 24px rgba(225, 0, 50, 0.28);
  --shadow-yellow: 0 8px 24px rgba(255, 225, 40, 0.35);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  max-width: 100%;
  padding-top: 80px; /* Offset for fixed header */
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  user-select: none;
  white-space: nowrap;
  max-width: 100%;
}

.btn-red {
  background-color: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
}

.btn-red:hover {
  background-color: var(--color-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(225, 0, 50, 0.36);
}

.btn-yellow {
  background-color: var(--color-yellow);
  color: var(--color-black);
  box-shadow: var(--shadow-yellow);
}

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

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

.btn-dark:hover {
  background-color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-dark);
  border-color: var(--color-gray-300);
}

.btn-outline:hover {
  background-color: var(--color-gray-100);
  border-color: var(--color-dark);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background-color: var(--color-yellow);
  color: var(--color-black);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-black);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--color-gray-700);
  line-height: 1.6;
}

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

/* ==========================================================================
   Header (Закреплённая шапка)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-200);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.98);
}

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

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* Menu */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray-900);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-red);
  transition: var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-black);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-red);
}

.icon-phone {
  stroke: var(--color-red);
}

.header-cta-btn {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-black);
  border-radius: 2px;
  transition: var(--transition);
}

.burger-btn.active .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.active .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn.active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 40px 0;
  overflow: hidden;
  background-color: #151922;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(14, 17, 24, 0.94) 0%, rgba(14, 17, 24, 0.88) 45%, rgba(14, 17, 24, 0.4) 100%);
}

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

.hero-content {
  max-width: 680px;
  color: var(--color-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 225, 40, 0.15);
  border: 1px solid var(--color-yellow);
  color: var(--color-yellow);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-yellow);
  box-shadow: 0 0 10px var(--color-yellow);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--color-white);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--color-gray-300);
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-hero {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.hero-trust-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-gray-200);
}

.trust-check {
  color: var(--color-yellow);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================================================
   Strip / Credibility Section
   ========================================================================== */

.strip-section {
  background-color: var(--color-white);
  padding: 40px 0;
  border-bottom: 1px solid var(--color-gray-200);
}

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

.stat-card {
  padding: 24px 20px;
  border-left: 3px solid var(--color-yellow);
  background: var(--color-gray-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border-left-color: var(--color-red);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-gray-700);
  line-height: 1.4;
}

/* ==========================================================================
   Tech & Care Section (Технологии 1С и наша забота)
   ========================================================================== */

.tech-section {
  padding: 40px 0;
  background-color: var(--color-white);
}

.tech-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.tech-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: 44px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.tech-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gray-300);
}

.tech-card-platform {
  border-top: 6px solid var(--color-yellow);
}

.tech-card-team {
  border-top: 6px solid var(--color-red);
}

.tech-card-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-yellow-light);
  color: var(--color-black);
  margin-bottom: 12px;
}

.tech-card-badge.red-badge {
  background: var(--color-red-light);
  color: var(--color-red);
}

.tech-card-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-black);
}

.tech-card-sub {
  font-size: 0.95rem;
  color: var(--color-gray-500);
  margin-bottom: 32px;
}

.tech-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--color-yellow);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-box.red-icon {
  background-color: var(--color-red);
  color: var(--color-white);
}

.feature-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.92rem;
  color: var(--color-gray-700);
  line-height: 1.5;
}

.about-company-note {
  margin-top: 48px;
  text-align: center;
}

.about-note-inner {
  display: inline-block;
  background: var(--color-yellow-light);
  border: 1px solid var(--color-yellow);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  color: var(--color-black);
}

.inline-link {
  font-weight: 600;
  color: var(--color-red);
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--color-black);
}

/* ==========================================================================
   Services & Pricing Section
   ========================================================================== */

.services-section {
  padding: 40px 0;
  background-color: var(--color-gray-50);
}

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

.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gray-300);
}

.featured-pricing-card {
  border: 2px solid var(--color-red);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background-color: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.pricing-badge-muted {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.pricing-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-black);
}

.pricing-sub {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  min-height: 44px;
  margin-bottom: 24px;
}

.pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-gray-200);
}

.cost-prefix {
  font-size: 1.1rem;
  color: var(--color-gray-700);
}

.cost-val {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--color-black);
  letter-spacing: -0.02em;
}

.cost-period {
  font-size: 0.9rem;
  color: var(--color-gray-500);
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-list li {
  font-size: 0.92rem;
  color: var(--color-gray-700);
  position: relative;
  padding-left: 24px;
  line-height: 1.45;
}

.pricing-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-red);
  font-weight: 700;
}

/* Pricing Thesis Callout */
.pricing-thesis-box {
  background: var(--color-white);
  border: 1px solid var(--color-yellow);
  border-left: 8px solid var(--color-yellow);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.thesis-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-yellow);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.thesis-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-black);
}

.thesis-text {
  font-size: 1rem;
  color: var(--color-gray-700);
  line-height: 1.6;
  margin-bottom: 12px;
}

.thesis-link {
  font-weight: 600;
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.thesis-link:hover {
  color: var(--color-black);
}

/* ==========================================================================
   How We Work (Смартфон + Сценарии)
   ========================================================================== */

.how-section {
  padding: 40px 0;
  background-color: var(--color-white);
}

.how-work-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 48px;
}

/* Smartphone Mockup */
.phone-showcase {
  display: flex;
  justify-content: center;
}

.smartphone-frame {
  width: 320px;
  max-width: 100%;
  height: 620px;
  background: #11141C;
  border: 12px solid #282D39;
  border-radius: 44px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 140px;
  height: 22px;
  background: #282D39;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.phone-speaker {
  width: 44px;
  height: 4px;
  background: #424958;
  border-radius: 2px;
}

.phone-camera {
  width: 8px;
  height: 8px;
  background: #151820;
  border-radius: 50%;
}

.phone-screen {
  flex-grow: 1;
  background: #F8F9FA;
  display: flex;
  flex-direction: column;
  padding-top: 26px;
  user-select: none;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 4px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6C757D;
}

.app-header-bar {
  background: var(--color-yellow);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-user-avatar {
  width: 34px;
  height: 34px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.app-user-info {
  display: flex;
  flex-direction: column;
}

.app-app-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-black);
}

.app-status-online {
  font-size: 0.68rem;
  color: #198754;
  font-weight: 600;
}

.phone-app-content {
  flex-grow: 1;
  padding: 14px;
  overflow-y: auto;
}

.app-screen-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.app-screen-view.active {
  display: block;
}

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

/* Screen elements */
.chat-date {
  text-align: center;
  font-size: 0.7rem;
  color: #ADB5BD;
  margin-bottom: 10px;
}

.chat-bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 10px;
  position: relative;
}

.chat-in {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--color-black);
}

.chat-out {
  background: var(--color-dark);
  color: var(--color-white);
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.chat-time {
  display: block;
  font-size: 0.65rem;
  color: #868E96;
  text-align: right;
  margin-top: 4px;
}

.chat-out .chat-time {
  color: #CED4DA;
}

.card-screen-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--color-black);
}

.doc-upload-preview {
  background: var(--color-white);
  border: 1px dashed var(--color-gray-300);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.doc-icon {
  font-size: 1.5rem;
}

.doc-upload-meta strong {
  display: block;
  font-size: 0.8rem;
}

.doc-upload-meta span {
  font-size: 0.7rem;
  color: var(--color-gray-500);
}

.doc-status-badge {
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
}

.notify-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.notify-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.red-dot { background: var(--color-red); }
.yellow-dot { background: #F59F00; }

.notify-card strong {
  display: block;
  font-size: 0.78rem;
}

.notify-card p {
  font-size: 0.7rem;
  color: var(--color-gray-500);
}

.invoice-box {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  padding: 12px;
}

.inv-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.inv-btn {
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  margin-top: 10px;
}

.payment-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
}

.green-text { color: #2E7D32; font-weight: 700; }
.gray-text { color: #868E96; }

.report-summary {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.78rem;
}

.report-summary div {
  margin-bottom: 6px;
}

.report-total {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--color-gray-200);
  font-size: 0.85rem;
  color: var(--color-red);
}

.phone-bottom-nav {
  height: 48px;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 0.65rem;
  color: #ADB5BD;
  font-weight: 500;
}

.phone-bottom-nav span.active {
  color: var(--color-red);
  font-weight: 700;
}

/* Scenarios List on the right */
.scenarios-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scenario-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  cursor: pointer;
  transition: var(--transition);
}

.scenario-card:hover {
  background: var(--color-white);
  border-color: var(--color-yellow);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.scenario-card.active {
  background: var(--color-white);
  border: 2px solid var(--color-red);
  box-shadow: var(--shadow-md);
}

.scenario-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-gray-500);
  min-width: 32px;
  padding-top: 2px;
}

.scenario-card.active .scenario-num {
  color: var(--color-red);
}

.scenario-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-black);
}

.scenario-text {
  font-size: 0.9rem;
  color: var(--color-gray-700);
  line-height: 1.45;
}

.how-more-link {
  margin-top: 16px;
}

/* ==========================================================================
   Advantages Section
   ========================================================================== */

.adv-section {
  padding: 40px 0;
  background-color: var(--color-gray-50);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.adv-card {
  grid-column: span 2;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
}

.adv-grid .adv-card:nth-child(4),
.adv-grid .adv-card:nth-child(5) {
  grid-column: span 3;
}

.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-yellow);
}

.adv-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--color-yellow-light);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.adv-card:hover .adv-icon {
  background-color: var(--color-yellow);
}

.adv-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-black);
}

.adv-text {
  font-size: 0.95rem;
  color: var(--color-gray-700);
  line-height: 1.55;
}

.adv-page-link {
  margin-top: 24px;
}

/* ==========================================================================
   Audit Section (Основной жёлтый #FFE128 для акцентных секций)
   ========================================================================== */

.audit-section {
  padding: 40px 0;
  background-color: var(--color-white);
}

.audit-accent-card {
  background-color: var(--color-yellow);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  color: var(--color-black);
  box-shadow: var(--shadow-yellow);
  position: relative;
  overflow: hidden;
}

.audit-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--color-black);
  color: var(--color-white);
  margin-bottom: 16px;
}

.audit-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-black);
}

.audit-desc {
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: 1.15rem;
  color: var(--color-gray-900);
}

.audit-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.audit-step-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: var(--transition);
}

.audit-step-item:hover {
  background: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 10px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-black);
}

.step-text {
  font-size: 0.92rem;
  color: var(--color-gray-700);
  line-height: 1.5;
}

.audit-special-promo {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.promo-star {
  color: var(--color-yellow);
  font-size: 1.5rem;
}

.promo-text {
  font-size: 1.15rem;
}

.promo-text strong {
  color: var(--color-yellow);
  font-family: var(--font-heading);
}

/* Audit Form */
.audit-form-container {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray-700);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-gray-300);
  background: var(--color-white);
  color: var(--color-black);
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(225, 0, 50, 0.15);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 44px;
}

.form-textarea {
  border-radius: var(--radius-md);
  resize: vertical;
}

.btn-audit-submit {
  padding: 16px 28px;
  font-size: 0.95rem;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

/* Checkbox Style (turned OFF by default) */
.form-checkbox-row {
  margin-top: 12px;
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-checkbox-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-xs);
  background-color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
}

.custom-checkbox-input:focus + .custom-checkbox-box {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(225, 0, 50, 0.15);
}

.custom-checkbox-input:checked + .custom-checkbox-box {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.checkbox-text-content {
  font-size: 0.88rem;
  color: var(--color-gray-700);
  line-height: 1.45;
}

.policy-link {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-link:hover {
  color: var(--color-black);
}

.inline-link-dark {
  font-weight: 600;
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link-dark:hover {
  color: var(--color-red);
}

/* ==========================================================================
   Contacts Section
   ========================================================================== */

.contacts-section {
  padding: 40px 0;
  background-color: var(--color-white);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contacts-info-card {
  padding-right: 20px;
  min-width: 0;
}

.contacts-form-card {
  min-width: 0;
}

.contacts-main-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--color-black);
}

.leader-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.leader-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.leader-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 4px;
}

.leader-role {
  font-size: 0.9rem;
  color: var(--color-gray-500);
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.c-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--color-red-light);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.c-label {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  margin-bottom: 2px;
}

.c-val-link {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-black);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.c-val-link:hover {
  color: var(--color-red);
}

.c-val {
  font-size: 1rem;
  color: var(--color-gray-900);
  font-weight: 500;
}

.social-wrapper {
  padding-top: 24px;
  border-top: 1px solid var(--color-gray-200);
}

.social-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 14px;
}

.social-buttons-row {
  display: flex;
  gap: 14px;
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
  color: var(--color-black);
}

.social-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.vk-link:hover {
  background: #0077FF;
  color: var(--color-white);
  border-color: #0077FF;
}

.max-link:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Contacts Form Card */
.contacts-form-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: 44px;
}

.c-form-header {
  margin-bottom: 28px;
}

.c-form-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-black);
}

.c-form-subtitle {
  font-size: 0.95rem;
  color: var(--color-gray-700);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.btn-contact-submit {
  margin-top: 18px;
  padding: 16px;
  font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 40px 0 32px;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--color-gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 360px;
}

.footer-legal-data {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  line-height: 1.5;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-white);
}

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

.footer-links a {
  font-size: 0.92rem;
  color: var(--color-gray-500);
}

.footer-links a:hover {
  color: var(--color-yellow);
  padding-left: 4px;
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-phone {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
}

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

.footer-mail {
  font-size: 1rem;
  color: var(--color-gray-300);
}

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

.footer-hours {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  margin-top: 6px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-link-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--color-dark-surface);
  color: var(--color-white);
  border: 1px solid #2D333F;
}

.social-link-pill:hover {
  background: var(--color-yellow);
  color: var(--color-black);
  border-color: var(--color-yellow);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid #282D39;
  font-size: 0.85rem;
  color: var(--color-gray-500);
}

.footer-policy a {
  color: var(--color-gray-500);
  text-decoration: underline;
}

.footer-policy a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Floating Widgets & Fixed Buttons
   ========================================================================== */

/* Floating "Обратный звонок" */
.floating-callback-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--color-red);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(225, 0, 50, 0.4);
  z-index: 990;
  transition: var(--transition);
}

.floating-callback-btn:hover {
  transform: scale(1.08);
  background-color: var(--color-red-hover);
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--color-red);
  animation: pulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.btn-text-tooltip {
  position: absolute;
  right: 70px;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.floating-callback-btn:hover .btn-text-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Fixed "Наверх" Button (50x50px, 100px from bottom & right) */
.back-to-top-btn {
  position: fixed;
  bottom: 100px;
  right: 100px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-black);
  color: var(--color-yellow);
  border: 2px solid var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 995;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--color-yellow);
  color: var(--color-black);
  transform: translateY(-3px);
  box-shadow: var(--shadow-yellow);
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 17, 24, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: var(--color-gray-100);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-gray-700);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.modal-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-yellow-light);
  color: var(--color-black);
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-black);
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--color-gray-700);
  margin-bottom: 24px;
}

/* ==========================================================================
   Mandatory Cookie Banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1B1F2A;
  color: var(--color-white);
  padding: 16px 24px;
  z-index: 1500;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  border-top: 1px solid #2D333F;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-gray-200);
}

.cookie-text a {
  color: var(--color-yellow);
  text-decoration: underline;
}

.btn-cookie {
  background: var(--color-yellow);
  color: var(--color-black);
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-cookie:hover {
  background: var(--color-yellow-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Universal Responsive Safeguards */
.btn {
  max-width: 100%;
}

.how-more-link .btn,
.btn-outline,
.btn-audit-submit,
.btn-hero,
.btn-block {
  max-width: 100%;
}

/* 1. Desktops & Landscape Tablets (<= 1199px) */
@media screen and (max-width: 1199px) {
  .hero-title {
    font-size: 2.7rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-submit-cell {
    grid-column: span 2;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 2. Tablets Portrait & Mobile Navigation Switch (<= 991.98px) */
@media screen and (max-width: 991.98px) {
  body {
    padding-top: 70px;
  }

  .site-header {
    height: 70px;
  }

  .burger-btn {
    display: flex;
  }

  .header-actions .header-phone {
    display: none;
  }

  .header-cta-btn {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 2px solid var(--color-yellow);
    box-shadow: var(--shadow-lg);
    padding: 24px 20px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
  }

  .main-nav.open {
    display: block;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-link {
    font-size: 1.05rem;
    font-weight: 600;
  }

  .tech-pillars-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .how-work-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .phone-showcase {
    order: -1;
  }

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

  .adv-card,
  .adv-grid .adv-card:nth-child(4),
  .adv-grid .adv-card:nth-child(5) {
    grid-column: span 1;
  }

  .audit-steps-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .back-to-top-btn {
    bottom: 86px;
    right: 20px;
  }

  .floating-callback-btn {
    bottom: 20px;
    right: 20px;
  }
}

/* 3. Small Tablets & Large Phones (<= 768px) */
@media screen and (max-width: 768px) {
  .tech-section,
  .services-section,
  .how-section,
  .adv-section,
  .contacts-section {
    padding: 35px 0;
  }

  .audit-section {
    padding: 35px 0;
  }

  .hero-section {
    padding: 35px 0 45px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title,
  .audit-title {
    font-size: 1.85rem;
  }

  .tech-card {
    padding: 32px 24px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .audit-accent-card {
    padding: 36px 24px;
  }

  .audit-form-container {
    padding: 28px 20px;
  }

  .contacts-form-card {
    padding: 32px 24px;
  }

  .contacts-info-card {
    padding-right: 0;
  }
}

/* 4. Mobile Devices (<= 576px) — Primary Mobile Breakpoint */
@media screen and (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  /* Headings & Texts */
  h1, h2, h3, h4, h5, h6,
  .hero-title,
  .section-title,
  .audit-title,
  .contacts-main-title {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-section {
    padding: 36px 0 54px;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
    margin-bottom: 18px;
    hyphens: auto;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 7px 14px;
    border-radius: 16px;
    align-items: flex-start;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .badge-dot {
    margin-top: 5px;
    flex-shrink: 0;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    text-align: center;
    white-space: normal;
  }

  .hero-trust-row {
    gap: 10px;
    padding-top: 20px;
  }

  .trust-item {
    font-size: 0.88rem;
    gap: 8px;
  }

  .trust-check {
    flex-shrink: 0;
  }

  /* Stats */
  .strip-section {
    padding: 24px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px 14px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  /* Section Headings */
  .section-heading {
    margin-bottom: 28px;
  }

  .section-tag {
    font-size: 0.72rem;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .section-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Tech Cards */
  .tech-card {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }

  .tech-card-title {
    font-size: 1.35rem;
  }

  .tech-card-sub {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .tech-features-list {
    gap: 18px;
  }

  .feature-item {
    gap: 12px;
  }

  .feature-icon-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
  }

  .feature-text strong {
    font-size: 0.95rem;
  }

  .feature-text p {
    font-size: 0.86rem;
  }

  .about-company-note {
    padding: 16px;
    margin-top: 24px;
  }

  /* Pricing Cards */
  .pricing-grid {
    gap: 20px;
    margin-bottom: 28px;
  }

  .pricing-card {
    padding: 28px 16px;
    border-radius: var(--radius-lg);
  }

  .pricing-badge {
    left: 18px;
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .pricing-title {
    font-size: 1.35rem;
  }

  .pricing-sub {
    min-height: auto;
    margin-bottom: 16px;
    font-size: 0.85rem;
  }

  .pricing-cost {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .cost-val {
    font-size: 2rem;
  }

  .cost-prefix,
  .cost-period {
    font-size: 0.85rem;
  }

  .pricing-list {
    gap: 10px;
    font-size: 0.88rem;
    margin-bottom: 22px;
  }

  .pricing-card .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 13px 18px;
  }

  .pricing-thesis-box {
    flex-direction: column;
    padding: 20px 16px;
    gap: 14px;
  }

  .thesis-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .thesis-title {
    font-size: 1.15rem;
  }

  .thesis-text {
    font-size: 0.88rem;
  }

  /* How We Work */
  .phone-showcase {
    max-width: 100%;
  }

  .smartphone-frame {
    max-width: 100%;
    width: 100%;
    max-width: 310px;
    height: auto;
    min-height: 520px;
  }

  .scenario-card {
    padding: 14px 12px;
    gap: 12px;
  }

  .scenario-num {
    font-size: 1rem;
    min-width: 28px;
  }

  .scenario-title {
    font-size: 0.98rem;
  }

  .scenario-text {
    font-size: 0.85rem;
  }

  .how-more-link .btn,
  .btn-outline {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    padding: 13px 16px;
    font-size: 0.88rem;
    text-align: center;
    line-height: 1.35;
  }

  /* Advantages */
  .adv-card {
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }

  .adv-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }

  .adv-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .adv-text {
    font-size: 0.88rem;
  }

  /* Audit Section & Form */
  .audit-accent-card {
    padding: 26px 14px;
    border-radius: var(--radius-lg);
  }

  .audit-title {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .audit-desc {
    font-size: 0.9rem;
  }

  .audit-steps-grid {
    gap: 14px;
    margin-bottom: 22px;
  }

  .audit-step-item {
    padding: 18px 14px;
  }

  .step-title {
    font-size: 1.05rem;
  }

  .step-text {
    font-size: 0.86rem;
  }

  .audit-special-promo {
    flex-direction: column;
    text-align: center;
    padding: 16px 14px;
    gap: 8px;
    margin-bottom: 22px;
  }

  .promo-text {
    font-size: 0.92rem;
  }

  .audit-form-container {
    padding: 18px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 14px;
  }

  .form-field {
    min-width: 0;
  }

  .form-submit-cell {
    grid-column: span 1;
    min-width: 0;
  }

  .form-input {
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .btn-audit-submit {
    width: 100%;
    white-space: normal;
    padding: 14px 16px;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.35;
  }

  .custom-checkbox-label {
    gap: 10px;
  }

  .checkbox-text-content {
    font-size: 0.82rem;
  }

  /* Contacts */
  .contacts-section {
    padding: 30px 0;
  }

  .contacts-main-title {
    font-size: 1.85rem;
    margin-bottom: 18px;
  }

  .leader-card {
    padding: 16px 14px;
    gap: 14px;
    margin-bottom: 22px;
  }

  .leader-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

  .leader-name {
    font-size: 1.1rem;
  }

  .leader-role {
    font-size: 0.85rem;
  }

  .contact-links-list {
    gap: 16px;
    margin-bottom: 22px;
  }

  .contact-item {
    gap: 12px;
  }

  .c-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
  }

  .c-info {
    min-width: 0;
  }

  .c-val-link {
    font-size: 1.05rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .c-val {
    font-size: 0.9rem;
    word-break: break-word;
  }

  .social-wrapper {
    padding-top: 18px;
  }

  .contacts-form-card {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }

  .c-form-header {
    margin-bottom: 18px;
  }

  .c-form-title {
    font-size: 1.25rem;
  }

  .c-form-subtitle {
    font-size: 0.88rem;
  }

  .btn-contact-submit {
    width: 100%;
    white-space: normal;
    padding: 14px 16px;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.35;
  }

  /* Footer */
  .site-footer {
    padding: 40px 0 24px;
  }

  .footer-top-row {
    gap: 26px;
  }

  .footer-logo .logo-image {
    max-width: 170px;
    height: auto;
  }

  .footer-desc {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .footer-legal-data {
    font-size: 0.8rem;
  }

  .footer-col-title {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-phone {
    font-size: 1.15rem;
    word-break: break-word;
  }

  .footer-mail {
    font-size: 0.92rem;
    word-break: break-word;
  }

  .footer-hours {
    font-size: 0.8rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-top: 18px;
    font-size: 0.78rem;
  }

  /* Cookie Banner */
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
  }

  .cookie-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .cookie-text {
    font-size: 0.82rem;
  }

  .btn-cookie {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  /* Floating Buttons */
  .floating-callback-btn {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  .floating-callback-btn svg {
    width: 22px;
    height: 22px;
  }

  .back-to-top-btn {
    bottom: 74px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .back-to-top-btn svg {
    width: 20px;
    height: 20px;
  }

  .btn-text-tooltip {
    display: none !important;
  }

  /* Modals */
  .modal-overlay {
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-window {
    padding: 22px 14px;
    max-width: 100%;
    border-radius: var(--radius-lg);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-desc {
    font-size: 0.85rem;
    margin-bottom: 18px;
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }
}

/* 5. Minimal Control Breakpoint (<= 390px) */
@media screen and (max-width: 390px) {
  .hero-title {
    font-size: 1.48rem;
    line-height: 1.2;
  }

  .leader-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .btn {
    font-size: 0.88rem;
  }
}

/*start_css_for_header*/
#header {
  height: 84px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

#header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  width: 100%;
  max-width: 1240px;
  box-sizing: border-box;
}

#header .header-logo {
  flex-shrink: 0;
}

#header .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

#header .nav-list {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  grid-template-rows: repeat(2, auto);
  column-gap: 22px;
  row-gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

#header .nav-list > li {
  display: flex;
  align-items: center;
}

#header .nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-gray-900, #1f2937);
  position: relative;
  padding: 3px 0;
  white-space: nowrap;
  display: inline-block;
  transition: color 0.2s ease;
}

#header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-red, #e10032);
  transition: width 0.25s ease;
}

#header .nav-link:hover {
  color: var(--color-red, #e10032);
}

#header .nav-link:hover::after,
#header .nav-link.active::after {
  width: 100%;
}

#header .header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

@media (max-width: 1199px) {
  #header .nav-list {
    column-gap: 14px;
    row-gap: 3px;
  }

  #header .nav-link {
    font-size: 0.82rem;
  }

  #header .header-actions {
    gap: 12px;
  }
}

@media (max-width: 991.98px) {
  #header {
    height: 70px;
  }

  #header .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-white, #ffffff);
    border-bottom: 2px solid var(--color-yellow, #ffc72c);
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.1));
    padding: 24px 20px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
  }

  #header .main-nav.open {
    display: block;
    animation: slideDown 0.3s ease forwards;
  }

  #header .nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  #header .nav-link {
    font-size: 1.05rem;
    padding: 4px 0;
  }
}
/*end_css_for_header*/

/*start_css_for_ihf2*/
#ihf2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: 1240px;
  box-sizing: border-box;
}

#ihf2 .header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#ihf2 .logo-image {
  height: 42px;
  width: auto;
  object-fit: contain;
}

#ihf2 .header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

#ihf2 .burger-btn {
  display: none;
}

@media (min-width: 992px) {
  #ihf2 .burger-btn {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  #ihf2 .header-phone {
    display: none !important;
  }

  #ihf2 .header-cta-btn {
    display: none !important;
  }

  #ihf2 .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
  }

  #ihf2 .burger-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1010;
    flex-shrink: 0;
    position: relative;
  }

  #ihf2 .burger-line {
    display: block !important;
    width: 24px;
    min-width: 24px;
    height: 2px;
    min-height: 2px;
    background-color: #111827;
    background-color: var(--color-black, #111827);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
    flex-shrink: 0;
  }

  #ihf2 .burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #ihf2 .burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
  }

  #ihf2 .burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  #ihf2 .header-logo {
    flex-shrink: 1;
    min-width: 0;
  }

  #ihf2 .logo-image {
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }
}

@media (max-width: 576px) {
  #ihf2 {
    padding-left: 16px;
    padding-right: 16px;
  }

  #ihf2 .logo-image {
    max-height: 34px;
    max-width: 180px;
  }

  #ihf2 .burger-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 6px;
  }

  #ihf2 .burger-line {
    width: 22px;
    min-width: 22px;
  }
}

@media (max-width: 480px) {
  #ihf2 .logo-image {
    max-height: 32px;
    max-width: 170px;
  }
}

@media (max-width: 390px) {
  #ihf2 .logo-image {
    max-height: 30px;
    max-width: 155px;
  }
}
/*end_css_for_ihf2*/

/*start_css_for_iv667f*/
#iv667f {
  display: flex;
  align-items: center;
  gap: 14px;
}

#iv667f a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#iv667f a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

#iv667f img {
  display: block;
  width: 24px;
  height: 24px;
}
/*end_css_for_iv667f*/

/*start_css_for_ikjnwf*/
#ikjnwf {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

#ikjnwf a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#ikjnwf a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

#ikjnwf img {
  display: block;
  width: 24px;
  height: 24px;
}
/*end_css_for_ikjnwf*/
