/* Rerajt.ru theme */
:root {
    --rr-ink: #101828;
    --rr-muted: #667085;
    --rr-line: #e4e7ec;
    --rr-bg: #fbfcf8;
    --rr-soft: #f2fbf7;
    --rr-mint: #00c2a8;
    --rr-mint-dark: #009b87;
    --rr-yellow: #ffb703;
    --rr-coral: #ff6b5f;
    --rr-blue: #2f6fed;
    --rr-violet: #7c3aed;
    --rr-white: #ffffff;
    --rr-shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.rr-body, body { margin: 0; color: var(--rr-ink); background: var(--rr-bg); font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
img, svg, video, canvas { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
::selection { color: var(--rr-ink); background: rgba(255, 183, 3, 0.45); }

.rr-site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.rr-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.rr-main { flex: 1; }

.rr-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 252, 248, 0.88); border-bottom: 1px solid rgba(16, 24, 40, 0.08); backdrop-filter: blur(18px); }
.rr-header__inner { width: min(1180px, calc(100% - 32px)); height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rr-logo { display: inline-flex; align-items: center; text-decoration: none; min-width: 160px; }
.rr-logo img { width: 176px; display: block; }
.rr-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 800; color: #475467; }
.rr-nav a { text-decoration: none; transition: color .2s ease; }
.rr-nav a:hover { color: var(--rr-mint-dark); }
.rr-header__actions { display: flex; align-items: center; gap: 10px; }

.rr-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 0; border-radius: 999px; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.rr-btn:hover { transform: translateY(-1px); }
.rr-btn--primary { color: #06221f; background: linear-gradient(135deg, var(--rr-mint), var(--rr-yellow)); box-shadow: 0 14px 34px rgba(0, 194, 168, 0.28); }
.rr-btn--ghost { color: var(--rr-ink); background: #fff; border: 1px solid var(--rr-line); }
.rr-btn--dark { color: #fff; background: var(--rr-ink); }

.rr-hero { position: relative; overflow: hidden; padding: 76px 0 48px; background: radial-gradient(circle at 18% 14%, rgba(0, 194, 168, .17), transparent 28%), radial-gradient(circle at 90% 20%, rgba(255, 183, 3, .22), transparent 24%), linear-gradient(180deg, #fbfcf8 0%, #f6fbf2 100%); }
.rr-hero__bg { position: absolute; inset: auto 0 0; height: 170px; background: linear-gradient(90deg, rgba(0,194,168,.08), rgba(255,183,3,.09), rgba(47,111,237,.08)); transform: skewY(-2deg); transform-origin: bottom left; }
.rr-hero__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.rr-kicker, .rr-section-label { display: inline-flex; align-items: center; width: fit-content; border: 1px solid rgba(0, 194, 168, .28); background: rgba(0, 194, 168, .09); color: #047d70; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.rr-hero h1 { margin: 22px 0 18px; max-width: 620px; font-size: clamp(42px, 7vw, 78px); line-height: .94; letter-spacing: 0; font-weight: 950; }
.rr-hero p { margin: 0; max-width: 600px; color: #475467; font-size: 20px; line-height: 1.55; }
.rr-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.rr-hero__badges span { border: 1px solid var(--rr-line); background: #fff; border-radius: 999px; padding: 10px 14px; color: #475467; font-weight: 800; font-size: 14px; }
.rr-hero__tool { min-width: 0; }

.rr-plugin-missing { padding: 28px; border: 1px dashed var(--rr-line); border-radius: 18px; background: #fff; color: var(--rr-muted); font-weight: 700; }
.rr-strip { background: var(--rr-ink); color: #fff; }
.rr-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.rr-strip__grid div { padding: 24px; background: rgba(255,255,255,.04); }
.rr-strip strong { display: block; font-size: 26px; line-height: 1; color: var(--rr-yellow); margin-bottom: 8px; }
.rr-strip span { color: rgba(255,255,255,.72); font-weight: 700; }

.rr-section { padding: 92px 0; background: var(--rr-bg); }
.rr-section--soft { background: var(--rr-soft); }
.rr-section--dark { background: #101828; color: #fff; }
.rr-section-head { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.rr-section-head .rr-section-label { margin: 0 auto 14px; }
.rr-section-head h2, .rr-two-col h2, .rr-reviews h2, .rr-cta h2 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 50px); line-height: 1.04; letter-spacing: 0; font-weight: 950; }
.rr-section-head p, .rr-two-col p, .rr-cta p { margin: 0; color: var(--rr-muted); font-size: 18px; line-height: 1.65; }
.rr-section-head--light p { color: rgba(255,255,255,.68); }

.rr-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.rr-two-col--reverse { align-items: stretch; }
.rr-check-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.rr-check-list li { position: relative; padding-left: 30px; color: #475467; font-weight: 750; line-height: 1.5; }
.rr-check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--rr-mint), var(--rr-yellow)); }

.rr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rr-steps article, .rr-examples article, .rr-link-card, .rr-panel, .rr-reviews blockquote { border: 1px solid rgba(16,24,40,.08); background: #fff; border-radius: 22px; padding: 28px; box-shadow: 0 10px 36px rgba(16,24,40,.06); }
.rr-steps span { display: inline-flex; margin-bottom: 28px; color: var(--rr-mint-dark); font-weight: 950; font-size: 13px; }
.rr-steps h3, .rr-examples h3 { margin: 0 0 10px; font-size: 22px; }
.rr-steps p, .rr-link-card span { margin: 0; color: var(--rr-muted); line-height: 1.6; font-weight: 650; }

.rr-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rr-examples article { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.rr-before, .rr-after { margin-top: 16px; padding: 16px; border-radius: 16px; line-height: 1.55; font-weight: 700; }
.rr-before { background: rgba(255,255,255,.08); color: rgba(255,255,255,.68); }
.rr-after { background: rgba(0,194,168,.16); color: #dcfffa; }

.rr-panel--accent { background: linear-gradient(135deg, #101828, #153d38); color: #fff; }
.rr-audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.rr-audience-grid div { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07); border-radius: 18px; padding: 18px; }
.rr-audience-grid strong { display: block; margin-bottom: 8px; color: var(--rr-yellow); }
.rr-audience-grid span { color: rgba(255,255,255,.72); line-height: 1.5; }
.rr-reviews blockquote { margin: 0 0 16px; }
.rr-reviews blockquote:last-child { margin-bottom: 0; }
.rr-reviews cite { display: block; margin-top: 14px; color: var(--rr-mint-dark); font-weight: 900; font-style: normal; }

.rr-link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rr-link-card { display: block; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.rr-link-card:hover { transform: translateY(-3px); border-color: rgba(0,194,168,.45); }
.rr-link-card strong { display: block; margin-bottom: 8px; font-size: 19px; }

.rr-faq-wrap { max-width: 860px; }
.rr-faq-list { display: grid; gap: 10px; }
.rr-faq-item { border: 1px solid var(--rr-line); border-radius: 18px; background: #fff; overflow: hidden; }
.rr-faq-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border: 0; background: transparent; color: var(--rr-ink); font-weight: 900; cursor: pointer; text-align: left; }
.rr-faq-answer { display: none; padding: 0 22px 20px; color: var(--rr-muted); line-height: 1.6; }
.rr-faq-item.is-open .rr-faq-answer { display: block; }
.rr-faq-answer p { margin: 0; }

.rr-cta { padding: 76px 0; background: linear-gradient(135deg, #00c2a8, #ffb703); }
.rr-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rr-cta h2 { max-width: 520px; }
.rr-cta p { max-width: 430px; color: rgba(16,24,40,.78); font-weight: 750; }
.rr-cta .rr-btn--primary { background: var(--rr-ink); color: #fff; box-shadow: none; }

.rr-footer { padding: 70px 0 28px; background: #101828; color: #fff; }
.rr-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 36px; }
.rr-footer__logo { display: inline-flex; align-items: center; width: 214px; max-width: 100%; margin-bottom: 18px; padding: 10px 12px; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.rr-footer__brand img { display: block; width: 190px; }
.rr-footer p { max-width: 380px; color: rgba(255,255,255,.62); line-height: 1.65; }
.rr-footer h4 { margin: 0 0 18px; color: rgba(255,255,255,.46); text-transform: uppercase; font-size: 12px; letter-spacing: 0; }
.rr-footer a { display: block; margin: 0 0 12px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 750; }
.rr-footer a:hover { color: var(--rr-yellow); }
.rr-footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.48); font-weight: 700; }

.rr-page-wrap { max-width: 860px; padding: 76px 0; }
.rr-page-wrap h1, .rr-section > .rr-container > h1 { margin: 0 0 28px; font-size: clamp(34px, 5vw, 54px); line-height: 1.04; font-weight: 950; }
.rr-page-content { color: #475467; font-size: 18px; line-height: 1.72; }
.rr-page-content h2 { margin: 34px 0 12px; color: var(--rr-ink); font-size: 24px; line-height: 1.2; }
.rr-page-content p { margin: 0 0 18px; }
.rr-page-content ul { padding-left: 24px; }
.rr-page-content a { color: var(--rr-mint-dark); font-weight: 850; }
.rr-seo-article { display: grid; gap: 28px; }
.rr-seo-lead { margin: 0; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, rgba(0,194,168,.12), rgba(255,183,3,.18)); color: #344054; font-size: 20px; font-weight: 750; }
.rr-seo-tool { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: start; padding: 24px; border: 1px solid rgba(16,24,40,.08); border-radius: 24px; background: #fff; box-shadow: 0 14px 42px rgba(16,24,40,.07); }
.rr-seo-tool h2 { margin-top: 0; }
.rr-seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rr-seo-card { min-height: 150px; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--rr-line); }
.rr-seo-card strong { display: block; color: var(--rr-ink); margin-bottom: 8px; }
.rr-seo-card span { display: block; color: var(--rr-muted); line-height: 1.55; font-weight: 650; }
.rr-seo-steps { display: grid; gap: 12px; padding-left: 0; counter-reset: rr-step; }
.rr-seo-steps li { list-style: none; position: relative; padding: 18px 18px 18px 58px; border-radius: 18px; background: #fff; border: 1px solid var(--rr-line); }
.rr-seo-steps li::before { counter-increment: rr-step; content: counter(rr-step); position: absolute; left: 18px; top: 18px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--rr-ink); color: #fff; font-size: 13px; font-weight: 950; }
.rr-seo-table { display: grid; border: 1px solid var(--rr-line); border-radius: 22px; overflow: hidden; background: #fff; }
.rr-seo-table div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 18px; border-bottom: 1px solid var(--rr-line); }
.rr-seo-table div:last-child { border-bottom: 0; }
.rr-seo-table b { color: var(--rr-ink); }
.rr-seo-table span { color: var(--rr-muted); }
.rr-seo-faq { display: grid; gap: 10px; }
.rr-seo-faq details { border: 1px solid var(--rr-line); border-radius: 18px; background: #fff; padding: 18px; }
.rr-seo-faq summary { cursor: pointer; color: var(--rr-ink); font-weight: 900; }
.rr-seo-faq p { margin: 12px 0 0; }
.rr-seo-cta { padding: 28px; border-radius: 24px; background: #101828; color: #fff; }
.rr-seo-cta h2 { color: #fff; }
.rr-seo-cta p { color: rgba(255,255,255,.72); }

/* Shared plugin surfaces */
.air-widget, .rfr-widget { background: #fff; border: 1px solid rgba(16,24,40,.08); border-radius: 26px; box-shadow: var(--rr-shadow); padding: 24px; overflow: hidden; }
.air-widget textarea, .air-widget select, .rfr-widget input, .rfr-widget select { width: 100%; border: 1px solid var(--rr-line); border-radius: 16px; color: var(--rr-ink); background: #fff; outline: 0; }
.air-widget textarea:focus, .air-widget select:focus, .rfr-widget input:focus, .rfr-widget select:focus { border-color: var(--rr-mint); box-shadow: 0 0 0 4px rgba(0,194,168,.12); }
.air-widget textarea { height: clamp(220px, 34vh, 360px); min-height: 220px; max-height: 360px; resize: none; overflow: auto; padding: 18px; line-height: 1.6; scrollbar-width: thin; }
.air-toolbar, .rfr-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.rr-control { position: relative; display: grid; gap: 7px; min-width: 0; }
.rr-control span { color: #667085; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.rr-control select { min-height: 52px; padding: 15px 42px 15px 14px; appearance: none; background: linear-gradient(180deg, #fff, #fbfcff); font-weight: 850; line-height: 1.2; white-space: normal; cursor: pointer; }
.rr-control::after { content: ""; position: absolute; right: 16px; bottom: 20px; width: 9px; height: 9px; border-right: 2px solid #667085; border-bottom: 2px solid #667085; transform: rotate(45deg); pointer-events: none; }
.air-widget select, .rfr-widget select { min-width: 0; }
.air-actions, .rfr-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.air-counter, .rfr-note { color: var(--rr-muted); font-size: 13px; font-weight: 750; }
.air-result, .rfr-result { margin-top: 16px; border-radius: 18px; background: #f8fafc; border: 1px solid var(--rr-line); padding: 18px; white-space: pre-wrap; line-height: 1.6; color: #344054; max-height: 420px; overflow: auto; scrollbar-width: thin; }
.air-result:empty, .rfr-result:empty { display: none; }
.air-status, .rfr-status { margin-top: 12px; color: var(--rr-mint-dark); font-weight: 850; min-height: 22px; }
.rfr-drop { border: 2px dashed rgba(0,194,168,.42); border-radius: 20px; padding: 30px; background: linear-gradient(180deg, #f7fffc, #fffdf4); text-align: center; cursor: pointer; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.rfr-drop:hover, .rfr-drop.is-over { border-color: var(--rr-mint); transform: translateY(-1px); background: #f4fffb; }
.rfr-drop strong { display: block; margin-bottom: 8px; font-size: 20px; }
.rfr-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.rfr-summary div { border-radius: 16px; background: #f8fafc; padding: 14px; }
.rfr-summary span { display: block; color: var(--rr-muted); font-size: 12px; font-weight: 800; }
.rfr-summary strong { display: block; margin-top: 4px; font-size: 20px; }
.rfr-summary strong, .air-result, .rfr-result, .rr-seo-card, .rr-seo-table span { overflow-wrap: anywhere; }
.rfr-progress { height: 10px; border-radius: 999px; background: #e4e7ec; overflow: hidden; margin-top: 14px; }
.rfr-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rr-mint), var(--rr-yellow)); transition: width .35s ease; }

@media (max-width: 980px) {
    .rr-nav { display: none; }
    .rr-hero__grid, .rr-two-col, .rr-two-col--reverse, .rr-seo-tool { grid-template-columns: 1fr; }
    .rr-strip__grid, .rr-steps, .rr-examples, .rr-link-grid, .rr-footer__grid, .rr-seo-grid { grid-template-columns: repeat(2, 1fr); }
    .rr-cta__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
    .rr-container, .rr-header__inner { width: min(100% - 22px, 1180px); }
    .rr-header__inner { height: 66px; gap: 10px; }
    .rr-logo img { width: 132px; }
    .rr-header__actions .rr-btn--ghost { display: none; }
    .rr-btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
    .rr-hero { padding: 44px 0 28px; }
    .rr-hero p, .rr-section-head p, .rr-two-col p { font-size: 16px; }
    .rr-strip__grid, .rr-steps, .rr-examples, .rr-link-grid, .rr-footer__grid, .rr-audience-grid, .air-toolbar, .rfr-toolbar, .rfr-summary, .rr-seo-grid, .rr-seo-table div { grid-template-columns: 1fr; }
    .rr-section { padding: 58px 0; }
    .rr-footer__bottom { flex-direction: column; }
    .air-widget, .rfr-widget { border-radius: 20px; padding: 16px; }
    .air-widget textarea { height: 260px; max-height: 260px; }
    .air-actions, .rfr-actions { align-items: stretch; flex-direction: column; }
    .air-actions .rr-btn, .rfr-actions .rr-btn { width: 100%; }
    .rr-seo-tool, .rr-seo-lead, .rr-seo-cta { padding: 18px; }
}
