/* QWERTYMAIL — массовые email-рассылки */
.qmm-page {
    --qps-ink: #27252b;
    --qps-text: #69666d;
    --qps-bg: #f7f7f4;
    --qps-border: rgba(48,43,43,.09);
    --qps-title-max: 720px;
    --qps-lead-max: 700px;
    --qps-section-head-max: 790px;
}

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

.qmm-hero { padding: 72px 0 56px; }
.qmm-hero__grid { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(430px,.98fr); align-items: center; gap: 64px; }
.qmm-hero h1 { max-width: 760px; margin: 18px 0 20px; font-size: clamp(44px,5vw,68px); line-height: 1.02; letter-spacing: -.055em; font-weight: 760; }
.qmm-hero__lead { max-width: 710px; margin: 0; color: var(--qps-text); font-size: 18px; line-height: 1.7; }
.qmm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.qmm-button--secondary { border-color: rgba(47,45,212,.18); background: #fff; color: var(--qps-accent) !important; }
.qmm-button--secondary:hover { border-color: rgba(47,45,212,.36); transform: translateY(-1px); }
.qmm-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--qps-text); font-size: 13px; font-weight: 650; }
.qmm-hero__meta span { position: relative; padding-left: 15px; }
.qmm-hero__meta span::before { content: ''; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--qps-accent); }

