/* ============================================================
   КрасЖильё — Shared Styles
   Шрифты, цвета, шапка, подвал, плавающие кнопки, формы.
   Подключайте этот файл на каждой странице сайта.

   ВАЖНО: добавьте в <head> каждой страницы ссылку на шрифты:
   <link rel="stylesheet"
     href="https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;800&family=Onest:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
     media="print" onload="this.media='all'">
   <noscript><link rel="stylesheet"
     href="https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;800&family=Onest:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"></noscript>
   ============================================================ */

/* ============================================================
   Font Metric Overrides — уменьшаем CLS при подгрузке шрифтов
   ============================================================ */
@font-face {
  font-family: 'Onest Fallback';
  src: local('Arial');
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Unbounded Fallback';
  src: local('Arial');
  size-adjust: 99%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Courier New');
  size-adjust: 100%;
  ascent-override: 90%;
  descent-override: 23%;
  line-gap-override: 0%;
}

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --brand-50:  #EEF3FF;
  --brand-100: #DCE5FF;
  --brand-200: #B4C4FF;
  --brand-300: #8AA3FF;
  --brand-400: #5C7DFF;
  --brand-500: #2D5BFF;
  --brand-600: #1F47DB;
  --brand-700: #1838B0;
  --brand-800: #142C8A;
  --brand-900: #0E1F66;
  --brand:     var(--brand-500);

  --teal-50:  #E6FAF7;
  --teal-100: #BFF1E8;
  --teal-300: #5BD9C2;
  --teal-500: #14B8A6;
  --teal-700: #0F8A7C;
  --teal:     var(--teal-500);

  --gray-0:   #FFFFFF;
  --gray-50:  #F7F8FA;
  --gray-100: #EFF1F5;
  --gray-200: #E5E8EE;
  --gray-300: #CBD0DA;
  --gray-400: #9AA3B5;
  --gray-500: #6B7388;
  --gray-600: #4A5365;
  --gray-700: #2E3445;
  --gray-800: #1A2030;
  --gray-900: #0E1525;
  --gray-950: #0B1019;

  --success:   #10B981;
  --success-bg:#E6F9F1;
  --danger:    #EF4444;
  --danger-bg: #FDECEC;
  --warning:   #F59E0B;
  --warning-bg:#FDF3E0;
  --info:      var(--brand-500);
  --info-bg:   var(--brand-50);

  --bg:           var(--gray-50);
  --bg-card:      var(--gray-0);
  --bg-dark:      var(--gray-900);
  --bg-darker:    var(--gray-950);
  --overlay:      rgba(14, 21, 37, .5);

  --fg-1:      var(--gray-900);
  --fg-2:      var(--gray-600);
  --fg-3:      var(--gray-500);
  --fg-on-dark:#FFFFFF;
  --fg-on-dark-2: rgba(255,255,255,.72);

  --border:        var(--gray-200);
  --border-strong: var(--gray-300);
  --border-dark:   rgba(255,255,255,.12);

  --font-display: 'Unbounded', 'Unbounded Fallback', system-ui, -apple-system, sans-serif;
  --font-body:    'Onest', 'Onest Fallback', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, monospace;

  --shadow-sm: 0 1px 2px rgba(14, 21, 37, .06), 0 1px 1px rgba(14, 21, 37, .04);
  --shadow-md: 0 4px 12px rgba(14, 21, 37, .08), 0 2px 4px rgba(14, 21, 37, .04);
  --shadow-lg: 0 16px 40px rgba(14, 21, 37, .12), 0 4px 12px rgba(14, 21, 37, .06);
  --shadow-focus: 0 0 0 4px rgba(45, 91, 255, .18);

  --ease-standard: cubic-bezier(.2, .8, .2, 1);
  --dur-micro: 150ms;
  --dur-base:  250ms;
  --dur-slow:  400ms;

  --z-sticky: 50;
  --z-overlay: 100;
  --z-modal: 200;
  --z-toast: 300;
}

/* Brand overrides — палитра из логотипа
   #3C5DA2 (синий), #6AC7ED (голубой), #EA3426 (красный), #15191A (графит) */
