/*
Theme Name: Blocksy Child — Матричные системы
Template: blocksy
Version: 1.1
*/

/* === TYPOGRAPHY === */
body { font-family: 'Inter', -apple-system, sans-serif; color: #2c3e50; }
h1, h2, h3, h4 { font-weight: 700; color: #1a1a2e; letter-spacing: -0.02em; }
h1 { font-size: 2.8rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.25; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; line-height: 1.35; }
p { line-height: 1.75; color: #4a5568; font-size: 1.05rem; }

/* === HIDE PAGE TITLE === */
.page .entry-header, body.home .entry-header { display: none; }

/* === HERO SECTION === */
.ms-hero {
    background: linear-gradient(135deg, #0f1b2d 0%, #1B4F72 50%, #2980B9 100%);
    color: #fff; padding: 100px 30px; text-align: left;
    position: relative; overflow: hidden;
}
.ms-hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px; border-radius: 50%;
    background: rgba(41,128,185,0.15); pointer-events: none;
}
.ms-hero::after {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(255,255,255,0.03); pointer-events: none;
}
.ms-hero h1 { color: #fff; font-size: 3.2rem; margin-bottom: 20px; }
.ms-hero p { color: rgba(255,255,255,0.85); font-size: 1.25rem; max-width: 700px; }
.ms-hero .ms-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }

/* === BUTTONS === */
.ms-btn {
    display: inline-block; padding: 14px 32px; border-radius: 6px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s ease; margin: 6px 8px 6px 0; cursor: pointer;
}
.ms-btn-primary { background: #2980B9; color: #fff; border: 2px solid #2980B9; }
.ms-btn-primary:hover { background: #1B6FA0; border-color: #1B6FA0; color: #fff; }
.ms-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.ms-btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }
.ms-btn-dark { background: transparent; color: #1B4F72; border: 2px solid #1B4F72; }
.ms-btn-dark:hover { background: #1B4F72; color: #fff; }

/* === SECTIONS === */
.ms-section { padding: 80px 30px; }
.ms-section .ms-inner { max-width: 1100px; margin: 0 auto; }
.ms-section-gray { background: #f7f9fc; }
.ms-section-dark { background: #0f1b2d; color: #fff; }
.ms-section-dark h2 { color: #fff; }
.ms-section-dark p { color: rgba(255,255,255,0.75); }
.ms-section-accent { background: linear-gradient(135deg, #1B4F72 0%, #2980B9 100%); color: #fff; }
.ms-section-accent h2 { color: #fff; }
.ms-section-accent p { color: rgba(255,255,255,0.85); }

.ms-label {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: #2980B9; margin-bottom: 12px;
}

/* === CARDS GRID === */
.ms-grid { display: grid; gap: 24px; margin-top: 40px; }
.ms-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ms-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ms-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.ms-card {
    background: #fff; border-radius: 12px; padding: 36px 30px;
    border: 1px solid #e8ecf1; transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.ms-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: #2980B9; }
.ms-card h3 { color: #1B4F72; margin-top: 0; margin-bottom: 12px; font-size: 1.2rem; }
.ms-card p { font-size: 0.95rem; color: #5a6a7a; margin: 0; }
.ms-card-number {
    font-size: 3rem; font-weight: 800; color: rgba(41,128,185,0.1);
    position: absolute; top: 12px; right: 20px; line-height: 1;
}

/* cards on gray bg */
.ms-section-gray .ms-card { background: #fff; }

/* === VACANCY CARDS === */
.ms-vacancy {
    background: #fff; border-radius: 12px; padding: 30px;
    border-left: 4px solid #2980B9; margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ms-vacancy h3 { color: #1B4F72; margin: 0 0 8px; }
.ms-vacancy p { margin: 0; font-size: 0.95rem; }
.ms-vacancy .ms-tag {
    display: inline-block; background: #e8f4fd; color: #2980B9;
    padding: 4px 12px; border-radius: 20px; font-size: 0.8rem;
    font-weight: 600; margin-top: 12px; margin-right: 6px;
}

/* === DIVIDER === */
.ms-divider { width: 60px; height: 4px; background: #2980B9; border-radius: 2px; margin: 20px 0 30px; }

/* === STATS === */
.ms-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.ms-stat-item { text-align: center; }
.ms-stat-num { font-size: 2.5rem; font-weight: 800; color: #2980B9; display: block; }
.ms-stat-label { font-size: 0.85rem; color: #7a8a9a; text-transform: uppercase; letter-spacing: 0.1em; }

/* === FOOTER FIX === */
.page .site-footer { margin-top: 0; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .ms-hero { padding: 60px 20px; }
    .ms-hero h1 { font-size: 2.2rem; }
    .ms-section { padding: 50px 20px; }
    .ms-grid-2, .ms-grid-4 { grid-template-columns: 1fr; }
    .ms-stats { justify-content: center; }
    h1 { font-size: 2rem; }
}
