/* QWERTYMAIL — аналитика email-рассылок */
.qa-page {
    --qps-ink: #25232b;
    --qps-text: #67646d;
    --qps-bg: #f7f7f4;
    --qps-border: rgba(47, 45, 74, .10);
    --qa-purple: #6f3dff;
    --qa-violet: #a97dff;
    --qa-dark: #171522;
}

.qa-container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.qa-section { padding: 90px 0; }
.qa-page a { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease; }

.qa-hero { padding: 72px 0 58px; }
.qa-hero__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(390px, .76fr); align-items: center; gap: 68px; }
.qa-hero h1 { max-width: 790px; margin: 18px 0 20px; font-size: clamp(44px, 5.2vw, 70px); line-height: 1.01; letter-spacing: -.056em; font-weight: 780; }
.qa-hero__lead { max-width: 740px; margin: 0; color: var(--qps-text); font-size: 18px; line-height: 1.72; }
.qa-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.qa-button--secondary { border-color: rgba(47, 45, 212, .18); background: #fff; color: var(--qps-accent) !important; }
.qa-button--secondary:hover { transform: translateY(-1px); border-color: rgba(47, 45, 212, .38); }
.qa-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--qps-text); font-size: 13px; font-weight: 650; }
.qa-hero__meta span { position: relative; padding-left: 15px; }
.qa-hero__meta span::before { content: ''; position: absolute; left: 0; top: .56em; width: 6px; height: 6px; border-radius: 50%; background: var(--qps-accent); }

