/*
Theme Name: NordRenov Portal
Author: Senior Frontend Designer
Description: Концепция "Nordic Precision": Минимализм, функциональность и северная эстетика качества.
Version: 1.0.0
Text Domain: nordrenov
*/

:root {
    /* Colors - Nordic Cold & Professional */
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-dark: #0f172a;
    --primary: #3b82f6; /* Nordic Blue */
    --primary-dim: rgba(59, 130, 246, 0.1);
    --accent: #10b981; /* Precision Green */
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* Spacing */
    --gap: 2.5rem;
    --header-height: 100px;
    --container-width: 1300px;
    
    /* Fonts */
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font-body); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
ul { list-style: none; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--gap); }

/* Typography */
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.text-mono { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; }

/* Header - Floating Minimal */
.site-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 5rem;
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--surface-dark);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.logo span { color: var(--primary); }

.main-nav ul { 
    display: flex; 
    gap: 3.5rem; 
}
.main-nav a { 
    font-weight: 700; 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 1px;
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary); }

.menu-toggle { display: none; background: var(--surface-dark); color: #fff; border: none; padding: 12px; cursor: pointer; border-radius: 4px; }
.hamburger { width: 24px; height: 2px; background: #fff; position: relative; display: block; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 2px; background: #fff; left: 0; transition: 0.3s; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hero - Option C: Centered Text / Background Image Overlay */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--surface-dark);
    position: relative;
    overflow: hidden;
    padding: 150px 0 100px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('banner.png') center/cover no-repeat;
    opacity: 0.3;
    filter: grayscale(1) contrast(1.2);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 var(--gap);
}

.hero h1 { 
    font-size: clamp(3.5rem, 8vw, 6rem); 
    color: #fff; 
    margin-bottom: 2rem; 
}
.hero h1 span { color: var(--primary); }

.hero-desc { 
    font-size: 1.4rem; 
    color: rgba(255, 255, 255, 0.8); 
    margin-bottom: 4rem; 
    line-height: 1.4;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Precision Grid */
.precision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    margin-top: -80px;
    position: relative;
    z-index: 10;
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}

.precision-card {
    background: #fff;
    padding: 4rem 3rem;
    transition: 0.4s;
}

.precision-card:hover { 
    background: var(--primary); 
    color: #fff; 
    transform: translateY(-5px);
}

.precision-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1.5rem; 
    text-transform: uppercase;
}

.precision-card p { 
    font-size: 1rem; 
    color: var(--text-muted); 
    line-height: 1.6;
}

.precision-card:hover p { color: rgba(255, 255, 255, 0.8); }

/* Checklist Section */
.checklist-section {
    padding: 10rem 0;
    background: #fff;
}

.section-title {
    margin-bottom: 6rem;
    border-left: 8px solid var(--primary);
    padding-left: 2.5rem;
}

.section-title h2 { font-size: 3.5rem; }
.section-title p { color: var(--text-muted); margin-top: 1rem; }

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.check-item {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.check-item:hover {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.check-item .icon { 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
    display: block; 
}

.check-item h4 { 
    font-size: 1.1rem; 
    margin-bottom: 0.75rem; 
}

.check-item p { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
}

/* Post Grid */
.post-section-header {
    padding: 8rem 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--surface-dark);
    margin-bottom: 4rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    padding-bottom: 10rem;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: var(--surface-dark);
    margin-bottom: 2.5rem;
}

.card-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(0.5);
}

.post-card:hover .card-img { 
    transform: scale(1.05); 
    filter: grayscale(0);
}

.card-category { 
    font-family: var(--font-mono); 
    font-size: 0.7rem; 
    color: var(--primary); 
    font-weight: 700; 
    margin-bottom: 1rem; 
    display: block;
}

.card-title { 
    font-size: 1.75rem; 
    margin-bottom: 1.5rem; 
    line-height: 1.1; 
}

.card-excerpt { 
    font-size: 1rem; 
    color: var(--text-muted); 
    margin-bottom: 3rem; 
    flex-grow: 1; 
}

.btn-nord {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--surface-dark);
    padding: 1.2rem 2.5rem;
    border: 2px solid var(--surface-dark);
    width: fit-content;
    transition: 0.3s;
    letter-spacing: 1px;
}

.btn-nord:hover {
    background: var(--surface-dark);
    color: #fff;
}

/* Pagination */
.pagination-container { padding-bottom: 10rem; }
.pagination-list { display: flex; justify-content: center; gap: 0.75rem; }
.pagination-item a, .pagination-item span {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--border);
    font-weight: 800;
    font-family: var(--font-mono);
}
.pagination-item.is-active span { 
    background: var(--surface-dark); 
    border-color: var(--surface-dark); 
    color: #fff; 
}

/* Footer - Nordic Split Concept */
.site-footer {
    padding: 12rem 0 4rem;
    background: #fff;
    color: var(--surface-dark);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.footer-bg-text {
    position: absolute;
    bottom: -0.1em;
    left: -0.05em;
    font-size: 25vw;
    font-weight: 900;
    line-height: 0.7;
    color: var(--bg);
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 10rem;
    position: relative;
    z-index: 2;
    margin-bottom: 10rem;
}

.footer-contact-block {
    flex: 1.5;
}

.footer-nav-block {
    flex: 1;
}

.footer-large-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    display: block;
}

.footer-contact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.footer-info-item label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-info-item span {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.footer-nav-list ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-nav-list a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--surface-dark);
}

.footer-nav-list a:hover {
    color: var(--primary);
    padding-left: 1rem;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 3rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .footer-top { flex-direction: column; gap: 6rem; }
    .footer-contact-list { gap: 3rem; }
}

@media (max-width: 768px) {
    .footer-contact-list { grid-template-columns: 1fr; }
    .footer-info-item span { font-size: 1.4rem; }
    .footer-nav-list a { font-size: 1.2rem; }
}

/* Mobile */
@media (max-width: 1024px) {
    .header-inner { gap: 2rem; }
    .main-nav ul { gap: 1.5rem; }
    .precision-grid { grid-template-columns: 1fr; margin-top: 0; }
    .checklist-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: fixed; top: var(--header-height); left: 0; width: 100%;
        background: #fff; padding: 3rem; border-bottom: 1px solid var(--border);
    }
    .main-nav ul { flex-direction: column; gap: 2rem; }
    .main-nav a { color: var(--surface-dark); }
    .menu-toggle { display: block; }
}

@media (max-width: 640px) {
    .checklist-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
    .hero-desc { font-size: 1.1rem; }
}
