/*
Theme Name: KaliningradFirst Light
Author: A/Y & Gemini AI
Description: Легкая и быстрая тема для новостного портала.
Version: 2.1
Text Domain: kaliningradfirst.ru
*/
@media (max-width: 768px) {
.money-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.card-thumb {
    height: 200px;
}
}

@media (max-width: 1024px) {
.header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 20px #0000001a;
    border-top: 1px solid #eee;
    z-index: 9999;
}

.header-nav.is-open {
    display: block!important;
}

.header-nav ul {
    flex-direction: column;
    gap: 0;
}

.header-nav li {
    border-bottom: 1px solid #f1f5f9;
}

.header-nav a {
    display: block;
    padding: 15px 0;
}

.header-right {
    display: none!important;
}

.menu-toggle {
    display: flex;
}

.mobile-search-only {
    display: block !important;
    position: relative;
    width: 100% !important;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.mobile-search-only::before {
    content: 'search';
    font-family: 'Material Icons';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 20px;
    z-index: 5;
    pointer-events: none;
}

.mobile-search-only input {
    width: 100% !important;
    padding: 14px 15px 14px 45px !important;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    display: block;
    outline: none;
    -webkit-appearance: none;
}

.mobile-search-only input:focus {
    background: #f8fafc;
    border-color: var(--accent);
}

.main-grid {
    flex-direction: column;
}

.sidebar-recent {
    width: 100%;
    flex: none;
    position: static;
}

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

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

.featured-magazine-grid {
    flex-direction: column;
}

.magazine-main {
    flex: none;
}

.energy-band {
    width: auto;
    left: 0;
    right: 0;
    margin-left: -20px;
    margin-right: -20px;
}
}

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

.post-title {
    font-size: 24px;
    font-family: var(--fira);
}

.post-entry {
    font-size: 16px;
}
}

