:root {
    --paper: #F6F7FB;
    --grid: rgba(46, 66, 158, .075);
    --ink: #1D2860;
    --ink-soft: #525A7A;
    --red: #E23D33;
    --red-soft: #FBEAE8;
    --mark: #FFE9A3;
    --green: #1F9D63;
    --card: #FFFFFF;
    --line: #E3E6F2;
    --r: 18px;
    --shadow: 0 8px 30px rgba(29, 40, 96, .08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: "Golos Text", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 28px 28px;
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px
}

h1,
h2,
h3 {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.01em
}

h2 {
    font-size: clamp(26px, 4vw, 40px);
    margin-bottom: 14px
}

.hand {
    font-family: "Caveat", cursive;
    font-weight: 700;
    color: var(--red)
}

.eyebrow {
    font-family: "Caveat", cursive;
    font-weight: 700;
    font-size: 24px;
    color: var(--red);
    display: inline-block;
    transform: rotate(-2deg);
    margin-bottom: 8px
}

.sub {
    color: var(--ink-soft);
    font-size: clamp(16px, 2vw, 18px);
    max-width: 640px
}

/* highlight marker */
.mark {
    background: linear-gradient(104deg, transparent 2%, var(--mark) 4%, var(--mark) 96%, transparent 98%);
    padding: 0 .15em;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone
}

/* red-pen strikethrough */
.strike {
    position: relative;
    white-space: nowrap
}

.strike::after {
    content: "";
    position: absolute;
    left: -4%;
    right: -4%;
    top: 52%;
    height: 3px;
    background: var(--red);
    border-radius: 3px;
    transform: rotate(-4deg)
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Golos Text", sans-serif;
    font-weight: 700;
    font-size: 17px;
    padding: 16px 30px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    min-height: 52px;
}

.btn-red {
    background: var(--red);
    color: #fff;
    box-shadow: 0 10px 24px rgba(226, 61, 51, .32)
}

.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(226, 61, 51, .4)
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink)
}

.btn-ghost:hover {
    background: var(--ink);
    color: #fff
}

.btn:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px
}

.btn-note {
    font-size: 14px;
    color: var(--ink-soft);
    margin-top: 10px
}

/* header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 247, 251, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px
}

.logo {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    color: var(--ink)
}

.logo span {
    color: var(--red)
}

.nav-links {
    display: flex;
    gap: 26px;
    align-items: center
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px
}

.nav-links a:hover {
    color: var(--ink)
}

.nav .btn {
    padding: 10px 18px;
    font-size: 15px;
    min-height: 44px;
    color: #fff
}

@media(max-width:860px) {
    .nav-links a:not(.btn) {
        display: none
    }
    .nav .btn {
        padding: 8px 14px;
        font-size: 13.5px;
        min-height: 38px;
        border-radius: 10px;
        white-space: nowrap;
    }
}

@media(max-width:480px) {
    .logo {
        font-size: 13.5px;
    }
    .nav .btn {
        padding: 6px 10px;
        font-size: 11px;
        min-height: 32px;
        border-radius: 8px;
        gap: 4px;
    }
}

/* hero */
.hero {
    padding: 64px 0 72px;
    overflow: hidden
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center
}

.hero h1 {
    font-size: clamp(30px, 4.6vw, 52px);
    margin: 10px 0 20px
}

.hero h1 .fix {
    position: relative;
    display: inline-block
}

.hero h1 .fix .hand {
    position: absolute;
    top: -.95em;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    font-size: .62em;
    white-space: nowrap
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 30px
}

.chip {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.chip svg {
    flex: none
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center
}

/* polaroid photo */
.photo-frame {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    transform: rotate(2.5deg)
}

.photo-frame .inner {
    background: #fff;
    padding: 14px 14px 56px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(29, 40, 96, .18)
}

.photo-frame img {
    border-radius: 4px;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: top
}

.photo-frame .caption {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: "Caveat", cursive;
    font-weight: 600;
    font-size: 22px;
    color: var(--ink)
}

.tape {
    position: absolute;
    width: 110px;
    height: 34px;
    background: rgba(255, 233, 163, .85);
    top: -16px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08)
}

