/*
Theme Name: РегионТест
Theme URI: https://regiontest.ru
Author: РегионТест
Author URI: https://regiontest.ru
Description: Тема для центра сертификации РегионТест с редактируемым контентом
Version: 2.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: regiontest
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

:root { 
    --primary: #0ea5e9; 
    --primary-dark: #0284c7; 
    --text: #1e293b; 
    --text-light: #64748b; 
    --bg: #f8fafc; 
    --white: #ffffff;
    --border: #e2e8f0;
}

html { scroll-behavior: smooth; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; 
    line-height: 1.6; 
    color: var(--text); 
    background: var(--bg); 
}

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

/* Header */
.top-bar { background: var(--primary); color: white; padding: 8px 0; font-size: 14px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: white; text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }

.site-header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 45px; height: 45px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 18px; }
.logo-text { font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--text); }
.logo-text span { font-size: 12px; font-weight: 400; color: var(--text-light); display: block; }

.main-nav { display: flex; gap: 30px; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 500; transition: color 0.3s; }
.main-nav a:hover, .main-nav a.current { color: var(--primary); }

.btn { display: inline-block; padding: 12px 24px; background: var(--primary); color: white; text-decoration: none; border-radius: 8px; font-weight: 500; transition: background 0.3s; border: none; cursor: pointer; }
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-large { padding: 15px 30px; font-size: 16px; }

