/* =================================================
   HOME — Dark editorial, новый порядок и стиль блоков
   Hero → Categories → Latest → Newsletter
================================================= */

/* ---------- HERO (главная статья) ---------- */
.home-hero {
    margin: 0 0 64px;
    position: relative;
}

.home-hero::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero-card {
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 400px;
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

.hero-content {
    padding: 36px 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-left: 1px solid var(--border);
}

.hero-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.4;
}

@media (max-width: 991px) {
    .hero-content {
        border-left: 0;
        border-top: 1px solid var(--border);
    }
    .hero-content::before {
        width: 3px;
        height: 100%;
        background: linear-gradient(180deg, var(--accent), transparent);
        left: 0;
        top: 0;
    }
}

@media (max-width: 575px) {
    .hero-content {
        padding: 28px 24px;
    }
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.hero-kicker::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(245, 158, 11, 0.3));
    border-radius: 1px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.hero-badge.ad {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted-light);
    border-color: var(--border);
}

.hero-title {
    margin: 0 0 14px;
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--ink-light);
    position: relative;
}

.hero-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 140px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(245, 158, 11, 0.2));
    border-radius: 2px;
    opacity: 0.7;
}

.hero-lede {
    margin: 0 0 20px;
    color: var(--muted-light);
    font-size: 16px;
    line-height: 1.65;
    max-width: 52ch;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero-meta span + span::before {
    content: "·";
    margin: 0 6px;
    color: var(--muted);
}

.hero-meta-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

@media (max-width: 575px) {
    .hero-meta-new {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
}

.hero-meta-value {
    font-size: 13px;
    color: var(--muted-light);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn-primary {
    background: var(--accent);
    color: var(--ink);
    border: none;
    position: relative;
    overflow: hidden;
}

.hero-btn-primary::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn-primary:hover {
    background: var(--accent-hover);
    color: var(--ink);
    text-decoration: none;
    transform: translateY(-1px);
}

.hero-btn-primary span {
    position: relative;
    z-index: 1;
}

.hero-btn-secondary {
    background: transparent;
    color: var(--muted-light);
    border: 1px solid var(--border);
}

.hero-btn-secondary:hover {
    background: var(--bg-elevated);
    color: var(--ink-light);
    text-decoration: none;
    border-color: var(--muted);
}

.hero-media {
    position: relative;
    min-height: 300px;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.hero-media::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-media::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.3;
    z-index: 2;
}

@media (max-width: 991px) {
    .hero-media {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        min-height: 260px;
    }
    .hero-media::after {
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--accent), transparent);
        top: 0;
        right: 0;
    }
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
    transition: transform 0.4s ease;
}

.hero-card:hover .hero-media img {
    transform: scale(1.05);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 991px) {
    .hero-media::after {
        background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    }
}

/* ---------- CATEGORIES (3 раздела — новый вид) ---------- */
.home-cats {
    margin: 0 0 72px;
}

.cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .cats-grid {
        grid-template-columns: 1fr;
    }
}

.cat-block {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}

.cat-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cat-block:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.cat-block:hover::before {
    opacity: 1;
}

.cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.cat-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink-light);
}

.cat-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.cat-more:hover {
    text-decoration: underline;
}

.cat-body {
    padding: 24px;
}

.cat-feature {
    border: 0;
    border-radius: var(--radius-sm);
    padding: 20px;
    background: var(--bg-elevated);
    border-left: 3px solid var(--accent);
    margin-bottom: 24px;
    transition: background 0.2s ease;
}

.cat-feature:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Category feature with image (horizontal) */
.cat-feature-with-img {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 0;
    border-left: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cat-feature-with-img .cat-feature-media {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg);
    position: relative;
}

.cat-feature-with-img .cat-feature-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cat-feature-with-img:hover .cat-feature-media::after {
    opacity: 1;
}

.cat-feature-with-img .cat-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cat-feature-with-img:hover .cat-feature-media img {
    transform: scale(1.08);
}

.cat-feature-with-img .cat-feature-body {
    padding: 18px 20px 20px 0;
}

.cat-feature-with-img .badge {
    margin-bottom: 8px;
}

.cat-feature-with-img h3 {
    margin: 0 0 6px;
}

