:root{
  --blue: #0e2e63;
  --blue2:#0b2550;
  --bg:#ffffff;
  --muted:#6b7280;
  --card:#f3f4f6;
  --radius: 18px;
  --max: 1100px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  color:#111827;
  background: var(--bg);
}

.container{
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* NAV */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand__img{
  height:54px;
  width:300px;
}

.nav{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}

.nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:15px;
  padding-bottom:7px;
}

.nav__menu{
  display:flex;
  gap:10px;
  margin-left:30px;
}

.nav__menu a{
  text-decoration:none;
  color:#111;
  font-weight:600;
  transition: color 0.2s ease;
  white-space:nowrap;
}

.nav__menu a:hover{
  color:#0e2e63;
}

.nav__menu a:not(:last-child)::after{
  content:"|";
  margin-left:10px;
  margin-right:4px;
  color:black;
}

/* PAGE HEADER */
.pagebar{
  background: var(--blue);
  color:#fff;
  padding: 22px 0;
}
.pagebar__inner{
  text-align:center;
}
.pagebar h1{
  margin:0;
  font-size: 23px;
  font-weight: 700;
}
.pagebar p{
  margin:4px 0 0;
  font-size: 16px;
  opacity: .9;
  font-weight: 600;
}

/* CASE PAGE */
.case{
  padding:26px 0 80px;
}

/* FILTERS */
.case__filters{
  width:min(100%, 1100px);
  margin:0 auto 22px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

.select-wrap{
  position:relative;
}

.select-wrap select{
  width:100%;
  border:0;
  background:var(--card);
  padding:14px 42px 14px 18px;
  border-radius:12px;
  font-size:14px;
  font-weight:700;
  outline:none;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
}

.select-wrap::after{
  content:"";
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-30%);
  width:0;
  height:0;
  border-left:7px solid transparent;
  border-right:7px solid transparent;
  border-top:9px solid #111;
  pointer-events:none;
}

/* GRID */
.case__grid{
  width:min(100%, 1100px);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
}

/* CARD - NO BOX, JUST WHITE BACKGROUND */
.case-card{
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  min-height: 280px;
  margin-bottom: 26px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.case-card:last-child{
  border-bottom: none;
}

.case-card__inner{
  display:flex;
  gap:24px;
  align-items:flex-start;
}

/* PICTURE CARD - NO BACKGROUND BOX, JUST THE IMAGE */
.case-card__imgwrap{
  width:180px;
  height:180px;
  background: transparent;
  border-radius: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: none;
  flex-shrink:0;
}

.case-card__img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}

.case-card__content{
  flex:1;
  display:flex;
  flex-direction:column;
}

.case-card__title{
  margin:0 0 10px;
  font-size:28px;
  font-weight:800;
  line-height:1.1;
  color:#111827;
}

.case-card__text{
  margin:0 0 22px;
  font-size:15px;
  line-height:1.65;
  color:#374151;
}

.case-card__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self: flex-end;
  min-width:135px;
  height:42px;
  padding:0 20px;
  background:var(--blue);
  color:#fff;
  text-decoration:none;
  border-radius:10px;
  font-weight:800;
  font-size:14px;
  transition:0.2s ease;
}

.case-card__btn:hover{
  background:var(--blue2);
}

/* FOOTER */
.footer{
  background:#0e2e63;
  color:#fff;
  padding:40px 0 0;
}

.footer__grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr 1fr;
  gap:50px;
  padding-bottom:45px;
}

.footer__title{
  margin:0 0 18px;
  font-size:20px;
  font-weight:700;
}

.footer__text{
  margin:0;
  max-width:280px;
  line-height:1.7;
  color:rgba(255,255,255,0.8);
}

.footer__col{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.footer__link{
  text-decoration:none;
  color:rgba(255,255,255,0.8);
  transition: color 0.2s ease;
}

.footer__link:hover{
  color:#ffffff;
}

.footer__bottom{
  border-top:1px solid rgba(255,255,255,0.12);
  padding:18px 0;
}

.footer__bottom-inner{
  display:flex;
  justify-content:center;
  text-align:center;
  color:rgba(255,255,255,0.65);
  font-size:14px;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .case__filters{
    grid-template-columns:1fr;
  }

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

@media (max-width: 650px){
  .nav__menu{
    flex-wrap:wrap;
    justify-content:flex-end;
  }

  .case-card__inner{
    flex-direction:column;
  }

  .case-card__imgwrap{
    width:150px;
    height:150px;
  }

  .case-card__title{
    font-size:24px;
  }
}

.case-card__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.case-card__tech {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.tech-btn {
  width: 40px;
  height: 40px;
  background: #e5e7eb;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tech-btn:hover {
  background: var(--blue);
}

.tech-icon {
  width: 20px;
  height: 20px;
}

.tech-btn:hover .tech-icon {
  filter: brightness(0) invert(1);
}

.case-card__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.case-card__tech {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.tech-btn {
  width: 40px;
  height: 40px;
  background: #e5e7eb;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tech-btn:hover {
  background: var(--blue);
}

.tech-icon {
  width: 20px;
  height: 20px;
}

.tech-btn:hover .tech-icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 650px) {
  .case-card__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .case-card__left {
    align-items: center;
  }
  
  .case-card__tech {
    justify-content: center;
  }
}

.tech-icon {
  width: 20px;
  height: 20px;
  background-color: transparent;
  mix-blend-mode: multiply;
}


.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.case-card__content {
  position: relative;
  padding-bottom: 60px;
  flex: 1;
}

.case-card__text {
  flex: 1;
}

.case-card__btn {
  position: absolute;
  bottom: 0;
  right: 0;
  align-self: auto;
}

.case-card__left {
  position: static;
}

.case-card__left .case-card__tech {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 10;
}

@media (max-width: 650px) {
  .case-card__content {
    padding-bottom: 110px;
  }
  
  .case-card__left .case-card__tech {
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .case-card__btn {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 90%;
  }
}