.badge-free {
    position: absolute;
    right: -18px;
    bottom: -20px;
    transform: rotate(6deg);
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    width: 132px;
    height: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    box-shadow: 0 12px 28px rgba(226, 61, 51, .35);
}

.badge-free b {
    font-family: "Unbounded", sans-serif;
    font-size: 22px
}

/* sections */
section {
    padding: 72px 0
}

.section-head {
    max-width: 720px;
    margin-bottom: 40px
}

/* pain quotes */
.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.quote {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 22px;
    box-shadow: var(--shadow);
    position: relative;
    font-size: 17px
}

.quote::before {
    content: "„";
    font-family: "Unbounded", sans-serif;
    font-size: 40px;
    color: var(--red);
    line-height: 0;
    display: block;
    margin: 56px 0 24px
}

.quote .who {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 600
}

.pain-after {
    margin-top: 30px;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 600;
    max-width: 760px
}

/* services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px
}

.svc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 26px;
    box-shadow: var(--shadow);
    transition: transform .2s ease
}

.svc:hover {
    transform: translateY(-4px)
}

.svc .check {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--red-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px
}

.svc h3 {
    font-size: 18px;
    margin-bottom: 8px
}

.svc p {
    color: var(--ink-soft);
    font-size: 15px
}

.price-strip {
    margin-top: 34px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--r);
    padding: 26px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.price-strip .p {
    font-family: "Unbounded", sans-serif;
    font-size: 26px
}

.price-strip small {
    display: block;
    font-family: "Golos Text";
    font-size: 14px;
    opacity: .75;
    font-weight: 400;
    margin-top: 4px
}

/* how it works — lesson plan */
.plan {
    counter-reset: step;
    display: grid;
    gap: 0;
    position: relative;
    max-width: 820px
}

.step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 22px;
    padding: 26px 0;
    border-bottom: 2px dashed var(--line);
    position: relative
}

.step:last-child {
    border-bottom: 0
}

.step .num {
    counter-increment: step;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: 20px;
}

.step .num::before {
    content: counter(step)
}

.step h3 {
    font-size: 19px;
    margin-bottom: 6px
}

.step p {
    color: var(--ink-soft)
}

.step .hand {
    font-size: 22px
}

/* results */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.res-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 30px;
    box-shadow: var(--shadow)
}

.grade {
    font-family: "Unbounded", sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px
}

.grade .old {
    color: var(--ink-soft);
    position: relative
}

.grade .old::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    top: 50%;
    height: 3px;
    background: var(--red);
    transform: rotate(-6deg)
}

.grade .arrow {
    color: var(--red)
}

.grade .new {
    color: var(--green)
}

.schools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px
}

.school {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13.5px;
    font-weight: 600
}

.res-card p {
    color: var(--ink-soft)
}

/* online */
.online-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px
}

.on-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    box-shadow: var(--shadow)
}

.on-card h3 {
    font-size: 16.5px;
    margin: 12px 0 6px
}

.on-card p {
    font-size: 14.5px;
    color: var(--ink-soft)
}

.on-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #EDF0FB;
    display: flex;
    align-items: center;
    justify-content: center
}

.honesty {
    margin-top: 26px;
    background: var(--red-soft);
    border-left: 4px solid var(--red);
    border-radius: 0 var(--r) var(--r) 0;
    padding: 20px 24px;
    max-width: 820px
}

/* quiz */
#quiz {
    scroll-margin-top: 80px
}

.quiz-shell {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(29, 40, 96, .18);
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
}

.quiz-top {
    background: var(--ink);
    color: #fff;
    padding: 26px 32px
}

.quiz-top h3 {
    font-size: 20px;
    font-family: "Unbounded"
}