:root {
  --brand-50:  #ECF0F8;
  --brand-100: #D3DBEE;
  --brand-200: #A8B8DD;
  --brand-300: #7A93C8;
  --brand-400: #5676B5;
  --brand-500: #3C5DA2;
  --brand-600: #324F8B;
  --brand-700: #274073;
  --brand-800: #1D305A;
  --brand-900: #132040;

  --teal-50:  #E8F6FC;
  --teal-100: #C8E9F8;
  --teal-300: #8DD4F2;
  --teal-500: #6AC7ED;
  --teal-700: #2EA0C8;

  --bg-dark:    #15191A;
  --bg-darker:  #0E1112;
  --gray-900:   #15191A;

  --accent-red:     #EA3426;
  --accent-red-700: #C02219;
  --accent-red-50:  #FEEDEC;

  --shadow-focus: 0 0 0 4px rgba(60, 93, 162, .22);
}

/* ============================================================
   Base reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--fg-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Section base
   ============================================================ */
.section { padding: 48px 0; }
.section--tight { padding: 28px 0; }
.section__head { margin-bottom: 48px; }
.section__eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-500);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 6.5vw, 56px); line-height: 1.05;
  letter-spacing: -.025em; color: var(--fg-1);
  margin: 0 0 16px; max-width: 22ch; text-wrap: pretty;
}
.section__sub {
  font-size: 18px; color: var(--fg-2); max-width: 60ch;
  line-height: 1.55; margin: 0;
}

/* ============================================================
   Header
   ============================================================ */
.kj-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.kj-header__inner {
  height: 96px; display: flex; align-items: center; gap: 28px;
  position: relative; z-index: 2; overflow: hidden;
}
.kj-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.kj-header__logo-img { display: block; }
.kj-header__logo .kj-header__logo-img--horiz { flex-shrink: 0; max-width: none; width: auto; }
.kj-header__logo .kj-header__logo-compact { display: none; flex-shrink: 0; height: 56px; width: auto; max-width: 44vw; }

@media (max-width: 980px) {
  .kj-header__logo .kj-header__logo-img--horiz { display: none; }
  .kj-header__logo .kj-header__logo-compact { display: block; height: 52px; }
}

.kj-header__spacer { flex: 1; }
.kj-header__phone {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; color: var(--fg-1); letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--dur-micro) var(--ease-standard);
  flex-shrink: 1; min-width: 0;
}
.kj-header__phone-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kj-header__phone:hover { color: var(--brand-500); }
.kj-header__phone .icon-wrap {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-500);
  display: grid; place-items: center;
}
.kj-header__social { display: flex; gap: 8px; align-items: center; }
.soc {
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--gray-100); color: var(--fg-2);
  transition: all var(--dur-micro) var(--ease-standard);
}
.soc:hover { background: var(--brand-50); color: var(--brand-500); }
.soc--dark { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.soc--dark:hover { background: rgba(255,255,255,.16); color: #fff; }

/* Burger button */
.kj-burger {
  position: relative; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 12px; padding: 0;
  border: 1px solid var(--border); background: var(--bg-card); cursor: pointer;
  transition: all var(--dur-micro) var(--ease-standard);
}
.kj-burger:hover { border-color: var(--border-strong); background: var(--brand-50); }
.kj-burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px;
  background: var(--fg-1);
  transition: transform var(--dur-base) var(--ease-standard), opacity var(--dur-micro) linear;
}
.kj-burger span:nth-child(1) { top: 16px; }
.kj-burger span:nth-child(2) { top: 22px; }
.kj-burger span:nth-child(3) { top: 28px; }
.kj-burger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.kj-burger.is-open span:nth-child(2) { opacity: 0; }
.kj-burger.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Nav backdrop */
.kj-nav-back {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(16,18,22,.45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease-standard), visibility var(--dur-slow) var(--ease-standard);
}
.kj-nav-back.is-open { opacity: 1; visibility: visible; }

/* Nav drawer */
.kj-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 151;
  height: 100%; height: 100dvh;
  width: min(440px, 100vw);
  display: flex; flex-direction: column;
  background: var(--bg-card);
  box-shadow: -30px 0 80px rgba(16,18,22,.28);
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-standard), visibility var(--dur-slow) var(--ease-standard);
  will-change: transform;
}
.kj-nav.is-open { transform: translateX(0); visibility: visible; }

