:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #2c3e50;
  --muted: #6b7c93;
  --primary: #3d5afe;
  --primary-hover: #2948d8;
  --secondary: #e8eaf6;
  --accent: #5a7fff;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow: 0 8px 24px rgba(61, 90, 254, .08);
  --shadow-md: 0 12px 32px rgba(61, 90, 254, .12);
  --shadow-lg: 0 20px 48px rgba(61, 90, 254, .16);
  --gradient-primary: linear-gradient(135deg, #5a7fff 0%, #3d5afe 100%);
  --gradient-hero: linear-gradient(90deg, rgba(15, 32, 70, .92) 0%, rgba(15, 32, 70, .65) 50%, rgba(15, 32, 70, .35) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #f5f7fb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  width: min(1440px, 94%);
  margin: 0 auto;
}

/* SCALE GRID - ВАЖНО! */
.scale-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.section {
  padding: clamp(72px, 8vw, 80px) 0;
  opacity: 0;
  transform: translateY(24px);
  transition: .7s ease;
}

.section.visible,
.hero.visible {
  opacity: 1;
  transform: none;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(61, 90, 254, .1) 0%, rgba(61, 90, 254, .05) 100%);
  border: 2px solid rgba(61, 90, 254, .2);
  border-radius: 50px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(61, 90, 254, .3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(61, 90, 254, 0);
  }
}

.section-badge svg {
  width: 20px;
  height: 20px;
}

.about-principles-top {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 32px 0 40px;
  flex-wrap: wrap;
}

.principle-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
  border: 2px solid rgba(61, 90, 254, .2);
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(61, 90, 254, .08);
}

.principle-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 90, 254, .2);
  border-color: var(--primary);
  background: var(--gradient-primary);
  color: #fff;
}

.principle-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: all .3s ease;
}

.principle-badge:hover .principle-badge-icon {
  background: #fff;
  color: var(--primary);
}

.principle-badge-icon svg {
  width: 18px;
  height: 18px;
}

.principle-badge span {
  white-space: nowrap;
}

.about-subtitle {
  margin-bottom: 32px;
}

