/* А1 — строительная компания */

:root {
  --color-bg: #121212;
  --color-surface: #1a1a1a;
  --color-surface-elevated: #242424;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-text: #ffffff;
  --color-text-muted: #b3b3b3;
  --color-accent: #e31e24;
  --color-accent-hover: #ff3a40;
  --color-accent-soft: rgba(227, 30, 36, 0.14);
  --color-accent-rgb: 227, 30, 36;
  --color-ink: #0a0a0a;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --header-h: 84px;
  --container: min(1120px, calc(100% - 40px));
  --transition: 0.22s ease;
  --ease-micro: cubic-bezier(0.4, 0, 0.2, 1);
  --micro: 0.28s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  --scroll-p: 0;
  scroll-behavior: smooth;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Анимации (отключаются глобально при prefers-reduced-motion) */
@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroKenBurns {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.07) translate(-1.2%, -0.8%);
  }
}

@keyframes ctaMapGlow {
  0%,
  100% {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(227, 30, 36, 0);
  }
  50% {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(227, 30, 36, 0.22),
      0 0 28px rgba(227, 30, 36, 0.12);
  }
}

@keyframes backToTopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroOverlayPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes aboutIconPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  /* Сетка + градиенты, движущиеся с прокруткой (--scroll-p на html, 0…1) */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(
      ellipse 110% 75% at calc(72% + var(--scroll-p) * 18%) calc(-5% + var(--scroll-p) * 55%),
      rgba(227, 30, 36, calc(0.07 + var(--scroll-p) * 0.16)) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 90% 60% at calc(18% - var(--scroll-p) * 12%) calc(102% - var(--scroll-p) * 28%),
      rgba(227, 30, 36, calc(0.05 + var(--scroll-p) * 0.1)) 0%,
      transparent 50%
    ),
    linear-gradient(
      165deg,
      transparent 0%,
      rgba(227, 30, 36, calc(var(--scroll-p) * 0.06)) 45%,
      transparent 85%
    );
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  background-attachment: scroll, scroll, fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Лёгкий film grain поверх страницы */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 92;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  contain: strict;
}

.grain-overlay__svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .grain-overlay {
    opacity: 0.08;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.82) 0%, rgba(18, 18, 18, 0.68) 100%);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

@supports not (backdrop-filter: blur(1px)) {
  .header {
    background: rgba(18, 18, 18, 0.94);
  }
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

/* Прижать контент шапки к краям экрана (не влияет на остальные секции) */
.header__inner.container {
  width: 100%;
  margin-inline: 0;
  padding-inline: 20px;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .header__inner.container {
    padding-inline: 16px;
  }
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem 0.85rem;
  line-height: 1.15;
  flex-shrink: 0;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  flex-shrink: 0;
}

.logo-badge--footer {
  margin-bottom: 0.75rem;
}

.logo__img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.9));
}

@media (max-width: 480px) {
  .logo__img {
    height: 46px;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 901px) {
  .nav-toggle {
    margin-left: 0;
  }

  .nav {
    margin-left: auto;
  }
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav__list a:hover {
  color: var(--color-text);
}

@media (min-width: 901px) {
  .nav__list a {
    position: relative;
  }

  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    border-radius: 1px;
    background: var(--color-accent);
    transition: width var(--micro) var(--ease-micro);
  }

  .nav__list a:hover::after,
  .nav__list a:focus-visible::after {
    width: 100%;
  }
}

.nav__cta {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem 20px 2rem;
    background: rgba(26, 26, 26, 0.88);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav__list a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.05rem;
  }

  .nav__cta {
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(227, 30, 36, 0.38);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slider {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.35s ease;
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__slide.is-active img {
  animation: heroKenBurns 16s ease-in-out infinite alternate;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active img {
    animation: none;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(18, 18, 18, 0.93) 0%, rgba(18, 18, 18, 0.78) 45%, rgba(26, 26, 26, 0.92) 100%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.025) 40px,
      rgba(255, 255, 255, 0.025) 41px
    ),
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--color-accent-soft), transparent 50%);
  background-size:
    auto,
    32px 32px,
    32px 32px,
    auto,
    auto;
  pointer-events: none;
}

.hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 100%, rgba(227, 30, 36, 0.09), transparent 55%);
  opacity: 0.65;
  animation: heroOverlayPulse 10s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__overlay::after {
    animation: none;
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 640px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow {
    animation: heroFadeInUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero__title {
    animation: heroFadeInUp 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.09s both;
  }

  .hero__lead {
    animation: heroFadeInUp 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
  }

  .hero__actions {
    animation: heroFadeInUp 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
  }
}

/* Сворачиваемое содержимое блоков */
.block-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}

.block-toolbar__titles {
  flex: 1;
  min-width: min(100%, 280px);
}

.section__head--toolbar {
  margin-bottom: 0;
  max-width: none;
}

.section__head--toolbar .section__title {
  margin-bottom: 0;
}

.section .block-toolbar + .section__intro {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.5rem 0.95rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow 0.35s ease;
}

.section-toggle:hover {
  background: rgba(227, 30, 36, 0.12);
  border-color: rgba(227, 30, 36, 0.4);
  box-shadow: 0 4px 20px rgba(227, 30, 36, 0.12);
}

.section-toggle__icon {
  display: block;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: none;
  border-left: none;
  transform: rotate(-135deg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-toggle[aria-expanded="false"] .section-toggle__icon {
  transform: rotate(45deg);
}

.block-collapsible__panel {
  display: block;
  overflow: hidden;
  width: 100%;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.block-collapsible__panel.is-open {
  max-height: 10000px;
}

.block-collapsible__inner {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .block-collapsible__panel {
    transition: none;
  }

  .section-toggle__icon {
    transition: none;
  }
}

@media (max-width: 520px) {
  .block-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .section-toggle {
    justify-content: center;
  }
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* Sections */
main {
  position: relative;
  z-index: 0;
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--muted {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section__head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  position: relative;
  padding-bottom: 0.35rem;
}

.section__label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--color-accent), rgba(227, 30, 36, 0.2));
  transition: width 0.65s var(--ease-micro);
}

.reveal.is-visible .section__label::after {
  width: 2.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .section__label::after {
    width: 2.75rem;
    transition: none;
  }
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section__intro {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

.about__card {
  padding: 1.75rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition:
    border-color var(--transition),
    transform var(--micro) var(--ease-micro),
    box-shadow var(--micro) var(--ease-micro);
}

.about__card:hover {
  border-color: rgba(var(--color-accent-rgb), 0.4);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.about__icon {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 1rem;
  opacity: 0.9;
  display: inline-block;
  transform-origin: left center;
  animation: aboutIconPulse 4.5s ease-in-out infinite;
}

.about__grid .about__card:nth-child(1) .about__icon {
  animation-delay: 0s;
}

.about__grid .about__card:nth-child(2) .about__icon {
  animation-delay: 0.45s;
}

.about__grid .about__card:nth-child(3) .about__icon {
  animation-delay: 0.9s;
}

.about__grid .about__card:nth-child(4) .about__icon {
  animation-delay: 1.35s;
}

.about__grid .about__card:nth-child(5) .about__icon {
  animation-delay: 1.8s;
}

@media (prefers-reduced-motion: reduce) {
  .about__icon {
    animation: none;
  }
}

.about__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  min-height: 2.5em;
}

.about__card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Мини-свертки описаний направлений в "О нас" и карточек в "Проекты" */
.about__desc,
.project__desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
}

.about__desc.is-open {
  /* Достаточно для текущих описаний; подстраивать не нужно */
  max-height: 200px;
  opacity: 1;
}

.project__desc.is-open {
  max-height: 560px;
  opacity: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.about-mini-toggle,
.project-mini-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin-top: 0;
  padding: 0.25rem;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow 0.35s ease;
  user-select: none;
}

.about-mini-toggle:hover,
.project-mini-toggle:hover {
  background: rgba(var(--color-accent-rgb), 0.08);
  border-color: rgba(var(--color-accent-rgb), 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.about-mini-toggle__icon,
.project-mini-toggle__icon {
  display: block;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: none;
  border-left: none;
  transform: rotate(-135deg);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-mini-toggle[aria-expanded="false"] .about-mini-toggle__icon,
.project-mini-toggle[aria-expanded="false"] .project-mini-toggle__icon {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .about__desc,
  .project__desc {
    transition: none;
  }

  .about-mini-toggle__icon,
  .project-mini-toggle__icon {
    transition: none;
  }
}

.reveal:not(.is-visible) .about__grid .about__card {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible .about__grid .about__card {
  animation: heroFadeInUp 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal.is-visible .about__grid .about__card:nth-child(1) {
  animation-delay: 0.06s;
}

.reveal.is-visible .about__grid .about__card:nth-child(2) {
  animation-delay: 0.12s;
}

.reveal.is-visible .about__grid .about__card:nth-child(3) {
  animation-delay: 0.18s;
}

.reveal.is-visible .about__grid .about__card:nth-child(4) {
  animation-delay: 0.24s;
}

.reveal.is-visible .about__grid .about__card:nth-child(5) {
  animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal .about__grid .about__card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Vacancies */
.vacancies {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vacancy {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  align-items: start;
  transition:
    border-color var(--transition),
    transform var(--micro) var(--ease-micro),
    box-shadow var(--micro) var(--ease-micro);
}

.vacancy:hover {
  border-color: rgba(var(--color-accent-rgb), 0.28);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  .vacancy {
    grid-template-columns: 1fr;
  }
}

.vacancy__main {
  grid-column: 1;
}

.vacancy__title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.vacancy__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.vacancy__desc {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 560px;
  display: none;
}

.vacancy__link {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  white-space: nowrap;
  padding: 0.65rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
  background: transparent;
  border-color: rgba(var(--color-accent-rgb), 0.32);
  box-shadow: none;
}

.vacancy__link:hover {
  color: var(--color-accent-hover);
  background: rgba(var(--color-accent-rgb), 0.07);
  border-color: rgba(var(--color-accent-rgb), 0.48);
  box-shadow: none;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .vacancy__desc {
    grid-column: 1;
  }

  .vacancy__link {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
    text-align: center;
  }
}

/* Documents */
.docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .docs {
    grid-template-columns: 1fr;
  }
}

.doc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--micro) var(--ease-micro),
    box-shadow var(--micro) var(--ease-micro);
}

.doc-card:hover {
  border-color: rgba(var(--color-accent-rgb), 0.35);
  background: rgba(var(--color-accent-rgb), 0.08);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.doc-card__type {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.doc-card__name {
  font-size: 1.05rem;
  font-weight: 600;
}

.doc-card__hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Partners */
.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 200px;
  min-width: 0;
  max-width: 220px;
  min-height: 88px;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-elevated);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  transition:
    color var(--transition),
    border-color var(--transition),
    transform var(--micro) var(--ease-micro),
    background var(--micro) var(--ease-micro);
}

.partner:hover {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.04);
}

.partner--logo {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0.85rem 1rem 1rem;
  border-style: solid;
}

/* Одна высота «полки» под логотип — выравнивание картинок и ссылок в ряду */
.partner__logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  flex-shrink: 0;
}

.partner__logo-frame img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Ссылка прижата к низу карточки: в ряду карточки одной высоты — строка ссылок на одной линии */
.partner--logo .partner__doc-link {
  margin-top: auto;
  padding-top: 0.55rem;
}

/* Ссылка на соглашение / контракт (PDF) под логотипом — обычная текстовая ссылка */
.partner__doc-link {
  display: block;
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(var(--color-accent-rgb), 0.45);
  text-underline-offset: 0.2em;
  color: var(--color-accent);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.partner__doc-link:hover {
  color: var(--color-accent-hover);
  text-decoration-color: rgba(var(--color-accent-rgb), 0.85);
}

.partner__doc-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .projects {
    grid-template-columns: 1fr;
  }
}

.project {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  transition:
    transform var(--micro) var(--ease-micro),
    box-shadow var(--micro) var(--ease-micro),
    border-color var(--transition);
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  border-color: rgba(var(--color-accent-rgb), 0.22);
}

.project__visual {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.project__visual--1 {
  background-image: linear-gradient(160deg, #353535 0%, #1a1a1a 100%);
}

.project__visual--2 {
  background-image: linear-gradient(160deg, #3a3330 0%, #1c1c1c 100%);
}

.project__visual--3 {
  background-image: linear-gradient(160deg, #383030 0%, #1f1f1f 100%);
}

.project__visual--photo {
  padding: 0;
  background: var(--color-surface-elevated);
}

.project__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: stretch;
  position: relative;
  padding: 1.35rem 1.5rem 1.5rem;
}

.project__body > .project__title {
  margin: 0 0 0.75rem;
  padding-right: 2.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.project__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.project__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.project__more {
  margin-top: auto;
  padding-top: 1.1rem;
  width: 100%;
}

@media (min-width: 901px) {
  .project__more {
    width: auto;
    align-self: flex-start;
    min-width: 9rem;
  }
}

/* Модальное окно: галерея проекта */
/* У закрытого <dialog> должен быть display:none; не задавайте display на базовом селекторе — иначе перебивается UA и окно «залипает». */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  box-shadow: none;
  box-sizing: border-box;
}

.project-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal:not([open]) {
  display: none;
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-modal__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(920px, 100%);
  max-height: min(90vh, 880px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.project-modal__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.02em;
  padding-right: 0.5rem;
}

.project-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -0.25rem -0.35rem -0.25rem 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.project-modal__close:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-border);
}

.project-modal__close-icon {
  display: block;
  width: 18px;
  height: 18px;
  position: relative;
}

.project-modal__close-icon::before,
.project-modal__close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.project-modal__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.project-modal__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.project-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.project-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  align-content: start;
}

@media (min-width: 600px) {
  .project-modal__gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

.project-modal__thumb {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.2s ease;
}

.project-modal__thumb:hover {
  border-color: rgba(var(--color-accent-rgb), 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.project-modal__thumb:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.project-modal__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Лайтбокс: <dialog> + showModal() — верхний слой поверх модалки галереи */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  border: none;
  background: transparent;
  box-sizing: border-box;
}

.gallery-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox:not([open]) {
  display: none;
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.gallery-lightbox__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-out;
}

.gallery-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: min(96vw, 1500px);
  max-height: 100%;
  pointer-events: none;
  padding-top: 0.25rem;
}

.gallery-lightbox__content > * {
  pointer-events: auto;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 920px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.gallery-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.gallery-lightbox__close:hover {
  background: rgba(50, 50, 50, 0.98);
  border-color: rgba(255, 255, 255, 0.35);
}

.gallery-lightbox__close-icon {
  display: block;
  width: 16px;
  height: 16px;
  position: relative;
}

.gallery-lightbox__close-icon::before,
.gallery-lightbox__close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.gallery-lightbox__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.gallery-lightbox__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.gallery-lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.gallery-lightbox__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(30, 30, 30, 0.92);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}

.gallery-lightbox__arrow:hover:not(:disabled) {
  background: rgba(227, 30, 36, 0.35);
  border-color: rgba(227, 30, 36, 0.55);
}

.gallery-lightbox__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-lightbox__counter {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  min-width: 4.5rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .project-modal__thumb:hover {
    transform: none;
  }
}

.project-modal__placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
  background: rgba(255, 255, 255, 0.03);
}

.project-modal__note {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Удобство для клиента */
.client-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.client-benefit {
  padding: 1.5rem 1.6rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--transition),
    transform var(--micro) var(--ease-micro),
    box-shadow var(--micro) var(--ease-micro);
}

.client-benefit:hover {
  border-color: rgba(var(--color-accent-rgb), 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.client-benefit__icon {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.65rem;
}

.client-benefit__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.client-benefit__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.faq__heading {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  overflow: hidden;
}

.faq__question {
  display: block;
  padding: 1rem 2.75rem 1rem 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  transition: background var(--transition);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid var(--color-text-muted);
  border-top: none;
  border-left: none;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.3s var(--ease-micro), border-color var(--transition);
}

.faq__item[open] .faq__question::after {
  transform: translateY(-20%) rotate(225deg);
  border-color: var(--color-accent);
}

.faq__item[open] .faq__question {
  background: rgba(227, 30, 36, 0.06);
}

.faq__question:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq__answer {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  border-top: 1px solid var(--color-border);
  padding-top: 0.85rem;
}

.client__cta {
  margin: clamp(1.75rem, 4vw, 2.25rem) 0 0;
  text-align: center;
}

/* CTA */
.cta {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, transparent 55%),
    var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.cta__wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.cta__map-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}

.cta__map-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 21 / 9;
  min-height: 260px;
  background: var(--color-surface-elevated);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: ctaMapGlow 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cta__map-frame {
    animation: none;
  }
}

.cta__map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cta__map-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.5;
}

.cta__map-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.cta__map-link:hover {
  color: var(--color-accent-hover);
}

@media (max-width: 640px) {
  .cta__map-frame {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
}

.cta__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
}

.cta__lead {
  margin: 0;
  max-width: 420px;
  color: var(--color-text-muted);
}

.cta__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cta__phone {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-accent);
}

.cta__phone:hover {
  color: var(--color-accent-hover);
}

.cta__mail {
  font-weight: 600;
  color: var(--color-text);
}

.cta__mail:hover {
  color: var(--color-accent);
}

.cta__address {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Footer */
.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__logo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.9));
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 280px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer__nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition), transform var(--micro) var(--ease-micro);
}

.footer__nav a:hover {
  color: var(--color-text);
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .about__card:hover,
  .vacancy:hover,
  .doc-card:hover,
  .partner:hover,
  .project:hover,
  .client-benefit:hover {
    transform: none;
    box-shadow: none;
  }

  .faq__question::after {
    transition: none;
  }

  .btn--primary:hover,
  .btn--ghost:hover,
  .vacancy__link:hover {
    transform: none;
    box-shadow: none;
  }

  .footer__nav a:hover {
    transform: none;
  }
}

/* Кнопка «Наверх» */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(10px);
  color: var(--color-text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition), background var(--transition), border-color var(--transition),
    opacity 0.25s ease;
}

.back-to-top:not([hidden]) {
  animation: backToTopIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top:not([hidden]) {
    animation: none;
  }
}

.back-to-top:hover {
  background: var(--color-surface-elevated);
  border-color: rgba(255, 255, 255, 0.2);
}

.back-to-top:active {
  transform: scale(0.96);
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top__arrow {
  display: block;
  width: 0;
  height: 0;
  margin-bottom: 4px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid currentColor;
}

/* Появление секций при скролле */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-micro), transform 0.6s var(--ease-micro);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Страница 404 */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

.error-page__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 8vw, 4rem) 0;
  position: relative;
  z-index: 1;
}

.error-page__panel {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
}

.error-page__code {
  margin: 0 0 0.5rem;
  font-size: clamp(3.5rem, 18vw, 6.5rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--color-accent);
  text-shadow: 0 0 48px rgba(var(--color-accent-rgb), 0.22);
  opacity: 0.92;
}

.error-page__title {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
}

.error-page__lead {
  margin: 0 0 1.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.error-page .footer__brand .logo-badge--footer {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity var(--transition);
}

.error-page .footer__brand .logo-badge--footer:hover {
  opacity: 0.92;
}
