/* охраннаяфирма.рф — dark luxury (Phantom-inspired) */

:root {
  --color-bg: #14110f;
  --color-bg-alt: #0a0908;
  --color-bg-light: #393634;
  --color-dark: #262525;
  --color-white: #f2f2f2;
  --color-text: #d9d2ce;
  --color-text-light: #e5dfda;
  --color-text-muted: #b3ada8;
  --color-border: #5a5755;
  --color-gold: #c2a16d;
  --color-gold-light: #e4cba4;
  --color-gold-accent: #e0c7a0;
  --color-gold-dark: #d2b689;
  --gold-gradient: linear-gradient(90deg, #c2a16d, #e2caa4 55.77%, #c2a16d);
  --font-heading: "Oswald", "Onest", sans-serif;
  --font-body: "Onest", sans-serif;
  --sidebar-w: 270px;
  --mobile-bar-h: 4.25rem;
  --gutter: clamp(1.25rem, 3.13vw, 3.75rem);
  --section-pad: clamp(4rem, 8.33vw, 10rem);
  --radius: 0;
  --ease: 0.35s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-gold-light);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--color-gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.muted {
  color: var(--color-text-muted);
}

.container {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.btn--sm {
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
}

.btn--block {
  width: 100%;
}

.btn--gold {
  border-color: var(--color-gold);
  background: rgba(38, 37, 37, 0.35);
  backdrop-filter: blur(10px);
  color: var(--color-white);
}

.btn--gold:hover {
  background: rgba(194, 161, 109, 0.25);
  color: var(--color-white);
  border-color: var(--color-gold-light);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--color-dark);
}

.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

/* Fixed left sidebar (Polotno structure, dark luxury look) */
.sidebar {
  display: none;
}

.page-shell {
  min-height: 100vh;
}

.mobile-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--mobile-bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(20, 17, 15, 0.95);
  border-bottom: 1px solid rgba(90, 87, 85, 0.45);
  backdrop-filter: blur(10px);
}

.mobile-bar__brand {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mobile-bar__brand img {
  max-height: 2.25rem;
  width: auto;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  transition: transform var(--ease), opacity var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--mobile-bar-h) 0 0;
  background: rgba(10, 9, 8, 0.97);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem var(--gutter);
  z-index: 99;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: var(--color-white);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-nav__label {
  margin: 0.75rem 0 0.15rem;
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

body.has-sidebar {
  padding-top: var(--mobile-bar-h);
}

@media (min-width: 1100px) {
  body.has-sidebar {
    padding-top: 0;
    padding-left: var(--sidebar-w);
  }

  .mobile-bar,
  .mobile-nav {
    display: none !important;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    padding: 1.5rem 1.2rem 1.25rem;
    background:
      linear-gradient(180deg, rgba(194, 161, 109, 0.06) 0%, transparent 28%),
      var(--color-bg-alt);
    border-right: 1px solid rgba(194, 161, 109, 0.22);
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.35);
    overflow: hidden;
  }

  .sidebar__top {
    flex-shrink: 0;
    margin-bottom: 1.35rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(194, 161, 109, 0.2);
  }

  .sidebar__brand {
    display: block;
    margin-bottom: 0.45rem;
  }

  .sidebar__brand-text {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .sidebar__logo {
    max-width: 100%;
    max-height: 3.25rem;
    width: auto;
  }

  .sidebar__tagline {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.45;
  }

  .sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .sidebar__nav a {
    position: relative;
    padding: 0.35rem 0 0.35rem 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1.4;
    transition: color var(--ease), padding-left var(--ease);
  }

  .sidebar__nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 0;
    background: var(--color-gold);
    transform: translateY(-50%);
    transition: height var(--ease);
  }

  .sidebar__nav a:hover,
  .sidebar__nav a.is-active {
    color: var(--color-gold-light);
    padding-left: 0.9rem;
  }

  .sidebar__nav a.is-active::before,
  .sidebar__nav a:hover::before {
    height: 70%;
  }

  .sidebar__services {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 1.15rem 0 0.85rem;
    overflow: auto;
  }

  .sidebar__services-label {
    margin: 0 0 0.7rem;
    color: var(--color-gold);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
  }

  .sidebar__services-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .sidebar__service {
    display: block;
    border-left: 1px solid rgba(194, 161, 109, 0.4);
    padding: 0.4rem 0 0.4rem 0.85rem;
    color: var(--color-text-muted);
    transition:
      color var(--ease),
      border-color var(--ease),
      background var(--ease),
      padding-left var(--ease);
  }

  .sidebar__service-text {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .sidebar__service:hover,
  .sidebar__service.is-active {
    color: var(--color-gold-light);
    border-left-color: var(--color-gold);
    padding-left: 0.95rem;
    background: linear-gradient(90deg, rgba(194, 161, 109, 0.08), transparent 70%);
  }

  .sidebar__service.is-active .sidebar__service-text {
    color: var(--color-gold-light);
  }

  .sidebar__spacer {
    flex: 1;
    min-height: 1rem;
  }

  .sidebar__quote {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    margin: 0 0 0.85rem;
    padding: 0 0.15rem;
  }

  .sidebar__quote--compact {
    margin-top: 0.15rem;
  }

  .sidebar__quote-text {
    margin: 0;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-left: 1px solid rgba(194, 161, 109, 0.35);
    padding-left: 0.75rem;
    opacity: 0.85;
  }

  .sidebar__bottom {
    flex-shrink: 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(194, 161, 109, 0.22);
  }

  .sidebar__phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
    text-align: center;
  }

  .sidebar__phone-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-gold);
  }

  .sidebar__phone-num {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
  }

  .sidebar__phone:hover {
    color: var(--color-gold-light);
  }

  .sidebar__form-label {
    margin: 0 0 0.45rem;
    color: var(--color-text-light);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .sidebar__form .lead-form--compact {
    margin: 0;
  }

  .sidebar__form .lead-form__title,
  .sidebar__form .lead-form__subtitle {
    display: none;
  }

  .sidebar__form .form-input {
    padding: 0.6rem 0.7rem;
    font-size: 0.8rem;
  }

  .sidebar__form .lead-form__fields {
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .sidebar__form .lead-form__consent {
    font-size: 0.58rem;
    margin-bottom: 0.55rem;
    line-height: 1.3;
  }

  .sidebar__form .btn {
    padding: 0.65rem 0.7rem;
    font-size: 0.68rem;
  }

  .sidebar__form .lead-form__status {
    font-size: 0.68rem;
  }

  .sidebar__messengers {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.7rem;
  }

  .sidebar__messengers a {
    min-width: 2.1rem;
    padding: 0.35rem 0.4rem;
    border: 1px solid rgba(90, 87, 85, 0.7);
    color: var(--color-text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    transition: border-color var(--ease), color var(--ease);
  }

  .sidebar__messengers a:hover {
    border-color: var(--color-gold);
    color: var(--color-gold-light);
  }

  .page-shell {
    width: 100%;
    max-width: 100%;
  }

  .snap-section {
    scroll-margin-top: 0;
  }
}

/* Flash */
.flash-wrap {
  position: fixed;
  top: calc(var(--mobile-bar-h) + 0.75rem);
  right: var(--gutter);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(24rem, calc(100vw - 2 * var(--gutter)));
}

@media (min-width: 1100px) {
  .flash-wrap {
    top: 1.25rem;
  }
}

.flash {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-border);
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 0.9rem;
}

.flash--success {
  border-color: var(--color-gold);
}

.flash--error {
  border-color: #a55;
}

/* Sections */
.section {
  padding: var(--section-pad) 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 40rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* Corners (viewfinder) */
.corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.35);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}

.corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* Hero — only in right column (not under sidebar) */
.hero {
  position: relative;
  min-height: calc(100vh - var(--mobile-bar-h));
  min-height: calc(100dvh - var(--mobile-bar-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 0 0;
  overflow: hidden;
}

@media (min-width: 1100px) {
  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 1.25rem 0 0;
    box-sizing: border-box;
  }

  .snap-section:not(.hero) {
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
  }

  /* Второй блок (плитки) — целиком в один экран, без второго скролла */
  .snap-section.service-tiles {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.25rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
  }

  .snap-section.service-tiles > .container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.25rem;
  }

  .snap-section.service-tiles .section-title {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    margin-bottom: 0.3rem;
  }

  .snap-section.service-tiles .section-subtitle {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    max-width: 36rem;
  }

  .snap-section.service-tiles .service-tiles__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 0.65rem;
    flex: 1;
    min-height: 0;
  }

  .snap-section.service-tiles .service-card {
    min-height: 0;
    height: 100%;
  }

  .snap-section.service-tiles .service-card__body {
    padding: 0.75rem 0.9rem;
  }

  .snap-section.service-tiles .service-card__body h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  .snap-section.service-tiles .service-card__body p {
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .snap-section.service-tiles .service-card__more {
    font-size: 0.7rem;
  }

  /* Общие одноэкранные секции (все страницы) */
  .snap-section.benefits,
  .snap-section.approach,
  .snap-section.process,
  .snap-section.cta-banner,
  .snap-section.rich-text,
  .snap-section.gallery,
  .snap-section.about-contacts,
  .snap-section.social-follow,
  .snap-section.map-embed,
  .snap-section.doc-list,
  .snap-section.contact-facts,
  .snap-section.reviews,
  .snap-section.lead-magnet,
  .snap-section.lead-section {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.25rem 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .snap-section.benefits > .container,
  .snap-section.process > .container,
  .snap-section.rich-text > .container,
  .snap-section.gallery > .container,
  .snap-section.about-contacts > .container,
  .snap-section.reviews > .container,
  .snap-section.lead-section > .container,
  .snap-section.approach > .container,
  .snap-section.social-follow > .container,
  .snap-section.map-embed > .container,
  .snap-section.doc-list > .container,
  .snap-section.contact-facts > .container,
  .snap-section.cta-banner > .cta-banner__content {
    flex: 1;
    min-height: 0;
    width: min(100% - 2 * var(--gutter), 1200px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .snap-section.benefits .section-title,
  .snap-section.process .section-title,
  .snap-section.approach .section-title,
  .snap-section.gallery .section-title,
  .snap-section.rich-text .section-title,
  .snap-section.reviews .section-title,
  .snap-section.about-contacts .section-title,
  .snap-section.social-follow .section-title,
  .snap-section.map-embed .section-title,
  .snap-section.doc-list .section-title,
  .snap-section.contact-facts .section-title,
  .snap-section.cta-banner .section-title {
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    margin-bottom: 0.35rem;
  }

  .snap-section.benefits .section-subtitle,
  .snap-section.process .section-subtitle,
  .snap-section.approach .section-subtitle,
  .snap-section.reviews .section-subtitle,
  .snap-section.social-follow .section-subtitle,
  .snap-section.cta-banner .section-subtitle {
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
  }

  .snap-section.benefits .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    flex: 0 1 auto;
    min-height: 0;
    align-content: start;
  }

  .snap-section.benefits .benefit-card {
    min-height: 0;
    padding: 1rem 0.9rem;
  }

  .snap-section.benefits .benefit-card--media {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }

  .snap-section.benefits .benefit-card h3 {
    font-size: 0.95rem;
  }

  .snap-section.benefits .benefit-card p {
    font-size: 0.78rem;
  }

  .snap-section.process .process__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    flex: 0 1 auto;
    min-height: 0;
    align-content: start;
  }

  .snap-section.process .process__item {
    padding: 0.9rem;
  }

  .snap-section.process .process__item--media {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }

  .snap-section.process .process__num {
    font-size: 1.5rem;
  }

  .snap-section.process .process__item h3 {
    font-size: 0.95rem;
  }

  .snap-section.process .process__item p {
    font-size: 0.78rem;
  }

  .snap-section.approach .approach__grid {
    align-items: center;
    flex: 1;
    min-height: 0;
  }

  .snap-section.rich-text .rich-text__layout {
    flex: 1;
    min-height: 0;
    align-items: center;
  }

  /* Текстовые секции услуг без mid-page фото — плотнее, без «пустого» viewport */
  .snap-section.rich-text:not(.rich-text--media) .rich-text__inner {
    max-width: 42rem;
  }

  .snap-section.rich-text:not(.rich-text--media) .rich-text__lead {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
  }

  .snap-section.rich-text:not(.rich-text--media) .rich-text__body {
    font-size: 0.95rem;
  }

  .snap-section.rich-text:not(.rich-text--media) .rich-text__list {
    margin-top: 1rem;
    gap: 0.55rem;
  }

  .snap-section.rich-text .rich-text__media,
  .snap-section.approach .approach__media {
    min-height: 0;
    max-height: calc(100dvh - 4rem);
  }

  .snap-section.rich-text .rich-text__media img,
  .snap-section.approach .approach__media img {
    max-height: calc(100dvh - 5rem);
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .snap-section.gallery .gallery__grid {
    flex: 1;
    min-height: 0;
    align-content: stretch;
  }

  .snap-section.gallery .gallery__item {
    min-height: 0;
    height: 100%;
    max-height: calc((100dvh - 6rem) / 1.2);
  }

  .snap-section.cta-banner {
    position: relative;
  }

  .snap-section.social-follow > .social-follow__layout {
    flex: 1;
    min-height: 0;
    width: min(100% - 2 * var(--gutter), 1200px);
    margin-inline: auto;
    align-content: center;
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img,
.hero__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__video.is-ready {
  opacity: 1;
}

.hero__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border: 3px solid rgba(194, 161, 109, 0.25);
  border-top-color: #e2caa4;
  border-radius: 50%;
  animation: hero-spin 0.9s linear infinite;
  transition: opacity 0.4s ease;
}

.hero__video.is-ready ~ .hero__loader {
  opacity: 0;
  animation: none;
}

@keyframes hero-spin {
  to { transform: rotate(360deg); }
}

.hero__fallback {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(194, 161, 109, 0.12), transparent 55%),
    linear-gradient(160deg, #1a1614 0%, #0a0908 50%, #1c1814 100%);
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero__frame {
  position: absolute;
  inset: 1.25rem var(--gutter) 1.5rem;
  z-index: 1;
  pointer-events: none;
}

.hero__frame .corner {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
  padding-bottom: 1.5rem;
  flex: 1;
  align-content: end;
}

.hero__trust {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 9, 8, 0.45);
  backdrop-filter: blur(8px);
}

.hero__trust-title {
  margin: 0 0 0.55rem;
  color: var(--color-gold);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.82rem;
}

.hero__trust-list li {
  position: relative;
  padding-left: 0.85rem;
}

.hero__trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--color-gold);
}

.hero__eyebrow {
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  margin-bottom: 1rem;
  max-width: 18ch;
}

.hero__subtitle {
  color: var(--color-text-light);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  max-width: 36rem;
  line-height: 1.35;
  margin: 0;
}

.hero__anchor {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(194, 161, 109, 0.45);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__anchor:hover {
  color: var(--color-white);
  border-color: rgba(245, 240, 232, 0.55);
}

.hero__form-wrap {
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem;
  background: rgba(20, 17, 15, 0.72);
  border: 1px solid rgba(194, 161, 109, 0.35);
  backdrop-filter: blur(12px);
}

@media (min-width: 900px) {
  .hero__content {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: end;
  }

  .hero__form-wrap {
    justify-self: end;
  }
}

/* Forms */
.lead-form__title {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.lead-form__subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.lead-form__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--ease);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus {
  border-color: var(--color-gold);
}

.form-textarea {
  resize: vertical;
  min-height: 5rem;
}

.lead-form__consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  cursor: pointer;
}

.lead-form__consent input {
  margin-top: 0.15rem;
  accent-color: var(--color-gold);
  flex-shrink: 0;
}

.lead-form__status {
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.lead-form__status.is-ok {
  color: var(--color-gold-light);
}

.lead-form__status.is-err {
  color: #e8a0a0;
}

.lead-section__inner {
  max-width: 36rem;
  margin-inline: auto;
  padding: 2rem;
  border: 1px solid rgba(194, 161, 109, 0.3);
  background: linear-gradient(180deg, rgba(57, 54, 52, 0.35), rgba(10, 9, 8, 0.5));
}

/* Service tiles */
.service-tiles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .service-tiles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-tiles__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  color: var(--color-white);
  overflow: hidden;
  border: 1px solid rgba(90, 87, 85, 0.6);
  background: var(--color-bg-alt);
}

.service-card:hover {
  color: var(--color-white);
  border-color: var(--color-gold);
}

.service-card__media {
  position: absolute;
  inset: 0;
}

.service-card__media img,
.service-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card__placeholder {
  background:
    linear-gradient(145deg, #2a2623, #12100e 60%),
    radial-gradient(circle at 70% 30%, rgba(194, 161, 109, 0.2), transparent 50%);
}

.service-card:hover .service-card__media img,
.service-card:hover .service-card__placeholder {
  transform: scale(1.06);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.85) 100%);
  transition: background 0.4s ease;
}

