/* ==========================================================================
   Точка Зарядки — Base Styles
   ========================================================================== */

/* --- Font Face --- */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/montserrat-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/inter-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Variables --- */
:root {
    --color-dark: #1A2730;
    --color-gold: #C5A028;
    --color-dark-mid: #2C3E50;
    --color-light: #F5F5F0;
    --color-white: #FFFFFF;
    --color-text: #555555;
    --color-border: #E8E8E8;

    --color-gold-hover: #D4AF37;
    --color-dark-hover: #243440;
    --color-success: #28A745;
    --color-error: #DC3545;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', 'Montserrat', sans-serif;

    --container-width: 1200px;
    --container-padding: 20px;
    --header-height: 72px;

    --transition: 0.25s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] { display: none !important; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition);
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Section --- */
.section {
    padding: 80px 0;
}

.section--dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-white);
}

.section--mid {
    background: var(--color-dark-mid);
    color: var(--color-white);
}

.section--mid h2,
.section--mid h3 {
    color: var(--color-white);
}

.section--light {
    background: var(--color-light);
}

.section__title {
    text-align: center;
    margin-bottom: 16px;
}

.section__subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto 48px;
}

.section--dark .section__subtitle,
.section--mid .section__subtitle {
    color: rgba(255,255,255,0.7);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn--primary {
    background: var(--color-dark);
    color: var(--color-gold);
    border: 1.5px solid var(--color-gold);
}

.btn--primary:hover {
    background: var(--color-gold);
    color: var(--color-dark);
}

.btn--secondary {
    background: transparent;
    color: var(--color-gold);
    border: 1.5px solid var(--color-gold);
}

.btn--secondary:hover {
    background: var(--color-gold);
    color: var(--color-dark);
}

.btn--gold {
    background: transparent;
    color: var(--color-gold);
    border: 1.5px solid var(--color-gold);
}

.btn--gold:hover {
    background: var(--color-gold);
    color: var(--color-dark);
}

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

.btn--lg {
    padding: 16px 36px;
    font-size: 16px;
}

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

/* --- Grid --- */
.grid {
    display: grid;
    gap: 24px;
}

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

.contacts-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.project-single__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.project-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--color-text);
    opacity: 0.7;
    margin-top: 24px;
}

/* --- WordPress defaults --- */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--color-text); }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }

.entry-content p { margin-bottom: 1em; }
.entry-content ul,
.entry-content ol { margin-bottom: 1em; padding-left: 1.5em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
    border-left: 4px solid var(--color-gold);
    padding: 16px 24px;
    margin: 1.5em 0;
    background: var(--color-light);
}

/* --- News Cards --- */
.card-news {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-news:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.card-news__image {
    display: block;
    overflow: hidden;
}

.card-news__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-news__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-news__date {
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 8px;
}

.card-news__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-news__title a {
    color: var(--color-dark);
    text-decoration: none;
}

.card-news__title a:hover {
    color: var(--color-gold);
}

.card-news__excerpt {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.card-news__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-news__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gold);
}

.card-news__category {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold);
    border: 1px solid rgba(197,160,40,0.4);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-news__category:hover {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

/* --- Project Cards --- */
.card-project {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-project:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.card-project__image {
    display: block;
    position: relative;
    overflow: hidden;
}

.card-project__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-project__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 3px;
    background: var(--color-gold);
    color: var(--color-dark);
}

.card-project__badge--simulated {
    background: var(--color-dark-mid);
    color: var(--color-white);
}

.card-project__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-project__type {
    font-size: 0.75rem;
    color: var(--color-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.card-project__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-project__title a {
    color: var(--color-dark);
    text-decoration: none;
}

.card-project__title a:hover {
    color: var(--color-gold);
}

.card-project__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.card-project__meta-item {
    font-size: 0.85rem;
    color: var(--color-text);
}

.card-project__excerpt {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.card-project__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gold);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: если JS не загрузился — показать всё */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 48px 0;
}

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

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
    color: var(--color-text);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.page-numbers[href],
.page-numbers[data-page] {
    cursor: pointer;
}

.page-numbers:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.page-numbers.current {
    color: var(--color-dark);
    background: var(--color-gold);
    border-color: var(--color-gold);
    font-weight: 700;
}

.page-numbers.dots {
    border-color: transparent;
    cursor: default;
    color: var(--color-text);
}

.page-numbers.prev,
.page-numbers.next {
    font-size: 1.2rem;
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
    background: var(--color-gold);
    color: var(--color-dark);
}

.navigation.pagination h2,
.navigation.pagination .nav-label {
    display: none;
}
