@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&display=swap");

/* =========================================================
   ТОЭ-24 — ОПТИМИЗИРОВАННЫЕ ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   Версия после перехода на новый HTML/CSS hero-блок.
   Порядок: форма → меню → якоря → примеры → футер →
   общая стабилизация кнопок → новый hero → адаптив.
   ========================================================= */

/* =========================================================
   1. ФОРМА ЗАЯВКИ ТОЭ-24
   На компьютере: подпись слева, поле справа.
   На телефоне: подпись сверху, поле снизу.
   ========================================================= */

/* ---------------------------------------------------------
   1.1. ОБЩАЯ ШИРИНА ФОРМЫ
   --------------------------------------------------------- */

#order .elementor-widget-shortcode,
#order .elementor-shortcode,
#order .wpcf7,
#order .wpcf7-form {
  width: 100%;
}

/* ---------------------------------------------------------
   1.2. ОДНА СТРОКА ФОРМЫ
   Левая колонка — название поля.
   Правая колонка — само поле.
   --------------------------------------------------------- */

#order .form-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;

  width: 100%;
  margin: 0;
}

#order .form-row p,
#order .form-bottom p {
  margin: 0;
}

/* ---------------------------------------------------------
   1.3. НАЗВАНИЯ ПОЛЕЙ
   --------------------------------------------------------- */

#order .form-label {
  width: 160px;
  margin: 0;
  padding: 0;

  color: #1f2937;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

/* ---------------------------------------------------------
   1.4. ПРАВАЯ КОЛОНКА С ПОЛЕМ
   --------------------------------------------------------- */

#order .form-field {
  width: 100%;
  min-width: 0;
}

#order .form-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* ---------------------------------------------------------
   1.5. ИМЯ, EMAIL, СРОК И ДИСЦИПЛИНА
   --------------------------------------------------------- */

#order .form-field input[type="text"],
#order .form-field input[type="email"],
#order .form-field select {
  display: block;
  width: 100%;
  height: 40px;
  box-sizing: border-box;

  margin: 0;
  padding: 6px 11px;

  border: 1px solid #d1d5db;
  border-radius: 8px;

  background: #ffffff;
  color: #1f2937;

  font-family: inherit;
  font-size: 16px;
}

/* ---------------------------------------------------------
   1.6. ПОЛЕ «ОПИШИТЕ ЗАДАНИЕ»
   --------------------------------------------------------- */

#order .form-row-message {
  align-items: start;
}

#order .form-row-message .form-label {
  padding-top: 8px;
}

#order .form-field textarea {
  display: block;
  width: 100%;
  height: 90px;
  min-height: 90px;
  box-sizing: border-box;

  margin: 0;
  padding: 8px 11px;

  border: 1px solid #d1d5db;
  border-radius: 8px;

  background: #ffffff;
  color: #1f2937;

  font-family: inherit;
  font-size: 16px;

  resize: vertical;
}

/* ---------------------------------------------------------
   1.7. ПОДСВЕТКА АКТИВНОГО ПОЛЯ
   --------------------------------------------------------- */

#order .form-field input[type="text"]:focus,
#order .form-field input[type="email"]:focus,
#order .form-field select:focus,
#order .form-field textarea:focus {
  outline: none;
  border-color: #2b5eaa;
  box-shadow: 0 0 0 2px rgba(43, 94, 170, 0.12);
}

/* ---------------------------------------------------------
   1.8. ПРИКРЕПЛЕНИЕ ФАЙЛА
   --------------------------------------------------------- */

#order .form-field input[type="file"] {
  display: block;
  width: 100%;
  margin: 0;

  color: #1f2937;
  font-family: inherit;
  font-size: 14px;
}

#order .form-field input[type="file"]::file-selector-button {
  padding: 6px 11px;
  margin-right: 8px;

  border: 1px solid #d1d5db;
  border-radius: 6px;

  background: #f5f6f8;
  color: #1f2937;

  font-family: inherit;
  cursor: pointer;

  transition: background-color 0.2s ease;
}

#order .form-field input[type="file"]::file-selector-button:hover {
  background: #e9ebef;
}

