/* ==========================================================================
   WTMA — Наш опыт (Our Experience) Stylesheet
   Strict 1:1 match to Master Design Reference (file_0000000023d881f4bdbf142f078b8037.png)
   Header is unified and inherits completely from css/style.css (identical to all other pages)
   ========================================================================== */

/* Page Background & Layout */
.exp-page-body {
  background-color: #06090f;
  color: #f3f4f6;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

/* Ensure nothing is hidden by reveal-item */
.exp-page-body .reveal-item {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Base Container - Aligned precisely with Master Header & Site Grid */
.exp-container {
  width: 100%;
  max-width: var(--container-max, 1340px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
}

/* ==========================================================================
   MAIN CONTENT & BACKGROUND ENVIRONMENT
   ========================================================================== */
.exp-main-content {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background-color: #06090f;
}

/* ==========================================================================
   HERO / CATEGORIES SECTION
   ========================================================================== */
.exp-hero-section {
  position: relative;
  padding: 125px 0 25px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible;
  z-index: 2;
}

/* 3D Gyroscope Globe Background Environment (Right Side) */
.exp-hero-bg-layer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  min-height: 850px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.exp-hero-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  opacity: 0.82 !important; /* Softer, cinematic background */
  filter: contrast(0.96) brightness(0.85) saturate(0.92);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Soft atmospheric vignette for contrast & 3D card pop */
.exp-hero-left-vignette {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: 
    radial-gradient(circle at 38% 46%, rgba(6, 9, 15, 0.78) 0%, rgba(6, 9, 15, 0.52) 48%, rgba(6, 9, 15, 0.15) 76%, transparent 100%),
    linear-gradient(90deg, rgba(6, 9, 15, 0.94) 0%, rgba(6, 9, 15, 0.72) 42%, rgba(6, 9, 15, 0.28) 72%, transparent 100%);
  pointer-events: none;
}

/* Smooth bottom fade into client logos section */
.exp-hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 9, 15, 0.5) 60%, #06090f 100%);
  pointer-events: none;
}

/* Content Container */
.exp-hero-container {
  position: relative;
  z-index: 2;
}

/* Page Title "Наш опыт" */
.exp-hero-title {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(3.2rem, 5.2vw, 4.75rem);
  font-weight: 500;
  line-height: 1.05;
  color: #ffffff;
  margin: 0 0 32px 0;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================================
   EXPERIENCE CATEGORIES GRID (12 Cards: 4 Columns x 3 Rows)
   ========================================================================== */
.exp-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 2;
  perspective: 1200px; /* Real 3D perspective context */
}

/* Individual Experience Card — Premium 3D Beveled Glass Slab */
.exp-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 98px;
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.88) 0%, rgba(9, 14, 25, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.24);  /* 3D top specular edge */
  border-left: 1px solid rgba(255, 255, 255, 0.16); /* 3D left light highlight */
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);      /* 3D bottom drop shadow seam */
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.35),
    0 10px 22px -2px rgba(0, 0, 0, 0.65),
    0 22px 42px -6px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.22),     /* top inner bevel highlight */
    inset 1px 0 1px 0 rgba(255, 255, 255, 0.1),      /* left inner bevel highlight */
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.55);          /* bottom inner bevel shadow */
  transform-style: preserve-3d;
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              background 0.35s ease;
  cursor: pointer;
  text-decoration: none;
}

.exp-card:hover {
  transform: translateY(-7px) scale(1.02);
  background: linear-gradient(135deg, rgba(22, 33, 56, 0.94) 0%, rgba(12, 19, 32, 0.98) 100%);
  border-color: rgba(212, 175, 55, 0.65);
  border-top-color: rgba(255, 235, 175, 0.9);
  border-left-color: rgba(235, 205, 145, 0.7);
  box-shadow: 
    0 12px 24px -2px rgba(0, 0, 0, 0.5),
    0 26px 48px -4px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(212, 175, 55, 0.28),               /* golden ambient aura */
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.45),     /* shining top rim */
    inset 0 0 20px rgba(212, 175, 55, 0.12);
}

/* Left Body: Number & Label */
.exp-card-body {
  position: relative;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3;
  min-width: 125px;
  flex-shrink: 0;
}

.exp-card-num {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: #c5a880;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(197, 168, 128, 0.35);
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

.exp-card:hover .exp-card-num {
  color: #f1d7b3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 22px rgba(212, 175, 55, 0.6);
  transform: scale(1.05);
}

.exp-card-label {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.96rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* Right Media: Thumbnail Image (Expanded 75% width with pure seamless alpha mask) */
.exp-card-thumb-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 75%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 11px 11px 0;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 18%, rgba(0, 0, 0, 0.65) 38%, #000000 60%, #000000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 18%, rgba(0, 0, 0, 0.65) 38%, #000000 60%, #000000 100%);
}

.exp-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: brightness(0.96) contrast(1.05);
}

