:root{
  --bg:#ffffff;
  --brand:#003399;
  --link:#0063be;
  --text:#262b38;
  --max:1120px;
  --r:16px;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:"Open Sans", Arial, Helvetica, "Liberation Sans", sans-serif;
  color:var(--text);
  background:var(--bg);
}

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

a {
  font-weight: 700;
  text-decoration:none;
}

p{
  font-size:16px;
  line-height:1.6;
}

h2{
  font-size:26px;
  font-weight:400;
  color:var(--brand);
  margin-top: 40px;
}

h3{
  font-size:22px;
  font-weight:600;
  margin: 0;
  padding-bottom: 20px;
}

h4{
  margin-top: 40px;
}



/* HEADER */
.funding-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:24px 0;
}

.funding-left,
.funding-right{
  display:flex;
  align-items:center;
}

.eu-flag{
  height:56px;
  border-radius:0;
  flex:0 0 auto;
  display:block;
  width: auto;
}

.funding-right img{
  height:48px;
  display:block;
}



/* HERO */
.hero{
  padding:80px 0;
  background-image:url("img/battery.jpg");
  background-position:center;
  background-repeat:no-repeat;
  background-color:#cdd5ee;
}

.hero-wrap{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
}

.hero-text h1{
  font-size:clamp(30px,5vw,40px);
  line-height:1.2;
  margin:0 0 40px;
  font-weight:500;
}

.hero-text p{
  font-size:18px;
  color:var(--text);
  max-width:540px;
}

.fundal{
  padding:40px 0;
  background:#f3f6fc;
}

/* TABS */
.tabs-nav{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:0;
  padding-bottom:20px;
  border-bottom:1px solid var(--brand);
}

.tab-link{
  appearance:none;
  border:1px solid var(--brand);
  background:#fff;
  color:var(--brand);
  padding:12px 22px;
  min-height:52px;
  border-radius:8px;
  font-size:16px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  display:inline-flex;
  align-items:center;
}

.tab-link:hover{
  background:#fff;
}

.tab-link.active{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
  box-shadow:0 4px 12px rgba(31, 60, 136, .14);
}

.tabs-panels{
  padding-top:20px;
  position:relative;
}

.tab-content{
  display:none;
}

.tab-content.active{
  display:block;
}

.tab-content p{
  margin:0 0 14px;
  color:var(--text);
  font-size:16px;
  line-height:1.6;
}

.tab-content ul{
  margin:0 0 14px;
}

.tab-content li{
  margin-bottom:8px;
  color:var(--text);
  line-height:1.6;
}

.project-summary{
  padding:40px 0;
  border-bottom:1px solid var(--brand);
}

.project-summary-wrap{
  align-items:center;
}

.project-summary-image img{
  width:100%;
  display:block;
  border-radius:8px;
}



/* CONTENT */
.eu-list{
  list-style:none;
  padding:0;
}

.eu-list li{
  position:relative;
  padding-left:16px;
  margin-bottom:12px;
  line-height:1.6;
  font-size:16px;
}

.eu-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:9px;
  width:6px;
  height:6px;
  background:var(--text);
  border-radius:50%;
}

/* GRID */
.three-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:30px;
}

/* CONTACT */
.contact-section{
  padding:20px 0;
}

.contact-bar{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items:top;
  font-size:16px;
  color:var(--text);
}

.contact-item{
  white-space: nowrap;
}

.contact-item:not(:last-child)::after{
  content:"|";
  margin-left:20px;
  color:var(--text);
}

.contact-bar a{
  position:relative;
  display:inline-block;
  color:var(--link);
  text-decoration:none;
  line-height:1.6;
}

.contact-bar a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:100%;
  height:1px;
  background:#fff;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
}

.contact-bar a:hover::after{
  transform:scaleX(1);
}



/* FOOTER */
footer{
  background:#f3f6fc;
  padding:40px 0;
  color:var(--text);
  font-size:16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.footer-wrap{
  display:flex;
  justify-content:space-between;
  align-items:top;
  gap:20px;
  flex-wrap:wrap;
}

.footer-text{
  max-width:700px;
  line-height:1.6;
  padding-bottom: 20px;
}

.footer-link{
  color:var(--link);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:border-color .2s ease;
}

.footer-link:hover{
  border-bottom:1px solid var(--link);
}



/* RESPONSIVE */
@media (max-width:820px){
  
  .funding-row{
    padding:16px 0;
    gap:12px;
  }
  
  .eu-flag{
    height:44px;
  }

  .funding-right img{
    height:38px;
  }
}

@media (max-width:640px){
  .tabs-nav{
    display:flex;
    flex-direction:column;
    gap:10px;
  }

  .tab-link{
    width:100%;
    justify-content:center;
  }

  .tabs-panels{
    max-width:100%;
  }

  .funding-right{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  }

  .logo1 {
    padding-bottom: 20px;
  }
}

@media (min-width:768px){
  .three-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (min-width:900px){
  .hero-wrap{
    grid-template-columns:1.1fr .9fr;
  }
}

@media (min-width:1024px){
  .three-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width:600px){
  .funding-left{
    gap:10px;
  }
}

/* CONTACT MOBIL */
@media (max-width: 768px){
  .contact-bar{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .contact-item{
    white-space: normal;
  }

  .contact-item::after{
    content:none !important;
  }

  .footer-link{
    padding-top: 20px;
  }
}

@media (min-width:900px){
  .project-summary-wrap{
    grid-template-columns:1.5fr 1fr;
  }
}