/* Стили лендинга 4man.lephare.ru — перенос макета «Импро Лендинг - Список» из Claude Design */
:root { --bg: #F5F5F2; --ink: #111; --accent: #FF4D00; --muted: #6E6E69; --line-soft: #D5D5D0; --chip: #E6E6E1; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'IBM Plex Sans', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
.mono { font-family: 'IBM Plex Mono', monospace; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.bb { border-bottom: 1px solid var(--ink); }

@keyframes facePop {
  0% { transform: translate(-50%,-50%) scale(0) rotate(var(--r0)); opacity: 0 }
  18% { transform: translate(-50%,-50%) scale(1.15) rotate(var(--r)); opacity: 1 }
  30% { transform: translate(-50%,-50%) scale(1) rotate(var(--r)) }
  80% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(var(--r)) }
  100% { transform: translate(-50%,-50%) scale(.6) rotate(var(--r)); opacity: 0 }
}
@keyframes wheel { 0% { transform: translateY(1.1em) } 100% { transform: translateY(0) } }

/* Слой всплывающих лиц */
.face-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.face-layer img { position: absolute; width: clamp(64px,7vw,96px); height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); animation: facePop 1500ms cubic-bezier(.3,1.4,.5,1) both; }

/* Шапка */
.header-row { padding-top: 16px; padding-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.header-row nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* Первый экран */
.hero-grid { padding-top: clamp(48px,8vw,104px); padding-bottom: clamp(48px,8vw,104px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,480px), 1fr)); gap: clamp(32px,5vw,64px); align-items: center; }
.hero-title { margin: 0; font-weight: 700; font-size: clamp(36px,5.6vw,84px); line-height: 1; letter-spacing: -.035em; }
.reel { cursor: pointer; position: relative; font-weight: 700; font-size: clamp(36px,5.6vw,84px); letter-spacing: -.035em; line-height: 1.1; height: 5.5em; overflow: hidden; border-left: 1px solid var(--ink); padding-left: clamp(16px,2vw,32px); user-select: none; }
.reel-frame { position: absolute; left: clamp(16px,2vw,32px); right: 0; top: 2.2em; height: 1.1em; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); pointer-events: none; }
.reel-fade { position: absolute; inset: 0; background: linear-gradient(var(--bg), rgba(245,245,242,0) 38%, rgba(245,245,242,0) 62%, var(--bg)); pointer-events: none; }
.reel-rows { animation: wheel 450ms cubic-bezier(.3,1.3,.5,1) both; }
.reel-rows div { height: 1.1em; white-space: nowrap; }
.reel-rows div.on { color: var(--accent); }
.hero-bottom { padding-bottom: clamp(48px,6vw,80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 32px; align-items: end; }
.hero-text { margin: 0; font-size: clamp(17px,1.4vw,20px); line-height: 1.55; max-width: 520px; text-wrap: pretty; }
.inline-word { display: inline-grid; vertical-align: bottom; white-space: nowrap; color: var(--accent); font-weight: 700; }
.inline-word span { grid-area: 1/1; }
.inline-word .ghost { visibility: hidden; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; height: 54px; padding: 0 26px; background: var(--ink); color: var(--bg); font-family: 'IBM Plex Mono', monospace; font-size: 14px; text-transform: uppercase; white-space: nowrap; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent); color: var(--bg); }
.btn:disabled { opacity: .5; cursor: default; background: var(--ink); }
.chip-sold { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; height: 54px; padding: 0 26px; border: 1px solid var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 14px; text-transform: uppercase; white-space: nowrap; background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(17,17,17,.07) 8px 16px); }
.chip-played { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; height: 54px; padding: 0 26px; white-space: nowrap; font-family: 'IBM Plex Mono', monospace; font-size: 14px; text-transform: uppercase; background: var(--chip); color: var(--muted); }