.about-subtitle p {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

.about-subtitle p:last-child {
  margin-bottom: 0;
}

.about-subtitle p strong {
  color: var(--text);
  font-weight: 700;
}

.modal-lead {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.6;
  padding: 20px;
  background: linear-gradient(135deg, rgba(61, 90, 254, .08) 0%, rgba(61, 90, 254, .03) 100%);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.alt {
  background: #fafbfd;
}

h1,
h2,
h3 {
  margin: 0 0 .45em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(32px, 3.5vw, 50px);
}

.lead {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--muted);
  max-width: 920px;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.site-header.scrolled {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(22, 30, 50, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.brand {
  color: #fff;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: color .3s ease;
}

.site-header.scrolled .brand {
  color: #e5edff;
}

.logo-icon {
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 700;
  padding: 8px 10px;
}

.logo-icon img {
  filter: brightness(0) invert(1);
  transition: filter .3s ease;
}

.site-header.scrolled .logo-icon img {
  /* После скролла логотип меняет цвет на фирменный */
  filter: none;
}

.brand small {
  display: block;
  opacity: .86;
}

.main-nav {
  display: flex;
  gap: 24px;
  color: #fff;
  font-weight: 500;
  transition: color .3s ease;
}

.main-nav a {
  position: relative;
  transition: color .3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #8fb4ff;
  transition: .2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: background .3s ease;
}


.logo-icon img {
  width: 100%;
  object-fit: cover;
  max-width: 150px;
}


.hero {
  min-height: 100vh;
  padding-top: 50px;
  display: flex;
  align-items: center;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: .8s ease;
  background: url('/static/images/hero/mountains.jpg') center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(125, 169, 255, .22), transparent 35%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero-kicker {
  margin: 0 0 14px;
  color: #dce8ff;
  letter-spacing: .03em;
  font-size: 16px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 84px);
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero-description {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: #e3eaf5;
  max-width: 680px;
  margin-bottom: 32px;
  opacity: .95;
}

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

.btn {
  border: 0;
  border-radius: 12px;
  padding: 20px 22px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(61, 90, 254, .28);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(61, 90, 254, .4);
}

.btn-outline {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .65);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .24);
}

.btn-header {
  padding: 11px 16px;
  color: #fff;
  border: 1px solid #fff;
}

.glass-card {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #e8eaf6;
  box-shadow: var(--shadow-md);
}

.hover-lift {
  transition: transform .25s ease, box-shadow .25s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.hover-zoom {
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

.hover-zoom:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.icon-badge {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #5a7fff 0%, #3d5afe 50%, #2948d8 100%);
  box-shadow: 0 4px 16px rgba(61, 90, 254, .32), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.icon {
  color: #fff;
  width: 26px;
  height: 26px;
}

.card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.card-head h3 {
  margin: 3px 0 0;
}

/* О нас - компактный layout */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.about-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-qualities {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.quality-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid #e8eaf6;
  transition: all .3s ease;
}

.quality-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(61, 90, 254, .12);
}

.quality-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.quality-icon svg {
  width: 24px;
  height: 24px;
}

.quality-text h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--text);
  font-weight: 700;
}

.quality-text p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.about-stats-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(61, 90, 254, .15);
  box-shadow: 0 4px 20px rgba(61, 90, 254, .08);
}

.stat-compact {
  text-align: center;
  position: relative;
}

.stat-icon-mini {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, .25);
}

.stat-icon-mini svg {
  width: 22px;
  height: 22px;
}

.stat-compact .stat-number {
  font-size: clamp(32px, 3.5vw, 40px);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  display: block;
}

.stat-compact .stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.btn-about-story {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  color: var(--primary);
  font: inherit;
  cursor: pointer;
  transition: all .4s ease;
  text-align: left;
  box-shadow: 0 4px 16px rgba(61, 90, 254, .1);
}

.btn-about-story svg {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.btn-about-story div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-about-story strong {
  font-size: 17px;
  font-weight: 700;
  display: block;
}

.btn-about-story span {
  font-size: 14px;
  opacity: .8;
  font-weight: 500;
}

.btn-about-story:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(61, 90, 254, .3);
}

.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 600px;
  background: url('/static/images/about/accountant.jpg') center/cover no-repeat;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.85) 8%,
      rgba(255, 255, 255, 0.5) 20%,
      transparent 40%,
      transparent 60%,
      rgba(255, 255, 255, 0.5) 80%,
      rgba(255, 255, 255, 0.85) 92%,
      rgba(255, 255, 255, 1) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.85) 8%,
      rgba(255, 255, 255, 0.5) 20%,
      transparent 40%,
      transparent 60%,
      rgba(255, 255, 255, 0.5) 80%,
      rgba(255, 255, 255, 0.85) 92%,
      rgba(255, 255, 255, 1) 100%
    );
  pointer-events: none;
  z-index: 1;
}

.about-photo-badge {
  position: relative;
  z-index: 2;
}

.about-photo-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  border: 2px solid rgba(61, 90, 254, .2);
  z-index: 2;
}

.about-photo-badge svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.about-photo-badge span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.about-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.about-modal.active {
  opacity: 1;
  pointer-events: all;
}

.about-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 32, 58, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.about-modal-content {
  position: relative;
  width: min(900px, 92%);
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
  transform: scale(.9);
  transition: transform .3s ease;
}

.about-modal.active .about-modal-content {
  transform: scale(1);
}

.about-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .05);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: all .3s ease;
  color: var(--text);
  z-index: 10;
}

.about-modal-close svg {
  width: 24px;
  height: 24px;
}

.about-modal-close:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

.about-modal-body {
  padding: 48px;
}

.about-modal-body h2 {
  margin: 0 0 32px;
  font-size: clamp(28px, 3vw, 36px);
  color: var(--text);
}

.about-modal-section {
  margin-bottom: 40px;
}

.about-modal-section h3 {
  font-size: 22px;
  color: var(--text);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8eaf6;
}

.about-modal-section p {
  margin: 0 0 16px;
  line-height: 1.8;
  color: var(--muted);
  font-size: 15px;
}

.about-modal-section p:last-child {
  margin-bottom: 0;
}

.about-modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.about-modal-stat {
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 2px solid rgba(61, 90, 254, .1);
}

.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 14px;
  color: var(--muted);
}


.services-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
  border: 1px solid rgba(61, 90, 254, .08);
  transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(61, 90, 254, .05) 0%, rgba(61, 90, 254, .02) 100%);
  opacity: 0;
  transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(61, 90, 254, .15), 0 0 0 1px rgba(61, 90, 254, .1);
  transform: translateY(-12px);
}

.service-card:hover::before {
  opacity: 1;
  top: 0;
  left: 0;
}

.service-icon {
  width: 88px;
  height: 88px;
  min-width: 88px;
  position: relative;
  z-index: 1;
  transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  transform: scale(1.08) translateY(-4px);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .12));
  transition: filter .5s ease;
}

