/* =========================================================
   APS PAGE — отдельные стили страницы aps.html
   Подключается вместе с основным styles.css
   ========================================================= */

.aps-page {
  position: relative;
}

.aps-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 28%, transparent 82%);
  opacity: .55;
}

.aps-section {
  position: relative;
  padding: 96px 0;
}

.aps-section-soft {
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.045));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.aps-hero {
  position: relative;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 90px 0 70px;
}

.aps-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(5, 12, 22, .92) 6%, rgba(5, 12, 22, .77) 42%, rgba(5, 12, 22, .58) 70%, rgba(5, 12, 22, .50) 100%),
    radial-gradient(circle at 85% 18%, rgba(32,164,255,.18), transparent 25%),
    radial-gradient(circle at 10% 90%, rgba(127,92,255,.12), transparent 26%),
    url('images/hero/slide-1.jpg') center/cover no-repeat;
  opacity: .95;
}

body[data-theme="light"] .aps-hero-bg {
  background:
    linear-gradient(110deg, rgba(244, 249, 255, .92) 6%, rgba(244, 249, 255, .80) 42%, rgba(244, 249, 255, .52) 70%, rgba(244, 249, 255, .38) 100%),
    radial-gradient(circle at 85% 18%, rgba(22,134,255,.16), transparent 25%),
    radial-gradient(circle at 10% 90%, rgba(110,92,255,.12), transparent 26%),
    url('images/hero/slide-1.jpg') center/cover no-repeat;
}

.aps-hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -170px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,190,255,.18) 0%, rgba(0,190,255,.06) 36%, transparent 72%);
  filter: blur(10px);
}

.aps-hero-grid,
.aps-integrator,
.aps-cta {
  position: relative;
  z-index: 1;
}

.aps-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 28px;
  align-items: center;
}

.aps-hero-title {
  margin: 0 0 18px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.aps-hero-text,
.aps-card p,
.aps-hero-card p,
.aps-step p,
.aps-target,
.aps-integrator-copy p {
  color: var(--muted);
}

.aps-hero-text {
  max-width: 720px;
  font-size: 18px;
}

.aps-badge {
  display: inline-flex;
  margin-bottom: 16px;
}

.aps-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.aps-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.aps-mini-stat,
.aps-card,
.aps-step,
.aps-target,
.aps-hero-card,
.aps-integrator,
.aps-cta {
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0,0,0,.20);
}

.aps-mini-stat {
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.10);
}

.aps-mini-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1;
}

.aps-mini-stat span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.aps-hero-card {
  padding: 32px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06)),
    linear-gradient(135deg, rgba(12,28,48,.94), rgba(7,17,31,.96));
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
}

body[data-theme="light"] .aps-hero-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.70)),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(246,251,255,.95));
}

.aps-hero-card::before,
.aps-card::before,
.aps-cta::before,
.aps-integrator::before {
  content: "";
  position: absolute;
  inset: auto -90px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,185,255,.14), transparent 72%);
  pointer-events: none;
}

.aps-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  color: #a7d8ff;
  font-size: 14px;
}

body[data-theme="light"] .aps-card-top {
  color: #1b70be;
}

.aps-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
}

.aps-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #70e1b5;
  box-shadow: 0 0 0 0 rgba(112,225,181,.65);
  animation: apsPulse 1.8s infinite;
}

@keyframes apsPulse {
  0% { box-shadow: 0 0 0 0 rgba(112,225,181,.65); }
  70% { box-shadow: 0 0 0 12px rgba(112,225,181,0); }
  100% { box-shadow: 0 0 0 0 rgba(112,225,181,0); }
}

.aps-check-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.aps-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 600;
}

.aps-check-item span,
.aps-icon-box,
.aps-step-num,
.aps-system-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(24,141,255,.30), rgba(0,208,255,.18));
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.aps-check-item span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 13px;
}

.aps-section-head.center {
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.aps-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.aps-grid {
  display: grid;
  gap: 24px;
}

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

.aps-card,
.aps-step,
.aps-target {
  position: relative;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

body[data-theme="light"] .aps-card,
body[data-theme="light"] .aps-step,
body[data-theme="light"] .aps-target,
body[data-theme="light"] .aps-mini-stat,
body[data-theme="light"] .aps-integrator,
body[data-theme="light"] .aps-cta {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.68));
}

.aps-card:hover,
.aps-step:hover,
.aps-target:hover,
.aps-pill:hover,
.aps-mini-stat:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 44px rgba(0,0,0,.26);
}

.aps-card h3,
.aps-step h3,
.aps-integrator-copy h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.aps-icon-box {
  margin-bottom: 18px;
  font-size: 24px;
}

.aps-step-num {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #178dff, #00cfff);
}

