hotel: apply the v7 design and add the callback dialog

Ports legacy/hotel v7 into the React landing.

- Copy: nav is Экономика / Для гостя / Интерьер / Сервис, and «Интерьер»
  now comes before «Сервис». The hero keeps one button and gets the
  2 500 ₽ / 600 000 ₽ / 7,2 млн ₽ facts. New headings and leads for the
  interior, service and request blocks. Session lengths 10–15 and 30–60
  min, area 12–36 m².
- Calculator counts sessions and gains the ЭкзоКлиник benchmark and a
  «Получить консультацию» button.
- Request form: company and email are optional. The server schema
  already treats them as optional.
- v8 phone type scale (≤620px), a 380px `micro` step, and a `slim`
  (≤640px) variant. The max-width variants are now declared widest first,
  so the narrower one wins where two apply.
- The market charts' SVGs stay inline, as in the mockup.

The header «Звонок» button opens the «Перезвоним вам» dialog from the
fitness landing (name, phone, consent). The server accepts form
'callback', names the deal «Обратный звонок — <имя>» and tags it
«обратный звонок». The phone link inside the dialog still reports a call
click.

With Inter substituted into the mockup, the page text matches it line for
line (except the fixed «2025–2026 гг.» typo), and every section height
matches at 360–1440 px.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Yuriy Panov
2026-09-11 19:00:20 +06:00
co-authored by Claude Opus 5
parent 7ce8bee320
commit 1ee5431b92
21 changed files with 454 additions and 109 deletions
+17 -10
View File
@@ -1,13 +1,20 @@
import type { RefObject } from 'react'
import logo from '../assets/images/exo-logo.png'
import { contacts, navLinks } from '../data/content'
import { navLinks } from '../data/content'
import { cx } from '../lib/cx'
import { reportCallClick } from '../lib/lead'
import { ButtonLink, buttonClass, headerSize } from './Button'
import { PhoneIcon } from './Icons'
import { Container } from './Layout'
export function SiteHeader({ scrolled, headerRef }: { scrolled: boolean; headerRef: RefObject<HTMLElement | null> }) {
export function SiteHeader({
scrolled,
headerRef,
onCallbackClick,
}: {
scrolled: boolean
headerRef: RefObject<HTMLElement | null>
onCallbackClick: () => void
}) {
return (
<header
ref={headerRef}
@@ -20,7 +27,7 @@ export function SiteHeader({ scrolled, headerRef }: { scrolled: boolean; headerR
<a className="inline-flex min-w-0 items-center" href="#top" aria-label="Экзо Групп — на первый экран">
<img
alt="Экзо Групп — российские технологии реабилитации"
className="block h-auto w-[clamp(172px,20vw,232px)] max-w-full object-contain object-left compact:w-[150px]"
className="block h-auto w-[clamp(172px,20vw,232px)] max-w-full object-contain object-left compact:w-[150px] micro:w-[132px]"
src={logo}
width={900}
height={204}
@@ -38,16 +45,16 @@ export function SiteHeader({ scrolled, headerRef }: { scrolled: boolean; headerR
))}
</nav>
<div className="flex shrink-0 items-center gap-[10px] compact:gap-[6px]">
<a
href={contacts.phoneHref}
onClick={reportCallClick}
aria-label="Позвонить в Экзо Групп"
<div className="flex shrink-0 items-center gap-[10px] compact:gap-[6px] micro:gap-[5px]">
<button
type="button"
onClick={onCallbackClick}
aria-label="Заказать обратный звонок"
className={buttonClass('call', 'compact:px-[12px]', headerSize)}
>
<PhoneIcon />
<span className="compact:hidden">Звонок</span>
</a>
</button>
<ButtonLink href="#proposal" size={headerSize}>
Получить предложение
</ButtonLink>