.service-card:hover .service-icon svg {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .18));
}

.service-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.service-content h3 {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  transition: all .3s ease;
  letter-spacing: -0.02em;
}

.service-card:hover .service-content h3 {
  color: var(--primary);
}

.service-content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.65;
  flex: 1;
}

.service-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(61, 90, 254, .25);
  align-self: flex-start;
  margin-top: auto;
}

.service-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 90, 254, .4);
}

.service-details-btn:active {
  transform: translateY(0);
}

/* Модальное окно услуг */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.service-modal.active {
  opacity: 1;
  pointer-events: all;
}

.service-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 32, 58, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-modal-content {
  position: relative;
  width: min(680px, 90%);
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
  padding: 40px;
  transform: scale(.9);
  transition: transform .3s ease;
}

.service-modal.active .service-modal-content {
  transform: scale(1);
}

.service-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: all .3s ease;
  color: var(--text);
}

.service-modal-close svg {
  width: 24px;
  height: 24px;
}

.service-modal-close:hover {
  background: #f5f7fa;
  color: var(--primary);
}

.service-modal-content h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 32px);
  color: var(--text);
}

.service-modal-description {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 20px;
}

.service-modal-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.service-modal-price,
.service-modal-time {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #f5f7fa;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
}

.service-modal-price svg,
.service-modal-time svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.service-modal-content h3 {
  margin: 28px 0 16px;
  font-size: 20px;
  color: var(--text);
}

.service-modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.service-modal-features li {
  position: relative;
  padding-left: 32px;
  margin: 12px 0;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
}

.service-modal-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.service-modal-cta {
  width: 100%;
  text-align: center;
  margin-top: 24px;
}

/* Модальное окно со списком всех услуг */
.all-services-list {
  max-height: 85vh;
  overflow-y: auto;
}

.all-services-list h2 {
  margin: 0 0 24px;
  padding-right: 40px;
}

.all-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.all-service-item {
  padding: 24px;
  background: #f8f9fb;
  border-radius: 12px;
  cursor: pointer;
  transition: all .3s ease;
  border: 2px solid transparent;
}

.all-service-item:hover {
  background: #fff;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 90, 254, .15);
}

.all-service-item h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
}

.all-service-item p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.all-service-price {
  font-weight: 600;
  color: var(--primary);
  font-size: 16px;
}

.cta-laptop {
  padding: 48px 40px;
  color: #fff;
  min-height: 380px;
  background: linear-gradient(to right, rgba(61, 90, 254, .92) 0%, rgba(61, 90, 254, .25) 60%, rgba(61, 90, 254, .3) 100%), url('/static/images/cta/laptop.jpg') center/cover no-repeat;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
}

.cta-laptop h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  margin-bottom: 16px;
}

.cta-laptop p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: .98;
}

.cta-laptop ul,
.partner-text ul,
.final-form ul,
.scale-card ul,
.tariff-card ul {
  list-style: none;
  padding-left: 0;
  margin: 14px 0 0;
}

.cta-laptop li,
.partner-text li,
.final-form li,
.scale-card li,
.tariff-card li {
  margin: 8px 0;
}

.cta-laptop li::before,
.partner-text li::before,
.final-form li::before,
.scale-card li::before,
.tariff-card li::before {
  content: "✓";
  color: #4e79d9;
  margin-right: 8px;
  font-weight: 700;
}

.btn-cta-white-special {
  display: inline-block;
  padding: 16px 36px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  border: none;
  cursor: pointer;
}

.btn-cta-white-special:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
  background: #f8f9fb;
}

/* Timeline процесса работы */
.process-timeline {
  max-width: 920px;
  margin: 48px auto 0;
  position: relative;
  padding-left: 0;
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: all .6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 70px;
  bottom: -40px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(61, 90, 254, 0.2) 100%);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-number {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(61, 90, 254, .35);
  position: relative;
  z-index: 2;
  transition: all .3s ease;
}

.timeline-item:hover .timeline-number {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(61, 90, 254, .45);
}

.timeline-content {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid #e8eaf6;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s ease;
}

.timeline-item:hover .timeline-content::before {
  transform: scaleY(1);
}

.timeline-item:hover .timeline-content {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(61, 90, 254, .18);
  transform: translateX(8px);
}

.timeline-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e3ebff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

.timeline-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  transition: all .3s ease;
}

