/* ==========================================================================
   Страница «Друзья Камерного» (/membership). Подключается только на ней.
   Токены (--gold, --ash, --line, --r, --pad …) — из style.css.
   ========================================================================== */
body.is-membership main { padding-top: 0; }
.ms { --ms-gap: clamp(72px, 9vw, 150px); overflow-x: clip; }
.ms .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ms-kicker { margin: 0 0 clamp(14px, 1.6vw, 22px); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.ms-lead { max-width: 62ch; margin: clamp(16px, 1.8vw, 26px) 0 0; font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.7; color: var(--ash); }
.ms-note { max-width: 90ch; margin: clamp(22px, 2.4vw, 36px) 0 0; font-size: 14px; line-height: 1.65; color: var(--faint); }
.ms-sec { max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding: var(--ms-gap) var(--pad) 0; }
.ms-arrow { width: 14px; height: 14px; margin-left: 10px; flex: none; }

/* ---------- Hero ---------- */
.ms-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(92vh, 860px); padding: calc(var(--header-h) + 60px) var(--pad) 0; isolation: isolate; }
.ms-hero__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: 50% 60%; }
.ms-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 48%, rgba(0,0,0,.2) 100%), linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,.45) 100%); }
.ms-hero__in { max-width: calc(var(--maxw)); width: 100%; margin: 0 auto; padding-bottom: clamp(36px, 5vw, 72px); }
.ms-hero__title { margin: 0; color: var(--white); }
.ms-hero__in .btn { margin-top: clamp(26px, 3vw, 40px); }
.ms-strip { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 22px 0 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 3.4vw, 56px); list-style: none; font-size: 14px; color: var(--ash); }
.ms-strip li { display: flex; align-items: center; gap: clamp(20px, 3.4vw, 56px); }
.ms-strip li + li::before { content: ""; width: 38px; height: 1px; background: var(--gold); opacity: .7; }

/* ---------- Зачем присоединяться ---------- */
.ms-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.ms-why__item { padding: clamp(22px, 2.4vw, 36px); border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); }
.ms-why__ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; color: var(--gold); border: 1px solid rgba(220,173,118,.45); border-radius: 50%; }
.ms-why__ic svg { width: 26px; height: 26px; }
.ms-why__item h3 { margin: 0 0 10px; font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.25; color: var(--white); }
.ms-why__item p { margin: 0; color: var(--ash); line-height: 1.65; }

