/* ——— Страница бесплатного материала ——— */

.page-free .site-header { position: fixed; top: 0; left: 0; right: 0; }
/* Без непрозрачной полосы — градиент hero заходит под шапку */
.page-free .site-header:not(.is-scrolled):not(.is-menu-open) {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-color: transparent;
}

/* Hero */
.fr-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 112px 0 72px;
    background:
        radial-gradient(ellipse 50% 55% at 90% 10%, rgba(255, 210, 63, .22), transparent 55%),
        radial-gradient(ellipse 45% 50% at 8% 80%, rgba(255, 107, 53, .12), transparent 55%),
        linear-gradient(180deg, #FFF8F1 0%, #fff 55%, var(--tint) 100%);
}
.fr-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.fr-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .45;
}
.fr-orb-a {
    width: 38vw; height: 38vw;
    right: -8vw; top: -10%;
    background: #FFD23F;
    animation: fr-drift 16s ease-in-out infinite;
}
.fr-orb-b {
    width: 32vw; height: 32vw;
    left: -10vw; top: 30%;
    background: #FF6B35;
    animation: fr-drift 20s ease-in-out infinite reverse;
}
.fr-orb-c {
    width: 24vw; height: 24vw;
    right: 20%; bottom: 5%;
    background: #FFB347;
    opacity: .3;
    animation: fr-drift 18s ease-in-out infinite;
}
.fr-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(26, 26, 46, .06) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
@keyframes fr-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -18px) scale(1.05); }
}

.fr-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: start;
}

/* Copy */
.fr-copy { min-width: 0; }
.fr-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #F0D0B8;
    color: var(--orange-dark);
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(255, 107, 53, .08);
}
.fr-copy h1 {
    margin: 0 0 14px;
    font-family: var(--font-head);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -.03em;
    color: var(--dark);
    text-wrap: balance;
}
.fr-lead {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 42ch;
}

.fr-benefits {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 10px;
}
.fr-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--dark);
}
.fr-benefits i {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 8px;
    background: linear-gradient(145deg, #FFF1E8, #FFE4CC);
    color: var(--orange);
    font-size: 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.fr-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.fr-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(240, 208, 184, .7);
    color: #5A5F72;
    font-size: 13px;
    font-weight: 700;
}
.fr-meta i { color: var(--orange); }

.fr-cover-wrap {
    position: relative;
    width: min(280px, 70%);
    margin: 0 0 32px;
}
.fr-cover-glow {
    position: absolute;
    inset: 8% 4%;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(255, 107, 53, .35), rgba(255, 210, 63, .18) 50%, transparent 70%);
    filter: blur(18px);
    z-index: 0;
    animation: fr-cover-glow 3.2s ease-in-out infinite;
}
.fr-cover-wrap .cover {
    position: relative;
    z-index: 1;
    transform: rotate(-2.5deg);
    transition: transform .3s ease;
    box-shadow: 0 24px 48px rgba(26, 26, 46, .18);
}
.fr-cover-wrap:hover .cover { transform: rotate(0deg) translateY(-4px); }
@keyframes fr-cover-glow {
    0%, 100% { opacity: .75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

.fr-inside h2 {
    margin: 0 0 16px;
    font-size: 22px;
}
.fr-inside ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.fr-inside li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(26, 26, 46, .04);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
}
.fr-inside em {
    flex: none;
    font-style: normal;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--orange);
    opacity: .85;
}

/* Form card */
.fr-form {
    position: sticky;
    top: 96px;
    isolation: isolate;
    overflow: hidden;
    padding: 28px 26px 24px;
    border-radius: 28px;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 107, 53, .22), transparent 55%),
        linear-gradient(160deg, #1A1F3A 0%, #12162B 55%, #0E1224 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow:
        0 28px 60px rgba(18, 22, 43, .28),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #D7DCEB;
    scroll-margin-top: 100px;
}
.fr-form-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    right: -50px;
    top: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 63, .28), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.fr-form-head,
.fr-form .lead-form,
.fr-form .alert,
.fr-form-note {
    position: relative;
    z-index: 1;
}
.fr-form-head { margin-bottom: 20px; }
.fr-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 210, 63, .14);
    border: 1px solid rgba(255, 210, 63, .28);
    color: #FFE27A;
    font-size: 12px;
    font-weight: 800;
}
.fr-form-head strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -.02em;
}
.fr-form-head span {
    display: block;
    color: rgba(215, 220, 235, .7);
    font-size: 14px;
    line-height: 1.4;
}