.timeline-item:hover .timeline-icon {
  background: var(--gradient-primary);
  transform: rotate(5deg) scale(1.05);
}

.timeline-item:hover .timeline-icon svg {
  color: #fff;
}

.timeline-text {
  flex: 1;
}

.timeline-text h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--text);
}

.timeline-text p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Секция партнёра */
/* ===== PARTNER SECTION (КОМПАКТНЫЙ ДИЗАЙН) ===== */
/* ===== PARTNER SECTION ===== */
.section-partner {
  background: #fff;
  position: relative;
  overflow: hidden;
}

.partner-tabs {
  display: inline-flex;
  padding: 4px;
  background: #e5edff;
  border-radius: 999px;
  margin-bottom: 32px;
  gap: 4px;
}

.partner-tab {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #1e293b;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.partner-tab.active {
  background: #fff;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
}

.partner-slides {
  position: relative;
}

.partner-slides .partner-slide {
  display: none;
}

.partner-slides .partner-slide.active {
  display: grid;
}

.section-partner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(61, 90, 254, .03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.partner-modern {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.partner-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.partner-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(61, 90, 254, .1) 0%, rgba(61, 90, 254, .05) 100%);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 100px;
  border: 1px solid rgba(61, 90, 254, .15);
}

.partner-content h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 42px);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.partner-content > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.65;
  max-width: 520px;
}

.partner-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0;
}

.partner-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8f9fb;
  border-radius: 12px;
  border: 1px solid #e8eaf6;
  transition: all .3s ease;
}

.partner-feature:hover {
  background: #fff;
  border-color: var(--primary);
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(61, 90, 254, .1);
}

.feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(61, 90, 254, .25);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.partner-feature span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.partner-actions-modern {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn-partner-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(61, 90, 254, .3);
  font-family: inherit;
}

.btn-partner-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(61, 90, 254, .4);
}

.btn-partner-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.btn-partner-secondary svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: all .3s ease;
}

.btn-partner-secondary:hover {
  background: #f8f9fb;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.btn-partner-secondary:hover svg {
  transform: scale(1.1);
}

.partner-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-banner-modern {
  position: relative;
  width: 100%;
  max-width: 450px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .15);
  transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.partner-banner-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, .1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
  z-index: 1;
}

.partner-banner-modern:hover {
  transform: translateY(-12px) rotate(2deg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .2);
}

.partner-banner-modern:hover::before {
  opacity: 1;
  animation: shine 1.5s ease-in-out;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }
  100% {
    transform: translateX(100%) translateY(100%);
  }
}

.partner-banner-modern img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 0;
}

.partner-banner-modern--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #e0f2fe 0%, #eff6ff 40%, #e5edff 100%);
}

.partner-placeholder {
  padding: 32px 24px;
  text-align: center;
}

.partner-placeholder-label {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #e5edff;
  font-size: 13px;
  font-weight: 500;
}

/* ===== CERTIFICATES MODAL ===== */
.certificates-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}

.certificates-modal.active {
  opacity: 1;
  visibility: visible;
}

.certificates-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px);
}

.certificates-modal-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1000px;
  max-height: 85vh;
  background: #fff;
  border-radius: 24px;
  padding: 48px;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
  transform: scale(.9);
  transition: transform .3s ease;
}

.certificates-modal.active .certificates-modal-content {
  transform: scale(1);
}

.certificates-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, .05);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s ease;
  z-index: 2;
}

.certificates-modal-close svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

.certificates-modal-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.certificates-modal-close:hover svg {
  color: #fff;
}

.certificates-modal-content h2 {
  margin: 0 0 32px;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--text);
  text-align: center;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.certificate-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
  transition: all .3s ease;
  aspect-ratio: 3 / 4;
}

.certificate-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
}

.certificate-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.certificate-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, transparent 100%);
  color: #fff;
  text-align: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.certificate-item:hover .certificate-overlay {
  opacity: 1;
}

.certificate-overlay span {
  font-size: 15px;
  font-weight: 600;
}

/* ===== CERTIFICATE VIEW MODAL ===== */
.certificate-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}

.certificate-view-modal.active {
  opacity: 1;
  visibility: visible;
}

.certificate-view-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(12px);
}

.certificate-view-content {
  position: relative;
  z-index: 1;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(.9);
  transition: transform .3s ease;
}

.certificate-view-modal.active .certificate-view-content {
  transform: scale(1);
}

.certificate-view-close {
  position: absolute;
  top: -60px;
  right: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, .1);
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s ease;
}

