/*
Theme Name:   Ferolvix Child
Theme URI:    https://ferolvix.ru
Description:  Дочерняя тема Astra для агентства недвижимости Ferolvix
Author:       Ferolvix
Template:     astra
Version:      1.0.0
Text Domain:  ferolvix-child
*/

/* Golos Text — self-hosted, кириллица + латиница, все три веса */
@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/golos-cyr-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/golos-cyr.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/golos-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ==========================================================================
   1. Переменные
   ========================================================================== */
:root{
  --fx-ink:#101A28;
  --fx-soft:#5D6B7C;
  --fx-faint:#93A0B0;
  --fx-accent:#1B4F8A;
  --fx-accent-deep:#123A67;
  --fx-wash:#EEF3F9;
  --fx-mist:#F5F8FC;
  --fx-line:#E1E7F0;
  --fx-line-strong:#C7D2E0;
  --fx-paper:#FFFFFF;
  --fx-radius:8px;
  --fx-radius-lg:14px;

  /* Перебиваем цветовую палитру Astra и Fluent Forms */
  --ast-global-color-0:var(--fx-accent);
  --ast-global-color-1:var(--fx-accent-deep);
  --fluentform-primary:var(--fx-accent);
  --fluentform-border-radius:var(--fx-radius);
  --fluentform-border-color:var(--fx-line-strong);
}

/* ==========================================================================
   2. База: типографика и цвета поверх Astra
   ========================================================================== */
body,
.ast-container,
.entry-content{
  font-family:"Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  color:var(--fx-ink);
}
body{line-height:1.7;font-size:16px;-webkit-font-smoothing:antialiased}
html,body{overflow-x:hidden;max-width:100%}

h1,h2,h3,h4,h5,h6,
.entry-content h1,.entry-content h2,.entry-content h3,
.uagb-heading-text,.uagb-ifb-title{
  font-family:"Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  font-weight:500 !important;
  letter-spacing:-0.02em;
  line-height:1.15;
  text-transform:none !important;
  text-wrap:balance;
  color:var(--fx-ink);
}
h1,.entry-content h1{font-size:clamp(34px,4.4vw,52px);letter-spacing:-0.035em}
h2,.entry-content h2{font-size:clamp(26px,3.2vw,36px)}
h3,.entry-content h3{font-size:19px;letter-spacing:-0.01em}

p,.uagb-ifb-desc,.uagb-desc-text{
  color:var(--fx-soft);
  text-wrap:pretty;
}
a{color:var(--fx-accent)}

/* ==========================================================================
   3. Кнопки
   ========================================================================== */
.fx-btn,
.wp-block-button__link,
.uagb-buttons-repeater,
.ast-button,
.entry-content .wp-block-button__link{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-size:14px;font-weight:400;letter-spacing:0.01em;
  padding:10px 20px;border-radius:5px;
  border:1px solid transparent;
  text-decoration:none;cursor:pointer;
  transition:background .18s,color .18s,border-color .18s;
}
.fx-btn--primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link{
  background:var(--fx-accent);color:#fff;
}
.fx-btn--primary:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover{
  background:var(--fx-accent-deep);color:#fff;
}
.fx-btn--ghost{
  background:transparent;color:var(--fx-ink);border-color:var(--fx-line);
}
.fx-btn--ghost:hover{border-color:var(--fx-ink)}
.fx-btn:focus-visible{outline:2px solid var(--fx-accent);outline-offset:3px}

/* ==========================================================================
   4. Шапка
   ========================================================================== */