/* ---------------------------------------------------------
   1.9. НИЖНЯЯ ЧАСТЬ ФОРМЫ
   Согласие и кнопка начинаются там же,
   где начинаются правые поля.
   160 px подпись + 16 px промежуток = 176 px.
   --------------------------------------------------------- */

#order .form-bottom {
  margin-left: 176px;
}

/* ---------------------------------------------------------
   1.10. СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ
   --------------------------------------------------------- */

#order .wpcf7-acceptance {
  display: block;
  margin: 7px 0 9px;
  line-height: 1.25;
}

#order .wpcf7-acceptance label {
  font-size: 14px;
  font-weight: 400;
}

#order .wpcf7-acceptance input[type="checkbox"] {
  margin-right: 5px;
}

#order .wpcf7-acceptance a {
  color: #2b5eaa;
  text-decoration: underline;
}

#order .wpcf7-acceptance a:hover,
#order .wpcf7-acceptance a:focus {
  color: #1f4787;
}

/* Вторая строка текста согласия */
#order .wpcf7-acceptance .privacy-second-line {
  display: block !important;
  margin-top: 2px;
}

/* ---------------------------------------------------------
   1.11. КНОПКА «ОТПРАВИТЬ ЗАДАНИЕ»
   Меняется только цвет — положение и размер фиксированы.
   --------------------------------------------------------- */

#order .wpcf7-form input[type="submit"],
#order .wpcf7-form input[type="submit"]:hover,
#order .wpcf7-form input[type="submit"]:focus,
#order .wpcf7-form input[type="submit"]:active {
  margin: 0;
  padding: 10px 18px;

  border: 0;
  border-radius: 8px;

  color: #1f2937;

  font-family: inherit;
  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transform: none !important;
  translate: none !important;
  scale: none !important;

  transition: background-color 0.2s ease !important;
}

#order .wpcf7-form input[type="submit"] {
  background: #f2b63d;
}

#order .wpcf7-form input[type="submit"]:hover,
#order .wpcf7-form input[type="submit"]:focus {
  background: #e5a928;
}

#order .wpcf7-form input[type="submit"]:active {
  background: #d99d1e;
}

/* ---------------------------------------------------------
   1.12. СООБЩЕНИЕ ПОСЛЕ ОТПРАВКИ / ОШИБКИ
   --------------------------------------------------------- */

#order .wpcf7-response-output {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---------------------------------------------------------
   1.13. ОБЯЗАТЕЛЬНЫЕ ПОЛЯ — ОШИБКИ
   --------------------------------------------------------- */

#order .wpcf7-not-valid {
  border-color: #d63638 !important;
  box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.1) !important;
}

#order .wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;

  color: #d63638;
  font-size: 13px;
  line-height: 1.25;
}

/* =========================================================
   2. МОБИЛЬНАЯ ВЕРСИЯ ФОРМЫ
   На телефоне подпись располагается над полем.
   ========================================================= */

@media (max-width: 767px) {
  #order .form-row {
    grid-template-columns: 1fr;
    row-gap: 4px;
    margin-bottom: 8px;
  }

  #order .form-label {
    width: 100%;
  }

  #order .form-row-message .form-label {
    padding-top: 0;
  }

  #order .form-bottom {
    margin-left: 0;
  }

  #order .form-field input[type="text"],
  #order .form-field input[type="email"],
  #order .form-field select {
    height: 40px;
    font-size: 15px;
  }

  #order .form-field textarea {
    height: 100px;
    min-height: 100px;
    font-size: 15px;
  }

  #order .wpcf7-acceptance label {
    font-size: 13px;
  }

  #order .wpcf7-form input[type="submit"] {
    width: 100%;
  }
}

/* =========================================================
   3. ЗАКРЕПЛЁННОЕ ВЕРХНЕЕ МЕНЮ
   Остаётся сверху при прокрутке страницы.
   ========================================================= */

#site-header {
  position: sticky;
  top: 0;
  z-index: 9999;

  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Если вы вошли в WordPress — учитываем верхнюю админ-панель */