.certificate-view-close svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.certificate-view-close:hover {
  background: #fff;
  transform: rotate(90deg);
}

.certificate-view-close:hover svg {
  color: var(--text);
}

.certificate-view-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
}
  transform: scale(1.02);
}

/* ===== BUSINESS SCALES ===== */
/* Только на мобильных делаем 1 колонку */
@media (max-width: 860px) {
  .scale-grid {
    grid-template-columns: 1fr !important;
  }
}

.scale-card {
  position: relative;
  border-radius: 20px;
  padding: 32px 28px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
  border: 1px solid #e8eaf6;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.scale-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(61, 90, 254, .05), transparent);
  transition: left .6s ease;
}

.scale-card:hover::before {
  left: 100%;
}

.scale-card:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 48px rgba(61, 90, 254, .12);
  transform: translateY(-8px) scale(1.02);
}

.scale-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 12px rgba(61, 90, 254, .2));
}

.scale-card:hover .scale-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 8px 20px rgba(61, 90, 254, .35));
}

.scale-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.scale-card h3 {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--text);
  font-weight: 700;
  transition: color .3s ease;
}

.scale-card:hover h3 {
  color: var(--primary);
}

.scale-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scale-card li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  transition: all .3s ease;
}

.scale-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #3D5AFE 0%, #2948D8 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(61, 90, 254, .2);
}

.scale-card:hover li {
  color: var(--text);
}

.scale-card:hover li::before {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(61, 90, 254, .3);
}

.tariffs-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.tariff-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 0;
  overflow: hidden;
  border: 2px solid #e8eaf6;
  transition: all .35s ease;
  display: flex;
  flex-direction: column;
}

.tariff-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.tariff-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.03);
}

.tariff-card.popular:hover {
  transform: scale(1.03) translateY(-8px);
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(61, 90, 254, .35);
  z-index: 2;
}

.tariff-img {
  height: clamp(220px, 24vw, 280px);
  background-size: cover;
  background-position: var(--tariff-pos, center);
  background-repeat: no-repeat;
  transition: transform .4s ease;
  position: relative;
}

.tariff-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

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

.tariff-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tariff-body h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.5vw, 28px);
  color: var(--text);
}

.tariff-description {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 24px;
  line-height: 1.5;
}

.tariff-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.tariff-body li {
  position: relative;
  padding-left: 32px;
  margin: 14px 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.tariff-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #3D5AFE 0%, #2948D8 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(61, 90, 254, .2);
  transition: all .3s ease;
}

.tariff-card:hover li::before {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(61, 90, 254, .3);
}

.tariff-body .btn {
  width: 100%;
  margin: 0;
}

.start {
  --tariff-pos: 50% 24%;
  background-image:
    url('/static/images/tariffs/start.jpg'),
    url('/static/images/tariffs/start.jpeg'),
    url('/static/images/tariffs/start.png'),
    url('/static/images/tariffs/start.webp');
}

.business {
  --tariff-pos: 50% 38%;
  background-image:
    url('/static/images/tariffs/business.jpg'),
    url('/static/images/tariffs/business.jpeg'),
    url('/static/images/tariffs/business.png'),
    url('/static/images/tariffs/business.webp');
}

.individual {
  --tariff-pos: 50% 32%;
  background-image:
    url('/static/images/tariffs/individual.jpg'),
    url('/static/images/tariffs/individual.jpeg'),
    url('/static/images/tariffs/individual.png'),
    url('/static/images/tariffs/individual.webp');
}

.final-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.final-image {
  min-height: 420px;
  background: url('/static/images/cta/laptop.jpg') center/cover no-repeat;
}

.final-form {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.final-form h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: clamp(24px, 2.5vw, 28px);
}

.form-description {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.required {
  color: #ef233c;
}

.final-form input,
.final-form textarea,
.final-form select {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #e8eaf6;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  transition: all .3s ease;
}

.final-form input:hover,
.final-form textarea:hover,
.final-form select:hover {
  border-color: #d3ddf1;
}

.final-form input:focus,
.final-form textarea:focus,
.final-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(61, 90, 254, .1);
}

.final-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2314243a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.final-form textarea {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  padding: 10px;
  border-radius: 8px;
  transition: background .2s ease;
  position: relative;
}

.checkbox-label:hover {
  background: #f8f9fb;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #d3ddf1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .3s ease;
  background: #fff;
}

.checkbox-custom::after {
  content: "✓";
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.5);
  transition: all .2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--gradient-primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  opacity: 1;
  transform: scale(1);
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(61, 90, 254, .15);
}

