/* Главная femetrica.ru (с 07.11.2026): оформление по макету Codex (07.11), меню и разделы — общие с сайтом. */
@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; --aubergine: #40283e; --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-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 91% 2%, #ffe7e4 0, transparent 22%), radial-gradient(circle at 4% 23%, #ffeae4 0, transparent 25%), var(--paper);
}
main { overflow: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 28px; border-radius: 20px; background: linear-gradient(135deg, #8d345e, #4c2547); color: #fff; font: 700 15px/1.2 var(--text); box-shadow: 0 12px 26px rgba(129, 63, 97, .25); transition: transform .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--soft { background: #f4b6ae; color: #2d1d2b; box-shadow: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* ===== Первый экран ===== */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.hero::before { content: ''; position: absolute; width: 340px; height: 300px; left: -330px; bottom: -150px; background: url('/images/home/paper-flower.webp') center / contain no-repeat; transform: rotate(-18deg); opacity: .6; pointer-events: none; }
.hello { margin: 0 0 14px; font: 700 clamp(18px, 1.7vw, 21px)/1.25 var(--display); letter-spacing: -.015em; color: var(--coral-ink); }
.hero h1 { margin: 0; font: 800 clamp(42px, 4.6vw, 64px)/1.06 var(--display); letter-spacing: -.045em; }
.hero h1 span { color: var(--coral); }
.hero__lead { margin: 22px 0 28px; max-width: 30em; font-size: 17px; line-height: 1.58; color: var(--muted); }

/* Коллаж: телефон в центре, карточки вокруг под разными углами. Ни одна не заходит на телефон и на соседку */
.hero__visual { position: relative; height: 500px; isolation: isolate; }
.hero__visual::before { content: ''; position: absolute; inset: 6% -6% 0 -2%; z-index: -2; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(249, 207, 205, .55) 0, rgba(255, 230, 233, .45) 38%, transparent 70%); }
.hero__visual::after { content: ''; position: absolute; z-index: -1; width: 260px; height: 230px; top: -70px; right: -120px; background: url('/images/home/paper-flower.webp') center / contain no-repeat; transform: rotate(30deg); opacity: .75; pointer-events: none; }
.hero-phone { position: absolute; z-index: 3; left: 34%; top: 1%; width: 33%; aspect-ratio: 514 / 914; padding: 6px; border-radius: 30px; background: #fff; box-shadow: 0 22px 40px rgba(163, 96, 112, .35); transform: rotate(1.5deg); transition: transform .2s; }
.hero-phone:hover { transform: rotate(1.5deg) translateY(-4px); }
.hero-phone img { width: 100%; height: 100%; border-radius: 24px; object-fit: cover; object-position: top; }

.float-card { position: absolute; z-index: 2; display: block; overflow: hidden; padding: 18px; border: 1px solid #fff; border-radius: 24px; box-shadow: 0 15px 28px rgba(170, 113, 128, .25); color: var(--ink); transition: transform .2s; }
.float-card__tag { display: inline-block; padding: 5px 12px; border-radius: 20px; background: #ffd7db; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #9b3c5c; }
.float-card strong { position: relative; z-index: 2; display: block; max-width: 11em; margin-top: 12px; font: 800 18px/1.15 var(--display); letter-spacing: -.03em; }
.float-card img { position: absolute; right: -6%; bottom: -8%; width: 72%; height: auto; }
.float-card--tests { left: 0; top: 3%; width: 29%; height: 216px; transform: rotate(-5deg); background: linear-gradient(130deg, #ffe5e1, #fff5f3); }
.float-card--tests:hover { transform: rotate(-5deg) translateY(-4px); }
.float-card--tests img { width: 60%; right: -4%; bottom: -14%; }
.float-card--blog { right: 0; top: 17%; width: 29%; height: 206px; transform: rotate(5deg); background: linear-gradient(130deg, #fff0e6, #fce3df); }
.float-card--blog:hover { transform: rotate(5deg) translateY(-4px); }
.float-card--blog img { width: 92%; right: -10%; bottom: -6%; }
.float-card--talk { left: 3%; top: 61%; width: 27%; height: 150px; transform: rotate(4deg); background: linear-gradient(130deg, #f5e5f1, #f8e6e9); }
.float-card--talk:hover { transform: rotate(4deg) translateY(-4px); }
.float-card--talk .chat-art { position: absolute; right: 2%; bottom: 2%; transform: scale(.55); transform-origin: bottom right; }

.chat-art { position: relative; display: block; width: 170px; height: 100px; }
.chat-art span { position: absolute; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fff; box-shadow: 0 9px 18px rgba(184, 122, 151, .33); }
.chat-art span:first-child { left: 0; top: 0; width: 100px; height: 78px; background: linear-gradient(140deg, #f7a8a3, #d97d91); font-size: 39px; }
.chat-art span:first-child::after { content: ''; position: absolute; left: 19px; bottom: -10px; border: 14px solid transparent; border-top-color: #df8695; transform: rotate(25deg); }
.chat-art span:last-child { right: 0; bottom: 0; width: 79px; height: 58px; background: linear-gradient(140deg, #edc0e1, #c784bf); font-size: 27px; letter-spacing: 2px; }
.chat-art span:last-child::after { content: ''; position: absolute; right: 12px; bottom: -8px; border: 11px solid transparent; border-top-color: #c784bf; transform: rotate(-22deg); }

/* ===== Разделы ===== */
.section { padding: 88px 0; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #d94e59; }
.section h2 { margin: 0; font: 800 clamp(30px, 3.4vw, 46px)/1.12 var(--display); letter-spacing: -.04em; }
.section__text { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Что такое Феметрика */
.about { padding-top: 12px; }
.about__intro { max-width: 780px; margin: 0 auto; text-align: center; }
.about__intro .eyebrow::before, .about__intro .eyebrow::after { content: ''; display: inline-block; width: 30px; height: 1px; margin: 0 16px; background: #e5a7ac; vertical-align: middle; }
.about__intro h2 span { color: var(--coral); }
.about__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.about-card { position: relative; display: flex; flex-direction: column; padding: 0 20px 52px; overflow: hidden; border: 1px solid #fff; border-radius: 24px; background: linear-gradient(140deg, #ffede8, #fff9f8 77%); box-shadow: 0 13px 25px rgba(185, 125, 139, .14); transition: transform .2s; }
.about-card:hover { transform: translateY(-4px); }
.about-card--tests { background: linear-gradient(140deg, #f9e8f4, #fff9fa 77%); }
.about-card--blog { background: linear-gradient(140deg, #fff0e5, #fffaf8 77%); }
.about-card--talk { background: linear-gradient(140deg, #fde8ed, #fff9fa 77%); }
.about-card__art { position: relative; display: block; height: 128px; margin: 0 -20px 6px; }
.about-card__art > img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.about-card--app .about-card__art > img { width: 120%; max-width: none; right: -28%; bottom: -8%; }
.about-card--tests .about-card__art > img { width: 58%; right: 4%; bottom: -6%; opacity: .8; }
.about-card--blog .about-card__art > img { width: 112%; max-width: none; left: -6%; bottom: -10%; }
.about-card--talk .about-card__art { display: grid; place-items: center; }
.about-card--talk .chat-art { transform: scale(.85); }
.mini-phone { position: absolute; z-index: 1; left: 18%; bottom: 0; display: grid; place-items: center; width: 64px; height: 106px; border: 4px solid #a36b83; border-radius: 14px; background: #fff9f9; box-shadow: 0 10px 17px rgba(165, 119, 131, .33); transform: rotate(-9deg); }
.mini-phone img { width: 34px; height: 34px; }
.checklist-art { position: absolute; z-index: 1; left: 14%; bottom: 8px; display: grid; gap: 11px; width: 80px; height: 96px; padding: 20px 12px; border: 3px solid #f4cbd5; border-radius: 11px; background: #fff7f8; box-shadow: 0 7px 15px rgba(198, 136, 160, .2); transform: rotate(7deg); }
.checklist-art i { display: block; height: 7px; border-left: 7px solid #db829c; border-bottom: 2px solid #efb9c6; }
.about-card__tag { align-self: flex-start; padding: 4px 10px; border-radius: 12px; background: #f8dfe8; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #a94b6c; }
.about-card strong { margin-top: 12px; font: 800 18px/1.2 var(--display); letter-spacing: -.03em; }
.about-card__text { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: #564857; }
.about-card__arrow { position: absolute; right: 16px; bottom: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f9dce2; font-size: 18px; color: #8e3e60; }

/* Приложение */
.app { background: var(--rose); }
.app__intro { max-width: 820px; }
.app__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; margin-top: 44px; }
.feature-list { display: grid; border-top: 1px solid #ecd4d6; }
.feature-btn { display: block; width: 100%; padding: 18px 16px 19px 0; border: 0; border-bottom: 1px solid #ecd4d6; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.feature-btn[aria-selected="true"] { padding-left: 16px; border-left: 4px solid var(--coral); background: #fff9f7; }
.feature-btn__label { display: block; margin-bottom: 6px; font: 800 18px/1.2 var(--display); letter-spacing: -.02em; }
.feature-btn[aria-selected="true"] .feature-btn__label { color: var(--coral-ink); }
.feature-btn__desc { display: block; font-size: 15px; line-height: 1.5; color: var(--muted); }
.app__more { margin-top: 28px; }
.app-stage { display: grid; place-items: center; height: 580px; padding: 28px; border-radius: 26px; background: radial-gradient(circle, #ffe7e6, #f8dedf); overflow: hidden; }
.app-stage__screen { width: 290px; height: 510px; overflow: hidden; border: 7px solid #fff; border-radius: 24px; background: #f4eaf1; box-shadow: 0 20px 50px rgba(163, 96, 112, .25); }
.app-stage__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Тесты и блог */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split__art { overflow: hidden; width: 100%; max-height: 520px; aspect-ratio: 1 / 1; border-radius: 26px; box-shadow: 0 24px 50px -24px rgba(141, 52, 94, .45); }
.split__art img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { display: block; }
.chips li > span, .chips a { display: block; padding: 9px 14px; border: 1px solid #f0d3da; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--ink); }
.chips a { transition: background .2s, border-color .2s; }
.chips a:hover { background: #fbe4ea; border-color: #e2b8c6; }
.note { margin: 22px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.split .btn { margin-top: 28px; }
.blog { background: var(--lilac); }
.forum-home { background: var(--paper); }
.forum-home__points { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.forum-home__points li { padding-left: 18px; border-left: 3px solid var(--coral); line-height: 1.5; }
.forum-home__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.forum-home__actions .btn { margin: 0; }
.forum-home__actions > a:last-child { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.forum-home__now { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.forum-home__now[hidden] { display: none; }
.forum-home__now h3 { margin: 0 0 12px; font: 800 18px/1.25 var(--display); }
.forum-home__now ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.forum-home__now a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.forum-home__art { display: grid; place-items: center; background: #fce9e5; }
.forum-home__art .chat-art { transform: scale(2.2); }

/* Вопросы */
.faq { max-width: 820px; }
.faq__list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 700 18px/1.3 var(--display); letter-spacing: -.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 24px; line-height: 1; color: var(--coral-ink); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Аккаунт */
.join { background: linear-gradient(130deg, #6e3457, #3e2840); color: #fff; }
.join .eyebrow { color: #f4b6ae; }
.join .section__text { color: #f0dfe8; max-width: 620px; }
.join__grid { list-style: none; margin: 36px 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.join__grid li { padding: 22px 22px 24px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; background: rgba(255, 255, 255, .07); }
.join__grid strong { display: block; font: 700 18px/1.3 var(--display); letter-spacing: -.015em; color: #fff; }
.join__grid p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #f0dfe8; }

/* ===== Планшет ===== */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .hero__copy { max-width: 640px; }
  .hero__visual { width: min(680px, 100%); margin: 0 auto; }
  .about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 68px 0; }
  .app__grid, .split { gap: 36px; }
  .join__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split__art { aspect-ratio: 16 / 10; }
  .blog .split__art { order: -1; }
  .app__grid { grid-template-columns: 1fr; }
  .app__grid > div:first-child { display: contents; }
  .app__more { order: 3; justify-self: start; margin-top: 0; }
}

/* ===== Телефон: телефон слева, карточки лесенкой справа ===== */
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .wrap { padding: 0 16px; }
  .hero { gap: 22px; padding-top: 18px; padding-bottom: 36px; }
  .hero::before { display: none; }
  .hello { margin-bottom: 8px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 44px); }
  .hero__lead { margin: 12px 0 18px; font-size: 16px; line-height: 1.5; }
  .hero .btn { display: flex; width: 100%; min-height: 50px; }
  .hero__visual { height: 330px; }
  .hero__visual::after { width: 150px; height: 130px; top: -40px; right: -60px; }
  .hero-phone { left: 1%; top: 4%; width: 44%; padding: 4px; border-radius: 22px; }
  .hero-phone img { border-radius: 18px; }
  .float-card { padding: 11px 12px; border-radius: 16px; }
  .float-card__tag { padding: 3px 8px; font-size: 9px; }
  .float-card strong { margin-top: 7px; font-size: 14px; }
  .float-card--tests { left: auto; right: 2%; top: 1%; width: 47%; height: 104px; transform: rotate(4deg); }
  .float-card--tests:hover { transform: rotate(4deg); }
  .float-card--tests img { width: 38%; bottom: -18%; }
  .float-card--blog { right: 6%; top: 36%; width: 45%; height: 98px; transform: rotate(-4deg); }
  .float-card--blog:hover { transform: rotate(-4deg); }
  .float-card--blog img { width: 60%; right: -8%; bottom: -10%; }
  .float-card--talk { left: auto; right: 1%; top: 69%; width: 46%; height: 92px; transform: rotate(3deg); }
  .float-card--talk:hover { transform: rotate(3deg); }
  .float-card--talk .chat-art { transform: scale(.32); }
  .section { padding: 52px 0; }
  .about { padding-top: 4px; }
  .about__intro .eyebrow::before, .about__intro .eyebrow::after { width: 14px; margin: 0 8px; }
  .about__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .about-card__art { height: 112px; }
  .about-card strong { font-size: 17px; }
  .section__text { font-size: 16px; }
  .app__grid { margin-top: 26px; gap: 22px; }
  .feature-btn { padding: 14px 12px 14px 0; }
  .feature-btn[aria-selected="true"] { padding-left: 12px; }
  .feature-btn[aria-selected="false"] .feature-btn__desc { display: none; }
  .feature-btn[aria-selected="false"] .feature-btn__label { margin-bottom: 0; }
  .feature-btn__label { font-size: 16px; }
  .app-stage { height: 430px; padding: 18px; border-radius: 20px; }
  .app-stage__screen { width: 224px; height: 394px; border-width: 5px; border-radius: 18px; }
  .app__more, .split .btn, .join .btn { display: flex; width: 100%; }
  .split { gap: 24px; }
  .split__art { border-radius: 18px; }
  .chips li > span, .chips a { padding: 8px 12px; font-size: 13px; }
  .faq summary { padding: 16px 0; font-size: 16px; }
  .join__grid { grid-template-columns: 1fr; gap: 12px; margin: 26px 0; }
  .join__grid li { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ===== Premium: короткий тизер на главной (17.11.2026) =====
   Полная секция с цветком живёт на /premium, здесь только выгоды и ссылка. */
.premium-teaser { padding-top: 24px; }
.premium-teaser__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.premium-teaser .section__text { margin-top: 16px; font-size: 17px; color: var(--muted); }
.premium-teaser__list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.premium-teaser__list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .72); }
.premium-teaser__list b { display: block; font: 800 16px/1.3 var(--display); }
.premium-teaser__list span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.premium-teaser__free { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.premium-teaser__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.premium-teaser__cta .more { color: var(--plum); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.premium-teaser__art { position: relative; display: grid; place-items: center; min-height: 320px; }
.premium-teaser__art::before { content: ""; position: absolute; inset: 8% 10%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(223, 109, 103, .22), rgba(141, 52, 94, .08) 70%, transparent 72%); }
.premium-teaser__art img { position: relative; width: min(68%, 300px); height: auto; border-radius: 24px; border: 6px solid #fff; background: #fff; box-shadow: 0 20px 40px rgba(150, 96, 112, .28); transform: rotate(-3deg); }
@media (max-width: 900px) {
  .premium-teaser__grid { grid-template-columns: 1fr; gap: 26px; }
  .premium-teaser__art { min-height: 240px; max-width: 460px; }
  .premium-teaser__art img { width: min(52%, 240px); }
}
@media (max-width: 640px) {
  .premium-teaser { padding-top: 12px; }
  .premium-teaser__art { min-height: 200px; }
  .premium-teaser__cta .btn { width: 100%; }
  .premium-teaser__art img { width: min(58%, 220px); }
}