.qa-hero__visual { position: relative; min-height: 540px; padding: 26px 26px 0; border-radius: 34px; background: linear-gradient(180deg, #A97DFF 0%, #7A42FF 45%, #4E24FF 100%); overflow: visible; }
.qa-hero__visual::before { content: ''; position: absolute; left: 28px; right: 28px; top: 28px; height: 46px; border-radius: 15px; background: rgba(255,255,255,.16); }
.qa-hero__visual::after { content: 'CAMPAIGN ANALYTICS'; position: absolute; top: 45px; left: 48px; color: #fff; font-size: 11px; line-height: 1; font-weight: 850; letter-spacing: .075em; }
.qa-hero__image-wrap { position: absolute; left: 50%; bottom: 0; width: 78%; height: 455px; border: 8px solid #fff; border-bottom: 0; border-radius: 25px 25px 0 0; background: #fff; overflow: hidden; transform: translateX(-50%); box-shadow: 0 24px 58px rgba(34, 16, 88, .28); }
.qa-hero__image-wrap img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top center; }
.qa-float-card { position: absolute; z-index: 2; min-width: 170px; padding: 15px 17px; border: 1px solid rgba(47, 45, 74, .08); border-radius: 16px; background: #fff; box-shadow: 0 18px 42px rgba(39, 24, 81, .18); }
.qa-float-card span { display: block; color: var(--qps-accent); font-size: 10px; font-weight: 850; letter-spacing: .07em; }
.qa-float-card strong { display: block; margin-top: 6px; font-size: 13px; }
.qa-float-card--open { top: 112px; left: -18px; }
.qa-float-card--click { right: -18px; bottom: 78px; }

.qa-proof { border-top: 1px solid var(--qps-border); border-bottom: 1px solid var(--qps-border); background: rgba(255,255,255,.5); }
.qa-proof .qw-product-proof-grid { grid-template-columns: repeat(4, 1fr); }

.qa-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.qa-metric { display: flex; flex-direction: column; min-height: 292px; padding: 28px; border: 1px solid var(--qps-border); border-radius: 24px; background: #fff; box-shadow: 0 12px 34px rgba(47,45,80,.035); }
.qa-metric__code { align-self: flex-start; padding: 7px 9px; border-radius: 8px; background: #f0efff; color: var(--qps-accent); font-size: 10px; line-height: 1; font-weight: 850; letter-spacing: .065em; }
.qa-metric h3 { margin: 33px 0 0; font-size: 23px; line-height: 1.2; }
.qa-metric p { margin: 12px 0 0; color: var(--qps-text); font-size: 14px; line-height: 1.7; }
.qa-metric small { display: block; margin-top: auto; padding-top: 22px; color: #4d4960; font-size: 12px; line-height: 1.5; font-weight: 750; }

.qa-reading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(430px, .72fr); align-items: center; gap: 72px; padding-top: 82px; padding-bottom: 82px; }
.qa-reading h2 { margin: 16px 0 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -.04em; }
.qa-reading__copy p { margin: 18px 0 0; color: var(--qps-text); font-size: 16px; line-height: 1.75; }
.qa-text-link { display: inline-block; margin-top: 25px; color: var(--qps-accent) !important; font-size: 14px; font-weight: 800; text-decoration: none !important; }
.qa-funnel { display: grid; gap: 8px; }
.qa-funnel__row { display: grid; grid-template-columns: 38px minmax(90px, .7fr) 1.2fr; align-items: center; gap: 14px; min-height: 72px; padding: 14px 18px; border: 1px solid rgba(47,45,212,.09); border-radius: 15px; background: #fff; }
.qa-funnel__row:nth-child(2) { margin-inline: 18px; }
.qa-funnel__row:nth-child(3) { margin-inline: 36px; }
.qa-funnel__row:nth-child(4) { margin-inline: 54px; background: #28253a; color: #fff; }
.qa-funnel__row span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #f0efff; color: var(--qps-accent); font-size: 10px; font-weight: 850; }
.qa-funnel__row:nth-child(4) span { background: rgba(255,255,255,.12); color: #d9d5ff; }
.qa-funnel__row strong { font-size: 14px; }
.qa-funnel__row b { color: #67646d; font-size: 12px; line-height: 1.4; font-weight: 650; }
.qa-funnel__row:nth-child(4) b { color: rgba(255,255,255,.82); }

.qa-signals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.qa-signals article { min-height: 268px; padding: 30px; border: 1px solid var(--qps-border); border-radius: 24px; background: #fff; }
.qa-signals span { color: var(--qps-accent); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.qa-signals h3 { margin: 28px 0 0; font-size: 23px; line-height: 1.25; }
.qa-signals p { margin: 12px 0 0; color: var(--qps-text); font-size: 14px; line-height: 1.7; }
.qa-signals a { display: inline-block; margin-top: 20px; color: var(--qps-accent) !important; font-size: 13px; font-weight: 800; text-decoration: none !important; }

.qa-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.qa-step { min-height: 248px; padding: 28px; border: 1px solid var(--qps-border); border-radius: 23px; background: #fff; }
.qa-step > span { color: var(--qps-accent); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.qa-step h3 { margin: 32px 0 0; font-size: 21px; line-height: 1.25; }
.qa-step p { margin: 12px 0 0; color: var(--qps-text); font-size: 14px; line-height: 1.68; }

.qa-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.qa-next > a { display: block; min-height: 264px; padding: 30px; border: 1px solid var(--qps-border); border-radius: 24px; background: #fff; color: inherit !important; text-decoration: none !important; }
.qa-next > a:hover { transform: translateY(-3px); border-color: rgba(47,45,212,.25); box-shadow: 0 18px 48px rgba(47,45,80,.07); }
.qa-next span { color: var(--qps-accent); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.qa-next h3 { margin: 31px 0 0; font-size: 23px; }
.qa-next p { margin: 12px 0 0; color: var(--qps-text); font-size: 14px; line-height: 1.68; }
.qa-next b { display: block; margin-top: 22px; color: var(--qps-accent); font-size: 13px; }

.qa-faq__list { max-width: 900px; margin: 38px auto 0; }

.qa-final { padding: 0 0 92px; }
.qa-final__card { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 48px 50px; border-radius: 30px; background: linear-gradient(180deg, #A97DFF 0%, #7A42FF 45%, #4E24FF 100%); color: #fff; }
.qa-final__card > div:first-child { max-width: 760px; }
.qa-final__card > div > span { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.qa-final h2 { margin: 12px 0 0; color: #fff; font-size: clamp(31px, 3.5vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
.qa-final p { margin: 14px 0 0; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.7; }
.qa-final__actions { flex: 0 0 auto; display: grid; justify-items: center; gap: 14px; }
.qa-final__actions > a:last-child { color: #fff !important; font-size: 13px; font-weight: 800; text-decoration: none !important; }

@media (max-width: 1040px) {
    .qa-hero__grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 40px; }
    .qa-hero__visual { min-height: 500px; }
    .qa-hero__image-wrap { height: 420px; }
    .qa-reading { gap: 40px; }
}

@media (max-width: 860px) {
    .qa-container { width: min(100% - 32px, 1180px); }
    .qa-section { padding: 68px 0; }
    .qa-hero { padding: 52px 0 46px; }
    .qa-hero__grid, .qa-reading { grid-template-columns: 1fr; }
    .qa-hero__visual { width: min(100%, 520px); min-height: 540px; margin: 12px auto 0; }
    .qa-reading { padding-top: 62px; padding-bottom: 62px; }
    .qa-metrics, .qa-steps { grid-template-columns: repeat(2, 1fr); }
    .qa-final__card { align-items: flex-start; flex-direction: column; padding: 40px 34px; }
    .qa-final__actions { justify-items: start; }
}

@media (max-width: 600px) {
    .qa-hero h1 { font-size: 42px; }
    .qa-hero__actions { flex-direction: column; align-items: stretch; }
    .qa-hero__actions .qw-product-button { width: 100%; }
    .qa-hero__visual { min-height: 460px; padding-inline: 16px; border-radius: 26px; }
    .qa-hero__image-wrap { width: 86%; height: 380px; border-width: 6px; }
    .qa-float-card { display: none; }
    .qa-proof .qw-product-proof-grid, .qa-metrics, .qa-signals, .qa-steps, .qa-next { grid-template-columns: 1fr; }
    .qa-metric, .qa-signals article, .qa-step, .qa-next > a { min-height: auto; }
    .qa-funnel__row, .qa-funnel__row:nth-child(n) { grid-template-columns: 34px 1fr; margin-inline: 0; }
    .qa-funnel__row b { grid-column: 2; }
    .qa-final { padding-bottom: 72px; }
    .qa-final__card { padding: 34px 26px; }
    .qa-final__actions { width: 100%; }
    .qa-final__actions .qw-product-button { width: 100%; }
}

@media (max-width: 420px) {
    .qa-hero h1 { font-size: 35px; line-height: 1.06; letter-spacing: -.045em; }
}