.kj-nav__top {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px; flex-shrink: 0; padding: 0 24px;
  border-bottom: 1px solid var(--border);
}
.kj-nav__title {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  letter-spacing: -.01em; color: var(--fg-1);
}
.kj-nav__close {
  width: 46px; height: 46px; flex-shrink: 0; padding: 0;
  display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--fg-1); cursor: pointer;
  transition: all var(--dur-micro) var(--ease-standard);
}
.kj-nav__close:hover { background: var(--brand-50); color: var(--brand-500); border-color: var(--border-strong); }
.kj-nav__close:active { transform: scale(.94); }

.kj-nav__links {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; padding: 12px 0;
}
.kj-nav__link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px;
  font-family: var(--font-body); font-weight: 600; font-size: 19px;
  color: var(--fg-1); text-decoration: none;
  opacity: 0; transform: translateX(24px);
  transition: background var(--dur-micro) var(--ease-standard),
              color var(--dur-micro) var(--ease-standard),
              padding var(--dur-base) var(--ease-standard);
}
.kj-nav.is-open .kj-nav__link { animation: kj-nav-in var(--dur-slow) var(--ease-standard) forwards; }
.kj-nav.is-open .kj-nav__link:nth-child(1) { animation-delay: .05s; }
.kj-nav.is-open .kj-nav__link:nth-child(2) { animation-delay: .09s; }
.kj-nav.is-open .kj-nav__link:nth-child(3) { animation-delay: .13s; }
.kj-nav.is-open .kj-nav__link:nth-child(4) { animation-delay: .17s; }
.kj-nav.is-open .kj-nav__link:nth-child(5) { animation-delay: .21s; }
.kj-nav.is-open .kj-nav__link:nth-child(6) { animation-delay: .25s; }
.kj-nav.is-open .kj-nav__link:nth-child(7) { animation-delay: .29s; }
.kj-nav.is-open .kj-nav__link:nth-child(8) { animation-delay: .33s; }
@keyframes kj-nav-in { to { opacity: 1; transform: translateX(0); } }
.kj-nav__link svg { color: var(--brand-500); opacity: 0; transform: translateX(-8px); transition: opacity var(--dur-micro) var(--ease-standard), transform var(--dur-micro) var(--ease-standard); }
.kj-nav__link:hover { background: var(--brand-50); color: var(--brand-700); padding-left: 36px; }
.kj-nav__link:hover svg { opacity: 1; transform: translateX(0); }

.kj-nav__footer {
  flex-shrink: 0; border-top: 1px solid var(--border);
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
}
.kj-nav__phone {
  display: flex; align-items: center; gap: 10px; padding: 4px 2px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--fg-1); text-decoration: none;
  transition: color var(--dur-micro) var(--ease-standard);
}
.kj-nav__phone:hover { color: var(--brand-500); }
.kj-nav__cta { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .kj-nav__link { opacity: 1; transform: none; }
  .kj-nav.is-open .kj-nav__link { animation: none; }
}

#top, #results, #preimushchestva, #services, #quiz, #reviews, #founder, #get-consultation {
  scroll-margin-top: 108px;
}

