/* Главная страница (лендинг OPENMAKER).
   Светлая тема: тёмная на главной не применяется — theme_loader.js
   пропускает pathname === '/'. */

/* ---------- Токены главной ---------- */

:root {
    --home-purple: #8000FF;
    --home-purple-light: #B164FD;
    --home-purple-soft: #D084FF;
    --home-purple-pale: #E8D0FF;
    --home-purple-tint: rgba(177, 100, 253, 0.1);
    --home-gradient: linear-gradient(135deg, #8000FF 0%, #B56CFD 100%);
    --home-bg: #F9F6FE;
    --home-card: #ffffff;
    --home-text: #1F1B22;
    --home-text-secondary: #666666;
    --home-text-tertiary: #A3A3A3;
    --home-border: #E9E2F5;
    --home-shadow: 0 8px 24px rgba(128, 0, 255, 0.08);
    --home-shadow-hover: 0 16px 40px rgba(128, 0, 255, 0.16);
    --home-radius: 20px;
    --home-green: #2ECE7A;
    --home-red: #FF6B6B;
}

@font-face {
    font-family: 'Wadik';
    src: url('../fonts/Wadik.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

body[data-page="home"] {
    background-color: var(--home-bg);
    color: var(--home-text);
    font-family: 'Rubik', sans-serif;
}

/* Скрытый текст для скринридеров и SEO (ключи в H1) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Хедер ---------- */

header.home-header {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.home-header.is-stuck {
    position: fixed;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(128, 0, 255, 0.1);
}

.home-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 76px;
}

.home-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
}

.home-header-logo svg {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.home-header-logo span {
    min-width: 0;
    overflow: hidden;
    font-family: 'Wadik', sans-serif;
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

header.home-header.is-stuck .home-header-logo span {
    color: var(--home-text);
}

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

.home-header-nav a {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.home-header-nav a:hover {
    color: #D084FF;
}

header.home-header.is-stuck .home-header-nav a {
    color: var(--home-text-secondary);
}

header.home-header.is-stuck .home-header-nav a:hover {
    color: var(--home-purple);
}

.home-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.home-header-tool {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.home-header-tool:hover {
    color: #D084FF;
}

header.home-header.is-stuck .home-header-tool {
    color: var(--home-text-secondary);
}

header.home-header.is-stuck .home-header-tool:hover {
    color: var(--home-purple);
}

.home-header-btn {
    display: inline-flex;
    align-items: center;
    max-width: 150px;
    height: 42px;
    padding: 0 22px;
    border-radius: 12px;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    background: var(--home-gradient);
    color: #ffffff !important;
    text-align: center;
}

.home-header-btn:hover {
    box-shadow: 0 8px 20px rgba(128, 0, 255, 0.35);
    transform: translateY(-1px);
}

/* Ник в кнопке — единственная часть шапки, которая может быть длинной */
.home-header-btn > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-header-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.home-header-burger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

header.home-header.is-stuck .home-header-burger span {
    background: var(--home-text);
}

header.home-header.menu-open .home-header-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

header.home-header.menu-open .home-header-burger span:nth-child(2) {
    opacity: 0;
}

header.home-header.menu-open .home-header-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Меню лежит вне <header>: backdrop-filter залипшей шапки превращает
   position: fixed внутри неё в привязку к самой шапке и обрезает меню */
.home-mobile-menu {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 890;
    background: #ffffff;
    padding: 24px 20px 40px;
    overflow-y: auto;
}

.home-header.menu-open + .home-mobile-menu {
    display: block;
}

.home-mobile-menu a {
    display: block;
    padding: 15px 4px;
    border-bottom: 1px solid var(--home-border);
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    color: var(--home-text);
    text-decoration: none;
}

.home-mobile-menu .home-header-btn {
    margin-top: 24px;
    justify-content: center;
    height: 50px;
    font-size: 16px;
}

/* ---------- Первый экран (hero) ---------- */

.block-frame {
    background-color: #0E0121;
    width: 100%;
    min-height: 872px;
    font-family: "Rubik";
    margin-bottom: 16px;
    padding-bottom: 56px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    contain: layout paint;
}

.block-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/svg/svg_background.svg);
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
}

.block-content-frame {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 108px;
    position: relative;
    z-index: 3;
}

.block-content-frame a {
    text-decoration: none;
}

.title {
    font-family: 'Wadik';
    font-size: 92px;
    color: #ffffff;
    font-weight: 300;
    text-align: left;
    margin-top: 24px;
    margin-block-end: 8px;
    user-select: none;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.title strong {
    color: #8000FF;
    font-weight: 300;
}

.title-ghost {
    visibility: hidden;
}

.title-reveal {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    white-space: nowrap;
}

.title-caret {
    display: inline-block;
    color: #8000FF;
    font-weight: 300;
    margin-left: 4px;
    animation: title-caret-blink 1s steps(1, end) infinite;
}

@keyframes title-caret-blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.work-selection-block-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 1200px;
    margin: 11% auto 0;
    border: none;
    outline: none;
    overflow: visible;
}

.work-selection-block {
    width: 100%;
    padding: 38px 90px;
    background-color: rgba(18, 10, 34, 0.72);
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 38px;
    border: 1px solid rgba(177, 100, 253, 0.32);
    user-select: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    position: relative;
    z-index: 1;
    will-change: backdrop-filter;
    contain: layout paint;
}

.work-selection-title {
    font-family: "Unbounded";
    font-size: 29px;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    margin: 0 0 32px 0;
    user-select: none;
}

.work-type-dropdown {
    display: none;
    position: relative;
    width: 100%;
    margin-bottom: 32px;
}

.work-type-dropdown-btn {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid #B164FD;
    background: rgba(15, 10, 30, 0.6);
    color: #E8D0FF;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
}

.work-type-dropdown-btn:hover {
    border-color: #D084FF;
}

.work-type-dropdown-btn.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.work-type-dropdown-btn #work-type-dropdown-text {
    text-align: center;
    width: 100%;
}

.work-type-dropdown-btn .dropdown-arrow {
    position: absolute;
    right: 20px;
    width: 12px;
    height: 8px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    pointer-events: none;
}

.work-type-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.work-type-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1F1B22;
    border: 1px solid #403946;
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.work-type-dropdown-menu.active {
    display: block;
}

.work-type-dropdown-item {
    display: block;
    width: 100%;
    padding: 16px 20px;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-top: 1px solid #403946;
}

.work-type-dropdown-item:last-child {
    border-bottom: none;
}

.work-type-dropdown-item:hover {
    background: #26222B;
    color: #ffffff;
}

.work-type-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 32px;
}

.work-type-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #B164FD;
    background: rgba(15, 10, 30, 0.6);
    color: #E8D0FF;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.work-type-btn .star-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-bottom: 0;
    object-fit: contain;
    display: block;
}

.work-type-btn:hover {
    background: rgba(177, 100, 253, 0.2);
    border-color: #D084FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(177, 100, 253, 0.3);
}

.work-type-btn.active {
    background: linear-gradient(135deg, rgba(177, 100, 253, 0.4) 0%, rgba(128, 0, 255, 0.3) 100%);
    border: 2px solid #B56CFD;
    color: #ffffff;
    box-shadow:
        0 0 20px rgba(177, 100, 253, 0.4),
        inset 0 0 20px rgba(177, 100, 253, 0.1);
}

.topic-input-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.topic-input-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.topic-input-container .pencil-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    z-index: 1;
    pointer-events: none;
}

