@font-face {
  font-family: "DM Sans";
  src: url("/wp-content/themes/tomhello/assets/fonts/DM-Sans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

.header {
  --blue: #a51f2d;
  width: min(1200px, calc(100% - 96px));
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #17191c;
  font: 16px/1.75 "DM Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.header a { color: inherit; text-decoration: none; }
.header .brand { display: flex; gap: 11px; align-items: center; font-size: 21px; font-weight: 700; letter-spacing: -.04em; }
.header .cat { width: 35px; height: 35px; color: var(--blue); }
.header .menu { display: none; background: none; border: 0; color: inherit; font-size: 25px; }
.header .nav { display: flex; align-items: center; gap: 38px; font-size: 14px; }
.header .contact { border: 1px solid #b8c9d7; border-radius: 99px; padding: 8px 21px; }
.header .language-switch { margin-inline-start: 12px; font-size: 13px; white-space: nowrap; }
.header .tools-nav { position: relative; }
.header summary { list-style: none; cursor: pointer; }
.header summary::-webkit-details-marker { display: none; }
.header summary::after { content: ""; display: inline-block; width: .4em; height: .4em; margin: 0 .15em .2em .55em; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.header details[open] summary::after { transform: rotate(225deg); }
.header .tools-links { position: absolute; z-index: 5; top: 100%; left: 0; min-width: max-content; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; box-shadow: 0 8px 20px #0001; }
.header .tools-links a { display: block; padding: 8px 12px; }
.header .nav a:hover, .header summary, .header a[aria-current="page"] { color: var(--blue); }

@media (max-width: 800px) {
  .header { width: calc(100% - 40px); height: 72px; }
  .header .menu { display: block; margin-inline-start: auto; cursor: pointer; }
  .header .language-switch { margin-inline-start: 14px; }
  .header .nav { display: none; position: absolute; z-index: 5; inset: 72px 0 auto; flex-direction: column; align-items: flex-start; padding: 20px; background: #fff; box-shadow: 0 12px 20px #20354b20; }
  .header .nav.open { display: flex; }
  .header .tools-links { position: static; margin-top: 6px; padding: 0 0 0 8px; border: 0; box-shadow: none; }
}
