/* AA Stetica Regular */
@font-face {
  font-family: "AA Stetica";
  src: url("/wp-content/themes/basic/fonts/AA-Stetica/AA Stetica Regular.otf")
    format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* AA Stetica Medium */
@font-face {
  font-family: "AA Stetica";
  src: url("/wp-content/themes/basic/fonts/AA-Stetica/AA Stetica Medium.otf")
    format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* AA Stetica Medium Italic */
@font-face {
  font-family: "AA Stetica";
  src: url("/wp-content/themes/basic/fonts/AA-Stetica/AA Stetica Medium Italic.otf")
    format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* AA Stetica Light */
@font-face {
  font-family: "AA Stetica";
  src: url("/wp-content/themes/basic/fonts/AA-Stetica/AA Stetica Light.otf")
    format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* AA Stetica Light Italic */
@font-face {
  font-family: "AA Stetica";
  src: url("/wp-content/themes/basic/fonts/AA-Stetica/AA Stetica Light Italic.otf")
    format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* AA Stetica Italic */
@font-face {
  font-family: "AA Stetica";
  src: url("/wp-content/themes/basic/fonts/AA-Stetica/AA Stetica Italic.otf")
    format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* AA Stetica Bold */
@font-face {
  font-family: "AA Stetica";
  src: url("/wp-content/themes/basic/fonts/AA-Stetica/AA Stetica Bold.otf")
    format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* AA Stetica Bold Italic */
@font-face {
  font-family: "AA Stetica";
  src: url("/wp-content/themes/basic/fonts/AA-Stetica/AA Stetica Bold Italic.otf")
    format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* AA Stetica Black */
@font-face {
  font-family: "AA Stetica";
  src: url("/wp-content/themes/basic/fonts/AA-Stetica/AA Stetica Black_0.otf")
    format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


.pc__inner h2,
.pc__inner p {
  font-family: "AA Stetica", sans-serif;

}

      /* ===== Бургер ===== */
.burger {
  display: none;
  width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 10px;
  background: #f2f2f4;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #1d1d1f; }

/* @media (max-width: 1024px) { .burger { display: flex; } } */
/* @media (min-width: 1025px) { .mobile-menu { display: none !important; } } */

html.is-menu-open, html.is-menu-open body { overflow: hidden; }

/* ===== Панель ===== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  visibility: hidden; opacity: 0;
  transform: translateX(100%);
  transition: transform .3s ease, opacity .3s ease, visibility .3s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; }

.mobile-menu__inner {
  display: flex; flex-direction: column;
  height: 100%;
  padding: 10px 10px 10px;
}

.mobile-menu__head { display: flex; align-items: center; gap: 6px; padding: 0 0 10px 0; }
.mobile-menu__logo { margin-right: auto; display: flex; }

.mobile-menu__search-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: #1d1d1f; cursor: pointer;
}

.button_search-js {
  background: none;
  padding: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu__close { 
  padding: 0;
  border-radius: 16px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f3f3f5;
  border: none;
}

.mobile-menu__search { display: none; padding-bottom: 10px; }
.mobile-menu__search.is-open { display: block; }

.mobile-menu__body {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: 10px;
  background: #f2f2f4;
  border-radius: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== Общие сбросы ===== */
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { text-decoration: none; }

.mobile-menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.mm-toggle {
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; cursor: pointer;
  color: #1d1d1f; background: transparent;
}
.mm-toggle svg { transition: transform .25s ease; }
.is-open > .mm-toggle svg { transform: rotate(180deg); }



/* ---------- Модальный поиск ---------- */
.ss {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.ss.is-open {
  display: flex;
  animation: ss-in 0.25s var(--ease);
  align-items: center;
  justify-content: center;
}

@keyframes ss-in {
  from {
    opacity: 0;
  }
}

.ss__backdrop {
  position: absolute;
  inset: 0;
  background: #fff;
}
.ss__panel {
  border-radius: 48px;
  position: absolute;
  max-width: 1440px;
  max-height: 885px;
  width: 100%;
  height: calc(100vh - 80px);
  overscroll-behavior: contain;
  background-color: #f3f3f5;
  overflow: hidden;
}

.ss__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  transition: background-color 0.2s, color 0.2s;
  background-color: transparent;
}

.ss__close:hover {
  color: var(--red);
}

.ss__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 0 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ss__title {
  font-weight: 500;
  font-size: 48px;
  line-height: 113%;
  text-align: center;
  font-family: "AA Stetica", sans-serif;
  color: #191c24;
  margin-bottom: 24px;
}

.ss__form {
  position: relative;
  width: 100%;
}

.ss__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: #686d7f;
  pointer-events: none;
}
.ss__input {
  background-color: #fff;
  border: 1px solid #e9e9eb;
  border-radius: 20px;
  padding: 16px 16px 16px 56px !important;
  width: 100%;
  height: 58px;
  -webkit-appearance: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #686d7f;
  outline: none;
  font-family: "AA Stetica", sans-serif;
}
.ss__input:focus {
  border-color: #191c24;
  outline: none;
}
.ss__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #686d7f;
  cursor: pointer;
}
.ss__clear:hover {
  color: var(--red);
}

.ss__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 12px;
}
.ss__head-title {
  font-weight: 500;
  color: var(--black);
}
.ss__count {
  font-size: 14px;
  color: var(--text-2);
}

.ss__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.2s;
}
.ss.is-loading .ss__list {
  opacity: 0.5;
}
.ss__item a {
  position: relative;
  display: block;
  padding: 20px;
  border-radius: 20px;
  background: var(--white);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.ss__item a:hover,
.ss__item a:focus-visible {
  box-shadow: 0 2px 28px 0 rgba(0, 0, 0, 0.1);
}
.ss__item-title {
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #191c24;
  max-width: 90%;
}

.ss__results .btn {
  display: block;
  margin: 15px auto 0;
}
.ss__item-text {
  margin-top: 8px;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #191c24;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ss__item a:hover .ss__item-ico path {
  stroke: #191C24;
}

.ss__item-ico {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
}
/* .ss mark {
  padding: 0 2px;
  border-radius: 3px;
  background: var(--pink);
  color: var(--red);
} */

.ss__state {
  margin-top: 24px;
  text-align: center;
  color: var(--text-2);
}
.ss__state:empty {
  display: none;
}
.ss__more {
  display: flex;
  margin: 24px auto 0;
}

.ss__results {
  flex: 1 1 auto;
  min-height: 0;              /* без этого flex-элемент не начнёт скроллиться */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;
  padding-bottom: 10px;
}
.ss__results::-webkit-scrollbar {
  display: none; 
}

@media (max-width: 1024px) {
  .ss__inner {
    padding: 40px 20px;
  }
  .ss__title {
    font-size: 40px;
  }
}

@media (max-width: 600px) {
  .ss__panel {
    max-height: unset;
    height: 100%;
    border-radius: 30px;
  }
  .ss__inner {
    padding: 80px 12px 10px;
  }
  .ss__title {
    font-size: 32px;
  }
  .ss__head {
    margin-top: 24px;
  }
}

:root {
  --red: #bc003b;
  --red-hover: #a30034;
  --black: #242a3d;
  --text: #242a3d;
  --text-2: #5c6172;
  --gray: #f3f3f5;
  --gray-2: #f9f9f9;
  --gray-3: #b8b8b9;
  --white: #fff;
  --pink: #fde6ed;
  --gradient: linear-gradient(171deg, #d51b56 7%, #a30638 92%);

  --font: "AA Stetica", "Manrope", "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1440px;
  --gutter: 40px;
  --section-gap: 140px;
  --radius-xl: 40px;
  --radius-l: 32px;
  --radius-m: 24px;
  --radius-s: 16px;
  --radius-xs: 12px;

  --h1: 64px;
  --h1-lh: 70px;
  --h2: 48px;
  --h2-lh: 54px;
  --h3: 32px;
  --h3-lh: 36px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* высота фиксированного верхнего меню сайта (если меню не фиксированное — 0px) */
  --flow-top: 70px;
}


/* =========================================================
   ШАПКА
   ========================================================= */
.header {
  position: relative;
  z-index: 50;
  background: transparent;
}
.header__top {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 84px;
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: calc(var(--gutter) + 20px);
  padding-right: calc(var(--gutter) + 20px);
}
.header__logo img {
  width: 180px;
  height: auto;
}
.header__nav {
  flex: 1;
}
.header__nav-list {
  display: flex;
  gap: 32px;
}
.header__nav-item {
  position: relative;
}
.header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--black);
  transition: color 0.2s;
}
.header__nav-link:hover,
.header__nav-link.is-current {
  color: var(--red);
}

.header__contacts {
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 14px;
  line-height: 20px;
}
.header__phone {
  font-weight: 500;
  white-space: nowrap;
}
.header__messengers {
  order: 4;
  display: flex;
  gap: 8px;
  margin-left: -16px;
}
.header__actions {
  order: 5;
  display: none;
  align-items: center;
  gap: 12px;
}
.header__burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-xs);
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-m);
  background: var(--gray);
}
.header__cats {
  display: flex;
  gap: 12px;
}
.header__cat {
  position: relative;
}
.header__cat-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 12px 0 16px;
  border-radius: var(--radius-s);
  background: var(--white);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}
.header__cat-link:hover {
  color: var(--red);
}
.caret-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray);
}
.header__bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1279px) {
  :root {
    --h1: 48px;
    --h1-lh: 56px;
    --h2: 36px;
    --h2-lh: 44px;
    --h3: 28px;
    --h3-lh: 34px;
    --section-gap: 100px;
  }

  .header__top {
    gap: 16px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .header__nav,
  .header__bottom {
    display: none;
  }
  .header__messengers {
    order: 2;
    margin-left: 0;
  }
  .header__contacts {
    order: 3;
    align-items: flex-start;
    margin-right: auto;
  }
  .header__actions,
  .header__burger {
    display: flex;
  }
}

/* =========================================================
   ≤1023 — макет 768
   ========================================================= */
@media (max-width: 1024px) {
  .header__messengers {
    display: none;
  }
}

/* =========================================================
   ≤767 — макет 375
   ========================================================= */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --h1: 36px;
    --h1-lh: 42px;
    --h2: 28px;
    --h2-lh: 34px;
    --h3: 24px;
    --h3-lh: 30px;
    --section-gap: 72px;
    --radius-xl: 28px;
  }

  .header__top {
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .header__logo img {
    width: 140px;
  }
  .header__contacts,
  .header__search-btn,
  .header__cta {
    display: none;
  }
  .header__actions {
    margin-left: auto;
  }
  .header__burger {
    width: 40px;
    height: 40px;
  }
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
