/* СТМ — Корпоративный стиль | Вариант 3 */
:root {
  /* Брендовые цвета */
  --stm-blue: #0085C3;
  --stm-blue-dark: #006699;
  --stm-blue-light: #e6f4fa;
  --stm-orange: #ED7D00;
  --stm-orange-dark: #CC6A00;
  
  /* Нейтральные */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Шрифты */
  --font-heading: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Open Sans', -apple-system, sans-serif;
  
  /* Размеры */
  --container: min(1440px, calc(100% - 2rem));
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0;
}

a {
  color: var(--stm-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--stm-blue-dark);
}

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

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==================== TOP BAR ==================== */
.top-bar {
  background: var(--stm-blue-dark);
  color: var(--white);
  font-size: 0.875rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
  min-width: 0;
}

.top-bar-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.top-bar a {
  color: var(--white);
}

.top-bar a:hover {
  color: var(--stm-orange);
}

.top-bar .urgent {
  color: var(--stm-orange);
}

@media (max-width: 768px) {
  .top-bar-left {
    display: flex; gap: 10px;
  }
  .top-bar-inner {
    justify-content: center;
  }
}

/* ==================== HEADER ==================== */
.header {
  background: var(--stm-blue);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.logo:hover {
  color: var(--white);
}

.logo-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img {
  height: 36px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-text-sub {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Navigation */
.nav {
  display: flex;
  gap: clamp(0.85rem, 1.6vw, 2rem);
}

/* ==================== HEADER SEARCH ==================== */
.header-search {
  position: relative;
}

.header-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: white;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.2s;
}

.header-search-trigger:hover {
  opacity: 0.8;
}

.header-search-trigger svg {
  opacity: 0.8;
}

.header-search-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-width: min(360px, calc(100vw - 2rem));
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  display: none;
  z-index: 500;
  overflow: hidden;
}

.header-search-dropdown.is-open {
  display: block;
  animation: dropdownFade 0.2s ease;
}

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

.header-search-icon {
  display: none;
}

.header-search-dropdown input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: none;
  border-bottom: 1px solid #eee;
  outline: none;
  font-family: var(--font-body);
}

.header-search-dropdown input::placeholder {
  color: #999;
}

.header-search-results {
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f0f7fc;
}

.search-result-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.search-result-desc {
  font-size: 12px;
  color: #666;
}

.search-no-results {
  padding: 20px 16px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--stm-orange);
}

/* Header Phone */
.header-phone {
  text-align: right;
  flex-shrink: 0;
}

.header-phone-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.header-phone-number:hover {
  color: var(--stm-orange);
}

.header-phone-text {
  font-size: 0.75rem;
  opacity: 0.8;
}

@media (max-width: 1280px) {
  .header-inner {
    gap: 0.75rem;
  }

  .logo-text-sub {
    display: none;
  }

  .header-search-trigger {
    padding: 8px 10px;
    font-size: 14px;
  }

  .header-search-dropdown {
    width: 320px;
  }

  .header-phone-number {
    font-size: 1.1rem;
  }

  .header-phone-text {
    font-size: 0.6875rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

@media (max-width: 1100px) {
  .top-bar-left {
    gap: 0.75rem;
  }

  .top-bar-item {
    font-size: 0.8125rem;
  }

  .header-search-trigger span {
    display: none;
  }

  .header-search-trigger {
    padding: 8px;
  }

  .header-search-dropdown {
    width: 300px;
  }

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

  .contacts-grid {
    gap: 2.5rem;
  }
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 1rem, 100%);
    padding: 0 0.5rem;
  }

  .nav {
    display: none;
  }
  .header-search {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-phone {
    display: none;
  }

  .header-inner {
    padding: 0.65rem 0;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo-box {
    padding: 0.35rem;
  }

  .logo-box img {
    height: 30px;
  }

  .logo-text-main {
    font-size: 1rem;
  }
}

/* Mobile menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.mobile-menu-panel.is-open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-close {
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  cursor: pointer;
}

.mobile-menu-nav {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-nav a:hover {
  color: var(--stm-blue);
}

.mobile-menu-phone {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--stm-blue-light);
  border-radius: var(--radius);
  text-align: center;
}

.mobile-menu-phone a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stm-blue);
}

/* ==================== HERO ==================== */
.hero {
  background: linear-gradient(135deg, var(--stm-blue) 0%, var(--stm-blue-dark) 50%, var(--gray-800) 100%);
  color: var(--white);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content,
  .hero-form {
    max-width: 100%;
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-stat {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
}

.hero-stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Hero Form */
.hero-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--gray-800);
}

.hero-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-form-subtitle {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--stm-blue);
  box-shadow: 0 0 0 3px rgba(0,133,195,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 1rem;
}

.form-file-note {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.form-file-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.form-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--stm-blue-dark);
  background: var(--stm-blue-light);
  border: 1px solid rgba(0,133,195,0.35);
  border-left: 3px solid var(--stm-orange);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,102,153,0.08);
}