@media (max-width: 768px) {
.footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.footer-links {
    justify-content: center;
    gap: 15px;
}

html,body {
    overflow-x: hidden;
}

.container {
    padding-left: 15px!important;
    padding-right: 15px!important;
    width: 100%!important;
    box-sizing: border-box!important;
}

.energy-band {
    width: auto!important;
    margin-left: -15px!important;
    margin-right: -15px!important;
    left: auto!important;
    right: auto!important;
    padding: 40px 15px!important;
}

.energy-row {
    display: block!important;
}

.featured-magazine-grid,.main-grid,.money-grid {
    display: block!important;
    width: 100%!important;
}

.money-card,.energy-card,.mag-list-item {
    width: 100%!important;
    margin-bottom: 30px!important;
}

.card-thumb img,.energy-thumb img,.main-post-thumb img,.mag-list-thumb img {
    width: 100%!important;
    height: auto!important;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

.main-post h2 {
    font-size: 22px!important;
    font-family: var(--fira);
    line-height: 1.3;
}

.sidebar-recent {
    position: static!important;
    width: 100%!important;
}
}

@media (max-width: 768px) {
.realty-grid {
    flex-direction: column;
    height: auto;
}

.realty-main {
    height: 300px;
}

.realty-overlay h4 {
    font-size: 18px;
    font-family: var(--fira);
}

.realty-card.small {
    flex-direction: column;
    height: auto;
}
}

@media (max-width: 768px) {
.post-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.post-share {
    width: 100%;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px dashed #f1f5f9;
}
}

@media (max-width: 768px) {
.footer-top {
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.footer-nav {
    flex-wrap: wrap;
    justify-content: center;
}

.footer-brand {
    flex-direction: column;
}
}

@media (max-width: 768px) {
.about-container {
    padding: 25px;
}

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

@media (max-width: 768px) {
.back-to-top {
    top: auto;
    bottom: 30px;
    transform: translateY(0) translateX(100px);
}

.back-to-top.show {
    transform: translateY(0) translateX(0);
}
}

@media (max-width: 768px) {
.archive-post-item {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.archive-post-thumb {
    flex: none;
    max-width: 100%;
}

.archive-post-thumb img {
    height: 200px;
}
}

@media (max-width: 768px) {
.footer-social {
    justify-content: center;
    margin-top: 15px;
}
}

@media (max-width: 992px) {
.header-socials {
    display: none;
}
}

@media (max-width: 640px) {
.tg-subscribe-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.tg-btn {
    width: 100%;
}
}

@media (max-width: 1024px) {
.energy-row {
    grid-template-columns: repeat(2,1fr);
}
}

@media (max-width: 640px) {
.energy-row {
    grid-template-columns: 1fr;
}
}

@media (max-width: 992px) {
.featured-magazine-grid {
    grid-template-columns: 1fr;
}
}

@media (max-width: 1100px) {
.realty-clean-grid {
    grid-template-columns: repeat(2,1fr);
}
}

@media (max-width: 640px) {
.realty-clean-grid {
    grid-template-columns: 1fr;
}
}

@media (max-width: 480px) {
.social-btn span {
    display: none;
}

.social-btn {
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.social-btn i {
    margin: 0;
}
}

@media (max-width: 768px) {
.footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    flex-direction: column;
    margin: 0 auto;
}

.footer-social {
    margin: 0 auto;
}
}

@media (max-width: 768px) {
.nav-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: #ffffff;
    padding: 10px 0 !important;
}

.nav-list.is-open {
    display: flex !important;
}

.nav-list li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
}

.nav-list > li > a {
    padding: 12px 20px !important;
    font-size: 16px;
    justify-content: 间;
}

.nav-list .sub-menu {
    display: block !important;
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border-top: none !important;
    background: #f8fafc;
    padding: 0 !important;
}

.nav-list .sub-menu li a {
    padding: 10px 20px 10px 40px !important;
    font-size: 14px;
    border-bottom: none;
}

.nav-list .menu-item-has-children > a::after {
    display: none !important;
}
}

@media (max-width: 480px) {
.social-btn span {
    display: none;
}

.social-btn {
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.social-btn i {
    margin: 0;
}
}

@media (max-width: 600px) {
.tg-subscribe-box {
    flex-direction: column;
    text-align: center;
}

.tg-icon {
    margin: 0 0 15px 0;
}

.tg-btn {
    margin: 15px 0 0 0;
    width: 100%;
}
}

@media (max-width: 600px) {
.footer-social {
    gap: 25px;
    justify-content: flex-start;
}

.social-link span {
    display: none;
}

.social-link i {
    font-size: 22px;
}
}

:root {
    --fira: 'Fira Sans',sans-serif;
    --lora: Lora,serif;
    --accent: #08c;
    --text-dark: #222;
    --bg-light: #f8fafc;
    --grey-text: #64748b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--fira);
    color: var(--text-dark);
    line-height: 1.5;
    background: #fff;
    overflow-x: hidden;
}

h2, h3, h4, h5 {
    font-family: var(--fira);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: .2s;
}

a:hover {
    color: var(--accent);
}

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

.site-header {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    background: #fff;
    margin-bottom: 40px;
    position: relative;
    z-index: 999;
}

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

.header-logo img {
    width: 320px;
    height: auto;
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav a {
    font-weight: 600;
    font-family: var(--fira);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-socials {
    display: flex;
    gap: 8px;
    margin-right: 15px;
    align-items: center;
}

.soc-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    color: var(--grey-text);
}

.soc-item.vk:hover {
    background: #4c75a3;
    color: #fff;
}

.soc-item.tg:hover {
    background: #08c;
    color: #fff;
}

.soc-item.fb:hover {
    background: #1877f2;
    color: #fff;
}

.header-search form {
    display: flex;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    align-items: center;
    border: 1px solid #cbd5e1;
    transition: border-color .2s;
}

.header-search input {
    border: none!important;
    background: transparent;
    outline: none!important;
    width: 120px;
    font-size: 14px;
    padding: 6px;
}

.header-search button {
    border: none;
    background: none;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    z-index: 10000;
    position: relative;
}

.mobile-search-only {
    display: none;
}

.main-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.category-block {
    flex: 1;
    min-width: 0;
}

.sidebar-recent {
    flex: 0 0 300px;
    width: 300px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    font-family: var(--fira);
    text-transform: uppercase;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    margin: 0 0 25px;
}

.recent-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    text-decoration: none!important;
    transition: all .3s ease;
}

.recent-thumb {
    flex: 0 0 90px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    width: 80px;
    flex-shrink: 0;
}

.recent-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

.recent-text time,.breadcrumb {
    font-size: 11px;
    font-weight: 300;
    color: var(--grey-text);
}

.recent-text h4 {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    font-family: var(--fira);
    font-weight: 300;
    color: #1f201d;
    transition: color .2s ease;
}

.money-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
    margin-top: 20px;
}

.card-thumb {
    position: relative;
    height: 160px;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white,black);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(0.25,1,0.5,1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffffe6;
    backdrop-filter: blur(4px);
    color: #1e293b;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 4px #0000001a;
}

.card-body {
    padding: 15px 5px;
}

.card-date {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 500;
}

.money-card h4 {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.4;
    color: #1e293b;
    transition: color .2s;
    font-weight: 700;
}

.money-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px #0000000d;
    border-color: #e2e8f0;
    background-color: #f8fafc;
}

.money-card:hover img {
    transform: scale(1.05) translateZ(0);
}

.money-card:hover h4 {
    color: var(--accent,#229ED9);
}

.post-meta, .post-date {
    font-size: 11px;
    color: var(--grey-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--fira);
}

.post-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 600;
    font-family: var(--fira);
}

.post-entry {
    font-family: var(--lora);
    font-size: 16.28px;
    line-height: 1.6;
    color: #333;
}

.post-entry p {
    margin-bottom: 20px;
}

.post-entry p:not(:has(img)):not(:has(figure)):first-of-type {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.5;
    color: #1a1e23;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.post-entry p:has(img) {
    font-weight: normal;
    font-size: 16.28px;
}

.post-featured-image img {
    border-radius: 8px;
    width: 100%;
}

.post-entry a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.post-entry a:hover {
    color: #1d4ed8;
    text-decoration-color: #1d4ed8;
}

.post-entry a:has(img),
.post-entry a.button {
    text-decoration: none;
}

.energy-band {
    background: #cbd5e1;
    color: #1f201d;
    padding: 60px 0;
    margin: 60px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.energy-band .section-title {
    color: #1f201d;
    border-left-color: #94a3b8;
}

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

.energy-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: transform .6s cubic-bezier(0.25,1,0.5,1);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.energy-card h4 {
    font-size: 15px;
    line-height: 1.3;
    margin: 0;
}

.featured-magazine-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1.5fr 1fr;
    margin-top: 20px;
}

.magazine-main {
    flex: 0 0 60%;
}

.main-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform .6s ease;
}