.admin-bar #site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar #site-header {
    top: 46px;
  }
}

/* =========================================================
   4. ЯКОРЯ И ПЛАВНАЯ ПРОКРУТКА
   ========================================================= */

html {
  scroll-behavior: smooth;
}

/* Чтобы закреплённое меню не перекрывало форму */
#order {
  scroll-margin-top: 70px;
}

/* Остальные разделы */
#faq,
#specialists,
#directions,
#examples {
  scroll-margin-top: 20px;
}

@media (max-width: 767px) {
  #order {
    scroll-margin-top: 15px;
  }
}

/* =========================================================
   5. ВЕРХНЕЕ МЕНЮ — ФОН ПРИ НАВЕДЕНИИ И НАЖАТИИ
   Пункты не двигаются: меняются только фон и цвет.
   ========================================================= */

/* Обычные пункты меню */
#site-header .site-navigation a {
  color: #2b5eaa !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;

  text-decoration: none !important;

  transform: none !important;
  translate: none !important;
  scale: none !important;

  transition:
    background-color 0.2s ease,
    color 0.2s ease !important;
}

/* Наведение мыши */
#site-header .site-navigation a:hover,
#site-header .site-navigation a:focus {
  background-color: #eaf1fb !important;
  color: #1f4787 !important;

  transform: none !important;
}

/* Момент нажатия */
#site-header .site-navigation a:active {
  background-color: #d6e4f7 !important;
  color: #163b73 !important;

  transform: none !important;
}

/* =========================================================
   7. КАРТОЧКИ «ПРИМЕРЫ»
   Подчёркивание названия только текущей карточки.
   ========================================================= */

#examples a.example-card:hover > h3.e-heading-base,
#examples a.example-card:focus > h3.e-heading-base {
  color: #163b73 !important;

  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}

/* =========================================================
   8. ССЫЛКА «ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ» В ФУТЕРЕ
   ========================================================= */

#site-footer .copyright .footer-privacy-link,
#site-footer .copyright .footer-privacy-link:link,
#site-footer .copyright .footer-privacy-link:visited {
  color: #ffffff !important;

  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Наведение */
#site-footer .copyright .footer-privacy-link:hover,
#site-footer .copyright .footer-privacy-link:focus {
  color: #f2b63d !important;
  text-decoration: underline !important;
}

/* Нажатие */
#site-footer .copyright .footer-privacy-link:active {
  color: #e5a928 !important;
}

/* =========================================================
   9. ELEMENTOR-КНОПКИ — БЕЗ «ПЛАВАНИЯ»
   Оставлено как страховка для остальных старых блоков сайта.
   Размеры и цвета по-прежнему задаются в Elementor.
   ========================================================= */

.elementor-9 a.e-button-base,
.elementor-9 a.e-button-base:hover,
.elementor-9 a.e-button-base:focus,
.elementor-9 a.e-button-base:active {
  transform: none !important;
  translate: none !important;
  scale: none !important;
}

/* =========================================================
   10. НОВЫЙ HERO-БЛОК ТОЭ-24
   Вся композиция управляется HTML + CSS.
   ========================================================= */

/* ---------------------------------------------------------
   10.1. ELEMENTOR-ОБОЛОЧКА HERO
   Убирает ограничения, отступы и максимальную ширину.
   --------------------------------------------------------- */

.toe24-hero-shell,
.toe24-hero-shell > .e-con-inner,
.toe24-hero-shell .elementor-widget-html,
.toe24-hero-shell .elementor-widget-container {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

/* ---------------------------------------------------------
   10.2. ОБЩИЙ HERO
   --------------------------------------------------------- */

.toe24-hero {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;

  background: #f4f8fd;
  color: #102a4c;
}

.toe24-hero *,
.toe24-hero *::before,
.toe24-hero *::after {
  box-sizing: border-box;
}

.toe24-hero__inner {
  width: 100%;
  max-width: 1740px;
  min-height: 520px;

  margin: 0 auto;
  padding: 52px 60px;

  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(420px, 0.8fr);
  gap: 55px;
  align-items: center;
}

/* ---------------------------------------------------------
   10.3. ЛЕВАЯ ЧАСТЬ
   --------------------------------------------------------- */

.toe24-hero__main {
  min-width: 0;
}

/* Верхняя плашка ТОЭ-24 и подпись */

.toe24-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;

  margin-bottom: 24px;
}

