.cf-header,
.cf-footer,
.cf-modal {
  font-family: 'Mulish', sans-serif;
}

.cf-header__link,
.cf-footer__heading,
.cf-modal__title {
  font-family: 'Montserrat', sans-serif;
}

body.cf-redesign {
  padding-top: 96px;
}

.cf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 96px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.cf-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cf-header__inner {
  max-width: 1920px;
  margin: 0 auto;
  height: 100%;
  padding: 10px max(40px, calc((100% - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cf-header__logo {
  flex-shrink: 0;
  margin-right: 48px; /* + gap 32px = 80px до меню */
}

.cf-header__logo img {
  display: block;
  width: 194px;
  height: auto;
  max-height: 76px;
  object-fit: contain;
}

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

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

.cf-header__link {
  color: #f4864d;
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

@media (hover: hover) {
  .cf-header__link:hover {
    opacity: 0.75;
  }
}

.cf-header__item--dropdown {
  position: relative;
}

.cf-header__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 291px;
  margin: 0;
  padding: 20px;
  list-style: none;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cf-header__item--dropdown.is-open .cf-header__dropdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cf-header__dropdown a {
  display: block;
  padding: 8px 16px;
  border-radius: 10px;
  color: #585858;
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.cf-header__dropdown a:hover {
  background: #f5f2f0;
  color: #f4864d;
}

.cf-header__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.cf-header__social {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cf-header__social a {
  display: inline-flex;
  line-height: 0;
  transition: opacity 0.25s ease;
}

@media (hover: hover) {
  .cf-header__social a:hover {
    opacity: 0.75;
  }
}

.cf-header__phone {
  color: #f4864d;
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, opacity 0.25s ease;
}

@media (hover: hover) {
  .cf-header__phone:hover {
    opacity: 0.75;
  }
}

.cf-header__callback,
.cf-footer__callback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 30px;
  background: #f4864d;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.28s ease;
}

@media (hover: hover) {
  .cf-header__callback:hover,
  .cf-footer__callback:hover {
    background: #ff9a5c;
  }
}

.cf-header__burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.cf-header__burger span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #f4864d;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.cf-header.is-menu-open .cf-header__burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.cf-header.is-menu-open .cf-header__burger span:nth-child(2) {
  opacity: 0;
}

.cf-header.is-menu-open .cf-header__burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1200px) {
  .cf-header__nav,
  .cf-header__social,
  .cf-header__phone {
    display: none;
  }

  .cf-header__burger {
    display: block;
  }

  .cf-header__inner {
    padding: 10px 32px;
    gap: 16px;
  }

  .cf-header__logo {
    margin-right: 0;
  }
}

@media (max-width: 1024px) {
  .cf-header__inner {
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  .cf-header {
    height: 72px;
  }

  body.cf-redesign {
    padding-top: 72px;
  }

  .cf-header__logo img {
    width: 148px;
    max-height: 56px;
  }

  .cf-header__callback {
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }

  .cf-header__actions {
    gap: 12px;
  }

  .cf-footer__heading {
    margin-bottom: 16px;
    font-size: 22px;
  }

  .cf-footer__links,
  .cf-footer__contacts {
    gap: 12px;
  }

  .cf-footer__legal {
    flex-direction: column;
    gap: 8px;
  }

  .cf-footer__bottom {
    margin-top: 32px;
  }

  .cf-modal__dialog {
    margin: 8vh auto;
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .cf-header__callback {
    display: none;
  }
}

.cf-header__mobile {
  display: none;
  background: #fff;
  border-top: 0 solid #eee;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
  transition:
    max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s ease,
    padding 0.28s ease,
    border-top-width 0.2s ease;
}

@media (max-width: 1200px) {
  .cf-header__mobile {
    display: block;
  }

  .cf-header.is-menu-open .cf-header__mobile {
    max-height: min(80vh, 640px);
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    padding: 16px 20px 24px;
    border-top-width: 1px;
  }
}

.cf-header__mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cf-header__mobile-menu a,
.cf-header__mobile-label {
  display: block;
  padding: 12px 0;
  color: #f4864d;
  font-weight: 800;
  font-style: italic;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

@media (hover: hover) {
  .cf-header__mobile-menu a:hover {
    opacity: 0.75;
  }
}

.cf-header__mobile-menu ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 0 12px;
}

.cf-header__mobile-menu ul a {
  color: #585858;
  font-size: 15px;
}

/* Footer */
.cf-footer {
  background: #161616;
  color: #fff;
  border-radius: 30px 30px 0 0;
  margin-top: 40px;
  padding: 70px max(40px, calc((100% - 1440px) / 2)) 40px;
}

@media (max-width: 1400px) {
  .cf-footer {
    padding: 50px 40px 32px;
  }
}

@media (max-width: 768px) {
  .cf-footer {
    padding: 40px 20px 28px;
    border-radius: 20px 20px 0 0;
  }
}

.cf-footer__inner {
  display: grid;
  grid-template-columns: max-content 1fr 1fr 1fr;
  column-gap: 40px;
  row-gap: 40px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .cf-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .cf-footer__brand {
    margin-right: 0;
  }
}

@media (max-width: 640px) {
  .cf-footer__inner {
    grid-template-columns: 1fr;
  }
}

.cf-footer__brand {
  width: 194px;
  /* column-gap 40px + 123px = 163px от лого до меню */
  margin-right: 123px;
}

.cf-footer__brand img {
  display: block;
  width: 194px;
  height: auto;
  max-height: 76px;
  object-fit: contain;
}

.cf-footer__slogan {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
}

.cf-footer__heading {
  margin: 0 0 30px;
  font-size: 26px;
  font-weight: 600;
  font-style: italic;
}

.cf-footer__links,
.cf-footer__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cf-footer__contacts {
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.25;
}

.cf-footer__links a,
.cf-footer__contacts a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  transition: color 0.25s ease, opacity 0.25s ease;
}

@media (hover: hover) {
  .cf-footer__links a:hover,
  .cf-footer__contacts a:hover {
    color: #f4864d;
  }
}

.cf-footer__contacts a[href^="mailto"] {
  text-decoration: underline;
}

.cf-footer__callback {
  margin-top: 30px;
}

.cf-footer__bottom {
  max-width: 1440px;
  margin: 48px auto 0;
  text-align: center;
}

.cf-footer__legal {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.cf-footer__legal a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  text-decoration: underline;
  transition: color 0.25s ease;
}

@media (hover: hover) {
  .cf-footer__legal a:hover {
    color: #fff;
  }
}

.cf-footer__copy {
  margin: 0;
  font-size: 14px;
}

/* Modal */
.cf-modal[hidden] {
  display: none !important;
}

.cf-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.cf-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.cf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.cf-modal.is-open .cf-modal__backdrop {
  opacity: 1;
}

.cf-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100% - 32px));
  margin: 10vh auto;
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.cf-modal.is-open .cf-modal__dialog {
  opacity: 1;
  transform: none;
}

.cf-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #585858;
  transition: color 0.25s ease, opacity 0.25s ease;
}

@media (hover: hover) {
  .cf-modal__close:hover {
    color: #f4864d;
  }
}

.cf-modal__title {
  margin: 0 0 8px;
  color: #171717;
}

.cf-modal__desc {
  margin: 0 0 20px;
  color: #585858;
}

.cf-modal__input {
  width: 100%;
  height: 52px;
  min-height: 52px;
  margin-bottom: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 0 16px;
  box-sizing: border-box;
}

.cf-modal__agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: #585858;
  margin-bottom: 16px;
  cursor: pointer;
}

.cf-modal__agree-input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid #d9d9d9;
  border-radius: 5px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cf-modal__agree-input:checked {
  border-color: #f4864d;
  background-image: url('../images/build/icon-check-orange.svg');
}

.cf-modal__agree-input:focus-visible {
  outline: 2px solid #f4864d;
  outline-offset: 2px;
}

.cf-modal__agree a {
  color: #f4864d;
  transition: opacity 0.25s ease;
}

@media (hover: hover) {
  .cf-modal__agree a:hover {
    opacity: 0.75;
  }
}

.cf-modal__submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 30px;
  background: #f4864d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.28s ease;
}