.main-post h2 {
    font-size: 28px;
    margin: 20px 0 10px;
    font-weight: 600;
    font-family: var(--fira);
}

.magazine-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mag-list-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none!important;
    transition: all .2s ease;
}

.mag-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.site-footer {
    background: #f8fafc;
    color: #475569;
    padding: 50px 0 30px;
    margin-top: 80px;
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
    background-color: #f0f7ff;
    line-height: 1.6;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-info p {
    color: #fff;
    font-weight: 300;
    font-size: 16px;
    font-family: var(--fira);
    margin: 0 0 10px;
}

.footer-info small {
    display: block;
    line-height: 1.4;
    max-width: 400px;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a1a1a1;
    transition: color .3s;
    font-family: var(--fira);
}

.footer-links a:hover {
    color: #fff;
}

.no-results-box {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.no-results-box h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.no-results-box p {
    color: #64748b;
    margin-bottom: 30px;
}

.no-results-search {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-search form {
    display: flex;
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 5px 15px;
    border-radius: 30px;
    align-items: center;
    box-shadow: 0 4px 6px -1px #0000001a;
}

.no-results-search input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 16px;
}

.no-results-search button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent);
    display: flex;
}

.realty-grid {
    display: flex;
    gap: 20px;
    height: 450px;
    margin-top: 20px;
}

.realty-main {
    flex: 2;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.realty-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.realty-card {
    display: block;
    height: 100%;
    position: relative;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
}

.realty-card.small {
    height: calc(50% - 10px);
    display: flex!important;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eee;
}

.realty-thumb {
    width: 100%;
    height: 100%;
}

.realty-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

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

.realty-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top,#000c,transparent);
    color: #fff;
}

.realty-overlay h4 {
    font-size: 22px;
    margin: 10px 0 0;
    line-height: 1.2;
}

.realty-info {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 12px 12px;
    display: block!important;
}