/* Секции */
.section-pad { padding-top: clamp(56px,8vw,104px); padding-bottom: clamp(56px,8vw,104px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-weight: 700; letter-spacing: -.03em; font-size: clamp(30px,4vw,56px); }
.section-head .num { font-size: 13px; color: var(--accent); }

/* Расписание */
.shows { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.show-row { display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 32px 0; border-bottom: 1px solid var(--ink); align-items: center; }
.show-date { display: flex; align-items: stretch; gap: 18px; flex: 0 0 auto; }
.show-date .big { font-weight: 700; font-size: clamp(48px,6vw,88px); line-height: 1.1; letter-spacing: -.04em; padding-top: .05em; }
.show-date .side { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding-left: 18px; border-left: 1px solid var(--ink); margin: 1.3em 0 1em; }
.show-date .side .t { font-weight: 700; font-size: clamp(22px,2.2vw,30px); letter-spacing: -.02em; line-height: 1.1; }
.show-date .side .w { font-size: 13px; opacity: .65; white-space: nowrap; }
.show-place { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; }
.show-place .city { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.show-place .venue { font-weight: 700; font-size: clamp(22px,2.2vw,30px); letter-spacing: -.02em; }
.show-place .addr { opacity: .65; }
.show-action { display: flex; justify-content: flex-end; flex: 0 0 auto; margin-left: auto; }
.shows-empty { padding: 32px 0; border-bottom: 1px solid var(--ink); opacity: .65; }

/* Архив */
.archive { margin-top: 56px; display: flex; flex-direction: column; gap: 4px; }
.archive-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #8A8A85; padding-bottom: 12px; }
.archive-row { display: grid; grid-template-columns: auto auto auto minmax(0,1fr) auto; align-items: baseline; gap: 8px 28px; padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 16px; }
.archive-row .when { font-size: 14px; }
.archive-row .venue { font-weight: 700; color: var(--ink); }
.archive-row .addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-row .chip-played { justify-self: end; }
@media (max-width: 760px) { .archive-row { grid-template-columns: 1fr; } .archive-row .chip-played { justify-self: start; } }

/* Команда */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); border-top: 1px solid var(--ink); }
.member { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 24px; }
.member .n { font-size: 13px; color: var(--accent); }
.member .photo { width: min(200px,80%); aspect-ratio: 1/1; border-radius: 50%; background-color: var(--chip); background-position: center bottom; background-size: 78% auto; background-repeat: no-repeat; margin-top: -16px; }
.member .photo:hover { background-color: var(--accent); }
.member h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.member p { margin: 0; opacity: .65; }

/* Контакты и подвал */
.contact { padding-top: clamp(64px,10vw,128px); padding-bottom: clamp(64px,10vw,128px); display: flex; flex-direction: column; gap: 28px; }
.contact h2 { margin: 0; font-weight: 700; letter-spacing: -.04em; font-size: clamp(40px,7.4vw,112px); line-height: .95; }
.contact .links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 16px; text-transform: uppercase; }
.contact .links a { border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.footer-row { padding-top: 20px; padding-bottom: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; text-transform: uppercase; }
.accent { color: var(--accent); }

/* Окно покупки */
.modal-back { position: fixed; inset: 0; background: rgba(17,17,17,.55); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-back.open { display: flex; }
.modal { background: var(--bg); border: 1px solid var(--ink); width: 100%; max-width: 520px; max-height: 100%; overflow: auto; padding: 32px 28px; position: relative; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); }
.modal-close:hover { color: var(--accent); }
.modal .label { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.modal h3 { margin: 8px 0 4px; font-size: clamp(26px,3vw,36px); font-weight: 700; letter-spacing: -.03em; }
.modal .sub { opacity: .65; margin: 0 0 24px; }
.qty { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty button { width: 44px; height: 44px; border: 1px solid var(--ink); background: none; font-size: 22px; cursor: pointer; color: var(--ink); }
.qty button:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty .val { font-weight: 700; font-size: 28px; min-width: 32px; text-align: center; }
.qty .hint { font-size: 13px; opacity: .65; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field span { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .65; }
.field input { font: inherit; font-size: 17px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); outline: none; border-radius: 0; }
.field input:focus { border-bottom-color: var(--accent); }
.field.err input { border-bottom-color: #C62828; }
.field .msg { color: #C62828; font-size: 13px; text-transform: none; letter-spacing: 0; opacity: 1; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin: 8px 0 20px; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.consent a { border-bottom: 1px solid var(--ink); }
.consent.err { color: #C62828; }
.form-error { color: #C62828; margin: 0 0 12px; min-height: 0; }
.modal .btn { width: 100%; }

/* Страница результата */
.result { min-height: 60vh; padding-top: clamp(56px,8vw,104px); padding-bottom: clamp(56px,8vw,104px); display: flex; flex-direction: column; gap: 28px; }
.result h1 { margin: 0; font-weight: 700; letter-spacing: -.04em; font-size: clamp(40px,7vw,104px); line-height: .95; }
.result .lead { font-size: clamp(17px,1.4vw,20px); line-height: 1.55; max-width: 640px; margin: 0; }
.result dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 32px; margin: 0; border-top: 1px solid var(--ink); padding-top: 24px; max-width: 720px; }
.result dt { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; opacity: .65; padding-top: 4px; }
.result dd { margin: 0; font-size: 18px; font-weight: 500; }
.spinner { display: inline-block; width: .7em; height: .7em; border: 3px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg) } }