.toe24-hero__brand {
  display: inline-flex;
  align-items: center;

  padding: 9px 18px;

  border-radius: 15px;
  background: #e4f0ff;

  color: #1761c6;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.toe24-hero__slogan {
  color: #98a5b6;
  font-size: 19px;
  font-weight: 500;
}

/* Главный заголовок */

.toe24-hero__title {
  margin: 0 0 18px;

  color: #102a4c;

  font-family: inherit;
  font-size: clamp(46px, 3.3vw, 64px);
  font-weight: 750;
  line-height: 0.98 !important;
  letter-spacing: -1.2px;
}

.toe24-hero__title span {
  color: #2463c7;
}

/* Описание */

.toe24-hero__lead {
  max-width: 820px;

  margin: 0 0 18px;

  color: #263b55;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

/* ---------------------------------------------------------
   10.4. ПЛАШКИ ДИСЦИПЛИН
   На широком экране — одна строка.
   --------------------------------------------------------- */

.toe24-hero__tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;

  margin-bottom: 22px;
}

.toe24-hero__tags span {
  padding: 6px 11px;

  border-radius: 8px;
  background: #e7f1ff;

  color: #1761c6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;

  white-space: nowrap;
}

/* ---------------------------------------------------------
   10.5. ДВЕ КНОПКИ СЛЕВА
   Геометрия во всех состояниях абсолютно одинаковая.
   Меняются только цвета.
   --------------------------------------------------------- */

.toe24-hero .toe24-btn,
.toe24-hero .toe24-btn:link,
.toe24-hero .toe24-btn:visited,
.toe24-hero .toe24-btn:hover,
.toe24-hero .toe24-btn:focus,
.toe24-hero .toe24-btn:active {
  min-height: 56px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;

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

  border-width: 2px !important;
  border-style: solid !important;
  border-radius: 9px !important;

  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  text-decoration: none !important;

  position: relative;
  top: 0 !important;
  left: 0 !important;

  transform: none !important;
  translate: none !important;
  scale: none !important;

  box-shadow: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease !important;
}

.toe24-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;

  margin-bottom: 32px;
}

/* Жёлтая кнопка */
.toe24-hero .toe24-btn--primary,
.toe24-hero .toe24-btn--primary:link,
.toe24-hero .toe24-btn--primary:visited {
  border-color: #f5b936 !important;
  background: #f5b936 !important;
  color: #102a4c !important;
}

.toe24-hero .toe24-btn--primary:hover,
.toe24-hero .toe24-btn--primary:focus {
  border-color: #e6a91e !important;
  background: #e6a91e !important;
  color: #102a4c !important;
}

.toe24-hero .toe24-btn--primary:active {
  border-color: #d99d1e !important;
  background: #d99d1e !important;
  color: #102a4c !important;
}

/* Белая кнопка */
.toe24-hero .toe24-btn--secondary,
.toe24-hero .toe24-btn--secondary:link,
.toe24-hero .toe24-btn--secondary:visited {
  border-color: #2463c7 !important;
  background: #ffffff !important;
  color: #2457a6 !important;
}

.toe24-hero .toe24-btn--secondary:hover,
.toe24-hero .toe24-btn--secondary:focus {
  border-color: #174c9c !important;
  background: #f5f9ff !important;
  color: #174c9c !important;
}

.toe24-hero .toe24-btn--secondary:active {
  border-color: #163b73 !important;
  background: #edf4fd !important;
  color: #163b73 !important;
}

/* ---------------------------------------------------------
   10.6. ПРЕИМУЩЕСТВА
   --------------------------------------------------------- */

.toe24-hero__benefits {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 28px;
  align-items: center;
}

.toe24-benefit {
  display: flex;
  align-items: center;
  gap: 11px;

  color: #263b55;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.toe24-benefit__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #e6f1ff;
}