.service-card:hover .service-card__overlay {
  background: linear-gradient(180deg, rgba(194, 161, 109, 0.08) 10%, rgba(0, 0, 0, 0.9) 100%);
}

.service-card__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.5rem;
}

.service-card__body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card__body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.service-card__more {
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Benefits */
.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .benefits__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-card {
  position: relative;
  padding: 1.75rem 1.35rem;
  border: 1px solid rgba(90, 87, 85, 0.5);
  background: rgba(10, 9, 8, 0.4);
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Фото на весь блок, текст поверх — без пустого «подвала» */
.benefit-card--media {
  padding: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  justify-content: flex-end;
  border-color: rgba(90, 87, 85, 0.55);
  background: var(--color-bg-alt);
}

.benefit-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.benefit-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.benefit-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 9, 8, 0.08) 0%,
    rgba(10, 9, 8, 0.25) 40%,
    rgba(10, 9, 8, 0.88) 78%,
    rgba(10, 9, 8, 0.96) 100%
  );
}

.benefit-card__body {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1.15rem 1.2rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.benefit-card--media .benefit-card__frame {
  inset: 0.45rem;
  z-index: 2;
}

.benefit-card--media .benefit-card__label {
  color: var(--color-gold);
}

.benefit-card--media h3 {
  color: var(--color-white);
}

.benefit-card--media p {
  color: var(--color-text-muted);
}

.benefit-card__frame {
  position: absolute;
  inset: 0.65rem;
  pointer-events: none;
  z-index: 1;
}

.benefit-card__label {
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.benefit-card h3 {
  font-size: 1.15rem;
}

.benefit-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Rich text */
.rich-text__layout {
  display: grid;
  gap: 1.75rem;
}

.rich-text--media .rich-text__layout {
  align-items: center;
}

@media (min-width: 800px) {
  .rich-text--media .rich-text__layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.rich-text__inner {
  max-width: 46rem;
}

.rich-text--media .rich-text__inner {
  max-width: none;
}

.rich-text__lead {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

.rich-text__body {
  color: var(--color-text);
}

.rich-text__list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rich-text__list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--color-text-light);
}

.rich-text__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--color-gold);
}

.rich-text__media {
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 34rem;
  overflow: hidden;
  border: 1px solid rgba(90, 87, 85, 0.45);
  background: var(--color-bg-alt);
}

.rich-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Process */
.process__list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .process__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .process__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process__item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(90, 87, 85, 0.45);
  background: rgba(38, 37, 37, 0.35);
}

/* Фото на весь шаг, текст поверх */
.process__item--media {
  position: relative;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.process__item-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.process__item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process__item-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 9, 8, 0.06) 0%,
    rgba(10, 9, 8, 0.22) 40%,
    rgba(10, 9, 8, 0.88) 78%,
    rgba(10, 9, 8, 0.96) 100%
  );
}

.process__item-copy {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.05rem 1.1rem;
  margin-top: auto;
}

.process__item--media .process__num {
  color: var(--color-gold);
}

.process__item--media h3 {
  color: var(--color-white);
}

.process__item--media p {
  color: var(--color-text-muted);
}

.process__num {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-gold);
  line-height: 1;
  min-width: 2.5rem;
}

.process__item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.process__item p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Gallery */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery__item {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid rgba(90, 87, 85, 0.4);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

/* CTA banner */
.cta-banner {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.78);
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.cta-banner__content .section-subtitle {
  margin-inline: auto;
}

/* About + contacts */
.about-contacts__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .about-contacts__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.contact-panel {
  padding: 1.75rem;
  border: 1px solid rgba(194, 161, 109, 0.35);
  background: linear-gradient(160deg, rgba(57, 54, 52, 0.4), rgba(10, 9, 8, 0.65));
}

.contact-panel__title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-panel__row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(90, 87, 85, 0.5);
  color: var(--color-white);
}

a.contact-panel__row:hover {
  color: var(--color-gold-light);
}

.contact-panel__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
}

.contact-panel__social {
  margin-top: 1.25rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-row a {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.social-row--lg {
  margin-top: 0.85rem;
}

/* Main */
#main {
  min-height: 50vh;
}

/* Trust strip (Polotno awards row) */
.trust-strip {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(90, 87, 85, 0.35);
  background: rgba(10, 9, 8, 0.55);
}

.trust-strip__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.trust-strip__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.trust-strip__list li {
  position: relative;
  padding-left: 0.9rem;
}

.trust-strip__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--color-gold);
}

/* Approach (Polotno «Наш подход») */
.approach__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .approach__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .approach--media .approach__grid {
    align-items: center;
  }
}

.approach__values {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.approach__values li {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(194, 161, 109, 0.35);
  color: var(--color-text-light);
  font-size: 0.82rem;
}

.approach__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.approach__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 32rem;
  overflow: hidden;
  border: 1px solid rgba(90, 87, 85, 0.45);
  background: var(--color-bg-alt);
}

.approach__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.approach__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(transparent, rgba(10, 9, 8, 0.92));
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.4;
}

.approach__person {
  position: relative;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(90, 87, 85, 0.5);
  background: rgba(10, 9, 8, 0.45);
}

.approach__person-frame {
  position: absolute;
  inset: 0.65rem;
  pointer-events: none;
}

.approach__quote {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.45;
}

.approach__name {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.approach__role {
  color: var(--color-gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

/* Reviews */
.reviews__list {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .reviews__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  padding: 1.5rem;
  border: 1px solid rgba(90, 87, 85, 0.45);
  background: rgba(38, 37, 37, 0.3);
}

.review-card__meta time {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.review-card__meta h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.review-card__role {
  color: var(--color-gold);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.review-card__text {
  color: var(--color-text-light);
  margin: 0;
  white-space: pre-line;
}

.reviews__cta {
  margin-top: 2rem;
}

/* Lead magnet (Polotno «Подарок») */
.lead-magnet__inner {
  padding: 2.5rem var(--gutter);
  border: 1px solid rgba(194, 161, 109, 0.4);
  background:
    linear-gradient(135deg, rgba(194, 161, 109, 0.12), transparent 50%),
    rgba(10, 9, 8, 0.65);
  text-align: center;
}

.lead-magnet__copy {
  max-width: 40rem;
  margin-inline: auto;
}

.lead-magnet__copy .section-subtitle {
  margin-inline: auto;
}

/* Social / channels — полноценный блок */
.social-follow {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad) 0;
}

.social-follow__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.social-follow__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-follow__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.78) 45%, rgba(10, 9, 8, 0.88) 100%),
    rgba(10, 9, 8, 0.55);
}

.social-follow__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .social-follow__layout {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
  }
}

