/* ═══════════════════════════════════════════════════════════════
   УНСО | ДАД ГУР МО — Recruitment Landing Page
   Custom CSS — Material Dark Theme
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --color-bg:             #000000;
  --color-surface:        #0D0D0D;
  --color-surface-2:      #141414;
  --color-surface-3:      #1A1A1A;
  --color-accent:         #B71C1C;
  --color-accent-hover:   #D32F2F;
  --color-accent-light:   #EF5350;
  --color-text-primary:   #FFFFFF;
  --color-text-secondary: #9E9E9E;
  --color-text-muted:     #616161;
  --color-border:         rgba(183, 28, 28, 0.3);
  --color-border-hover:   rgba(183, 28, 28, 0.65);
  --color-border-subtle:  rgba(255, 255, 255, 0.08);

  --font-heading: 'Tektur', sans-serif;
  --font-body:    'Inter', sans-serif;

  --shadow-card:       0 2px 8px rgba(0,0,0,0.8),  0 0 0 1px var(--color-border);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.95), 0 2px 8px rgba(183,28,28,0.2), 0 0 0 1px var(--color-border-hover);
  --shadow-modal:      0 24px 80px rgba(0,0,0,0.98), 0 0 0 1px var(--color-border);
  --shadow-btn:        0 4px 14px rgba(183,28,28,0.35);
  --shadow-btn-hover:  0 8px 24px rgba(183,28,28,0.5);

  --ease-material: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-decel:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-accel:    cubic-bezier(0.4, 0.0, 1, 1);

  --transition-std:  all 0.3s var(--ease-material);
  --transition-fast: all 0.15s var(--ease-material);
  --transition-slow: all 0.5s var(--ease-material);

  --navbar-height: 72px;
  --section-py:    5rem;
  --radius:        4px;
  --radius-lg:     6px;
}

/* ── GLOBAL RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* Utility */
.text-accent         { color: var(--color-accent) !important; }
.text-secondary-muted { color: var(--color-text-secondary) !important; }
.font-tektur         { font-family: var(--font-heading) !important; }

/* ─────────────────────────────────────────────────────────────── */
/* ── NAVBAR ── */
/* ─────────────────────────────────────────────────────────────── */

#mainNav {
  height: var(--navbar-height);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  background-color: #000;
}

#mainNav.nav-static {
  background-color: #000;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-primary) !important;
  text-transform: uppercase;
}

.navbar-brand .brand-accent {
  color: var(--color-accent);
}

.navbar-toggler {
  border-color: var(--color-border);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.25);
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary) !important;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-fast);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-material);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--color-text-primary) !important;
}

.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
}

/* ─────────────────────────────────────────────────────────────── */
/* ── HERO SECTION ── */
/* ─────────────────────────────────────────────────────────────── */

.hero-section {
  min-height: calc(100vh - var(--navbar-height));
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Dark overlay on top of video to preserve readability */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.62);
  z-index: 1;
}

/* Animated tactical grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(183, 28, 28, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 28, 28, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridPulse 10s ease-in-out infinite;
  z-index: 2;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1; }
}

/* Corner accent lines */
.hero-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  z-index: 4;
}
.hero-corner.tl { top: 120px; left: 40px; border-top: 2px solid var(--color-accent); border-left: 2px solid var(--color-accent); }
.hero-corner.tr { top: 120px; right: 40px; border-top: 2px solid var(--color-accent); border-right: 2px solid var(--color-accent); }
.hero-corner.bl { bottom: 40px; left: 40px; border-bottom: 2px solid var(--color-accent); border-left: 2px solid var(--color-accent); }
.hero-corner.br { bottom: 40px; right: 40px; border-bottom: 2px solid var(--color-accent); border-right: 2px solid var(--color-accent); }

/* Radial vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 65% at 50% 50%,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 55%,
    rgba(0, 0, 0, 0.92) 100%
  );
  z-index: 3;
}

/* Horizontal scan line animation */
.hero-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(183,28,28,0.5), transparent);
  animation: scanDown 8s linear infinite;
  pointer-events: none;
  z-index: 4;
}

