/* Легион / rabochiemsk — red · grey · black, SEO-friendly base */
:root {
  --black: #0a0a0b;
  --bg-deep: #0f0f12;
  --surface: #16161c;
  --surface-2: #1e1e26;
  --border: rgba(255, 255, 255, 0.08);
  --grey-400: #9ca3af;
  --grey-300: #d1d5db;
  --white: #f4f4f5;
  --red: #c41e2a;
  --red-bright: #e32636;
  --red-dim: rgba(196, 30, 42, 0.15);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
  --topbar-h: 36px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red-bright);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: #ff4d5c;
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: #fff;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.topbar {
  background: #050506;
  color: var(--grey-300);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.topbar a {
  color: var(--white);
  font-weight: 600;
}

.topbar a:hover {
  color: var(--red-bright);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(15, 15, 18, 0.94);
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #2a2a32, #121218);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  /* слой для корректной обрезки img в Safari / части мобильных движков */
  isolation: isolate;
  transform: translateZ(0);
}

/* Глобальные img { max-width; height: auto } ломают круг — задаём явно */
.brand-logo {
  width: 48px;
  height: 48px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.04rem;
  line-height: 1;
  min-width: 0;
}

/* Ширина колонки = домен; верхняя строка растягивается на ту же ширину */
.brand-text strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-align: justify;
  text-align-last: justify;
}
.brand-text strong::after {
  content: '';
  display: inline-block;
  width: 100%;
  height: 0;
  line-height: 0;
  vertical-align: top;
}

.brand-text > span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--grey-400);
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  color: var(--grey-300);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--red-bright), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--red-bright);
}

.nav-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.7;
}

.mega {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  top: calc(100% + 0.5rem);
  min-width: 320px;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out),
    visibility 0.3s;
}

.nav-item:hover .mega,
.nav-item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--grey-300);
  font-size: 0.9rem;
  font-weight: 600;
}

.mega a:hover {
  background: var(--red-dim);
  color: var(--white);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

@media (max-width: 1024px) {
  .header-cta .btn-outline {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background 0.25s var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: #fff;
  box-shadow: 0 8px 28px rgba(196, 30, 42, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(227, 38, 54, 0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: rgba(227, 38, 54, 0.5);
  color: var(--red-bright);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: inline-flex;
  }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
}

.mobile-drawer.is-open {
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.mobile-drawer.is-open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100%;
  background: var(--bg-deep);
  border-left: 1px solid var(--border);
  padding: 1.25rem 1.25rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
}

.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  color: var(--grey-300);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover {
  color: var(--red-bright);
}

.mobile-sub {
  padding: 0.5rem 0 0.75rem 0.75rem;
}

.mobile-sub a {
  border: none;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.55) 45%, rgba(10, 10, 11, 0.88) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(196, 30, 42, 0.18), transparent),
    linear-gradient(180deg, #1a1a22 0%, #0a0a0b 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 46rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 22ch;
}

.hero-lead {
  margin: 0 0 2rem;
  color: var(--grey-300);
  font-size: 1.05rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.hero-visual-inner {
  width: 100%;
  max-width: min(420px, 100%);
  transform: translate3d(var(--hero-tx, 0px), var(--hero-ty, 0px), 0);
  will-change: transform;
}

.hero-scene {
  display: block;
  width: 100%;
  height: auto;
  color: var(--grey-400);
}

.hero-scene-orb {
  transform-origin: 300px 120px;
}

.hero-scene-glow-bar {
  transform-origin: 220px 192px;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
  }

  .hero-visual {
    justify-content: flex-end;
    padding-right: 0.25rem;
  }

  .hero-visual-inner {
    max-width: 440px;
  }
}

@media (max-width: 959px) {
  .hero-inner {
    padding-bottom: 4.5rem;
  }

  .hero-visual {
    position: absolute;
    right: max(-12%, -2.5rem);
    top: 42%;
    transform: translateY(-50%);
    width: min(78vw, 340px);
    justify-content: flex-end;
    opacity: 0.5;
    pointer-events: none;
  }

  .hero-visual-inner {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    right: -10%;
    width: min(88vw, 300px);
    opacity: 0.42;
    top: 38%;
  }
}

.trust-bar {
  background: linear-gradient(180deg, #121218, #0d0d10);
  border-block: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-cell {
  padding: 1.35rem 1.25rem;
  border-right: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: background 0.3s var(--ease-out);
}

.trust-cell:last-child {
  border-right: none;
}

@media (max-width: 900px) {
  .trust-cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.trust-cell:hover {
  background: rgba(196, 30, 42, 0.06);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red-dim);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--red-bright);
}

.trust-cell h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-cell p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--grey-400);
  line-height: 1.5;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--black) 100%);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin: 0 0 0.5rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-title .line {
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--red-bright), var(--red));
  border-radius: 2px;
  transform-origin: left;
  animation: line-grow 0.9s var(--ease-out) forwards;
}

