﻿/* ============================================================
   ХАБ — «три двери»
   ============================================================ */
.hub { overflow: clip; }
.hub-hero { min-height: 100svh; display: flex; flex-direction: column; padding: 78px 0 var(--gutter); }
.hub-head { display: grid; gap: 14px 48px; padding-bottom: clamp(18px, 3vw, 32px); }
@media (min-width: 900px) { .hub-head { grid-template-columns: 1fr minmax(240px, 340px); align-items: end; } .hub-id { grid-column: 1 / -1; } }
.hub-id { display: flex; align-items: center; gap: 14px; }
.hub-mark { width: 46px; height: auto; flex: none; }
.hub-city { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.hub-head h1 { font-family: var(--font-d); font-weight: 500; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .92; letter-spacing: -.02em; }
.hub-head h1 em { font-style: italic; color: var(--accent-2); }
.hub-hint { font-size: .95rem; color: var(--ink-soft); max-width: 36ch; text-wrap: pretty; }

.triptych { flex: 1; display: flex; gap: clamp(8px, 1.2vw, 16px); padding: 0 var(--gutter); min-height: min(640px, 74svh); }
.door {
  position: relative; flex: 1 1 0; min-width: 0; display: block; color: #fff; isolation: isolate; overflow: hidden;
  border-radius: 999px 999px 22px 22px; transition: flex-grow .85s var(--ease), box-shadow .5s;
  box-shadow: 0 30px 50px -30px rgba(28,26,23,.55);
}
.door-bg { position: absolute !important; inset: 0; z-index: -2; }
.door-bg .ph-cap { display: none; }
.door-bg img { transition: opacity .6s, transform 1.6s var(--ease); }
.door-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,10,8,.78) 0%, rgba(10,10,8,.28) 46%, rgba(10,10,8,0) 72%); }
.door-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 clamp(14px, 2vw, 28px) clamp(18px, 2.6vw, 30px); gap: 6px; }
.door-logo { flex: 1; display: grid; place-items: center; width: 100%; padding-top: 18%; }
.door-logo svg, 
.door-logo img { width: min(72%, 190px); height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); transition: transform .8s var(--ease); }
.door--ched .door-logo svg, 
.door--ched .door-logo img { width: min(86%, 260px); }
.door--grand .door-logo svg, 
.door--grand .door-logo img { width: min(58%, 150px); }
.door-badge { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); font: 800 .66rem/1 var(--font-b); letter-spacing: .14em; text-transform: uppercase; background: #C9A15B; color: #1A1414; padding: .6em 1em; border-radius: 99px; white-space: nowrap; z-index: 3; }
.door-badge--last { background: rgba(255,255,255,.92); color: #1B1F18; }
.door-name { font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1; }
.door-vibe { font: 700 .74rem/1.2 var(--font-b); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.door--chilli .door-name { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; }
.door--ched .door-name { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: clamp(1.3rem, 2vw, 2rem); text-transform: uppercase; }
.door--grand .door-name { font-family: 'Forum', serif; letter-spacing: .22em; text-transform: uppercase; }
.door-more { display: flex; flex-direction: column; align-items: center; gap: 10px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s .1s, margin .5s; margin-top: 0; }
.door-line { font-size: .92rem; line-height: 1.45; max-width: 30ch; opacity: .92; text-wrap: balance; }
.door-addr { font: 500 .72rem/1 var(--font-m); letter-spacing: .06em; opacity: .75; }
.door-go { display: inline-flex; gap: .5em; align-items: center; font: 800 .82rem/1 var(--font-b); letter-spacing: .08em; text-transform: uppercase; padding: .9em 1.4em; border-radius: 99px; background: #fff; color: #111; margin-bottom: 6px; }
.door-go b { transition: transform .3s; }
.door:hover .door-go b { transform: translateX(4px); }
.status--door { margin-top: 8px; background: rgba(0,0,0,.45); color: #fff; }

@media (hover: hover) and (min-width: 900px) {
  .door:hover, .door:focus-visible { flex-grow: 2.15; }
  .door:hover .door-more, .door:focus-visible .door-more { max-height: 15rem; opacity: 1; margin-top: 8px; }
  .door:hover .door-bg img, .door:focus-visible .door-bg img { transform: scale(1.06); }
  .door:hover .door-logo svg, 
  .door:hover .door-logo img { transform: scale(1.06); }
  .triptych:has(.door:hover) .door:not(:hover) { filter: saturate(.7) brightness(.9); }
}
@media (max-width: 899px), (hover: none) {
  .door-more { max-height: none; opacity: 1; margin-top: 6px; }
}
@media (max-width: 899px) {
  .triptych { flex-direction: column; min-height: 0; }
  .door { flex: none; min-height: 500px; }
  .door-logo { padding-top: 26%; }
}
.door:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }

/* ---------- «одна семья» ---------- */
.fam-head { max-width: 760px; }
.spec-row { display: grid; gap: 20px; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .spec-row { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.spec { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); min-height: 360px; transition: transform .45s var(--ease); }
.spec:hover { transform: translateY(-6px) rotate(var(--rot, 0deg)); }
.spec-word { line-height: .95; word-break: break-word; }
.spec-text { font-size: .98rem; max-width: 30ch; margin-top: auto; text-wrap: pretty; }
.spec-sw { display: flex; gap: 6px; }
.spec-sw i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 0 0 1px rgba(0,0,0,.18); }
.spec-meta { font: 500 .72rem/1 var(--font-m); letter-spacing: .05em; opacity: .75; }
.spec--chilli { background: #2F3A2A; color: #F2EDE2; border-radius: 240px 240px 22px 22px; padding-top: 70px; align-items: center; text-align: center; }
.spec--chilli .spec-word { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: clamp(3.2rem, 5vw, 4.6rem); color: #E8B04A; }
.spec--chilli .spec-text { margin-inline: auto; }
.spec--ched { background: #0E0E10; color: #F5F5F0; --rot: -1deg; transform: rotate(-.6deg); box-shadow: 8px 8px 0 #FFD400; border-radius: 4px; }
.spec--ched .spec-word { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: clamp(3rem, 4.8vw, 4.4rem); color: #FFD400; text-shadow: 0 0 22px rgba(255,212,0,.5); }
.spec--ched .spec-text { font-family: 'JetBrains Mono', monospace; font-size: .85rem; }
.spec--grand { background: #5B1A1F; color: #F4ECDC; border-radius: 0; text-align: center; align-items: center; outline: 1px solid #C9A15B; outline-offset: -12px; padding: 40px 30px; }
.spec--grand .spec-word { font-family: 'Forum', serif; font-weight: 400; letter-spacing: .16em; font-size: clamp(2.4rem, 3.6vw, 3.4rem); color: #C9A15B; }
.spec--grand .spec-text { font-family: 'Playfair Display', serif; font-style: italic; margin-inline: auto; }

/* ---------- сутки ---------- */
.dial-sec { background: var(--bg-2); }
.dial { --nw: 120px; margin-top: clamp(28px, 4vw, 48px); padding: 0 6px; }
@media (max-width: 640px) { .dial { --nw: 78px; } }
.dial-axis { position: relative; height: 26px; margin-left: var(--nw); }
.dial-axis i { position: absolute; bottom: 0; width: 1px; height: 9px; background: var(--ink); opacity: .35; }
.dial-axis i span { position: absolute; bottom: 12px; left: 0; transform: translateX(-50%); font: 500 .7rem/1 var(--font-m); color: var(--muted); }
.dial-body { position: relative; display: grid; gap: 12px; }
.dial-row { display: grid; grid-template-columns: var(--nw) 1fr; align-items: center; }
.dial-name { font: 700 .95rem/1.1 var(--font-b); padding-right: 8px; }
.dial-name small { display: block; font: 500 .7rem/1.2 var(--font-m); color: var(--muted); margin-top: 4px; }
.dial-track { position: relative; height: 38px; border-radius: 99px; background: repeating-linear-gradient(to right, rgba(28,26,23,.07) 0 1px, transparent 1px calc(100% / 8)); box-shadow: inset 0 0 0 1px var(--line); }
.seg { position: absolute; top: 3px; bottom: 3px; border-radius: 99px; background: var(--c); }
.dial-row--chilli { --c: #9AA587; } .dial-row--ched { --c: #FFD400; } .dial-row--grand { --c: #5B1A1F; }
.seg--unk { left: 3px; right: 3px; width: auto; background: repeating-linear-gradient(135deg, rgba(91,26,31,.16) 0 6px, transparent 6px 12px); color: #5B1A1F; font: 700 .72rem/1 var(--font-b); letter-spacing: .08em; text-transform: uppercase; display: grid; place-items: center; border: 1px dashed #5B1A1F; }
.now { position: absolute; top: -8px; bottom: -4px; left: calc(var(--nw) + (100% - var(--nw)) * var(--p, .5)); width: 2px; background: var(--ink); pointer-events: none; transition: left 1s linear; }
.now::before { content: ''; position: absolute; top: -2px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.now b { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font: 700 .68rem/1 var(--font-m); background: var(--ink); color: var(--bg); padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.plans { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.plan:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 2px var(--c), 0 18px 30px -18px rgba(0,0,0,.35); }
.plan--chilli { --c: #9AA587; } .plan--ched { --c: #E0A800; } .plan--grand { --c: #5B1A1F; }
.plan-when { align-self: flex-start; font: 700 .7rem/1 var(--font-m); letter-spacing: .08em; padding: .55em .9em; border-radius: 99px; background: var(--c); color: #1B1F18; }
.plan--grand .plan-when { color: #F4ECDC; }
.plan h3 { font-family: var(--font-d); font-size: 1.9rem; line-height: 1.05; font-weight: 600; }
.plan p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.plan-to { font-weight: 800; font-size: .88rem; }
.plan-to b { display: inline-block; transition: transform .3s; } .plan:hover .plan-to b { transform: translateX(5px); }

/* ---------- банкеты в хабе ---------- */
.hub-events { background: #2F3A2A; color: #F2EDE2; padding: clamp(56px, 8vw, 100px) 0; position: relative; overflow: hidden; }
.hub-events .eyebrow { color: #9AA587; }
.hub-events .lead { color: #d8d6c6; }
.hub-events-in { display: grid; gap: 28px; align-items: end; position: relative; z-index: 1; }
@media (min-width: 900px) { .hub-events-in { grid-template-columns: 1.4fr auto; } }
.hub-events .btn { background: #E8B04A; border-color: #E8B04A; color: #1B1F18; }
.hub-events .btn--ghost { background: transparent; color: #F2EDE2; border-color: #F2EDE2; }
.hub-events .btn--ghost:hover { background: #F2EDE2; color: #2F3A2A; }

/* ---------- карта ---------- */
.map-grid { display: grid; gap: 20px; margin-top: clamp(24px, 4vw, 44px); }
@media (min-width: 900px) { .map-grid { grid-template-columns: 1.6fr 1fr; gap: 32px; } }
.map-box { border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -24px rgba(0,0,0,.4); background: var(--bg-2); min-height: 420px; }
.map-box .mapframe { height: 100%; min-height: 420px; }
.map-list { display: grid; gap: 14px; align-content: start; }
.ml { display: flex; gap: 14px; padding: 18px 20px; background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.ml-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; margin-top: 6px; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 28%, transparent); }
.ml--chilli { --c: #9AA587; } .ml--ched { --c: #FFD400; } .ml--grand { --c: #5B1A1F; }
.ml h3 { font-family: var(--font-d); font-size: 1.6rem; line-height: 1; font-weight: 600; }
.ml p { font-size: .92rem; color: var(--ink-soft); margin-top: 4px; }
.ml-h { font-weight: 700; color: var(--ink) !important; }
.ml-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-weight: 800; font-size: .85rem; }
.ml-links a { text-decoration: underline; text-underline-offset: 4px; min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- подвал хаба ---------- */
.hub-foot { background: #1C1A17; color: #EFE9DF; padding: clamp(48px, 7vw, 84px) 0 36px; }
.hub-foot-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .hub-foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.hf-brand { display: flex; gap: 14px; align-items: center; }
.hf-brand b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; line-height: 1; font-weight: 600; }
.hf-brand span { font-size: .78rem; letter-spacing: .12em; opacity: .7; }
.hub-foot h4 { font: 800 .72rem/1 var(--font-b); letter-spacing: .16em; text-transform: uppercase; opacity: .6; margin-bottom: 10px; }
.hub-foot p { font-size: .95rem; line-height: 1.7; }
.hub-foot a:hover { text-decoration: underline; }
.hub-foot .fine { color: #a39b8d; border-color: rgba(255,255,255,.14); }
.hub-foot .hub-mark { width: 54px; }


.hub-foot .hub-mark { background: #EFE9DF; border-radius: 14px; padding: 6px; width: 68px; }