@keyframes scanDown {
  from { top: 0; opacity: 1; }
  to   { top: 100%; opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 5;
  padding: 2rem 1rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

.hero-attribution {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 510px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
  font-weight: 300;
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 1.5rem auto;
}

/* ── HERO LOGO ── */
.hero-logo-wrap {
  margin: 1.5rem auto 2rem;
  display: inline-block;
  position: relative;
}

.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(183,28,28,0.18) 0%, transparent 70%);
  animation: logoPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

.hero-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 0 18px rgba(183, 28, 28, 0.75))
    drop-shadow(0 0 45px rgba(183, 28, 28, 0.35));
  animation: logoEntrance 0.9s var(--ease-decel) both;
}

@keyframes logoEntrance {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 575.98px) {
  .hero-logo {
    width: 160px;
    height: 160px;
  }
}

/* ─────────────────────────────────────────────────────────────── */
/* ── BUTTONS ── */
/* ─────────────────────────────────────────────────────────────── */

.btn-primary-custom {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background-color: var(--color-accent);
  color: var(--color-text-primary) !important;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-std);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
}

.btn-primary-custom:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-primary-custom:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn);
}

.btn-outline-custom {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--color-accent) !important;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-outline-custom:hover {
  background-color: var(--color-accent);
  color: var(--color-text-primary) !important;
  border-color: var(--color-accent);
}

.btn-secondary-custom {
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: transparent;
  color: var(--color-text-secondary) !important;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius);
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-secondary-custom:hover {
  color: var(--color-text-primary) !important;
  border-color: rgba(255,255,255,0.3);
}

/* Ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(0);
  animation: rippleAnim 0.65s var(--ease-decel);
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4.5);
    opacity: 0;
  }
}

/* ─────────────────────────────────────────────────────────────── */
/* ── SECTION TYPOGRAPHY UTILITIES ── */
/* ─────────────────────────────────────────────────────────────── */

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────────────────────────── */
/* ── ORDER SECTION ── */
/* ─────────────────────────────────────────────────────────────── */

.order-section {
  padding: var(--section-py) 0;
  background-color: var(--color-surface);
  position: relative;
  overflow: hidden;
}

/* Slideshow background layers */
.order-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.order-bg-layer.active {
  opacity: 1;
}

/* Dark overlay always on top of bg layers */
.order-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1;
  pointer-events: none;
}

/* Content stays above everything */
.order-section > .container {
  position: relative;
  z-index: 2;
}

.order-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.order-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.order-card {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 3.5rem 4rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.order-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(183,28,28,0.1), transparent 50%);
  pointer-events: none;
}

.order-body {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 1.75rem auto 2rem;
  line-height: 1.95;
  font-weight: 300;
}

/* Pillar items */
.pillar-item {
  padding: 1.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: var(--transition-std);
}

.pillar-item:hover {
  border-color: var(--color-border);
  background-color: var(--color-surface-2);
}

.pillar-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(183, 28, 28, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: var(--transition-fast);
}

.pillar-item:hover .pillar-icon-wrap {
  background: rgba(183, 28, 28, 0.22);
}

.pillar-icon {
  font-size: 1.6rem;
  color: var(--color-accent);
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.pillar-text {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────── */
/* ── VACANCIES SECTION ── */
/* ─────────────────────────────────────────────────────────────── */

.vacancies-section {
  padding: var(--section-py) 0;
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Blurred background — always visible, fog layer */
.vac-bg-blur {
  position: absolute;
  inset: -40px;
  background: url('assets/img/bg/vacancies/bg_prof.png') center / cover no-repeat;
  filter: blur(10px) brightness(0.44);
  z-index: 0;
  pointer-events: none;
}

/* Sharp background — revealed only under the wipe circle */
.vac-bg-clear {
  position: absolute;
  inset: 0;
  background: url('assets/img/bg/vacancies/bg_prof.png') center / cover no-repeat;
  filter: brightness(0.6);
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    circle 150px at var(--wipe-x, -999px) var(--wipe-y, -999px),
    black 0%, black 35%, transparent 100%
  );
  mask-image: radial-gradient(
    circle 150px at var(--wipe-x, -999px) var(--wipe-y, -999px),
    black 0%, black 35%, transparent 100%
  );
}

/* Fog/condensation veil — vanishes inside the wipe circle */
.vac-fog {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.48);
  z-index: 2;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    circle 170px at var(--wipe-x, -999px) var(--wipe-y, -999px),
    transparent 0%, transparent 25%, black 100%
  );
  mask-image: radial-gradient(
    circle 170px at var(--wipe-x, -999px) var(--wipe-y, -999px),
    transparent 0%, transparent 25%, black 100%
  );
}

/* Keep section content above the bg layers */
.vacancies-section > .container {
  position: relative;
  z-index: 3;
}

.vacancy-card {
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition-std);
  cursor: pointer;
  height: 100%;
  position: relative;
  overflow: hidden;
  opacity: 0.8;
  -webkit-tap-highlight-color: transparent;
}

.vacancy-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-material);
  z-index: 1;
}

.vacancy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border-hover);
}

.vacancy-card:hover::before {
  transform: scaleX(1);
}

.vacancy-card:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.25), var(--shadow-card);
}

.vacancy-inner {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  align-items: flex-start;
  height: 100%;
}

.vacancy-icon-wrap {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background: rgba(183, 28, 28, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  border: 1px solid rgba(183, 28, 28, 0.15);
}

.vacancy-card:hover .vacancy-icon-wrap {
  background: rgba(183, 28, 28, 0.22);
  border-color: rgba(183, 28, 28, 0.4);
}

.vacancy-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.vacancy-body {
  flex: 1;
  min-width: 0;
}

.vacancy-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.salary-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(183, 28, 28, 0.1);
  border: 1px solid rgba(183, 28, 28, 0.2);
  border-radius: 2px;
  padding: 0.18rem 0.65rem;
  margin-bottom: 0.85rem;
}

.vacancy-desc {
  font-size: 0.865rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 1.1rem;
  font-weight: 300;
}

/* ─────────────────────────────────────────────────────────────── */
/* ── MODAL ── */
/* ─────────────────────────────────────────────────────────────── */

/* Backdrop */
.modal-backdrop {
  background-color: #000;
}

.modal-backdrop.show {
  opacity: 0.88;
}

/* Dialog animation override */
.modal.fade .modal-dialog {
  transform: scale(0.93) translateY(20px);
  transition: transform 0.3s var(--ease-decel), opacity 0.3s var(--ease-decel);
}

.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Modal content */
.modal-dark {
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  color: var(--color-text-primary);
}

.modal-header-dark {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 1.75rem;
  align-items: center;
  gap: 1rem;
}

.modal-icon-lg {
  font-size: 2rem;
  color: var(--color-accent);
  line-height: 1;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
}

.modal-body-dark {
  padding: 1.75rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.85;
  margin-bottom: 0;
  font-weight: 300;
}

.modal-divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