.social-follow__body {
  color: var(--color-text-light);
  max-width: 34rem;
  margin-bottom: 1.25rem;
}

.social-follow__phone-note {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.social-follow__phone-note a {
  color: var(--color-gold-light);
  font-weight: 700;
}

.social-follow__channels {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .social-follow__channels {
    grid-template-columns: repeat(2, 1fr);
  }
}

.channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 11rem;
  padding: 1.35rem 1.2rem;
  border: 1px solid rgba(90, 87, 85, 0.55);
  background: rgba(20, 17, 15, 0.72);
  color: var(--color-white);
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.channel-card:hover {
  border-color: var(--color-gold);
  background: rgba(38, 37, 37, 0.85);
  color: var(--color-white);
  transform: translateY(-2px);
}

.channel-card__frame {
  position: absolute;
  inset: 0.55rem;
  pointer-events: none;
}

.channel-card__code {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.14em;
}

.channel-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.channel-card p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin: 0 0 auto;
  flex: 1;
}

.channel-card__cta {
  margin-top: 0.85rem;
  color: var(--color-gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-card__code {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

/* ——— Контакты: факты + карта на всю ширину main ——— */
.contact-facts {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.contact-facts__top {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: 1.25rem;
}

.contact-facts__intro .rich-text__lead {
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

.contact-facts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
  max-width: 40rem;
}

@media (min-width: 700px) {
  .contact-facts__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }
}

.contact-fact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 87, 85, 0.35);
}

a.contact-fact:hover .contact-fact__value {
  color: var(--color-gold-light);
}

.contact-fact__label {
  color: var(--color-gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-fact__value {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.35;
}

.contact-facts__messengers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.1rem;
}

.contact-facts__map {
  flex: 1;
  min-height: 14rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(90, 87, 85, 0.4);
  background: var(--color-bg-alt);
}

.contact-facts__iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  border: 0;
}

.contact-facts__map-empty {
  margin: 0;
  padding: 2rem var(--gutter);
  color: var(--color-text-muted);
}

@media (min-width: 1100px) {
  .snap-section.contact-facts {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    justify-content: stretch;
    padding: 0;
  }

  .snap-section.contact-facts > .container,
  .snap-section.contact-facts > .contact-facts__top.container {
    flex: 0 0 auto;
    display: block;
    min-height: 0;
    width: min(100% - 2 * var(--gutter), 1100px);
    margin-inline: auto;
    justify-content: flex-start;
  }

  .page-contacts .contact-facts__map {
    flex: 1 1 auto;
    min-height: 0;
    /* на всю ширину #main — от сайдбара до правого края */
    width: 100%;
    margin-top: 0.75rem;
  }

  .page-contacts .contact-facts__iframe {
    min-height: 0;
    height: 100%;
  }
}

.map-embed__layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .map-embed__layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
    gap: 2rem;
  }
}

