@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary:   #476179;
  --secondary: #54595F;
  --text:      #7E7E7E;
  --accent:    #44CFCB;
  --bg-light:  #F5F4F8;
  --bg-dark:   #27232F;
  --btn-bg:    #EEEDF0;
  --white:     #ffffff;
  --max-w:     1140px;
  --hh:        72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 22px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; }
h1 { font-size: 52px; color: var(--white); }
h2 { font-size: 48px; color: var(--primary); }
h3 { font-size: 28px; color: var(--primary); }
p  { font-size: 18px; line-height: 1.75; }
a  { text-decoration: none; color: inherit; }
img { display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 38px;
  font-family: 'Lexend Deca', sans-serif;
  font-size: 20px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #33b8b4; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* ── Section base ── */
section { padding: 110px 0; }

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  text-align: center;
  margin-bottom: 64px;
}
.section-title h2 { margin-bottom: 16px; }
.section-title p { font-size: 18px; max-width: 700px; margin: 0 auto; color: var(--secondary); }

/* ═══════════════════════════════
   HEADER
═══════════════════════════════ */
header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--hh);
  z-index: 9999;
  background: rgba(39, 35, 47, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 4px rgba(80, 112, 142, 0.19);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.logo img { height: 34px; }

nav { display: flex; }
nav ul { display: flex; gap: 32px; list-style: none; }
nav a { font-size: 17px; color: rgba(255,255,255,0.85); transition: color 0.2s; }
nav a:hover { color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 24px; }

.lang-switcher { display: flex; gap: 6px; align-items: center; }
.lang-switcher a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.lang-switcher a:hover, .lang-switcher a.active { color: var(--accent); }
.lang-switcher .sep { color: rgba(255,255,255,0.2); font-size: 11px; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--hh);
  inset-inline: 0;
  background: var(--bg-dark);
  padding: 16px 40px 32px;
  z-index: 9998;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav a { display: block; padding: 14px 0; color: rgba(255,255,255,0.85); font-size: 18px; }
.mobile-lang { display: flex; gap: 12px; padding-top: 20px; }
.mobile-lang a { font-size: 14px; color: rgba(255,255,255,0.5); }
.mobile-lang a.active { color: var(--accent); }

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 290px 0 220px;
  background: var(--bg-dark) url('../assets/img/background-video.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(39,35,47,0.85) 0%, rgba(71,97,121,0.6) 100%);
  z-index: 1;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

/* ── YouTube lightbox ── */
.yt-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s;
  font-family: 'Lexend Deca', sans-serif;
}
.yt-trigger:hover { background: rgba(255,255,255,0.2); }
.yt-trigger svg { flex-shrink: 0; }

.yt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.yt-overlay.open { display: flex; }
.yt-box {
  position: relative;
  width: 90vw;
  max-width: 900px;
  aspect-ratio: 16/9;
}
.yt-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}
.yt-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.hero-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  animation: heroFade 0.8s ease both;
  animation-delay: 0.1s;
}
.hero-content h1 {
  margin-bottom: 18px;
  animation: heroSlide 0.8s ease both;
  animation-delay: 0.25s;
}
.hero-sub {
  font-size: 24px;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
  animation: heroSlide 0.8s ease both;
  animation-delay: 0.4s;
}
.hero-body {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
  max-width: 580px;
  line-height: 1.75;
  animation: heroFade 0.8s ease both;
  animation-delay: 0.55s;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: heroFade 0.8s ease both;
  animation-delay: 0.7s;
}