.topic-input {
    width: 100%;
    height: 56px;
    padding: 0 20px 0 48px;
    border-radius: 12px;
    border: 1px solid #BF9FDF;
    background: #0f0a1ed9;
    color: #ffffff;
    font-family: "Rubik", sans-serif;
    font-size: 18px;
    font-weight: 300;
    outline: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-input::placeholder {
    color: #f0c9ff;
}

footer.site-footer{
    background: radial-gradient(60% 120% at 50% -10%, rgba(128, 0, 255, 0.25) 0%, rgba(14, 1, 33, 0) 60%), linear-gradient(180deg, #0E0121 0%, #150A2A 100%);
}

.topic-input:focus {
    border-color: #D084FF;
    box-shadow: 0 0 20px rgba(177, 100, 253, 0.3);
}

.topic-input.error {
    border-color: #ffa3a3;
}

.topic-input-error {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    color: #ff9a9a;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 0 4px;
    pointer-events: none;
}

.next-button {
    min-width: 140px;
    height: 56px;
    padding: 0 24px;
    border-radius: 12px;
    border: none;
    background: #BF9FDF;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-button:hover {
    background: #5f4d71;
}

.next-button:active {
    transform: translateY(0);
}

.text-next {
    transform: translateX(-27px);
}

.next-button-icon {
    transform: translateX(-5px);
    display: none;
}

/* Кросс-линк на бесплатный детектор под формой */
.hero-tool-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #B164FD;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-tool-link:hover {
    color: #D084FF;
}

.blocks-works-child:not(:first-child) {
    margin-left: 10px;
}

.blocks-works-child {
    color: #ffffff;
    font-family: "Inter";
    font-size: 14px;
    border-radius: 17px;
    border: 1px solid rgba(191, 159, 223, 0.7);
    background: rgba(30, 18, 52, 0.8);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    height: 33px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.blocks-works-child span {
    transform: translateX(-20px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.blocks-works-child.active {
    background: #BF9FDF;
    border: 2px solid #BF9FDF;
    color: #1F1B22;
    box-shadow:
        0 0 20px rgba(177, 100, 253, 0.4),
        inset 0 0 20px rgba(177, 100, 253, 0.1);
}

@media (min-width: 626px) {
    .blocks-works-child {
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .blocks-works-child::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(190, 104, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }

    .blocks-works-child:hover::before {
        left: 100%;
    }

    .blocks-works-child:hover {
        transform: translateY(-3px) scale(1.05);
        background-color: rgba(120, 88, 168, 0.55);
        border-color: #D8BEFF;
        color: #ffffff;
        box-shadow:
            0 8px 25px rgba(190, 104, 255, 0.45),
            0 0 20px rgba(190, 104, 255, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    .blocks-works-child img {
        transition: all 0.4s ease;
        filter: brightness(1);
    }

    .blocks-works-child:hover img {
        transform: scale(1.1) rotate(5deg);
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(190, 104, 255, 0.6));
    }

    .blocks-works-child:hover span {
        transform: translateX(-15px);
        text-shadow: 0 0 10px rgba(240, 230, 255, 0.5);
    }
}

/* ---------- Общие элементы секций ---------- */

.home-section {
    padding: 72px 0;
}

.home-section-sub {
    max-width: 720px;
    margin: 14px auto 0;
    text-align: center;
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--home-text-secondary);
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 32px;
    border-radius: 14px;
    border: none;
    background: var(--home-gradient);
    color: #ffffff;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(128, 0, 255, 0.35);
}

.home-btn--ghost {
    background: transparent;
    color: var(--home-purple);
    border: 1.5px solid var(--home-purple-light);
}

.home-btn--ghost:hover {
    background: var(--home-purple-tint);
    box-shadow: none;
}

.home-btn--light {
    background: #ffffff;
    color: var(--home-purple);
}

.home-btn--light:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* ---------- Полоса доверия ---------- */

.home-trust {
    padding: 40px 0 8px;
}

.home-trust-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-trust-item {
    text-align: center;
    padding: 24px 14px;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: 18px;
    box-shadow: var(--home-shadow);
}

.home-trust-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    background: var(--home-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.home-trust-label {
    margin-top: 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: var(--home-text-secondary);
}

/* ---------- Как это работает ---------- */

.home-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.home-step {
    position: relative;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    padding: 28px 22px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
}

.home-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--home-gradient);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.home-step h3 {
    margin: 0 0 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--home-text);
}

.home-step p {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--home-text-secondary);
}

.home-video-wrapper {
    max-width: 860px;
    margin: 44px auto 0;
}

.home-video {
    display: block;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(128, 0, 255, 0.18);
    background: linear-gradient(135deg, #1a0b33 0%, #2d1454 100%);
    cursor: pointer;
}

/* ---------- Что входит в работу ---------- */

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.home-feature {
    display: flex;
    gap: 14px;
    padding: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: 16px;
    box-shadow: var(--home-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--home-shadow-hover);
}

.home-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--home-purple-tint);
    color: var(--home-purple);
}

.home-feature-icon svg {
    width: 22px;
    height: 22px;
}

.home-feature h3 {
    margin: 0 0 4px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--home-text);
}

.home-feature p {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--home-text-secondary);
}