@media (max-width: 600px) {
  .kj-burger { width: 42px; height: 42px; }
  .kj-burger span { left: 12px; right: 12px; }
  .kj-burger span:nth-child(1) { top: 14px; }
  .kj-burger span:nth-child(2) { top: 20px; }
  .kj-burger span:nth-child(3) { top: 26px; }
  .kj-burger.is-open span:nth-child(1),
  .kj-burger.is-open span:nth-child(3) { top: 20px; }
  .kj-nav__top { height: 76px; padding: 0 18px; }
  .kj-nav__close { width: 42px; height: 42px; }
  .kj-nav__link { padding: 15px 22px; font-size: 18px; }
  .kj-nav__link:hover { padding-left: 28px; }
  .kj-nav__footer { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--dur-micro) var(--ease-standard);
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn-md { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn-primary { background: var(--brand-500); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-accent { background: var(--accent-red); color: #fff; }
.btn-accent:hover { background: var(--accent-red-700); }
.btn-secondary { background: var(--bg-card); color: var(--fg-1); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); }
.btn-on-dark-primary { background: #fff; color: var(--fg-1); }
.btn-on-dark-primary:hover { background: var(--gray-100); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

/* ============================================================
   Floating contacts (плавающие кнопки соцсетей)
   ============================================================ */
.floating-contacts {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--dur-base) var(--ease-standard), opacity var(--dur-base) var(--ease-standard);
}
.floating-contacts.hidden { transform: translateY(20px); opacity: 0; pointer-events: none; }
.fc-btn {
  width: 56px; height: 56px; border-radius: 999px;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 24px rgba(21, 25, 26, .25), 0 2px 6px rgba(21, 25, 26, .15);
  transition: all var(--dur-micro) var(--ease-standard);
  position: relative; text-decoration: none;
}
.fc-btn:hover { transform: scale(1.08); }
.fc-btn--phone { background: var(--accent-red); }
.fc-btn--phone:hover { background: var(--accent-red-700); }
.fc-btn--phone::after {
  content: ''; position: absolute; inset: -4px; border-radius: 999px;
  background: var(--accent-red); opacity: .35; z-index: -1;
  animation: fc-pulse 2s ease-out infinite;
}
@keyframes fc-pulse {
  0% { transform: scale(1); opacity: .35; }
  100% { transform: scale(1.4); opacity: 0; }
}
.fc-btn--vk { background: #0077FF; }
.fc-btn--vk:hover { background: #0066D9; }
.fc-btn--tg { background: #29A8EB; }
.fc-btn--tg:hover { background: #1a8fd1; }
.fc-btn--max {
  background: linear-gradient(135deg, #4169E1 0%, #9B59B6 100%);
}
.fc-btn--max:hover { background: linear-gradient(135deg, #3158C4 0%, #8A49A5 100%); }
.fc-tooltip {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--fg-1); color: #fff;
  padding: 6px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-micro);
}
.fc-btn:hover .fc-tooltip { opacity: 1; }

/* ============================================================
   Modal
   ============================================================ */
.modal-back {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(21, 25, 26, .55); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
  animation: fade-in .25s var(--ease-standard);
}
.modal {
  background: var(--bg-card); border-radius: 20px;
  padding: 40px; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg); position: relative;
  animation: pop-in .35s var(--ease-standard);
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--gray-100); border: none; color: var(--fg-1);
  display: grid; place-items: center; cursor: pointer;
}
.modal__close:hover { background: var(--gray-200); }
.modal__h {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; letter-spacing: -.02em; color: var(--fg-1);
  margin: 0 0 10px; max-width: 16ch;
}
.modal__sub { font-size: 15px; color: var(--fg-2); margin: 0 0 24px; line-height: 1.5; }
.modal__fields { display: flex; flex-direction: column; gap: 10px; }
.input-light {
  height: 52px; width: 100%;
  border: 1px solid var(--border); background: #fff;
  border-radius: 12px; padding: 0 16px;
  font-family: var(--font-body); font-size: 15px; color: var(--fg-1);
  outline: none; transition: all var(--dur-micro);
}
.input-light::placeholder { color: var(--fg-3); }
.input-light:focus { border-color: var(--brand-500); box-shadow: var(--shadow-focus); }
textarea.input-light { min-height: 96px; padding: 14px 16px; resize: vertical; height: auto; }
.modal__btn { width: 100%; margin-top: 16px; }
.modal__legal { font-size: 12px; color: var(--fg-3); margin-top: 12px; line-height: 1.5; }
.modal__legal a { color: var(--brand-500); }

.input-dark {
  height: 54px; width: 100%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 0 16px;
  font-family: var(--font-body); font-size: 15px; color: #fff;
  outline: none; transition: all var(--dur-micro);
}
.input-dark::placeholder { color: rgba(255, 255, 255, .4); }
.input-dark:focus { border-color: var(--brand-400); background: rgba(255, 255, 255, .07); }
textarea.input-dark { min-height: 96px; padding: 14px 16px; resize: vertical; height: auto; }
.fields-dark { display: flex; flex-direction: column; gap: 12px; }
.legal-dark { font-size: 12px; color: rgba(255, 255, 255, .45); margin-top: 14px; line-height: 1.5; }
.legal-dark a { color: var(--teal-500); text-decoration: underline; }

.consent-row {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12px; line-height: 1.5; cursor: pointer; margin-top: 14px;
}
.consent-row input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px;
  cursor: pointer; accent-color: var(--brand-500);
}
.consent-row--dark { color: rgba(255, 255, 255, .45); }
.consent-row--dark a { color: var(--teal-500); text-decoration: underline; text-underline-offset: 2px; }
.consent-row--light { color: var(--fg-3); margin-top: 12px; }
.consent-row--light a { color: var(--brand-500); text-decoration: underline; text-underline-offset: 2px; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96) translateY(8px); } }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--fg-1); color: #fff;
  padding: 14px 22px; border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg); z-index: 250;
  font-size: 14px; font-weight: 500;
  animation: toast-in .25s var(--ease-standard);
}
@keyframes toast-in { from { transform: translate(-50%, 20px); opacity: 0; } }
.toast__icon {
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--success); display: grid; place-items: center;
}