.cat-feature-with-img p {
    margin: 0;
}

@media (max-width: 575px) {
    .cat-feature-with-img {
        grid-template-columns: 1fr;
    }
    .cat-feature-with-img .cat-feature-media {
        aspect-ratio: 16 / 9;
    }
    .cat-feature-with-img .cat-feature-body {
        padding: 18px 20px 20px 20px;
    }
}

.cat-feature .badge {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cat-feature h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink-light);
}

.cat-feature h3 a {
    color: inherit;
    text-decoration: none;
}

.cat-feature h3 a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.cat-feature p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted-light);
}

.cat-links {
    display: flex;
    flex-direction: column;
}

.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    padding-left: 0;
    color: var(--ink-light);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease, padding-left 0.2s ease;
    position: relative;
}

.cat-link:last-child {
    border-bottom: 0;
}

.cat-link:hover {
    color: var(--accent);
    padding-left: 8px;
    text-decoration: none;
}

.cat-link::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0;
    color: var(--accent);
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-10px);
}

.cat-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.cat-link-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
}

.cat-link-meta {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

/* ---------- LATEST (3 карточки) ---------- */
.home-latest {
    margin: 0 0 72px;
    position: relative;
}

.home-latest::before {
    content: "";
    position: absolute;
    left: -60px;
    top: 100px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    position: relative;
}

.latest-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.latest-head::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 32px;
    background: linear-gradient(180deg, var(--accent), transparent);
    border-radius: 2px;
    opacity: 0.6;
}

@media (max-width: 767px) {
    .latest-head::before {
        display: none;
    }
}

.latest-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink-light);
    margin: 0;
    position: relative;
    display: inline-block;
}

.latest-title::before {
    content: "📚";
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.3;
    filter: grayscale(1);
}

@media (max-width: 767px) {
    .latest-title::before {
        display: none;
    }
}

.latest-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.latest-more:hover {
    text-decoration: underline;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.latest-grid::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.latest-grid-many {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.latest-grid-many::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

@media (max-width: 991px) {
    .latest-grid,
    .latest-grid-many {
        grid-template-columns: 1fr;
    }
}

.latest-card {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.latest-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.latest-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.latest-card:hover::before {
    opacity: 1;
}

/* Card with image on top */
.latest-card-with-img {
    padding: 0;
    min-height: 0;
    overflow: hidden;
}

.latest-card-with-img::before {
    display: none;
}

.latest-card-with-img::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.latest-card-with-img:hover::after {
    opacity: 1;
}

.latest-card-with-img .latest-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-elevated);
    position: relative;
}

.latest-card-with-img .latest-card-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.latest-card-with-img:hover .latest-card-media::before {
    opacity: 1;
}

.latest-card-with-img .latest-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 0;
}

.latest-card-with-img:hover .latest-card-media img {
    transform: scale(1.04);
}

.latest-card-with-img .latest-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
}

.latest-card-with-img .latest-card-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--accent), transparent);
    transition: height 0.3s ease;
}

.latest-card-with-img:hover .latest-card-body::before {
    height: 100%;
}

.latest-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.latest-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
}

.latest-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
    transition: left 0.5s ease;
}

.latest-card:hover .latest-badge::before {
    left: 100%;
}

.latest-badge.ad {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    border: 1px solid var(--border);
}

.latest-title-card {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
    color: var(--ink-light);
}

.latest-title-card a {
    color: inherit;
    text-decoration: none;
}

.latest-title-card a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.latest-title-card a {
    position: relative;
    transition: color 0.2s ease;
}

.latest-title-card a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.latest-title-card a:hover::after {
    width: 100%;
}

.latest-card-with-img .latest-excerpt {
    flex: 1;
}

.latest-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted-light);
    margin: 0 0 20px;
}

.latest-meta {
    margin-top: auto;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.latest-meta span {
    position: relative;
    padding-left: 12px;
}

.latest-meta span:first-child {
    padding-left: 0;
}

.latest-meta span:not(:first-child)::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--muted);
}

/* ---------- NEWSLETTER ---------- */
.home-newsletter {
    padding: 64px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.home-newsletter::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse 5s ease-in-out infinite;
}

