.cnc-header {
  --cnc-ink: #153b53;
  --cnc-blue: #006c9b;
  --cnc-store-link: #0170b9;
  --cnc-line: #dce7ed;
  --cnc-tint: #f1f6f9;
  font-family: "Segoe UI", Arial, sans-serif;
}

.cnc-header {
  border-bottom: 1px solid var(--cnc-line);
  background: #fff;
}

.cnc-header-inner {
  width: min(1200px,calc(100% - 64px));
  margin-inline: auto;
}

.cnc-header-inner {
  display: grid;
  grid-template-columns: max-content minmax(160px, 1fr) max-content;
  align-items: center;
  column-gap: clamp(12px, 3vw, 36px);
}

.cnc-header-search {
  display: flex;
  width: min(100%, 460px);
  gap: 4px;
  padding: 3px;
  margin: 0;
  justify-self: center;
  border: 1px solid #b6cad6;
  border-radius: 8px;
  background: white;
}

.cnc-header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 6px 9px;
  border: 0;
  border-radius: 5px;
  background: white;
  color: var(--cnc-ink);
  font-size: 14px;
}

.cnc-header-search button {
  margin: 0;
  padding: 7px 13px;
  border: 0;
  border-radius: 5px;
  background: var(--cnc-blue);
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.cnc-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  white-space: nowrap;
}

.cnc-header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cnc-store-link);
  font-size: 15px;
  font-weight: 650;
}

.cnc-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cnc-ink);
  font-size: .85rem;
  font-weight: 650;
  text-decoration: none;
}

.cnc-logo img { width: 160px; max-width: 160px; height: auto; object-fit: contain; }

.cnc-logo span {
  border-left: 1px solid var(--cnc-line);
  padding-left: 12px;
}

.cnc-nav {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  align-items: center;
  gap: clamp(14px,3vw,36px);
  border-top: 1px solid var(--cnc-line);
}

.cnc-nav a,.cnc-cart {
  padding: 10px 0;
  text-decoration: none;
  color: var(--cnc-ink);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
}

.cnc-nav a:hover,.cnc-cart:hover {
  text-decoration: underline;
}

.cnc-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cnc-store-link);
  font-size: 15px;
  font-weight: 400;
}

.cnc-nav a[aria-current="page"] {
  color: var(--cnc-ink);
  text-decoration: underline;
}

.cnc-cart-count { display:inline-grid; min-width:24px; min-height:24px; place-content:center; border-radius:50%; background:var(--cnc-tint); margin-left:3px; font-size:.75rem; line-height:1; }

@media(max-width:700px) {
  .cnc-header-inner {
    width: calc(100% - 32px);
  }

  .cnc-header-inner {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 2px 12px;
    padding: 8px 0;
  }

  .cnc-header-actions {
    grid-row: 1;
    grid-column: 2;
  }

  .cnc-header-search {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
  }

  .cnc-nav {
    grid-row: 3;
    grid-column: 1/-1;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 8px;
    border-top: 0;
  }

  .cnc-nav a {
    font-size: clamp(12px, 3.5vw, 14px);
  }
}

@media(max-width:420px) {
  .cnc-header-inner {
    width: calc(100% - 24px);
  }

  .cnc-logo img {
    width: 86px;
  }

  .cnc-logo {
    font-size: .8rem;
    gap: 8px;
  }

  .cnc-logo span {
    padding-left: 7px;
  }

  .cnc-header-phone, .cnc-cart {
    font-size: 13px;
  }
}

