/* ============================================================
   ООО НПП «ПромТранс» — дополнительные стили поверх Tailwind
   Палитра: глубокий хвойный зелёный + янтарный акцент + крем
   ============================================================ */

:root {
  --pine: #143c2b;
  --pine-deep: #0c2a1e;
  --pine-light: #1e5c40;
  --pine-soft: #2e7d57;
  --amber: #e8862d;
  --brand-blue: #1b3a83;
  --cream: #f4efe6;
  --ink: #17140f;
  --line: rgba(23, 20, 15, 0.12);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232, 134, 45, 0.18);
}

::selection {
  background: var(--amber);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #ece7dc;
}
::-webkit-scrollbar-thumb {
  background: var(--pine);
  border-radius: 6px;
}

/* ---------- Шапка ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header__bar {
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

.site-header .logo-word {
  color: #fff;
  fill: #fff;
  transition: color 0.35s ease, fill 0.35s ease;
}
.site-header .logo-gem {
  stroke: #fff;
  transition: stroke 0.35s ease;
}
.site-header .logo-mark {
  background-color: #fff;
  transition: background-color 0.35s ease;
}
.site-header .menu-link {
  color: rgba(255, 255, 255, 0.85);
}
.site-header .burger span {
  background: #fff;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(12, 42, 30, 0.12);
}
.site-header.scrolled .logo-word {
  color: var(--brand-blue);
  fill: var(--brand-blue);
}
.site-header.scrolled .logo-gem {
  stroke: var(--amber);
}
.site-header.scrolled .logo-mark {
  background-color: var(--brand-blue);
}
.site-header.scrolled .menu-link {
  color: var(--ink);
}
.site-header.scrolled .burger span {
  background: var(--brand-blue);
}
.site-header.scrolled .burger {
  border-color: rgba(27, 58, 131, 0.28);
}
/* Светлая шапка: пункт меню и подчёркивание — в цвет логотипа */
.site-header.scrolled .menu-link.active,
.metal-template:not(:has(.hero, .page-hero)) .site-header .menu-link.active {
  color: var(--brand-blue) !important;
}
.site-header.scrolled .menu-link::after,
.metal-template:not(:has(.hero, .page-hero)) .site-header .menu-link::after {
  background: var(--brand-blue);
}

/* Страницы без hero (юр. документы и т.п.): шапка сразу «твёрдая»,
   иначе белый логотип/меню пропадают на белом фоне. */
.metal-template:not(:has(.hero, .page-hero)) .site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(12, 42, 30, 0.12);
}
.metal-template:not(:has(.hero, .page-hero)) .site-header .logo-word {
  color: var(--brand-blue);
  fill: var(--brand-blue);
}
.metal-template:not(:has(.hero, .page-hero)) .site-header .logo-gem {
  stroke: var(--amber);
}
.metal-template:not(:has(.hero, .page-hero)) .site-header .logo-mark {
  background-color: var(--brand-blue);
}
.metal-template:not(:has(.hero, .page-hero)) .site-header .menu-link {
  color: var(--ink);
}
.metal-template:not(:has(.hero, .page-hero)) .site-header .burger span {
  background: var(--brand-blue);
}
.metal-template:not(:has(.hero, .page-hero)) .site-header .burger {
  border-color: rgba(27, 58, 131, 0.28);
}
.metal-template:not(:has(.hero, .page-hero)) .site-header .header-lead {
  border-color: rgba(27, 58, 131, 0.28);
  color: var(--brand-blue);
}
.metal-template:not(:has(.hero, .page-hero)) .site-header .header-lead:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}
.metal-template:not(:has(.hero, .page-hero)) main {
  padding-top: 5.75rem;
}