.realty-info h4 {
    font-size: 15px;
    margin: 5px 0 0;
    color: #222;
    font-family: var(--fira);
    line-height: 1.3;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.realty-card.large {
    transition: all .3s ease;
}

.realty-card.large:hover .realty-overlay {
    background: linear-gradient(to top,var(--accent),transparent);
}

.section-wrapper {
    margin-bottom: 80px!important;
    display: block;
    clear: both;
}

.realty-section-border {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.realty-card.small .realty-thumb {
    height: 120px;
    flex-shrink: 0;
}

.realty-info time {
    font-size: 12px;
    font-family: var(--fira);
    color: var(--accent);
}

.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
    clear: both;
}

.related-posts .section-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-family: var(--fira);
    color: #1e293b;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 30px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 0;
    flex: 1;
}

.tags-title {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    margin-right: 5px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.post-tags a {
    text-decoration: none!important;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #475569!important;
    font-size: 12px;
    font-weight: 500;
    transition: all .2s ease;
}

.post-tags a:hover {
    border-color: #cbd5e1;
    background-color: #fff;
    color: #1e293b!important;
    box-shadow: 0 2px 4px #0000000d;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: none;
    margin: 0;
    flex-shrink: 0;
}

.share-title {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn-item {
    text-decoration: none!important;
    width: 44px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: transparent;
    color: #64748b!important;
    font-size: 11px;
    font-weight: 700;
    transition: all .2s ease-in-out;
}

.share-btn-item:hover {
    border-color: #94a3b8;
    background-color: #f8fafc!important;
    color: #1e293b!important;
    transform: translateY(-2px);
}

.site-footer a {
    color: #1e293b;
    text-decoration: underline;
    transition: color .2s;
    font-weight: 500;
}

.site-footer a:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    font-family: var(--fira);
    color: #334155;
}

.footer-middle {
    margin-bottom: 30px;
}

.footer-bottom {
    font-size: 11px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    color: #888;
    margin-top: 20px;
}

.legal-warning {
    margin-top: 15px;
    font-size: 13px;
    font-style: italic;
    color: #94a3b8;
    line-height: 1.4;
}

.about-page {
    max-width: 900px;
    margin: 40px auto;
}

.about-container {
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px #0000000d;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f7ff;
    padding-bottom: 30px;
}

.about-subtitle {
    font-size: 18px;
    font-family: var(--fira);
    color: #64748b;
    margin-top: 10px;
}

.about-content h2 {
    color: var(--accent);
    margin: 30px 0 15px;
    font-size: 24px;
}

.about-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.about-stat {
    background: #f0f7ff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
}

.stat-desc {
    font-size: 14px;
    color: #475569;
    font-weight: 600;
}

.about-contacts-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 12px;
    margin-top: 50px;
}

.back-to-top {
    position: fixed;
    right: 30px;
    top: 50%;
    background-color: var(--accent);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px #00000026;
    transition: all .3s ease;
    z-index: 1000;
    opacity: 0;
    bottom: 30px;
    background: #1e293b;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #334155;
    background: #229ED9;
    transform: scale(1.1);
}

.back-to-top .material-icons {
    font-size: 24px;
}

.archive-list {
    margin-top: 30px;
}

.archive-post-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid #edf2f7;
    transition: transform .2s ease;
}

.archive-post-item:last-child {
    border-bottom: none;
}

.archive-post-thumb {
    flex: 0 0 240px;
    max-width: 240px;
}

.archive-post-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.archive-post-content h2 {
    font-size: 20px;
    font-family: var(--fira);
    line-height: 1.3;
    margin: 8px 0 12px;
}

.archive-post-content h2 a {
    color: #1a202c;
    text-decoration: none;
}

.archive-post-content h2 a:hover {
    color: var(--accent);
}

.archive-post-content p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
}

.soc-item, .social-btn {
    text-decoration: none!important;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: transparent;
    color: #64748b!important;
    font-size: 10px;
    font-weight: 700;
    transition: all .2s ease-in-out;
}

.soc-item:hover, .social-btn:hover {
    transform: translateY(-2px);
    border-color: transparent;
    color: #ffffff!important;
}

.soc-item.vk:hover, .social-btn.vk:hover {
    background-color: #0077FF !important;
}

.soc-item.tg:hover, .social-btn.tg:hover {
    background-color: #229ED9 !important;
}

.soc-item.x:hover, .social-btn.x:hover {
    background-color: #000000 !important;
}

.soc-item.fb:hover, .social-btn.fb:hover {
    background-color: #1877F2 !important;
}

.soc-item.yt:hover, .social-btn.yt:hover {
    background-color: #FF0000 !important;
}

.header-search form:focus-within {
    border-color: var(--accent);
}