.home-feature-link {
    color: var(--home-purple);
    font-weight: 500;
    text-decoration: none;
}

.home-feature-link:hover {
    text-decoration: underline;
}

/* ---------- Примеры работ ---------- */

.home-examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.home-example {
    display: flex;
    flex-direction: column;
    background: var(--home-card);
    border: 2px solid rgba(128, 0, 255, 0.35);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-example:hover {
    transform: translateY(-8px);
    border-color: var(--home-purple-light);
    box-shadow: var(--home-shadow-hover);
}

/* Плашка с тематической иконкой: иконки белые, поэтому подложка —
   фирменный градиент */
.home-example-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: var(--home-gradient);
}

.home-example-icon img {
    width: auto;
    height: 81px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.home-example:hover .home-example-icon img {
    transform: scale(1.08);
}

.home-example-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 16px 20px;
}

.home-example-tag {
    align-self: center;
    margin-bottom: 10px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--home-purple-tint);
    color: var(--home-purple);
    font-family: 'Rubik', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
}

.home-example h3 {
    margin: 0 0 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--home-text);
}

.home-example p {
    margin: 0 0 16px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--home-text-secondary);
}

.home-example .home-btn {
    margin-top: auto;
    width: 100%;
    height: 46px;
    font-size: 14px;
}