.fr-form .field > span { color: rgba(255, 255, 255, .78); }
.fr-form .field small { color: rgba(215, 220, 235, .5); }
.fr-form input[type=text],
.fr-form input[type=email],
.fr-form input[type=tel],
.fr-form .phone-widget {
    background: rgba(255, 255, 255, .96);
}
.fr-form .phone-country { background: #F4F1EC; }
.fr-form .check {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .9);
    box-shadow: none;
}
.fr-form .check:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 176, 138, .45);
}
.fr-form .check:has(input:checked) {
    background: rgba(255, 107, 53, .2);
    border-color: rgba(255, 176, 138, .55);
    box-shadow: none;
}
.fr-form .check a { color: #FFB08A; }
.fr-form .check input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid rgba(255, 255, 255, .65);
    border-radius: 6px;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
}
.fr-form .check input[type=checkbox]::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(.6);
    transition: opacity .15s, transform .18s;
}
.fr-form .check input[type=checkbox]:checked {
    border-color: transparent;
    background: linear-gradient(145deg, #FF8A4C, var(--orange));
    box-shadow: 0 6px 14px rgba(255, 107, 53, .35);
}
.fr-form .check input[type=checkbox]:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}
.fr-form .btn-primary {
    background: linear-gradient(135deg, #FF8A4C 0%, var(--orange) 45%, #E85A24 100%);
    border: 0;
    box-shadow: 0 14px 34px rgba(255, 107, 53, .42);
}
.fr-form .btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 18px 40px rgba(255, 107, 53, .5);
}
.fr-form-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(215, 220, 235, .48);
}
.fr-form-note i { margin-top: 2px; color: rgba(255, 210, 63, .7); }

/* More free */
.fr-more { min-width: 0; }
.fr-more h2 {
    margin: 0 0 22px;
    font-size: clamp(24px, 2.6vw, 30px);
    line-height: 1.2;
}
.fr-more-list {
    display: grid;
    gap: 14px;
}
.fr-more-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(26, 26, 46, .05);
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fr-more-card:hover {
    transform: translateY(-3px);
    border-color: #F0C9AE;
    box-shadow: 0 16px 36px rgba(26, 26, 46, .1);
    color: inherit;
    text-decoration: none;
}
.fr-more-body { min-width: 0; }
.fr-more-body h3 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.3;
}
.fr-more-body p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Final CTA */
.fr-final {
    padding: 8px 0 56px;
    background: var(--tint);
}
.fr-final-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px 34px;
    border-radius: 28px;
    background:
        radial-gradient(ellipse 50% 120% at 0% 50%, rgba(255, 107, 53, .28), transparent 55%),
        radial-gradient(ellipse 40% 100% at 100% 0%, rgba(255, 210, 63, .16), transparent 50%),
        linear-gradient(125deg, #171B32 0%, #12162B 50%, #0E2A4A 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 24px 56px rgba(18, 22, 43, .26);
    color: #D7DCEB;
}
.fr-final-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, .32), transparent 68%);
    pointer-events: none;
    z-index: 0;
}
.fr-final-icon {
    position: relative;
    z-index: 1;
    flex: none;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(145deg, #FF8A4C, var(--orange) 55%, #E85A24);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 14px 32px rgba(255, 107, 53, .42);
}
.fr-final-copy {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}
.fr-final-badge {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 210, 63, .14);
    border: 1px solid rgba(255, 210, 63, .28);
    color: #FFE27A;
    font-size: 12px;
    font-weight: 800;
}
.fr-final-copy h2 {
    margin: 0 0 6px;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.15;
    color: #fff;
}
.fr-final-copy p {
    margin: 0;
    color: rgba(215, 220, 235, .78);
    font-size: 15px;
    line-height: 1.5;
    max-width: 42ch;
}
.fr-final-btn {
    position: relative;
    z-index: 1;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 14px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FF8A4C 0%, var(--orange) 45%, #E85A24 100%);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(255, 107, 53, .42);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.fr-final-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(255, 107, 53, .52);
}
.fr-final-btn em {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .2);
    font-style: normal;
    font-size: 13px;
}

.page-free .site-footer { margin-top: 0; }

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .fr-orb, .fr-cover-glow { animation: none !important; }
    .fr-cover-wrap:hover .cover,
    .fr-final-btn:hover,
    .fr-more-card:hover { transform: none; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1020px) {
    .fr-hero { padding: 96px 0 48px; }
    .fr-layout { grid-template-columns: 1fr; gap: 28px; }
    .fr-form { position: static; order: -1; }
    .fr-cover-wrap { width: min(240px, 60%); margin-left: auto; margin-right: auto; }
    .fr-final-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 22px;
        gap: 16px;
    }
    .fr-final-btn { width: 100%; justify-content: space-between; }
}
