/* Страница /premium: тарифы и оформление до цветка, затем преимущества и FAQ.
   Общие шапка и подвал — site-chrome.css, преимущества — living-matter.css. */
@font-face { font-family: 'Montserrat'; font-weight: 100 900; font-display: swap; src: url('/fonts/montserrat-var-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 100 900; font-display: swap; src: url('/fonts/montserrat-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --ink: #432c40; --plum: #8d345e; --coral: #df6d67; --coral-ink: #c2475a;
  --paper: #fffaf8; --rose: #fff1ef; --lilac: #f9ecf3; --line: #f0dfe0; --muted: #6d586a;
  --display: 'Montserrat', 'FmInter', Arial, sans-serif;
  --text: 'FmInter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 92% 0, #ffe7e4 0, transparent 24%), radial-gradient(circle at 2% 18%, #ffeae4 0, transparent 26%), var(--paper);
}
main { overflow: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.pm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* Кнопки */
.pm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px;
  padding: 0 28px; border: 1px solid transparent; border-radius: 20px; cursor: pointer;
  font: 700 15px/1.2 var(--text); transition: transform .2s, filter .2s, border-color .2s;
  background: linear-gradient(135deg, #8d345e, #4c2547); color: #fff; box-shadow: 0 12px 26px rgba(129, 63, 97, .25);
}
.pm-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pm-btn:disabled { opacity: .6; cursor: default; transform: none; filter: none; }
.pm-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.pm-btn--ghost:hover { border-color: #d9b9c6; }
.pm-btn--small { min-height: 44px; padding: 0 20px; border-radius: 16px; font-size: 14px; }

/* Первый экран */
.pm-hero { padding: 44px 0 36px; }
.pm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; }
.pm-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #d94e59; }
.pm-hero h1 { margin: 0; font: 800 clamp(34px, 4.4vw, 58px)/1.08 var(--display); letter-spacing: -.045em; }
.pm-hero h1 em { color: var(--coral); font-style: normal; }
.pm-hero__lead { margin: 20px 0 0; max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--muted); }
.pm-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.pm-hero__facts li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; }
.pm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.pm-hero__note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
/* Картинки в потоке: абсолютное позиционирование вылезало в блок тарифов. */
.pm-hero__art { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 8px 0 24px; }
.pm-hero__art img { width: 48%; height: auto; border-radius: 24px; box-shadow: 0 20px 40px rgba(150, 96, 112, .28); border: 6px solid #fff; background: #fff; }
.pm-hero__art img:first-child { margin: 4% -4% 0 0; transform: rotate(-4deg); }
.pm-hero__art img:last-child { margin: 16% 0 0 -4%; transform: rotate(4deg); }

/* Тарифы — сразу после первого экрана */
.pm-plans { padding: 52px 0 64px; }
.pm-plans__head { max-width: 720px; }
.pm-plans h2, .pm-faq h2, .pm-next h2 { margin: 0; font: 800 clamp(28px, 3.2vw, 42px)/1.14 var(--display); letter-spacing: -.04em; }
.pm-plans__lead { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

.pm-state { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 15px; line-height: 1.5; }
.pm-state[data-tone="error"] { border-color: #ecc3c6; background: #fff5f4; color: #8a2c3c; }
.pm-state[data-tone="success"] { border-color: #cfe6d6; background: #f3fbf5; color: #24623a; }
.pm-state[hidden] { display: none; }
.pm-state a { color: var(--plum); font-weight: 700; text-decoration: underline; }

.pm-plan-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; }
.pm-plan-list[hidden] { display: none; }
.pm-plan {
  display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 100%;
  padding: 22px 20px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pm-plan:hover { border-color: #d9b9c6; transform: translateY(-2px); }
.pm-plan[aria-pressed="true"] { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(141, 52, 94, .14); }
.pm-plan__period { font: 800 17px/1.2 var(--display); letter-spacing: -.02em; }
.pm-plan__price { margin-top: 8px; font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.pm-plan__monthly { font-size: 14px; color: var(--muted); }
.pm-plan__badge { align-self: flex-start; margin-top: 10px; padding: 5px 10px; border-radius: 999px; background: var(--lilac); color: var(--plum); font-size: 12px; font-weight: 700; }

.pm-confirm { margin: 18px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pm-confirm[hidden] { display: none; }
.pm-confirm__text { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.pm-confirm__text b { font-size: 18px; }
.pm-confirm__error { display: block; margin-top: 10px; color: #8a2c3c; }
.pm-confirm__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.pm-terms { margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.pm-terms a { color: var(--plum); text-decoration: underline; }
.pm-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; }
.pm-links a { color: var(--plum); text-decoration: underline; }

/* Преимущества: общий .living, только отступы под страницу.
   Галерея и чипы остались под селектором #premium старой главной —
   здесь секция #benefits, поэтому задаём их для .pm-benefits. */
.pm-benefits { scroll-margin-top: 90px; }
.pm-benefits .living__intro { padding-top: 20px; }
.pm-benefits .living__lead { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.pm-benefits .living__free { max-width: 620px; margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.pm-benefits .living__shots { display: flex; flex-wrap: wrap; gap: 18px; margin: 34px 0 0; padding: 0 0 6px; }
.pm-benefits .living__shots figure { margin: 0; flex: 0 0 150px; min-width: 0; }
.pm-benefits .living__shots img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 34px rgba(67, 44, 64, .10); }
.pm-benefits .living__shots figcaption { margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.pm-benefits .living__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.pm-benefits .living__facts li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; line-height: 1.4; color: var(--muted); background: rgba(255, 255, 255, .6); }
.pm-benefits__title { max-width: 1220px; margin: 56px auto 0; padding: 0 40px; font: 800 clamp(28px, 3.2vw, 42px)/1.1 var(--display); letter-spacing: -.03em; }

@media (max-width: 760px) {
  .pm-benefits__title { margin-top: 40px; padding: 0 25px; }
  .pm-benefits .living__shots { flex-wrap: nowrap; overflow-x: auto; margin: 26px -25px 0; padding: 0 25px 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .pm-benefits .living__shots figure { flex: 0 0 136px; scroll-snap-align: start; }
}

/* Что открывается после оплаты */
.pm-next { padding: 56px 0; }
.pm-next[hidden] { display: none; }
.pm-next__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.pm-next__grid li { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 18px 20px; }
.pm-next__grid b { display: block; font-size: 16px; margin-bottom: 6px; }
.pm-next__grid p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.pm-next__grid a { color: var(--plum); font-weight: 700; text-decoration: underline; }

/* FAQ */
.pm-faq { padding: 0 0 72px; }
.pm-faq__list { margin: 24px 0 0; border-top: 1px solid var(--line); }
.pm-faq details { border-bottom: 1px solid var(--line); }
.pm-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.pm-faq summary::-webkit-details-marker { display: none; }
.pm-faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--plum); }
.pm-faq details[open] summary::after { content: '−'; }
.pm-faq .pm-faq__a { padding: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.pm-faq .pm-faq__a p { margin: 0 0 10px; }
.pm-faq .pm-faq__a a { color: var(--plum); text-decoration: underline; }

@media (max-width: 900px) {
  .pm-hero__grid { grid-template-columns: 1fr; }
  .pm-hero__art { max-width: 480px; }
  .pm-plan-list { grid-template-columns: 1fr; }
  .pm-next__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pm-wrap { padding: 0 18px; }
  .pm-hero { padding-top: 28px; }
  .pm-hero__cta .pm-btn { width: 100%; }
  .pm-hero__art img:first-child { display: none; }
  .pm-hero__art img:last-child { width: 62%; margin: 8px 0 16px; }
  .pm-plan__price { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-btn:hover, .pm-plan:hover { transform: none; }
}