.map-embed__body {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.map-embed__address,
.map-embed__hours {
  margin: 0 0 0.65rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.map-embed__label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--color-gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-embed__frame {
  min-height: 16rem;
  border: 1px solid rgba(90, 87, 85, 0.5);
  background: var(--color-bg-alt);
  overflow: hidden;
}

@media (min-width: 1100px) {
  .snap-section.map-embed .map-embed__frame {
    min-height: 0;
    height: 100%;
    max-height: calc(100dvh - 4rem);
  }
}

.map-embed__iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  border: 0;
}

@media (min-width: 1100px) {
  .snap-section.map-embed .map-embed__iframe {
    min-height: calc(100dvh - 5rem);
  }
}

.map-embed__empty {
  margin: 0;
  padding: 2rem;
  color: var(--color-text-muted);
}

.doc-list__grid {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .doc-list__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.doc-card {
  position: relative;
  margin: 0;
  padding: 1.25rem 1.1rem;
  border: 1px solid rgba(90, 87, 85, 0.45);
  background: rgba(38, 37, 37, 0.35);
}

.doc-card__frame {
  position: absolute;
  inset: 0.55rem;
  pointer-events: none;
}

.doc-card__label {
  margin: 0 0 0.35rem;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.doc-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.doc-card p {
  margin: 0 0 0.85rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.doc-card__link {
  color: var(--color-gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(194, 161, 109, 0.4);
  padding-bottom: 0.1rem;
}

.doc-card__link:hover {
  color: var(--color-white);
}

/* Overlay-секции (о компании / важно) */
.approach--overlay,
.rich-text--overlay,
.process--media {
  position: relative;
  overflow: hidden;
}

.approach__bg,
.rich-text__bg,
.process__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.approach__bg img,
.rich-text__bg img,
.process__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.approach__veil,
.rich-text__veil,
.process__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 9, 8, 0.92) 0%,
    rgba(10, 9, 8, 0.78) 48%,
    rgba(10, 9, 8, 0.55) 100%
  );
}

.approach--overlay > .container,
.rich-text--overlay > .container,
.process--media > .container,
.process--media .process__layout {
  position: relative;
  z-index: 1;
}

.approach--overlay .section-title,
.rich-text--overlay .section-title,
.process--media .section-title {
  color: var(--color-white);
}

.approach--overlay .rich-text__lead,
.rich-text--overlay .rich-text__lead,
.process--media .section-subtitle,
.process__lead {
  color: var(--color-text-light);
}

.approach--overlay .rich-text__body,
.rich-text--overlay .rich-text__body {
  color: var(--color-text-light);
}

.approach__person--on-media {
  background: rgba(10, 9, 8, 0.55);
  backdrop-filter: blur(8px);
}

/* rich_text overlay: открытая композиция как у approach, не «плашка посередине» */
.rich-text--overlay .rich-text__layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .rich-text--overlay .rich-text__layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.rich-text__panel {
  max-width: none;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
}

.rich-text--overlay .rich-text__panel .section-title {
  color: var(--color-white);
}

.rich-text--overlay .rich-text__panel .rich-text__lead,
.rich-text--overlay .rich-text__panel .rich-text__body,
.rich-text--overlay .rich-text__panel .rich-text__list li {
  color: var(--color-text-light);
}

.rich-text--overlay .rich-text__list {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.rich-text--overlay .rich-text__list li {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(194, 161, 109, 0.35);
  font-size: 0.82rem;
}

.rich-text--overlay .rich-text__list li::before {
  display: none;
}

.process__layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.process__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--color-text-light);
}

.page-contacts .process--contacts .process__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .page-contacts .process--contacts .process__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-contacts .process--contacts .process__item--media {
  min-height: 12.5rem;
  border-color: rgba(90, 87, 85, 0.5);
}

.page-contacts .process--contacts .process__item-copy {
  flex-direction: column;
  gap: 0.25rem;
}

.page-contacts .process--contacts .process__num {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.page-contacts .process--contacts .process__item h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.page-contacts .process--contacts .process__item p {
  font-size: 0.78rem;
}

@media (min-width: 1100px) {
  .snap-section.benefits .benefit-card__body {
    padding: 0.75rem 0.85rem 0.9rem;
  }

  .snap-section.benefits .benefit-card h3 {
    font-size: 0.88rem;
  }

  .snap-section.benefits .benefit-card p {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .snap-section.process .process__item-copy {
    padding: 0.7rem 0.8rem 0.85rem;
    gap: 0.65rem;
  }

  .snap-section.process .process__item--media .process__num {
    font-size: 1.25rem;
  }

  .page-contacts .snap-section.process--contacts {
    justify-content: center;
  }

  .page-contacts .process--contacts .process__layout {
    flex: 0 1 auto;
    min-height: 0;
    justify-content: center;
  }

  .page-contacts .process--contacts .process__list {
    flex: 0 1 auto;
  }

  .page-contacts .process--contacts .process__item--media {
    aspect-ratio: 5 / 4;
    min-height: 0;
  }

  .page-contacts .snap-section.approach--overlay .approach__grid {
    gap: 1.5rem;
  }
}

/* ——— Страницы услуг: главы, без mid 100vh ——— */
.chapter-badge {
  margin: 0 0 0.85rem;
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-badge span {
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}

.page-service .service-chapter {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(90, 87, 85, 0.35);
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  display: block;
}

.page-service .service-chapter > .container {
  display: block;
  flex: none;
  min-height: 0;
  width: min(100% - 2 * var(--gutter), 1100px);
  margin-inline: auto;
}

.page-service .rich-text__inner {
  max-width: none;
}

.page-service .rich-text--contrast .rich-text__split {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 800px) {
  .page-service .rich-text--contrast .section-title {
    max-width: 28rem;
  }

  .page-service .rich-text--contrast .rich-text__lead {
    max-width: 36rem;
  }

  .page-service .rich-text--contrast .rich-text__split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.rich-text__contrast {
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(90, 87, 85, 0.5);
  background: rgba(10, 9, 8, 0.4);
}

.rich-text__contrast-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-white);
}

.rich-text__contrast-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rich-text__contrast-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.rich-text__contrast-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: rgba(194, 161, 109, 0.55);
}

.page-service .benefits__grid--dense {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

@media (min-width: 800px) {
  .page-service .benefits__grid--dense {
    grid-template-columns: 1fr 1fr;
  }
}

.benefit-card__points {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.benefit-card__points li {
  position: relative;
  padding-left: 0.9rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.benefit-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.3rem;
  height: 0.3rem;
  background: var(--color-gold);
}

.page-service .process--statements {
  padding-top: 1.5rem;
  border-top: none;
}

.page-service .process--statements .chapter-badge {
  display: none;
}

.page-service .process--statements .process__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 800px) {
  .page-service .process--statements .process__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-service .process--statements .process__item {
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1rem;
  background: transparent;
  border-color: rgba(90, 87, 85, 0.4);
}

.page-service .process--statements .process__num {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  min-width: 0;
}

.page-service .process--statements .process__item h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.page-service .process--statements .process__item p {
  font-size: 0.84rem;
}

.page-service .approach__grid {
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .page-service .approach__grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  /* Mid-секции услуг не участвуют в fullpage-snap */
  .page-service .service-chapter.benefits,
  .page-service .service-chapter.approach,
  .page-service .service-chapter.process,
  .page-service .service-chapter.rich-text {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    justify-content: flex-start;
  }
}


/* ——— 404 ——— */
.e404 {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 56px 0 48px;
  overflow: hidden;
}
.e404__bg { position: absolute; inset: 0; z-index: -1; }
.e404__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 35%;
  filter: saturate(.65) brightness(.55);
  animation: e404-drift 32s ease-in-out infinite alternate;
}
.e404__bg::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.97) 0%, rgba(10, 9, 8, 0.82) 34%, rgba(10, 9, 8, 0.28) 66%, rgba(10, 9, 8, 0.55) 100%),
    linear-gradient(0deg, #0a0908 0%, rgba(10, 9, 8, 0) 38%),
    radial-gradient(ellipse at 18% 40%, rgba(194, 161, 109, 0.18), transparent 58%);
}
.e404__glow {
  position: absolute; z-index: 2; left: 46%; top: -6%;
  width: 34vw; height: 46vw;
  background: radial-gradient(ellipse at center, rgba(226, 202, 164, 0.28), transparent 62%);
  mix-blend-mode: screen; pointer-events: none;
  animation: e404-flicker 5s infinite;
}
.e404__dust { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.e404__dust i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(226, 202, 164, 0.75);
  box-shadow: 0 0 6px rgba(194, 161, 109, 0.85);
  opacity: 0; animation: e404-dust 16s linear infinite;
}
.e404__dust i:nth-child(1) { left: 6%; animation-duration: 15s; animation-delay: -2s; }
.e404__dust i:nth-child(2) { left: 14%; animation-duration: 19s; animation-delay: -9s; width: 2px; height: 2px; }
.e404__dust i:nth-child(3) { left: 22%; animation-duration: 13s; animation-delay: -5s; }
.e404__dust i:nth-child(4) { left: 31%; animation-duration: 21s; animation-delay: -14s; width: 2px; height: 2px; }
.e404__dust i:nth-child(5) { left: 38%; animation-duration: 17s; animation-delay: -1s; }
.e404__dust i:nth-child(6) { left: 45%; animation-duration: 14s; animation-delay: -11s; width: 4px; height: 4px; }
.e404__dust i:nth-child(7) { left: 52%; animation-duration: 18s; animation-delay: -6s; }
.e404__dust i:nth-child(8) { left: 58%; animation-duration: 12s; animation-delay: -3s; width: 2px; height: 2px; }
.e404__dust i:nth-child(9) { left: 63%; animation-duration: 20s; animation-delay: -16s; }
.e404__dust i:nth-child(10) { left: 69%; animation-duration: 15s; animation-delay: -8s; width: 4px; height: 4px; }
.e404__dust i:nth-child(11) { left: 74%; animation-duration: 22s; animation-delay: -12s; width: 2px; height: 2px; }
.e404__dust i:nth-child(12) { left: 79%; animation-duration: 13s; animation-delay: -4s; }
.e404__dust i:nth-child(13) { left: 84%; animation-duration: 18s; animation-delay: -10s; }
.e404__dust i:nth-child(14) { left: 89%; animation-duration: 16s; animation-delay: -7s; width: 2px; height: 2px; }
.e404__dust i:nth-child(15) { left: 94%; animation-duration: 20s; animation-delay: -13s; }
.e404__dust i:nth-child(16) { left: 50%; animation-duration: 24s; animation-delay: -18s; width: 2px; height: 2px; }

.e404__grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: 40px; align-items: center; flex: 1;
}
.e404__content > * { animation: e404-rise .9s ease both; }
.e404__content > :nth-child(2) { animation-delay: .05s; }
.e404__content > :nth-child(3) { animation-delay: .5s; }
.e404__content > :nth-child(4) { animation-delay: .65s; }
.e404__content > :nth-child(5) { animation-delay: .8s; }
.e404__content > :nth-child(n+6) { animation-delay: .95s; }
.e404__eyebrow {
  margin: 0; font-family: var(--font-ui, Onest, sans-serif);
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.e404__eyebrow span {
  margin-right: 12px; padding: 4px 10px;
  background: var(--color-gold); color: #14110f;
}
.e404__num {
  display: block; width: min(100%, 500px); height: auto;
  margin: 10px 0 0 -6px; overflow: visible;
  filter: drop-shadow(0 0 46px rgba(194, 161, 109, 0.35));
}
.e404__num text { font-family: var(--font-heading); font-size: 236px; letter-spacing: 8px; }
.e404__fill { fill: url(#e404-dark); }
.e404__stitch { fill: none; stroke: var(--color-gold-light); stroke-width: 15; stroke-dasharray: 10 7; opacity: 0; animation: e404-fade 1.2s 1.7s forwards; }
.e404__gap { fill: none; stroke: #2a241e; stroke-width: 6; }
.e404__edge { fill: none; stroke: url(#e404-gold); stroke-width: 2.2; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: e404-draw 2.6s .15s cubic-bezier(.45, .05, .25, 1) forwards; }
.e404__title {
  margin-top: 4px; font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(32px, 3.8vw, 54px); line-height: 1.05; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--color-white);
  text-shadow: 0 0 40px rgba(194, 161, 109, 0.35);
}
.e404__lead {
  max-width: 540px; margin: 18px 0 0;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5;
  color: var(--color-text-light);
}
.e404__guess { max-width: 540px; margin-top: 28px; }
.e404__guess-title {
  margin: 0 0 10px; font-family: var(--font-heading);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-gold-light);
}
.e404__guess ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.e404__guess a {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border: 1px solid var(--color-border); background: rgba(10, 9, 8, 0.6);
  backdrop-filter: blur(6px); color: var(--color-text-light);
  transition: border-color .3s, background .3s;
}
.e404__guess a span {
  min-width: 78px; font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--color-gold);
}
.e404__guess a b { margin-left: auto; font-weight: 400; color: var(--color-gold); transition: transform .3s; }
.e404__guess a:hover { border-color: var(--color-gold); background: rgba(194, 161, 109, 0.12); }
.e404__guess a:hover b { transform: translateX(4px); }
.e404__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.e404__help { margin: 18px 0 0; font-size: 14px; color: var(--color-text-muted); }
.e404__help a { color: var(--color-gold-light); border-bottom: 1px dashed currentColor; }

.e404__tag-wrap {
  position: relative; justify-self: end; align-self: start;
  margin: 70px 7% 0 0; transform-origin: 50% -120px;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.7));
  animation: e404-swing 6s ease-in-out infinite;
}
.e404__thread {
  position: absolute; z-index: 2; left: 50%; top: -120px;
  width: 2px; height: 144px; margin-left: -1px;
  background: linear-gradient(90deg, #8a6e3c, var(--color-gold), #8a6e3c);
  box-shadow: 0 0 8px rgba(194, 161, 109, 0.55);
}
.e404__tag {
  position: relative; width: 250px; padding: 46px 24px 24px;
  background: linear-gradient(160deg, #f1e7cd 0%, #ddcca6 55%, #cdb98d 100%);
  color: #2a1a12;
  clip-path: polygon(22% 0, 78% 0, 100% 13%, 100% 100%, 0 100%, 0 13%);
}
.e404__tag::before {
  content: ''; position: absolute; inset: 34px 10px 10px;
  border: 1.5px dashed rgba(138, 110, 60, 0.65); pointer-events: none;
}
.e404__hole {
  position: absolute; top: 14px; left: 50%; width: 14px; height: 14px;
  margin-left: -7px; border-radius: 50%; background: #0a0908;
  box-shadow: 0 0 0 3px #b8913f, 0 0 0 4px #5e4417;
}
.e404__tag-brand {
  position: relative; margin: 0; font-family: var(--font-heading);
  font-size: 17px; letter-spacing: 0.1em; text-align: center;
  text-transform: uppercase; color: #3a2a14;
}
.e404__tag-brand small {
  display: block; margin-top: 2px; font-family: Onest, sans-serif;
  font-style: italic; font-size: 14px; letter-spacing: 0.06em;
  text-transform: none; color: #7a5a22;
}
.e404__tag-rows { position: relative; margin: 14px 0 0; }
.e404__tag-rows div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(60, 30, 20, 0.3);
}
.e404__tag-rows dt {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #6b5640;
}
.e404__tag-rows dd {
  margin: 0; font-size: 15px; font-weight: 600; text-align: right; color: #2a1a12;
}
.e404__path {
  max-width: 140px; font-family: ui-monospace, Consolas, monospace !important;
  font-size: 12px !important; font-weight: 400 !important;
  word-break: break-all; color: #8a5a18 !important;
}
.e404__status {
  padding: 1px 7px; border: 1.5px solid #8a5a18;
  font-size: 11px !important; letter-spacing: 0.14em;
  text-transform: uppercase; color: #8a5a18 !important;
  transform: rotate(-5deg);
}

.e404__portals {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 54px;
}
.e404__portal {
  position: relative; display: flex; flex-direction: column;
  justify-content: flex-end; gap: 4px; min-height: 150px;
  padding: 18px 20px; overflow: hidden;
  border: 1px solid var(--color-border);
}
.e404__portal img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.42) saturate(.8);
  transition: transform .9s ease, filter .5s;
}
.e404__portal::before {
  content: ''; position: absolute; z-index: 1; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold-gradient);
  transition: width .6s ease;
}
.e404__portal::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 9, 8, 0.88), transparent 70%);
}
.e404__portal-label, .e404__portal-hint { position: relative; z-index: 1; }
.e404__portal-label {
  font-family: var(--font-heading); font-size: 18px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-white);
}
.e404__portal-label::after { content: ' >'; color: var(--color-gold); opacity: 0; transition: opacity .3s; }
.e404__portal-hint { font-size: 12.5px; color: var(--color-text-muted); }
.e404__portal:hover { border-color: var(--color-gold); }
.e404__portal:hover img { transform: scale(1.07); filter: brightness(.6) saturate(.95); }
.e404__portal:hover::before { width: 100%; }
.e404__portal:hover .e404__portal-label::after { opacity: 1; }

