:root {
  --tommy-header-height: 80px;
  --tommy-header-bg: rgba(255, 255, 255, .95);
  --tommy-header-panel-bg: #fff;
  --tommy-header-text: #173d35;
  --tommy-header-muted: #6d7672;
  --tommy-header-line: rgba(23, 61, 53, .16);
  --tommy-header-accent: #b08a45;
  --tommy-header-phone-bg: #b08a45;
  --tommy-header-phone-text: #fff;
  --tommy-header-contact-bg: #8a2d3a;
  --tommy-header-contact-text: #fff;
  --tommy-header-shadow: 0 8px 24px rgba(25, 42, 37, .08);
}

html.tommy-menu-open {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

.tommy-header-region {
  position: relative;
  z-index: 1001;
  height: var(--tommy-header-height);
}

.tommy-header-region ~ [id],
.tommy-header-region ~ * [id] {
  scroll-margin-top: calc(var(--tommy-header-height) + 16px);
}

.tommy-global-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  min-height: var(--tommy-header-height);
  box-sizing: border-box;
  background: var(--tommy-header-bg);
  border-bottom: 1px solid var(--tommy-header-line);
  box-shadow: var(--tommy-header-shadow);
  color: var(--tommy-header-text);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.tommy-global-header__inner {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  align-items: center;
  width: min(1280px, calc(100% - 48px));
  min-height: var(--tommy-header-height);
  margin: 0 auto;
  gap: 32px;
}

.tommy-global-header__brand {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  width: max-content;
  color: var(--tommy-header-text);
  line-height: 1;
  text-decoration: none;
}

.tommy-global-header__brand-name {
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .12em;
}

.tommy-global-header__brand-sub {
  margin-top: 7px;
  color: var(--tommy-header-muted);
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
}

.tommy-global-header__brand:hover,
.tommy-global-header__brand:focus-visible {
  color: var(--tommy-header-accent);
}

.tommy-global-header__right {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  height: var(--tommy-header-height);
  gap: 0;
}

.tommy-global-header__brand--drawer {
  display: none;
}

.tommy-global-header__actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 7px;
}

.tommy-global-header__phone,
.tommy-global-header__contact,
.tommy-global-header__mobile-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 0 0 4px 4px;
  color: var(--tommy-header-phone-text);
  text-decoration: none;
  transition: filter .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tommy-global-header__phone {
  gap: 9px;
  min-width: 172px;
  padding: 7px 14px;
  background: var(--tommy-header-phone-bg);
}