.aps-card-system ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.aps-card-system li + li {
  margin-top: 8px;
}

.aps-system-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.aps-system-head p {
  margin: 0;
  color: var(--muted);
}

.aps-system-mark {
  font-size: 22px;
}

.aps-target-grid {
  gap: 18px;
}

.aps-target {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.aps-integrator,
.aps-cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  padding: 34px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(12,39,70,.94), rgba(8,20,36,.96));
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}

body[data-theme="light"] .aps-integrator,
body[data-theme="light"] .aps-cta {
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(244,249,255,.92));
}

.aps-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.aps-pill {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  font-weight: 700;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

body[data-theme="light"] .aps-pill {
  background: rgba(255,255,255,.72);
}

.aps-pill i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(24,141,255,.26), rgba(0,208,255,.18));
}

.aps-cta-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 1160px) {
  .aps-hero-grid,
  .aps-integrator,
  .aps-cta,
  .aps-grid-4,
  .aps-grid-3,
  .aps-grid-2,
  .aps-mini-stats,
  .aps-pill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .aps-section {
    padding: 78px 0;
  }

  .aps-hero {
    min-height: auto;
    padding: 72px 0 56px;
  }

  .aps-hero-grid,
  .aps-integrator,
  .aps-cta,
  .aps-grid-4,
  .aps-grid-3,
  .aps-grid-2,
  .aps-mini-stats,
  .aps-pill-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .aps-hero-card,
  .aps-card,
  .aps-step,
  .aps-target,
  .aps-integrator,
  .aps-cta,
  .aps-mini-stat {
    padding: 22px;
  }

  .aps-btn-row {
    flex-direction: column;
  }

  .aps-btn-row .btn,
  .aps-cta-actions .btn {
    width: 100%;
  }
}


/* =========================================================
   TOP IT COMPANY EFFECTS
   ========================================================= */

.aps-service-media-grid {
  align-items: stretch;
}

.aps-service-card,
.aps-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 28px 60px rgba(0,0,0,.24);
  transform-style: preserve-3d;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.aps-service-card:hover,
.aps-photo-card:hover {
  box-shadow: 0 34px 72px rgba(0,0,0,.30);
  border-color: rgba(99,188,255,.34);
}

.aps-service-media {
  position: relative;
  min-height: 100%;
}

.aps-service-media img,
.aps-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .8s ease;
}

.aps-photo-card img {
  min-height: 310px;
}

.aps-service-card:hover img,
.aps-photo-card:hover img {
  transform: scale(1.08);
}

.aps-service-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(6,16,28,.08) 0%, rgba(6,16,28,.18) 28%, rgba(6,16,28,.88) 100%);
}

.aps-service-overlay .btn {
  margin-top: 16px;
}

.aps-service-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(64,183,255,.14);
  border: 1px solid rgba(133,214,255,.26);
  color: #d8f4ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.aps-service-overlay h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
}

.aps-service-overlay p {
  max-width: 640px;
  margin: 0;
  color: rgba(233,242,255,.84);
  font-size: 16px;
}

.aps-photo-grid {
  gap: 20px;
}

.aps-photo-card__content {
  padding: 22px 22px 24px;
}

.aps-photo-card__content h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.aps-photo-card__content p {
  margin: 0;
  color: var(--muted);
}

.tilt-card {
  will-change: transform;
}

.chat-widget--aps .chat-widget__typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-widget--aps .chat-widget__typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9fd8ff;
  display: inline-block;
  animation: chatPulse .9s infinite ease-in-out;
}

.chat-widget--aps .chat-widget__typing span:nth-child(2) { animation-delay: .12s; }
.chat-widget--aps .chat-widget__typing span:nth-child(3) { animation-delay: .24s; }

@keyframes chatPulse {
  0%, 80%, 100% { opacity: .35; transform: scale(.75); }
  40% { opacity: 1; transform: scale(1); }
}

.chat-widget--aps .chat-widget__quick {
  grid-template-columns: repeat(3, 1fr);
}

.chat-widget--aps .chat-widget__panel {
  position: relative;
}

.chat-widget--aps .chat-widget__panel::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64,183,255,.24), transparent 68%);
  pointer-events: none;
}

.chat-widget--aps .chat-widget__hint {
  padding: 0 18px 14px;
  color: #88cfff;
  font-size: 12px;
}