@keyframes line-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .split-hero {
    grid-template-columns: 1fr;
  }
}

.split-visual {
  border-radius: var(--radius);
  min-height: 280px;
  background: linear-gradient(145deg, #25252e, #12121a);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.split-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(227, 38, 54, 0.2), transparent 55%);
}

.prose {
  color: var(--grey-300);
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 38, 54, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.price-card:hover::before {
  opacity: 1;
}

.price-card.featured {
  border-color: rgba(227, 38, 54, 0.45);
  box-shadow: 0 0 0 1px rgba(227, 38, 54, 0.2);
}

.price-card.featured::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  border-radius: 3px 3px 0 0;
}

.price-badge {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.price-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--grey-400);
  text-transform: uppercase;
}

.price-card h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-meta {
  font-size: 0.88rem;
  color: var(--grey-300);
  margin-bottom: 0.75rem;
}

.price-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--red-bright);
  margin-bottom: 0.5rem;
}

.price-phone {
  font-size: 0.85rem;
  color: var(--grey-400);
}

.price-phone a {
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
}

.service-block {
  margin-bottom: 4rem;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-block .accent-line {
  width: 48px;
  height: 3px;
  background: var(--red-bright);
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.service-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (max-width: 700px) {
  .service-images {
    grid-template-columns: 1fr;
  }
}

.ph {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2a2a34, #15151c);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--grey-400);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  transition: transform 0.4s var(--ease-out);
}

.ph:hover {
  transform: scale(1.02);
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.field {
  margin-bottom: 1rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}

.field input::placeholder {
  color: var(--grey-400);
}

.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--grey-400);
  margin: 1rem 0 1.25rem;
}

.checkbox-row input {
  margin-top: 0.2rem;
}

.contact-info h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-info > p {
  color: var(--grey-400);
  margin: 0 0 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-cell {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.info-cell:nth-child(2n) {
  border-right: none;
}

@media (max-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-cell {
    border-right: none;
  }
}

.info-cell .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red-dim);
  color: var(--red-bright);
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

.info-cell h3 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--grey-400);
  text-transform: uppercase;
}

.info-cell p {
  margin: 0;
  font-weight: 600;
}

.accordion {
  border-top: 1px solid var(--border);
}

.acc-item {
  border-bottom: 1px solid var(--border);
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.acc-trigger:hover {
  color: var(--red-bright);
}

.acc-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition:
    transform 0.35s var(--ease-out),
    background 0.25s;
}

.acc-item.is-open .acc-icon {
  transform: rotate(45deg);
  background: var(--red-dim);
  border-color: rgba(227, 38, 54, 0.4);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}

.acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
}

.acc-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.acc-panel-inner > div {
  padding: 0 0 1.5rem;
  color: var(--grey-300);
  font-size: 0.95rem;
}

.acc-panel ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.site-footer {
  background: #070708;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-400);
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: var(--grey-300);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  display: inline-block;
}

.footer-col a:hover {
  color: var(--red-bright);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--grey-400);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.stagger-1 {
  transition-delay: 0.08s;
}

.stagger-2 {
  transition-delay: 0.16s;
}

.stagger-3 {
  transition-delay: 0.24s;
}

.fab-chat {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #e85a1a, var(--red-bright));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(227, 38, 54, 0.45);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-out);
}

.fab-chat:hover {
  transform: scale(1.08);
}

a.fab-chat {
  text-decoration: none;
  color: #fff;
}

/* Модальное окно звонка (FAB) */
.rabs-call-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s var(--ease-out),
    visibility 0.35s;
}

.rabs-call-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.rabs-call-modal[hidden] {
  display: none !important;
}

body.rabs-modal-open {
  overflow: hidden;
}

.rabs-call-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rabs-call-modal__dialog {
  position: relative;
  width: min(400px, 100%);
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(165deg, var(--surface) 0%, var(--bg-deep) 100%);
  border: 1px solid rgba(227, 38, 54, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  text-align: center;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.4s var(--ease-out);
}

.rabs-call-modal.is-open .rabs-call-modal__dialog {
  transform: scale(1) translateY(0);
}

.rabs-call-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--grey-300);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.rabs-call-modal__close:hover {
  color: var(--white);
  border-color: rgba(227, 38, 54, 0.45);
}

.rabs-call-modal__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.rabs-call-modal__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.rabs-call-modal__phone {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
}

