/* Page structure: container, header (mockup C2), mobile panel, footer, section rhythm. */

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--container-pad)); margin-inline: auto; padding-inline: var(--container-pad); }

/* ── header: compact dark top bar, sticky with blur ───────────────────── */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in oklch, var(--color-night) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-dark); color: var(--color-on-dark);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--hd); }
.logo { display: flex; align-items: center; flex: none; text-decoration: none; }
.logo img { display: block; height: 38px; width: auto; }

.nav { margin-right: auto; }
.nav__list { display: flex; gap: 2px; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--color-on-dark-muted); white-space: nowrap; text-decoration: none; transition: color var(--dur-fast), background-color var(--dur-fast); }
.nav__link .icon { width: 17px; height: 17px; }
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__link[aria-current] { color: #fff; }
.nav__link[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 3px; border-radius: 3px 3px 0 0; background: var(--color-amber); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.age-chip { font-family: var(--font-display); font-weight: 800; font-size: .72rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--color-border-dark); color: var(--color-on-dark-muted); flex: none; }

/* language switch: segmented on desktop, same component in the mobile panel */
.lang-seg { display: flex; padding: 3px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .07); border: 1px solid var(--color-border-dark); }
.lang-seg a { position: relative; padding: 5px 10px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700; color: var(--color-on-dark-muted); text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast); }
.lang-seg a::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 32px; }
.lang-seg a:hover { color: #fff; }
.lang-seg a[aria-current] { background: #fff; color: var(--color-night); }

.user-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 0 6px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; font-size: .88rem; text-decoration: none; transition: background-color var(--dur-fast); max-width: 200px; }
.user-chip:hover { background: rgba(255, 255, 255, .14); }
.user-chip__ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--color-amber); color: var(--color-night); font-family: var(--font-display); font-weight: 800; font-size: .8rem; flex: none; }
.user-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--color-border-dark); background: rgba(255, 255, 255, .06); color: #fff; align-items: center; justify-content: center; cursor: pointer; transition: background-color var(--dur-fast); }
.burger:hover { background: rgba(255, 255, 255, .12); }
.burger .icon { width: 22px; height: 22px; }

