@font-face {
  font-family: "Nata Sans";
  src: url("/fonts/nata-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MAK";
  src: url("/fonts/mak.woff2/mak.woff2") format("woff2"),
  url("/fonts/mak.woff2/mak.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   01. GLOBAL / TOKENS / RESET
   ========================================================= */

:root {
  --page-bg: #f6f7f2;
  --sidebar-bg: #5f6b80;
  --white: #fff;
  --text: #0d0d0d;
  --accent: #ed6c02;
  --sidebar-width: 323px;
  --page-left-gap: 24px;
  --page-right-gap: 43px;

  /* Единая горизонтальная сетка */
  --tablet-page-gap: 20px;
  --mobile-page-gap: 12px;

  /* Единый вертикальный ритм */
  --space-section: clamp(56px, 5vw, 72px);
  --space-section-lg: clamp(84px, 7vw, 108px);
  --space-heading: 40px;
  --space-content: 28px;
  --space-tight: 18px;
  --space-footer-y: 42px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
}

html {
  overflow-x: clip;

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: "Nata Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

/* Декоративный паттерн для мобильных синих блоков */
.blue-pattern {
  display: none;
  pointer-events: none;
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(22px, 1.65vw, 30px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.1px;
}

/* --- (min-width: 1729px) --- */
@media (min-width: 1729px) {
  :root {
    --sidebar-width: clamp(323px, 18.7vw, 360px);
    --page-left-gap: clamp(24px, 1.4vw, 30px);
    --page-right-gap: clamp(43px, 2.5vw, 50px);
  }
}

/* --- (max-width: 1280px) --- */
@media (max-width: 1280px) {
  :root {
    --sidebar-width: 280px;
    --page-left-gap: 20px;
    --page-right-gap: 28px;
  }
}

/* --- (max-width: 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --mobile-header-height: 76px;
    --page-left-gap: var(--tablet-page-gap);
    --page-right-gap: var(--tablet-page-gap);

    --space-section: 52px;
    --space-section-lg: 72px;
    --space-heading: 32px;
    --space-content: 24px;
    --space-tight: 18px;
    --space-footer-y: 40px;
  }
}

/* --- (max-width: 760px) --- */
@media (max-width: 760px) {
  :root {
    --space-section: 44px;
    --space-section-lg: 60px;
    --space-heading: 28px;
    --space-content: 22px;
    --space-tight: 16px;
    --space-footer-y: 38px;
  }

  .section-heading h2 {
    letter-spacing: -0.4px;
  }
}

/* --- (max-width: 640px) --- */
@media (max-width: 640px) {
  :root {
    --mobile-header-height: 68px;
  }
}

/* --- (max-width: 480px) --- */
@media (max-width: 480px) {
  :root {
    --page-left-gap: var(--mobile-page-gap);
    --page-right-gap: var(--mobile-page-gap);

    --space-section: 36px;
    --space-section-lg: 48px;
    --space-heading: 24px;
    --space-content: 18px;
    --space-tight: 14px;
    --space-footer-y: 34px;
  }

  .section-heading h2 {
    font-size: 24px;
  }
}


/* --- (prefers-reduced-motion: reduce) --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */

.breadcrumbs {
  padding:
    22px
    var(--page-right-gap)
    0
    var(--page-left-gap);
}


.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 8px;

  margin: 0;
  padding: 0;

  list-style: none;

  font-size: 13px;
  line-height: 1.3;
}


.breadcrumbs__item {
  display: flex;
  align-items: center;

  gap: 8px;
}


.breadcrumbs__item:not(:last-child)::after {
  content: "›";

  color: #9a9a95;
}


.breadcrumbs a {
  color: #777a77;

  transition:
    color 180ms ease;
}


.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: #111;

  outline: none;
}


.breadcrumbs [aria-current="page"] {
  color: #111;
}


@media (max-width: 1024px) {

  .breadcrumbs {
    padding-right: var(--tablet-page-gap);
    padding-left: var(--tablet-page-gap);
  }

}


@media (max-width: 480px) {

  .breadcrumbs {
    padding:
      16px
      var(--mobile-page-gap)
      0;
  }


  .breadcrumbs__list {
    gap: 6px;

    font-size: 12px;
  }


  .breadcrumbs__item {
    gap: 6px;
  }

}

/* =========================================================
   FORM CONSENT
   ========================================================= */

label.form-consent {
  display: flex !important;

  width: 100%;

  align-items: flex-start;
  justify-content: flex-start;

  gap: 10px;

  margin: 16px 0 0;
  padding: 0;

  cursor: pointer;
}


/* ---------------------------------------------------------
   CHECKBOX — RESET СТИЛЕЙ ОБЫЧНЫХ INPUT
   --------------------------------------------------------- */

label.form-consent
> input.form-consent__input[type="checkbox"] {

  display: block !important;

  flex: 0 0 16px !important;

  width: 16px !important;
  height: 16px !important;

  min-width: 16px !important;
  min-height: 16px !important;

  max-width: 16px !important;
  max-height: 16px !important;

  margin: 2px 0 0 !important;
  padding: 0 !important;

  border-radius: 2px;

  appearance: auto;
  -webkit-appearance: checkbox;

  accent-color:
    var(--accent, #ed6c02);

  cursor: pointer;
}


/* ---------------------------------------------------------
   TEXT
   --------------------------------------------------------- */

.form-consent__text {
  display: block;

  flex: 1 1 auto;

  min-width: 0;

  margin: 0;
  padding: 0;

  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;

  text-align: left;
  color: inherit;
}


/* ---------------------------------------------------------
   LINKS
   --------------------------------------------------------- */

.form-consent__text a {
  color: inherit;

  text-decoration: underline;
  text-underline-offset: 2px;

  transition:
    opacity 180ms ease;
}


.form-consent__text a:hover {
  opacity: .65;
}


.form-consent__text a:focus-visible {
  outline:
    1px
    solid
    currentColor;

  outline-offset: 2px;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 480px) {

  label.form-consent {
    gap: 8px;

    margin-top: 14px;
  }


  label.form-consent
  > input.form-consent__input[type="checkbox"] {

    flex-basis: 15px !important;

    width: 15px !important;
    height: 15px !important;

    min-width: 15px !important;
    min-height: 15px !important;

    max-width: 15px !important;
    max-height: 15px !important;
  }


  .form-consent__text {
    font-size: 11px;
  }

}

/* =========================================================
   FORM POPUP
   ========================================================= */
   
   
/* FORMIT ERRORS */

.form-popup__error {
  display: block;
  color: #b3261e;
  font-size: 12px;
  line-height: 1.4;
}

.form-popup__error:empty,
.form-popup__message:empty {
  display: none;
}

.form-popup [data-formit-success-message] {
  display: none !important;
}

/* SUCCESS */

.form-popup__success[hidden],
[data-popup-form-content][hidden] {
  display: none !important;
}

[data-popup-form-content] {
  transition: opacity 0.3s ease,
              transform 0.3s ease;
}

[data-popup-form-content].is-leaving {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.form-popup__success {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  opacity: 0;
  transform: translateY(14px);

  transition: opacity 0.45s ease,
              transform 0.45s ease;
}

.form-popup__success.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-popup__success-title {
  margin: 0 0 20px;
  font-family: "Mak", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
}

.form-popup__success-text {
  margin: 0;
  max-width: 380px;
  font-family: "Nata Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  [data-popup-form-content],
  .form-popup__success {
    transition: none;
  }
}


body.form-popup-open {
  overflow: hidden;
}


.form-popup {
  position: fixed;
  z-index: 1100;

  inset: 0;

  display: grid;
  place-items: center;

  padding: 24px;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}


.form-popup.is-open {
  opacity: 1;
  visibility: visible;

  pointer-events: auto;
}


/* =========================================================
   BACKDROP
   ========================================================= */

.form-popup__backdrop {
  position: absolute;

  inset: 0;

  background:
    rgb(13 13 13 / 72%);
}


/* =========================================================
   DIALOG
   ========================================================= */

.form-popup__dialog {
  position: relative;
  z-index: 1;

  width:
    min(
      640px,
      calc(100vw - 48px)
    );

  max-height:
    calc(100dvh - 48px);

  overflow-y: auto;

  margin: 0;

  color:
    var(--text, #0d0d0d);

  background:
    var(--page-bg, #f6f7f2);

  font-family:
    "Nata Sans",
    Arial,
    sans-serif;

  box-shadow:
    0
    24px
    80px
    rgb(0 0 0 / 18%);
}


/* =========================================================
   CONTENT
   ========================================================= */

.form-popup__content {
  padding:
    58px
    58px
    52px;
}


/* =========================================================
   CLOSE
   ========================================================= */

.form-popup__close {
  position: absolute;
  z-index: 3;

  top: 18px;
  right: 20px;

  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  padding: 0;

  border: 0;

  color: #111;
  background: transparent;

  font-family:
    Arial,
    sans-serif;

  font-size: 30px;
  font-weight: 200;
  line-height: 1;

  cursor: pointer;

  transition:
    opacity 180ms ease;
}


.form-popup__close:hover {
  opacity: .55;
}


.form-popup__close:focus-visible {
  outline:
    1px
    solid
    currentColor;

  outline-offset: 3px;
}


/* =========================================================
   TITLE
   ========================================================= */

.form-popup__title {
  margin: 0;

  font-size:
    clamp(
      30px,
      3vw,
      40px
    );

  font-weight: 300;
  line-height: 1.05;

  letter-spacing: -.4px;
}


.form-popup__lead {
  max-width: 460px;

  margin:
    16px
    0
    36px;

  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;

  opacity: .72;
}


/* =========================================================
   FORM
   ========================================================= */

.form-popup__form {
  display: flex;
  flex-direction: column;

  width: 100%;
}


/* =========================================================
   FIELD
   ========================================================= */

.form-popup__field {
  display: block;

  width: 100%;
}


.form-popup__field + .form-popup__field {
  margin-top: 22px;
}


.form-popup__field input,
.form-popup__field textarea {
  display: block;

  width: 100%;
  min-width: 0;

  padding:
    11px
    0
    12px;

  border: 0;
  border-bottom:
    1px
    solid
    rgb(13 13 13 / 55%);

  border-radius: 0;

  color:
    var(--text, #0d0d0d);

  background: transparent;

  font-family:
    inherit;

  font-size: 17px;
  font-weight: 300;
  line-height: 1.3;

  text-align: center;

  outline: none;

  appearance: none;
}


.form-popup__field textarea {
  min-height: 46px;

  resize: vertical;
}


.form-popup__field input::placeholder,
.form-popup__field textarea::placeholder {
  color:
    rgb(13 13 13 / 80%);

  opacity: 1;
}


.form-popup__field input:focus,
.form-popup__field textarea:focus {
  border-bottom-color:
    var(--accent, #ed6c02);
}


/* =========================================================
   CONSENT
   ========================================================= */

.form-popup__consent {
  margin-top: 28px;
}


/*
  На случай, если CSS других форм
  задаёт всем input большие размеры.
*/

.form-popup
.form-consent__input[type="checkbox"] {
  flex: 0 0 16px !important;

  width: 16px !important;
  height: 16px !important;

  min-width: 16px !important;
  min-height: 16px !important;

  max-width: 16px !important;
  max-height: 16px !important;

  padding: 0 !important;

  appearance: auto;
  -webkit-appearance: checkbox;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.form-popup__submit {
  display: grid;
  place-items: center;

  width: 100%;
  min-height: 52px;

  margin-top: 30px;
  padding:
    10px
    24px;

  border:
    2px
    solid
    var(--sidebar-bg, #5f6b80);

  border-radius: 999px;

  color:
    var(--sidebar-bg, #5f6b80);

  background: transparent;

  font-family: inherit;

  font-size: 17px;
  font-weight: 300;

  cursor: pointer;

  transition:
    color 180ms ease,
    background 180ms ease;
}


.form-popup__submit:hover,
.form-popup__submit:focus-visible {
  color: #fff;

  background:
    var(--sidebar-bg, #5f6b80);

  outline: none;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.form-popup__message {
  min-height: 18px;

  margin:
    14px
    0
    0;

  font-size: 13px;
  font-weight: 300;

  text-align: center;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

  .form-popup {
    padding: 12px;
  }


  .form-popup__dialog {
    width:
      calc(
        100vw - 24px
      );

    max-height:
      calc(
        100dvh - 24px
      );
  }


  .form-popup__content {
    padding:
      48px
      20px
      34px;
  }


  .form-popup__title {
    padding-right: 26px;

    font-size: 30px;
  }


  .form-popup__lead {
    margin-bottom: 28px;

    font-size: 14px;
  }


  .form-popup__field + .form-popup__field {
    margin-top: 18px;
  }


  .form-popup__field input,
  .form-popup__field textarea {
    font-size: 16px;
  }


  .form-popup__consent {
    margin-top: 24px;
  }


  .form-popup__submit {
    margin-top: 26px;

    min-height: 50px;
  }

}