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

/* ===== ПЛАВНЫЙ СКРОЛЛ ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #222222;
  background-color: #ffffff;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

:root {
  --dark: #1a2a4f;
  --gold: #e8b34b;
  --gray-light: #f7f7f9;
  --gray-text: #666666;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
  --border-radius: 16px;
  --transition: all 0.3s ease;
}

/* ========== ШАПКА ========== */
.header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo h1 {
  font-size: 24px;
  color: var(--dark);
  letter-spacing: 1px;
}

.logo p {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

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

/* ========== КНОПКИ ========== */
.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--gold);
}

.btn-gold {
  background: var(--gold);
  border: none;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark);
  text-decoration: none;
  display: inline-block;
}

.btn-gold:hover {
  background: #d4a03a;
}

.btn-dark {
  background: transparent;
  border: 2px solid var(--dark);
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark);
}

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

/* ========== ГЕРОЙ ========== */
.hero {
  padding: 80px 0;
  background: white;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 52px;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 20px;
  color: var(--gray-text);
  margin-bottom: 15px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  background: var(--gray-light);
  height: 400px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* ========== БЛОКИ ========== */
.section {
  padding: 80px 0 70px;
}

.section-gray {
  background: var(--gray-light);
}

.section-title {
  font-size: 36px;
  color: var(--dark);
  text-align: center;
  margin-bottom: 50px;
}

/* ========== КАРТОЧКИ ПРОБЛЕМ ========== */
.problems-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.problem-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  flex: 1;
  min-width: 250px;
  text-align: center;
  box-shadow: var(--shadow-light);
}

.problem-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--dark);
}

/* ========== УСЛУГИ ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 60px;
  height: auto !important;
  overflow: visible !important;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-name {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  white-space: normal !important;
  word-wrap: break-word;
  overflow: visible !important;
  flex: 1;
  min-width: 120px;
  color: var(--dark);
}

.service-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.service-note {
  font-size: 13px;
  color: var(--gray-text);
  text-align: center;
  margin-top: 20px;
}

/* ========== ШАГИ ========== */
.steps-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.step-card {
  background: white;
  padding: 24px;
  border-radius: 20px;
  flex: 1;
  min-width: 200px;
  text-align: center;
  box-shadow: var(--shadow-light);
}

.step-number {
  background: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
}

/* ========== КЕЙСЫ ========== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.case-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: left;
  box-shadow: var(--shadow-light);
  height: auto !important;
  min-height: 200px;
  overflow: visible !important;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

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

.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 15px;
}

.case-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
  white-space: normal !important;
  overflow: visible !important;
  word-wrap: break-word;
  line-height: 1.3;
}

.case-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  white-space: normal !important;
  overflow: visible !important;
  word-wrap: break-word;
  margin-bottom: 6px;
}

.case-card .btn-outline {
  margin-top: auto;
  align-self: flex-start;
}

/* ========== КСВ ========== */
.ksv-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.ksv-item {
  flex: 1;
  min-width: 200px;
}

.ksv-letter {
  font-size: 48px;
  font-weight: 800;
  color: var(--gold);
}

.ksv-title {
  font-size: 24px;
  font-weight: 700;
  margin: 10px 0;
}