.toe24-benefit__icon svg {
  width: 25px;
  height: 25px;

  fill: none;
  stroke: #1761c6;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------
   10.7. ПРАВАЯ КАРТОЧКА
   --------------------------------------------------------- */

.toe24-hero__card {
  width: 100%;
  max-width: 520px;

  justify-self: end;

  padding: 38px 38px 34px;

  border: 1px solid rgba(43, 94, 170, 0.08);
  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 10px 30px rgba(20, 42, 74, 0.13),
    0 2px 7px rgba(20, 42, 74, 0.08);
}

.toe24-hero__card h2 {
  margin: 0 0 22px;

  color: #102a4c;
  font-size: 30px;
  font-weight: 750;
  line-height: 1.15;
}

.toe24-hero__card > p {
  margin: 0 0 23px;

  color: #263b55;
  font-size: 17px;
  line-height: 1.55;
}

/* ---------------------------------------------------------
   10.8. ЖЁЛТАЯ КНОПКА В ПРАВОЙ КАРТОЧКЕ
   Также полностью фиксирована по положению и размеру.
   --------------------------------------------------------- */

.toe24-hero .toe24-card-button,
.toe24-hero .toe24-card-button:link,
.toe24-hero .toe24-card-button:visited,
.toe24-hero .toe24-card-button:hover,
.toe24-hero .toe24-card-button:focus,
.toe24-hero .toe24-card-button:active {
  width: 100%;
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;

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

  border: 0 !important;
  border-radius: 9px !important;

  color: #102a4c !important;

  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  text-decoration: none !important;

  position: relative;
  top: 0 !important;
  left: 0 !important;

  transform: none !important;
  translate: none !important;
  scale: none !important;

  box-shadow: none;

  transition: background-color 0.2s ease !important;
}

.toe24-hero .toe24-card-button,
.toe24-hero .toe24-card-button:link,
.toe24-hero .toe24-card-button:visited {
  background: #f5b936 !important;
}

.toe24-hero .toe24-card-button:hover,
.toe24-hero .toe24-card-button:focus {
  background: #e6a91e !important;
}

.toe24-hero .toe24-card-button:active {
  background: #d99d1e !important;
}

.toe24-card-button span {
  font-size: 27px;
  font-weight: 400;

  transform: none !important;
  translate: none !important;
}

/* ---------------------------------------------------------
   10.9. НИЖНИЕ ТРИ ПУНКТА КАРТОЧКИ
   --------------------------------------------------------- */

.toe24-card-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;

  margin-top: 27px;
}

.toe24-card-steps > div {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;

  text-align: center;

  color: #334a66;
  font-size: 12px;
  line-height: 1.25;
}

.toe24-card-steps__icon {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #f0f6ff;

  color: #1761c6;
  font-size: 20px;
  font-weight: 700;
}

/* =========================================================
   11. HERO — ПЛАНШЕТ
   ВАЖНО: адаптив расположен после основных правил,
   поэтому его больше ничего не переопределяет.
   ========================================================= */

@media (max-width: 1100px) {
  .toe24-hero__inner {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 40px;

    padding: 46px 32px;
  }

  .toe24-hero__title {
    font-size: 45px;
  }

  .toe24-hero__tags {
    flex-wrap: wrap;
  }

  .toe24-hero__benefits {
    grid-template-columns: repeat(2, max-content);
    row-gap: 16px;
  }

  .toe24-hero__card {
    max-width: 100%;
    padding: 30px;
  }
}

/* =========================================================
   12. HERO — МОБИЛЬНЫЙ
   ========================================================= */