/* ---------- Пакеты ---------- */
.ms-toggle { display: inline-flex; margin-top: clamp(28px, 3vw, 44px); padding: 4px; border: 1px solid var(--line); border-radius: var(--r); gap: 4px; }
.ms-toggle button { padding: 11px 26px; font-size: 15px; color: var(--ash); border-radius: calc(var(--r) - 1px); transition: background .35s var(--ease), color .35s var(--ease); }
.ms-toggle button:hover { color: var(--white); }
.ms-toggle button.is-on { background: var(--gold); color: #000; font-weight: 500; }
.ms-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); margin-top: clamp(28px, 3vw, 44px); align-items: stretch; }
.ms-card { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 2.6vw, 40px); border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); transition: border-color .5s var(--ease), transform .6s var(--ease); }
.ms-card:hover { border-color: rgba(220,173,118,.5); }
.ms-card.is-featured { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-wash), rgba(255,255,255,.03)); }
.ms-card__flag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 6px 16px; background: var(--gold); color: #000; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; white-space: nowrap; }
.ms-card__num { font-size: 13px; letter-spacing: .18em; color: var(--faint); }
.ms-card__name { margin: 10px 0 6px; font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: clamp(1.6rem, 2.3vw, 2.2rem); line-height: 1.15; color: var(--gold); }
.ms-card__tag { margin: 0; min-height: 3.2em; color: var(--ash); line-height: 1.6; font-size: 15px; }
.ms-card__price { margin: 22px 0 0; display: flex; align-items: baseline; gap: 10px; color: var(--ash); }
.ms-card__price strong { font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: clamp(2.3rem, 3.4vw, 3.3rem); line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.ms-card__month { margin: 8px 0 0; color: var(--ash); font-size: 15px; }
.ms-card__month b { color: var(--white); font-weight: 600; }
.ms-card__term { margin: 4px 0 0; font-size: 13px; color: var(--faint); }
.ms-card__list { list-style: none; margin: 24px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; flex: 1; }
.ms-card__list li { display: flex; gap: 12px; line-height: 1.5; color: var(--ash); font-size: 15px; }
.ms-card__list b { color: var(--white); font-weight: 600; }
.ms-ic { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.ms-ic--y { color: var(--gold); }
.ms-ic--n { color: var(--faint); text-align: center; line-height: 18px; }
.ms-card__btn { width: 100%; }

/* ---------- История ---------- */
.ms-story { max-width: calc(var(--maxw) + var(--pad) * 2); margin: var(--ms-gap) auto 0; padding-inline: var(--pad); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.ms-story__img { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.3; }
.ms-story__img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.ms-quote { margin: clamp(24px, 2.6vw, 40px) 0 0; padding-left: 22px; border-left: 2px solid var(--gold); font-family: var(--ff-display); font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.4; color: var(--white); }

/* ---------- Сравнение ---------- */
.ms-table { position: relative; margin-top: clamp(28px, 3vw, 44px); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ms-table table { width: 100%; min-width: 680px; border-collapse: collapse; }
.ms-table th, .ms-table td { padding: 18px clamp(14px, 1.6vw, 28px); text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; vertical-align: middle; }
.ms-table tbody tr:last-child > * { border-bottom: 0; }
.ms-table thead th { font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: 1.05rem; color: var(--gold); background: rgba(255,255,255,.03); }
.ms-table tbody th { font-weight: 400; color: var(--ash); width: 40%; }
.ms-table td { color: var(--white); }
.ms-table td .ms-ic { display: inline-block; margin: 0; vertical-align: middle; }
.ms-table tbody tr:hover > * { background: rgba(255,255,255,.025); }

/* ---------- Шаги ---------- */
.ms-steps__list { list-style: none; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 56px); counter-reset: none; }
.ms-steps__list li { padding-top: 22px; border-top: 1px solid var(--gold); }
.ms-steps__n { display: block; margin-bottom: 18px; font-family: var(--ff-display); font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1; color: var(--gold); font-weight: var(--fw-strong); }
.ms-steps__list h3 { margin: 0 0 10px; font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: clamp(1.15rem, 1.6vw, 1.45rem); color: var(--white); line-height: 1.3; }
.ms-steps__list p { margin: 0; color: var(--ash); line-height: 1.65; }

/* ---------- FAQ ---------- */
.ms-faq__list { margin-top: clamp(28px, 3vw, 44px); max-width: 960px; border-top: 1px solid var(--line); }
.ms-q { border-bottom: 1px solid var(--line); }
.ms-q summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--white); line-height: 1.4; transition: color .3s var(--ease); }
.ms-q summary::-webkit-details-marker { display: none; }
.ms-q summary:hover { color: var(--gold); }
.ms-q summary i { position: relative; flex: none; width: 18px; height: 18px; }
.ms-q summary i::before, .ms-q summary i::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 1.5px; background: var(--gold); transition: transform .4s var(--ease); }
.ms-q summary i::after { transform: rotate(90deg); }
.ms-q[open] summary i::after { transform: rotate(0); }
.ms-q p { margin: 0; padding: 0 clamp(0px, 4vw, 60px) 26px 0; max-width: 78ch; color: var(--ash); line-height: 1.7; }