.site-header.menu-open {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.site-header.menu-open .logo-word {
  color: #fff;
  fill: #fff;
}
.site-header.menu-open .logo-gem {
  stroke: #fff;
}
.metal-template .site-header.menu-open .logo-mark {
  background-color: #fff;
}
.site-header.menu-open .burger {
  border-color: rgba(255, 255, 255, 0.35);
}
.site-header.menu-open .burger span {
  background: #fff;
}

.menu-link {
  position: relative;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
  padding: 0.4rem 0;
  white-space: nowrap;
}
.menu-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-link:hover::after,
.menu-link.active::after {
  transform: scaleX(1);
}
.menu-link.active {
  color: var(--amber) !important;
}

/* Бургер */
.burger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.3s ease;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.3s ease, background 0.3s ease;
}
.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: linear-gradient(160deg, var(--pine-deep), var(--pine));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  clip-path: circle(0% at calc(100% - 44px) calc(44px + env(safe-area-inset-top, 0px)));
  transition: clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  clip-path: circle(160% at calc(100% - 44px) calc(44px + env(safe-area-inset-top, 0px)));
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu nav a {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(1.35rem, 6.4vw, 2.2rem);
  color: #fff;
  text-transform: uppercase;
  padding: 0.42em 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
}
.mobile-menu.open nav a {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu nav a:hover,
.mobile-menu nav a.active {
  color: var(--amber);
}
.mobile-menu .social-round {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.45s ease, background 0.3s ease, border-color 0.3s;
}
.mobile-menu.open .social-round {
  opacity: 1;
  transform: none;
}

/* ---------- Кнопки ---------- */

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease;
  isolation: isolate;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.btn-outline:hover {
  border-color: var(--amber);
}
.btn-outline:hover::before {
  transform: scaleX(1);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 1.7rem;
  background: var(--pine);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s ease;
}
.btn-solid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.btn-solid:hover::before {
  transform: scaleX(1);
}

.btn-ghost-dark {
  border-color: rgba(23, 20, 15, 0.35);
  color: var(--ink);
}
.btn-ghost-dark:hover {
  color: #fff;
  border-color: var(--pine);
}
.btn-ghost-dark::before {
  background: var(--pine);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-inner {
  padding-top: 7.5rem;
  padding-bottom: 6.5rem;
}

.hero-socials {
  position: absolute;
  left: 1.5rem;
  bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .hero-socials {
    left: 3rem;
  }
}
.hero > video,
.hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(12, 26, 19, 0.82) 0%,
      rgba(12, 26, 19, 0.55) 45%,
      rgba(12, 26, 19, 0.35) 100%
    ),
    linear-gradient(0deg, rgba(12, 26, 19, 0.65), transparent 40%);
}
html.em-admin .hero::after,
html.em-admin .page-hero::after {
  pointer-events: none;
}

.hero-title {
  font-family: 'Russo One', sans-serif;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.12;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  max-width: 14ch;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.35);
}
.hero-title em {
  font-style: normal;
  color: var(--amber);
}

/* Пульсирующая кнопка видео */
.pulse-button {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  transition: transform 0.3s ease, background 0.3s ease;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}
.pulse-button:hover {
  transform: scale(1.06);
  background: rgba(232, 134, 45, 0.25);
}
.pulse-button .pulse-icon {
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.pulse-button .pulse-text {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.pulse-rings span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: pulse-ring 2.6s ease-out infinite;
}
.pulse-rings span:nth-child(2) {
  animation-delay: 0.85s;
}
.pulse-rings span:nth-child(3) {
  animation-delay: 1.7s;
}
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* Индикатор скролла — мышь */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  z-index: 5;
}
.scroll-hint::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 4px;
  background: #fff;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