.privacy-checkbox {
  margin-top: 4px;
  padding: 12px;
  background: #f8f9fb;
  border-radius: 8px;
}

.privacy-text {
  font-size: 13px;
  color: var(--muted);
}

.privacy-text a {
  color: var(--primary);
  text-decoration: underline;
}

.privacy-text a:hover {
  color: var(--primary-hover);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.form-benefits {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.form-benefits li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
}

.form-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

/* Футер */
.footer {
  background: linear-gradient(135deg, #1e3a5f 0%, #14243a 100%);
  color: #e3eaf5;
  padding: 60px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo img {
  width: 120px;
  height: 80px;
  border-radius: 12px;
}

.footer-logo strong {
  font-size: 20px;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 14px;
  color: #a8bfe3;
  margin: 0;
}

.footer-description {
  color: #c1d0e8;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

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

.footer-column h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column li {
  margin: 0;
}

.footer-column a {
  color: #c1d0e8;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s ease;
  display: inline-block;
}

.footer-column a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c1d0e8;
  transition: all .3s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-copyright {
  text-align: right;
}

.footer-copyright p {
  margin: 0;
  font-size: 14px;
  color: #c1d0e8;
}

.footer-legal {
  margin-top: 4px;
  font-size: 12px;
  color: #8a9fb8;
}

.footer-legal .made-by-atii {
  color: #ef4444;
  font-weight: 600;
  text-decoration: none;
}

.footer-legal .made-by-atii:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  max-width: 640px;
  width: calc(100% - 32px);
  background: rgba(15, 23, 42, 0.98);
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1300;
  opacity: 0;
  pointer-events: none;
  transform-origin: center bottom;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5f5;
}

.cookie-banner__text a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: #bfdbfe;
}

.cookie-banner__button {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #3b82f6;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cookie-banner__button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.cookie-banner__button:focus {
  outline: 2px solid #bfdbfe;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__button {
    width: 100%;
    text-align: center;
  }
}

.footer-copyright a {
  color: #94a3b8;
  text-decoration: none;
  margin-left: 8px;
}

.footer-copyright a:hover {
  color: #c1d0e8;
  text-decoration: underline;
}

/* Блок скачивания документов в футере */
.footer-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 24px 0 0;
}

.footer-download-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-download-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-download-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

.footer-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--primary, #3d5afe);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
  width: fit-content;
}

.footer-download-btn:hover {
  background: #2d4ae8;
  color: #fff;
  transform: translateY(-1px);
}

.footer-download-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

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

/* Контакты и карта */
/* ===== CONTACTS SECTION (КАРТА В ЦЕНТРЕ) ===== */
.contacts-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 24px;
  margin-top: 40px;
  align-items: start;
}

.contacts-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-widget {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid #e8eaf6;
  transition: all .3s ease;
}

.contact-widget:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.widget-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e3ebff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 12px;
  transition: all .3s ease;
}

.contact-widget:hover .widget-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.05);
}

.widget-icon svg {
  width: 22px;
  height: 22px;
}

.widget-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.widget-content p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
  font-size: 13px;
}

.widget-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease;
}

.widget-content a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.map-center {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  height: 500px;
  border: 3px solid #fff;
}

#yandex-map {
  width: 100%;
  height: 100%;
}

/* Социальные сети внизу */
.social-widgets {
  margin-top: 32px;
  text-align: center;
}

.social-widgets h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--text);
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all .3s ease;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-btn.vk {
  background: #0077ff;
  color: #fff;
}

.social-btn.vk:hover {
  background: #0063d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 119, 255, .3);
}

.social-btn.telegram {
  background: #0088cc;
  color: #fff;
}

.social-btn.telegram:hover {
  background: #0077b5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 136, 204, .3);
}

.social-btn.whatsapp {
  background: #25D366;
  color: #fff;
}

.social-btn.whatsapp:hover {
  background: #1ebd56;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .3);
}

/* ===== FOOTER ===== */

