﻿/* ============================================================
   EXTRAS — calc, sticky CTA, exit modal, floating chat, scroll bar
   ============================================================ */

/* ---------- Scroll progress bar ---------- */
.scrollprog {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 79;
  height: 2px; background: transparent; pointer-events: none;
}
.scrollprog__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

/* ---------- Sticky quiz CTA ---------- */
@keyframes stickyqIn {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.stickyq {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 14px 22px 14px 24px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 18px 50px -10px rgba(6,64,102,.55);
  animation: stickyqIn .35s var(--ease);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stickyq:hover { transform: translate(-50%, -3px); box-shadow: 0 24px 60px -10px rgba(6,64,102,.7); }
.stickyq--cont { background: linear-gradient(135deg, var(--navy-3), var(--navy)); }
.stickyq__pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(123,181,220,.5);
  animation: pulse-blue 2s infinite;
}
.stickyq__body { display: flex; flex-direction: column; }
.stickyq__body strong { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: #fff; }
.stickyq__body span { font-size: 12px; color: rgba(255,255,255,.65); }
.stickyq__arr { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--accent-2); }
@media (max-width: 880px) { .stickyq { display: none; } }

/* ---------- Exit intent ---------- */
.exit { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.exit__back { position: absolute; inset: 0; background: rgba(6,64,102,.6); backdrop-filter: blur(4px); }
.exit__panel { position: relative; max-width: 480px; width: calc(100% - 40px); padding: 36px; animation: exitPop .35s var(--ease); }
@keyframes exitPop { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
.exit__x {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-100); color: var(--muted); font-size: 14px;
  transition: all .2s;
}
.exit__x:hover { background: var(--navy); color: #fff; }
.exit__kicker {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.exit__h { font-family: var(--font-head); font-weight: 900; font-size: 26px; line-height: 1.15; margin-bottom: 12px; }
.exit__p { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.exit__p b { color: var(--navy); }
.exit__form { display: flex; flex-direction: column; gap: 10px; }
.exit__form input { padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: var(--font-body); font-size: 15px; outline: none; transition: border-color .2s; }
.exit__form input:focus { border-color: var(--blue); }
.exit__micro { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.exit__ok { text-align: center; padding: 20px 0 10px; }
.exit__ok-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 28px; display: grid; place-items: center; margin: 0 auto 16px; }
.exit__ok h3 { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin-bottom: 8px; }
.exit__ok p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.exit__contest-img { width: 100%; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 16px; }
.exit__contest-img img { width: 100%; height: auto; display: block; }

/* ---------- Floating chat ---------- */
.fchat { position: fixed; bottom: 30px; right: 30px; z-index: 65; }
.fchat__btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 36px -10px rgba(6,64,102,.55);
  transition: transform .25s var(--ease), background .25s;
  position: relative;
}
.fchat__btn:hover { transform: translateY(-3px) scale(1.05); background: var(--navy-3); }
.fchat__dot {
  position: absolute; top: 8px; right: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--navy);
  animation: pulse-blue 2s infinite;
}
.fchat__menu {
  position: absolute; bottom: 76px; right: 0;
  width: 280px; padding: 14px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  animation: fchatIn .25s var(--ease);
}
@keyframes fchatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fchat__head { padding: 8px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.fchat__head-t { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy); }
.fchat__head-s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.fchat__opt {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px; border-radius: 10px;
  transition: background .2s;
  color: var(--text);
}
.fchat__opt:hover { background: var(--light-bg); }
.fchat__opt-ic {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  flex: 0 0 auto;
}
.fchat__opt--wa .fchat__opt-ic { background: #25D366; }    /* keep brand color for WhatsApp */
.fchat__opt--tg .fchat__opt-ic { background: #0088CC; }    /* keep brand color for Telegram */
.fchat__opt--call .fchat__opt-ic { background: var(--navy); }
.fchat__opt-txt { display: flex; flex-direction: column; }
.fchat__opt-txt strong { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy); }
.fchat__opt-txt span { font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .fchat { bottom: 92px; right: 16px; } }

/* ============================================================
   SAVINGS CALCULATOR
   ============================================================ */
.calc { background: var(--light-bg); }
.calc__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.calc__controls { padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.calc__ctrl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calc__ctrl-label { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy); }
.calc__ctrl-val {
  font-family: var(--font-head); font-weight: 900; font-size: 22px;
  color: var(--navy);
}
.calc__ctrl-val span { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }

/* Range slider with blue fill */
.calc__range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 99px;
  background: linear-gradient(to right, var(--navy) 0%, var(--navy) var(--p, 30%), var(--gray-200) var(--p, 30%), var(--gray-200) 100%);
  outline: none;
}
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--navy);
  box-shadow: 0 4px 10px -2px rgba(6,64,102,.4);
  cursor: pointer; transition: transform .15s;
}
.calc__range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc__range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--navy);
  cursor: pointer;
}
.calc__ctrl-marks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }

.calc__years { display: flex; gap: 8px; }
.calc__year {
  flex: 1; padding: 12px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: var(--muted);
  transition: all .2s;
}
.calc__year:hover { border-color: var(--blue); color: var(--blue); }
.calc__year.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.calc__hint {
  display: flex; gap: 12px; padding: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(123,181,220,.3);
  border-radius: var(--r-sm);
}
.calc__hint-ic { font-size: 18px; }
.calc__hint p { font-size: 13.5px; color: var(--navy); }