.quiz-top p {
    opacity: .8;
    font-size: 14.5px;
    margin-top: 6px
}

.qbar {
    height: 6px;
    background: #2E3B7E
}

.qbar i {
    display: block;
    height: 100%;
    width: 25%;
    background: var(--red);
    transition: width .35s ease
}

.quiz-body {
    padding: 32px
}

.qstep {
    display: none
}

.qstep.active {
    display: block;
    animation: fadeUp .35s ease
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.qstep h4 {
    font-size: clamp(19px, 2.6vw, 23px);
    font-family: "Unbounded";
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3
}

.opts {
    display: grid;
    gap: 12px
}

.opt {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: border-color .15s ease, background .15s ease;
    min-height: 56px;
    text-align: left;
    width: 100%;
    font-family: "Golos Text";
    color: var(--ink);
}

.opt:hover {
    border-color: var(--ink)
}

.opt.selected {
    border-color: var(--red);
    background: var(--red-soft)
}

.opt .dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--ink-soft);
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center
}

.opt.selected .dot {
    border-color: var(--red)
}

.opt.selected .dot::after {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--red)
}

.qnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 26px;
    gap: 12px
}

.qback {
    background: none;
    border: 0;
    color: var(--ink-soft);
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    font-family: "Golos Text";
    padding: 10px
}

.qback:hover {
    color: var(--ink)
}

.qcount {
    font-size: 13.5px;
    color: var(--ink-soft)
}

.field {
    margin-bottom: 16px
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 7px
}

.field input {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: "Golos Text";
    color: var(--ink);
    background: var(--paper);
}

.field input:focus {
    outline: none;
    border-color: var(--ink)
}

.quiz-done {
    text-align: center;
    padding: 20px 0
}

.quiz-done .big {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 14px
}

.quiz-done h4 {
    margin-bottom: 10px
}

.quiz-done p {
    color: var(--ink-soft);
    max-width: 440px;
    margin: 0 auto
}

.err {
    color: var(--red);
    font-size: 14px;
    margin-top: 8px;
    display: none
}

/* about */
.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    align-items: start
}

.diploma {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px
}

.diploma .ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #EDF0FB;
    display: flex;
    align-items: center;
    justify-content: center
}

.diploma h3 {
    font-size: 16px;
    margin-bottom: 4px
}

.diploma p {
    font-size: 14px;
    color: var(--ink-soft)
}

.about-text p {
    margin-bottom: 14px;
    color: var(--ink-soft)
}

.about-text p b {
    color: var(--ink)
}

/* faq */
.faq {
    max-width: 760px
}

details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow)
}

summary {
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 16.5px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px
}

summary::-webkit-details-marker {
    display: none
}

summary::after {
    content: "+";
    font-family: "Unbounded";
    font-size: 20px;
    color: var(--red);
    transition: transform .2s
}

details[open] summary::after {
    transform: rotate(45deg)
}

details .a {
    padding: 0 24px 20px;
    color: var(--ink-soft);
    overflow: hidden;
}

@keyframes faqOpen {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes faqClose {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* final cta */
.final {
    background: var(--ink);
    border-radius: 28px;
    color: #fff;
    padding: clamp(36px, 6vw, 64px);
    text-align: center;
    position: relative;
    overflow: hidden
}

.final h2 {
    color: #fff
}

.final p {
    opacity: .85;
    max-width: 560px;
    margin: 0 auto 28px
}

.final .hand {
    color: var(--mark);
    font-size: 26px
}

footer {
    padding: 36px 0 110px;
    color: var(--ink-soft);
    font-size: 14px
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center
}

footer a {
    color: var(--ink-soft)
}



/* reveal */
.rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease
}

.rv.in {
    opacity: 1;
    transform: none
}

@media(max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px
    }

    .photo-frame {
        max-width: 280px
    }

    .quotes {
        grid-template-columns: 1fr
    }

    .results-grid {
        grid-template-columns: 1fr
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px
    }

    section {
        padding: 52px 0
    }

    .quiz-body {
        padding: 24px 20px
    }

    .hero {
        padding: 40px 0 56px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }

    html {
        scroll-behavior: auto
    }

    .rv {
        opacity: 1;
        transform: none
    }
}