/* ---------- Сравнение стоимости ---------- */

.home-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    align-items: stretch;
}

.home-compare-card {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
}

.home-compare-card--own {
    border: 2px solid var(--home-purple);
    box-shadow: 0 16px 48px rgba(128, 0, 255, 0.2);
    position: relative;
}

.home-compare-card-head {
    margin-bottom: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--home-text-secondary);
    text-align: center;
}

.home-compare-card--own .home-compare-card-head {
    color: var(--home-purple);
}

.home-compare-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-compare-list li {
    position: relative;
    padding-left: 28px;
    font-family: 'Rubik', sans-serif;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--home-text);
}

.home-compare-list li::before {
    content: "";
    position: absolute;
    left: 0;
}

/* Фиолетовая галочка: рисуется бордерами — вид не зависит от шрифта */
.home-compare-list li.ok::before {
    top: 0.4em;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--home-purple);
    border-bottom: 2px solid var(--home-purple);
    border-radius: 1px;
    transform: rotate(-45deg);
}

.home-compare-list li.no {
    color: var(--home-text-secondary);
}

/* Серый прочерк */
.home-compare-list li.no::before {
    top: 0.85em;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--home-text-tertiary);
}

/* ---------- Инструменты ---------- */

.home-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.home-tool {
    display: flex;
    flex-direction: column;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-tool:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
}

/* Карточка «Сделать работу» — главный CTA блока */
.home-tool--primary {
    border: 2px solid var(--home-purple);
    box-shadow: 0 16px 48px rgba(128, 0, 255, 0.16);
}

.home-tool--primary:hover {
    box-shadow: 0 20px 56px rgba(128, 0, 255, 0.24);
}

.home-tool-tag {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--home-purple-tint);
    color: var(--home-purple);
    font-family: 'Rubik', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
}

.home-tool-tag--free {
    background: rgba(46, 206, 122, 0.12);
    color: #1D9E5A;
}

.home-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: var(--home-gradient);
}

/* Иконки-исходники чёрные: осветляем их до белого под градиентную плашку */
.home-tool-icon img {
    width: auto;
    height: 81px;
    filter: brightness(0) invert(1) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.home-tool:hover .home-tool-icon img {
    transform: scale(1.08);
}

.home-tool-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 26px;
}

.home-tool h3 {
    margin: 0 0 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--home-text);
}

.home-tool p {
    margin: 0 0 20px;
    font-family: 'Rubik', sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--home-text-secondary);
}