.form-file-label:hover {
  background: rgba(0,133,195,0.12);
  border-color: var(--stm-blue);
  border-left-color: var(--stm-orange-dark);
  box-shadow: 0 2px 8px rgba(0,102,153,0.12);
  transform: translateY(-1px);
}

.form-file-input:focus + .form-file-label,
.form-file-input:focus-visible + .form-file-label {
  outline: none;
  border-color: var(--stm-blue);
  box-shadow: 0 0 0 3px rgba(0,133,195,0.15);
}

.form-file-label .form-file-icon {
  flex-shrink: 0;
  opacity: 0.95;
  color: var(--stm-orange);
}

.form-file-name {
  width: 100%;
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-file-name.has-file {
  color: var(--stm-blue-dark);
  font-weight: 500;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--stm-orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237,125,0,0.3);
}

.btn-secondary {
  background: var(--stm-blue);
  color: var(--white);
}

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

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

.btn-outline:hover {
  background: var(--stm-blue);
  color: var(--white);
}

.btn-white {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-white:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

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

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--gray-500);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ==================== SERVICES CARDS ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s;
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.service-card.blue { border-top-color: var(--stm-blue); }
.service-card.orange { border-top-color: var(--stm-orange); }
.service-card.red { border-top-color: #ef4444; }
.service-card.green { border-top-color: #22c55e; }

.service-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-card-icon.blue { background: var(--stm-blue-light); color: var(--stm-blue); }
.service-card-icon.orange { background: #fff7ed; color: var(--stm-orange); }
.service-card-icon.red { background: #fef2f2; color: #ef4444; }
.service-card-icon.green { background: #f0fdf4; color: #22c55e; }

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.service-card-link {
  margin-top: auto;
  font-weight: 500;
  font-size: 0.9375rem;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 560px) {
  .top-bar {
    font-size: 0.75rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 2.25rem 0;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    padding: 0.95rem 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    gap: 0.75rem;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .hero-text {
    margin-bottom: 1.5rem;
  }

  .section-subtitle {
    margin-bottom: 2rem;
  }

  .service-card-body {
    padding: 1rem;
  }

  .trust-item {
    padding: 1.25rem 1rem;
  }

  .contact-form-card {
    padding: 1rem;
  }
}

/* ==================== TRUST NUMBERS ==================== */
.trust-section {
  padding: 4rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .trust-item-value {
    font-size: 2rem;
  }
}

.trust-item-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.trust-item-value.blue { color: var(--stm-blue); }
.trust-item-value.orange { color: var(--stm-orange); }
.trust-item-value.green { color: #22c55e; }
.trust-item-value.purple { color: #8b5cf6; }

.trust-item-label {
  color: var(--gray-500);
}

/* ==================== CTA ==================== */
.cta {
  background: linear-gradient(135deg, var(--stm-blue) 0%, var(--stm-blue-dark) 100%);
  color: var(--white);
  padding: clamp(3rem, 5vw, 4rem) 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.625rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--gray-800);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul a {
  color: var(--gray-400);
  font-size: 0.9375rem;
}

.footer ul a:hover {
  color: var(--stm-blue);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p,
.footer-bottom a {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* ==================== PAGE HERO ==================== */
.page-hero {
  background: linear-gradient(135deg, var(--stm-blue) 0%, var(--stm-blue-dark) 100%);
  color: var(--white);
  padding: 3rem 0;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  font-size: 1.125rem;
}

/* ==================== CONTACTS ==================== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-item {
    align-items: flex-start;
  }
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--stm-blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--stm-blue);
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* Contact Form Card */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-form-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ==================== CONTENT UTILITIES ==================== */
.content-narrow {
  max-width: 800px;
}

.content-narrow p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-block-title {
  margin-bottom: 1.5rem;
}

.services-grid-compact {
  max-width: 900px;
  margin: 0 auto;
}

.requisites-card {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.map-placeholder-section {
  background: var(--gray-100);
  padding: 0;
}

.map-placeholder {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  text-align: center;
  padding: 1.5rem;
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-orange { color: var(--stm-orange); }
.text-blue { color: var(--stm-blue); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Form success message */
.form-success {
  display: none;
  padding: 1rem;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  color: #166534;
  margin-top: 1rem;
}

.form-success.is-visible {
  display: block;
}

/* ==================== RESPONSIVE OVERRIDES ==================== */
@media (max-width: 1280px) {
  .header-inner {
    gap: 0.75rem;
  }

  .logo-text-sub {
    display: none;
  }

  .header-search-trigger {
    padding: 8px 10px;
    font-size: 14px;
  }

  .header-search-dropdown {
    width: 320px;
  }

  .header-phone-number {
    font-size: 1.1rem;
  }

  .header-phone-text {
    font-size: 0.6875rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

@media (max-width: 1100px) {
  .top-bar-left {
    gap: 0.75rem;
  }

  .top-bar-item {
    font-size: 0.8125rem;
  }

  .header-search-trigger span {
    display: none;
  }

  .header-search-trigger {
    padding: 8px;
  }

  .header-search-dropdown {
    width: 300px;
  }

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

  .contacts-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .top-bar-left {
    display: none;
  }

  .top-bar-inner {
    justify-content: center;
  }

  .header-phone {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content,
  .hero-form {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 1rem, 100%);
    padding: 0 0.5rem;
  }

  .top-bar {
    font-size: 0.8125rem;
  }

  .header-inner {
    padding: 0.65rem 0;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo-box {
    padding: 0.35rem;
  }

  .logo-box img {
    height: 30px;
  }

  .logo-text-main {
    font-size: 1rem;
  }

  .page-hero {
    padding: 2.5rem 0 2rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .requisites-card,
  .services-grid-compact,
  .content-narrow {
    max-width: 100%;
  }

  .requisites-card {
    padding: 1.5rem;
  }

  .map-placeholder {
    min-height: 320px;
  }

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

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .trust-item-value {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-item {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .top-bar {
    font-size: 0.75rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 2.25rem 0;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .requisites-card {
    padding: 1.25rem;
  }

  .map-placeholder {
    min-height: 260px;
  }

  .btn {
    width: 100%;
    padding: 0.95rem 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: stretch;
  }

  .contact-item {
    gap: 0.75rem;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
  }
}
/* ============================================
   СЕКЦИЯ УСЛУГ - ИКОНКИ
   Добавить в конец style.css
   ============================================ */

.services-icons {
    padding: 60px 0;
    background: #fff;
}

.services-icons .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--stm-dark, #1A1A2E);
    margin-bottom: 8px;
}

.services-icons .section-subtitle {
    text-align: center;
    color: #6B7280;
    font-size: 16px;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 24px;
}

.services-grid.row-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 750px;
}


/* ============================================
   СЕКЦИЯ УСЛУГ - ИКОНКИ
   ============================================ */
.services-icons {
    padding: 50px 0;
    background: #fff;
}

.services-icons .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 10px;
}

.services-icons .section-subtitle {
    text-align: center;
    color: #6B7280;
    font-size: 16px;
    margin-bottom: 40px;
}

.services-icons .services-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.svc-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    padding: 20px 10px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.svc-icon:hover {
    background: #f0f7fc;
    border-color: #0085C3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 133, 195, 0.15);
}

.svc-icon img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain;
    margin-bottom: 14px;
    transition: transform 0.25s ease;
}

.svc-icon:hover img {
    transform: scale(1.1);
}

.svc-icon span {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1A1A2E;
    text-align: center;
    line-height: 1.3;
}

.svc-icon:hover span {
    color: #0085C3;
}

@media (max-width: 1000px) {
    .services-icons .services-grid {
        flex-wrap: wrap;
        gap: 24px;
    }
    .svc-icon {
        width: 160px;
    }
}

@media (max-width: 600px) {
    .svc-icon {
        width: 100px;
        padding: 15px 8px;
    }
    .svc-icon img {
        width: 48px;
        height: 48px;
    }
    .svc-icon span {
        font-size: 12px;
    }
}

/* ============================================
   ЛЕНТА КЕЙСОВ - СЛАЙДЕР
   ============================================ */
.cases-slider {
    background: #f8f9fa;
    padding: 20px 0;
    overflow: hidden;
}

.cases-track {
    display: flex;
    gap: 24px;
    padding: 10px 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cases-track::-webkit-scrollbar {
    display: none;
}

.case-card {
    flex: 0 0 340px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb;
}

.case-card:hover {
    border-color: #0085C3;
    box-shadow: 0 4px 15px rgba(0, 133, 195, 0.12);
    transform: translateY(-2px);
}

.case-card .case-img {
    width: 190px;
    height: 190px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0e7ef 0%, #c5d1dc 100%);
    flex-shrink: 0;
}

.case-card.placeholder .case-img {
    background: linear-gradient(135deg, #e8ecf0 0%, #d1d8e0 100%);
}

.case-card .case-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-card .case-date {
    font-size: 12px;
    color: #0085C3;
    font-weight: 600;
}

.case-card .case-title {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A2E;
    line-height: 1.4;
}

.case-card:hover .case-title {
    color: #0085C3;
}

@media (max-width: 768px) {
    .case-card {
        flex: 0 0 280px;
        padding: 14px;
        gap: 14px;
    }
    .case-card .case-img {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   DROPDOWN МЕНЮ - УСЛУГИ
   ============================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown-trigger svg {
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #1A1A2E;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s ease;
}

.nav-dropdown-menu a:hover {
    background: #f0f7fc;
    color: #0085C3;
    padding-left: 25px;
}

/* ============================================
   MOBILE TOPBAR - телефон и адрес
   ============================================ */
@media (max-width: 768px) {
  .top-bar-inner {
    justify-content: space-around;
    gap: 10px;
  }
  .top-bar-left {
    display: flex;
    gap: 15px;
  }
  .top-bar-left .top-bar-item:nth-child(2) {
    display: none; /* скрываем часы работы */
  }
  .top-bar-item {
    font-size: 12px;
  }
  .top-bar-item svg {
    width: 14px;
    height: 14px;
  }
}

/* ============================================
   АНИМАЦИЯ ИКОНОК УСЛУГ
   ============================================ */
@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-8px) scale(1.1); }
    50% { transform: translateY(-4px) scale(1.05); }
    75% { transform: translateY(-6px) scale(1.08); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.svc-icon:hover img {
    animation: iconBounce 0.5s ease;
}

/* ============================================
   АНИМАЦИЯ ИКОНОК УСЛУГ
   ============================================ */
@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-8px) scale(1.1); }
    50% { transform: translateY(-4px) scale(1.05); }
    75% { transform: translateY(-6px) scale(1.08); }
}

.svc-icon:hover img {
    animation: iconBounce 0.5s ease;
}

/* Улучшенная лента кейсов */
.case-card .case-info {
    padding-left: 16px;
    border-left: 3px solid var(--stm-orange);
}

.case-card .case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.cases-slider {
    cursor: grab;
}

.cases-slider:active {
    cursor: grabbing;
}

/* Заголовок ленты кейсов */
.cases-header {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 14px;
    font-weight: 700;
    color: var(--stm-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 20px 15px;
    background: white;
    border-right: 3px solid var(--stm-orange);
    flex-shrink: 0;
}

.cases-slider {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    gap: 20px;
    padding: 10px 40px 16px;
}

.cases-slider::-webkit-scrollbar {
    height: 6px;
}

.cases-slider::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
    transition: background 0.3s;
}

.cases-slider:hover::-webkit-scrollbar-thumb {
    background: #CBD5E0;
}

.cases-slider:hover {
    scrollbar-color: #CBD5E0 transparent;
}

.cases-slider .case-card {
    scroll-snap-align: start;
}

.cases-track {
    flex: 1;
}

/* Секция кейсов с заголовком */
.cases-section {
    background: #f8f9fa;
    overflow: hidden;
    padding: 20px 0 10px 0;
}

.cases-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--stm-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 20px;
}

/* Messenger icons (contacts page & footer) */
.contact-phone { display: block; font-weight: 600; font-size: 1.1rem; margin-top: 0.35rem; color: var(--dark, #1a1a2e); }
.contact-phone:hover { color: var(--primary, #0085C3); }
.contact-messengers { display: flex; gap: 10px; margin-top: 8px; }
.messenger-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #f0f4f8; transition: transform 0.2s, background 0.2s; }
.messenger-icon:hover { transform: scale(1.12); background: #e0e8f0; }
.contact-sub { margin-top: 6px; font-size: 0.8rem; color: #888; }
.footer-messenger { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.1); transition: background 0.2s; vertical-align: middle; margin-left: 4px; }
.footer-messenger:hover { background: rgba(255,255,255,0.2); }