.rabs-call-modal__hint {
  margin: 0 0 1.35rem;
  font-size: 0.8rem;
  color: var(--grey-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rabs-call-modal__cta {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 14px 40px rgba(196, 30, 42, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  .rabs-call-modal,
  .rabs-call-modal__dialog {
    transition: none;
  }

  .rabs-call-modal.is-open .rabs-call-modal__dialog {
    transform: none;
  }
}

.to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 800;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--grey-300);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  color: var(--white);
  border-color: var(--red-bright);
}

.page-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--black) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero p {
  margin: 0;
  max-width: 60ch;
  color: var(--grey-400);
}

.subservice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.sub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition:
    border-color 0.3s,
    transform 0.3s var(--ease-out);
}

.sub-card:hover {
  border-color: rgba(227, 38, 54, 0.35);
  transform: translateY(-4px);
}

.sub-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.sub-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--grey-400);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.city-grid a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--grey-300);
  font-weight: 600;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.city-grid a:hover {
  background: var(--red-dim);
  border-color: rgba(227, 38, 54, 0.4);
  color: var(--white);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--grey-400);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--grey-400);
}

.breadcrumb a:hover {
  color: var(--red-bright);
}

/* --- Call CTA (вместо форм) --- */
.call-cta-block {
  text-align: left;
  background: linear-gradient(165deg, var(--surface) 0%, rgba(22, 22, 28, 0.92) 100%);
  border: 1px solid rgba(227, 38, 54, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.call-cta-block h2 {
  margin: 0 0 0.75rem;
}

.call-cta-phone {
  width: 100%;
  text-align: center;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  letter-spacing: 0.04em;
  animation: cta-pulse-soft 3.2s ease-in-out infinite;
}

.call-cta-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--grey-400);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes cta-pulse-soft {
  0%,
  100% {
    box-shadow: 0 12px 36px rgba(196, 30, 42, 0.35);
  }
  50% {
    box-shadow: 0 16px 44px rgba(227, 38, 54, 0.5);
  }
}

/* --- Доп. анимации (hero, карточки, FAB) --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: linear-gradient(
      115deg,
      transparent 38%,
      rgba(227, 38, 54, 0.07) 48%,
      rgba(255, 255, 255, 0.04) 52%,
      transparent 62%
    );
    background-size: 220% 220%;
    animation: hero-sheen 14s ease-in-out infinite;
    pointer-events: none;
  }

  .hero .hero-scene-orb {
    animation: hero-orb-breathe 9s ease-in-out infinite;
  }

  .hero .hero-scene-glow-bar {
    animation: hero-bar-shimmer 5.5s ease-in-out infinite;
  }

  @media (max-width: 959px) {
    .hero .hero-visual-inner[data-hero-parallax] {
      animation: hero-visual-float 11s ease-in-out infinite;
    }
  }

  .trust-icon {
    animation: trust-float 5s ease-in-out infinite;
  }

  .trust-cell:nth-child(2) .trust-icon {
    animation-delay: 0.4s;
  }

  .trust-cell:nth-child(3) .trust-icon {
    animation-delay: 0.8s;
  }

  .trust-cell:nth-child(4) .trust-icon {
    animation-delay: 1.2s;
  }

  .fab-chat {
    animation: fab-breathe 2.8s ease-in-out infinite;
  }

  .service-block.reveal.is-visible .accent-line {
    animation: accent-draw 0.75s var(--ease-out) forwards;
    transform-origin: left center;
  }

  .reveal {
    filter: blur(4px);
  }

  .reveal.is-visible {
    filter: blur(0);
  }
}

@keyframes hero-sheen {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}

@keyframes hero-visual-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -16px, 0);
  }
}

@keyframes hero-orb-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

@keyframes hero-bar-shimmer {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@keyframes trust-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes fab-breathe {
  0%,
  100% {
    box-shadow: 0 12px 40px rgba(227, 38, 54, 0.45);
  }
  50% {
    box-shadow: 0 18px 52px rgba(227, 38, 54, 0.62);
  }
}

@keyframes accent-draw {
  from {
    transform: scaleX(0.15);
    opacity: 0.5;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* ============================================================
   Фотографии с объектов — компактные кадры в матовой рамке
   ============================================================ */

.photo {
  --photo-matte: 9px;
  --photo-radius: 16px;
  --photo-inner-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

/* Матовая рамка — паспарту ровно со всех сторон */
.photo-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding: var(--photo-matte);
  border-radius: var(--photo-radius);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(155deg, #32323c 0%, #1c1c24 42%, #14141a 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 14px 36px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: var(--photo-matte);
  z-index: 2;
  pointer-events: none;
  border-radius: var(--photo-inner-radius);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 24px rgba(0, 0, 0, 0.18);
  background: linear-gradient(
    185deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(10, 10, 11, 0) 36%,
    rgba(10, 10, 11, 0.2) 100%
  );
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: var(--photo-inner-radius);
  object-fit: cover;
  object-position: center 40%;
  image-orientation: from-image;
  filter: saturate(0.95) contrast(1.05) brightness(0.96);
  transition:
    transform 0.65s var(--ease-out),
    filter 0.4s var(--ease-out);
}

.photo:hover .photo-frame {
  border-color: rgba(227, 38, 54, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(227, 38, 54, 0.1);
}

.photo:hover img {
  transform: scale(1.025);
  filter: saturate(1.01) contrast(1.06) brightness(1);
}

/* Компактные пропорции — на самом кадре, рамка вокруг */
.photo-wide .photo-frame img {
  aspect-ratio: 16 / 10;
  height: auto;
}
.photo-tall .photo-frame img {
  aspect-ratio: 4 / 5;
  height: auto;
  max-height: 300px;
  width: 100%;
  object-fit: cover;
}

.photo-pos-top img {
  object-position: center 22%;
}
.photo-pos-upper img {
  object-position: center 32%;
}
.photo-pos-lower img {
  object-position: center 62%;
}

/* Подпись под рамкой — спокойнее и аккуратнее */
.photo-caption {
  position: static;
  margin: 0;
  padding: 0 0.15rem;
  color: var(--grey-400);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  text-shadow: none;
}

.photo-caption::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-right: 0.45rem;
  margin-bottom: 0.15em;
  vertical-align: middle;
  border-radius: 2px;
  background: var(--red-bright);
  opacity: 0.85;
}

/* Галереи: компактный ряд, не растягиваем на всю высоту экрана */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin-inline: auto;
}

.photo-gallery-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}