@media (max-width: 1024px) {
  .steps-grid,
  .tariffs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .tariffs-grid {
    gap: 24px;
  }

  .partner-modern {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  
  .partner-banner-modern {
    max-width: 380px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .about-photo {
    min-height: 400px;
  }
  
  .contacts-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contacts-sidebar.left,
  .contacts-sidebar.right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .map-center {
    height: 450px;
  }
  
  .about-stats-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .about-modal-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-modal-body {
    padding: 40px 32px;
  }
  
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    right: 4%;
    left: 4%;
    background: rgba(20, 32, 58, .98);
    border-radius: 14px;
    display: none;
    flex-direction: column;
    padding: 16px;
    gap: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
  }

  .main-nav.open {
    display: flex;
  }

  .btn-header {
    display: none;
  }

  .about-layout,
  .services-grid,
  .final-layout,
  .tariffs-grid {
    grid-template-columns: 1fr;
  }
  
  .tariffs-grid {
    gap: 20px;
  }
  
  .tariff-card.popular {
    transform: scale(1);
  }
  
  .tariff-card.popular:hover {
    transform: translateY(-8px);
  }
  
  .tariff-body {
    padding: 24px;
  }
  
  .partner-modern {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .partner-visual {
    order: -1;
  }
  
  .partner-banner-modern {
    max-width: 100%;
  }
  
  .partner-content {
    text-align: center;
    align-items: center;
  }
  
  .partner-features {
    width: 100%;
  }
  
  .partner-feature {
    text-align: left;
  }
  
  .partner-actions-modern {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-partner-primary,
  .btn-partner-secondary {
    width: 100%;
  }
  
  .contacts-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contacts-sidebar {
    order: 2;
  }
  
  .map-center {
    order: 1;
    height: 450px;
  }
  
  .social-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .social-btn {
    justify-content: center;
  }
  
  .contacts-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .map-container,
  .map-center {
    height: 400px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .footer-copyright {
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .final-form {
    padding: 28px 24px;
  }
  
  .about-photo {
    order: -1;
    min-height: 350px;
  }
  
  .about-stats-compact {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 16px;
  }
  
  .stat-compact .stat-number {
    font-size: 24px;
  }
  
  .stat-compact .stat-label {
    font-size: 12px;
  }
  
  .about-modal-content {
    width: 96%;
    max-height: 90vh;
  }
  
  .about-modal-body {
    padding: 32px 24px;
  }
  
  .about-modal-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .certificates-modal-content {
    width: 96%;
    padding: 36px 24px;
  }
  
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 60px);
  }

  .partner-images {
    order: -1;
  }

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

@media (max-width: 560px) {
  .section {
    padding: 56px 0;
  }

  .steps-grid,
  .tariffs-grid {
    grid-template-columns: 1fr;
  }
  
  .tariff-img {
    height: clamp(180px, 40vw, 220px);
  }
  
  .tariff-body {
    padding: 20px;
  }

  h2 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .lead {
    font-size: 16px;
  }

  .cta-laptop {
    padding: 32px 24px;
  }

  .partner-text {
    padding: 24px 20px;
  }
  
  .final-form {
    padding: 24px 20px;
  }
  
  .form-benefits {
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .map-container {
    height: 320px;
  }
  
  .about-stats-compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .about-modal-body {
    padding: 28px 20px;
  }

  .chat-window {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 70vh;
    max-height: 70vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: 0;
  }

  .chat-widget {
    right: 16px;
    bottom: 16px;
  }

  .chat-launcher {
    padding: 14px 24px;
    font-size: 15px;
  }
  
  .chat-launcher svg {
    width: 20px;
    height: 20px;
  }
  
  .chat-notification {
    width: 260px;
    bottom: 70px;
    right: 0;
    padding: 16px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
}

.chat-launcher {
  border: 0;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50px;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(61, 90, 254, .4);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}

.chat-launcher svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.chat-launcher:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 36px rgba(61, 90, 254, .6);
}

.chat-launcher:active {
  transform: translateY(-2px) scale(1.02);
}

/* Всплывающее уведомление */
.chat-notification {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
  border: 2px solid var(--primary);
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.chat-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: notificationPulse 2s ease-in-out infinite;
}

@keyframes notificationPulse {
  0%, 100% {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15), 0 0 0 0 rgba(61, 90, 254, .4);
  }
  50% {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15), 0 0 0 8px rgba(61, 90, 254, 0);
  }
}

.notification-content {
  position: relative;
}

.notification-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(0, 0, 0, .05);
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.notification-close:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

.notification-content p {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.notification-content strong {
  color: var(--primary);
  font-size: 16px;
}

.notification-text {
  color: var(--muted);
  font-size: 14px;
}

.chat-window {
  width: 22vw;
  min-width: 360px;
  max-width: 440px;
  height: 65vh;
  min-height: 520px;
  max-height: 720px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
  border: 1px solid rgba(61, 90, 254, .1);
  display: none;
  overflow: hidden;
  margin-bottom: 16px;
}

.chat-widget.open .chat-window {
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: chatSlideUp .3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 24px 24px 0 0;
}

.chat-header strong {
  font-size: 16px;
  font-weight: 600;
}

.chat-header p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: .9;
}

.chat-close {
  border: 0;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 300;
}

.chat-close:hover {
  background: rgba(255, 255, 255, .25);
  transform: rotate(90deg);
}

.chat-messages {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}

.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.bot-avatar {
  margin-bottom: 16px;
  animation: bounceIn .6s ease;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.welcome-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 20px;
  max-width: 90%;
}

.quick-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.quick-question-btn {
  background: #fff;
  border: 1.5px solid #e8eaf6;
  border-radius: 14px;
  padding: 14px 18px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
  text-align: left;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.quick-question-btn:hover {
  border-color: var(--primary);
  background: #f8faff;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(61, 90, 254, .12);
}

.quick-question-btn::after {
  content: "→";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  opacity: 0;
  transition: all .2s ease;
}

.quick-question-btn:hover::after {
  opacity: 1;
  right: 14px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.chat-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  animation: messageSlideIn .3s ease;
  word-wrap: break-word;
}

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

.chat-message.bot {
  background: #fff;
  color: var(--text);
  align-self: flex-start;
  border: 1px solid #e8eaf6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  border-radius: 18px 18px 18px 4px;
}

.chat-message.user {
  background: var(--gradient-primary);
  color: #fff;
  align-self: flex-end;
  box-shadow: 0 4px 12px rgba(61, 90, 254, .24);
  border-radius: 18px 18px 4px 18px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid #f0f2f5;
  background: #fff;
}

.chat-form input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  transition: all .2s ease;
  background: #f8fafc;
}

.chat-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61, 90, 254, .08);
}

.chat-form input::placeholder {
  color: #94a3b8;
}

.chat-form button {
  border: 0;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 12px rgba(61, 90, 254, .24);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-form button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(61, 90, 254, .32);
}

.chat-form button:active {
  transform: translateY(0) scale(0.98);
}

/* Медиазапросы */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  
  .service-card {
    padding: 32px 24px;
  }
  
  .service-icon {
    width: 76px;
    height: 76px;
  }
  
  .service-modal-content {
    padding: 32px 24px;
  }
  
  .all-services-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .timeline-item {
    gap: 24px;
  }
  
  .timeline-content {
    padding: 24px;
  }
  
  .timeline-text h3 {
    font-size: 18px;
  }
}