/* Соцкруги — как на circonservice.ru: круг 55px, тёмный знак ВК/ТГ */
.social_links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.social-round {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #302d2d;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.social-round svg {
  width: 55px;
  height: 55px;
  display: block;
}
.social-round__fallback {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.social-round:hover {
  background: #fff;
  transform: translateY(-3px);
}
.social_links--solid .social-round {
  background: #fff;
}
.social_links--solid .social-round:hover {
  background: var(--amber);
  color: #fff;
}

/* ---------- Бейдж «Участник проекта» ---------- */

.badge-rotate {
  animation: spin 18s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Мозаика продукции ---------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 270px;
  gap: 1.4rem;
}
.mosaic .tile-a { grid-area: 1 / 1 / 2 / 7; }
.mosaic .tile-b { grid-area: 2 / 1 / 3 / 4; }
.mosaic .tile-c { grid-area: 3 / 1 / 4 / 4; }
.mosaic .tile-d { grid-area: 2 / 4 / 4 / 7; }
.mosaic .tile-e { grid-area: 1 / 7 / 3 / 10; }
.mosaic .tile-f { grid-area: 1 / 10 / 2 / 13; }
.mosaic .tile-g { grid-area: 2 / 10 / 3 / 13; }
.mosaic .tile-h { grid-area: 3 / 7 / 4 / 13; }
.mosaic .tile-i { grid-area: 4 / 1 / 5 / 13; }
.mosaic .tile-j { grid-area: 5 / 1 / 6 / 7; }
.mosaic .tile-k { grid-area: 5 / 7 / 6 / 13; }

@media (max-width: 1023px) {
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 210px;
    gap: 0.9rem;
  }
  .mosaic .tile-a,
  .mosaic .tile-b,
  .mosaic .tile-c,
  .mosaic .tile-d,
  .mosaic .tile-e,
  .mosaic .tile-f,
  .mosaic .tile-g,
  .mosaic .tile-h,
  .mosaic .tile-i,
  .mosaic .tile-j,
  .mosaic .tile-k {
    grid-area: auto;
  }
}

@media (max-width: 639px) {
  .mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 188px;
    gap: 0.75rem;
  }
  .tile .tile-bar {
    padding: 1rem 1.1rem;
  }
  .tile .tile-bar .tile-title {
    font-size: 0.95rem;
  }
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  display: block;
  isolation: isolate;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -2;
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 22, 16, 0.85) 0%, rgba(10, 22, 16, 0.15) 55%, rgba(10, 22, 16, 0.05) 100%);
  transition: background 0.4s ease;
}
.tile:hover img {
  transform: scale(1.08);
}
.tile .tile-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
}
.tile .tile-bar .tile-title {
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.3;
}
.tile .tile-bar .tile-arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.4s ease;
}
.tile:hover .tile-arrow {
  background: var(--amber);
  border-color: var(--amber);
  transform: rotate(-45deg);
}

/* ---------- Марка клиентов ---------- */

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.client-logo {
  flex: none;
  height: 92px;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-family: 'Russo One', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #9a948a;
  filter: grayscale(1);
  transition: filter 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  padding: 0 1.5rem;
  text-align: center;
}
.client-logo:hover {
  filter: grayscale(0);
  color: var(--pine);
  border-color: var(--pine-soft);
  transform: translateY(-4px);
}

.partner-card {
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.partner-card img {
  max-height: 4.5rem;
  max-width: 86%;
  object-fit: contain;
  filter: none;
}
.partner-card span {
  font-family: 'Russo One', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #9a948a;
}
.partner-card:hover img {
  filter: none;
}
.partner-card:hover span {
  color: var(--pine);
}

.doc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}
.doc-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  background: #fff;
}
.doc-card__num {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.doc-card__title {
  font-family: 'Russo One', sans-serif;
  color: var(--brand-blue);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.doc-card__note {
  margin-top: 0.4rem;
  color: rgba(23, 20, 15, 0.55);
  font-size: 0.92rem;
}

.product-samples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .product-samples {
    grid-template-columns: 1fr 1fr;
  }
}
.product-samples li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.product-samples li span {
  font-weight: 700;
  color: var(--pine);
}
.product-samples li em {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(23, 20, 15, 0.5);
}

.catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.catalog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(12, 42, 30, 0.25);
}
.catalog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.catalog-card:hover img {
  transform: scale(1.07);
}
.catalog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem 1.25rem;
}
.catalog-card__title {
  font-family: 'Russo One', sans-serif;
  color: var(--brand-blue);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: uppercase;
}
.catalog-card__text {
  color: rgba(23, 20, 15, 0.58);
  font-size: 0.92rem;
  line-height: 1.5;
}

