@font-face {
  font-family: "Golos Text";
  src: url("../fonts/GolosText-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Mulish";
  src: url("../fonts/Mulish-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --color-brand: #dc4999;
  --color-brand-hover: #f05dad;
  --color-brand-active: #b42c76;
  --color-text: #17141b;
  --color-menu: #545461;
  --color-contact: #323232;
  --color-muted: #a0a0a0;
  --container-width: 1480px;
  --header-height: 80px;
  --header-row-height: 80px;
  --motion-duration: 240ms;
  --motion-easing: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button) {
  transition: color var(--motion-duration) var(--motion-easing),
    background-color var(--motion-duration) var(--motion-easing),
    border-color var(--motion-duration) var(--motion-easing),
    box-shadow var(--motion-duration) var(--motion-easing),
    opacity var(--motion-duration) var(--motion-easing),
    filter var(--motion-duration) var(--motion-easing);
}

img {
  display: block;
}

[hidden] {
  display: none !important;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

.page {
  background: #f4f5f5;
  color: var(--color-text);
  font: 400 16px/1.3 "Golos Text", Arial, sans-serif;
}

.page_menu-open {
  overflow: hidden;
}

.page__main {
  min-height: calc(100dvh - var(--header-height));
}

html {
  scroll-padding-top: calc(var(--header-height) + 16px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 12px;
  background: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  background: #fff;
  box-shadow: 0 3px 14px rgb(23 20 27 / .08);
}

.site-header__container {
  display: flex;
  align-items: center;
  width: min(var(--container-width), calc(100% - 48px));
  height: var(--header-row-height);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 149px;
}

.brand__image {
  width: 149px;
  height: 44px;
  object-fit: contain;
}

.site-header__navigation {
  margin-left: 22px;
}

.site-header__links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: rgb(23 20 27 / .6);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.site-header__services-icon {
  width: 20px;
  height: 20px;
  background:
    linear-gradient(currentColor 0 0) center 4px / 15px 2px no-repeat,
    linear-gradient(currentColor 0 0) center 9px / 15px 2px no-repeat,
    linear-gradient(currentColor 0 0) center 14px / 15px 2px no-repeat;
}

.site-header__contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  padding-left: 24px;
}

.site-header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(23 20 27 / .8);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.site-header__phone img {
  opacity: .8;
  transition: opacity 160ms ease;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 16px 32px;
  border: 0;
  border-radius: 8px;
  background: var(--color-brand);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.site-header__estimate {
  width: 204px;
}

.menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--color-brand);
  color: #fff;
}

.site-header__burger {
  display: none;
  margin-left: auto;
}

.menu-toggle__lines {
  position: relative;
  width: 20px;
  height: 1.55px;
  background: currentColor;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.55px;
  background: currentColor;
}

.menu-toggle__lines::before {
  top: -6.72px;
}

.menu-toggle__lines::after {
  top: 6.73px;
}

.menu-toggle_close {
  background: #31353d;
}

.menu-toggle__cross {
  position: relative;
  width: 20px;
  height: 20px;
}

.menu-toggle__cross::before,
.menu-toggle__cross::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 20px;
  height: 1.55px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.menu-toggle__cross::after {
  transform: rotate(-45deg);
}

/* The full-height transparent dialog scrolls as one surface; its white panel
   retains the content height shown in the mobile reference. */
.menu-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-top: 128px;
  border: 0;
  background: transparent;
  color: var(--color-menu);
  font: 400 14px/1.3 "Open Sans", Arial, sans-serif;
}

.menu-dialog::backdrop {
  background: rgb(0 0 0 / .6);
  opacity: 0;
  transition: opacity var(--motion-duration) var(--motion-easing);
}

.menu-dialog_visible::backdrop {
  opacity: 1;
}

.menu-dialog__panel {
  width: 100%;
  padding-bottom: 23px;
  border-bottom: 1px solid rgb(0 0 0 / .06);
  background: #fff;
}

.menu-dialog__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
}

.header-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 40px;
  padding: 0 16px;
  background: #f6f6f6;
  font-family: "Open Sans", Arial, sans-serif;
}