/* ===== MESSENGERS AND SOCIAL LINKS ===== */
.messenger-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.messenger-icons.justify-center {
    justify-content: center;
}

.msgr-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card);
    box-shadow: 0 4px 12px rgba(29, 40, 96, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 1px solid var(--line);
    padding: 0;
    text-decoration: none;
}

.msgr-link img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.msgr-link:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 16px rgba(29, 40, 96, 0.15);
    background: #fff;
}

.hero-messengers {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.messengers-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
}

.nav-messengers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-messengers .msgr-link {
    width: 42px;
    height: 42px;
    box-shadow: none;
    border-color: transparent;
    background: transparent;
}

.nav-messengers .msgr-link img {
    width: 25px;
    height: 25px;
}

.nav-messengers .msgr-link:hover {
    transform: translateY(-2px) scale(1.1);
    background: var(--line);
}

@media(max-width:860px) {
    .nav-messengers {
        display: none;
    }
}

.quiz-alternative {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    text-align: center;
}

.quiz-alternative span {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ink-soft);
}

.final-messengers {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.final-messengers span {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.85;
}

.final-messengers .msgr-link {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.final-messengers .msgr-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.08);
}

/* final form */
.final-form {
    max-width: 680px;
    margin: 32px auto 28px;
}

.final-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: stretch;
}

.final-field input {
    width: 100%;
    height: 100%;
    min-height: 54px;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    font-family: "Golos Text", sans-serif;
    color: var(--ink);
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.final-field input:focus {
    outline: none;
    border-color: var(--mark);
    box-shadow: 0 0 0 3px rgba(255, 233, 163, 0.25);
}

.final-form .btn {
    height: 100%;
    min-height: 54px;
    margin: 0;
    white-space: nowrap;
    padding: 0 28px;
}

.final-form .err {
    color: var(--mark);
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
    font-size: 14.5px;
    display: none;
}

.final-done {
    animation: fadeUp .35s ease
}

@media (max-width: 760px) {
    .final-form {
        margin-top: 24px;
    }
    
    .final-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .final-field input {
        min-height: 50px;
    }
    
    .final-form .btn {
        width: 100%;
        min-height: 50px;
        padding: 14px;
    }

    .review-card.hidden-mobile {
        display: none;
    }
}

/* ===== REVIEWS SECTION & GRID ===== */
#reviews {
    background: transparent;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.review-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.review-card::after {
    content: "🔍";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 32px;
    background: rgba(29, 40, 96, 0.85);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 2;
}

.review-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 16px 36px rgba(29, 40, 96, 0.14);
}

.review-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.review-card img {
    border-radius: calc(var(--r) - 6px);
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fafafa;
    display: block;
    transition: filter 0.25s ease;
}

.review-card:hover img {
    filter: brightness(0.9);
}

.review-card.hidden {
    display: none;
}

.reviews-more-container {
    text-align: center;
    margin-top: 40px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 19, 43, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s, transform 0.2s;
    z-index: 1010;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 500px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-close {
        top: 16px;
        right: 16px;
    }
}

/* ===== Кнопка прокрутки наверх ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 6px 20px rgba(29, 40, 96, 0.12);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    z-index: 99;
    padding: 0;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: 0 8px 24px rgba(226, 61, 51, 0.35);
}

.scroll-top-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.scroll-top-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

@media (max-width: 760px) {
    .scroll-top-btn {
        bottom: 24px;
        right: 20px;
        width: 46px;
        height: 46px;
    }
    
    .scroll-top-btn svg {
        width: 18px;
        height: 18px;
    }
}