@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .service-card {
    padding: 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .service-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }
  
  .service-content h3 {
    font-size: 20px;
  }
  
  .service-content p {
    font-size: 15px;
  }
  
  .service-details-btn {
    align-self: center;
  }
  
  .service-modal-content {
    width: 94%;
    max-height: 90vh;
    padding: 28px 20px;
  }
  
  .service-modal-meta {
    flex-direction: column;
    gap: 12px;
  }
  
  .service-modal-price,
  .service-modal-time {
    width: 100%;
  }
  
  .all-services-grid {
    grid-template-columns: 1fr;
  }
  
  .process-timeline {
    padding-left: 0;
    margin-top: 32px;
  }
  
  .timeline-item {
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .timeline-item::before {
    left: 24px;
  }
  
  .timeline-number {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .timeline-content {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  
  .timeline-icon {
    width: 48px;
    height: 48px;
  }
  
  .timeline-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .timeline-text h3 {
    font-size: 17px;
  }
  
  .timeline-text p {
    font-size: 14px;
  }
  
  /* Исправления для scale-card на мобильных */
  .scale-grid {
    grid-template-columns: 1fr !important;
  }
  
  .scale-card {
    padding: 24px 20px;
  }
  
  .scale-icon {
    width: 56px;
    height: 56px;
  }
  
  .scale-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .scale-card li {
    font-size: 14px;
    padding-left: 26px;
  }
  
  .scale-card li::before {
    width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
  }
  
  /* Статистика О нас */
  .about-stats-compact {
    padding: 20px 16px;
    gap: 16px;
  }
  
  .stat-compact {
    padding: 16px 12px;
  }
  
  .stat-compact .stat-number {
    font-size: 28px;
  }
  
  .stat-compact .stat-label {
    font-size: 13px;
  }
  
  /* Плашки принципов */
  .about-principles-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .principle-badge {
    width: 100%;
    justify-content: flex-start;
  }
  
  /* Hero секция */
  .hero-content h1 {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .hero-content .subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}