/* =============================================================
   INDEX.CSS — стили главной страницы
   ============================================================= */

/* HERO */
.hero {
  position:        relative;
  min-height:      100vh;
  display:         flex;
  flex-direction:  column;
  justify-content: flex-end;
  padding:         0 var(--page-px) 80px;
  overflow:        hidden;
}

.hero-bg {
  position:            absolute;
  inset:               0;
  background-image:    url('/assets/img/hero-bg.jpg');
  background-size:     cover;
  background-position: center;
  filter:              brightness(0.25);
  transform:           scale(1.05);
  transition:          transform 8s ease;
  will-change:         transform;
}
.hero-bg::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}

.hero-grid-overlay {
  position:         absolute;
  inset:            0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-content {
  position:  relative;
  z-index:   2;
  max-width: 900px;
}

.hero-tag {
  font-size:      11px;
  font-weight:    500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  24px;
  opacity:        0;
  animation:      fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-family:    var(--font-display);
  font-size:      clamp(72px, 10vw, 140px);
  line-height:    0.92;
  letter-spacing: 0.02em;
  color:          var(--white);
  margin-bottom:  32px;
  opacity:        0;
  animation:      fadeUp 0.9s 0.4s forwards;
}
.hero-title span { color: var(--accent); }

.hero-sub {
  font-size:     17px;
  font-weight:   300;
  color:         rgba(255, 255, 255, 0.55);
  max-width:     520px;
  line-height:   1.7;
  margin-bottom: 48px;
  opacity:       0;
  animation:     fadeUp 0.9s 0.6s forwards;
}

.hero-actions {
  display:     flex;
  gap:         20px;
  align-items: center;
  opacity:     0;
  animation:   fadeUp 0.9s 0.8s forwards;
}

.hero-scroll {
  position:        absolute;
  bottom:          40px;
  right:           var(--page-px);
  z-index:         2;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             8px;
  opacity:         0;
  animation:       fadeIn 1s 1.2s forwards;
}
.hero-scroll span {
  font-size:      10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--gray);
  writing-mode:   vertical-rl;
}
.scroll-line {
  width:      1px;
  height:     60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation:  scrollPulse 2s infinite;
}

/* DIRECTIONS */
.directions {
  padding:    var(--section-py) var(--page-px);
  background: var(--bg);
}

.directions-header {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  margin-bottom:   80px;
}

.directions-title {
  font-family:    var(--font-display);
  font-size:      clamp(48px, 6vw, 90px);
  line-height:    0.95;
  letter-spacing: 0.02em;
}

.directions-desc {
  max-width:   360px;
  font-size:   15px;
  color:       rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  text-align:  right;
}

.dir-cards {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   2px;
}

.dir-card {
  position:       relative;
  overflow:       hidden;
  height:         560px;
  cursor:         none;
  text-decoration: none;
  display:        block;
}
.dir-card-bg {
  position:            absolute;
  inset:               0;
  background-size:     cover;
  background-position: center;
  filter:              brightness(0.2);
  transition:          filter 0.5s ease, transform 0.6s ease;
}
.dir-card:hover .dir-card-bg { filter: brightness(0.35); transform: scale(1.04); }

.dir-card-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.95) 0%, transparent 60%);
}

.dir-card-accent {
  position:         absolute;
  top: 0; left: 0; right: 0;
  height:           2px;
  background:       var(--accent);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform 0.4s ease;
}
.dir-card:hover .dir-card-accent { transform: scaleX(1); }

.dir-card-content {
  position:       absolute;
  inset:          0;
  padding:        32px 40px 40px;
  display:        flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dir-card-num {
  font-family:    var(--font-display);
  font-size:      64px;
  color:          rgba(0, 200, 255, 0.08);
  line-height:    1;
  margin-bottom:  12px;
  transition:     color 0.3s;
}
.dir-card:hover .dir-card-num { color: rgba(0, 200, 255, 0.15); }

.dir-card-title {
  font-family:    var(--font-display);
  font-size:      36px;
  letter-spacing: 0.04em;
  color:          var(--white);
  margin-bottom:  12px;
  line-height:    1.1;
  hyphens:        none;
  word-break:     keep-all;
}

.dir-card-text {
  font-size:     13px;
  font-weight:   300;
  color:         rgba(255, 255, 255, 0.45);
  line-height:   1.6;
  margin-bottom: 28px;
  margin-top:    auto;
}

.dir-card-link {
  font-size:      11px;
  font-weight:    500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--accent);
  display:        flex;
  align-items:    center;
  gap:            10px;
  transition:     gap 0.2s;
}
.dir-card:hover .dir-card-link { gap: 16px; }
.dir-card-link::after { content: '→'; }

/* TRUST */
.trust {
  padding:       100px var(--page-px);
  background:    var(--bg2);
  border-top:    1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.trust-inner {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           center;
}

.trust-title {
  font-family:    var(--font-display);
  font-size:      clamp(40px, 5vw, 72px);
  line-height:    0.95;
  letter-spacing: 0.02em;
  margin-bottom:  24px;
}

.trust-text {
  font-size:   15px;
  color:       rgba(255, 255, 255, 0.45);
  line-height: 1.75;
  max-width:   420px;
}

.trust-stats {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   2px;
}

.trust-stat {
  background: var(--gray3);
  padding:    36px;
  position:   relative;
  overflow:   hidden;
}
.trust-stat::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0;
  width:      2px;
  height:     100%;
  background: var(--accent);
  opacity:    0.5;
}

.trust-stat-num {
  font-family:   var(--font-display);
  font-size:     52px;
  color:         var(--white);
  line-height:   1;
  margin-bottom: 8px;
}
.trust-stat-num span { color: var(--accent); }

.trust-stat-label {
  font-size:      12px;
  font-weight:    400;
  color:          rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  line-height:    1.5;
}

/* MPT BADGE */
.mpt-badge {
  display:     inline-flex;
  align-items: center;
  gap:         12px;
  margin-top:  32px;
  padding:     14px 24px;
  border:      1px solid rgba(0, 200, 255, 0.2);
  background:  rgba(0, 200, 255, 0.04);
}
.mpt-badge-icon {
  width:         8px;
  height:        8px;
  background:    var(--accent);
  border-radius: 50%;
  flex-shrink:   0;
}
.mpt-badge-text {
  font-size:      12px;
  font-weight:    400;
  color:          rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  line-height:    1.5;
}
.mpt-badge-text strong { color: rgba(255, 255, 255, 0.8); font-weight: 500; }

/* VENDORS */
.trust-vendors {
  margin-top:  100px;
  padding-top: 80px;
  border-top:  1px solid rgba(255, 255, 255, 0.06);
}

.trust-vendors-header {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  margin-bottom:   56px;
}

.trust-vendors-title {
  font-family:    var(--font-display);
  font-size:      clamp(36px, 4vw, 60px);
  line-height:    0.95;
  letter-spacing: 0.02em;
}

.trust-vendors-desc {
  font-size:   14px;
  color:       rgba(255, 255, 255, 0.35);
  max-width:   320px;
  text-align:  right;
  line-height: 1.65;
}

.vendors-row {
  display:               grid;
  grid-template-columns: repeat(6, 1fr);
  gap:                   2px;
}

.vendor-logo {
  background:     var(--gray3);
  padding:        28px 20px;
  font-size:      15px;
  font-weight:    500;
  color:          rgba(255, 255, 255, 0.35);
  letter-spacing: 0.06em;
  text-align:     center;
  transition:     color 0.25s, background 0.25s;
  white-space:    nowrap;
  position:       relative;
  overflow:       hidden;
}
.vendor-logo::before {
  content:          '';
  position:         absolute;
  bottom: 0; left: 0; right: 0;
  height:           2px;
  background:       var(--accent);
  transform:        scaleX(0);
  transition:       transform 0.3s ease;
}
.vendor-logo:hover                  { color: rgba(255, 255, 255, 0.9); background: rgba(0, 200, 255, 0.05); }
.vendor-logo:hover::before          { transform: scaleX(1); }

/* =============================================================
   АДАПТИВ
   ============================================================= */
@media (max-width: 1024px) {
  .directions-header   { flex-direction: column; align-items: flex-start; gap: 20px; }
  .directions-desc     { text-align: left; max-width: 100%; }
  .trust-inner         { grid-template-columns: 1fr; gap: 48px; }
  .trust-vendors-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .trust-vendors-desc  { text-align: left; max-width: 100%; }
  .vendors-row         { grid-template-columns: repeat(3, 1fr); }
  .dir-cards           { grid-template-columns: 1fr; }
  .dir-card            { height: 380px; }
}

@media (max-width: 768px) {
  .hero                { padding-bottom: 60px; }
  .hero-title          { font-size: clamp(64px, 16vw, 100px); }
  .hero-sub            { font-size: 15px; }
  .hero-actions        { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-scroll         { display: none; }

  .directions-header   { margin-bottom: 48px; }
  .dir-card            { height: 320px; }
  .dir-card-content    { padding: 24px; }
  .dir-card-title      { font-size: 28px; }

  .trust-stats         { grid-template-columns: 1fr; }
  .trust-stat          { padding: 24px; }
  .trust-stat-num      { font-size: 40px; }

  .trust-vendors       { margin-top: 60px; padding-top: 48px; }
  .vendors-row         { grid-template-columns: repeat(2, 1fr); }
  .vendor-logo         { white-space: normal; font-size: 13px; padding: 20px 12px; }
}

@media (max-width: 480px) {
  .vendors-row { grid-template-columns: 1fr 1fr; }
}