.header-search button .material-icons {
    font-size: 20px;
}

.tg-subscribe-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f0f9ff;
    border: 1px solid #e1efff;
    border-radius: 12px;
    padding: 25px;
    margin: 35px 0;
    background: #f4f9ff;
}

.tg-icon {
    width: 50px;
    height: 50px;
    background: #229ED9;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tg-icon .material-icons {
    font-size: 24px;
    transform: rotate(-20deg) translateX(2px);
}

.tg-content {
    flex-grow: 1;
}

.tg-content h4 {
    margin: 0 0 8px 0 !important;
    font-size: 18px;
    color: #0088cc;
    font-weight: 700;
}

.tg-content p {
    margin: 0!important;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 12px;
}

.tg-btn {
    text-decoration: none !important;
    background-color: #229ED9;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 6px -1px #229ed933;
    background: #0088cc;
}

.tg-btn:hover {
    background-color: #1c8adb;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px #229ed94d;
    background: #0077b5;
}

.money-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all .4s cubic-bezier(0.25,1,0.5,1);
    will-change: transform;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    padding: 0 0 15px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293bb3;
    color: #fff;
    font-size: 8px;
    text-transform: uppercase;
    text-align: center;
    padding: 2px 0;
    font-weight: 300;
}

.recent-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-time {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 600;
}

.recent-item:hover .recent-thumb img {
    transform: scale(1.1);
}

.recent-item:hover h4 {
    color: var(--accent,#229ED9);
}

.sidebar-recent .recent-item {
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-recent .recent-item:last-child {
    border-bottom: none;
}

.energy-card-wide {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px #0000000d;
    transition: transform .4s cubic-bezier(0.25,1,0.5,1),box-shadow .4s cubic-bezier(0.25,1,0.5,1);
    will-change: transform;
}

.energy-card-wide a {
    text-decoration: none!important;
}

.energy-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white,black);
}

.energy-info {
    padding: 15px;
}

.energy-info h4 {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #1e293b;
    font-weight: 700;
    transition: color .2s;
}

.energy-card-wide:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px #0000001a 0 10px 10px -5px #0000000a;
}

.energy-card-wide:hover img {
    transform: scale(1.07) translateZ(0);
}