.header-lead {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.header-lead:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}
.site-header.scrolled .header-lead {
  border-color: rgba(27, 58, 131, 0.28);
  color: var(--brand-blue);
}
.site-header.scrolled .header-lead:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}
.header-lead--footer {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hero-lead {
  text-wrap: pretty;
}

.metal-map {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--cream, #F4EFE6);
  min-height: 320px;
}
.metal-map iframe {
  display: block;
  width: 100%;
  height: 543px;
  border: 0;
}
@media (max-width: 639px) {
  .metal-map iframe {
    height: 360px;
  }
}

/* ---------- Карточки новостей ---------- */

.news-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(12, 42, 30, 0.25);
}
.news-card figure {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-card:hover img {
  transform: scale(1.07);
}
.news-card .news-title {
  font-weight: 800;
  line-height: 1.4;
  transition: color 0.3s ease;
}
.news-card:hover .news-title {
  color: var(--pine-light);
}

.news-card--list {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}
.news-card--list:hover {
  transform: translateY(-4px);
}
.news-card--list figure {
  width: min(280px, 38%);
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 160px;
}
@media (max-width: 640px) {
  .news-card--list {
    flex-direction: column;
  }
  .news-card--list figure {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

.news-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 46px;
  color: rgba(23, 20, 15, 0.45);
  background: #fff;
  transition: color 0.2s ease, background 0.2s ease;
}
.news-view-btn + .news-view-btn {
  border-left: 1px solid var(--line);
}
.news-view-btn:hover {
  color: var(--pine);
}
.news-view-btn.is-active {
  color: #fff;
  background: var(--pine);
}

.news-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.news-page-btn:hover {
  border-color: var(--amber);
  color: var(--pine);
}
.news-page-btn.is-active {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.news-page-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- Появление при скролле ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Модальные окна ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 18, 14, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: 960px;
  transform: translateY(26px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.modal-close:hover {
  background: var(--amber);
  border-color: var(--amber);
  transform: rotate(90deg);
}

/* Лайтбокс изображений */
.lightbox-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
}

/* Попап «Стань частью команды» */
.team-popup .modal-box {
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  padding: 3rem 2.2rem 2.4rem;
  text-align: center;
}
.team-popup .modal-close {
  top: 14px;
  right: 14px;
  border-color: var(--line);
  color: var(--ink);
}
.team-popup .modal-close:hover {
  color: #fff;
}

.metal-lead-modal.modal {
  opacity: 1;
  visibility: visible;
  z-index: 120;
}
.metal-lead-modal .modal-box {
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  padding: 3rem 2.2rem 2.4rem;
  transform: none;
}
.metal-lead-modal .modal-close {
  top: 14px;
  right: 14px;
  border-color: var(--line);
  color: var(--ink);
}
.metal-lead-modal .modal-close:hover {
  color: #fff;
  background: var(--amber);
  border-color: var(--amber);
}
.metal-lead-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}
.metal-lead-label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
}
.metal-lead-field {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.metal-lead-field::placeholder {
  color: rgba(23, 20, 15, 0.38);
}
.metal-lead-field:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 134, 45, 0.18);
}
.metal-lead-error {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #9A3B2F;
}
.metal-lead-legal {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(23, 20, 15, 0.75);
  text-align: left;
}
.metal-lead-legal__link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.metal-lead-legal__link:hover {
  color: var(--amber);
}

/* ---------- Кнопка наверх ---------- */

.go2top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(12, 42, 30, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s, background 0.3s;
}
.go2top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.go2top:hover {
  background: var(--amber);
}

/* ---------- Внутренние страницы ---------- */

.page-hero {
  position: relative;
  min-height: 42svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-inner {
  padding-top: 7.25rem;
  padding-bottom: 2rem;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 22, 16, 0.88) 0%, rgba(10, 22, 16, 0.45) 55%, rgba(10, 22, 16, 0.35) 100%);
}
.page-hero h1 {
  font-family: 'Russo One', sans-serif;
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.1;
}

.section-title {
  font-family: 'Russo One', sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.15;
}

/* ---------- Аккордеон вакансий ---------- */