/* ---------- Финальный призыв ---------- */
.ms-cta { max-width: calc(var(--maxw) + var(--pad) * 2); margin: var(--ms-gap) auto 0; padding: 0 var(--pad) clamp(80px, 10vw, 160px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.ms-cta .sec-title { flex: none; max-width: 22ch; }
.ms-cta .ms-lead { margin-bottom: clamp(24px, 3vw, 40px); }

/* ---------- Окно заявки ---------- */
.mm { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: clamp(12px, 3vw, 40px); overflow-y: auto; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.mm[hidden] { display: none; }
.mm.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.mm__box { position: relative; width: 100%; max-width: 640px; margin: auto; padding: clamp(26px, 3.6vw, 52px); background: #0b0b0b; border: 1px solid var(--line); border-radius: var(--r); transform: translateY(24px); transition: transform .6s var(--ease); }
.mm.is-open .mm__box { transform: none; }
.mm__x { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; font-size: 28px; line-height: 1; color: var(--ash); transition: color .3s; }
.mm__x:hover { color: var(--gold); }
.mm__title { margin: 0; font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; color: var(--gold); }
.mm__lead { margin: 10px 0 0; color: var(--ash); line-height: 1.6; }
.mm__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 22px 0 6px; padding: 14px 18px; border: 1px solid rgba(220,173,118,.4); background: var(--gold-wash); border-radius: var(--r); color: var(--white); }
.mm__sum b { color: var(--gold); font-size: 1.15rem; white-space: nowrap; }
.mm__f { display: block; margin-top: 18px; border: 0; padding: 0; min-width: 0; }
.mm__f > span, .mm__f legend { display: block; padding: 0; margin-bottom: 8px; font-size: 14px; color: var(--ash); }
.mm__f input[type=text], .mm__f input[type=email], .mm__f input[type=tel], .mm__f input[type=date], .mm__f select {
  width: 100%; height: 50px; padding: 0 16px; color: var(--white); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 16px; transition: border-color .3s var(--ease), background .3s var(--ease); color-scheme: dark;
}
.mm__f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.mm__f select option { background: #111; color: #fff; }
.mm__f input:focus, .mm__f select:focus { outline: 0; border-color: var(--gold); background: rgba(255,255,255,.08); }
.mm__f.has-err input, .mm__f.has-err select { border-color: #e0685f; }
.mm em, .mm__f em { display: block; min-height: 0; margin-top: 6px; font-style: normal; font-size: 13px; color: #ef8a82; }
.mm em:empty { display: none; }
.mm__f small { display: block; margin: -2px 0 10px; font-size: 13px; color: var(--faint); line-height: 1.5; }
.mm__radio > div { display: flex; gap: 12px; flex-wrap: wrap; }
.mm__radio label, .mm__check { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--white); }
.mm__radio label { padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--r); font-size: 15px; transition: border-color .3s; }
.mm__radio label:has(input:checked) { border-color: var(--gold); background: var(--gold-wash); }
.mm__radio input, .mm__check input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.mm__check { align-items: flex-start; margin-top: 22px; font-size: 14px; line-height: 1.55; color: var(--ash); }
.mm__req { margin: 14px 0 0; font-size: 13px; color: var(--faint); }
.mm__go { width: 100%; margin-top: 26px; }
.mm__go[disabled] { opacity: .6; pointer-events: none; }
.mm__back { display: block; margin: 16px auto 0; color: var(--ash); font-size: 14px; transition: color .3s; }
.mm__back:hover { color: var(--gold); }
.mm__pay { display: grid; gap: 12px; margin-top: 22px; }
.mm__method { display: block; text-align: left; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.03); transition: border-color .3s var(--ease), background .3s var(--ease); }
.mm__method:hover { border-color: rgba(220,173,118,.6); }
.mm__method[aria-checked=true] { border-color: var(--gold); background: var(--gold-wash); }
.mm__method-t { display: block; font-weight: 600; color: var(--white); font-size: 1.05rem; }
.mm__method-d { display: block; margin-top: 4px; font-size: 14px; color: var(--ash); line-height: 1.5; }
.mm__note { margin: 20px 0 0; font-size: 14px; line-height: 1.65; color: var(--ash); }
.mm__err-block { margin-top: 10px; }
.mm__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mm__done { text-align: center; padding: 10px 0; }
.mm__ok { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); }
.mm__ok svg { width: 30px; height: 30px; }
.mm__num { margin: 18px 0 24px; font-size: 13px; letter-spacing: .12em; color: var(--faint); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .ms-cards { grid-template-columns: 1fr; max-width: 560px; }
  .ms-card__tag { min-height: 0; }
  .ms-story { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ms-why__grid, .ms-steps__list { grid-template-columns: 1fr; }
  .ms-hero { min-height: 82vh; }
  .ms-hero__bg::after { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.55) 100%); }
  .ms-strip li + li::before { display: none; }
  .ms-strip { flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) {
  .ms-toggle { display: flex; }
  .ms-toggle button { flex: 1; padding-inline: 12px; }
  .ms-table th, .ms-table td { padding: 14px 12px; font-size: 14px; }
  .mm { padding: 0; }
  .mm__box { min-height: 100%; max-width: none; border: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .mm, .mm__box { transition: none; } }

/* Армянский: без капса (заглавные армянские буквы в рядовом тексте выглядят чужеродно) */
html[lang="hy"] .ms-kicker, html[lang="hy"] .ms-card__flag { text-transform: none; letter-spacing: .06em; }
.ms-story .sec-title, .ms-cta .sec-title { text-wrap: pretty; }
.mm .ms-kicker { padding-right: 44px; }
