.coi-header {
  background: #fff;
  padding: 20px 0 12px;
  position: relative;
  z-index: 50;
}

.coi-header__inner {
  display: grid;
  /*grid-template-columns: 150px 150px 1fr auto;*/
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.coi-brand{
    text-transform: uppercase;
    color: #51927a;
    font-weight: 800;
    max-width: 210px;
    line-height: 1.15;
}

.coi-logo {
  display: flex;
  align-items: center;
}

.coi-logo img {
  display: block;
  height: 62px;
  width: auto;
}

#block-coikonkurs-main-menu>ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coi-header__nav a {
  color: #173768;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.coi-header__nav a:hover,
.coi-header__nav a.is-active {
  color: #ff7a00;
}

.coi-header__actions {
  display: flex;
  justify-content: flex-end;
}

/* Burger */
.coi-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #f3f7f5;
  border-radius: 10px;
  cursor: pointer;
}

.coi-burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #173768;
  border-radius: 2px;
  transition: 0.2s ease;
}

/* Mobile */
@media (max-width: 768px) {
  .coi-header {
    padding: 12px 0;
  }

  .coi-header__inner {
    grid-template-columns: 150px 1fr auto;
    gap: 12px;
  }

  .coi-logo img {
    height: 46px;
  }

  .coi-burger {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }

  .coi-header__actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }
  
  
    .coi-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 10px 12px;
  }

  .coi-logo {
    grid-column: 1;
    grid-row: 1;
  }

  .coi-brand {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    font-size: 14px;
    line-height: 1.15;
  }

  .coi-burger {
    grid-column: 3;
    grid-row: 1;
  }

  .coi-header__actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: stretch;
  }

  .coi-header__actions .coi-btn {
    width: 100%;
  }

  .coi-header__nav {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  

  .coi-header__nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 12px;
  }

  .coi-header__nav.is-open {
    display: block;
  }

  .coi-header__nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #f6fbf8;
    border-radius: 16px;
  }

  .coi-header__nav li {
    border-bottom: 1px solid #dfeee7;
  }

  .coi-header__nav li:last-child {
    border-bottom: 0;
  }

  .coi-header__nav a {
    display: block;
    padding: 13px 8px;
    font-size: 15px;
  }

  .coi-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .coi-burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .coi-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 420px) {
  .coi-logo img {
    height: 38px;
  }

  .coi-brand {
    font-size: 13px;
  }
}