.exp-card:first-child .exp-card-thumb-img {
  object-position: center center;
}

.exp-card:hover .exp-card-thumb-img {
  transform: scale(1.08);
  filter: brightness(1.06) contrast(1.08);
}

/* Seamless Fade (Mask handles alpha gradient seamlessly; no hard seam overlay) */
.exp-card-fade {
  display: none;
}

/* ==========================================================================
   CLIENTS / PARTNERS SECTION ("Компании, с которыми мы работали")
   ========================================================================== */
.exp-clients-section {
  position: relative;
  padding: 10px 0 90px;
  z-index: 2;
  background: transparent;
}

.exp-clients-title {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  margin: 0 0 28px 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
  opacity: 1 !important;
  visibility: visible !important;
}

/* Client Rows Container (Centered Inverted Pyramid) */
.exp-clients-cloud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Individual Row: Inverted Pyramid on Desktop */
.exp-clients-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.4vw, 6px);
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Client Badge (Text-based pill, sleek & calibrated) */
.client-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(31px, 2.2vw, 35px);
  padding: 0 clamp(8px, 0.7vw, 13px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(0.72rem, 0.74vw, 0.83rem);
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.015em;
  white-space: nowrap;
  flex-shrink: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  cursor: default;
  opacity: 1 !important;
  visibility: visible !important;
}

.client-badge-pill:hover {
  background: rgba(197, 168, 128, 0.14);
  border-color: rgba(197, 168, 128, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(197, 168, 128, 0.18);
}

/* Featured White Logo Badges (Uniform 35px Height, High Contrast) */
.client-badge-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(31px, 2.2vw, 35px);
  min-width: clamp(80px, 6vw, 104px);
  padding: 2px clamp(6px, 0.6vw, 12px);
  background: #ffffff !important;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
}

.client-badge-logo picture {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.client-badge-logo img {
  height: clamp(19px, 1.4vw, 22px);
  width: auto;
  max-width: clamp(80px, 6vw, 105px);
  object-fit: contain;
  display: block;
}

.client-badge-logo:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Laptop & Tablet Adaptive: Seamless continuous cloud layout */
@media (max-width: 1260px) {
  .exp-clients-cloud {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px 5px;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 10px;
  }

  .exp-clients-row {
    display: contents;
  }

  .client-badge-pill {
    height: 33px;
    padding: 0 10px;
    font-size: 0.77rem;
    flex-shrink: 0;
  }

  .client-badge-logo {
    height: 33px;
    min-width: 86px;
    padding: 2px 9px;
    flex-shrink: 0;
  }

  .client-badge-logo img {
    height: 20px;
    max-width: 86px;
  }
}

@media (max-width: 1100px) {
  .exp-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .exp-hero-section {
    padding-top: 105px;
  }

  .exp-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .exp-card {
    height: 90px;
  }

  .exp-clients-title {
    font-size: 2.1rem;
    margin-bottom: 26px;
  }

  .exp-clients-cloud {
    max-width: 720px;
    gap: 7px 5px;
  }
}

@media (max-width: 640px) {
  .header-container,
  .exp-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .exp-hero-title {
    font-size: 2.4rem;
    margin-bottom: 20px;
    text-align: center;
  }

  .exp-cards-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .exp-card {
    height: 82px;
  }

  .exp-card-body {
    padding-left: 14px;
    min-width: 100px;
  }

  .exp-card-num {
    font-size: 1.35rem;
  }

  .exp-card-label {
    font-size: 0.85rem;
  }

  .exp-clients-section {
    padding: 30px 0 50px;
  }

  .exp-clients-title {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 20px;
    text-align: center;
  }

  .exp-clients-cloud {
    gap: 6px 4px;
    padding: 0 2px;
  }

  .client-badge-pill {
    height: 29px;
    padding: 0 8px;
    font-size: 0.72rem;
    border-radius: 5px;
  }

  .client-badge-logo {
    height: 29px;
    padding: 2px 7px;
    min-width: 72px;
    border-radius: 5px;
  }

  .client-badge-logo img {
    height: 17px;
    max-width: 70px;
  }
}

@media (max-width: 380px) {
  .exp-hero-title {
    font-size: 2rem;
  }

  .exp-clients-title {
    font-size: 1.4rem;
  }

  .client-badge-pill {
    height: 27px;
    padding: 0 6px;
    font-size: 0.68rem;
  }

  .client-badge-logo {
    height: 27px;
    padding: 1px 6px;
    min-width: 66px;
  }

  .client-badge-logo img {
    height: 15px;
    max-width: 64px;
  }

  .exp-clients-cloud {
    gap: 5px 3px;
  }
}