.modal-subtitle {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-list li {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  line-height: 1.6;
  font-weight: 300;
}

.modal-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.modal-footer-dark {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 1.75rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ─────────────────────────────────────────────────────────────── */
/* ── FORM SECTION ── */
/* ─────────────────────────────────────────────────────────────── */

.form-section {
  padding: var(--section-py) 0;
  background-color: var(--color-surface);
  position: relative;
  overflow: hidden;
}

/* Background image — starts blurred, clears as form is filled */
.form-bg {
  position: absolute;
  inset: -40px;
  background: url('assets/img/bg/form_bg.png') center / cover no-repeat;
  filter: blur(14px) brightness(0.3);
  transition: filter 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

/* Dark veil on top of bg */
.form-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: background 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

/* Keep content above bg layers */
.form-section > .container {
  position: relative;
  z-index: 2;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.form-card {
  background-color: rgba(20, 20, 20, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 4rem;
  box-shadow: var(--shadow-card);
  max-width: 840px;
  margin: 0 auto;
  position: relative;
}

.form-intro {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
  font-weight: 300;
}

.form-label-custom {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 0.45rem;
  display: block;
}

.form-control-custom {
  background-color: var(--color-surface-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: var(--transition-fast);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-control-custom:hover {
  border-color: rgba(255,255,255,0.15);
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.18);
  background-color: var(--color-surface-3);
  color: var(--color-text-primary);
}

.form-control-custom::placeholder {
  color: var(--color-text-muted);
  font-weight: 300;
}

.form-control-custom option {
  background-color: var(--color-surface-2);
  color: var(--color-text-primary);
}

/* Chrome autofill override */
.form-control-custom:-webkit-autofill,
.form-control-custom:-webkit-autofill:focus,
.form-control-custom:-webkit-autofill:hover {
  -webkit-box-shadow: 0 0 0 1000px var(--color-surface-3) inset !important;
  -webkit-text-fill-color: var(--color-text-primary) !important;
  border-color: var(--color-border) !important;
  caret-color: var(--color-text-primary);
}

/* Bootstrap validation */
.was-validated .form-control-custom:invalid,
.form-control-custom.is-invalid {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.18);
}

.was-validated .form-control-custom:valid {
  border-color: rgba(76, 175, 80, 0.5);
}

/* Select arrow */
select.form-control-custom {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23B71C1C' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea.form-control-custom {
  resize: vertical;
  min-height: 110px;
}

.form-trigger-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.form-trigger-text em {
  color: var(--color-accent);
  font-style: normal;
}

.form-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.form-note i {
  color: var(--color-accent);
  opacity: 0.8;
  margin-right: 0.3rem;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 2rem 0;
}

.form-success-icon {
  font-size: 3.5rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 1.25rem;
}

.form-success h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
}

/* ─────────────────────────────────────────────────────────────── */
/* ── FOOTER ── */
/* ─────────────────────────────────────────────────────────────── */

.site-footer {
  background-color: var(--color-surface);
  border-top: 3px solid var(--color-accent);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 3px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183,28,28,0.3), transparent);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  display: block;
}

.footer-quote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  font-style: italic;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer-slogan {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

/* Navbar phone link */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent) !important;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.35rem 0.9rem;
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-phone:hover {
  background-color: rgba(183, 28, 28, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent-hover) !important;
}

/* Footer phone link */
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-primary) !important;
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: var(--transition-fast);
}

.footer-phone i {
  color: var(--color-accent);
  font-size: 1rem;
}

.footer-phone:hover {
  color: var(--color-accent) !important;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-secondary) !important;
  font-size: 1.05rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent) !important;
  background-color: rgba(183, 28, 28, 0.08);
  transform: translateY(-2px);
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--color-border);
  margin: 1.5rem auto;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────── */
/* ── FADE-IN ANIMATION (IntersectionObserver) ── */
/* ─────────────────────────────────────────────────────────────── */

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease-material), transform 0.55s var(--ease-material);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid children */
.fade-in-up:nth-child(2) { transition-delay: 0.08s; }
.fade-in-up:nth-child(3) { transition-delay: 0.16s; }
.fade-in-up:nth-child(4) { transition-delay: 0.24s; }
.fade-in-up:nth-child(5) { transition-delay: 0.32s; }
.fade-in-up:nth-child(6) { transition-delay: 0.40s; }

/* ─────────────────────────────────────────────────────────────── */
/* ── RESPONSIVE ── */
/* ─────────────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .hero-corner { display: none; }

  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.98);
    border-top: 1px solid var(--color-border);
    padding: 1rem 0;
    margin-top: 0.5rem;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-py: 3.5rem;
  }

  .order-card,
  .form-card {
    padding: 2rem 1.5rem;
  }

  .vacancy-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  .hero-eyebrow::before,
  .hero-eyebrow::after {
    width: 20px;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .btn-primary-custom {
    padding: 0.75rem 1.75rem;
    font-size: 0.75rem;
  }

  .modal-header-dark,
  .modal-body-dark,
  .modal-footer-dark {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ─────────────────────────────────────────────────────────────── */
/* ── SCROLLBAR STYLING ── */
/* ─────────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-hover);
}

/* ─────────────────────────────────────────────────────────────── */
/* ── SELECTION ── */
/* ─────────────────────────────────────────────────────────────── */

::selection {
  background: rgba(183, 28, 28, 0.4);
  color: var(--color-text-primary);
}
