:root {
  --bg: #F7F7F7;
  --bg-secondary: #F7F7F7;
  --text: #1E1E1E;
  --text-blue: #1351A6;
  --container-1272: 1272px;
  --container-1056: 1056px;
  --section-space: 160px;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter_24pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter_24pt-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter_24pt-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter_24pt-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

/* Containers */
.container {
  max-width: var(--container-1272);
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.container--narrow {
  max-width: var(--container-1056);
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Section spacing */
.section {
  padding: var(--section-space) 0;
}

/* Header (desktop only) */
.site-header {
  background: #ffffff;
  box-shadow: 0 4px 4px rgba(0,0,0,0.05);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 75px;
}
.header__logo {
  display: inline-flex;
  align-items: center;
}
.header__logo img {
  display: block;
  height: auto;
  width: 162px;
}
.header__nav {
  margin-left: 0;
}
.header__group {
  display: flex;
  align-items: center;
  gap: 46px;
}
.header__group-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  width: 368px; /* reserve space to prevent layout shift when toggling search */
}
.header__search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
}
.header__search-input {
  width: 0;
  opacity: 0;
  height: 40px;
  border-radius: 50px;
  padding: 0 14px;
  border: 1px solid rgba(0,0,0,0.08);
  outline: none;
  background: #fff;
  transition: width 0.25s ease, opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.header__search-input:focus {
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}
.header__search-wrap.is-open .header__search-input {
  width: 320px;
  opacity: 1;
}
.header__search-wrap.is-open + .header__request {
  display: none;
}
.header__menu {
  display: flex;
  align-items: center;
  gap: 50px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__menu a {
  color:var(--text);
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.header__menu a.active {
  opacity: 1;
  color: #1251A6;
}
.header__menu a:hover {
  color: #1251A6;
  opacity: 1;
}
.header__inner {
  justify-content: flex-start;
}
.header__group-buttons {
  margin-left: auto;
}
.header__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.header__search img {
  width: 16px;
  height: auto;
  display: block;
}
.header__search:hover {
  background-color: #ECECEC;
}
.header__search:active {
  background-color: #E6E6E6;
}
.header__request {
  background-color: var(--bg-secondary);
  width: 180px;
  border-radius: 50px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-blue);
   transition: background-color 0.2s ease;
}
 .header__request:hover {
   background-color: #ECECEC;
 }
 .header__request:active {
   background-color: #E6E6E6;
 }

.header__request p {
  text-wrap: nowrap;
}