.header-topbar__phone {
  color: rgb(50 50 50 / .6);
  font-size: 16px;
  line-height: 16px;
  white-space: nowrap;
}

.header-topbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-topbar__link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-contact);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.header-topbar__link+.header-topbar__link::before {
  content: "";
  flex: 0 0 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgb(50 50 50 / .4);
}

.site-header__topbar {
  display: none;
}

.menu-dialog__brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 16px);
  height: 60px;
  opacity: 0;
  transition: opacity var(--motion-duration) var(--motion-easing);
}

.menu-dialog_visible .menu-dialog__brand-row {
  opacity: 1;
}

.menu-dialog__brand {
  display: block;
  width: 147px;
  height: 65px;
}

.menu-dialog__logo {
  width: 147px;
  height: 65px;
  object-fit: contain;
}

.menu-dialog__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 16px 0;
}

/* Reveal below the stationary menu header; the phone bar stays in place. */
.menu-dialog__panel {
  clip-path: inset(0 0 calc(100% - 112px) 0);
  transition: clip-path var(--motion-duration) var(--motion-easing);
}

.menu-dialog__content {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--motion-duration) var(--motion-easing), transform var(--motion-duration) var(--motion-easing);
}

.menu-dialog_visible .menu-dialog__panel {
  clip-path: inset(0);
}

.menu-dialog_visible .menu-dialog__content {
  opacity: 1;
  transform: translateY(0);
}

.services__list,
.services__submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services__item {
  padding: 6px 0;
  border-bottom: 1px solid rgb(0 0 0 / .1);
}

.services__toggle,
.services__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 37px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-menu);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.03em;
  text-align: left;
}

.services__chevron {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
  transition: transform var(--motion-duration) var(--motion-easing);
}

.services__chevron::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translate(-50%, -65%) rotate(45deg);
}

.services__item_animating {
  overflow: hidden;
}

.services__item_open {
  padding-bottom: 15px;
}

.services__item_open .services__toggle {
  color: var(--color-brand);
}

.services__toggle[aria-expanded="true"] .services__chevron {
  transform: rotate(0deg);
}

.services__submenu {
  margin-top: 4px;
}

.services__sublink {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 35px;
  padding-block: 5px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.services__sublink::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 20px;
  background: url("../icons/arrow.svg") center no-repeat;
}