@media (max-width: 767px) {
  .toe24-hero__inner {
    min-height: 0;

    display: block;

    padding: 34px 20px;
  }

  .toe24-hero__eyebrow {
    gap: 11px;
    margin-bottom: 20px;
  }

  .toe24-hero__brand {
    padding: 7px 12px;
    font-size: 15px;
  }

  .toe24-hero__slogan {
    font-size: 14px;
  }

  .toe24-hero__title {
    margin-bottom: 16px;

    font-size: 38px;
    line-height: 1.08 !important;
    letter-spacing: -0.5px;
  }

  .toe24-hero__lead {
    font-size: 16px;
  }

  .toe24-hero__tags {
    flex-wrap: wrap;
  }

  .toe24-hero__actions {
    display: grid;
    grid-template-columns: 1fr;

    margin-bottom: 28px;
  }

  .toe24-hero .toe24-btn {
    width: 100%;
  }

  .toe24-hero__benefits {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;

    margin-bottom: 34px;
  }

  .toe24-benefit {
    font-size: 13px;
  }

  .toe24-benefit__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .toe24-hero__card {
    max-width: none;
    padding: 28px 22px;

    border-radius: 15px;
  }

  .toe24-hero__card h2 {
    font-size: 26px;
  }

  .toe24-card-steps {
    gap: 4px;
  }

  .toe24-card-steps > div {
    font-size: 11px;
  }
}

/* =========================================================
   ФОРМА — ФИНАЛЬНАЯ ПОДГОНКА ОТСТУПОВ
   ========================================================= */

/* Небольшой воздух между строками */
#order .form-row {
  margin-bottom: 8px;
}

/* У поля описания чуть больше отступ снизу */
#order .form-row-message {
  margin-bottom: 10px;
}

/* Поле описания немного выше */
#order .form-field textarea {
  height: 105px;
  min-height: 105px;
}

/* Файл */
#order .form-row:last-of-type {
  margin-bottom: 10px;
}

/* Согласие */
#order .wpcf7-acceptance {
  margin: 4px 0 10px;
}

/* Небольшой отступ перед кнопкой */
#order .form-bottom > p:last-child {
  margin-top: 4px;
}

/* =========================================================
   13. НАПРАВЛЕНИЯ РАБОТЫ
   Новый HTML/CSS-блок.
   ========================================================= */

/* ---------------------------------------------------------
   13.1. ОБЩАЯ ОБОЛОЧКА
   --------------------------------------------------------- */

.toe24-directions {
  width: 100%;

  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 55%, #f4f8fd 100%);

  color: #102a4c;
}

.toe24-directions *,
.toe24-directions *::before,
.toe24-directions *::after {
  box-sizing: border-box;
}

.toe24-directions__inner {
  position: relative;

  width: 100%;
  max-width: 1740px;

  margin: 0 auto;
  padding: 62px 60px 48px;
}

/* ---------------------------------------------------------
   13.2. ВЕРХНЯЯ ЧАСТЬ
   --------------------------------------------------------- */

.toe24-directions__head {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 40px;

  margin-bottom: 34px;
}

.toe24-directions__intro {
  position: relative;
  z-index: 2;
}

.toe24-directions__label {
  display: inline-flex;
  align-items: center;

  margin-bottom: 16px;
  padding: 7px 15px;

  border-radius: 999px;

  background: #eaf3ff;

  color: #1761c6;

  font-size: 13px;
  font-weight: 700;
  line-height: 1;

  letter-spacing: 0.8px;
}

.toe24-directions__title {
  margin: 0 0 14px;

  color: #102a4c;

  font-size: clamp(40px, 3vw, 58px);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -1px;
}

.toe24-directions__title span {
  color: #2463c7;
}

.toe24-directions__subtitle {
  max-width: 900px;

  margin: 0;

  color: #40546f;

  font-size: 19px;
  line-height: 1.55;
}

/* ---------------------------------------------------------
   13.3. ДЕКОР СПРАВА
   --------------------------------------------------------- */

.toe24-directions__decor {
  position: relative;

  min-height: 185px;

  overflow: hidden;
  pointer-events: none;
}

/* Светлый круг */

.toe24-directions__sun {
  position: absolute;

  width: 62px;
  height: 62px;

  right: 190px;
  top: 7px;

  border-radius: 50%;

  background: rgba(205, 225, 252, 0.48);
}

/* Рукописная надпись */

.toe24-directions__note {
  position: absolute;

  left: 5px;
  top: 30px;

  color: rgba(67, 128, 214, 0.52);

  font-family: "Caveat", cursive;
  font-size: 31px;
  font-weight: 600;
  font-style: normal;
  line-height: 0.95;

  transform: rotate(-7deg);
}