@keyframes e404-draw { to { stroke-dashoffset: 0; } }
@keyframes e404-fade { to { opacity: 1; } }
@keyframes e404-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes e404-swing { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
@keyframes e404-drift { from { transform: scale(1.05); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes e404-flicker { 0%, 100% { opacity: .85; } 7% { opacity: .55; } 11% { opacity: .95; } 38% { opacity: .72; } 66% { opacity: 1; } 70% { opacity: .62; } 74% { opacity: .9; } }
@keyframes e404-dust { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 85% { opacity: .5; } 100% { transform: translate(60px, -92vh); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .e404 *, .e404 *::before, .e404 *::after { animation: none !important; }
  .e404__edge { stroke-dashoffset: 0; }
  .e404__stitch { opacity: 1; }
  .e404__dust { display: none; }
}
@media (max-width: 1000px) {
  .e404__grid { grid-template-columns: 1fr; }
  .e404__tag-wrap { justify-self: center; margin: 150px 0 0; }
  .e404__bg::after { background: linear-gradient(180deg, rgba(10, 9, 8, 0.75), rgba(10, 9, 8, 0.92) 40%, #0a0908 100%); }
  .e404__portals { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .e404 { padding-top: 34px; }
  .e404__num { margin-left: -4px; }
  .e404__portal { min-height: 120px; padding: 14px; }
  .e404__portal-label { font-size: 16px; }
  .e404__portal-hint { display: none; }
}

/* ——— Thanks (íà áàçå e404) ——— */
.e404--thanks .e404__eyebrow span {
  background: var(--color-gold);
  color: #14110f;
}
.e404__mark {
  display: block;
  width: min(140px, 28vw);
  height: auto;
  margin: 18px 0 8px;
  filter: drop-shadow(0 0 28px rgba(194, 161, 109, 0.45));
}
.e404__mark-ring {
  stroke: url(#ok-gold);
  stroke-width: 3;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: e404-draw 1.4s .1s cubic-bezier(.45, .05, .25, 1) forwards;
}
.e404__mark-check {
  stroke: url(#ok-gold);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: e404-draw 0.9s 0.9s cubic-bezier(.45, .05, .25, 1) forwards;
}
.e404__steps {
  display: grid;
  gap: 10px;
  max-width: 540px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.e404__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  background: rgba(10, 9, 8, 0.55);
  backdrop-filter: blur(6px);
  animation: e404-rise .9s ease both;
}
.e404__steps li:nth-child(1) { animation-delay: .7s; }
.e404__steps li:nth-child(2) { animation-delay: .85s; }
.e404__steps li:nth-child(3) { animation-delay: 1s; }
.e404__steps b {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--color-gold);
}
.e404__steps span {
  font-size: 14.5px;
  color: var(--color-text-light);
  line-height: 1.4;
}
.e404__status--ok {
  border-color: #5f7a3a !important;
  color: #3d5a1f !important;
  background: rgba(120, 150, 70, 0.12);
}
.e404__tag--ok::before {
  border-color: rgba(95, 122, 58, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .e404__mark-ring,
  .e404__mark-check { stroke-dashoffset: 0; animation: none; }
}
