:root {
  color-scheme: light;
  font-family: "Open Sans", Arial, sans-serif;
  color: #1f2936;
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #c60027; outline-offset: 5px; }
.site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto 44px;
  align-items: center;
  gap: 10px;
  width: calc(100% - clamp(10px, 2.2vw, 32px) * 2);
  max-width: 1600px;
  min-height: clamp(110px, 9vw, 150px);
  margin-inline: auto;
  padding: 24px clamp(24px, 2.8vw, 40px);
  background: #eff3f7;
  border-radius: 0 0 clamp(28px, 3vw, 50px) clamp(28px, 3vw, 50px);
}
.brand { display: block; width: min(100%, 383px); margin-right: 24px; }
.brand img { width: 100%; height: auto; }
.contacts { display: flex; align-items: center; gap: 2px; }
.icon-link { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.icon-link img { width: 40px; height: 40px; }
.icon-link:hover { opacity: .8; }
.menu { position: relative; }
.menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: #e0e7ee; }
.menu summary img { width: 31px; height: 23px; }
.menu-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 10;
  display: grid;
  width: min(280px, calc(100vw - 52px));
  padding: 12px;
  background: #eff3f7;
  border: 1px solid #dce5ed;
  border-radius: 24px;
  box-shadow: 0 12px 32px #1f293614;
}
.menu-panel a { padding: 12px; font-size: 16px; border-radius: 12px; }
.menu-panel a:hover { background: #e0e7ee; }
@media (max-width: 620px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-areas: "brand menu" "contacts contacts";
    gap: 12px;
    padding: 18px 20px;
  }
  .brand { grid-area: brand; max-width: 300px; margin: 0; }
  .contacts { grid-area: contacts; justify-self: center; }
  .menu { grid-area: menu; }
  .menu-panel { top: calc(100% + 70px); }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 16px; gap: 10px; }
}