.menu-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-contacts__communication {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.menu-contacts__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-contacts__label {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.menu-contacts__link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-menu);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.menu-contacts__link_phone {
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
}

.menu-contacts__value {
  margin: 0;
  color: var(--color-contact);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
  overflow-wrap: anywhere;
}

@media (hover: hover) {

  .site-header__link:hover,
  .site-header__phone:hover,
  .header-topbar__link:hover,
  .header-topbar__phone:hover,
  .services__toggle:hover,
  .services__link:hover,
  .services__sublink:hover,
  .menu-contacts__link:hover {
    color: var(--color-brand);
  }

  .button:hover,
  .menu-toggle:hover {
    background: var(--color-brand-hover);
  }

  .menu-toggle_close:hover {
    background: #454b57;
  }

  .site-header__phone:hover img {
    opacity: 1;
  }
}

.button:active,
.menu-toggle:active {
  background: var(--color-brand-active);
}

.menu-toggle_close:active {
  background: #171b22;
}

.site-header__link:active,
.services__toggle:active,
.services__link:active,
.services__sublink:active {
  color: var(--color-brand-active);
}

:where(.site-header__link, .site-header__phone, .header-topbar__link, .header-topbar__phone, .services__toggle, .services__link, .services__sublink, .menu-contacts__link) {
  transition: color 160ms ease;
}

:where(.button, .menu-toggle) {
  transition: background-color 160ms ease;
}

/* Switch before the full desktop contents can collide; tablets use the burger. */
@media (max-width: 1279px) {
  :root {
    --header-height: 100px;
    --header-row-height: 60px;
  }

  .site-header__topbar {
    display: flex;
  }

  .site-header__container {
    width: calc(100% - 16px);
  }

  .site-header__navigation,
  .site-header__contacts {
    display: none;
  }

  .site-header__burger {
    display: flex;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .site-header__container {
    width: calc(100% - 48px);
  }

  .menu-dialog__panel {
    width: 360px;
    margin-left: auto;
  }
}

@media (max-width: 359px) {
  .header-topbar {
    gap: 6px;
    padding-inline: 12px;
  }

  .header-topbar__phone {
    font-size: 14px;
  }

  .header-topbar__links,
  .header-topbar__link {
    gap: 3px;
  }

  .header-topbar__link {
    font-size: 11px;
  }
}

/* No desktop dropdown reference was supplied. Reuse the same service tree. */
@media (min-width: 1280px) {
  .site-header__link-label,
  .services__label {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
  }

  .site-header__link-label::after,
  .services__label::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 2px;
    background: var(--color-brand);
    opacity: 0;
    transition: opacity 160ms ease;
  }

  .site-header__link[aria-current="page"],
  .site-header__link[aria-expanded="true"] {
    color: var(--color-brand);
  }

  .site-header__link[aria-current="page"] .site-header__link-label::after,
  .site-header__link[aria-expanded="true"] .site-header__link-label::after,
  .services__toggle[aria-expanded="true"] .services__label::after,
  .services__link[aria-current="page"] .services__label::after {
    opacity: 1;
  }

  .site-header__link {
    transition: color 160ms ease, opacity 160ms ease;
  }

  .services__item {
    padding: 0;
    border-bottom: 0;
  }

  .services__item_open {
    padding-bottom: 15px;
  }

  .services__toggle,
  .services__link {
    justify-content: flex-start;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    min-height: 45px;
    padding: 4px 0 8px;
    color: var(--color-contact);
    font-size: 16px;
    font-weight: 400;
    transition: color 160ms ease, opacity 160ms ease;
  }

  .services__label::after {
    bottom: -8px;
  }

  .services__chevron {
    flex-basis: 10px;
    width: 10px;
  }

  .services__chevron::before {
    width: 5.5px;
    height: 5.5px;
    border-width: 1.2px;
  }

  .services__sublink {
    min-height: 45px;
    padding: 4px 0 8px;
    color: var(--color-contact);
    font-size: 16px;
    transition: color 160ms ease, opacity 160ms ease;
  }

  .services__link[aria-current="page"],
  .services__sublink[aria-current="page"] {
    color: var(--color-brand);
  }

  .services__sublink[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
  }

  @media (hover: hover) {
    .site-header__link:hover {
      color: rgb(23 20 27 / .6);
      opacity: .5;
    }

    .site-header__link[data-menu-open]:hover {
      color: var(--color-brand);
      opacity: 1;
    }

    .services__toggle:hover,
    .services__link:hover,
    .services__sublink:hover {
      color: var(--color-contact);
      opacity: .5;
    }

    .site-header__link[aria-current="page"]:hover,
    .site-header__link[aria-expanded="true"]:hover,
    .services__toggle[aria-expanded="true"]:hover,
    .services__link[aria-current="page"]:hover,
    .services__sublink[aria-current="page"]:hover {
      color: var(--color-brand);
    }

  }

  .menu-dialog {
    inset: 80px auto auto max(195px, calc((100vw - 1480px) / 2 + 171px));
    width: 360px;
    height: auto;
    max-height: calc(100dvh - 96px);
    scroll-padding-top: 16px;
    border: 1px solid rgb(0 0 0 / .1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(23 20 27 / .12);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--motion-duration) var(--motion-easing), transform var(--motion-duration) var(--motion-easing);
  }

  .menu-dialog_visible {
    opacity: 1;
    transform: translateY(0);
  }

  .menu-dialog::backdrop {
    background: transparent;
  }

  .menu-dialog__header,
  .menu-contacts {
    display: none;
  }

  .menu-dialog__content {
    margin-top: 12px;
  }

  .menu-dialog__panel {
    border-bottom: 0;
    padding-bottom: 16px;
    clip-path: none;
    transition: none;
  }

  .menu-dialog__content {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-duration: 0ms;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