.home-newsletter::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 7s ease-in-out infinite;
}

.newsletter-box {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    border: 1px solid var(--border);
    position: relative;
    border-left: 4px solid var(--accent);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
}

@media (max-width: 767px) {
    .home-newsletter {
        padding: 48px 0;
    }
    .newsletter-box {
        padding: 32px 24px;
    }
}

.newsletter-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent);
    position: relative;
}

.newsletter-kicker::before {
    content: "✉";
    font-size: 14px;
    opacity: 0.8;
}

.newsletter-title {
    margin: 0 0 12px;
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink-light);
    position: relative;
    display: inline-block;
}

.newsletter-title::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.newsletter-sub {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted-light);
    max-width: 55ch;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 14px;
}

@media (max-width: 575px) {
    .newsletter-form {
        flex-direction: column;
    }
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--ink-light);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input::placeholder {
    color: var(--muted);
}

.newsletter-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.newsletter-btn {
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--ink);
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.newsletter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.newsletter-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.newsletter-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted-light);
}

.newsletter-consent input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.newsletter-consent a {
    color: var(--accent);
    text-decoration: none;
}

.newsletter-consent a:hover {
    text-decoration: underline;
}

.newsletter-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.newsletter-note a {
    color: var(--accent);
    text-decoration: none;
}

.newsletter-note a:hover {
    text-decoration: underline;
}

.newsletter-success,
.newsletter-error {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}

.newsletter-success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.newsletter-error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.newsletter-teaser {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted-light);
    max-width: 48ch;
    position: relative;
    padding-left: 24px;
}

.newsletter-teaser::before {
    content: "💡";
    position: absolute;
    left: 0;
    top: 24px;
    font-size: 18px;
    opacity: 0.5;
}

/* NEW NEWSLETTER LAYOUT — сохраняем визуальные фишки */
.newsletter-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.newsletter-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    border: 1px solid var(--border);
    position: relative;
    border-top: 4px solid var(--accent);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    overflow: hidden;
}

.newsletter-content::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse 5s ease-in-out infinite;
}

.newsletter-content::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 7s ease-in-out infinite;
}

@media (max-width: 767px) {
    .newsletter-content {
        padding: 40px 28px;
    }
}

.newsletter-icon-badge {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    margin: 0 auto 24px;
    color: var(--accent);
    font-size: 32px;
    position: relative;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

.newsletter-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.newsletter-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent);
}

.newsletter-heading {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 14px;
    color: var(--ink-light);
    position: relative;
    display: inline-block;
}

.newsletter-heading::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

.newsletter-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted-light);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form-new {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.newsletter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.newsletter-input-icon {
    position: absolute;
    left: 18px;
    color: var(--muted);
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

.newsletter-input-new {
    width: 100%;
    padding: 16px 18px 16px 50px;
    font-size: 15px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--ink-light);
    outline: none;
    transition: all 0.2s ease;
}

.newsletter-input-new::placeholder {
    color: var(--muted);
}

.newsletter-input-new:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    background: var(--bg-elevated);
}

.newsletter-input-new:focus + .newsletter-input-icon,
.newsletter-input-new:focus ~ .newsletter-input-icon {
    color: var(--accent);
}

.newsletter-btn-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: var(--ink);
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-btn-new::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.newsletter-btn-new:hover::before {
    width: 400px;
    height: 400px;
}

.newsletter-btn-new:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.newsletter-btn-new i {
    transition: transform 0.2s ease;
}

.newsletter-btn-new:hover i {
    transform: translateX(4px);
}

.newsletter-footer {
    position: relative;
    z-index: 1;
}

.newsletter-consent-new {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted-light);
    cursor: pointer;
}

.newsletter-consent-new input {
    margin-top: 3px;
    accent-color: var(--accent);
    cursor: pointer;
}

.newsletter-consent-new a {
    color: var(--accent);
    text-decoration: none;
}

.newsletter-consent-new a:hover {
    text-decoration: underline;
}

.newsletter-hint {
    margin: 0;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted-light);
    text-align: center;
    position: relative;
    padding-left: 40px;
}

.newsletter-hint::before {
    content: "💡";
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 18px;
    opacity: 0.6;
}