.acc-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.acc-item + .acc-item {
  margin-top: 1rem;
}
.acc-item.open {
  border-color: var(--pine-soft);
  box-shadow: 0 20px 45px -20px rgba(12, 42, 30, 0.22);
}
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.4rem 1.6rem;
  cursor: pointer;
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.acc-item.open .acc-body {
  max-height: 600px;
}
.acc-plus {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.45s ease;
}
.acc-plus::before,
.acc-plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--pine);
  transform: translate(-50%, -50%);
  transition: background 0.3s ease, transform 0.35s ease;
}
.acc-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.acc-item.open .acc-plus {
  background: var(--amber);
  border-color: var(--amber);
  transform: rotate(180deg);
}
.acc-item.open .acc-plus::before,
.acc-item.open .acc-plus::after {
  background: #fff;
}
.acc-item.open .acc-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* ---------- Фильтр портфолио ---------- */

.filter-btn {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6d675e;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  border-color: var(--pine);
  color: var(--pine);
}
.filter-btn.active {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.filter-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.filter-item.hide {
  display: none;
}

/* ---------- Формы ---------- */

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field:focus {
  outline: none;
  border-color: var(--pine-soft);
  box-shadow: 0 0 0 4px rgba(46, 125, 87, 0.14);
}
.field.error {
  border-color: #c0392b;
}

/* ---------- Разное ---------- */

.num-stat {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--brand-blue);
  line-height: 1;
}

.divider-amber {
  width: 64px;
  height: 3px;
  background: var(--amber);
  border-radius: 3px;
}

.footer-link {
  position: relative;
  color: #cfc9bd;
  font-size: 0.92rem;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: var(--amber);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

@media (hover: none) {
  .news-card:hover,
  .tile:hover img,
  .client-logo:hover,
  .partner-card:hover,
  .pulse-button:hover {
    transform: none;
  }
  .news-card:hover {
    box-shadow: none;
  }
  .marquee:hover .marquee-track {
    animation-play-state: running;
  }
}

@media (min-width: 768px) {
  .btn-outline,
  .btn-solid {
    padding: 1.05rem 2.6rem;
  }

  .page-hero {
    min-height: 52svh;
  }

  .page-hero-inner {
    padding-top: 10rem;
    padding-bottom: 3.5rem;
  }

  .go2top {
    right: 26px;
    bottom: 26px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 767px) {
  .site-header__bar {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .hero .reveal,
  .page-hero .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-inner {
    padding-top: 6.25rem;
    padding-bottom: 1.25rem;
  }

  .hero-socials {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 1.25rem 1rem 1.75rem;
  }

  .hero-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
    max-width: 12ch;
  }

  .hero-eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.72rem;
  }

  .pulse-button {
    width: 96px;
    height: 96px;
  }

  .pulse-button .pulse-text {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
    max-width: 72px;
    text-align: center;
    line-height: 1.25;
  }

  .scroll-hint {
    display: none;
  }

  .page-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.3rem);
    overflow-wrap: anywhere;
  }

  .page-hero-crumb {
    overflow-wrap: anywhere;
  }

  .section-title {
    font-size: clamp(1.4rem, 6.4vw, 1.85rem);
  }

  .modal {
    padding: 0.75rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    align-items: center;
  }

  .modal-box {
    max-height: min(88dvh, 100%);
    overflow: auto;
  }

  .modal-close {
    top: 8px;
    right: 8px;
    z-index: 2;
    background: rgba(10, 18, 14, 0.55);
  }

  .team-popup .modal-box,
  .metal-lead-modal .modal-box,
  .modal-box.bg-white {
    padding: 3rem 1.25rem 1.4rem;
  }

  .team-popup .modal-box .font-display {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .team-popup .modal-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-img {
    max-height: 72dvh;
  }

  .client-logo {
    min-width: 168px;
    height: 76px;
    font-size: 0.88rem;
    padding: 0 1rem;
  }

  .news-field {
    font-size: 16px;
  }

  .news-toolbar__actions {
    width: 100%;
  }

  .news-toolbar__actions .btn-solid {
    flex: 1;
  }

  .site-footer__inner {
    padding-bottom: max(2.25rem, calc(1.25rem + env(safe-area-inset-bottom, 0px)));
  }

  .footer-link {
    padding: 0.35rem 0;
  }
}