@media (max-width: 1160px) {
  .aps-service-media img {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .chat-widget--aps .chat-widget__quick {
    grid-template-columns: repeat(2, 1fr);
  }

  .aps-service-media img {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .aps-service-overlay {
    padding: 22px;
  }

  .aps-service-overlay h3 {
    font-size: 24px;
  }

  .aps-photo-card img {
    min-height: 240px;
  }

  .chat-widget--aps .chat-widget__quick {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MERGED PRETTY UPDATE
   ========================================================= */

.aps-hero {
  isolation: isolate;
}

.aps-web-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .95;
  mix-blend-mode: screen;
}

.aps-hero > *:not(.aps-web-canvas):not(.aps-hero-bg) {
  position: relative;
  z-index: 1;
}

.aps-mini-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  margin: 0 0 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
}

.aps-mini-track {
  display: flex;
  transition: transform .75s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.aps-mini-slide {
  min-width: 100%;
  position: relative;
}

.aps-mini-slide img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center;
}

.aps-mini-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,16,28,.30), rgba(6,16,28,.02));
}

.aps-mini-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: rgba(7,17,31,.62);
  border: 1px solid rgba(255,255,255,.12);
  z-index: 3;
  transition: transform .25s ease, background .25s ease;
}

.aps-mini-nav:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(36, 153, 255, .34);
}

.aps-mini-prev { left: 14px; }
.aps-mini-next { right: 14px; }

.aps-mini-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.aps-mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.16);
  transition: all .3s ease;
}

.aps-mini-dot.active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #41b8ff, #7fd6ff);
  box-shadow: 0 0 16px rgba(65,184,255,.45);
}

.aps-service-media-grid {
  align-items: stretch;
}

.aps-service-card,
.aps-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 28px 60px rgba(0,0,0,.24);
  transform-style: preserve-3d;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.aps-service-card:hover,
.aps-photo-card:hover {
  box-shadow: 0 34px 72px rgba(0,0,0,.30);
  border-color: rgba(99,188,255,.34);
}

.aps-service-media {
  position: relative;
  min-height: 100%;
}

.aps-service-media img,
.aps-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .8s ease;
}

.aps-photo-card img {
  min-height: 310px;
}

.aps-service-card:hover img,
.aps-photo-card:hover img {
  transform: scale(1.08);
}

.aps-service-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 32px;
  background: linear-gradient(180deg, rgba(6,16,28,.08) 0%, rgba(6,16,28,.16) 28%, rgba(6,16,28,.88) 100%);
}

.aps-service-overlay .btn { margin-top: 16px; }

.aps-service-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(64,183,255,.14);
  border: 1px solid rgba(133,214,255,.26);
  color: #d8f4ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.aps-service-overlay h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
}

.aps-service-overlay p {
  max-width: 640px;
  margin: 0;
  color: rgba(233,242,255,.84);
  font-size: 16px;
}

.aps-photo-grid { gap: 20px; }

.aps-photo-card__content {
  padding: 22px 22px 24px;
}

.aps-photo-card__content h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.aps-photo-card__content p {
  margin: 0;
  color: var(--muted);
}

.tilt-card {
  will-change: transform;
  transform-style: preserve-3d;
}

.aps-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.aps-contact-card,
.aps-form-card {
  position: relative;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 44px rgba(0,0,0,.20);
  backdrop-filter: blur(14px);
}

body[data-theme="light"] .aps-contact-card,
body[data-theme="light"] .aps-form-card {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.68));
}

.aps-contact-card h3,
.aps-form-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
}

.aps-contact-lead,
.aps-form-note {
  color: var(--muted);
  margin-bottom: 22px;
}

.aps-contact-list {
  display: grid;
  gap: 14px;
}

.aps-contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.aps-contact-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(24,141,255,.30), rgba(0,208,255,.18));
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
}

.aps-contact-item strong {
  display: block;
  margin-bottom: 6px;
}

.aps-contact-item a,
.aps-contact-item span {
  color: var(--text);
  text-decoration: none;
}

.aps-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.aps-form {
  display: grid;
  gap: 16px;
}

.aps-form-group {
  display: grid;
  gap: 8px;
}

.aps-form-group label {
  font-weight: 700;
}

.aps-form-group input,
.aps-form-group select,
.aps-form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline: none;
  resize: vertical;
}

body[data-theme="light"] .aps-form-group input,
body[data-theme="light"] .aps-form-group select,
body[data-theme="light"] .aps-form-group textarea {
  background: rgba(255,255,255,.82);
}

.aps-form-group input:focus,
.aps-form-group select:focus,
.aps-form-group textarea:focus {
  border-color: rgba(64,183,255,.7);
  box-shadow: 0 0 0 4px rgba(64,183,255,.12);
}

.aps-form-submit { width: 100%; }

.aps-social-fixed {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1200;
}

.aps-social-fixed__link {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  background: rgba(10,20,38,.82);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 34px rgba(0,0,0,.26);
  backdrop-filter: blur(10px);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.aps-social-fixed__link:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 22px 38px rgba(0,0,0,.34);
}

