
/* Footer */
.footer {
  padding: 30px var(--container-pad) 12px;
  max-width: var(--container-max);
  margin: 0 auto;
  border-top: 1px solid var(--color-brand);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}

.footer__col-title {
  margin: 0 0 16px;
  font-weight: 600;
  font-stretch: condensed;
  font-size: 16px;
  color: var(--color-brand);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-weight: 400;
  font-stretch: normal;
  font-size: 15px;
  line-height: 1.4;
}

.footer__links a { transition: color 0.2s; }
.footer__col:not([class*="footer__col--"]) .footer__links a:hover { color: var(--color-brand); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 152px;
  align-items: center;
  font-weight: 400;
  font-stretch: normal;
  font-size: var(--font-size-min);
  color: var(--color-text-secondary);
  letter-spacing: -0.02em;
}

.footer__bottom > span:nth-child(2) { width: 250px; }

.footer__bottom a:hover { color: var(--color-brand); }

.footer__legal { display: flex; flex-direction: column; gap: 8px; width: auto; flex-shrink: 0; }
.footer__legal a { white-space: nowrap; }

/* Tablet */

@media (max-width: 1323px) {
  body.nav_open { overflow: hidden; touch-action: none; }
  :root { --container-pad: 40px; }
  .h0 { font-size: 56px; }
  .h1 { font-size: 48px; }
  .h2 { font-size: 40px; }
  .h3 { font-size: 32px; }
  .header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    justify-content: stretch;
  }
  .header__burger { display: block; grid-column: 1; grid-row: 1; }
  .header__logo-wrap { position: static; transform: none; grid-column: 2; grid-row: 1; justify-self: center; }
  .header__contacts { grid-column: 3; grid-row: 1; width: auto; }
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-self: stretch;
    gap: 16px;
    width: min(320px, calc(100vw - 56px));
    margin: 0;
    padding: calc(var(--header-height, 60px) + 24px) var(--container-pad) 32px;
    background: var(--kadr-bg-page, #fff);
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s;
  }

  .header__nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  body.nav_open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
  }

  body.nav_open .header {
    position: relative;
    z-index: 210;
  }

  body.nav_open .header__burger {
    position: fixed;
    top: 13px;
    right: var(--container-pad);
    z-index: 210;
  }

  body.page-privacy .header__nav,
  body.page-consent .header__nav,
  body.page-error .header__nav,
  body.home .header__nav {
    background: #000;
  }

  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */

@media (max-width: 749px) {
  :root { --container-pad: 20px; }
  .h0 { font-size: 36px; }
  .h2 { font-size: 28px; }
  .header__phone-time { display: none; }
  .header__inner { display: grid; grid-template-columns: auto 1fr auto; }
  .header__logo-wrap { position: static; transform: none; }
  .header__contacts { width: auto; }
  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { gap: 16px; }
  .page-hero { padding-bottom: 80px; }
}

body.page-consent .page-inner > .consent_page:first-child, body.page-privacy .page-inner > .privacy_page:first-child { padding-top: 0; }
.page-hero { padding: 60px 0 140px; text-align: center; }
.page-hero__breadcrumb { color: var(--color-text-secondary); margin-bottom: 20px; }
.page-hero__subtitle { margin-top: 20px; color: var(--color-text-secondary); max-width: 638px; margin-left: auto; margin-right: auto; }
.page-inner { padding: 0 0 120px; margin-top: 0; }
.rich_edit p { margin: 0 0 1em; }
.button_outline { display: inline-flex; align-items: center; justify-content: center; padding: 18px 32px; border: 2px solid #e8e8e8; border-radius: 40px; background: transparent; font-family: var(--font); font-weight: 600; font-stretch: condensed; font-size: 17px; line-height: 1; letter-spacing: -0.04em; color: var(--color-text-primary); cursor: pointer; transition: 0.2s; }
.button_outline:hover { border-color: var(--color-brand); }
.hidden-fields-container { display: none !important; }
/* CF7 removed — forms are native */
.kadr26-form__response--error { display: block; width: 100%; margin: 10px 0 0; padding: 10px; background: #f24822; font-family: var(--kadr-font-body); font-size: 14px; line-height: 1.3; color: #fff; box-sizing: border-box; }
.kadr26_breadcrumb { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; font-stretch: 100%; font-size: 15px; line-height: 1.4; letter-spacing: -0.02em; color: var(--color-text-secondary); }
.kadr26_breadcrumb a { color: inherit; text-decoration: none; }
.kadr26_breadcrumb a:hover { color: var(--color-brand); }
.kadr26_breadcrumb__sep { margin: 0; }
.kadr26_breadcrumb__current { color: inherit; }

.cookie_notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9980; padding: 20px 0 24px; background: #1e1e1e; box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3); border-top: 3px solid var(--color-brand); font-family: var(--font); visibility: hidden; opacity: 0; transform: translateY(100%); transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s; pointer-events: none; }
.cookie_notice.cookie_notice_in { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie_notice__inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; }
.cookie_notice__textwrap { flex: 1 1 280px; min-width: 0; }
.cookie_notice__title { margin: 0 0 8px; color: #fff; }
.cookie_notice__text { margin: 0; font-size: 15px; font-weight: 400; font-stretch: normal; line-height: 1.4; letter-spacing: -0.02em; color: #fff; }
.cookie_notice__text a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; transition: 0.2s; }
.cookie_notice__text a:hover { color: var(--color-brand); opacity: 0.8; }
.cookie_notice__btn { flex: 0 0 auto; min-width: 160px; height: 50px; padding: 0 28px; border: none; border-radius: 40px; background: var(--color-brand); font-family: var(--font); font-weight: 600; font-stretch: condensed; font-size: 14px; line-height: 1; letter-spacing: -0.02em; color: #000; cursor: pointer; transition: 0.2s; }
.cookie_notice__btn span { display: block; }
.cookie_notice__btn:hover { background: var(--color-brand); opacity: 0.85; }

@media (max-width: 750px) {
  .cookie_notice { padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cookie_notice__inner { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 8px 12px; }
  .cookie_notice__textwrap { display: contents; }
  .cookie_notice__title { margin: 0; font-size: 18px; line-height: 1.2; }
  .cookie_notice__text { font-size: 14px; line-height: 1.35; grid-column: 1 / -1; }
  .cookie_notice__btn { width: auto; min-width: 0; height: 40px; padding: 0 18px; grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
}

body.popup_show { height: 100%; overflow: hidden; }
.popup_zone { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 9990; display: none; overflow: auto; }
.popup_zone.active { display: block; }
.popup_zone__back { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(31, 31, 31, 0.6); cursor: pointer; }
.popup_zone__content { position: relative; min-height: 100%; padding: 40px 20px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.popup { position: relative; z-index: 1; background: #fff; border-radius: 22px; margin: 0 auto; max-width: calc(100vw - 40px); }
.popup_close { position: absolute; right: 16px; top: 16px; z-index: 3; padding: 0; border: 0; background: transparent; color: var(--color-text-primary); cursor: pointer; line-height: 0; transition: 0.2s; }
.popup_close:hover { color: var(--color-brand); }
.popup_thx { width: 440px; }
.popup_thx .popup_close { right: 20px; top: 20px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.popup_thx .popup_close:hover { background: var(--color-fill-secondary); color: var(--color-brand); }
.popup_thx .popup_content { padding: 56px 40px 40px; text-align: center; box-sizing: border-box; }
.popup_thx__icon { display: block; width: 64px; height: 64px; margin: 0 auto 24px; }
.popup_thx__icon circle, .popup_thx__icon path { stroke: var(--color-brand); }
.popup_thx__title { margin: 0 0 16px; text-align: center; color: var(--color-text-primary); }
.popup_thx__subtitle { margin: 0 auto 32px; max-width: 320px; font-weight: 400; font-stretch: normal; font-size: 15px; line-height: 1.4; letter-spacing: -0.02em; color: var(--color-text-secondary); text-align: center; }
.popup_thx__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; height: 50px; padding: 0 28px; border: none; border-radius: 40px; background: var(--color-brand); font-family: var(--font); font-weight: 600; font-stretch: condensed; font-size: 16px; line-height: 1; letter-spacing: -0.02em; color: #fff; cursor: pointer; transition: 0.2s; }
.popup_thx__btn span { display: block; }
.popup_thx__btn:hover { background: #1f1f1f; }

@media (min-width: 1324px) {
body:not(.home) section:not(.home_hero) > .container { max-width: 1240px; padding-left: 0; padding-right: 0; width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.page-privacy .page-hero > .container, .page-privacy .page-hero.container, .page-privacy .container.privacy_content { max-width: 1240px; padding-left: 0; padding-right: 0; width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.page-inner > .page-hero > .container { max-width: 1240px; padding-left: 0; padding-right: 0; width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.page-error .error_page.container { max-width: 720px; padding-left: 0; padding-right: 0; width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
body:not(.home):not(.page-error):not(.page-consent):not(.page-privacy) .header__inner { max-width: 1240px; padding-left: 0; padding-right: 0; width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
body:not(.home):not(.page-error):not(.page-consent):not(.page-privacy) .footer { max-width: 1240px; padding-left: 0; padding-right: 0; width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.cookie_notice__inner.container { max-width: 1240px; padding-left: 0; padding-right: 0; width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
}

@media (max-width: 749px) {
  br {
    display: none !important;
  }

  .popup_zone__content { padding: 20px 16px; }
  .popup_thx { width: 100%; max-width: 100%; border-radius: 16px; }
  .popup_thx .popup_content { padding: 48px 24px 32px; }
  .popup_thx__title.h3 { font-size: 32px; }
  .popup_thx__btn { width: 100%; min-width: 0; }
}

@media (max-width: 499px) {
  .popup_thx__subtitle {
    max-width: 100%;
  }
}

/* Yoast fix guide — инструкция pre_http_request */
.yoast-fix-guide {
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
  font-stretch: normal;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-primary);
}

.yoast-fix-guide h2.h3 {
  margin: 48px 0 24px;
  text-align: left;
}

.yoast-fix-guide h3.h5 {
  margin: 32px 0 16px;
  text-align: left;
}

.yoast-fix-guide p {
  margin: 0 0 16px;
}

.yoast-fix-guide ul,
.yoast-fix-guide ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.yoast-fix-guide ul li {
  list-style-type: disc;
  margin-bottom: 8px;
  display: list-item;
}

.yoast-fix-guide ol li {
  list-style-type: decimal;
  margin-bottom: 8px;
  display: list-item;
}

.yoast-fix-guide code {
  padding: 2px 6px;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--color-fill-secondary);
  border-radius: 4px;
  word-break: break-word;
}

.yoast-fix-guide pre {
  margin: 0 0 16px;
  padding: 20px 24px;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #e6e6e6;
  background: #1e1e1e;
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.yoast-fix-guide pre code {
  padding: 0;
  font-size: inherit;
  background: transparent;
  border-radius: 0;
}

.yoast-fix-guide strong {
  font-weight: 600;
}

@media (max-width: 749px) {
  .yoast-fix-guide {
    font-size: 14px;
  }

  .yoast-fix-guide h2.h3 {
    margin: 36px 0 20px;
  }

  .yoast-fix-guide h3.h5 {
    margin: 24px 0 12px;
  }

  .yoast-fix-guide pre {
    padding: 16px;
    font-size: 12px;
    border-radius: 8px;
  }
}