/* Result panel */
.calc__result { padding: 32px; background: linear-gradient(165deg, var(--navy), var(--navy-2)); color: #fff; position: relative; overflow: hidden; }
.calc__result::before {
  content: ""; position: absolute; top: -30%; right: -20%;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,181,220,.18), transparent 70%);
  animation: orbDrift 8s ease-in-out infinite alternate;
}
.calc__result > * { position: relative; }
.calc__bar {
  display: flex; height: 56px; border-radius: 12px; overflow: hidden;
  margin-bottom: 26px; background: rgba(255,255,255,.08);
}
.calc__bar-block {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: width .5s var(--ease);
  padding: 0 8px;
}
.calc__bar-block span { font-size: 11px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; }
.calc__bar-block b { font-family: var(--font-head); font-weight: 800; font-size: 14px; color: #fff; }
.calc__bar-block--real { background: rgba(255,255,255,.12); }
.calc__bar-block--saved { background: linear-gradient(90deg, var(--blue), var(--accent)); }

.calc__pct {
  display: flex; gap: 14px; align-items: baseline;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-line);
}
.calc__pct-num { font-family: var(--font-head); font-weight: 900; font-size: 56px; color: var(--accent-2); line-height: 1; }
.calc__pct-lab { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.3; }

.calc__total { margin-bottom: 22px; }
.calc__total-lab { font-size: 13px; color: rgba(255,255,255,.7); }
.calc__total-num { font-family: var(--font-head); font-weight: 900; font-size: 44px; color: #fff; margin: 4px 0 6px; line-height: 1; }
.calc__total-sub { font-size: 13.5px; color: rgba(255,255,255,.66); }

.calc__fit { margin-bottom: 22px; }
.calc__fit-lab { display: block; font-size: 12.5px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.calc__fit-list { display: flex; flex-wrap: wrap; gap: 6px; }
.calc__fit-list .chip { background: rgba(255,255,255,.1); color: #fff; border-color: var(--glass-line); }

.calc__cta { margin-bottom: 8px; }
.calc__micro { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
  .calc__layout { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT PAGE — accreditations + office
   ============================================================ */
/* ---------- Scroll rail with arrows (shared) ---------- */
.srail { position: relative; }
.srail__track { scrollbar-width: none; -ms-overflow-style: none; }
.srail__track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.srail__arrow {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 6;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line, #e7ebf3);
  box-shadow: 0 6px 20px rgba(10,35,90,.18);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.srail__arrow:hover { background: var(--navy); color: #fff; box-shadow: 0 12px 28px rgba(10,35,90,.3); transform: translateY(-50%) scale(1.08); }
.srail__arrow--prev { left: -12px; }
.srail__arrow--next { right: -12px; }
@media (max-width: 640px) { .srail__arrow { display: none; } }

.accreds__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.accred { padding: 30px; }
.accred__tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--blue);
}
.accred__logo { max-height: 48px; max-width: 160px; object-fit: contain; margin-bottom: 10px; display: block; }
.accred__name { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin-top: 14px; color: var(--navy); }
.accred__desc { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--gray-600); }

.office__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 18px;
  align-items: stretch;
}
.office__info { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.office__rating {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.office__rating > b {
  font-family: var(--font-head); font-weight: 800; font-size: 40px; color: var(--navy);
}
.office__stars { display: block; color: #f4b73f; font-size: 16px; letter-spacing: 2px; }
.office__rating-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.office__rows { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.office__row { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--gray-700); }
.office__row b { display: block; font-family: var(--font-head); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.office__row a { color: var(--blue); font-weight: 600; }
.office__row a:hover { color: var(--navy); }
.office__map { overflow: hidden; padding: 0; min-height: 360px; display: flex; flex-direction: column; }
.office__map iframe { display: block; width: 100%; flex: 1; min-height: 310px; border: 0; }
.office__map-canvas { flex: 1; min-height: 310px; width: 100%; }
.office__map-tabs { display: flex; border-bottom: 1px solid var(--line); }
.office__map-tab { flex: 1; padding: 10px; font-size: 13px; font-weight: 600; border: none; background: none; cursor: pointer; color: var(--muted); transition: color .2s, background .2s; }
.office__map-tab:hover { background: var(--surface); color: var(--navy); }
.office__map-tab.is-on { color: var(--blue); border-bottom: 2px solid var(--blue); margin-bottom: -1px; background: none; }
.office__2gis { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 32px 28px; }
.office__2gis-addr { display: flex; gap: 14px; align-items: flex-start; }
.office__2gis-ic { font-size: 22px; margin-top: 2px; }
.office__2gis-addr b { display: block; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.office__2gis-addr span { font-size: 13px; color: var(--muted); }
.office__2gis-link { text-align: center; font-size: 13px; color: var(--blue); text-decoration: underline; }
.office__2gis-link:hover { color: var(--navy); }
.office__map-links { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.office__map-ext-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 8px; padding: 7px 14px; transition: background .2s, color .2s; text-decoration: none; white-space: nowrap; }
.office__map-ext-link--primary { background: var(--navy); color: #fff; }
.office__map-ext-link--primary:hover { background: var(--navy-3); color: #fff; }
.office__map-ext-link--muted { color: var(--muted); }
.office__map-ext-link--muted:hover { color: var(--navy); }
.office__map-firm { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); background: var(--white); }
.office__map-firm-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.office__map-firm-name { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy); }
.office__map-firm-meta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.office__map-firm-star { color: #f5a623; font-weight: 700; }

@media (max-width: 900px) {
  .office__grid { grid-template-columns: 1fr; }
  .office__map iframe { min-height: 280px; }
}

/* ============================================================
   IMG — заменяют .ph-заглушки там где файл реально загружен
   ============================================================ */
img.about__photo { object-fit: cover; display: block; }
img.team__photo  { width: 100%; object-fit: cover; display: block; }
img.post__cover  { width: 100%; object-fit: cover; display: block; }
