/*
* New fonts
*/
/* inter-regular - latin */
@font-face {
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('./fonts/inter-v13-latin-regular.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-500 - latin */
@font-face {
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('./fonts/inter-v13-latin-500.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-700 - latin */
@font-face {
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('./fonts/inter-v13-latin-700.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* instrument-sans-500 - latin */
@font-face {
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Instrument Sans';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('./fonts/instrument-sans-v1-latin-500.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* instrument-sans-600 - latin */
@font-face {
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Instrument Sans';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('./fonts/instrument-sans-v1-latin-600.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --dark: #272D35;
  --primary: #ec3040;
  --font-text: 'Inter';
  --font-heading: 'Instrument Sans';
}

/*
* Typography
*/
body {
  font-size: 1rem;
  line-height: 1.6;
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--gray-dark);
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  line-height: 1.1;
  font-family: 'Instrument Sans';
  font-weight: 500;
  color: var(--heading-color);
  letter-spacing: -0.04em;
}

h1,
.h1 {
  font-size: clamp(2.5rem, 0rem + 5.3333vw, 3.75rem);
  line-height: 1.05;
}

h3,
.h3 {
  font-size: clamp(1.75rem, 0rem + 5.3333vw, 2.25rem);
}

.text-link {
  color: var(--primary);
  letter-spacing: 0;
}

/*
* New header styles
*/
.header-new {
  position: relative;
  background: #ffffff;
  z-index: 99;
}

.header-new-container,
.header-new-left,
.header-new-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-new-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
  max-width: 1400px;
}

.header-new-left {
  flex-shrink: 0;
}

.header-new-right {
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.header-new .logo-link {
  display: block;
}

.header-new .Nav__Logo--custom {
  max-width: 105px;
  min-height: unset !important;
}

.header-new .Topbar__LangItems {
  top: calc(100% + 0.5rem);
  left: 0;
  padding: 0;
}

.header-new .lang-button {
  padding-left: 1rem;
  border-left: 1px solid var(--dark);
  line-height: 1.2;
}

.header-new .lang-button:focus {
  outline: none;
}

.header-new .lang-button,
.header-new .Topbar__LangItems a {
  color: var(--dark);
}

/*
* Desktop menu
*/
.header-new .menu {
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  list-style-type: none;
}

.header-new .menu-item {
  position: relative;
}

.header-new .menu-item a {
  transition: 0.2s ease all;
}

.header-new .menu-item a:is(:hover, :focus) {
  color: var(--primary);
}

.header-new .menu-item>a {
  display: block;
  padding: 1rem;
  color: var(--dark);
  text-decoration: none;
}

.header-new .menu-item-has-children>a {
  padding-right: 2rem;
}

.menu-item-has-children:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
}

.header-new .sub-menu {
  position: absolute;
  display: grid;
  top: 100%;
  left: -1rem;
  margin: 0;
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffff;
  transition: all 0.2s ease;
  visibility: hidden;
  opacity: 0;
  list-style-type: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  grid-template-columns: 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, min-content);
  z-index: 1;
}

.header-new .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  min-width: 12rem;
  white-space: nowrap;
}

.submenu-toggle {
  position: absolute;
  top: 50%;
  right: 1rem;
  padding: 0;
  border: none;
  background: none;
  outline: none;
  transform: translateY(-50%);
}

.header-new .login-link {
  position: relative;
  padding-right: 1rem;
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease all;
}

.header-new .login-link:is(:hover, :focus) {
  color: var(--primary);
}

.header-new .login-link:is(:hover, :focus) path {
  fill: var(--primary);
}

.header-new .register-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.5;
}

.header-new .register-link:is(:hover, :focus) {
  color: var(--primary);
  opacity: 1;
}

@media screen and (max-width: 1200px) {
  .header-new-container {
    flex-direction: column;
  }
}

@media screen and (max-width: 1200px) and (min-width: 768px) {

  .Topbar .container,
  .Nav__Container {
    max-width: calc(100% - 32px);
  }

  .Nav__Right {
    flex-wrap: wrap;
    justify-content: center !important;
  }
}

@media screen and (min-width: 993px) {
  .site-header {
    display: none !important;
  }
}

@media screen and (max-width: 992px) {

  .header-new,
  .desktop-register-link {
    display: none;
  }
}