/* mobile panel drops from under the header */
.mnav { position: fixed; inset: var(--hd) 0 auto; z-index: calc(var(--z-header) - 1); max-height: calc(100dvh - var(--hd)); overflow: auto; background: var(--color-night); color: #fff; padding: 12px var(--container-pad) 24px; border-bottom: 1px solid var(--color-border-dark); box-shadow: 0 30px 60px -30px #000; opacity: 0; transform: translateY(-8px); transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.mnav.is-open { opacity: 1; transform: none; }
.mnav__list { display: grid; }
.mnav__link { display: flex; align-items: center; gap: 12px; padding: 14px 6px; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--color-border-dark); text-decoration: none; color: #fff; }
.mnav__link .icon { color: var(--color-amber); width: 20px; height: 20px; }
.mnav__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.mnav__acts { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .site-header__inner { justify-content: space-between; }
}
@media (max-width: 760px) {
  .site-header__actions .lang-seg, .site-header__actions .btn--glass, .site-header__actions .age-chip, .user-chip__name { display: none; }
  .user-chip { padding-right: 6px; }
}

/* ── sections ─────────────────────────────────────────────────────────── */
.section { padding-block: var(--section-pad); }
.section--white { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.section--night { background: var(--color-night); color: var(--color-on-dark); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section__head > div { max-width: 760px; }
.section__sub { color: var(--color-muted); margin-top: 12px; max-width: 60ch; text-wrap: pretty; }
.section--night .section__sub { color: var(--color-on-dark-muted); }
@media (max-width: 760px) { .section__head { flex-direction: column; align-items: start; } }

/* inner page head: dark band continuing the header (combined scheme) */
.page-head { position: relative; background: var(--color-night); color: var(--color-on-dark); overflow: hidden; isolation: isolate; padding: 56px 0 64px; }
.page-head__bg { position: absolute; inset: 0; z-index: -2; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; mix-blend-mode: luminosity; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--color-night) 25%, color-mix(in oklch, var(--color-night) 55%, transparent)); }
.page-head__floors { position: absolute; right: var(--container-pad); bottom: 22px; display: flex; gap: 6px; }
.page-head__floors i { width: 22px; height: 3px; border-radius: 3px; background: rgba(244, 166, 42, .25); }
.page-head__floors i:last-child { background: var(--color-amber); }
.page-head h1 { font-family: var(--font-display); font-size: var(--fs-h1-page); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); font-weight: 700; max-width: 18ch; text-wrap: balance; margin-top: 14px; }
.page-head__lead { margin-top: 16px; font-size: var(--fs-lead); color: var(--color-on-dark-muted); max-width: 62ch; text-wrap: pretty; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--color-on-dark-muted); }
.crumbs a { position: relative; color: var(--color-on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs .icon { width: 14px; height: 14px; opacity: .6; }

/* ── footer: compact, three link columns + operator details (TZ §4.8) ─── */
.site-footer { background: var(--color-night); color: var(--color-on-dark-muted); padding: 64px 0 28px; font-size: var(--fs-small); }
.site-footer__brand { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid var(--color-border-dark); }
.site-footer__brand p { max-width: 52ch; }
.site-footer__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 32px; }
.site-footer__title { font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 600; }
.site-footer__list { display: grid; gap: 8px; }
.site-footer__list a, .site-footer__legalnav a, .site-footer__link { position: relative; color: var(--color-on-dark-muted); text-decoration: none; transition: color var(--dur-fast); }
.site-footer__list a::after, .site-footer__legalnav a::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }
.site-footer__list a:hover, .site-footer__legalnav a:hover, .site-footer__link:hover { color: #fff; }
.site-footer__details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.site-footer__details dt { color: rgba(255, 255, 255, .5); }
.site-footer__details dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.site-footer__rg { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 40px; padding: 18px 20px; border: 1px solid var(--color-border-dark); border-radius: var(--radius-md); }
.site-footer__rg .age-chip { width: 40px; height: 40px; color: var(--color-amber); border-color: var(--color-amber); }
.site-footer__rg p { flex: 1; min-width: 240px; }
.site-footer__rg a { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--color-border-dark); }
.site-footer__legalnav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer__legalnav button { border: 0; background: none; padding: 0; color: var(--color-on-dark-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legalnav button:hover { color: #fff; }
@media (max-width: 1100px) {
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__company { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__details { grid-template-columns: 1fr; gap: 0; }
  .site-footer__details dd { margin-bottom: 8px; }
}

/* ── back to top ──────────────────────────────────────────────────────── */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-header); width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--color-night); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lift); transition: transform var(--dur-base) var(--ease), background-color var(--dur-fast); }
.to-top:hover { transform: translateY(-3px); background: var(--color-night-3); }
.to-top .icon { width: 20px; height: 20px; }

/* desktop bar stays one line: icons live in the mobile panel only, 18+ chip hides where space runs out */
.nav__link .icon { display: none; }
.site-header__inner { gap: 20px; }
@media (max-width: 1400px) { .site-header__actions .age-chip { display: none; } .nav__link { padding-inline: 10px; } }

/* below the 390 reference width: shrink, never change the 390 layout */
@media (max-width: 389px) {
  .site-header__inner { gap: 8px; }
  .logo img { height: 34px; }
  .site-header__actions { gap: 6px; }
  .site-header__actions .btn--sm { padding: 0 10px; font-size: .82rem; }
  .burger { width: 40px; height: 40px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .site-footer__list a, .site-footer__details dd { overflow-wrap: anywhere; }
}
.site-footer__rg a[href^="tel:"] { white-space: nowrap; }

/* 24×24 tap zone (WCAG 2.5.8) for the remaining standalone small links — pseudo-element, layout unchanged */
.site-footer__link, .site-footer__legalnav button, .crumbs a { position: relative; }
.site-footer__link::after, .site-footer__legalnav button::after, .crumbs a::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }
