/* ===== ГЛОБАЛЬНЫЕ ===== */
* {
  box-sizing: border-box;
}

:root {
  --navy: #172b55;
  --white: #fff;
  --container: min(1280px, calc(100vw - 96px));
  --gold: #f5b81b;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #111b31;
  color: var(--white);
}

/* ===== HERO (НОВАЯ ВЕРСИЯ — БЕЗ FIXED) ===== */
.hero {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 20, 43, .82) 0%, rgba(8, 20, 43, .62) 52%, rgba(8, 20, 43, .40) 100%),
    url("./hero_background.webp") center / cover no-repeat;
  position: relative;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 18, 40, .35), transparent 30%),
    linear-gradient(0deg, rgba(5, 16, 35, .34), transparent 42%);
  pointer-events: none;
}

/* ===== ШАПКА (ЛОГОТИП + МЕТА) ===== */
.hero__top {
  position: relative;
  width: 100%;
  max-width: 950px;
  padding: clamp(20px, 5vh, 42px) 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 40px);
  z-index: 2;
}

.hero__logo {
  width: clamp(140px, 24vw, 370px);
  height: auto;
  filter: brightness(0) invert(1);
  display: block;
}

.hero__meta {
  text-align: right;
  max-width: 420px;
  padding-top: 2px;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .9);
}

.hero__meta strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ===== КОНТЕЙНЕР ДЛЯ ЦЕНТРИРОВАНИЯ ТЕКСТА ===== */
.hero__inner {
  width: 100%;
  max-width: 950px;
  padding: 0 20px clamp(30px, 8vh, 72px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== КОНТЕНТ (ЗАГОЛОВОК) ===== */
.hero__content {
  width: 100%;
  margin-top: 40px;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw + 1rem, 8.25rem);
  line-height: .91;
  font-weight: 900;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-wrap: balance;
  word-break: break-word;
}

.hero__subtitle {
  margin: clamp(20px, 5vw, 76px) 0 0;
  max-width: 900px;
  font-size: clamp(18px, 3.2vw, 52px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.hero__accent {
  display: inline-block;
  margin-top: 34px;
  width: 78px;
  height: 4px;
  background: #fff;
  opacity: .9;
}

/* ===== КНОПКИ ===== */
.hero__btn-wrap {
  margin-top: 48px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 42px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: #0b1a33;
  box-shadow: 0 4px 24px rgba(245, 184, 27, 0.35);
}

.btn-primary:hover {
  background: #ffd04a;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(245, 184, 27, 0.5);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-3px);
}

/* ===== СКРОЛЛ-КОНТЕНТ ===== */
.scroll-content {
  position: relative;
  z-index: 1;
  margin-top: -40px;
  background: #f4f7fc;
  color: #1a2a3a;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.4);
  padding-top: 40px;
}

/* ===== ОСТАЛЬНЫЕ БЛОКИ (из вашей страницы) ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 50px 0;
  border-bottom: 1px solid #e2e8f0;
}

section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #0b1a33;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.section-title.centered {
  text-align: center;
}

.section-title.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.gallery-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d0dce8;
  color: #8899aa;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  border-color: var(--gold);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== КЛИЕНТЫ (логотипы) ===== */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.client-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 20px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e9eef3;
  transition: 0.2s;
  text-align: center;
}

.client-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.client-logo {
  width: 120px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.client-name {
  font-weight: 500;
  font-size: 0.85rem;
  color: #4a6a8a;
  line-height: 1.3;
}

/* ===== ФУТЕР ===== */
.footer {
  background: #0b1a33;
  color: #d0ddee;
  padding: 35px 0;
  margin-top: 10px;
  border-radius: 0 0 40px 40px;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer a {
  color: #a0bada;
  text-decoration: none;
}

.footer a:hover {
  color: var(--gold);
}

.footer .copy {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1f3450;
  font-size: 0.9rem;
  color: #7a8fa8;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 800px) {
  .hero__meta {
    display: none;
  }
  
  .hero__logo {
    width: 200px;
  }
  
  .hero__top {
    padding-top: 16px;
  }
  
  .hero__title {
    font-size: clamp(2rem, 10vw, 4.5rem);
  }
  
  .hero__subtitle {
    font-size: clamp(1rem, 4vw, 2rem);
  }
  
  .scroll-content {
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 600px) {
  .hero__logo {
    width: 150px;
  }
  
  .hero__title {
    font-size: clamp(1.5rem, 8vw, 3rem);
  }
  
  .hero__subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1.5rem);
  }
  
  .hero__btn-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    text-align: center;
  }
  
  .footer .container {
    grid-template-columns: 1fr;
  }
  
  .footer {
    border-radius: 0;
  }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ВАШИХ БЛОКОВ ===== */
.competence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 10px;
}

.competence-item {
  background: white;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-left: 4px solid var(--gold);
  transition: 0.2s;
}

.competence-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.col-list {
  list-style: none;
  padding: 0;
}

.col-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid #edf2f7;
}

.col-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.col-list li:last-child {
  border-bottom: none;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 5px;
}

.badge-list .badge {
  background: #e6edf6;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0b1a33;
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.equip-item {
  background: white;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
  border: 1px solid #e9eef3;
  transition: 0.15s;
}

.equip-item:hover {
  border-color: #c0d0e0;
}

.equip-item strong {
  color: #0b1a33;
}

.tech-card {
  background: white;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
  border-left: 5px solid #1a3a5c;
}

.tech-card h4 {
  font-size: 1.25rem;
  color: #0b1a33;
  margin-bottom: 6px;
}

.tech-card .sub {
  color: #3a5a7a;
  font-weight: 500;
}

.tech-card .params {
  margin-top: 8px;
  font-size: 0.95rem;
  background: #f8faff;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e9eef3;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.country-card {
  background: white;
  padding: 18px 14px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e9eef3;
}

.country-card .country {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0b1a33;
}

.country-card .detail {
  font-size: 0.85rem;
  color: #3a5a7a;
  margin-top: 4px;
}

.prod-list {
  list-style: none;
  padding: 0;
}

.prod-list li {
  padding: 6px 0 6px 24px;
  position: relative;
}

.prod-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
}