.qmm-hero__visual { position: relative; }
.qmm-hero__visual::before { content: ''; position: absolute; inset: 8% -7% -8% 8%; border-radius: 42px; background: radial-gradient(circle at 70% 20%, rgba(169,125,255,.28), transparent 42%), linear-gradient(145deg, rgba(47,45,212,.08), rgba(122,66,255,.02)); transform: rotate(-3deg); }
.qmm-dashboard { position: relative; z-index: 1; max-width: 520px; margin-left: auto; padding: 22px; border: 1px solid rgba(47,45,212,.13); border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: 0 30px 80px rgba(47,45,80,.12); }
.qmm-dashboard__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #ecebf1; }
.qmm-dashboard__top span { font-size: 14px; font-weight: 800; }
.qmm-dashboard__top b { padding: 8px 11px; border-radius: 999px; background: #eefff4; color: #20764a; font-size: 11px; }
.qmm-dashboard__mail { margin-top: 18px; padding: 18px; border: 1px solid #ecebf1; border-radius: 18px; background: #fafafd; }
.qmm-dashboard__subject { display: flex; align-items: center; gap: 10px; }
.qmm-dashboard__subject span { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(145deg,#a97dff,#4e24ff); }
.qmm-dashboard__subject strong { display: block; width: 58%; height: 8px; border-radius: 99px; background: #302d39; opacity: .72; }
.qmm-dashboard__banner { height: 122px; margin-top: 16px; border-radius: 15px; background: linear-gradient(135deg,#201c3b 0%,#4e24ff 58%,#a97dff 100%); }
.qmm-dashboard__lines { display: grid; gap: 7px; margin-top: 15px; }
.qmm-dashboard__lines span { display: block; height: 7px; border-radius: 99px; background: #dedce4; }
.qmm-dashboard__lines span:nth-child(2) { width: 90%; }
.qmm-dashboard__lines span:nth-child(3) { width: 72%; }
.qmm-dashboard__button { width: 108px; height: 30px; margin-top: 15px; border-radius: 8px; background: #2f2dd4; }
.qmm-dashboard__audience { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.qmm-dashboard__audience div { padding: 14px 15px; border-radius: 14px; background: #f3f2ff; }
.qmm-dashboard__audience span, .qmm-dashboard__footer span { display: block; color: #67646d; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .045em; }
.qmm-dashboard__audience strong { display: block; margin-top: 5px; font-size: 17px; }
.qmm-dashboard__footer { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }
.qmm-dashboard__footer span { padding: 12px; border: 1px solid #ecebf1; border-radius: 12px; background: #fff; text-transform: none; letter-spacing: 0; }
.qmm-dashboard__footer b { display: block; margin-top: 5px; color: #292631; font-size: 16px; }

.qmm-proof { border-top: 1px solid var(--qps-border); border-bottom: 1px solid var(--qps-border); background: rgba(255,255,255,.42); }
.qmm-proof__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.qmm-proof__grid > div { min-height: 112px; padding: 27px 28px; border-left: 1px solid var(--qps-border); }
.qmm-proof__grid > div:last-child { border-right: 1px solid var(--qps-border); }
.qmm-proof strong { display: block; font-size: 16px; }
.qmm-proof span { display: block; margin-top: 6px; color: #7a777e; font-size: 13px; line-height: 1.45; }

.qmm-about { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.65fr); gap: 72px; align-items: start; }
.qmm-about h2, .qmm-pricing h2, .qmm-base h2, .qmm-turnkey h2 { margin: 16px 0 0; font-size: clamp(34px,4vw,50px); line-height: 1.08; letter-spacing: -.04em; }
.qmm-about__copy p, .qmm-pricing__copy p, .qmm-base__copy p, .qmm-turnkey p { margin: 18px 0 0; color: var(--qps-text); font-size: 16px; line-height: 1.75; }
.qmm-about__card { padding: 30px; border: 1px solid rgba(47,45,212,.12); border-radius: 26px; background: #fff; box-shadow: 0 18px 55px rgba(47,45,80,.055); }
.qmm-about__card > span { color: var(--qps-accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.qmm-about__card ul { margin: 20px 0 0; padding: 0; list-style: none; }
.qmm-about__card li { position: relative; margin-top: 12px; padding-left: 22px; color: #56535c; line-height: 1.5; }
.qmm-about__card li::before { content: ''; position: absolute; left: 0; top: .52em; width: 8px; height: 8px; border: 2px solid var(--qps-accent); border-radius: 50%; }

.qmm-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.qmm-step { min-height: 270px; padding: 28px; border: 1px solid var(--qps-border); border-radius: 24px; background: #fff; box-shadow: 0 12px 36px rgba(47,45,80,.035); }
.qmm-step__num { color: var(--qps-accent); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.qmm-step h3 { margin: 34px 0 0; font-size: 22px; line-height: 1.2; }
.qmm-step p { margin: 12px 0 0; color: var(--qps-text); font-size: 14px; line-height: 1.68; }
.qmm-step a { display: inline-block; margin-top: 18px; color: var(--qps-accent) !important; font-size: 13px; font-weight: 800; text-decoration: none !important; }

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

.qmm-base { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.75fr); gap: 64px; align-items: center; padding: clamp(34px,5vw,58px); border: 1px solid rgba(47,45,212,.1); border-radius: 30px; background: #fff; box-shadow: 0 18px 58px rgba(47,45,80,.045); }
.qmm-base__copy a:not(.qw-product-button) { color: var(--qps-accent) !important; font-weight: 750; }
.qmm-base__copy .qw-product-button { margin-top: 26px; }
.qmm-base__checklist { display: grid; gap: 10px; }
.qmm-base__checklist div { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 15px; background: #f6f5ff; }
.qmm-base__checklist b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--qps-accent); font-size: 11px; }
.qmm-base__checklist span { color: #56535c; font-size: 13px; line-height: 1.45; font-weight: 650; }

.qmm-pricing { display: grid; grid-template-columns: minmax(0,1fr) minmax(390px,.74fr); gap: 70px; align-items: center; }
.qmm-pricing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 28px; }
.qmm-text-link { color: var(--qps-accent) !important; font-size: 14px; font-weight: 800; text-decoration: none !important; }
.qmm-pricing__card { overflow: hidden; border: 1px solid rgba(47,45,212,.14); border-radius: 25px; background: #fff; box-shadow: 0 22px 60px rgba(47,45,80,.075); }
.qmm-pricing__head, .qmm-pricing__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; }
.qmm-pricing__head { background: #f2f1ff; }
.qmm-pricing__head span { color: var(--qps-accent); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.qmm-pricing__head strong { font-size: 14px; }
.qmm-pricing__row { border-top: 1px solid #eeedf2; }
.qmm-pricing__row span { color: #6a6770; font-size: 14px; }
.qmm-pricing__row strong { font-size: 20px; }
.qmm-pricing__monthly { padding: 20px 22px; border-top: 1px solid #dfddef; background: #28263a; color: #fff; }
.qmm-pricing__monthly span { display: block; color: rgba(255,255,255,.82); font-size: 12px; }
.qmm-pricing__monthly strong { display: block; margin-top: 7px; font-size: 20px; }

.qmm-types { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.qmm-type { display: block; min-height: 280px; padding: 30px; border: 1px solid var(--qps-border); border-radius: 25px; background: #fff; color: inherit !important; text-decoration: none !important; }
a.qmm-type:hover { transform: translateY(-3px); border-color: rgba(47,45,212,.24); }
.qmm-type--active { background: linear-gradient(145deg,#2a273a,#171621); color: #fff; }
.qmm-type--active > span { color: #cfcaff; }
.qmm-type h3 { margin: 34px 0 0; font-size: 23px; }
.qmm-type p { margin: 12px 0 0; color: var(--qps-text); font-size: 14px; line-height: 1.68; }
.qmm-type--active p { color: rgba(255,255,255,.82); }
.qmm-type b { display: block; margin-top: 24px; color: var(--qps-accent); font-size: 13px; }
.qmm-type--active b { color: #cfcaff; }

.qmm-turnkey { padding-top: 30px; }
.qmm-turnkey__inner { display: flex; align-items: center; justify-content: space-between; gap: 42px; padding: 46px 50px; border-radius: 30px; background: linear-gradient(125deg,#171622 0%,#282351 58%,#4e24ff 140%); color: #fff; }
.qmm-turnkey h2 { max-width: 760px; color: #fff; }
.qmm-turnkey p { max-width: 780px; color: rgba(255,255,255,.7); }
.qmm-turnkey__button, .qmm-final__button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 11px; background: #fff; color: #23203a !important; font-size: 14px; font-weight: 850; text-decoration: none !important; box-shadow: 0 14px 34px rgba(0,0,0,.14); }

.qmm-faq { padding-top: 88px; padding-bottom: 88px; }
.qmm-faq__list { max-width: 900px; margin: 38px auto 0; border-top: 1px solid var(--qps-border); }
.qmm-faq details { border-bottom: 1px solid var(--qps-border); }
.qmm-faq summary { position: relative; padding: 23px 44px 23px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 750; }
.qmm-faq summary::-webkit-details-marker { display: none; }
.qmm-faq summary::after { content: '+'; position: absolute; right: 4px; top: 20px; color: var(--qps-accent); font-size: 24px; font-weight: 500; }
.qmm-faq details[open] summary::after { content: '−'; }
.qmm-faq details p { margin: -6px 0 23px; padding-right: 50px; color: var(--qps-text); font-size: 14px; line-height: 1.72; }

.qmm-final { padding: 0 0 92px; }
.qmm-final__inner { display: flex; align-items: center; justify-content: space-between; gap: 44px; padding: 44px 48px; border: 1px solid rgba(47,45,212,.11); border-radius: 30px; background: linear-gradient(135deg,#f0efff,#fff 68%); }
.qmm-final span { color: var(--qps-accent); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.qmm-final h2 { max-width: 760px; margin: 12px 0 0; font-size: clamp(30px,3.4vw,44px); line-height: 1.08; letter-spacing: -.035em; }
.qmm-final p { max-width: 760px; margin: 13px 0 0; color: var(--qps-text); font-size: 14px; line-height: 1.7; }
.qmm-final__button { background: var(--qps-accent); color: #fff !important; }

@media (max-width: 1024px) {
    .qmm-hero__grid { grid-template-columns: 1fr 420px; gap: 36px; }
    .qmm-steps, .qmm-feature-grid { grid-template-columns: repeat(2,1fr); }
    .qmm-about, .qmm-base, .qmm-pricing { gap: 38px; }
    .qmm-types { grid-template-columns: 1fr; }
    .qmm-type { min-height: auto; }
}

@media (max-width: 820px) {
    .qmm-container { width: min(100% - 32px,1180px); }
    .qmm-section { padding: 68px 0; }
    .qmm-hero { padding: 52px 0 42px; }
    .qmm-hero__grid, .qmm-about, .qmm-base, .qmm-pricing { grid-template-columns: 1fr; }
    .qmm-hero__visual { margin-top: 10px; }
    .qmm-dashboard { margin: 0 auto; }
    .qmm-proof__grid { grid-template-columns: repeat(2,1fr); }
    .qmm-proof__grid > div:nth-child(3) { border-top: 1px solid var(--qps-border); }
    .qmm-proof__grid > div:nth-child(4) { border-top: 1px solid var(--qps-border); border-right: 1px solid var(--qps-border); }
    .qmm-base { padding: 34px 26px; }
    .qmm-turnkey__inner, .qmm-final__inner { align-items: flex-start; flex-direction: column; padding: 36px 30px; }
}

@media (max-width: 560px) {
    .qmm-hero h1 { font-size: 42px; }
    .qmm-hero__actions { flex-direction: column; align-items: stretch; }
    .qmm-hero__actions .qw-product-button { width: 100%; }
    .qmm-dashboard { padding: 14px; border-radius: 22px; }
    .qmm-dashboard__footer { grid-template-columns: 1fr; }
    .qmm-proof__grid, .qmm-steps, .qmm-feature-grid { grid-template-columns: 1fr; }
    .qmm-proof__grid > div { min-height: auto; border-right: 1px solid var(--qps-border); border-top: 1px solid var(--qps-border); }
    .qmm-proof__grid > div:first-child { border-top: 0; }
    .qmm-step, .qmm-feature { min-height: auto; }
    .qmm-pricing__actions { align-items: stretch; flex-direction: column; }
    .qmm-pricing__actions .qw-product-button { width: 100%; }
    .qmm-base__checklist div { grid-template-columns: 40px 1fr; }
    .qmm-faq details p { padding-right: 0; }
}