/* ========== ЦИФРЫ НА ГЛАВНОЙ ========== */
.numbers-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.number-card {
  background: var(--dark);
  color: white;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.number-card:hover {
  transform: translateY(-5px);
}

.number-big {
  font-size: 42px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

.number-card .label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 5px;
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.feature {
  background: white;
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
}

/* ========== FAQ ========== */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 24px 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq-question {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  cursor: pointer;
}

.faq-answer {
  color: var(--gray-text);
}

/* ========== CTA ========== */
.cta {
  background: var(--dark);
  color: white;
  text-align: center;
  border-radius: 32px;
  padding: 60px 20px;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.cta .btn-gold {
  margin-top: 25px;
}

/* ========== ФУТЕР ========== */
.footer {
  background: #111;
  color: #aaa;
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-contacts i {
  margin-right: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  font-size: 14px;
}

/* ===== ССЫЛКИ В ФУТЕРЕ ===== */
.footer-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 15px;
    display: block;
    margin: 8px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-link:hover {
    color: #f5d98a;
    text-decoration: none;
}

/* ========== СТАТУС БЕЙДЖИ ========== */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-new {
  background: #e3f2fd;
  color: #1976d2;
}

.status-in_progress {
  background: #fff3e0;
  color: #ff9800;
}

.status-completed {
  background: #e8f5e9;
  color: #4caf50;
}

.status-cancelled,
.status-rejected {
  background: #ffebee;
  color: #f44336;
}

/* ========== СООБЩЕНИЯ ========== */
.alert {
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.alert-info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

/* ========== ФОРМЫ ========== */
.form-input,
select,
textarea {
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 179, 75, 0.1);
}

select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* ========== ТАБЛИЦЫ ========== */
table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  border-bottom: 1px solid #eee;
}

/* ========== ПАГИНАЦИЯ ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination .btn-outline {
  padding: 8px 16px;
  text-decoration: none;
}

.pagination .current-page {
  padding: 8px 16px;
  background: var(--gold);
  border-radius: 8px;
  color: var(--dark);
  font-weight: 600;
}

/* ========== КАРТОЧКА ========== */
.card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* ========== КНОПКИ В ПРОФИЛЕ ========== */
.profile-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.profile-buttons .btn-outline,
.profile-buttons .btn-gold {
  flex: 1;
  text-align: center;
  min-width: 120px;
  padding: 12px 20px;
  font-size: 14px;
}

/* ========== БУРГЕР-МЕНЮ ========== */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ========== УНИВЕРСАЛЬНЫЕ КЛАССЫ-УТИЛИТЫ ========== */
.card-lg { padding: 40px; }
.card-sm { padding: 20px; }

.m-0 { margin: 0; }
.m-1 { margin: 5px; }
.m-2 { margin: 10px; }
.m-3 { margin: 15px; }
.m-4 { margin: 20px; }
.m-5 { margin: 30px; }

.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }

.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 30px; }

.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.p-5 { padding: 30px; }

.py-1 { padding-top: 5px; padding-bottom: 5px; }
.py-2 { padding-top: 10px; padding-bottom: 10px; }
.py-3 { padding-top: 15px; padding-bottom: 15px; }
.py-4 { padding-top: 20px; padding-bottom: 20px; }

.px-1 { padding-left: 5px; padding-right: 5px; }
.px-2 { padding-left: 10px; padding-right: 10px; }
.px-3 { padding-left: 15px; padding-right: 15px; }
.px-4 { padding-left: 20px; padding-right: 20px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.gap-1 { gap: 5px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 15px; }
.gap-4 { gap: 20px; }
.gap-5 { gap: 30px; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gold { color: var(--gold); }
.text-bold { font-weight: 600; }

.bg-white { background: white; }
.bg-gray { background: var(--gray-light); }
.bg-gold { background: var(--gold); }
.bg-gradient-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-gradient-pink { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.bg-gradient-blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-gradient-green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.btn-block { display: block; width: 100%; text-align: center; }
.btn-inline { display: inline-block; }

.w-100 { width: 100%; }
.max-w-400 { max-width: 400px; margin: 0 auto; }
.max-w-600 { max-width: 600px; margin: 0 auto; }
.max-w-800 { max-width: 800px; margin: 0 auto; }
.max-w-900 { max-width: 900px; margin: 0 auto; }

.border-bottom { border-bottom: 1px solid #eee; }
.border-top { border-top: 1px solid #eee; }
.border-none { border: none; }
.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: 24px; }
.rounded-xl { border-radius: 32px; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.desktop-only { display: block; }
.mobile-only { display: none; }

/* ========== ОТЗЫВЫ ЗВЁЗДЫ ========== */
.rating-stars-wrapper {
  display: flex;
  justify-content: center;
}

.rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
}

.rating-stars input {
  display: none;
}

.rating-stars label {
  font-size: 48px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label {
  color: #ffc107;
}

.rating-stars input:checked ~ label {
  color: #ffc107;
}

/* ========== ЯКОРНЫЕ ССЫЛКИ ========== */
#services,
#cases,
#contacts {
  scroll-margin-top: 30px;
}

/* ========== КНОПКА "НАВЕРХ" ========== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold, #e8b34b);
  background: rgba(26, 42, 79, 0.85);
  color: var(--gold, #e8b34b);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  z-index: 999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
  -webkit-user-select: none;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
}

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

.scroll-top-btn:hover {
  background: var(--gold, #e8b34b);
  color: var(--dark, #1a2a4f);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(232, 179, 75, 0.4);
}

.scroll-top-btn:active {
  transform: scale(0.92);
}

.scroll-top-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.scroll-top-btn:hover svg {
  transform: translateY(-2px);
}

.scroll-top-btn.clicked {
  background: rgba(26, 42, 79, 0.85) !important;
  color: var(--gold, #e8b34b) !important;
  border-color: var(--gold, #e8b34b) !important;
  transform: scale(1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scroll-top-btn.visible {
  animation: fadeInUp 0.3s ease forwards;
}

/* ============================================================
   АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ============================================================ */

/* ===== ПЛАНШЕТЫ ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-text h1 {
    font-size: 42px;
  }

  .nav {
    gap: 20px;
  }

  .dashboard-stats {
    gap: 12px;
  }

  .dashboard-stats .stat-card {
    padding: 15px 12px;
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== МОБИЛЬНЫЕ ТЕЛЕФОНЫ ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  #services,
  #cases,
  #contacts {
    scroll-margin-top: 60px;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

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

  .header {
    padding: 15px 0;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .logo h1 {
    font-size: 18px;
  }

  .logo p {
    font-size: 10px;
  }

  .burger-menu {
    display: flex;
    flex-shrink: 0;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 25px 30px;
    gap: 5px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    text-align: left;
    color: var(--dark);
  }

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

  .hero {
    padding: 40px 0;
  }

  .hero-grid {
    flex-direction: column;
    gap: 30px;
  }

  .hero-text {
    text-align: center;
    order: 2;
  }

  .hero-text h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn-gold,
  .hero-buttons .btn-dark {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 15px;
  }

  .hero-image {
    order: 1;
    height: 200px;
    width: 100%;
    border-radius: var(--border-radius);
  }

  .section {
    padding: 40px 0 30px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .problems-grid {
    flex-direction: column;
    gap: 15px;
  }

  .problem-card {
    padding: 20px;
    min-width: auto;
  }

  .steps-grid {
    flex-direction: column;
    gap: 15px;
  }

  .step-card {
    padding: 20px;
    min-width: auto;
  }

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

  .service-item {
    padding: 14px 16px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .service-name {
    font-size: 14px;
    min-width: auto;
  }

  .service-price {
    font-size: 14px;
    white-space: nowrap;
  }

  .cases-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .case-card {
    padding: 20px;
    min-height: auto;
  }

  .case-card h3 {
    font-size: 17px;
  }

  .case-card img {
    height: 150px;
  }

  .numbers-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    padding: 0 4px;
  }

  .number-card {
    background: var(--dark) !important;
    color: white !important;
    padding: 20px 15px !important;
    border-radius: 16px !important;
    text-align: center !important;
    flex: none !important;
    min-width: auto !important;
    max-width: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-height: 80px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .number-card:hover {
    transform: none !important;
  }

  .number-big {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: white !important;
    line-height: 1.2 !important;
  }

  .number-card .label {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-top: 4px !important;
    text-align: center !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .feature {
    padding: 15px;
    font-size: 14px;
  }

  .ksv-grid {
    flex-direction: column;
    gap: 20px;
  }

  .ksv-item {
    min-width: auto;
  }

  .ksv-letter {
    font-size: 36px;
  }

  .ksv-title {
    font-size: 20px;
  }

  .faq-item {
    padding: 18px 0;
  }

  .faq-question {
    font-size: 16px;
  }

  .faq-answer {
    font-size: 14px;
  }

  .cta {
    padding: 30px 20px;
    border-radius: 24px;
  }

  .cta h2 {
    font-size: 22px;
  }

  .cta p {
    font-size: 15px;
  }

  .footer {
    padding: 30px 0 20px;
  }

  /* ===== ФУТЕР ДЛЯ МОБИЛЬНЫХ ===== */
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }

  .footer-grid > div {
    width: 100% !important;
    text-align: center !important;
  }

  .footer-contacts a {
    display: block !important;
    margin: 6px 0 !important;
    text-align: center !important;
  }

  .footer-grid a {
    display: block !important;
    margin: 4px 0 !important;
    text-align: center !important;
  }

  .footer h3 {
    font-size: 18px;
  }

  .requests-table-wrapper,
  .table-wrapper,
  div[style*="overflow-x: auto;"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .requests-table,
  .table-wrapper table,
  div[style*="overflow-x: auto;"] table {
    font-size: 11px;
    min-width: 500px;
    width: 100%;
  }

  .requests-table th,
  .requests-table td,
  .table-wrapper table th,
  .table-wrapper table td,
  div[style*="overflow-x: auto;"] table th,
  div[style*="overflow-x: auto;"] table td {
    padding: 6px 6px !important;
    white-space: normal;
    word-break: break-word;
  }

  .status-badge {
    font-size: 10px;
    padding: 2px 8px;
  }

  .pagination {
    gap: 5px;
  }

  .pagination .btn-outline,
  .pagination .current-page {
    padding: 6px 10px;
    font-size: 12px;
  }

  .bottom-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 20px !important;
    padding: 5px !important;
  }

  .bottom-actions a,
  .bottom-actions .btn,
  .bottom-actions .btn-outline,
  .bottom-actions .btn-gold {
    flex: 0 0 auto !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    border-radius: 30px !important;
    display: inline-block !important;
    min-width: auto !important;
    width: auto !important;
  }

  .profile-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .profile-buttons .btn-outline,
  .profile-buttons .btn-gold {
    width: 100%;
    flex: none;
    padding: 12px 20px;
    font-size: 14px;
  }

  .dashboard-stats {
    gap: 10px;
  }

  .dashboard-stats .stat-card {
    padding: 12px 8px;
  }

  .dashboard-stats .stat-number {
    font-size: 22px;
  }

  .dashboard-stats .stat-label {
    font-size: 10px;
    white-space: nowrap;
  }

  .dashboard-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-buttons a {
    text-align: center;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .card-lg {
    padding: 25px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .rating-stars label {
    font-size: 36px;
  }

  .alert {
    font-size: 14px;
    padding: 12px 15px;
  }

  .form-input,
  select,
  textarea {
    font-size: 16px !important;
    padding: 10px 12px;
  }

  .btn-gold,
  .btn-outline {
    padding: 10px 18px !important;
    font-size: 14px !important;
  }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ ===== */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 22px;
  }

  .section-title {
    font-size: 20px;
  }

  .number-big {
    font-size: 22px !important;
  }

  .number-card {
    min-height: 70px !important;
    padding: 15px 10px !important;
  }

  .service-item {
    padding: 12px 14px;
  }

  .service-name {
    font-size: 13px;
  }

  .service-price {
    font-size: 13px;
  }

  .case-card h3 {
    font-size: 16px;
  }

  .case-card p {
    font-size: 14px;
  }

  .requests-table,
  .table-wrapper table,
  div[style*="overflow-x: auto;"] table {
    font-size: 10px;
    min-width: 400px;
  }

  .requests-table th,
  .requests-table td,
  .table-wrapper table th,
  .table-wrapper table td,
  div[style*="overflow-x: auto;"] table th,
  div[style*="overflow-x: auto;"] table td {
    padding: 4px 4px !important;
  }

  .bottom-actions a,
  .bottom-actions .btn,
  .bottom-actions .btn-outline,
  .bottom-actions .btn-gold {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
}