.fx-phone{
  display:inline-flex;align-items:center;gap:9px;
  font-size:16px;font-weight:500;color:var(--fx-ink);
  text-decoration:none;white-space:nowrap;transition:color .18s;
}
.fx-phone svg{
  width:17px;height:17px;stroke:var(--fx-accent);fill:none;
  stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
.fx-phone:hover{color:var(--fx-accent)}

/* ==========================================================================
   5. Слайдер первого экрана
   ========================================================================== */
.fx-wrap{
  max-width:1120px;
  margin:0 auto;
  padding:0 32px;
  display:block;
}
@media(max-width:620px){
  .fx-wrap{padding:0 20px}
}
.fx-hero{position:relative;overflow:hidden;padding:0}
.fx-slides{display:grid}
.fx-slide{
  grid-area:1/1;opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .6s ease;display:flex;align-items:center;
}
.fx-slide.is-on{opacity:1;visibility:visible;pointer-events:auto}
.fx-slide__inner{padding:84px 0 60px;width:100%;text-align:center}
.fx-slide .fx-eyebrow{text-align:left}
.fx-slide h1{
  margin:0 0 18px;text-wrap:balance;
  max-width:19ch;margin-left:auto;margin-right:auto;
}
.fx-slide p{
  font-size:18px;line-height:1.75;max-width:60ch;
  margin:0 auto;text-wrap:pretty;color:var(--fx-soft);
}

.fx-eyebrow{
  display:flex;align-items:center;gap:10px;
  font-size:12px;font-weight:500;letter-spacing:0.14em;text-transform:uppercase;
  color:var(--fx-accent);margin-bottom:16px;
}
.fx-eyebrow::before{content:"";width:28px;height:1px;background:var(--fx-accent)}

.fx-dots{
  display:flex;align-items:flex-end;justify-content:center;gap:20px;
  padding-bottom:34px;
}
.fx-dot{
  border:0;padding:0;background:none;cursor:pointer;
  display:grid;place-items:end center;line-height:0;
}
.fx-dot svg{
  stroke:var(--fx-line-strong);fill:none;stroke-width:1.5;
  stroke-linejoin:round;stroke-linecap:round;
  transition:stroke .22s,transform .22s;
}
.fx-dot:hover svg{stroke:var(--fx-faint);transform:translateY(-2px)}
.fx-dot.is-on svg{stroke:var(--fx-accent)}
.fx-dot.is-on svg .fx-fill{fill:var(--fx-accent);stroke:none}
.fx-dot:focus-visible{outline:2px solid var(--fx-accent);outline-offset:3px}

/* ==========================================================================
   6. Бегущая строка
   ========================================================================== */
.fx-ticker-wrap{max-width:1120px;margin:0 auto;padding:0 32px}
.fx-ticker{background:var(--fx-ink);color:#fff;overflow:hidden}
.fx-ticker__mask{
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 56px,#000 calc(100% - 56px),transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 56px,#000 calc(100% - 56px),transparent 100%);
}
.fx-ticker__track{
  display:flex;width:max-content;
  animation:fx-slide-left 46s linear infinite;
}
.fx-ticker:hover .fx-ticker__track{animation-play-state:paused}
.fx-tick{
  display:flex;align-items:center;gap:14px;
  padding:11px 32px;font-size:19px;white-space:nowrap;line-height:1.3;
}
.fx-tick__price{font-weight:500;font-variant-numeric:tabular-nums}
.fx-tick__what{color:var(--fx-faint);font-size:18px}
.fx-tick::after{
  content:"";width:5px;height:5px;border-radius:50%;
  background:var(--fx-accent);margin-left:20px;
}
@keyframes fx-slide-left{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ==========================================================================
   7. Каталог: фильтр и карточки
   ========================================================================== */
.fx-filter{
  background:var(--fx-paper);border:1px solid var(--fx-line);
  border-radius:var(--fx-radius-lg);padding:24px 26px 20px;margin-top:30px;
}
.fx-filter__row{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.fx-fld label{display:block;font-size:12.5px;color:var(--fx-soft);margin-bottom:7px}
.fx-fld select,.fx-fld input{
  width:100%;height:44px;padding:0 12px;font:inherit;font-size:14.5px;
  color:var(--fx-ink);background:var(--fx-paper);
  border:1px solid var(--fx-line-strong);border-radius:6px;
  appearance:none;-webkit-appearance:none;cursor:pointer;
}
.fx-fld input{cursor:text}
.fx-fld select{
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D6B7C' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 11px center;background-size:17px;
  padding-right:34px;
}
.fx-fld select:focus,.fx-fld input:focus{
  outline:none;border-color:var(--fx-accent);box-shadow:0 0 0 3px var(--fx-wash);
}
.fx-filter__foot{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  margin-top:18px;padding-top:16px;border-top:1px solid var(--fx-line);
}
.fx-found{font-size:14px;color:var(--fx-soft)}
.fx-reset{
  border:0;background:none;font:inherit;font-size:14px;color:var(--fx-accent);
  cursor:pointer;padding:0;border-bottom:1px solid transparent;
}
.fx-reset:hover{border-color:var(--fx-accent)}

.fx-listings{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:32px}
.fx-lot{
  background:var(--fx-paper);border:1px solid var(--fx-line);
  border-radius:var(--fx-radius-lg);overflow:hidden;
  transition:border-color .18s,transform .18s;
  text-decoration:none;color:inherit;display:block;
}
.fx-lot:hover{border-color:var(--fx-line-strong);transform:translateY(-2px)}
.fx-lot__photo{
  height:210px;background:var(--fx-wash);position:relative;
  display:grid;place-items:center;border-bottom:1px solid var(--fx-line);
  background-size:cover;background-position:center;
}
.fx-lot__photo svg{width:34px;height:34px;stroke:var(--fx-line-strong);fill:none;stroke-width:1.3}
.fx-tag{
  position:absolute;top:14px;left:14px;
  font-size:12px;font-weight:500;padding:5px 12px;border-radius:5px;
  background:var(--fx-paper);color:var(--fx-accent);border:1px solid var(--fx-line-strong);
}
.fx-tag--sale{background:var(--fx-accent);color:#fff;border-color:var(--fx-accent)}
.fx-lot__body{padding:20px 22px 22px;transition:opacity .45s ease}
.fx-lot.is-swap .fx-lot__body,.fx-lot.is-swap .fx-tag{opacity:0}
.fx-lot__price{font-size:21px;font-weight:600;letter-spacing:-0.02em;font-variant-numeric:tabular-nums;margin:0}
.fx-lot__price span{font-size:15px;font-weight:400;color:var(--fx-soft)}
.fx-lot__params{font-size:14px;color:var(--fx-soft);margin:6px 0 0}
.fx-lot__addr{
  font-size:13.5px;color:var(--fx-faint);margin:14px 0 0;
  padding-top:14px;border-top:1px solid var(--fx-line);
}
.fx-empty{
  grid-column:1/-1;text-align:center;padding:56px 20px;
  color:var(--fx-soft);font-size:15px;
}
.fx-cat-foot{
  display:flex;justify-content:space-between;align-items:center;
  gap:20px;flex-wrap:wrap;margin-top:34px;
}

/* ==========================================================================
   8. Аккордеон
   ========================================================================== */
.fx-acc{margin-top:36px;border-top:1px solid var(--fx-line)}
.fx-acc details{border-bottom:1px solid var(--fx-line)}
.fx-acc summary{
  list-style:none;cursor:pointer;display:flex;align-items:center;gap:18px;
  padding:22px 0;font-size:19px;font-weight:500;color:var(--fx-ink);
  transition:color .18s;
}
.fx-acc summary::-webkit-details-marker{display:none}
.fx-acc summary:hover{color:var(--fx-accent)}
.fx-acc summary:focus-visible{outline:2px solid var(--fx-accent);outline-offset:4px;border-radius:4px}
.fx-sign{
  flex:0 0 auto;margin-left:auto;width:30px;height:30px;border-radius:50%;
  border:1px solid var(--fx-line-strong);display:grid;place-items:center;
  transition:transform .28s ease,border-color .18s,background .18s;
}
.fx-acc summary:hover .fx-sign{border-color:var(--fx-accent);background:var(--fx-wash)}
.fx-acc details[open] .fx-sign{transform:rotate(45deg);border-color:var(--fx-accent);background:var(--fx-wash)}
.fx-sign svg{width:14px;height:14px;stroke:var(--fx-accent);fill:none;stroke-width:1.8;stroke-linecap:round}
.fx-acc__answer{
  padding:0 0 26px;color:var(--fx-soft);font-size:16.5px;line-height:1.8;
  animation:fx-acc-in .3s ease;
}
@keyframes fx-acc-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* Аккордеон с формами на главной */
.fx-acc--forms{margin-top:0}
.fx-acc--forms summary{font-size:21px;padding:24px 0}
.fx-acc--forms .fx-acc__answer{color:var(--fx-ink)}
.fx-acc--forms .ffs_default_wrap{margin-top:0}
@media(max-width:680px){.fx-acc--forms summary{font-size:18px}}

/* ==========================================================================
   9. Шаги «как мы работаем» (блоки Spectra)
   ========================================================================== */
.fx-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;margin-top:48px}
.fx-step{padding-top:22px;border-top:2px solid var(--fx-line)}
.fx-step:first-child{border-top-color:var(--fx-accent)}
.fx-step__n{
  font-size:44px;font-weight:500;letter-spacing:-0.03em;
  color:var(--fx-line-strong);font-variant-numeric:tabular-nums;line-height:1;margin:0;
}
.fx-step:first-child .fx-step__n{color:var(--fx-accent)}
.fx-step h3{margin:14px 0 12px;font-size:23px}
.fx-step p{font-size:16.5px;line-height:1.7;margin:0}

/* ==========================================================================
   10. Формы Fluent Forms — приводим к общему стилю
   ========================================================================== */

/* 10a. Карточка-обёртка вокруг каждой формы */
.ffs_default_wrap{
  background:var(--fx-paper);
  border:1px solid var(--fx-line);
  border-radius:var(--fx-radius-lg);
  padding:32px;
  margin-top:36px;
}

/* 10b. Метки */
.fluentform .ff-el-group{margin-bottom:18px}
.fluentform .ff-el-input--label label{
  font-size:13px !important;color:var(--fx-soft) !important;
  font-weight:400 !important;margin-bottom:8px !important;
}

/* 10c. Поля: текстовые, select, date — единая высота и стиль */
.fluentform .ff-el-form-control,
.fluentform .flatpickr-input{
  height:46px !important;padding:0 14px !important;font-size:15px !important;
  font-family:inherit !important;
  color:var(--fx-ink) !important;background:var(--fx-paper) !important;
  border:1px solid var(--fx-line-strong) !important;border-radius:6px !important;
  box-shadow:none !important;
  transition:border-color .18s;
}
.fluentform textarea.ff-el-form-control{
  height:auto !important;padding:13px 14px !important;min-height:100px;
}
.fluentform .ff-el-form-control:hover,
.fluentform .flatpickr-input:hover{
  border-color:var(--fx-accent) !important;
}
.fluentform .ff-el-form-control:focus,
.fluentform .flatpickr-input:focus{
  border-color:var(--fx-accent) !important;
  box-shadow:0 0 0 3px var(--fx-wash) !important;
  outline:none !important;
}
.fluentform select.ff-el-form-control{
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D6B7C' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;background-position:right 13px center !important;
  background-size:17px !important;padding-right:36px !important;
}

/* 10d. Кнопка отправки — бьём и Fluent Forms inline-стиль и CSS-переменную */
.fluentform .ff-btn-submit,
.fluentform .ff-btn-submit:not(.ff_btn_no_style),
.fluentform .ff_btn_style.ff-btn-submit{
  background-color:rgba(27,79,138,.9) !important;
  background:rgba(27,79,138,.9) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:5px !important;
  padding:12px 24px !important;
  font-size:14px !important;font-weight:500 !important;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  box-shadow:0 2px 14px rgba(27,79,138,.2),inset 0 1px 0 rgba(255,255,255,.18) !important;
  transition:background .18s,background-color .18s,box-shadow .18s !important;
  line-height:1.5 !important;
  width:100% !important;
  display:block !important;
  box-sizing:border-box !important;
}
.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:not(.ff_btn_no_style):hover,
.fluentform .ff_btn_style.ff-btn-submit:hover{
  background-color:var(--fx-accent-deep) !important;
  background:var(--fx-accent-deep) !important;
  color:#fff !important;
}

/* 10e. Ошибки и успех */
.fluentform .ff-el-is-error .ff-el-form-control{border-color:#B3261E !important}
.fluentform .error-text,.fluentform .text-danger{font-size:12.5px;color:#B3261E}
.fluentform .fx-hidden-field{display:none !important}
.ff-message-success{
  background:var(--fx-wash);border:1px solid var(--fx-line);
  border-radius:var(--fx-radius);padding:18px 20px;color:var(--fx-ink);
}

/* 10f. Чекбокс согласия */
.fluentform .ff-el-form-check label{font-size:13px;color:var(--fx-soft);line-height:1.6}
.fluentform .ff-el-form-check-input{accent-color:var(--fx-accent);width:18px;height:18px}

/* карточка через PHP-класс (шорткод-обёртки) */
.fx-form-card{
  background:var(--fx-paper);border:1px solid var(--fx-line);
  border-radius:var(--fx-radius-lg);padding:32px;margin-top:36px;
}

/* кнопка отправки ниже полей */
.fluentform .ff-el-group:last-child{margin-bottom:0;margin-top:22px}

/* 10g. CSS Grid вместо flex — гарантированно без пустот
   Fluent Forms рендерит колонки через flex, но flex-grow:1 на последней
   ячейке создаёт неравномерное заполнение. CSS Grid полностью решает проблему:
   каждая строка заполняется без остатка. */
@media(min-width:769px){
  /* Переключаем контейнеры на grid */
  .frm-fluent-form .ff-t-container{
    display:grid !important;
    gap:14px !important;
    width:100% !important;
  }
  /* Ячейки не должны иметь flex-поведение */
  .frm-fluent-form .ff-t-cell{
    width:100% !important;
    flex-basis:auto !important;
    flex-grow:0 !important;
    min-width:0;
    box-sizing:border-box;
  }
  .frm-fluent-form .ff-t-cell:last-of-type{
    flex-grow:0 !important;
    padding-right:0;
  }

  /* Шаблоны колонок по количеству */
  .frm-fluent-form .ff_columns_total_2.ff-t-container{
    grid-template-columns:2fr 1fr !important;  /* имя шире телефона */
  }
  .frm-fluent-form .ff_columns_total_3.ff-t-container{
    grid-template-columns:repeat(3,1fr) !important;
  }
  .frm-fluent-form .ff_columns_total_4.ff-t-container{
    grid-template-columns:repeat(4,1fr) !important;
  }

  /* Специальный ряд с адресом: адрес вдвое шире этажей */
  .frm-fluent-form .fx-addr-row.ff-t-container{
    grid-template-columns:2fr 1fr 1fr !important;
  }
}

/* Планшет: 4 колонки → 2 */
@media(max-width:768px) and (min-width:481px){
  .frm-fluent-form .ff_columns_total_4.ff-t-container{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:12px !important;
  }
}

/* Телефон: всё в 1 колонку */
@media(max-width:480px){
  .frm-fluent-form .ff-t-container{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:0 !important;
  }
}

/* Числовые поля — tabular-nums, выравнивание вправо */
.frm-fluent-form input[name="area_sqm"],
.frm-fluent-form input[name="area_living"],
.frm-fluent-form input[name="area_kitchen"],
.frm-fluent-form input[name="floor_num"],
.frm-fluent-form input[name="floors_total"],
.frm-fluent-form input[name="price"],
.frm-fluent-form input[name="budget"]{
  font-variant-numeric:tabular-nums;
  text-align:right;
  letter-spacing:0.01em;
}
.frm-fluent-form input[name="phone"]{
  font-variant-numeric:tabular-nums;
  letter-spacing:0.02em;
}


/* ==========================================================================
   12. Якорная секция «Оставьте заявку» на странице /prodat/
   ========================================================================== */
h2#zayavka{
  scroll-margin-top:40px;
  margin-top:56px;
  margin-bottom:24px;
  padding-top:40px;
  border-top:2px solid var(--fx-line);
  position:relative;
}
h2#zayavka::before{
  content:'';
  position:absolute;
  top:-2px;left:0;
  width:48px;height:2px;
  background:var(--fx-accent);
}

/* Заголовок «Что вы получаете» — такое же оформление как у #zayavka */
h2#poluchaete{
  margin-top:56px;
  margin-bottom:24px;
  padding-top:40px;
  border-top:2px solid var(--fx-line);
  position:relative;
}
h2#poluchaete::before{
  content:'';
  position:absolute;
  top:-2px;left:0;
  width:48px;height:2px;
  background:var(--fx-accent);
}

/* Хлебные крошки */
.fx-breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:15px;
  color:var(--fx-faint);
  margin-top:36px;
  margin-bottom:32px;
  padding-bottom:20px;
  border-bottom:1px solid var(--fx-line);
}
.fx-breadcrumb svg{width:14px;height:14px;flex-shrink:0;stroke:var(--fx-faint)}
.fx-breadcrumb a{
  color:var(--fx-soft);
  text-decoration:none;
  transition:color .2s;
}
.fx-breadcrumb a:hover{color:var(--fx-accent)}
.fx-breadcrumb span[aria-hidden]{color:var(--fx-line-strong)}
.fx-breadcrumb span:last-child{color:var(--fx-ink);font-weight:500}

/* ==========================================================================
   13. Страница контактов
   ========================================================================== */
.fx-contacts{max-width:1140px;margin:0 auto;padding:0 0 64px}

/* Верхний блок: карточки + карта */
.fx-contacts__top{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:32px;
  align-items:stretch;
  margin-bottom:64px;
}

/* Карточки контактов */
.fx-contacts__info{
  display:flex;flex-direction:column;gap:16px;
}
.fx-contacts__card{
  display:flex;align-items:flex-start;gap:16px;
  padding:20px 22px;
  background:var(--fx-mist);
  border:1px solid var(--fx-line);
  border-radius:14px;
  text-decoration:none;
  color:inherit;
  transition:border-color .2s, box-shadow .2s, transform .18s;
  flex:1;
}
a.fx-contacts__card:hover{
  border-color:var(--fx-accent);
  box-shadow:0 4px 20px rgba(27,79,138,.1);
  transform:translateY(-1px);
}
.fx-contacts__card-icon{
  width:42px;height:42px;flex-shrink:0;
  background:var(--fx-wash);
  border-radius:10px;
  display:grid;place-items:center;
}
.fx-contacts__card-icon svg{width:20px;height:20px;stroke:var(--fx-accent)}
.fx-contacts__card-body{display:flex;flex-direction:column;gap:3px}
.fx-contacts__card-label{
  font-size:11.5px;font-weight:500;
  letter-spacing:.06em;text-transform:uppercase;
  color:var(--fx-faint);
}
.fx-contacts__card-value{
  font-size:15px;font-weight:500;color:var(--fx-ink);line-height:1.5;
}
.fx-contacts__messengers{
  display:flex;flex-direction:column;gap:8px;margin-top:6px;
}
.fx-contacts__msg{
  display:inline-flex;align-items:center;gap:8px;
  text-decoration:none;font-size:14px;font-weight:500;
  color:var(--fx-ink);transition:color .2s;
}
.fx-contacts__msg:hover{color:var(--fx-accent)}
.fx-contacts__msg svg{width:18px;height:18px;flex-shrink:0}
.fx-contacts__msg--phone svg{stroke:var(--fx-accent)}
.fx-contacts__msg--wa svg{fill:#25D366;color:#25D366}
.fx-contacts__msg--tg svg{fill:#2AABEE;color:#2AABEE}

/* Яндекс карта */
.fx-contacts__map-wrap{display:flex;flex-direction:column;gap:0;height:100%}
.fx-contacts__map{
  border-radius:16px 16px 0 0;
  overflow:hidden;
  border:1px solid var(--fx-line);
  border-bottom:none;
  flex:1;
  min-height:300px;
}
.fx-contacts__map iframe{
  display:block;width:100%;height:100%;min-height:300px;
}
.fx-contacts__map-note{
  display:flex;align-items:flex-start;gap:10px;
  background:var(--fx-wash);
  border:1px solid var(--fx-line);
  border-top:none;
  border-radius:0 0 16px 16px;
  padding:14px 20px;
}
.fx-contacts__map-note svg{
  width:18px;height:18px;flex-shrink:0;
  stroke:var(--fx-accent);margin-top:1px;
}
.fx-contacts__map-note p{
  font-size:13px;line-height:1.55;
  color:var(--fx-soft);margin:0;
}

/* Секция формы */
.fx-contacts__form-section{
  padding:56px 64px;
  background:linear-gradient(135deg,#f8fafd 0%,var(--fx-mist) 100%);
  border:1px solid var(--fx-line);
  border-radius:20px;
  position:relative;
  overflow:hidden;
}
.fx-contacts__form-section::before{
  content:'';
  position:absolute;top:-80px;right:-80px;
  width:320px;height:320px;
  background:radial-gradient(circle,rgba(27,79,138,.06) 0%,transparent 70%);
  pointer-events:none;
}
.fx-contacts__form-header{margin-bottom:36px}
.fx-contacts__form-header h2{margin:8px 0 0;font-size:26px}
.fx-contacts__form-sub{color:var(--fx-soft);font-size:15px;margin:10px 0 0;line-height:1.6}

/* ── Кастомный загрузчик файлов (формы 8, 10, 12) ── */
.fx-uploader{margin-top:4px}

.fx-drop{
  display:flex;align-items:center;gap:14px;
  border:1.5px dashed var(--fx-line-strong);
  border-radius:12px;padding:18px 22px;
  background:var(--fx-mist);cursor:pointer;
  transition:border-color .2s,background .2s;
  user-select:none;
}
.fx-drop:hover,.fx-drop.hot{
  border-color:var(--fx-accent);background:#eef3fb;
}
.fx-drop svg{
  flex:0 0 auto;stroke:var(--fx-accent);fill:none;
  stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
  opacity:.8;
}
.fx-drop p{
  font-size:14px;color:var(--fx-soft);margin:0;line-height:1.4;flex:1;
}
.fx-pick{
  flex:0 0 auto;font-size:13.5px;font-weight:500;
  color:var(--fx-accent);white-space:nowrap;
  border:1px solid var(--fx-accent);border-radius:6px;
  padding:5px 12px;transition:background .2s,color .2s;
}
.fx-drop:hover .fx-pick,.fx-drop.hot .fx-pick{
  background:var(--fx-accent);color:#fff;
}

.fx-camera{
  display:none;align-items:center;justify-content:center;gap:9px;
  width:100%;margin-top:8px;padding:11px 16px;
  font:inherit;font-size:14px;font-weight:500;
  color:var(--fx-accent);background:var(--fx-paper);
  border:1.5px solid var(--fx-line-strong);border-radius:10px;
  cursor:pointer;transition:background .2s,border-color .2s;
}
.fx-camera:hover{background:var(--fx-wash);border-color:var(--fx-accent)}
.fx-camera svg{stroke:var(--fx-accent);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:900px){.fx-camera{display:flex}}

.fx-filelist{
  list-style:none;margin:10px 0 0;padding:0;
  display:flex;flex-direction:column;gap:6px;
}
.fx-filelist li{
  display:flex;align-items:center;gap:10px;
  border:1px solid var(--fx-line);border-radius:8px;
  padding:8px 12px;background:var(--fx-paper);
}
.fx-filelist .fx-ext{
  flex:0 0 auto;width:32px;height:32px;border-radius:7px;
  background:var(--fx-wash);display:grid;place-items:center;
  font-size:9.5px;font-weight:600;color:var(--fx-accent);
  text-transform:uppercase;letter-spacing:.03em;
}
.fx-filelist .fx-meta{flex:1;min-width:0}
.fx-filelist .fx-fname{
  font-size:13.5px;color:var(--fx-ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;
}
.fx-filelist .fx-fsize{font-size:12px;color:var(--fx-faint);margin-top:2px}
.fx-filelist .fx-kill{
  flex:0 0 auto;width:28px;height:28px;border:0;border-radius:6px;
  background:none;cursor:pointer;display:grid;place-items:center;padding:0;
  transition:background .15s;
}
.fx-filelist .fx-kill:hover{background:var(--fx-wash)}
.fx-filelist .fx-kill svg{width:15px;height:15px;stroke:var(--fx-soft);fill:none;stroke-width:2;stroke-linecap:round}
.fx-filelist .fx-kill:hover svg{stroke:#B3261E}
.fx-filelist li.fx-uploading{opacity:.55}

.fx-total{font-size:12.5px;color:var(--fx-faint);margin:8px 0 0}
.fx-status{font-size:12.5px;color:#B3261E;margin:6px 0 0}

/* Адаптив */
@media(max-width:860px){
  .fx-contacts__top{grid-template-columns:1fr}
  .fx-contacts__map{min-height:320px}
  .fx-contacts__map iframe{min-height:320px}
  .fx-contacts__form-section{padding:36px 32px}
}
@media(max-width:480px){
  .fx-contacts__form-section{padding:28px 20px}
  .fx-contacts__form-header h2{font-size:22px}
}

/* ==========================================================================
   14. Страница «О нас»
   ========================================================================== */
.fx-about{max-width:1140px;margin:0 auto;padding:0 0 80px;display:flex;flex-direction:column;gap:72px}

/* Intro */
.fx-about__intro{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.fx-about__title{font-size:38px;font-weight:700;line-height:1.2;margin:12px 0 20px;letter-spacing:-.02em}
.fx-about__lead{font-size:17px;line-height:1.7;color:var(--fx-soft);margin:0 0 32px}
.fx-about__intro-img{display:flex;justify-content:center;align-items:center}
.fx-about__img-wrap{position:relative;width:260px;height:260px}
.fx-about__img-box{
  width:100%;height:100%;
  background:var(--fx-wash);
  border-radius:24px;
  border:1px solid var(--fx-line);
  display:grid;place-items:center;
}
.fx-about__img-box svg{width:96px;height:96px;opacity:.35}
.fx-about__badge{
  position:absolute;top:-24px;right:-24px;
  width:100px;height:100px;
  background:var(--fx-paper);
  border-radius:50%;
  box-shadow:0 4px 20px rgba(0,0,0,.1);
}

/* Статистика */
.fx-about__stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:2px;
  background:var(--fx-line);
  border-radius:20px;overflow:hidden;
}
.fx-about__stat{
  background:var(--fx-mist);
  padding:32px 28px;
  display:flex;flex-direction:column;gap:6px;
}
.fx-about__stat-num{font-size:36px;font-weight:700;color:var(--fx-accent);letter-spacing:-.02em;line-height:1}
.fx-about__stat-label{font-size:13px;color:var(--fx-soft)}

/* История (две колонки) */
.fx-about__section--two-col{
  display:grid;grid-template-columns:220px 1fr;gap:48px;
  padding-top:48px;border-top:1px solid var(--fx-line);
}
.fx-about__section-body p{
  color:var(--fx-soft);line-height:1.75;margin:0 0 16px;font-size:15.5px;
}
.fx-about__section-body p:last-child{margin:0}

/* Ценности */
.fx-about__values{
  padding-top:48px;border-top:1px solid var(--fx-line);
}
.fx-about__values-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.fx-about__value{
  padding:28px 24px;
  background:var(--fx-mist);
  border:1px solid var(--fx-line);
  border-radius:16px;
  transition:box-shadow .2s,transform .2s;
}
.fx-about__value:hover{box-shadow:0 6px 24px rgba(27,79,138,.09);transform:translateY(-2px)}
.fx-about__value-icon{
  width:44px;height:44px;margin-bottom:16px;
  background:var(--fx-wash);border-radius:10px;
  display:grid;place-items:center;
}
.fx-about__value-icon svg{width:22px;height:22px;stroke:var(--fx-accent)}
.fx-about__value h3{font-size:15px;font-weight:600;margin:0 0 10px;color:var(--fx-ink)}
.fx-about__value p{font-size:13.5px;color:var(--fx-soft);line-height:1.65;margin:0}

/* CTA */
.fx-about__cta{
  text-align:center;
  padding:56px 48px;
  background:var(--fx-ink);
  border-radius:24px;
  color:#fff;
}
.fx-about__cta h2{font-size:30px;font-weight:700;color:#fff;margin:0 0 12px}
.fx-about__cta p{color:rgba(255,255,255,.6);font-size:15px;margin:0 0 32px}
.fx-about__cta-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.fx-about__cta .fx-btn--ghost{border-color:rgba(255,255,255,.25);color:#fff;gap:8px;display:inline-flex;align-items:center}
.fx-about__cta .fx-btn--ghost:hover{border-color:#fff;background:rgba(255,255,255,.08)}

/* Адаптив */
@media(max-width:900px){
  .fx-about__intro{grid-template-columns:1fr;gap:40px}
  .fx-about__intro-img{display:none}
  .fx-about__title{font-size:30px}
  .fx-about__stats{grid-template-columns:repeat(2,1fr)}
  .fx-about__values-grid{grid-template-columns:repeat(2,1fr)}
  .fx-about__section--two-col{grid-template-columns:1fr;gap:16px}
}
@media(max-width:480px){
  .fx-about{gap:48px}
  .fx-about__stats{grid-template-columns:repeat(2,1fr)}
  .fx-about__values-grid{grid-template-columns:1fr}
  .fx-about__cta{padding:36px 24px}
  .fx-about__cta h2{font-size:24px}
  .fx-about__cta-btns{flex-direction:column;align-items:center}
}

/* ==========================================================================
   15. Страница «Вакансии»
   ========================================================================== */
.fx-vacancies{max-width:1140px;margin:0 auto;padding:0 0 80px;display:flex;flex-direction:column;gap:72px}

/* Hero */
.fx-vacancies__hero{
  display:grid;grid-template-columns:1fr auto;gap:48px;align-items:center;
}
.fx-vacancies__hero h1{font-size:38px;font-weight:700;line-height:1.2;margin:12px 0 20px;letter-spacing:-.02em}
.fx-vacancies__lead{font-size:17px;line-height:1.7;color:var(--fx-soft);margin:0 0 32px}
.fx-vacancies__badge-inner{
  width:180px;height:180px;flex-shrink:0;
  background:var(--fx-wash);border:1px solid var(--fx-line);
  border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  text-align:center;
}
.fx-vacancies__badge-inner svg{width:48px;height:48px}
.fx-vacancies__badge-num{font-size:13px;font-weight:600;color:var(--fx-ink);line-height:1.4}

/* Преимущества */
.fx-vacancies__perks-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
}
.fx-vacancies__perk{
  padding:26px 22px;
  background:var(--fx-mist);border:1px solid var(--fx-line);
  border-radius:16px;
  transition:box-shadow .2s,transform .2s;
}
.fx-vacancies__perk:hover{box-shadow:0 6px 24px rgba(27,79,138,.09);transform:translateY(-2px)}
.fx-vacancies__perk-icon{
  width:44px;height:44px;margin-bottom:14px;
  background:var(--fx-wash);border-radius:10px;
  display:grid;place-items:center;
}
.fx-vacancies__perk-icon svg{width:22px;height:22px;stroke:var(--fx-accent)}
.fx-vacancies__perk h3{font-size:15px;font-weight:600;margin:0 0 8px;color:var(--fx-ink)}
.fx-vacancies__perk p{font-size:13.5px;color:var(--fx-soft);line-height:1.65;margin:0}

/* FAQ */
.fx-vacancies__faq{padding-top:48px;border-top:1px solid var(--fx-line)}

/* Форма */
.fx-vacancies__apply{
  padding:48px;background:var(--fx-mist);
  border:1px solid var(--fx-line);border-radius:20px;
}
.fx-vacancies__apply-header{margin-bottom:32px}
.fx-vacancies__apply-header h2{margin:8px 0 0;font-size:26px}
.fx-vacancies__apply-sub{color:var(--fx-soft);font-size:14px;margin:10px 0 0}

/* Адаптив */
@media(max-width:900px){
  .fx-vacancies__hero{grid-template-columns:1fr}
  .fx-vacancies__hero-badge{display:none}
  .fx-vacancies__hero h1{font-size:30px}
  .fx-vacancies__perks-grid{grid-template-columns:repeat(2,1fr)}
  .fx-vacancies__apply{padding:32px 28px}
}
@media(max-width:480px){
  .fx-vacancies{gap:48px}
  .fx-vacancies__perks-grid{grid-template-columns:1fr}
  .fx-vacancies__apply{padding:24px 20px}
  .fx-vacancies__apply-header h2{font-size:22px}
}

/* ==========================================================================
   16. Страница блога
   ========================================================================== */
.fx-blog-page{padding:32px 0 80px}

.fx-blog-page__head{
  text-align:center;
  padding:48px 0 52px;
  border-bottom:1px solid var(--fx-line);
  margin-bottom:48px;
}
.fx-blog-page__title{font-size:36px;font-weight:700;margin:12px 0 14px;letter-spacing:-.02em}
.fx-blog-page__sub{color:var(--fx-soft);font-size:16px;margin:0}

/* Сетка постов */
.fx-blog-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

/* Первая карточка — широкая, на всю ширину */
.fx-blog-card--featured{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:0;
}
.fx-blog-card--featured .fx-blog-card__img-wrap{border-radius:16px 0 0 16px}
.fx-blog-card--featured .fx-blog-card__body{
  padding:40px 40px;
  border:1px solid var(--fx-line);
  border-left:0;
  border-radius:0 16px 16px 0;
  display:flex;flex-direction:column;justify-content:center;
}
.fx-blog-card--featured .fx-blog-card__title{font-size:24px}
.fx-blog-card--featured .fx-blog-card__excerpt{display:block}

/* Обычные карточки */
.fx-blog-card{
  background:var(--fx-paper);
  border:1px solid var(--fx-line);
  border-radius:16px;
  overflow:hidden;
  display:flex;flex-direction:column;
  transition:box-shadow .2s,transform .2s;
}
.fx-blog-card:hover{box-shadow:0 8px 32px rgba(16,26,40,.08);transform:translateY(-2px)}

.fx-blog-card__img-wrap{display:block;overflow:hidden;aspect-ratio:16/9}
.fx-blog-card__img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .4s ease;display:block;
}
.fx-blog-card:hover .fx-blog-card__img{transform:scale(1.03)}

.fx-blog-card__body{
  padding:24px;flex:1;
  display:flex;flex-direction:column;gap:10px;
}
.fx-blog-card--featured .fx-blog-card__img-wrap{aspect-ratio:auto;height:100%}

.fx-blog-card__meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fx-blog-card__cat{
  font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:var(--fx-accent);background:var(--fx-wash);
  padding:3px 10px;border-radius:100px;text-decoration:none;
  transition:background .2s;
}
.fx-blog-card__cat:hover{background:var(--fx-line)}
.fx-blog-card__date{font-size:12.5px;color:var(--fx-faint)}

.fx-blog-card__title{
  font-size:17px;font-weight:600;line-height:1.4;margin:0;
}
.fx-blog-card__title a{color:var(--fx-ink);text-decoration:none;transition:color .2s}
.fx-blog-card__title a:hover{color:var(--fx-accent)}

.fx-blog-card__excerpt{
  font-size:13.5px;line-height:1.65;color:var(--fx-soft);margin:0;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}

.fx-blog-card__more{
  display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding-top:4px;
  font-size:13.5px;font-weight:500;color:var(--fx-accent);text-decoration:none;
  transition:gap .2s;
}
.fx-blog-card__more svg{width:15px;height:15px;transition:transform .2s}
.fx-blog-card__more:hover{gap:10px}
.fx-blog-card__more:hover svg{transform:translateX(3px)}

/* Пустой блог */
.fx-blog-page__empty{text-align:center;padding:64px 0;color:var(--fx-soft)}
.fx-blog-page__empty .fx-btn{margin-top:24px}

/* Пагинация */
.fx-blog-page__pagination{margin-top:48px;display:flex;justify-content:center}
.fx-blog-page__pagination .nav-links{display:flex;gap:8px;align-items:center}
.fx-blog-page__pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:40px;height:40px;padding:0 12px;
  border:1px solid var(--fx-line);border-radius:8px;
  font-size:14px;color:var(--fx-soft);text-decoration:none;
  transition:border-color .2s,color .2s,background .2s;
}
.fx-blog-page__pagination .page-numbers:hover{border-color:var(--fx-accent);color:var(--fx-accent)}
.fx-blog-page__pagination .page-numbers.current{background:var(--fx-accent);border-color:var(--fx-accent);color:#fff}

/* Адаптив */
@media(max-width:900px){
  .fx-blog-grid{grid-template-columns:repeat(2,1fr)}
  .fx-blog-card--featured{grid-template-columns:1fr;grid-column:auto}
  .fx-blog-card--featured .fx-blog-card__img-wrap{border-radius:16px 16px 0 0;aspect-ratio:16/9}
  .fx-blog-card--featured .fx-blog-card__body{border:1px solid var(--fx-line);border-top:0;border-radius:0 0 16px 16px;padding:24px}
  .fx-blog-page__title{font-size:28px}
}
@media(max-width:600px){
  .fx-blog-grid{grid-template-columns:1fr}
  .fx-blog-page__head{padding:32px 0 36px}
}

/* ==========================================================================
   17. Адаптив
   ========================================================================== */
@media(max-width:900px){
  .fx-listings{grid-template-columns:repeat(2,1fr);gap:16px}
  .fx-filter__row{grid-template-columns:repeat(2,1fr)}
  .fx-filter{padding:20px 20px 16px}
  .fx-steps{grid-template-columns:1fr;gap:26px}
  .fx-slide__inner{padding:56px 0 40px}
  .fx-dots{padding-bottom:26px}
  .fx-tick{font-size:17px;padding:10px 22px}
  .fx-tick__what{font-size:16px}
  .fx-ticker-wrap{max-width:none;padding:0}
  .fx-ticker__mask{
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 34px,#000 calc(100% - 34px),transparent 100%);
    mask-image:linear-gradient(90deg,transparent 0,#000 34px,#000 calc(100% - 34px),transparent 100%);
  }
  .fx-form-card,.ffs_default_wrap{padding:26px;margin-top:28px}
}
@media(max-width:620px){
  .fx-listings,.fx-filter__row{grid-template-columns:1fr}
  .fx-slide h1{font-size:30px;line-height:1.2}
  .fx-slide p{font-size:16px}
  .fx-lot__photo{height:200px}
  .fx-tick{font-size:16px;padding:9px 18px}
  .fx-tick__what{font-size:15px}
  .fx-dots{gap:14px}
  .fx-dot svg{transform:scale(.85)}
  .fx-step__n{font-size:36px}
  .fx-step h3{font-size:20px}
  .fx-step p{font-size:15.5px}
  .fx-acc summary{font-size:17px;padding:19px 0;gap:14px}
  .fx-acc__answer{font-size:15.5px;line-height:1.72;padding-bottom:22px}
  .fx-cat-foot{flex-direction:column;align-items:stretch}
  .fx-cat-foot .fx-btn{width:100%}
  .fx-form-card,.ffs_default_wrap{padding:22px 18px}
}
@media(prefers-reduced-motion:reduce){
  *{transition:none !important;scroll-behavior:auto !important}
  .fx-ticker__track{animation:none !important}
  .fx-slide{transition:none !important}
}

/* ==========================================================================
   Дописать в конец style.css дочерней темы

   1. Цифры шагов — Astra перебивала размер своим правилом
      .entry-content p, поэтому 44px не применялись.
   2. Рамка карточки формы — сделана заметнее.
   ========================================================================== */

/* --- Шаги: крупные цифры ------------------------------------------------ */
.fx-steps .fx-step__n,
.entry-content .fx-steps .fx-step__n,
.fx-step p.fx-step__n{
  font-size:44px !important;
  font-weight:500 !important;
  letter-spacing:-0.03em !important;
  line-height:1 !important;
  color:var(--fx-line-strong) !important;
  font-variant-numeric:tabular-nums;
  margin:0 0 2px !important;
}
.fx-steps .fx-step:first-child .fx-step__n,
.entry-content .fx-steps .fx-step:first-child .fx-step__n{
  color:var(--fx-accent) !important;
}

.fx-steps .fx-step h3,
.entry-content .fx-steps .fx-step h3{
  font-size:23px !important;
  margin:14px 0 12px !important;
}
.fx-steps .fx-step p:not(.fx-step__n),
.entry-content .fx-steps .fx-step p:not(.fx-step__n){
  font-size:16.5px !important;
  line-height:1.7 !important;
  margin:0 !important;
}

/* линия над шагом — чуть заметнее */
.fx-steps .fx-step{border-top-width:2px}
.fx-steps .fx-step:first-child{border-top-color:var(--fx-accent)}

@media(max-width:620px){
  .fx-steps .fx-step__n,
  .entry-content .fx-steps .fx-step__n{font-size:36px !important}
  .fx-steps .fx-step h3,
  .entry-content .fx-steps .fx-step h3{font-size:20px !important}
  .fx-steps .fx-step p:not(.fx-step__n),
  .entry-content .fx-steps .fx-step p:not(.fx-step__n){font-size:15.5px !important}
}

/* --- Карточка формы: заметная рамка ------------------------------------- */
.fluentform .ffs_default_wrap,
.fx-form-card{
  border:1px solid var(--fx-line-strong) !important;
  border-radius:14px !important;
  box-shadow:0 1px 2px rgba(16,26,40,.04) !important;
  background:var(--fx-paper) !important;
}

/* поля внутри — рамка тоже чуть контрастнее */
.fluentform .ff-el-form-control{
  border-color:var(--fx-line-strong) !important;
}
.fluentform .ff-el-form-control:hover{
  border-color:#A9B8CB !important;
}
.fluentform .ff-el-form-control:focus{
  border-color:var(--fx-accent) !important;
  box-shadow:0 0 0 3px var(--fx-wash) !important;
}

/* ==========================================================================
   Страница отдельного объекта
   Дописать в конец style.css дочерней темы
   ========================================================================== */

.fx-object{padding:64px 0 80px}
.fx-object h1{margin:0 0 14px}
.fx-object__price{
  font-size:34px;font-weight:600;letter-spacing:-0.02em;
  font-variant-numeric:tabular-nums;color:var(--fx-ink);margin:0 0 28px;
}
.fx-object__price span{font-size:18px;font-weight:400;color:var(--fx-soft)}

.fx-object__photo{margin:0 0 36px}
.fx-object__photo img{
  width:100%;height:auto;display:block;
  border-radius:var(--fx-radius-lg);border:1px solid var(--fx-line);
}

.fx-object__grid{
  display:grid;grid-template-columns:1fr 340px;gap:36px;align-items:start;
}

.fx-object__specs{margin:0;border-top:1px solid var(--fx-line)}
.fx-object__row{
  display:grid;grid-template-columns:200px 1fr;gap:20px;
  padding:15px 0;border-bottom:1px solid var(--fx-line);
}
.fx-object__row dt{color:var(--fx-soft);font-size:15px;margin:0}
.fx-object__row dd{color:var(--fx-ink);font-size:15.5px;font-weight:500;margin:0}

.fx-object__cta{
  background:var(--fx-mist);border:1px solid var(--fx-line);
  border-radius:var(--fx-radius-lg);padding:26px 24px;
}
.fx-object__cta-title{font-size:18px;font-weight:500;color:var(--fx-ink);margin:0 0 8px}
.fx-object__cta-text{font-size:14.5px;line-height:1.65;margin:0 0 20px}
.fx-object__cta .fx-btn{width:100%}
.fx-object__cta .fx-phone{margin-top:16px;justify-content:center;width:100%}

.fx-object__text{margin-top:40px;font-size:16.5px;line-height:1.8}
.fx-object__back{margin-top:44px;font-size:15px}
.fx-object__back a{color:var(--fx-accent);text-decoration:none}
.fx-object__back a:hover{text-decoration:underline}

@media(max-width:900px){
  .fx-object{padding:48px 0 60px}
  .fx-object__grid{grid-template-columns:1fr;gap:28px}
  .fx-object__price{font-size:28px}
}
@media(max-width:620px){
  .fx-object__row{grid-template-columns:1fr;gap:4px;padding:13px 0}
  .fx-object__price{font-size:26px}
}

/* ==========================================================================
   Карточка объекта — убираем подчёркивание и лишние стили ссылки
   ========================================================================== */
a.fx-lot,
a.fx-lot:hover,
a.fx-lot:focus,
.entry-content a.fx-lot{
  text-decoration:none !important;
  color:inherit !important;
  box-shadow:none !important;
}
a.fx-lot *,
.entry-content a.fx-lot *{
  text-decoration:none !important;
  border-bottom:0 !important;
}
a.fx-lot .fx-lot__price,
.entry-content a.fx-lot .fx-lot__price{color:var(--fx-ink) !important}
a.fx-lot .fx-lot__params,
.entry-content a.fx-lot .fx-lot__params{color:var(--fx-soft) !important}
a.fx-lot .fx-lot__addr,
.entry-content a.fx-lot .fx-lot__addr{color:var(--fx-faint) !important}

/* при наведении подсвечиваем цену — понятно, что карточка кликабельна */
a.fx-lot:hover .fx-lot__price{color:var(--fx-accent) !important}

/* ==========================================================================
   Фотографии в тексте объекта — ровная галерея
   ========================================================================== */
.fx-object__text{margin-top:40px}
.fx-object__text p:has(img){margin:0}
.fx-object__text img{
  width:100%;height:260px;object-fit:cover;display:block;
  border-radius:var(--fx-radius-lg);border:1px solid var(--fx-line);
}
.fx-object__text .wp-block-gallery{gap:16px}
.fx-object__text figure{margin:0}

/* если картинки идут подряд абзацами — выстраиваем сеткой */
.fx-object__gallery{
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:36px;
}
@media(max-width:900px){
  .fx-object__gallery{grid-template-columns:repeat(2,1fr);gap:12px}
  .fx-object__text img{height:220px}
}
@media(max-width:620px){
  .fx-object__gallery{grid-template-columns:1fr}
  .fx-object__text img{height:240px}
}

/* ==========================================================================
   Страница объекта v2: слайдер, галерея, описание
   Заменяет старые стили .fx-object из object-page.css
   Дописать в конец style.css дочерней темы
   ========================================================================== */

/* --- Шапка объекта: заголовок + кнопки справа --------------------------- */
.fx-object{padding:48px 0 80px}
.fx-object h1{margin:0 0 10px}

.fx-object__head{
  display:flex;align-items:flex-start;
  gap:24px;flex-wrap:wrap;margin-bottom:32px;
}
.fx-object__head > div:first-child{
  flex:1;min-width:0;
}
.fx-object__price{
  font-size:34px;font-weight:600;letter-spacing:-0.02em;
  font-variant-numeric:tabular-nums;color:var(--fx-ink);margin:0;
}
.fx-object__price span{font-size:18px;font-weight:400;color:var(--fx-soft)}


/* --- Слайдер фотографий ------------------------------------------------- */
.fx-gallery{margin-bottom:36px}

.fx-gallery__main{
  position:relative;overflow:hidden;border-radius:var(--fx-radius-lg);
  border:1px solid var(--fx-line);background:var(--fx-wash);
}
.fx-gallery__img{
  display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;
  transition:opacity .3s ease;
}

.fx-gallery__arr{
  position:absolute;top:50%;transform:translateY(-50%);
  width:44px;height:44px;border-radius:50%;border:0;
  background:rgba(255,255,255,.88);backdrop-filter:blur(6px);
  cursor:pointer;display:grid;place-items:center;
  transition:background .18s,transform .18s;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
}
.fx-gallery__arr:hover{background:#fff;transform:translateY(-50%) scale(1.06)}
.fx-gallery__arr:active{transform:translateY(-50%) scale(.96)}
.fx-gallery__arr--prev{left:16px}
.fx-gallery__arr--next{right:16px}
.fx-gallery__arr svg{
  width:20px;height:20px;stroke:var(--fx-ink);fill:none;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.fx-gallery__arr:focus-visible{outline:2px solid var(--fx-accent);outline-offset:3px}

.fx-gallery__counter{
  position:absolute;bottom:16px;right:16px;
  font-size:13px;font-weight:500;color:#fff;
  background:rgba(0,0,0,.5);backdrop-filter:blur(4px);
  padding:5px 12px;border-radius:20px;
  font-variant-numeric:tabular-nums;
}

/* --- Миниатюры ---------------------------------------------------------- */
.fx-gallery__thumbs{
  display:flex;gap:10px;margin-top:12px;
  overflow-x:auto;scrollbar-width:thin;
  scrollbar-color:var(--fx-line-strong) transparent;
  -webkit-overflow-scrolling:touch;
  padding-bottom:4px;
}
.fx-gallery__thumbs::-webkit-scrollbar{height:4px}
.fx-gallery__thumbs::-webkit-scrollbar-thumb{background:var(--fx-line-strong);border-radius:2px}

.fx-gallery__thumb{
  flex:0 0 auto;width:88px;height:66px;border:0;padding:0;
  border-radius:8px;overflow:hidden;cursor:pointer;
  opacity:.5;transition:opacity .2s,box-shadow .2s;
  background:var(--fx-wash);
}
.fx-gallery__thumb img{
  display:block;width:100%;height:100%;object-fit:cover;
}
.fx-gallery__thumb:hover{opacity:.8}
.fx-gallery__thumb.is-on{
  opacity:1;box-shadow:0 0 0 2px var(--fx-accent);
}
.fx-gallery__thumb:focus-visible{outline:2px solid var(--fx-accent);outline-offset:2px}

/* --- Тело: характеристики слева, заявка справа -------------------------- */
.fx-object__body{
  display:grid;grid-template-columns:1fr 340px;gap:40px;align-items:start;
  margin-top:8px;
}

.fx-object__specs{margin:0;border-top:1px solid var(--fx-line)}
.fx-object__row{
  display:grid;grid-template-columns:180px 1fr;gap:20px;
  padding:14px 0;border-bottom:1px solid var(--fx-line);
}
.fx-object__row dt{color:var(--fx-soft);font-size:15px;margin:0}
.fx-object__row dd{color:var(--fx-ink);font-size:15.5px;font-weight:500;margin:0}

.fx-object__desc{margin-top:32px}
.fx-object__desc h2{font-size:22px;margin:0 0 14px}
.fx-object__desc p{font-size:16px;line-height:1.8;color:var(--fx-soft);margin:0 0 12px}

/* --- Боковая карточка заявки --------------------------------------------- */
.fx-object__cta--side{
  background:var(--fx-mist);border:1px solid var(--fx-line);
  border-radius:var(--fx-radius-lg);padding:26px 24px;
  position:sticky;top:100px;
}
.fx-object__cta-title{font-size:18px;font-weight:500;color:var(--fx-ink);margin:0 0 8px}
.fx-object__cta-text{font-size:14.5px;line-height:1.65;margin:0 0 20px}

/* --- Ссылка назад ------------------------------------------------------- */
.fx-object__back{margin-top:44px;font-size:15px}
.fx-object__back a{color:var(--fx-accent);text-decoration:none}
.fx-object__back a:hover{text-decoration:underline}

/* --- Адаптив ------------------------------------------------------------ */
@media(max-width:900px){
  .fx-object{padding:36px 0 60px}
  .fx-object__body{grid-template-columns:1fr;gap:28px}
  .fx-object__cta--side{position:static}
  .fx-object__price{font-size:28px}
  .fx-object__head{flex-direction:column;gap:16px}
  .fx-object__cta--top{width:100% !important;margin-left:0}
  .fx-object__cta--top .fx-btn{justify-content:center}
}
@media(max-width:620px){
  .fx-object__row{grid-template-columns:1fr;gap:4px;padding:12px 0}
  .fx-object__price{font-size:26px}
  .fx-gallery__arr{width:36px;height:36px}
  .fx-gallery__arr svg{width:16px;height:16px}
  .fx-gallery__arr--prev{left:10px}
  .fx-gallery__arr--next{right:10px}
  .fx-gallery__thumb{width:72px;height:54px}
  .fx-object__desc h2{font-size:20px}
}

.fx-lot__desc{
  font-size:13.5px;color:var(--fx-soft);line-height:1.55;
  margin:10px 0 0;
  min-height:42px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;
}

/* ==========================================================================
   FINAL — страница объекта: галерея, стрелки, кнопки

   Этот блок дописывается В САМЫЙ КОНЕЦ style.css, ПОСЛЕ всего остального,
   включая все прошлые патчи по галерее и кнопкам. Ничего из существующего
   файла удалять не нужно — этот блок стоит последним и благодаря !important
   и порядку подключения гарантированно перебивает всё, что было раньше.
   ========================================================================== */

/* --- Главное фото: без искажений, всегда заполняет рамку ----------------- */
.fx-gallery__main{
  position:relative;overflow:hidden;
  border-radius:var(--fx-radius-lg) !important;
  border:1px solid var(--fx-line) !important;
  background:var(--fx-wash) !important;
}
.fx-gallery__img{
  display:block !important;
  width:100% !important;
  height:480px !important;
  object-fit:cover !important;
  object-position:center !important;
}

/* --- Миниатюры: тоже не сплющиваются -------------------------------------- */
.fx-gallery__thumb{
  width:88px !important;height:66px !important;
  flex:0 0 88px !important;
  border-radius:8px !important;
  overflow:hidden !important;
}
.fx-gallery__thumb img{
  display:block !important;
  width:100% !important;height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
}
@media(max-width:620px){
  .fx-gallery__thumb{width:72px !important;height:54px !important;flex-basis:72px !important}
}

/* --- Стрелки: квадратные, полупрозрачные, элегантные ---------------------- */
.fx-gallery__arr{
  position:absolute !important;top:50% !important;
  transform:translateY(-50%) !important;
  width:40px !important;height:40px !important;
  min-width:40px !important;min-height:40px !important;
  max-width:40px !important;max-height:40px !important;
  flex:none !important;box-sizing:border-box !important;
  border-radius:8px !important;
  border:1px solid rgba(255,255,255,.35) !important;
  padding:0 !important;margin:0 !important;
  background:rgba(16,26,40,.4) !important;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  cursor:pointer;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-shadow:none !important;
  transition:background .18s,border-color .18s,transform .18s;
}
.fx-gallery__arr--prev{left:14px !important;right:auto !important}
.fx-gallery__arr--next{right:14px !important;left:auto !important}
.fx-gallery__arr:hover{
  background:rgba(16,26,40,.6) !important;
  border-color:rgba(255,255,255,.6) !important;
  transform:translateY(-50%) scale(1.05) !important;
}
.fx-gallery__arr:active{transform:translateY(-50%) scale(.95) !important}

.fx-gallery__arr svg{
  width:17px !important;height:17px !important;
  stroke:#ffffff !important;
  fill:none !important;
  stroke-width:2 !important;
  stroke-linecap:round;
  stroke-linejoin:round;
  display:block !important;
}

@media(max-width:620px){
  .fx-gallery__arr{
    width:34px !important;height:34px !important;
    min-width:34px !important;min-height:34px !important;
    max-width:34px !important;max-height:34px !important;
    border-radius:7px !important;
  }
  .fx-gallery__arr--prev{left:10px !important}
  .fx-gallery__arr--next{right:10px !important}
  .fx-gallery__arr svg{width:14px !important;height:14px !important}
}

/* --- Счётчик фото «1 / 3» -------------------------------------------------- */
.fx-gallery__counter{
  position:absolute !important;bottom:14px !important;right:14px !important;
  font-size:12.5px !important;font-weight:500 !important;color:#ffffff !important;
  background:rgba(16,26,40,.55) !important;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  padding:5px 12px !important;border-radius:20px !important;
  font-variant-numeric:tabular-nums;
}

/* --- Кнопки: единый вид, без переносов ------------------------------------ */
.fx-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  font-family:"Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  font-size:14.5px !important;
  font-weight:500 !important;
  line-height:1.2 !important;
  letter-spacing:0 !important;
  padding:13px 22px !important;
  border-radius:6px !important;
  text-transform:none !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  flex-shrink:0 !important;
  box-sizing:border-box !important;
  cursor:pointer;
  transition:background .18s,color .18s,border-color .18s;
}
.fx-btn--primary{
  background:rgba(27,79,138,.9) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.18) !important;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  box-shadow:0 2px 14px rgba(27,79,138,.22),inset 0 1px 0 rgba(255,255,255,.2) !important;
}
.fx-btn--primary:hover{
  background:rgba(18,58,103,.94) !important;
  border-color:rgba(255,255,255,.25) !important;
  color:#fff !important;
  box-shadow:0 4px 22px rgba(27,79,138,.32),inset 0 1px 0 rgba(255,255,255,.24) !important;
}
.fx-btn--ghost{
  background:rgba(255,255,255,.7) !important;
  color:var(--fx-ink) !important;
  border:1px solid rgba(16,26,40,.12) !important;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  box-shadow:0 2px 10px rgba(16,26,40,.06),inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.fx-btn--ghost:hover{
  background:rgba(255,255,255,.88) !important;
  border-color:rgba(16,26,40,.22) !important;
  box-shadow:0 3px 14px rgba(16,26,40,.09),inset 0 1px 0 rgba(255,255,255,.95) !important;
}


a.fx-tick,
a.fx-tick:link,
a.fx-tick:visited,
a.fx-tick:hover,
a.fx-tick:active,
.fx-ticker a.fx-tick{
  text-decoration:none !important;
  color:inherit !important;
  cursor:pointer;
  transition:opacity .2s;
}
a.fx-tick:hover{opacity:.75}
a.fx-tick .fx-tick__what,
a.fx-tick .fx-tick__price{
  text-decoration:none !important;
}

.fx-object__cta--top{
  background:var(--fx-mist) !important;
  border:1px solid var(--fx-line) !important;
  border-radius:var(--fx-radius-lg) !important;
  padding:16px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  width:220px !important;
  flex-shrink:0;
  margin-left:auto;
}
.fx-object__cta--top .fx-btn{
  width:100% !important;
  padding:11px 18px !important;
  font-size:13.5px !important;
}
@media(max-width:480px){
  .fx-object__cta--top{width:100% !important;margin-left:0}
}

.fx-object__map{margin-top:32px}
.fx-object__map h2{font-size:22px;margin:0 0 14px}
.fx-object__map iframe{
  display:block;width:100%;height:380px;
  border-radius:var(--fx-radius-lg);
  border:1px solid var(--fx-line);
}
@media(max-width:620px){
  .fx-object__map h2{font-size:20px}
  .fx-object__map iframe{height:280px}
}

/* ── Аккордеон «Заявка от собственника» ── */
.fx-owner-acc{
  background:var(--fx-wash);
  border:1px solid var(--fx-line);
  border-radius:var(--fx-radius-lg);
  overflow:hidden;
}
.fx-owner-acc__head{
  list-style:none;
  display:flex;align-items:center;gap:16px;
  padding:24px 28px;cursor:pointer;user-select:none;
}
.fx-owner-acc__head::-webkit-details-marker{display:none}
.fx-owner-acc__head::marker{display:none}
.fx-owner-acc__teaser{flex:1;min-width:0}
.fx-owner-acc__title{display:block;font-size:17px;font-weight:600;color:var(--fx-ink)}
.fx-owner-acc__sub{display:block;font-size:14px;color:var(--fx-soft);margin-top:3px}
.fx-owner-acc__ico{
  flex-shrink:0;
  width:36px;height:36px;border-radius:50%;
  background:var(--fx-accent);
  display:flex;align-items:center;justify-content:center;
  transition:background .2s,transform .2s;
}
.fx-owner-acc__head:hover .fx-owner-acc__ico{background:var(--fx-accent-deep)}
.fx-owner-acc__ico svg{
  width:17px;height:17px;stroke:#fff;fill:none;
  stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;
}
.fx-owner-acc__ico--cross{display:none}
.fx-owner-acc[open] .fx-owner-acc__ico--plus{display:none}
.fx-owner-acc[open] .fx-owner-acc__ico--cross{display:flex}
.fx-owner-acc__body{
  padding:0 28px 32px;
  border-top:1px solid var(--fx-line);
}

/* Секции формы */
.fx-owner-acc__section{margin-top:26px}
.fx-owner-acc__section-title{
  margin:0 0 12px;font-size:11px;font-weight:600;
  text-transform:uppercase;letter-spacing:.07em;color:var(--fx-soft);
}
.fx-owner-acc__grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px 20px;
}
.fx-owner-acc__grid .wide{grid-column:1 / -1}

/* Поля */
.fx-owner-acc__form label{
  display:block;font-size:13px;color:var(--fx-soft);margin-bottom:5px;
}
.fx-owner-acc__req{color:var(--fx-accent)}
.fx-owner-acc__form input,
.fx-owner-acc__form select,
.fx-owner-acc__form textarea{
  width:100%;padding:9px 12px;box-sizing:border-box;
  border:1px solid var(--fx-line-strong);border-radius:8px;
  background:var(--fx-paper);color:var(--fx-ink);
  font-size:14px;font-family:inherit;
  transition:border-color .18s,box-shadow .18s;
  appearance:none;-webkit-appearance:none;
}
.fx-owner-acc__form input:focus,
.fx-owner-acc__form select:focus,
.fx-owner-acc__form textarea:focus{
  outline:none;border-color:var(--fx-accent);
}
.fx-owner-acc__form select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23888' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 10px center;background-size:16px;
  padding-right:32px;
}
.fx-owner-acc__form textarea{resize:vertical;min-height:80px}

/* Подвал формы */
.fx-owner-acc__foot{
  display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:26px;
}
.fx-owner-acc__status{font-size:14px;color:var(--fx-soft);margin:0}
.fx-owner-acc__status--ok{color:#18a058}
.fx-owner-acc__status--err{color:#d14343}

@media(max-width:720px){
  .fx-owner-acc__grid{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .fx-owner-acc__grid{grid-template-columns:1fr}
  .fx-owner-acc__head{padding:18px 20px}
  .fx-owner-acc__body{padding:0 20px 24px}
  .fx-owner-acc__title{font-size:15px}
}

/* ── Кнопки «избранное» и «сравнить» на карточках ── */
.fx-act-btn{
  position:absolute;top:8px;
  display:flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:50%;padding:0;
  background:rgba(255,255,255,.68);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 2px 8px rgba(16,26,40,.12),inset 0 1px 0 rgba(255,255,255,.9);
  cursor:pointer;touch-action:manipulation;
  transition:background .18s,transform .15s,box-shadow .18s;
  z-index:2;
}
.fx-act-btn:hover{background:rgba(255,255,255,.9);transform:scale(1.12);box-shadow:0 4px 12px rgba(16,26,40,.16),inset 0 1px 0 rgba(255,255,255,.95)}
.fx-fav-btn{right:10px}
.fx-cmp-btn{right:48px}
.fx-cmp-btn--full{background:var(--fx-line)!important}
/* Увеличенные тач-цели на тач-устройствах */
@media(hover:none) and (pointer:coarse){
  .fx-act-btn{width:44px;height:44px;top:4px}
  .fx-fav-btn{right:4px}
  .fx-cmp-btn{right:52px}
}
.fx-act-btn svg{
  width:15px;height:15px;
  stroke:var(--fx-ink);fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  transition:stroke .18s,fill .18s;
}
.fx-fav-btn.is-active svg{fill:var(--fx-accent);stroke:var(--fx-accent)}
.fx-cmp-btn.is-active svg{stroke:var(--fx-accent)}

/* ── Таблица сравнения ── */
.fx-compare-table{overflow-x:auto}
.fx-compare-table table{width:100%;border-collapse:collapse;font-size:14px}
.fx-compare-table th,
.fx-compare-table td{
  padding:12px 16px;border-bottom:1px solid var(--fx-line);
  text-align:left;white-space:nowrap;
}
.fx-compare-table th{font-weight:500;color:var(--fx-ink)}
.fx-compare-table td:first-child,
.fx-compare-table th:first-child{color:var(--fx-soft);font-weight:400}

/* ==========================================================================
   12. Подвал (footer)
   ========================================================================== */
.fx-footer{
  background:var(--fx-ink);
  color:rgba(255,255,255,.6);
  font-size:14px;
  line-height:1.65;
  border-top:3px solid var(--fx-accent);
}
.fx-footer__wrap{
  max-width:1140px;
  margin:0 auto;
  padding:18px 32px 44px;
}

/* Логотип — отдельная строка над колонками */
.fx-footer__head{
  padding-bottom:28px;
  border-bottom:1px solid rgba(255,255,255,.07);
  margin-bottom:32px;
}
.fx-footer__logo{
  display:inline-block;
  font-size:26px;
  font-weight:700;
  color:#fff;
  text-decoration:none;
  letter-spacing:0.04em;
  transition:opacity .2s;
}
.fx-footer__logo:hover{opacity:.8;color:#fff}
.fx-footer__logo span{color:var(--fx-accent)}

/* Три колонки — все стартуют с одного уровня */
.fx-footer__cols{
  display:grid;
  grid-template-columns:1.7fr 1fr 1fr;
  gap:48px;
  align-items:start;
}

/* Левая колонка: описание + контакты + соцсети */
.fx-footer__tagline{
  color:rgba(255,255,255,.45);
  font-size:13px;
  margin:0 0 22px;
  line-height:1.7;
}
.fx-footer__contacts{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:9px;
}
.fx-footer__ci{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:13.5px;
}
.fx-footer__ci::before{
  content:'';
  display:inline-block;
  width:15px;height:15px;
  flex-shrink:0;
  background:var(--fx-accent);
  opacity:.9;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;
}
.fx-footer__ci--phone::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6A19.79 19.79 0 012.12 4.18 2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6A19.79 19.79 0 012.12 4.18 2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
}
.fx-footer__ci--email::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M2 7l10 7 10-7'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M2 7l10 7 10-7'/%3E%3C/svg%3E");
}
.fx-footer__ci--address::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.fx-footer__contacts a{color:rgba(255,255,255,.78);text-decoration:none;transition:color .2s}
.fx-footer__contacts a:hover{color:#fff}
.fx-footer__ci--address{color:rgba(255,255,255,.42)}

/* Соцсети */
.fx-footer__social{display:flex;gap:10px;margin-top:24px}
.fx-footer__soc{
  display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:8px;
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.55);
  text-decoration:none;
  transition:background .2s,color .2s;
}
.fx-footer__soc svg{width:20px;height:20px;display:block}
.fx-footer__soc--vk:hover{background:#0077ff;color:#fff}
.fx-footer__soc--tg:hover{background:#229ED9;color:#fff}

/* Навигационные колонки */
.fx-footer__heading{
  font-size:13px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.65);
  margin:0 0 16px;
}
.fx-footer__nav ul{
  list-style:none;padding:0;margin:0;
  display:flex;flex-direction:column;gap:11px;
}
.fx-footer__nav a{
  color:rgba(255,255,255,.6);
  text-decoration:none;
  transition:color .2s,padding-left .2s;
  display:inline-block;
}
.fx-footer__nav a:hover{color:#fff;padding-left:4px}

/* Нижняя полоса */
.fx-footer__bottom{border-top:1px solid rgba(255,255,255,.07)}
.fx-footer__bottom-inner{
  max-width:1140px;margin:0 auto;
  padding:18px 32px;
  display:flex;justify-content:space-between;align-items:center;
  font-size:12px;color:rgba(255,255,255,.28);gap:16px;
}
.fx-footer__bottom-inner a{color:rgba(255,255,255,.28);text-decoration:none;transition:color .2s}
.fx-footer__bottom-inner a:hover{color:rgba(255,255,255,.65)}

/* Адаптив */
@media(max-width:860px){
  .fx-footer__wrap{padding:28px 24px 36px}
  .fx-footer__cols{grid-template-columns:1fr 1fr;gap:32px}
  .fx-footer__brand{grid-column:1 / -1}
}
@media(max-width:480px){
  .fx-footer__cols{grid-template-columns:1fr;gap:28px}
  .fx-footer__bottom-inner{flex-direction:column;text-align:center;padding:16px 20px}
}

/* ==========================================================================
   Плавающая панель избранного / сравнения
   ========================================================================== */
.fx-floatbar{
  position:fixed;bottom:28px;right:28px;z-index:9990;
  display:flex;flex-direction:column;gap:10px;
  opacity:0;pointer-events:none;
  transform:translateY(12px);
  transition:opacity .25s,transform .25s;
}
.fx-floatbar--visible{opacity:1;pointer-events:auto;transform:translateY(0)}

.fx-floatbar__btn{
  display:flex;align-items:center;gap:10px;
  padding:11px 18px 11px 14px;
  background:rgba(16,26,40,.78);color:#fff;
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.14);
  border-radius:50px;text-decoration:none;
  box-shadow:0 4px 24px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.1);
  font-size:14px;font-weight:500;
  transition:background .2s,transform .15s,box-shadow .2s;
  white-space:nowrap;
}
.fx-floatbar__btn:hover{
  background:rgba(27,79,138,.88);
  border-color:rgba(255,255,255,.2);
  transform:translateY(-2px);
  box-shadow:0 6px 28px rgba(27,79,138,.35),inset 0 1px 0 rgba(255,255,255,.15);
  color:#fff;
}
.fx-floatbar__btn--empty{display:none !important}
.fx-floatbar__btn svg{width:18px;height:18px;flex-shrink:0;stroke:#fff}
.fx-floatbar__label{flex:1}
.fx-floatbar__count{
  min-width:22px;height:22px;padding:0 6px;
  background:#fff;color:var(--fx-ink);
  border-radius:50px;font-size:12px;font-weight:700;
  display:grid;place-items:center;
  transition:background .2s,color .2s;
}
.fx-floatbar__btn--fav:hover .fx-floatbar__count{background:rgba(255,255,255,.2);color:#fff}
.fx-floatbar__btn--cmp:hover .fx-floatbar__count{background:rgba(255,255,255,.2);color:#fff}

@media(max-width:600px){
  .fx-floatbar{bottom:16px;right:16px;flex-direction:row}
  .fx-floatbar__label{display:none}
  .fx-floatbar__btn{padding:11px 14px}
}

/* ==========================================================================
   Страница избранного / сравнения
   ========================================================================== */
.fx-empty{
  text-align:center;padding:64px 20px;
  color:var(--fx-soft);font-size:16px;
}
.fx-loading{
  text-align:center;padding:48px 20px;
  color:var(--fx-faint);font-size:15px;
}

/* Таблица сравнения */
.fx-compare-table{overflow-x:auto;margin-top:32px}
.fx-compare-table table{
  width:100%;border-collapse:collapse;
  font-size:15px;
}
.fx-compare-table th,
.fx-compare-table td{
  padding:13px 18px;
  border:1px solid var(--fx-line);
  vertical-align:top;
  text-align:left;
}
.fx-compare-table th{
  background:var(--fx-wash);
  font-weight:600;color:var(--fx-ink);
  min-width:180px;
}
.fx-compare-table th a{
  color:var(--fx-accent);text-decoration:none;font-weight:600;
}
.fx-compare-table th a:hover{text-decoration:underline}
.fx-compare-table tr:first-child th:first-child{background:transparent;border:none}
.fx-compare-table td:first-child{
  font-weight:500;color:var(--fx-soft);
  background:var(--fx-mist);white-space:nowrap;
}
.fx-compare-table tr:nth-child(even) td{background:var(--fx-mist)}

/* ==========================================================================
   Иконки избранного / сравнения в шапке
   ========================================================================== */
.fx-header-icons{
  display:flex;align-items:center;gap:4px;
  margin-left:16px;flex-shrink:0;
}
.fx-header-icon{
  position:relative;
  display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:8px;
  color:var(--fx-soft);text-decoration:none;
  transition:background .18s,color .18s;
}
.fx-header-icon:hover,
.fx-header-icon.is-active{color:var(--fx-accent);background:var(--fx-wash)}
.fx-header-icon svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fx-header-icon__badge{
  position:absolute;top:2px;right:2px;
  min-width:16px;height:16px;padding:0 4px;
  background:var(--fx-accent);color:#fff;
  border-radius:50px;font-size:10px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
  line-height:1;
}
/* Мобильные иконки — во втором хедере Astra */
.fx-header-icons--mobile{margin-left:0;margin-right:4px}
@media(max-width:768px){
  .fx-header-icons{margin-left:8px}
  .fx-header-icon{width:34px;height:34px}
}

/* Тулбар страниц избранного / сравнения */
.fx-collection-page__toolbar{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;margin-bottom:28px;flex-wrap:wrap;
}
.fx-collection-page__hint{
  font-size:13.5px;color:var(--fx-faint);margin:0;
}
/* ── Кнопки избранного / сравнения на странице объекта ── */
.fx-obj-actions{display:flex !important;gap:8px !important;margin-top:18px !important;align-items:center !important}
.fx-obj-action{
  appearance:none !important;-webkit-appearance:none !important;
  display:flex !important;align-items:center !important;justify-content:center !important;
  width:36px !important;height:36px !important;min-width:36px;min-height:36px;
  border-radius:50% !important;padding:0 !important;margin:0 !important;
  border:1px solid rgba(16,26,40,.1) !important;
  background:rgba(255,255,255,.72) !important;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  box-shadow:0 2px 8px rgba(16,26,40,.08),inset 0 1px 0 rgba(255,255,255,.9) !important;
  outline:none !important;cursor:pointer;touch-action:manipulation;pointer-events:auto;
  color:var(--fx-soft);
  transition:border-color .18s,background .18s,transform .15s,box-shadow .18s;
  -webkit-tap-highlight-color:transparent;
}
.fx-obj-action:focus{outline:none !important;background:rgba(255,255,255,.72) !important;border-color:rgba(16,26,40,.1) !important}
.fx-obj-action.is-active:focus{background:rgba(238,243,249,.85) !important;border-color:rgba(27,79,138,.4) !important}
.fx-obj-action:focus-visible{outline:2px solid rgba(27,79,138,.35) !important;outline-offset:3px !important}
.fx-obj-action svg{
  display:block !important;
  width:16px !important;height:16px !important;
  min-width:16px;min-height:16px;max-width:16px;max-height:16px;
  flex-shrink:0;
  stroke:var(--fx-ink) !important;fill:none !important;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  transition:stroke .18s,fill .18s;pointer-events:none;
}
.fx-obj-action:hover{border-color:rgba(27,79,138,.35) !important;transform:scale(1.1);box-shadow:0 4px 12px rgba(16,26,40,.12),inset 0 1px 0 rgba(255,255,255,.95) !important}
.fx-obj-action.is-active{border-color:rgba(27,79,138,.4) !important;background:rgba(238,243,249,.85) !important;box-shadow:0 2px 8px rgba(27,79,138,.1),inset 0 1px 0 rgba(255,255,255,.7) !important}
.fx-obj-action.fx-fav-btn.is-active svg{fill:var(--fx-accent) !important;stroke:var(--fx-accent) !important}
.fx-obj-action.fx-cmp-btn.is-active svg{stroke:var(--fx-accent) !important}
.fx-obj-action.fx-cmp-btn--full{background:var(--fx-line) !important;border-color:var(--fx-line) !important}
@media(hover:none) and (pointer:coarse){
  .fx-obj-action{width:44px !important;height:44px !important;min-width:44px;min-height:44px}
  .fx-obj-action svg{width:20px !important;height:20px !important;min-width:20px;min-height:20px;max-width:20px;max-height:20px}
}

/* ── Тулбар страниц избранного / сравнения ── */
.fx-collection-page__clear{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 14px;font:inherit;font-size:13px;
  color:var(--fx-soft);
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(16,26,40,.1);border-radius:20px;
  box-shadow:0 1px 6px rgba(16,26,40,.05),inset 0 1px 0 rgba(255,255,255,.85);
  cursor:pointer;transition:color .18s,border-color .18s,background .18s,box-shadow .18s;
  white-space:nowrap;
}
.fx-collection-page__clear:hover{
  color:#c0392b;border-color:rgba(192,57,43,.3);
  background:rgba(255,245,245,.8);
  box-shadow:0 2px 8px rgba(192,57,43,.08),inset 0 1px 0 rgba(255,255,255,.9);
}
.fx-collection-page__clear svg{stroke:currentColor;flex-shrink:0}