@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroSlide {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════
   EXPERTISES
═══════════════════════════════ */
#expertises { background: var(--white); }

.expertise-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 72px;
}
.expertise-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  transition: all 0.22s;
  cursor: default;
}
.expertise-card:hover { background: var(--accent); color: var(--white); }
.expertise-card:hover svg { stroke: var(--white); fill: none; }
.expertise-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.expertise-icon svg { width: 100%; height: 100%; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

/* ═══════════════════════════════
   METHODOLOGY
═══════════════════════════════ */
#methodology { background: var(--bg-dark); }
#methodology .section-title h2 { color: var(--white); }
#methodology .section-title p { color: rgba(255,255,255,0.6); }

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.method-card {
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 42px 36px;
  border-top: 3px solid var(--accent);
  transition: background 0.25s;
}
.method-card:hover { background: rgba(255,255,255,0.09); }
.method-num {
  font-size: 64px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 20px;
}
.method-card h3 { color: var(--white); font-size: 21px; margin-bottom: 16px; }
.method-card p  { color: rgba(255,255,255,0.6); font-size: 16px; line-height: 1.75; }

/* ═══════════════════════════════
   TEAM
═══════════════════════════════ */
#team { background: var(--bg-light); }

.team-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.team-stat-block { margin-bottom: 32px; }
.team-stat {
  font-size: 64px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.team-stat-label { font-size: 16px; color: var(--secondary); margin-top: 4px; }
.team-text h2 { margin-bottom: 24px; }
.team-text p  { margin-bottom: 20px; font-size: 17px; }

.team-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.team-photos .photo-main {
  grid-column: 1 / -1;
  border-radius: 10px;
  overflow: hidden;
  height: 260px;
}
.team-photos .photo-main img { width: 100%; height: 100%; object-fit: cover; }
.team-photos .photo-sub { border-radius: 10px; overflow: hidden; height: 200px; }
.team-photos .photo-sub img { width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════════════════════
   LAB
═══════════════════════════════ */
#lab {
  background: var(--bg-dark) url('../assets/img/background-2.jpg') center/cover no-repeat;
  position: relative;
  text-align: center;
}
#lab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(39, 35, 47, 0.82);
}
#lab .container    { position: relative; z-index: 1; max-width: 760px; }
#lab h2            { color: var(--white); margin-bottom: 20px; }
#lab p             { color: rgba(255,255,255,0.65); font-size: 18px; max-width: 600px; margin: 0 auto; }
#lab .section-label { margin-bottom: 12px; }

/* ═══════════════════════════════
   PARTNERS
═══════════════════════════════ */
#partners { background: var(--white); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px 56px;
  align-items: center;
  justify-items: center;
}
.partners-grid img {
  max-height: 48px;
  max-width: 130px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: all 0.3s;
}
.partners-grid img:hover { filter: grayscale(0) opacity(1); }

/* ═══════════════════════════════
   CONTACT
═══════════════════════════════ */
#contact {
  background: var(--primary);
  text-align: center;
  padding: 120px 0;
}
#contact h2 { color: var(--white); margin-bottom: 6px; }
.contact-shout {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
}
#contact > .container > p { color: rgba(255,255,255,0.72); margin-bottom: 44px; }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
footer {
  background: var(--bg-dark);
  padding: 64px 0 32px;
  color: rgba(255,255,255,0.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 30px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 240px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: all 0.22s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }

.footer-office h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 14px;
}
.footer-office address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.85;
}
.footer-office strong { color: rgba(255,255,255,0.85); font-weight: 600; display: block; margin-bottom: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ═══════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════ */
@media (max-width: 1024px) {
  h1 { font-size: 42px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
  .section-title p { font-size: 16px; }

  #hero { padding: 200px 0 160px; }

  .method-grid { grid-template-columns: 1fr; gap: 20px; }
  .method-card { padding: 32px 28px; }

  .team-layout { gap: 48px; }

  .partners-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════ */
@media (max-width: 767px) {
  body { font-size: 16px; }
  h1 { font-size: 29px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  section { padding: 64px 0; }
  .container { padding: 0 18px; }
  .section-title { margin-bottom: 40px; }
  .section-title p { font-size: 15px; }

  nav, .header-right { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  #hero { padding: 140px 0 90px; }
  .hero-video video { display: none; } /* fallback to bg-image on mobile */
  .hero-tag { font-size: 11px; letter-spacing: 2.5px; }
  .hero-sub { font-size: 17px; }
  .hero-body { font-size: 15px; }
  .hero-ctas { flex-direction: column; gap: 12px; }
  .hero-ctas .btn { width: 100%; text-align: center; }

  /* Expertises */
  .expertise-grid { gap: 10px; }
  .expertise-card {
    width: calc(50% - 5px);
    justify-content: center;
    font-size: 13px;
    padding: 12px 14px;
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Methodology */
  .method-grid { grid-template-columns: 1fr; gap: 16px; }
  .method-card { padding: 28px 24px; }
  .method-num { font-size: 48px; }

  /* Team */
  .team-layout { grid-template-columns: 1fr; gap: 32px; }
  .team-photos { grid-template-columns: 1fr 1fr; }
  .team-photos .photo-main { height: 180px; }
  .team-photos .photo-sub { height: 150px; }
  .team-stat { font-size: 48px; }

  /* Partners */
  .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 28px; }
  .partners-grid img { max-height: 36px; max-width: 100px; }

  /* Contact */
  .contact-shout { font-size: 26px; }
  #contact p { font-size: 15px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Buttons */
  .btn { font-size: 16px; padding: 12px 26px; }

  /* Lightbox */
  .yt-box { width: 95vw; }
  .yt-close { top: -36px; font-size: 28px; }
}