@media (max-width: 900px) {
  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .photo-gallery,
  .photo-gallery-2 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
  }

  .photo {
    --photo-matte: 6px;
  }
}

/* Широкая фотополоса — в рамке внутри контейнера */
.photo-band {
  position: relative;
  padding: 0 0 0.25rem;
  border: none;
  background: transparent;
}

.photo-band-inner {
  position: relative;
  width: min(1160px, 92vw);
  margin-inline: auto;
  height: clamp(168px, 22vw, 240px);
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121218;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 14px 36px rgba(0, 0, 0, 0.4);
}

.photo-band-inner img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 38%;
  image-orientation: from-image;
  filter: saturate(0.95) contrast(1.04) brightness(0.92);
}

.photo-band::after {
  content: none;
}

.photo-band-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(100deg, rgba(10, 10, 11, 0.78) 0%, rgba(10, 10, 11, 0.28) 52%, rgba(10, 10, 11, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.2) 0%, rgba(10, 10, 11, 0) 45%, rgba(10, 10, 11, 0.45) 100%);
}

.photo-band-caption {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.25rem 1.05rem;
  box-sizing: border-box;
}

.photo-band-caption p {
  margin: 0;
  max-width: 42ch;
  font-size: 0.85rem;
  color: var(--grey-300);
}

.photo-band-caption strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

/* Hero — компактнее, аккуратная рамка */
.hero-photo {
  max-width: 380px;
  margin-inline: auto 0;
}

.hero-photo .photo-frame {
  border-color: rgba(227, 38, 54, 0.3);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 18px 44px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(227, 38, 54, 0.12);
}

.hero-photo .photo-frame img {
  aspect-ratio: 16 / 11;
  height: auto;
}

.hero-photo-badge {
  position: absolute;
  z-index: 4;
  left: calc(var(--photo-matte) + 0.55rem);
  top: calc(var(--photo-matte) + 0.55rem);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.hero-photo-badge span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(227, 38, 54, 0.22);
  flex-shrink: 0;
}

@media (max-width: 959px) {
  .hero-inner .hero-visual {
    position: static;
    right: auto;
    top: auto;
    width: 100%;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    justify-content: stretch;
    margin-top: 0.25rem;
  }

  .hero-inner .hero-visual-inner {
    max-width: 100%;
    width: 100%;
  }

  .hero-photo {
    max-width: 480px;
    margin-inline: auto;
  }

  .hero .hero-visual-inner[data-hero-parallax] {
    animation: none;
  }

  .hero-inner {
    padding-bottom: 3.25rem;
  }
}

/* Пары в блоках услуг — ниже и ровнее */
.service-images {
  gap: 0.9rem;
  max-width: 820px;
  margin-inline: auto;
}

.service-images .photo {
  height: auto;
}

.service-images .photo-frame img {
  aspect-ratio: 16 / 10;
  height: auto;
}

/* Split-блок: фото не выше текста */
.split-hero .photo {
  max-width: 380px;
  margin-inline: auto;
}

.split-hero .photo-tall .photo-frame img {
  aspect-ratio: 4 / 5;
  max-height: 280px;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .photo img,
  .photo:hover img {
    transform: none;
    transition: none;
  }
}
