/*
Theme Name: InsurRate Portal
Author: Senior Frontend Designer
Description: Концепция "Secure Shield": Спокойствие, защита и полная прозрачность условий страхования.
Version: 1.0.0
Text Domain: insurrate
*/

:root {
    /* Colors - Protection & Trust */
    --bg: #ffffff;
    --surface: #f0f7ff;
    --surface-dark: #1e3a8a;
    --primary: #2563eb; /* Secure Blue */
    --primary-dim: rgba(37, 99, 235, 0.08);
    --accent: #059669; /* Shield Teal */
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* Spacing */
    --gap: 2rem;
    --header-height: 85px;
    --container-width: 1280px;
    
    /* Fonts */
    --font-display: 'Syne', 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;
    overflow-x: hidden;
}
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-family: var(--font-display); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.text-mono { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

/* Header - Secure Fixed */
.site-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4rem; /* По памятке */
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--surface-dark);
    flex-shrink: 0; /* По памятке */
}

.logo span { color: var(--primary); }

.main-nav ul { 
    display: flex; 
    gap: 3rem; /* По памятке */
}
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text-muted); }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary); }

.menu-toggle { display: none; background: var(--primary); color: #fff; border: none; padding: 0.7rem; border-radius: 6px; cursor: pointer; }
.hamburger { width: 22px; height: 2px; background: #fff; position: relative; display: block; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 22px; height: 2px; background: #fff; left: 0; transition: 0.3s; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.menu-toggle.is-active .hamburger { background: transparent; }
.menu-toggle.is-active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.is-active .hamburger::after { transform: rotate(-45deg); top: 0; }

/* Hero - Reassurance */
.hero {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--surface) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    flex-direction: row-reverse; /* Инвертируем: картинка слева, текст справа */
    gap: 6rem;
}

.hero-text { flex: 1.1; }
.hero h1 { font-size: clamp(3rem, 7vw, 4.5rem); margin-bottom: 2rem; color: var(--surface-dark); }
.hero-desc { font-size: 1.35rem; color: var(--text-muted); margin-bottom: 0; max-width: 600px; }

.hero-image { 
    flex: 0.9; 
    position: relative; 
    padding: 2rem;
}

/* Декоративный элемент за картинкой */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dim);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    transform: rotate(-10deg);
}

.hero-banner-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 40px 80px -20px rgba(30, 58, 138, 0.2);
    transform: perspective(1000px) rotateY(15deg); /* 3D поворот для уникальности */
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-image:hover .hero-banner-img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Protection Grid */
.protection-section {
    padding: 4rem 0;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

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

.protection-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: 0.4s;
}

.protection-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.protection-icon { font-size: 2.2rem; margin-bottom: 1.5rem; display: block; }
.protection-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.protection-card p { font-size: 0.95rem; color: var(--text-muted); }

/* Claims Roadmap */
.claims-roadmap {
    padding: 8rem 0;
    background: var(--surface-dark);
    color: #fff;
}

.roadmap-header { text-align: center; margin-bottom: 5rem; }
.roadmap-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.roadmap-header p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

.roadmap-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step-item {
    position: relative;
    padding-left: 4rem;
}

.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.step-item h4 { font-size: 1.4rem; margin-bottom: 1rem; }
.step-item p { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.5; }

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

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

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

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.post-card:hover .card-img { transform: scale(1.05); }

.card-meta { margin-bottom: 1rem; color: var(--primary); font-family: var(--font-mono); font-size: 0.75rem; }
.card-title { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; color: var(--surface-dark); }
.card-excerpt { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; flex-grow: 1; }

.btn-insur {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: 0.3s;
}
.btn-insur:hover { color: var(--accent); }

/* Pagination */
.pagination-container { padding-bottom: 8rem; }
.pagination-list { display: flex; justify-content: center; gap: 0.5rem; }
.pagination-item a, .pagination-item span {
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-weight: 700;
}
.pagination-item.is-active span { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Footer */
.site-footer {
    padding: 6rem 0 3rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 2rem; }
.footer-contact-item { margin-bottom: 1.5rem; }
.footer-contact-item label { display: block; color: var(--text-muted); font-size: 0.7rem; margin-bottom: 0.5rem; text-transform: uppercase; }
.footer-contact-item span { font-size: 1.1rem; color: var(--surface-dark); font-weight: 600; }

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 1024px) {
    .protection-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) {
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-desc { margin: 0 auto; }
    .roadmap-steps { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: absolute; top: 100%; left: 0; width: 100%;
        background: #fff; padding: 2rem; border-bottom: 1px solid var(--border);
    }
    .main-nav.is-active ul { flex-direction: column; gap: 1.5rem; }
    .menu-toggle { display: block; }
}

@media (max-width: 640px) {
    .protection-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