.tommy-global-header__phone-icon,
.tommy-global-header__contact-icon {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.tommy-global-header__phone-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.tommy-global-header__phone strong {
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}

.tommy-global-header__phone small {
  margin-top: 5px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .04em;
  white-space: nowrap;
}

.tommy-global-header__contact {
  gap: 8px;
  min-width: 154px;
  padding: 0 16px;
  background: var(--tommy-header-contact-bg);
  color: var(--tommy-header-contact-text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

.tommy-global-header__phone:hover,
.tommy-global-header__contact:hover,
.tommy-global-header__mobile-contact:hover,
.tommy-global-header__phone:focus-visible,
.tommy-global-header__contact:focus-visible,
.tommy-global-header__mobile-contact:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 5px 14px rgba(23, 61, 53, .14);
  transform: translateY(-1px);
}

.tommy-global-header__nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px clamp(18px, 2.5vw, 34px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.tommy-global-header__nav a {
  position: relative;
  display: inline-block;
  padding: 3px 0;
  color: var(--tommy-header-text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}

.tommy-global-header__nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--tommy-header-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .25s ease;
}

.tommy-global-header__nav a:hover,
.tommy-global-header__nav a:focus-visible {
  color: var(--tommy-header-accent);
}

.tommy-global-header__nav a:hover::after,
.tommy-global-header__nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.tommy-global-header__common {
  display: none;
}

.tommy-global-header__mobile-contact,
.tommy-global-header__toggle,
.tommy-global-header__backdrop {
  display: none;
}

@media screen and (min-width: 783px) {
  body.admin-bar .tommy-global-header {
    top: 32px;
  }

  body.admin-bar .tommy-header-region {
    height: calc(var(--tommy-header-height) + 32px);
  }

  body.admin-bar .tommy-header-region ~ [id],
  body.admin-bar .tommy-header-region ~ * [id] {
    scroll-margin-top: calc(var(--tommy-header-height) + 48px);
  }
}

@media screen and (max-width: 980px) and (min-width: 761px) {
  .tommy-global-header__inner {
    width: min(100% - 32px, 780px);
    gap: 20px;
  }

  .tommy-global-header__nav ul {
    gap: 6px 16px;
  }

  .tommy-global-header__nav a {
    font-size: 11px;
  }

  .tommy-global-header__phone {
    min-width: 156px;
  }

  .tommy-global-header__contact {
    min-width: 140px;
  }
}

@media screen and (max-width: 760px) {
  :root {
    --tommy-header-height: 72px;
  }

  .tommy-global-header__inner {
    display: flex;
    width: calc(100% - 28px);
    min-height: var(--tommy-header-height);
    gap: 10px;
  }

  .tommy-global-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .tommy-global-header__brand {
    max-width: calc(100% - 170px);
  }

  .tommy-global-header__brand-name {
    font-size: 15px;
    letter-spacing: .1em;
  }

  .tommy-global-header__brand-sub {
    margin-top: 5px;
    font-size: 8px;
  }

  .tommy-global-header__right {
    position: fixed;
    z-index: 1003;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: stretch;
    width: min(88vw, 390px);
    min-height: 100vh;
    height: 100vh;
    box-sizing: border-box;
    padding: 22px 24px 32px;
    overflow-y: auto;
    background: var(--tommy-header-panel-bg);
    box-shadow: -12px 0 34px rgba(15, 33, 28, .14);
    justify-content: flex-start;
    gap: 0;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
  }

  .tommy-global-header--open .tommy-global-header__right {
    transform: translateX(0);
    visibility: visible;
  }

  .tommy-global-header__brand--drawer {
    display: inline-flex;
    width: max-content;
    margin: 0 48px 26px 0;
  }

  .tommy-global-header__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
  }

  .tommy-global-header__phone,
  .tommy-global-header__contact {
    min-width: 0;
    width: 100%;
    padding-right: 9px;
    padding-left: 9px;
  }

  .tommy-global-header__phone strong {
    font-size: 11px;
    letter-spacing: 0;
  }

  .tommy-global-header__phone small {
    margin-top: 4px;
    font-size: 8px;
    letter-spacing: 0;
  }

  .tommy-global-header__contact {
    font-size: 11px;
    letter-spacing: 0;
  }

  .tommy-global-header__nav {
    width: 100%;
    margin-top: 24px;
  }

  .tommy-global-header__nav ul {
    display: grid;
    justify-content: stretch;
    gap: 0;
  }

  .tommy-global-header__nav li {
    border-bottom: 1px solid var(--tommy-header-line);
  }

  .tommy-global-header__nav a {
    display: block;
    padding: 15px 0;
    font-size: 15px;
  }

  .tommy-global-header__nav a::after {
    display: none;
  }

  .tommy-global-header__common {
    display: block;
    width: 100%;
    margin-top: 26px;
    padding-top: 0;
    border-top: 0;
  }

  .tommy-global-header__common ul {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .tommy-global-header__common li + li {
    border-top: 0;
  }

  .tommy-global-header__common a {
    display: block;
    padding: 11px 0;
    color: var(--tommy-header-muted);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .03em;
    text-decoration: none;
  }

  .tommy-global-header__common a:hover,
  .tommy-global-header__common a:focus-visible {
    color: var(--tommy-header-accent);
  }

  .tommy-global-header__mobile-contact {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    min-height: 38px;
    margin: 0 40px 0 auto;
    padding: 0 12px;
    background: var(--tommy-header-contact-bg);
    color: var(--tommy-header-contact-text);
    border-radius: 4px;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .tommy-global-header--open .tommy-global-header__mobile-contact {
    opacity: 0;
    pointer-events: none;
  }

  .tommy-global-header__toggle {
    position: absolute;
    z-index: 1005;
    top: 50%;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: var(--tommy-header-text);
    cursor: pointer;
    font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
    transform: translateY(-50%);
  }

  .tommy-global-header__toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .tommy-global-header__toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
  }

  .tommy-global-header__toggle-icon i {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform .2s ease;
  }

  .tommy-global-header--open .tommy-global-header__toggle-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
  }

  .tommy-global-header--open .tommy-global-header__toggle-icon i {
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -1px;
  }

  .tommy-global-header--open .tommy-global-header__toggle-icon i:first-child {
    transform: rotate(45deg);
  }

  .tommy-global-header--open .tommy-global-header__toggle-icon i:nth-child(2) {
    opacity: 0;
  }

  .tommy-global-header--open .tommy-global-header__toggle-icon i:last-child {
    transform: rotate(-45deg);
  }

  .tommy-global-header__backdrop {
    position: fixed;
    z-index: 1002;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(10, 25, 21, .72);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }

  .tommy-global-header--open .tommy-global-header__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.admin-bar .tommy-global-header {
    top: 46px;
  }

  body.admin-bar .tommy-global-header__right {
    top: 46px;
    min-height: calc(100vh - 46px);
    height: calc(100vh - 46px);
  }

  body.admin-bar .tommy-header-region {
    height: calc(var(--tommy-header-height) + 46px);
  }

  body.admin-bar .tommy-header-region ~ [id],
  body.admin-bar .tommy-header-region ~ * [id] {
    scroll-margin-top: calc(var(--tommy-header-height) + 62px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tommy-global-header,
  .tommy-global-header *,
  .tommy-global-header *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
