
/* ==========================================================================
   HERO MULTIFACETED SHARD PRISM REFLECTION EFFECT
   Reflecting Industrial Metallurgy, CNC Precision & Kazakh Steppe Panorama
   ========================================================================== */
.corp-hero-section {
  position: relative;
  padding: 84px 0 72px;
  background-color: #0A1120;
  background-image: 
    linear-gradient(135deg, rgba(10, 17, 32, 0.88) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(12, 35, 64, 0.85) 100%),
    url('../assets/images/hero/industrial_shards_hero.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  border-bottom: 3px solid #ea580c;
  overflow: hidden;
}

.hero-shards-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* Polygonal Glass Shards with Specular Refractions */
.shard-crystal {
  position: absolute;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  opacity: 0.75;
}

.shard-1 {
  top: -10%;
  right: 5%;
  width: 380px;
  height: 440px;
  clip-path: polygon(25% 0%, 100% 15%, 85% 100%, 0% 80%);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(234, 88, 12, 0.15) 100%);
  transform: rotate(-12deg);
  animation: shardFloat1 12s ease-in-out infinite alternate;
}

.shard-2 {
  bottom: -15%;
  left: 2%;
  width: 420px;
  height: 380px;
  clip-path: polygon(0% 20%, 80% 0%, 100% 75%, 20% 100%);
  background: linear-gradient(215deg, rgba(14, 165, 233, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  transform: rotate(8deg);
  animation: shardFloat2 15s ease-in-out infinite alternate;
}

.shard-3 {
  top: 20%;
  left: 35%;
  width: 260px;
  height: 260px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: linear-gradient(45deg, rgba(234, 88, 12, 0.08) 0%, rgba(56, 189, 248, 0.06) 100%);
  opacity: 0.45;
  transform: rotate(25deg);
  animation: shardFloat3 18s ease-in-out infinite alternate;
}

.shard-4 {
  bottom: 10%;
  right: 18%;
  width: 320px;
  height: 320px;
  clip-path: polygon(30% 0%, 90% 10%, 100% 70%, 10% 90%);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(14, 165, 233, 0.12) 100%);
  opacity: 0.6;
  transform: rotate(-5deg);
  animation: shardFloat1 14s ease-in-out infinite alternate-reverse;
}

.shard-light-ray {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

@keyframes shardFloat1 {
  0% { transform: translateY(0px) rotate(-12deg) scale(1); }
  100% { transform: translateY(18px) rotate(-8deg) scale(1.03); }
}

@keyframes shardFloat2 {
  0% { transform: translateY(0px) rotate(8deg) scale(1); }
  100% { transform: translateY(-16px) rotate(12deg) scale(1.02); }
}

@keyframes shardFloat3 {
  0% { transform: translateY(0px) rotate(25deg) scale(1); }
  100% { transform: translateY(12px) rotate(30deg) scale(0.97); }
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero-main-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 50%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead-desc {
  font-size: 1.1875rem;
  color: #e2e8f0;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(12px);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Corporate Portal Clean B2B Styling
   Corporate home page sections
   ========================================================================== */

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 20px;
}
.hero-badge-tag i {
  color: #ff7500;
}

.hero-main-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-main-title .gradient-text {
  color: #38bdf8;
}

.hero-lead-desc {
  font-size: 1.125rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Key Stats Strip */
.corp-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 28px 36px;
  box-shadow: var(--shadow-md);
  margin-top: 32px;
  color: #0f172a;
}

.stat-item {
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #e2e8f0;
}

.stat-val {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: #475569;
  font-weight: 500;
}

/* ==========================================================================
   Two Distinct Specialized Sub-Portals Showcase
   ========================================================================== */
.divisions-overview-section {
  padding: 70px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.divisions-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.division-feature-card {
  border-radius: var(--radius-xl);
  padding: 36px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.division-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #cbd5e1;
}

/* Leybold Feature Card */
.card-division-leybold {
  border-top: 4px solid #E2001A;
  background: #ffffff;
}

.division-top-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.division-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.25;
}

.division-desc {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.division-highlights-list {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.division-highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: #1e293b;
  font-weight: 500;
}
.division-highlights-list li i {
  margin-top: 3px;
}

/* Services Grid */
.corp-services-section {
  padding: 70px 0;
  background: #ffffff;
}

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.service-card:hover {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: var(--shadow-md);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #e0f2fe;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
}

/* Case Studies Section */
.corp-cases-section {
  padding: 70px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.case-division-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}

.case-industry {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.case-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.4;
}

.case-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #f1f5f9;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  border: 1px solid #e2e8f0;
}
.metric-box {
  text-align: center;
}
.metric-val {
  font-weight: 800;
  font-size: 1.1rem;
  color: #059669;
}
.metric-lbl {
  font-size: 0.6875rem;
  color: #475569;
}

/* Partners Logos */
.corp-partners-section {
  padding: 56px 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.partners-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.partner-logo-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  transition: var(--transition);
}
.partner-logo-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}
.partner-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 4px;
}
.partner-type {
  font-size: 0.75rem;
  color: #64748b;
}

/* Contacts section */
.corp-contacts-section {
  padding: 70px 0;
  background: #f8fafc;
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contacts-info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-branch-item {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.branch-city {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

@media (max-width: 992px) {
  .hero-main-title { font-size: 2rem; }
  .corp-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .divisions-showcase-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .partners-logos-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
}

/* ===================== Single product division (coolants removed) ===================== */
.divisions-showcase-grid--single {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

/* Case cards: centred, works for 1–3 cards */
.cases-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 380px));
  justify-content: center;
}

/* ===================== Messengers: WhatsApp / Telegram ===================== */
.btn-messenger { color: #ffffff; border: none; }
.btn-messenger:hover { color: #ffffff; filter: brightness(0.92); }
.btn-whatsapp { background: #25D366; }
.btn-telegram { background: #229ED9; }

.messenger-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.messenger-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 2500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.messenger-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.messenger-float-btn:hover { transform: translateY(-2px); filter: brightness(0.95); color: #ffffff; }

/* toasts sit above the floating messenger buttons */
.toast-container { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }

/* ===================== Request form extras ===================== */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.5;
  margin: 4px 0 18px;
  cursor: pointer;
}
.consent-check input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.consent-check a { color: #0284c7; text-decoration: underline; }

.rfq-submit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .rfq-submit-row { grid-template-columns: 1fr; }
  .messenger-float { right: 12px; }
  .messenger-float-btn { width: 46px; height: 46px; font-size: 1.4rem; }
}

/* Honeypot field: visually hidden, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===================== Mobile / tablet layout fixes ===================== */
@media (max-width: 1024px) {
  /* Header in two rows: logo + actions, then the "Главная / Leybold" tabs (were hidden before) */
  .top-bar-inner { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 10px; }
  .hub-switcher-nav { display: flex; order: 3; width: 100%; }
  .hub-tab-btn { flex: 1 1 0; justify-content: center; }
}

@media (max-width: 640px) {
  .brand-logo-img { height: 32px !important; }
  .top-actions-group { gap: 6px; }
  .search-shortcut { display: none; }
  .search-trigger-btn { padding: 7px 10px; }
  .lang-btn { padding: 4px 6px; }
  .top-actions-group .btn-corp-primary span { display: none; }   /* "Запросить КП" -> icon only */
  .top-actions-group .btn-corp-primary { padding: 8px 10px; }
  .hub-tab-btn { white-space: normal; text-align: center; padding: 8px 10px; font-size: 0.8125rem; line-height: 1.25; }

  .portal-breadcrumb { display: none; }
  .sub-nav-inner { justify-content: center; }
  .sub-nav-quick-links { flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
  .sub-nav-quick-links > span { display: none; }               /* working hours */

  .btn { white-space: normal; text-align: center; }
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .compliance-note { flex-direction: column; align-items: flex-start !important; }
  .service-banner-box { grid-template-columns: 1fr !important; padding: 24px !important; }
}

@media (max-width: 400px) {
  .partners-logos-grid { grid-template-columns: 1fr; }
  .footer-bottom-bar { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .footer-copy-text, .footer-cities-bar { min-width: 0; overflow-wrap: anywhere; }
  .division-feature-card > div > div:first-child { flex-wrap: wrap; gap: 8px; }
}

/* Document cards: source caption + one or several buttons, wraps on narrow screens */
.doc-meta-bar { flex-wrap: wrap; gap: 10px; }
.doc-meta-info { min-width: 0; }
.doc-actions-row { flex-wrap: wrap; }

@media (max-width: 640px) {
  .toast-container { left: 12px; right: 72px; }   /* keep clear of the floating messenger buttons */
  .toast { max-width: 100%; }
}