/* ============================================================
   Footer
   ============================================================ */
.kj-footer { background: var(--bg-dark); color: rgba(255, 255, 255, .6); padding: 64px 0 32px; }
.kj-footer__top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.kj-footer__brand img { display: block; }
.kj-footer__about {
  font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .55);
  margin: 18px 0 20px; max-width: 38ch;
}
.kj-footer__col-h {
  font-size: 12px; font-weight: 600; color: #fff;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.kj-footer__col a, .kj-footer__col span {
  display: block; font-size: 14px; padding: 5px 0;
  color: rgba(255, 255, 255, .6); cursor: pointer;
  transition: color var(--dur-micro);
}
.kj-footer__col a:hover { color: #fff; }
.kj-footer__col .meta { color: rgba(255, 255, 255, .4); font-size: 13px; cursor: default; }
.kj-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 12px;
  color: rgba(255, 255, 255, .4); flex-wrap: wrap; gap: 12px;
}
.kj-footer__notice {
  margin-top: 20px; padding: 14px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .75); max-width: 38ch;
}
.kj-footer__notice strong { color: #fff; font-weight: 600; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.js-reveal .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 600ms var(--ease-standard), transform 600ms var(--ease-standard);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--gray-900);
  border-top: 1px solid var(--border-dark);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(14,21,37,.18);
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}
.cookie-banner.cookie-banner--visible {
  transform: translateY(0);
}
.cookie-banner__text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg-on-dark-2);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner__text a {
  color: var(--teal-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__text a:hover {
  color: var(--teal-500);
}
.cookie-banner__btn {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--brand-500);
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease-standard);
  white-space: nowrap;
}
.cookie-banner__btn:hover {
  background: var(--brand-600);
}

/* ============================================================
   Responsive — общие компоненты
   ============================================================ */
@media (max-width: 1100px) {
  .kj-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding: 32px 0; }
  .kj-header__inner { gap: 8px; }
  .kj-header__phone { font-size: clamp(12px, 3.6vw, 18px); gap: 6px; }
  .kj-header__social { display: none; }
  .kj-header__logo .kj-header__logo-compact { height: 40px; }
  .kj-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .modal { padding: 28px 24px; }
  .floating-contacts { bottom: 16px; right: 16px; }
  .fc-btn { width: 52px; height: 52px; }
  .fc-tooltip { display: none; }
  .cookie-banner { padding: 12px 16px; gap: 12px; }
  .cookie-banner__text { font-size: 12px; }
}
@media (max-width: 420px) {
  .kj-header__phone { gap: 4px; }
  .kj-header__logo .kj-header__logo-compact { height: 38px; }
  .kj-header__inner { gap: 6px; }
}
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .kj-header__phone { gap: 4px; }
  .kj-header__logo .kj-header__logo-compact { height: 36px; }
  .kj-header__inner { gap: 6px; height: 76px; }
  .btn-lg { height: 50px; font-size: 14px; padding: 0 18px; }
  .btn-md { height: 42px; font-size: 13px; padding: 0 14px; }
}

/* overflow-wrap — защита от переполнения */
.btn { white-space: normal; text-align: center; line-height: 1.2; }
.section__title,
.section__sub {
  overflow-wrap: break-word;
}
