:root {
  --pol-yellow: #ffe113;
  --pol-pink: #ff1495;
  --pol-black: #252525;
  --pol-dropdown: #1a1a1a;
  --pol-white: #ffffff;
  --pol-page: #fafafa;
}

body {
  margin: 0;
  padding-top: 74px;
  background: var(--pol-page);
}

body.menu-open {
  overflow: hidden;
}

.pol-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  background: var(--pol-black);
}

body.admin-bar .pol-header {
  top: 32px;
}

.pol-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 28px;
  background: var(--pol-black);
  overflow: visible;
}

.pol-header__logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.pol-header__logo-icon {
  display: block;
  width: auto;
  height: 30px;
}

.pol-header__nav {
  flex: 1 1 auto;
  min-width: 0;
}

.pol-header__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pol-header__menu li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pol-header__menu > li > a {
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pol-white);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.pol-header__menu > li > a:hover {
  color: rgba(255, 255, 255, 0.78);
}

/* Стрелка у Услуг */
.pol-header__menu > .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

/* Подменю */
.pol-header__menu .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 30;
  width: 370px;
  margin: 0;
  padding: 22px 24px 24px;
  background: var(--pol-dropdown);
  border: 3px solid var(--pol-pink);
  border-radius: 5px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s ease;
}

.pol-header__menu .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.pol-header__menu > li:hover > .sub-menu,
.pol-header__menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.pol-header__menu .sub-menu li + li {
  margin-top: 22px;
}

.pol-header__menu .sub-menu a {
  display: block;
  color: var(--pol-white);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.pol-header__menu .sub-menu a:hover {
  color: var(--pol-pink);
}

.pol-header__menu .sub-menu > li:last-child > a {
  color: var(--pol-pink);
}

/* Кнопки справа — берём последние 2 пункта из меню */
.pol-header__menu > li:nth-last-child(2) {
  margin-left: auto;
}

.pol-header__menu > li:nth-last-child(2) > a {
  min-height: 38px;
  padding: 0 24px;
  border: 1.5px solid var(--pol-pink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.pol-header__menu > li:last-child > a {
  min-height: 42px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff1495 0%, #ff7557 48%, #ffe113 100%);
  font-size: 14px;
  font-weight: 800;
}

.pol-header__menu > li:last-child > a:hover,
.pol-header__menu > li:nth-last-child(2) > a:hover {
  color: var(--pol-white);
}

/* Бургер */
.pol-header__burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pol-header__burger span {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  background: var(--pol-white);
  border-radius: 2px;
  transform: translateX(-50%);
}

.pol-header__burger span:nth-child(1) {
  top: 13px;
}

.pol-header__burger span:nth-child(2) {
  top: 21px;
}

.pol-header__burger span:nth-child(3) {
  top: 29px;
}

/* Mobile menu */
.pol-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.pol-mobile-menu[hidden] {
  display: none !important;
}

.pol-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 86vw);
  padding: 18px 18px 26px;
  overflow-y: auto;
  background: #171717;
  color: var(--pol-white);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

body.menu-open .pol-mobile-menu__panel {
  transform: translateX(0);
}

.pol-mobile-menu__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.pol-mobile-menu__close {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pol-mobile-menu__close span {
  position: absolute;
  top: 18px;
  left: 7px;
  width: 25px;
  height: 2px;
  background: var(--pol-white);
}

.pol-mobile-menu__close span:first-child {
  transform: rotate(45deg);
}

.pol-mobile-menu__close span:last-child {
  transform: rotate(-45deg);
}

.pol-mobile-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pol-mobile-menu__list li {
  list-style: none;
}

.pol-mobile-menu__list > li {
  margin-bottom: 20px;
}

.pol-mobile-menu__list > li > a {
  display: block;
  color: var(--pol-white);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.pol-mobile-menu__list .sub-menu {
  margin: 16px 0 0;
  padding: 18px 20px;
  background: var(--pol-dropdown);
  border: 3px solid var(--pol-pink);
  border-radius: 5px;
}

.pol-mobile-menu__list .sub-menu li + li {
  margin-top: 18px;
}

.pol-mobile-menu__list .sub-menu a {
  color: var(--pol-white);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.pol-mobile-menu__list .sub-menu > li:last-child > a {
  color: var(--pol-pink);
}

.pol-mobile-menu__bottom {
  margin-top: 42px;
}

.pol-mobile-menu__bottom img {
  display: block;
  width: 42px;
  height: auto;
}

/* Адаптив */
@media (max-width: 1400px) {
  .pol-header__inner {
    gap: 22px;
    padding: 0 24px;
  }

  .pol-header__menu {
    gap: 22px;
  }

  .pol-header__menu > li > a {
    font-size: 14px;
  }

  .pol-header__menu > li:nth-last-child(2) > a {
    padding: 0 20px;
  }

  .pol-header__menu > li:last-child > a {
    padding: 0 24px;
  }
}

@media (max-width: 1199px) {
  body {
    padding-top: 58px;
  }

  .pol-header__inner {
    min-height: 58px;
    padding: 0 16px;
  }

  .pol-header__nav {
    display: none;
  }

  .pol-header__burger {
    display: block;
  }

  .pol-header__logo-icon {
    height: 26px;
  }
}

.pol-header__menu .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;

  width: 300px;              /* было около 370–400px */
  margin: 0;
  padding: 16px 18px 18px;   /* меньше внутренние отступы */

  background: var(--pol-dropdown);
  border: 2px solid var(--pol-pink); /* тоньше рамка */
  border-radius: 5px;
  list-style: none;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: 0.2s ease;
}

.pol-header__menu .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.pol-header__menu .sub-menu li + li {
  margin-top: 16px; /* было 22–26px */
}

.pol-header__menu .sub-menu a {
  display: block;
  color: var(--pol-white);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 20px;          /* было 24–26px */
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.pol-header__menu .sub-menu a:hover {
  color: var(--pol-pink);
}

.pol-header__menu .sub-menu > li:last-child > a {
  color: var(--pol-pink);
}