@media (hover: hover) {
  .cf-modal__submit:hover {
    background: #ff9a5c;
  }
}

.cf-modal__success {
  margin-top: 16px;
  color: #2e7d32;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .cf-header__link,
  .cf-header__phone,
  .cf-header__social a,
  .cf-header__callback,
  .cf-footer__callback,
  .cf-header__dropdown a,
  .cf-header__mobile-menu a,
  .cf-footer__links a,
  .cf-footer__contacts a,
  .cf-footer__legal a,
  .cf-header__burger span,
  .cf-header__mobile,
  .cf-modal,
  .cf-modal__backdrop,
  .cf-modal__dialog,
  .cf-modal__close,
  .cf-modal__agree a,
  .cf-modal__submit {
    transition: none !important;
  }

  .cf-modal__dialog {
    transform: none;
  }
}

/* Hide legacy citrus orange menu chrome on redesign pages */
body.cf-redesign .citrus-wrapper,
body.cf-redesign .mobile-citrus-wrapper,
body.cf-redesign .site-header:not(.cf-header),
body.cf-redesign .lepopuptab,
body.cf-redesign [id^="lepopuptab-"] {
  display: none !important;
}

/* /services/ — сетка карточек по центру */
body.cf-redesign.post-type-archive-services .content-area,
body.cf-redesign.post-type-archive-services .site-main {
  width: 100%;
}

body.cf-redesign.post-type-archive-services .services__list {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

body.cf-redesign.post-type-archive-services .page-header {
  text-align: center;
}

/* /promotions/ — сетка карточек по центру */
body.cf-redesign.post-type-archive-promotions .content-area,
body.cf-redesign.post-type-archive-promotions .site-main {
  width: 100%;
}

body.cf-redesign.post-type-archive-promotions .promotions__list {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

body.cf-redesign.post-type-archive-promotions .page-header {
  text-align: center;
}

/* /media/ — сетка по центру */
body.cf-redesign.post-type-archive-media .content-area,
body.cf-redesign.post-type-archive-media .site-main {
  width: 100%;
}

body.cf-redesign.post-type-archive-media .media__list {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

body.cf-redesign.post-type-archive-media .page-header {
  text-align: center;
}

body.cf-redesign #page,
body.cf-redesign #content {
  width: 100%;
  max-width: none;
}
body.cf-redesign {
	padding-bottom: 0;
}
body.cf-redesign #content {
  margin-bottom: 0;
  padding-bottom: 0;
}

body.cf-redesign.post-type-archive-services,
body.cf-redesign.post-type-archive-promotions,
body.cf-redesign.post-type-archive-media,
body.cf-redesign.post-type-archive-novelties {
  display: block;
}

body.cf-redesign .cf-footer {
  width: 100%;
  margin-bottom: 0;
}