.home-tool .home-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ---------- Цены ---------- */

.home-prices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.home-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 22px;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
}

.home-price-card--hit {
    border: 2px solid var(--home-purple);
}

.home-price-hit {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 999px;
    background: var(--home-gradient);
    color: #ffffff;
    font-family: 'Rubik', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.home-price-card h3 {
    margin: 0 0 6px;
    font-family: 'Rubik', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--home-text);
}

.home-price-desc {
    font-family: 'Rubik', sans-serif;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--home-text-tertiary);
    min-height: 40px;
}

.home-price-value {
    margin: 16px 0 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    background: var(--home-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.home-price-note {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    color: var(--home-text-secondary);
}

.home-price-pages {
    margin: 12px 0 20px;
    font-family: 'Rubik', sans-serif;
    font-size: 13.5px;
    color: var(--home-text-tertiary);
}

.home-price-card .home-btn {
    margin-top: auto;
    width: 100%;
    height: 46px;
    font-size: 15px;
}

.home-prices-foot {
    max-width: 760px;
    margin: 28px auto 0;
    padding: 16px 24px;
    border-radius: 16px;
    background: var(--home-purple-tint);
    border: 1px solid rgba(177, 100, 253, 0.3);
    text-align: center;
    font-family: 'Rubik', sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--home-text);
}

.home-prices-foot b {
    color: var(--home-purple);
}

/* ---------- Отзывы ---------- */

.home-reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 0;
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    color: var(--home-text-secondary);
}

.home-reviews-summary b {
    color: var(--home-text);
    font-size: 20px;
}

.home-reviews-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.home-review {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
}

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

.home-stars {
    position: relative;
    display: inline-block;
    font-size: 17px;
    letter-spacing: 2px;
    color: #E2D6F5;
    margin-bottom: 12px;
    user-select: none;
}

.home-stars-fill {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #FFB800;
}

.home-review-text {
    margin: 0 0 18px;
    font-family: 'Rubik', sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--home-text);
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-review-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.home-review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--home-gradient);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.home-review-name {
    display: block;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--home-text);
}

.home-review-note {
    display: block;
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    color: var(--home-text-tertiary);
}

.home-review-chip {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--home-purple-tint);
    color: var(--home-purple);
    font-family: 'Rubik', sans-serif;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.home-review-shot {
    margin-top: 16px;
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--home-purple-light);
    background: transparent;
    color: var(--home-purple);
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.home-review-shot:hover {
    background: var(--home-purple-tint);
}

.home-reviews-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Модалка скриншота отзыва */
.home-shot-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.home-shot-modal.active {
    display: flex;
}

