/* Финал страницы v2 — переопределяет блок «Финал страницы» из kinetik.css (тот файл не правим).
   Огромное «Сила в каждом.» во всю ширину окна (буквы собираются из рассыпанных — site-end.js), «магнитные» кнопки,
   связь — ведомость телефонов с крупными наклонными номерами, ссылки и подвал. Тёмный фон, квадратные углы. */

/* clip, а не hidden: hidden у подвала делал его контейнером прокрутки; рассыпанные буквы не дают горизонтальной прокрутки */
.site-end{overflow:visible;overflow-x:clip}

/* ---------- «Сила в каждом.» ---------- */
.site-end .end-cta{text-align:center;padding-block:clamp(96px,14vw,200px) clamp(72px,9vw,128px)}
.site-end .end-cta::before{
  background:
    radial-gradient(40% 50% at 24% 62%,rgba(252,13,18,.18),rgba(2,8,22,0) 70%),
    radial-gradient(46% 56% at 76% 38%,rgba(23,62,113,.55),rgba(2,8,22,0) 70%);
}
/* Центрирование — свойством translate: transform свободен для движения (site-end.js) */
.site-end .end-ghost{width:min(1600px,150vw);opacity:.06;transform:none;translate:-50% -50%}
.site-end .end-cta-inner{display:grid;grid-template-columns:minmax(0,1fr);justify-items:stretch;gap:clamp(40px,5vw,72px)}
.site-end .end-slogan{
  font-family:var(--f-display);font-style:italic;font-weight:900;text-transform:uppercase;color:#f6f8fc;
  font-size:clamp(52px,13.5vw,236px);line-height:.84;letter-spacing:-.03em;text-wrap:initial;
  padding-inline:var(--gut);max-width:100%;margin:0;
}
.site-end .end-slogan em{font-style:inherit;color:#f2b380}
/* Слова и буквы (делит скрипт; без скрипта — обычный текст) */
.site-end .ew{display:inline-block;white-space:nowrap}
.site-end .ec{display:inline-block;will-change:transform}
.site-end .ew-glue{display:inline-block;white-space:nowrap}

.site-end .end-cta-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:28px 40px}
.site-end .end-logo{width:min(220px,52vw);height:auto;opacity:.92}
.site-end .end-cta-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.site-end .end-btn{height:58px;font-size:13.5px}
.site-end [data-magnetic]{will-change:transform}
@media (max-width:640px){
  .site-end .end-cta-row{justify-content:center}
  .site-end .end-cta-actions{width:100%;justify-content:stretch}
  .site-end .end-btn{flex:1 1 auto;justify-content:center;height:52px;font-size:12px;padding-inline:16px}
  .site-end .end-btn svg{margin-right:14px}
}

/* ---------- Связь: ведомость телефонов ---------- */
.site-end .end-grid{gap:clamp(48px,6vw,64px);padding-top:clamp(24px,3vw,40px)}
@media (min-width:960px){.site-end .end-grid{grid-template-columns:minmax(0,2.4fr) minmax(0,1fr);column-gap:7vw}}
.site-end .end-contacts{gap:clamp(22px,2.6vw,32px)}
.site-end .phones{display:block;gap:0;background:none;box-shadow:none;border-top:1px solid var(--line-strong)}
.site-end .phone{
  position:relative;display:grid;gap:10px 28px;align-items:baseline;padding:22px 0 24px;background:none;
  border-bottom:1px solid var(--line);
}
/* Линия наведения: протягивается под строкой цветом призыва */
.site-end .phone::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:#f2b380;
  transform:scaleX(0);transform-origin:0 50%;transition:transform .6s var(--ease-expo);pointer-events:none;
}
.site-end .phone:hover::after,.site-end .phone:focus-within::after{transform:scaleX(1)}
.site-end .phone-top{display:flex;align-items:baseline;gap:14px;line-height:1.35}
.site-end .phone-idx{font-weight:700;color:#f2b380}
.site-end .phone-number{
  font-family:var(--f-display);font-style:italic;font-weight:800;font-size:clamp(30px,8.4vw,52px);line-height:1;letter-spacing:-.01em;
  color:var(--display);width:max-content;max-width:100%;transition:color .25s;
}
.site-end .phone-number:hover{color:#f2b380}
.site-end .phone-note{color:var(--body);font-size:15px;line-height:1.45;max-width:46ch}
@media (min-width:760px){
  .site-end .phone{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"top number" "note number"}
  .site-end .phone-top{grid-area:top}
  .site-end .phone-note{grid-area:note}
  .site-end .phone-number{grid-area:number;align-self:center;justify-self:end}
}

/* ---------- Ссылки ---------- */
.site-end .end-links ul{gap:6px}
.site-end .end-links a{
  display:inline-block;padding:4px 0;font-family:var(--f-display);font-style:italic;font-weight:800;text-transform:uppercase;
  font-size:clamp(24px,2.2vw,30px);line-height:1.1;letter-spacing:-.005em;color:var(--display);transition:color .25s,transform .45s var(--ease-expo);
}
@media (hover:hover){.site-end .end-links a:hover{color:#f2b380;transform:translateX(6px)}}

@media (prefers-reduced-motion:reduce){
  .site-end .end-links a:hover{transform:none}
}