.energy-card-wide:hover h4 {
    color: var(--accent,#229ED9);
}

.main-post {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all .4s cubic-bezier(0.25,1,0.5,1);
}

.main-post-thumb {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.main-post-content {
    padding: 25px;
}

.main-post-content h2 {
    font-size: 24px;
    margin: 10px 0;
    color: #1e293b;
    line-height: 1.2;
}

.main-post:hover {
    box-shadow: 0 20px 25px -5px #0000001a;
}

.main-post:hover img {
    transform: scale(1.03);
}

.mag-list-item:last-child {
    border-bottom: none;
}

.mag-list-thumb {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.mag-list-text h4 {
    margin: 4px 0 0;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.4;
}

.mag-list-item:hover h4 {
    color: var(--accent,#229ED9);
}

.money-card a {
    text-decoration: none!important;
    display: block;
}

.money-card .card-body,.money-card h4 {
    padding: 12px 15px 0;
    margin: 0;
}

.money-card .card-thumb {
    height: 150px;
    overflow: hidden;
}

.money-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.money-card:hover .card-thumb img {
    transform: scale(1.05);
}

.realty-clean-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-top: 25px;
}

.realty-card-new {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all .4s cubic-bezier(0.25,1,0.5,1);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.realty-card-new a {
    text-decoration: none!important;
}

.realty-thumb-new {
    position: relative;
    height: 160px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white,black);
}

.realty-thumb-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(0.25,1,0.5,1);
    transform: translateZ(0);
}

.realty-body-new {
    padding: 15px;
    flex-grow: 1;
}

.realty-body-new h4 {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: #1e293b;
    font-weight: 700;
    transition: color .3s ease;
}

.realty-card-new:hover {
    transform: translateY(-8px);
    border-color: #cbd5e1;
    box-shadow: 0 15px 30px -5px #00000014;
    background: #fcfdfe;
}

.realty-card-new:hover img {
    transform: scale(1.08) translateZ(0);
}

.realty-card-new:hover h4 {
    color: var(--accent,#229ED9);
}

.footer-brand img {
    opacity: .7;
}

.footer-brand strong {
    color: #1e293b;
    letter-spacing: .5px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-btn.vk {
    background-color: #4C75A3;
}

.social-btn.tg {
    background-color: #24A1DE;
}

.social-btn.x {
    background-color: #000000;
}

.social-btn.ok {
    background-color: #ee8208;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

.social-btn i {
    font-size: 16px;
}

.footer-middle,.footer-bottom {
    margin-bottom: 25px;
}

.footer-middle a {
    color: #1f201d;
    text-decoration: underline;
    font-weight: 400;
}

.footer-middle a:hover {
    text-decoration: none;
}

.image-caption {
    font-family: var(--lora);
    font-size: 11px;
    color: #ccc!important;
    margin-top: 5px;
    line-height: 1.2;
    font-style: italic;
    position: absolute;
    bottom: 10px!important;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
    max-width: 95%;
    text-align: left;
    white-space: nowrap;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sidebar-dynamic-area {
    margin-top: 35px;
    font-size: 12px;
}

.sidebar-block {
    margin-bottom: 35px;
}

.sidebar-block ul {
    list-style: none;
    padding: 0;
}

.sidebar-block ul li {
    padding: 10px 0;
    border-bottom: 1px solid #fee2e2;
    line-height: 1.4;
}

.sidebar-block ul li:last-child {
    border-bottom: none;
}

.sidebar-block ul li a:hover {
    color: var(--accent);
}

.nav-list {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-list li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 8px 8px !important;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-list > li > a:hover {
    color: var(--accent);
}

.nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-top: 3px solid var(--accent);
    margin: 0 !important;
    padding: 5px 0 !important;
    z-index: 9999;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.nav-list li:hover > .sub-menu {
    display: block !important;
}

.nav-list > li:last-child .sub-menu {
    left: auto;
    right: 0;
}

.nav-list .sub-menu li a {
    display: block !important;
    width: 100% !important;
    padding: 10px 15px !important;
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    box-sizing: border-box !important;
    transition: all 0.2s ease;
    background-color: transparent;
}

.nav-list .sub-menu li a:hover {
    background-color: #f8fafc !important;
    color: var(--accent) !important;
}

.nav-list .menu-item-has-children > a::after,
.nav-list > li:last-child > a::before {
    font-family: 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

.nav-list .menu-item-has-children > a::after {
    content: 'expand_more';
    font-size: 13px;
    margin-left: 2px;
    opacity: 0.5;
}

.nav-list > li:last-child > a::before {
    content: 'more_horiz';
    font-size: 13px;
    margin-right: 4px;
    opacity: 0.7;
}

.nav-list li:hover > a::after,
.nav-list li:hover > a::before {
    opacity: 1;
    color: var(--accent);
}

.card-thumb img,
.energy-thumb img,
.main-post-thumb img,
.mag-list-thumb img,
.realty-thumb-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination .page-numbers .material-icons {
    font-size: 20px;
    vertical-align: middle;
}

.pagination a.page-numbers:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.pagination .page-numbers.current {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.pagination .page-numbers.dots {
    background: transparent;
    color: #cbd5e1;
    cursor: default;
}

.pagination .prev, .pagination .next {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.footer-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

.footer-partners img {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.footer-partners a {
    text-decoration: none;
    color: inherit;
}

.footer-partners a:hover {
    text-decoration: underline;
}

.footer-partners .sep {
    color: #ccc;
    margin: 0 5px;
}

.footer-copy {
    font-size: 13px;
    opacity: 0.8;
}

.lightbox-link {
    display: block;
    cursor: zoom-in;
    outline: none;
}

.lightbox-link img {
    transition: opacity 0.2s ease-in-out;
}

.lightbox-link:hover img {
    opacity: 0.9;
}

.other-socials {
    border-top: 1px solid #ddecff;
    padding-top: 10px;
    font-size: 13px;
    color: #666;
}

.other-socials span {
    margin-right: 8px;
    font-weight: bold;
}

.other-socials a {
    margin-right: 12px;
    color: #555 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.other-socials a i {
    margin-right: 3px;
}

.other-socials a:hover {
    color: #0088cc !important;
}

.legal-notice-mini {
    font-size: 10px !important;
    color: #aaa !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

#comments {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-family: 'Fira Sans', sans-serif;
}

.comment-reply-title {
    font-size: 20px;
    margin-bottom: 20px;
    display: block;
}

#commentform input, #commentform textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    display: block;
}

#submit {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
}

#submit:hover {
    background: #555;
}

#commentform label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 13px;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
    background: #fafafa;
    border: 1px solid #ddd;
    box-shadow: none;
    transition: border-color 0.3s;
}

#commentform input:focus,
#commentform textarea:focus {
    border-color: #0088cc;
    outline: none;
    background: #fff;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding: 4px 10px;
    background: #fdfdfd;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #666;
}

.age-badge {
    display: inline-block;
    border: 2px solid #444;
    color: #444;
    font-weight: 900;
    padding: 1px 4px;
    font-size: 11px;
    line-height: 1;
    border-radius: 3px;
    text-transform: uppercase;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    color: #555 !important;
    transition: all 0.2s ease-in-out;
}

.social-link i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.social-link.vk i {
    color: #4C75A3;
}

.social-link.tg i {
    color: #24A1DE;
}

.social-link.x i {
    color: #000000;
}

.social-link.ok i {
    color: #ee8208;
}

.social-link.fb i {
    color: #3b5998;
}

.social-link:hover {
    color: #000 !important;
}

.social-link:hover i {
    transform: scale(1.2);
}

.post-inline-image {
    position: relative;
    margin: 20px 0;
    display: inline-block;
    line-height: 0;
    vertical-align: top;
    white-space: normal;
}

.post-inline-image a {
    display: block;
    line-height: 0;
}

.post-inline-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.cap-sep {
    opacity: 0.5;
    margin: 0 4px;
    font-weight: 300;
}

.img-source {
    opacity: 0.9;
    margin-left: 5px;
}

.cap-text {
    display: inline-block;
}

.post-inline-image:hover .image-caption {
    opacity: 1;
}

figure {
    margin-bottom: 10px!important;
    margin-top: 10px!important;
}

figcaption.image-caption {
    bottom: 15px!important;
    left: 10px;
    margin: 0;
    padding: 6px 12px;
}

.cap-text,
.cap-sep,
.img-source {
    display: inline;
}

.yandex-ad-block {
    min-height: 250px;
    /* Чтобы страница не "прыгала" при загрузке рекламы */
    display: flex;
    flex-direction: column;
    justify-content: center
}

/* Оформление таблиц */
/* =====================================
   Оформление таблиц — VeloDaily
   ===================================== */

.wp-block-table,
.wp-block-table.velo-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin: 35px 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wp-block-table table,
.wp-block-table.velo-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 !important; /* Убираем отступы таблицы внутри блока */
}

/* Шапка таблицы */
.wp-block-table th,
.wp-block-table.velo-table th {
    background-color: #f8fafd;
    color: #8898aa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e6ed;
}

/* Ячейки */
.wp-block-table td,
.wp-block-table.velo-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 15px;
    color: #32325d;
    background-color: #fff;
}

/* Убираем границу у последней строки */
.wp-block-table tr:last-child td,
.wp-block-table.velo-table tr:last-child td {
    border-bottom: none;
}

/* Полосатая подсветка */
.wp-block-table tr:nth-child(even),
.wp-block-table.velo-table tr:nth-child(even) {
    background-color: #fafbfe;
}

/* Строки с DNF, DNS, OTL */
.row-dnf td,
.row-dns td,
.row-otl td,
tr.row-dnf td,
tr.row-dns td,
tr.row-otl td {
    color: #a0aec0 !important;
    background-color: #fafbfc !important;
    text-decoration: line-through;
    opacity: 0.75;
}

/* Адаптивность */
@media (max-width: 768px) {
    .wp-block-table,
    .wp-block-table.velo-table {
        font-size: 13px;
    }
    
    .wp-block-table th,
    .wp-block-table td,
    .wp-block-table.velo-table th,
    .wp-block-table.velo-table td {
        padding: 10px 12px;
    }
}

/* Опционально: стили для выравнивания */
.wp-block-table td[align="center"],
.wp-block-table.velo-table td[align="center"] {
    text-align: center;
}

.wp-block-table td[align="right"],
.wp-block-table.velo-table td[align="right"] {
    text-align: right;
}

/* Стиль для таблиц с сортировкой */
.kf-table.sortable th {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.kf-table.sortable th:hover {
    background-color: #eef2f7;
}

.kf-table.sortable th:after {
    content: "⇅";
    position: absolute;
    right: 12px;
    opacity: 0.3;
}