.aps-social-fixed__link.wa { background: linear-gradient(135deg, rgba(16,163,94,.95), rgba(37,211,102,.95)); }
.aps-social-fixed__link.ig { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.aps-social-fixed__link.fb { background: linear-gradient(135deg, #1877f2, #3b82f6); }
.aps-social-fixed__link.mail { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }

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

.chat-widget--aps .chat-widget__toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #1d9bf0, #60d6ff);
  box-shadow: 0 18px 34px rgba(16,110,194,.38);
}

.chat-widget--aps .chat-widget__badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 34px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #8ddbff;
  border: 1px solid rgba(255,255,255,.12);
}

.chat-widget--aps .chat-widget__panel {
  width: min(380px, calc(100vw - 32px));
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(9,18,32,.97), rgba(7,16,29,.95));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 28px 54px rgba(0,0,0,.36);
  backdrop-filter: blur(14px);
  transform-origin: bottom right;
  transition: opacity .3s ease, transform .3s ease;
}

.chat-widget--always-open .chat-widget__panel,
.chat-widget--aps.is-open .chat-widget__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-widget--aps .chat-widget__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(25,120,214,.24), rgba(96,214,255,.10));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.chat-widget--aps .chat-widget__title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.chat-widget--aps .chat-widget__subtitle {
  font-size: 13px;
  margin-top: 4px;
  color: #9ccfff;
}

.chat-widget--aps .chat-widget__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  background: rgba(255,255,255,.08);
}

.chat-widget--aps .chat-widget__messages {
  display: grid;
  gap: 10px;
  padding: 16px 18px 10px;
  max-height: 270px;
  overflow: auto;
}

.chat-widget--aps .chat-widget__message {
  display: flex;
}

.chat-widget--aps .chat-widget__message--user {
  justify-content: flex-end;
}

.chat-widget--aps .chat-widget__bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}

.chat-widget--aps .chat-widget__message--user .chat-widget__bubble {
  background: linear-gradient(135deg, #1d9bf0, #60d6ff);
  color: #04111f;
  font-weight: 700;
}

.chat-widget--aps .chat-widget__typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-widget--aps .chat-widget__typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9fd8ff;
  display: inline-block;
  animation: chatPulse .9s infinite ease-in-out;
}

.chat-widget--aps .chat-widget__typing span:nth-child(2) { animation-delay: .12s; }
.chat-widget--aps .chat-widget__typing span:nth-child(3) { animation-delay: .24s; }

@keyframes chatPulse {
  0%, 80%, 100% { opacity: .35; transform: scale(.75); }
  40% { opacity: 1; transform: scale(1); }
}

.chat-widget--aps .chat-widget__quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 18px 14px;
}

.chat-widget--aps .chat-widget__quick-btn {
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  color: #dff6ff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease;
}

.chat-widget--aps .chat-widget__quick-btn:hover {
  transform: translateY(-2px);
  background: rgba(80,180,255,.16);
}

.chat-widget--aps .chat-widget__hint {
  padding: 0 18px 14px;
  color: #88cfff;
  font-size: 12px;
}

.chat-widget--aps .chat-widget__form {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 10px;
  padding: 0 18px 18px;
}

.chat-widget--aps .chat-widget__input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
}

.chat-widget--aps .chat-widget__send {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  color: #04111f;
  background: linear-gradient(135deg, #1d9bf0, #60d6ff);
  font-size: 18px;
}

.chat-widget--always-open .chat-widget__toggle {
  display: none;
}

@media (max-width: 1160px) {
  .aps-service-media img {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .aps-contact-grid {
    grid-template-columns: 1fr;
  }

  .aps-social-fixed {
    right: 12px;
  }

  .aps-social-fixed__link {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .chat-widget--aps .chat-widget__quick {
    grid-template-columns: repeat(2, 1fr);
  }

  .aps-service-media img,
  .aps-mini-slide img {
    min-height: 320px;
    height: 220px;
  }
}

@media (max-width: 768px) {
  .chat-widget--aps {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .chat-widget--aps .chat-widget__panel {
    width: 100%;
  }

  .aps-social-fixed {
    top: auto;
    bottom: 100px;
    transform: none;
  }
}

@media (max-width: 560px) {
  .aps-service-overlay {
    padding: 22px;
  }

  .aps-service-overlay h3 {
    font-size: 24px;
  }

  .aps-photo-card img {
    min-height: 240px;
  }

  .chat-widget--aps .chat-widget__quick {
    grid-template-columns: 1fr;
  }
}


/* Новый логотип IT-System Solution */
.logo-mark img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 0 14px rgba(0,200,255,.45));}
.brand-logo img,.site-logo img{max-height:68px;width:auto;object-fit:contain;}