.toe24-directions__note > span {
  display: block;
  margin-left: 34px;
}

.toe24-directions__note-line {
  display: block;

  width: 145px;
  height: 30px;

  margin-top: 2px;
  margin-left: 20px;
}

.toe24-directions__note-line path {
  fill: none;

  stroke: rgba(67, 128, 214, 0.35);
  stroke-width: 2;

  stroke-linecap: round;
}

/* Обе опоры */

.toe24-directions__tower {
  position: absolute;

  color: #9bc2f4;
}

/* Дальняя */

.toe24-directions__tower--back {
  width: 115px;
  height: 155px;

  right: 123px;
  top: 49px;

  opacity: 0.13;
}

/* Основная */

.toe24-directions__tower--main {
  width: 190px;
  height: 225px;

  right: -9px;
  top: -23px;

  opacity: 0.48;
}

/* ---------------------------------------------------------
   13.4. СЕТКА КАРТОЧЕК
   --------------------------------------------------------- */

.toe24-directions__grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 22px;
}

/* ---------------------------------------------------------
   13.5. КАРТОЧКА
   Вся карточка является ссылкой на форму.
   --------------------------------------------------------- */

.toe24-direction-card,
.toe24-direction-card:link,
.toe24-direction-card:visited {
  min-height: 225px;

  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 24px;

  align-items: start;

  padding: 24px 22px;

  border: 1px solid #dde9f7;
  border-radius: 16px;

  background: linear-gradient(135deg, #ffffff 0%, #ffffff 62%, #f8fbff 100%);

  color: #102a4c;

  text-decoration: none !important;

  box-shadow: 0 7px 22px rgba(35, 72, 120, 0.035);

  transform: none;

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

/* Наведение */

.toe24-direction-card:hover,
.toe24-direction-card:focus {
  border-color: #bfd6f6;

  background: linear-gradient(135deg, #ffffff 0%, #fcfdff 58%, #f0f6ff 100%);

  color: #102a4c;

  box-shadow: 0 10px 26px rgba(35, 72, 120, 0.08);

  text-decoration: none !important;

  transform: none;
}

/* ---------------------------------------------------------
   13.6. ИКОНКА
   --------------------------------------------------------- */

.toe24-direction-card__icon {
  width: 84px;
  height: 84px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background: #eaf3ff;

  color: #1761c6;
}

.toe24-direction-card__icon svg {
  width: 56px;
  height: 56px;
}

/* ---------------------------------------------------------
   13.7. ТЕКСТ КАРТОЧКИ
   --------------------------------------------------------- */

.toe24-direction-card__content {
  min-width: 0;
}

.toe24-direction-card__content h3 {
  margin: 6px 0 12px;

  color: #102a4c;

  font-size: 20px;
  font-weight: 750;
  line-height: 1.18;
}

.toe24-direction-card__content p {
  margin: 0;

  color: #40546f;

  font-size: 16px;
  line-height: 1.48;
}

/* ---------------------------------------------------------
   13.8. НИЖНЯЯ ПЛАШКА
   --------------------------------------------------------- */

.toe24-directions__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  margin-top: 24px;
  padding: 20px 26px;

  border: 1px solid #e1ecf9;
  border-radius: 16px;

  background: linear-gradient(90deg, #f1f7ff 0%, #f7faff 100%);
}

.toe24-directions__cta-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toe24-directions__cta-text strong {
  color: #102a4c;

  font-size: 18px;
  font-weight: 750;
}

.toe24-directions__cta-text span {
  color: #40546f;

  font-size: 15px;
  line-height: 1.4;
}

/* ---------------------------------------------------------
   13.9. КНОПКА «ОТПРАВИТЬ ЗАЯВКУ»
   Геометрия полностью фиксирована.
   --------------------------------------------------------- */

.toe24-directions .toe24-directions__cta-button,
.toe24-directions .toe24-directions__cta-button:link,
.toe24-directions .toe24-directions__cta-button:visited,
.toe24-directions .toe24-directions__cta-button:hover,
.toe24-directions .toe24-directions__cta-button:focus,
.toe24-directions .toe24-directions__cta-button:active {
  width: auto !important;
  min-width: 220px !important;

  height: 52px !important;
  min-height: 52px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;

  box-sizing: border-box !important;

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

  border-width: 2px !important;
  border-style: solid !important;
  border-radius: 10px !important;

  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  text-decoration: none !important;

  position: relative !important;
  top: 0 !important;
  left: 0 !important;

  transform: none !important;
  translate: none !important;
  scale: none !important;

  box-shadow: none !important;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease !important;
}

.toe24-directions .toe24-directions__cta-button,
.toe24-directions .toe24-directions__cta-button:link,
.toe24-directions .toe24-directions__cta-button:visited {
  border-color: #2463c7 !important;
  background: #ffffff !important;
  color: #2457a6 !important;
}

.toe24-directions .toe24-directions__cta-button:hover,
.toe24-directions .toe24-directions__cta-button:focus {
  border-color: #174c9c !important;
  background: #edf5ff !important;
  color: #174c9c !important;
}

.toe24-directions .toe24-directions__cta-button:active {
  border-color: #163b73 !important;
  background: #e4effd !important;
  color: #163b73 !important;
}

.toe24-directions .toe24-directions__cta-button span,
.toe24-directions .toe24-directions__cta-button:hover span,
.toe24-directions .toe24-directions__cta-button:focus span,
.toe24-directions .toe24-directions__cta-button:active span {
  display: inline-block;

  font-size: 23px;
  font-weight: 400;
  line-height: 1;

  transform: none !important;
  translate: none !important;
}

/* =========================================================
   14. НАПРАВЛЕНИЯ — ПЛАНШЕТ
   ========================================================= */

@media (max-width: 1100px) {
  .toe24-directions__inner {
    padding: 48px 32px 42px;
  }

  .toe24-directions__head {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .toe24-directions__title {
    font-size: 44px;
  }

  .toe24-directions__subtitle {
    font-size: 17px;
  }

  .toe24-directions__note {
    font-size: 19px;
  }

  .toe24-directions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toe24-direction-card {
    min-height: 205px;
  }
}

/* =========================================================
   15. НАПРАВЛЕНИЯ — МОБИЛЬНЫЙ
   ========================================================= */

@media (max-width: 767px) {
  .toe24-directions__inner {
    padding: 36px 20px;
  }

  .toe24-directions__head {
    display: block;

    margin-bottom: 25px;
  }

  .toe24-directions__decor {
    display: none;
  }

  .toe24-directions__label {
    margin-bottom: 13px;

    font-size: 11px;
  }

  .toe24-directions__title {
    margin-bottom: 12px;

    font-size: 34px;
    letter-spacing: -0.5px;
  }

  .toe24-directions__subtitle {
    font-size: 15px;
    line-height: 1.5;
  }

  .toe24-directions__grid {
    grid-template-columns: 1fr;

    gap: 14px;
  }

  .toe24-direction-card {
    min-height: 0;

    grid-template-columns: 62px minmax(0, 1fr);
    gap: 16px;

    padding: 18px 16px;

    border-radius: 13px;
  }

  .toe24-direction-card__icon {
    width: 62px;
    height: 62px;

    border-radius: 12px;
  }

  .toe24-direction-card__icon svg {
    width: 42px;
    height: 42px;
  }

  .toe24-direction-card__content h3 {
    margin: 2px 0 8px;

    font-size: 17px;
  }

  .toe24-direction-card__content p {
    font-size: 14px;
    line-height: 1.42;
  }

  .toe24-directions__cta {
    align-items: stretch;
    flex-direction: column;

    gap: 17px;

    margin-top: 16px;
    padding: 19px 17px;
  }

  .toe24-directions__cta-text strong {
    font-size: 17px;
  }

  .toe24-directions__cta-text span {
    font-size: 14px;
  }

  .toe24-directions__cta-button {
    width: 100%;
    min-width: 0;
  }
}