.home-shot-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.home-shot-modal img {
    position: relative;
    max-width: min(500px, 92vw);
    max-height: 86vh;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.home-shot-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.home-shot-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ---------- FAQ ---------- */

.home-faq-list {
    max-width: 860px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-faq-item {
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: 16px;
    box-shadow: var(--home-shadow);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.home-faq-item.open {
    border-color: var(--home-purple-light);
}

.home-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Rubik', sans-serif;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--home-text);
}

.home-faq-q svg {
    flex-shrink: 0;
    width: 14px;
    height: 9px;
    transition: transform 0.3s ease;
    color: var(--home-purple);
}

.home-faq-item.open .home-faq-q svg {
    transform: rotate(180deg);
}

.home-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.home-faq-a-inner {
    padding: 0 24px 22px;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--home-text-secondary);
}

/* ---------- Финальный CTA ---------- */

.home-cta {
    padding: 40px 0 84px;
}

.home-cta-inner {
    position: relative;
    overflow: hidden;
    padding: 64px 40px;
    border-radius: 32px;
    background: linear-gradient(120deg, #8000FF 0%, #5A00C8 55%, #3E00BA 100%);
    text-align: center;
    box-shadow: 0 24px 64px rgba(128, 0, 255, 0.35);
}

.home-cta-inner::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.home-cta-inner::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.home-cta h2 {
    position: relative;
    margin: 0 0 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.home-cta p {
    position: relative;
    max-width: 620px;
    margin: 0 auto 30px;
    font-family: 'Rubik', sans-serif;
    font-size: 16.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.home-cta-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.home-cta-link {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home-cta-link:hover {
    color: #E8D0FF;
}

/* ---------- Липкая мобильная кнопка ---------- */

.home-sticky-cta {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 850;
    align-items: center;
    justify-content: center;
    height: 54px;
    border-radius: 16px;
    background: var(--home-gradient);
    color: #ffffff;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(128, 0, 255, 0.4);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.home-sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ---------- Модалка подписки ---------- */

.subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.subscription-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.subscription-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

.subscription-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.subscription-modal-close:hover {
    color: #8000FF;
}

.subscription-modal-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.subscription-modal-logo img {
    width: 96px;
    height: 96px;
}

.subscription-modal-title {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin: 0 0 6px 0;
}

.subscription-modal-description {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 400;
    color: #2B2B2B;
    text-align: center;
    margin: 0 0 20px 0;
}

.subscription-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subscription-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 9px;
    text-decoration: none;
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    position: relative;
}

.subscription-btn-icon {
    position: absolute;
    left: 20px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.subscription-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.subscription-btn:active {
    transform: translateY(0);
}

.subscription-btn-vk {
    background: linear-gradient(90deg, #0077FF 0%, #0051D5 100%);
}

.subscription-btn-telegram {
    background: #25A2E0;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

header.home-header.is-stuck {
    animation: headerSlideDown 0.3s ease;
}

/* ---------- Появление секций при скролле ---------- */

/* Скрываем блоки только когда JS доступен (html.js-home): без скрипта
   секции остаются видимыми */
html.js-home .home-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js-home .home-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js-home .home-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .title-caret {
        animation: none;
    }

    .home-btn,
    .home-step,
    .home-example,
    .home-tool,
    .home-price-card {
        transition: none;
    }

    header.home-header.is-stuck {
        animation: none;
    }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1200px) {
    .block-frame {
        padding-left: 20px;
        padding-right: 20px;
    }

    .blocks-works-child {
        margin-top: 12px;
    }

    .next-button,
    .topic-input {
        height: 46px;
    }

    .work-type-buttons {
        margin-bottom: 24px;
    }

    .work-selection-block-wrapper {
        width: 868px;
        margin: 14% auto 0;
    }

    .work-selection-block {
        width: 100%;
        padding: 42px 100px;
    }

    .work-selection-title {
        font-size: 26px;
        margin: 0 0 20px 0;
    }

    .title {
        font-size: 71px;
    }

    .home-examples-grid,
    .home-prices-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-prices-grid .home-price-card:last-child {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .title {
        font-size: 66px;
    }

    .home-header-nav {
        display: none;
    }

    .home-header-tool {
        display: none;
    }

    .home-header-burger {
        display: flex;
    }

    .home-header-logo svg {
        width: 34px;
        height: 34px;
    }

    .home-header-logo span {
        font-size: 17px;
    }

    .home-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-trust-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-compare-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-cta h2 {
        font-size: 28px;
    }
}

@media (max-width: 946px) {
    .work-selection-block-wrapper {
        width: 100%;
    }

    .work-selection-block {
        width: 100%;
        padding: 42px 55px;
    }
}

@media (max-width: 768px) {
    .block-frame {
        min-height: 720px;
    }

    .block-content-frame {
        padding-top: 92px;
    }

    .title {
        font-size: 51px;
        margin-top: 16px;
    }

    .blocks-works-child {
        margin-top: 7px;
    }

    .work-selection-title {
        font-size: 24px;
    }

    .work-type-buttons {
        gap: 8px;
        margin-bottom: 24px;
    }

    .work-type-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .work-selection-block-wrapper {
        margin: 64px auto 0;
        position: relative;
    }

    .work-selection-block {
        height: auto;
    }

    .home-section {
        padding: 48px 0;
    }

    .home-section-sub {
        font-size: 15.5px;
    }

    .home-tools-grid {
        grid-template-columns: 1fr;
    }

    .home-reviews-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-cta-inner {
        padding: 44px 24px;
        border-radius: 24px;
    }

    .home-cta h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .home-header-inner {
        gap: 12px;
    }

    .home-header-logo {
        gap: 8px;
    }

    .home-header-logo svg {
        width: 32px;
        height: 32px;
    }

    .home-header-logo span {
        font-size: 15px;
        letter-spacing: 0.3px;
    }

    .home-header-actions {
        gap: 10px;
    }

    .home-header-btn {
        height: 40px;
        padding: 0 16px;
        font-size: 14px;
    }

    .home-header-burger {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .work-selection-block-wrapper {
        margin: 0 auto 0;
        position: relative;
    }

    .next-button:hover {
        background: #302a35;
    }

    .next-button-icon {
        transform: translateX(-5px);
        display: block;
    }

    .work-type-dropdown-btn #work-type-dropdown-text {
        font-size: 18px;
    }

    .work-type-dropdown-btn {
        border: 1px solid #513867;
        color: #ffffff;
        height: 46px;
    }

    .topic-input-container {
        width: 100%;
    }

    .topic-input-container .pencil-icon {
        display: none;
    }

    .work-type-dropdown {
        display: block;
        margin-bottom: 16px;
    }

    .topic-input-wrapper {
        flex-direction: column;
    }

    .next-button {
        width: 100%;
    }

    .work-selection-block {
        padding: 32px 16px;
        margin: 0 auto;
    }

    .work-selection-title {
        margin-bottom: 30px;
    }

    .work-type-buttons {
        gap: 6px;
        margin-bottom: 20px;
    }

    .work-type-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .work-type-btn .star-icon {
        width: 14px;
        height: 14px;
    }

    .topic-input {
        height: 46px;
        font-size: 18px;
        padding: 0;
        border: 1px solid #513867;
        color: #ffffff;
        text-align: center;
    }

    .topic-input-container .pencil-icon {
        left: 12px;
        width: 18px;
        height: 18px;
    }

    .topic-input-error {
        font-size: 12px;
        padding: 0 4px;
        margin-top: 4px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
    }

    .next-button {
        height: 48px;
        font-size: 16px;
        background-color: #6339838c;
        border: 1px solid #BF9FDF;
        margin-top: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .title {
        font-size: 28px;
        font-weight: 400;
    }

    .block-frame {
        background-color: #100028;
        min-height: 640px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow: hidden;
        padding-left: 5px;
        padding-right: 5px;
    }

    .block-frame::before {
        background-position: center;
    }

    .blocks-works-child {
        border: none;
        background-color: transparent;
    }

    .blocks-works-child img {
        margin-left: -50px;
    }

    .home-trust-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .home-trust-value {
        font-size: 26px;
    }

    .home-steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-features-grid {
        grid-template-columns: 1fr;
    }

    .home-examples-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-prices-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Отзывы на мобильных — горизонтальная свайп-карусель */
    .home-reviews-list {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        margin: 32px -20px 0;
        padding: 4px 20px 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .home-reviews-list::-webkit-scrollbar {
        display: none;
    }

    .home-review {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .home-review--hidden {
        display: flex;
    }

    .home-reviews-more {
        display: none;
    }

    .home-faq-q {
        padding: 16px 18px;
        font-size: 15px;
    }

    .home-faq-a-inner {
        padding: 0 18px 18px;
        font-size: 14px;
    }

    .home-cta {
        padding: 20px 0 64px;
    }

    .home-cta-actions {
        flex-direction: column;
        gap: 12px;
    }

    .home-cta-actions .home-btn {
        width: 100%;
    }

    .home-sticky-cta {
        display: flex;
    }

    .subscription-modal-description {
        font-size: 14px;
    }

    .subscription-modal-logo svg {
        width: 72px;
        height: 72px;
    }

    .subscription-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    /* На узких экранах в шапке остаётся только знак: слово не помещается */
    .home-header-logo span {
        display: none;
    }

    .home-trust-value {
        font-size: 22px;
    }

    .home-trust-label {
        font-size: 12.5px;
    }

    .home-review {
        flex: 0 0 88%;
    }

    .subscription-btn-icon {
        position: absolute;
        left: 12px;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .subscription-modal-content {
        padding: 32px 12px;
    }
}