/* Hero */
.hero { padding: 80px 0; background: linear-gradient(135deg, rgba(14,165,233,0.05) 0%, rgba(14,165,233,0.02) 50%, #f8fafc 100%); }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(14,165,233,0.1); color: var(--primary); padding: 8px 16px; border-radius: 50px; font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.hero h1 { font-size: 44px; font-weight: 700; line-height: 1.15; margin-bottom: 20px; color: var(--text); }
.hero h1 span { color: var(--primary); }
.hero-desc { font-size: 18px; color: var(--text-light); margin-bottom: 30px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); }
.stat h3 { font-size: 32px; color: var(--primary); }
.stat p { font-size: 14px; color: var(--text-light); margin: 0; }

.hero-cards { display: grid; gap: 20px; }
.card { background: var(--white); padding: 25px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.card-icon { width: 50px; height: 50px; background: rgba(14,165,233,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.card-icon svg { width: 24px; height: 24px; color: var(--primary); }
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.card p { font-size: 14px; color: var(--text-light); margin: 0; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.trust-badge { background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(14,165,233,0.05)); padding: 15px 20px; border-radius: 12px; display: flex; align-items: center; gap: 15px; }
.trust-badges { display: flex; gap: 8px; }
.trust-badge-item { width: 32px; height: 32px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 12px; font-weight: bold; }

/* Sections */
section { padding: 80px 0; }
section.bg-white { background: var(--white); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-header span { color: var(--primary); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.section-header h2 { font-size: 36px; margin: 15px 0; }
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-light); font-size: 16px; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.service-card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: transform 0.3s; text-decoration: none; color: inherit; }
.service-card:hover { transform: translateY(-8px); }
.service-header { height: 4px; background: linear-gradient(90deg, var(--primary), #38bdf8); }
.service-card:nth-child(2) .service-header { background: linear-gradient(90deg, #10b981, #34d399); }
.service-card:nth-child(3) .service-header { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.service-content { padding: 30px; }
.service-icon { width: 55px; height: 55px; background: rgba(14,165,233,0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-icon svg { width: 26px; height: 26px; color: var(--primary); }
.service-content h3 { font-size: 20px; margin-bottom: 12px; }
.service-content p { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.service-list { list-style: none; margin-bottom: 20px; }
.service-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-light); margin-bottom: 8px; }
.service-list li::before { content: ''; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }

/* Advantages */
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.advantage { background: #f1f5f9; border-radius: 16px; padding: 25px; position: relative; transition: all 0.3s; }
.advantage:hover { background: var(--white); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.advantage-stat { position: absolute; top: 20px; right: 20px; text-align: right; }
.advantage-stat strong { font-size: 24px; color: var(--primary); }
.advantage-stat span { display: block; font-size: 12px; color: var(--text-light); }
.advantage-icon { width: 45px; height: 45px; background: rgba(14,165,233,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.advantage-icon svg { width: 22px; height: 22px; color: var(--primary); }
.advantage h4 { font-size: 17px; margin-bottom: 10px; padding-right: 80px; }
.advantage p { font-size: 14px; color: var(--text-light); line-height: 1.5; }

.cta-box { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 20px; padding: 50px; text-align: center; color: white; margin-top: 40px; }
.cta-box h3 { font-size: 28px; margin-bottom: 15px; }
.cta-box p { opacity: 0.9; max-width: 500px; margin: 0 auto 25px; }
.cta-box .btn { background: white; color: var(--primary); }
.cta-box .btn:hover { background: #f1f5f9; }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-card { background: var(--white); border-radius: 12px; padding: 25px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.contact-card-header { display: flex; align-items: center; gap: 18px; margin-bottom: 0; }
.contact-card-icon { width: 50px; height: 50px; background: rgba(14,165,233,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card-icon svg { width: 24px; height: 24px; color: var(--primary); }
.contact-info { display: flex; flex-direction: column; gap: 6px; }
.contact-info span { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; line-height: 1; }
.contact-info a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; line-height: 1; white-space: nowrap; transition: color 0.3s; }
.contact-info a:hover { color: var(--primary); }
.contact-info p { font-size: 15px; color: var(--text); margin: 0; line-height: 1.4; }

.address-card { background: var(--white); border-radius: 12px; padding: 25px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); grid-column: span 2; }

.quick-action { background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(14,165,233,0.05)); border-radius: 12px; padding: 20px; grid-column: span 2; display: flex; justify-content: space-between; align-items: center; }
.quick-action h4 { margin-bottom: 5px; }
.quick-action p { margin: 0; font-size: 13px; color: var(--text-light); }

.map-container { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.05); height: 100%; min-height: 400px; }
.map-container iframe { width: 100%; height: 100%; border: none; min-height: 400px; }

/* Footer */
.site-footer { background: var(--text); color: white; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.footer-logo .logo-icon { width: 40px; height: 40px; font-size: 16px; }
.footer-logo .logo-text { color: white; }
.footer-logo .logo-text span { color: rgba(255,255,255,0.6); }
.site-footer p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; }
.site-footer h4 { font-size: 16px; margin-bottom: 20px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--primary); }
.contacts-list a { display: flex; align-items: center; gap: 8px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.5); }

/* Inner Pages (Унифицированный B2B дизайн) */
.page-hero { 
    padding: 80px 0; /* Высота выровнена с главным экраном */
    background: linear-gradient(135deg, var(--bg) 0%, #e0f2fe 100%); 
    text-align: left; 
    border-bottom: 1px solid var(--border);
}
.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; /* Отступ между колонками выровнен с главным экраном */
    align-items: center;
}
.breadcrumbs {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px; /* Отступ выровнен с главным экраном */
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s;
}
.breadcrumbs a:hover {
    opacity: 0.8;
}
.breadcrumbs .sep {
    color: #94a3b8;
}
.breadcrumbs .current {
    color: var(--text-light);
}
.page-hero h1 { 
    font-size: 44px; /* Размер шрифта выровнен с главным экраном */
    line-height: 1.15; 
    margin-bottom: 20px; 
    color: var(--text);
    font-weight: 700; /* Жирность шрифта выровнена с главным экраном */
}
.page-hero .hero-excerpt { 
    color: var(--text-light); 
    font-size: 20px; 
    margin: 0 0 35px 0; 
    line-height: 1.6; 
}

/* Стили для самого контента ниже */
.content-section { padding: 60px 0; }
.content-section h2 { font-size: 32px; margin: 40px 0 20px; color: var(--text); } 
.content-section h3 { font-size: 24px; margin: 35px 0 15px; color: var(--text); }
.content-section p { color: var(--text-light); margin-bottom: 15px; line-height: 1.7; font-size: 16px; }
.content-section ul { margin: 20px 0; padding-left: 20px; }
.content-section li { color: var(--text-light); margin-bottom: 10px; line-height: 1.6; }

/* Блоки акцентов и преимуществ во внутренних страницах */
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.highlight-box { background: rgba(14,165,233,0.05); border-left: 4px solid var(--primary); padding: 20px; border-radius: 0 12px 12px 0; margin: 25px 0; }
.highlight-box p { margin: 0; font-size: 15px; }

.features-list { display: grid; gap: 15px; margin: 25px 0; }
.feature-item { display: flex; gap: 15px; padding: 20px; background: #f1f5f9; border-radius: 12px; }
.feature-item-icon { width: 45px; height: 45px; background: rgba(14,165,233,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-item-icon svg { width: 22px; height: 22px; color: var(--primary); }
.feature-item h4 { font-size: 16px; margin-bottom: 5px; }
.feature-item p { font-size: 14px; margin: 0; }

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }
.process-step { text-align: center; padding: 25px; background: var(--white); border-radius: 16px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.process-step-number { width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin: 0 auto 15px; }
.process-step h4 { font-size: 16px; margin-bottom: 10px; }
.process-step p { font-size: 14px; margin: 0; }

/* WordPress Content Styles */
.entry-content strong { color: var(--text); }
.entry-content a { color: var(--primary); text-decoration: none; }
.entry-content a:hover { text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }

/* Mobile */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-cards { order: -1; }
    .services-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr 1fr; }
    .contacts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .two-columns { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .page-hero .hero-cards { order: 2; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .page-hero h1 { font-size: 28px; }
    .main-nav { display: none; }
    .stats { grid-template-columns: 1fr; }
    .card-row { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .extra-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .contact-card, .address-card, .quick-action { grid-column: span 1; }
    .quick-action { flex-direction: column; gap: 15px; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .top-bar .container { flex-direction: column; gap: 5px; }
    .process-steps { grid-template-columns: 1fr; }
}