/*
Theme Name: LightSEO
Description: Легкая, адаптивная и SEO-оптимизированная тема. (v1.24.0 - Direct Header Accent Color for Icons)
Author: Web Developer
Version: 1.24.0
Text Domain: lightseo
*/
:root {
    --bg-color: #f8f9fa;
    --content-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --link-color: #0d6efd;
    --header-btn-color: #f97316;
    --topbar-icon-color: #f97316;
    --border-color: #e9ecef;
    --container-width: 1200px;
}

html { box-sizing: border-box; overflow-x: hidden; }
*, *:before, *:after { box-sizing: inherit; }

body {
    margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color); color: var(--text-color); line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden; width: 100%;
}
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; width: 100%; }
a { color: var(--link-color); text-decoration: none; transition: color 0.2s ease-in-out; }
a:hover { text-decoration: underline; color: #0a58ca; }

/* ==========================================================================
   ВЕРХНЯЯ ПАНЕЛЬ (TOP BAR)
   ========================================================================== */
.top-bar { background-color: var(--text-color); color: #ffffff; font-size: 1rem; padding: 12px 0; }
.top-bar-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-contact { display: flex; align-items: center; gap: 6px; }
.top-contact a { color: #ffffff; text-decoration: none; transition: color 0.2s; }
.top-contact a:hover { color: #cccccc; }
.social-link { color: #ffffff; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; transition: all 0.2s; }
.social-link:hover { background-color: #ffffff; color: var(--text-color); text-decoration: none; }

.top-bar.v2 { background-color: #ffffff; color: var(--text-color); padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.top-bar.v2 .top-bar-container { justify-content: center; gap: 60px; }
.top-bar-info-block { display: flex; align-items: center; gap: 15px; }
.top-bar-icon { 
    width: 44px; height: 44px; border-radius: 50%; 
    border: 2px solid var(--header-btn-color); color: var(--header-btn-color); 
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; 
}
.top-bar-text { display: flex; flex-direction: column; font-size: 0.9rem; line-height: 1.4; text-align: left; }
.top-bar-text strong { font-size: 1.05rem; font-weight: 700; color: var(--text-color); }
.top-bar-text span, .top-bar-text a { color: var(--text-muted); text-decoration: none; }
.top-bar-text a:hover { color: var(--link-color); }

/* ==========================================================================
   ЕДИНАЯ ШАПКА
   ========================================================================== */
.site-header { background-color: var(--content-bg); padding: 15px 0; border-bottom: 1px solid var(--border-color); position: relative; z-index: 100; }
.header-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap !important; gap: 20px; }
.site-branding { flex: 0 1 auto; }
.site-title { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.5px; text-transform: none; }
.site-title a { color: var(--text-color); }
.site-description { display: none; }

.header-right { display: flex; align-items: center; gap: 30px; flex: 1; justify-content: flex-end; }

@media (min-width: 993px) { .main-navigation { display: block !important; } }
.main-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; align-items: center; }
.main-navigation li { position: relative; }
.main-navigation a { color: var(--text-color); font-weight: 600; font-size: 0.95rem; display: block; padding: 10px 0; transition: color 0.2s; }
.main-navigation a:hover { color: var(--link-color); text-decoration: none; filter: none; }
.main-navigation .current-menu-item > a { color: var(--link-color); pointer-events: none; }

.main-navigation .sub-menu { display: none; position: absolute; top: 100%; left: 0; background-color: #ffffff; min-width: 220px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 0; z-index: 999; flex-direction: column; gap: 0; margin: 0; }
.main-navigation li:hover > .sub-menu { display: flex; }
.main-navigation .sub-menu li { width: 100%; }
.main-navigation .sub-menu a { padding: 10px 20px; font-weight: 500; color: var(--text-color); }
.main-navigation .sub-menu a:hover { background-color: #f8f9fa; color: var(--link-color); }
.main-navigation .sub-menu .sub-menu { top: 0; left: 100%; }

.header-phone-btn { background-color: var(--header-btn-color) !important; color: #ffffff !important; border-radius: 30px; padding: 10px 24px; font-weight: 700; font-size: 0.95rem; white-space: nowrap; text-decoration: none !important; display: inline-block; transition: filter 0.3s; }
.header-phone-btn:hover { filter: brightness(0.85); text-decoration: none !important; }

.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 12px 0; }
.menu-toggle .hamburger { display: block; width: 28px; height: 3px; background-color: var(--text-color); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ==========================================================================
   КОНТЕНТ И САЙДБАР
   ========================================================================== */
.site-main-wrapper { display: flex; gap: 40px; align-items: flex-start; padding-top: 40px; padding-bottom: 60px; }
.content-area { flex: 1; min-width: 0; }
.sidebar-area { width: 320px; flex-shrink: 0; }
.widget { background-color: var(--content-bg); padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 30px; }
.widget-title { margin-top: 0; font-size: 1.25rem; margin-bottom: 15px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.widget ul li:last-child { border-bottom: none; }
.lightseo-popular-list { list-style: none; padding: 0; margin: 0; }
.lightseo-popular-list li { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.lightseo-popular-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.popular-item-link { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 15px !important; color: var(--text-color); text-decoration: none; }
.popular-item-link:hover .popular-item-title { color: var(--link-color); text-decoration: none; }
.popular-item-thumb { flex: 0 0 75px !important; width: 75px !important; height: 75px !important; border-radius: 6px; overflow: hidden; background-color: var(--bg-color); }
.popular-item-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; margin: 0 !important; }
.popular-item-info { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.popular-item-title { font-size: 0.95rem; font-weight: 500; line-height: 1.35; color: var(--text-color); transition: color 0.2s; }
.popular-item-date { font-size: 0.78rem; color: var(--text-muted); }
.lightseo-author-widget { text-align: center; }
.lightseo-author-widget img { border-radius: 50%; max-width: 100px; height: auto; margin-bottom: 15px; border: 3px solid var(--border-color); }
.lightseo-author-widget h4 { margin: 0 0 10px 0; font-size: 1.2rem; }
.lightseo-author-widget p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; }
.lightseo-author-widget a.author-link { display: inline-block; padding: 6px 15px; background: var(--link-color); color: #fff; border-radius: 4px; text-decoration: none; font-size: 0.85rem; }
.lightseo-author-widget a.author-link:hover { background: #0a58ca; }
.lightseo-banner-widget { text-align: center; }
.lightseo-banner-widget img { max-width: 100%; height: auto; display: block; border-radius: 6px; }

/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ И ЗАПИСИ
   ========================================================================== */
.breadcrumbs { margin-bottom: 20px; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs ol { list-style: none !important; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; list-style: none !important; margin: 0; }
.breadcrumbs li.sep { color: #adb5bd; margin: 0 8px; font-size: 0.9rem; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--link-color); }
.post { background-color: var(--content-bg); padding: 32px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 40px; overflow: hidden; }
.entry-title { margin: 0 0 15px 0; font-size: 1.75rem; }
.entry-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.post-thumbnail { margin-bottom: 25px; text-align: center; }
.post-thumbnail img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 0 auto; }
img, table, iframe, video { max-width: 100%; height: auto; }

/* ==========================================================================
   ФУТЕР И ФОРМЫ (ОБЩИЕ)
   ========================================================================== */
.site-footer { text-align: center; padding: 40px 0; margin-top: 0; background-color: var(--text-color); color: #ffffff; }
.site-footer a { color: #ffffff; text-decoration: underline; }
.site-footer a:hover { color: #cccccc; text-decoration: none; }
#scrollToTop { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99; font-size: 24px; border: none; outline: none; background-color: var(--link-color); color: white; cursor: pointer; width: 48px; height: 48px; padding: 0; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.2); align-items: center; justify-content: center; transition: background-color 0.3s; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], textarea, select {
    width: 100%; padding: 12px 18px; margin-bottom: 15px; border: 1px solid var(--border-color);
    border-radius: 8px; background-color: #ffffff !important; color: var(--text-color) !important;
    font-family: inherit; font-size: 1rem; box-sizing: border-box; transition: border-color 0.3s, box-shadow 0.3s;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus { outline: none; border-color: var(--link-color); box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15); }
input[type="submit"], button[type="submit"] {
    display: inline-block; background-color: var(--link-color); color: #fff; padding: 15px 35px;
    border-radius: 30px; border: none; text-decoration: none !important; font-weight: bold;
    font-size: 1.1rem; cursor: pointer; transition: filter 0.3s ease, background 0.3s ease;
}
input[type="submit"]:hover, button[type="submit"]:hover { filter: brightness(0.85); text-decoration: none !important; }

.cta-box form { text-align: left; margin-top: 25px; }
.cta-box form label { display: block; text-align: left; font-weight: 500; margin-bottom: 8px; color: inherit; }
.cta-box form input[type="checkbox"], .cta-box form input[type="radio"] { width: auto; margin-right: 10px; margin-bottom: 0; display: inline-block; }
.cta-box form .wpcf7-list-item label, .cta-box form .wpforms-field-checkbox label { display: inline-flex; align-items: center; font-weight: normal; margin-bottom: 0; }
.cta-section.v3 input[type="submit"], .cta-section.v3 button[type="submit"] { background-color: var(--text-color) !important; color: #ffffff !important; }
.cta-section.v3 input[type="submit"]:hover, .cta-section.v3 button[type="submit"]:hover { background-color: #000000 !important; filter: none; }

/* ==========================================================================
   СТИЛИ ЛЕНДИНГА (ГЛАВНАЯ СТРАНИЦА)
   ========================================================================== */
.lightseo-landing .container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.landing-section { padding: 80px 0; overflow: hidden; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 40px; }

/* Главный экран и Оверлей */
.hero-section { background-color: var(--bg-color); background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; text-align: center; padding: 120px 0; border-bottom: 1px solid var(--border-color); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.65); z-index: 1; }
.hero-container { position: relative; z-index: 2; }
.hero-content { margin: 0 auto; max-width: 800px; }
.hero-title { font-size: 3.5rem; line-height: 1.2; margin: 0 0 20px 0; color: var(--text-color); transition: color 0.3s; }
.hero-subtitle { font-size: 1.25rem; color: #666; margin: 0 0 40px 0; transition: color 0.3s; }
.btn-primary { display: inline-block; background-color: var(--link-color); color: #fff; padding: 15px 35px; border-radius: 30px; text-decoration: none !important; font-weight: bold; font-size: 1.1rem; transition: background 0.3s ease, filter 0.3s; }
.hero-section.has-bg { border-bottom: none; }
.hero-section.has-bg .hero-title, .hero-section.has-bg .hero-subtitle { color: #ffffff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }

/* V2 & V4 */
.hero-section.v2, .hero-section.v4 { text-align: left; }
.hero-section.v2 .hero-content, .hero-section.v4 .hero-content { margin-left: 0; margin-right: auto; max-width: 750px; }
/* V3 */
.hero-section.v3 { text-align: right; }
.hero-section.v3 .hero-content { margin-left: auto; margin-right: 0; max-width: 750px; }

.hero-buttons { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
.hero-section.v3 .hero-buttons { justify-content: flex-end; }
.btn-secondary { display: inline-block; background-color: transparent; color: var(--text-color); padding: 13px 33px; border-radius: 30px; border: 2px solid var(--text-color); font-weight: bold; font-size: 1.1rem; text-decoration: none !important; transition: all 0.3s; }
.hero-section.has-bg .btn-secondary { color: #ffffff; border-color: #ffffff; }
.btn-secondary:hover { background-color: var(--link-color); border-color: var(--link-color); color: #ffffff !important; }

/* ==========================================================================
   СУПЕР-КОМПАКТНАЯ ФОРМА В БЛОКЕ HERO (V5) 
   ========================================================================== */
.hero-section.v5 { text-align: left; }
.hero-section.v5 .hero-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.hero-section.v5 .hero-content { flex: 1; min-width: 300px; margin: 0; max-width: 600px; }
.hero-section.v5 .hero-title, .hero-section.v5 .hero-subtitle { margin-left: 0; margin-right: auto; }

.hero-section.v5 .hero-form-side {
    flex: 0 0 320px !important;
    width: 100%;
    background: #ffffff !important; 
    padding: 25px !important; 
    border-radius: 10px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important; 
    color: var(--text-color) !important; 
}

.hero-section.v5 .hero-form-side h3 { 
    margin: 0 0 5px 0 !important; font-size: 1.25rem !important; 
    text-align: center !important; text-shadow: none !important; color: var(--text-color) !important; line-height: 1.2 !important; 
}
.hero-section.v5 .hero-form-side > p { 
    margin: 0 0 12px 0 !important; color: var(--text-muted) !important; 
    text-align: center !important; text-shadow: none !important; font-size: 0.85rem !important; line-height: 1.2 !important; 
}

.hero-section.v5 .hero-form-side form,
.hero-section.v5 .hero-form-side .wpforms-container,
.hero-section.v5 .hero-form-side .wpforms-form { 
    margin: 0 !important; padding: 0 !important; text-align: left !important; 
}
.hero-section.v5 .hero-form-side form p, 
.hero-section.v5 .hero-form-side form div,
.hero-section.v5 .hero-form-side form span { 
    margin: 0 0 6px 0 !important; padding: 0 !important; line-height: 1 !important; text-align: left !important;
}
.hero-section.v5 .hero-form-side form br { display: none !important; }
.hero-section.v5 .hero-form-side form span.wpcf7-form-control-wrap { margin: 0 !important; display: block !important; }

.hero-section.v5 .hero-form-side form label { 
    text-align: left !important; font-size: 0.8rem !important; 
    margin: 0 0 3px 0 !important; padding: 0 !important;
    display: block !important; font-weight: 600 !important; color: #555 !important; line-height: 1 !important;
}
.hero-section.v5 .hero-form-side input[type="text"], 
.hero-section.v5 .hero-form-side input[type="email"], 
.hero-section.v5 .hero-form-side input[type="tel"] {
    padding: 0 10px !important; margin: 0 !important; font-size: 0.85rem !important; 
    border-radius: 4px !important; height: 36px !important; min-height: 36px !important;
    line-height: 36px !important; text-align: left !important;
}
.hero-section.v5 .hero-form-side textarea { 
    padding: 8px 10px !important; margin: 0 !important; font-size: 0.85rem !important;
    border-radius: 4px !important; height: 55px !important; min-height: 55px !important; 
    resize: none !important; text-align: left !important;
}
.hero-section.v5 .hero-form-side form .wpcf7-list-item,
.hero-section.v5 .hero-form-side form .wpforms-field-checkbox { 
    margin: 4px 0 10px 0 !important; display: block !important; text-align: left !important; 
}
.hero-section.v5 .hero-form-side form .wpcf7-list-item label,
.hero-section.v5 .hero-form-side form .wpforms-field-checkbox label,
.hero-section.v5 .hero-form-side form .wpforms-field-checkbox label * { 
    display: flex !important; align-items: flex-start !important; 
    font-weight: normal !important; font-size: 0.7rem !important; line-height: 1.1 !important; color: var(--text-muted) !important; margin: 0 !important; text-align: left !important;
}
.hero-section.v5 .hero-form-side form input[type="checkbox"], 
.hero-section.v5 .hero-form-side form input[type="radio"] { 
    margin: 1px 6px 0 0 !important; flex-shrink: 0 !important; width: auto !important; height: auto !important; 
}
.hero-section.v5 .hero-form-side input[type="submit"], 
.hero-section.v5 .hero-form-side button[type="submit"] { 
    width: 100% !important; margin: 0 !important; padding: 10px 15px !important; font-size: 0.95rem !important; border-radius: 30px !important;
    height: auto !important; line-height: 1.2 !important; text-align: center !important;
}
.hero-section.v5 .hero-form-side form p:empty { display: none !important; }

/* ==========================================================================
   ОСТАЛЬНЫЕ БЛОКИ
   ========================================================================== */
.about-section { background-color: #fff; }
.about-wrapper { display: flex; align-items: flex-start; gap: 50px; }
.about-image { flex: 0 0 40%; }
.about-image img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.about-content { flex: 1; }
.about-title { margin-top: 0; font-size: 2.5rem; }
.about-subtitle { font-size: 1.2rem; font-weight: 600; margin-bottom: 25px; color: var(--text-color); }
.about-text p { color: var(--text-muted); margin-bottom: 15px; }

.services-section { background-color: #f8f9fa; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: #fff; padding: 40px 30px; border-radius: 12px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.04); border: 1px solid var(--border-color); display: flex; flex-direction: column; transition: transform 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.service-card h3 { margin: 0 0 15px 0; font-size: 1.3rem; }
.service-card p { color: var(--text-muted); margin-bottom: 25px; flex-grow: 1; }
.service-btn { display: inline-block; padding: 8px 25px; background-color: transparent; color: var(--link-color); border: 2px solid var(--link-color); border-radius: 30px; font-weight: 500; text-decoration: none !important; transition: all 0.3s; align-self: center; }

.features-section { background-color: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card { padding: 30px; background: #f8f9fa; border-radius: 12px; border: 1px solid var(--border-color); transition: transform 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); }
.feature-card h3 { margin-top: 0; color: var(--link-color); }

.pricing-section { background-color: #f8f9fa; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
.pricing-card { background: #fff; padding: 40px 30px; border-radius: 16px; text-align: center; border: 1px solid var(--border-color); }
.pricing-card.highlighted { border: 2px solid var(--link-color); transform: scale(1.05); box-shadow: 0 10px 30px rgba(13, 110, 253, 0.15); }
.pricing-card .price { font-size: 2.5rem; font-weight: bold; color: var(--text-color); margin: 20px 0; }

.faq-section { background-color: #fff; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { font-size: 1.2rem; margin: 0 0 10px 0; }

.cta-box { max-width: 600px; margin: 0 auto; padding: 40px; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.cta-box h2 { margin-top: 0; }

.blog-section { background-color: #f8f9fa; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.blog-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); transition: transform 0.3s, box-shadow 0.3s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.blog-card-img { height: 200px; background: var(--bg-color); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-content { padding: 25px; }
.blog-card-title { margin: 0 0 10px 0; font-size: 1.25rem; line-height: 1.3; }
.blog-card-title a { color: var(--text-color); }
.blog-card-excerpt { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 15px; }
.blog-card-date { font-size: 0.85rem; color: #999; font-weight: 500; }

@media (min-width: 768px) {
    .archive-layout { display: flex; align-items: flex-start; gap: 30px; }
    .archive-layout .post-thumbnail { width: 300px; margin-bottom: 0; flex-shrink: 0; }
    .archive-layout .post-thumbnail img { margin: 0; }
    .archive-layout .entry-content { flex: 1; min-width: 0; }
}

a:hover { color: var(--link-color); filter: brightness(0.85); }
.btn-primary:hover, .read-more-btn:hover, #scrollToTop:hover, .lightseo-author-widget a.author-link:hover, .service-btn:hover { 
    background-color: var(--link-color) !important; filter: brightness(0.85); color: #ffffff !important; text-decoration: none !important; 
}

.post-navigation { margin: 40px 0; padding-top: 20px; border-top: 1px solid var(--border-color); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 30px; }
.post-navigation .nav-previous, .post-navigation .nav-next { flex: 1; }
.post-navigation .nav-next { text-align: right; }
.nav-subtitle { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 5px; }
.nav-title { font-weight: 600; font-size: 1.1rem; }

.related-posts { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border-color); clear: both; }
.related-posts h3 { margin-bottom: 20px; font-size: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.related-item h4 { margin: 10px 0 0 0; font-size: 1.1rem; line-height: 1.3; }
.related-item h4 a { color: var(--text-color); }
.related-thumb { display: block; width: 100%; height: 190px; border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.related-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; margin: 0 !important; transition: opacity 0.2s; }
.related-thumb img:hover { opacity: 0.8; }

@media (max-width: 992px) {
    .header-right { gap: 15px; }
    .header-phone-btn { padding: 8px 16px; font-size: 0.85rem; }
    .hero-section.v5 .hero-form-side { flex: 1 1 100%; width: 100%; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-section.v2 .hero-content, .hero-section.v3 .hero-content, .hero-section.v4 .hero-content, .hero-section.v5 .hero-content { text-align: center; margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .hero-section.v5 .hero-container { flex-direction: column; text-align: center; }

    .site-title { font-size: 1.15rem; }
    .header-container { gap: 8px; }
    .header-phone-btn { order: 2; margin-right: 5px; padding: 6px 14px; font-size: 0.8rem; letter-spacing: -0.3px; }
    .menu-toggle { display: block; order: 3; padding: 8px 0; }
    .menu-toggle .hamburger { width: 24px; height: 2px; }
    
    .main-navigation { 
        display: none; width: 100%; position: absolute; top: 100%; left: 0; background: #ffffff;
        padding: 15px 20px; border-top: 1px solid var(--border-color); box-shadow: 0 10px 20px rgba(0,0,0,0.05); order: 4; z-index: 101;
    }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; align-items: flex-start; gap: 0; }
    .main-navigation a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border-color); }
    .main-navigation li:last-child > a { border-bottom: none; }
    .main-navigation .sub-menu { position: static; box-shadow: none; border: none; padding-left: 15px; }
    
    .site-main-wrapper { padding-top: 20px; flex-direction: column; }
    .sidebar-area { width: 100%; }
    .pricing-card.highlighted { transform: scale(1); }
    .about-wrapper { flex-direction: column; }
    .about-image { width: 100%; }
    
    .post-navigation .nav-links { flex-direction: column; gap: 15px; }
    .post-navigation .nav-next { text-align: left; }
    .related-grid { grid-template-columns: 1fr; }
    
    .top-bar-container { flex-direction: column; text-align: center; justify-content: center; }
    .top-bar.v2 .top-bar-container { flex-direction: column; gap: 20px; align-items: flex-start; }
    
    .services-section.v2 .service-card { flex-direction: column; text-align: center; }
    .services-section.v2 .service-btn { margin-left: 0; }
    .services-section.v3 .services-grid { grid-template-columns: 1fr; }
    .features-section.v3 .feature-card { flex-direction: column; gap: 15px; }
    .features-section.v3 .feature-card h3 { width: 100%; }
    .pricing-section.v2 .pricing-card { flex-direction: column; text-align: center; gap: 15px; }
    .faq-section.v2 .faq-list { grid-template-columns: 1fr; gap: 20px; }
    .blog-section.v2 .blog-card { flex-direction: column; }
    .blog-section.v2 .blog-card-img { width: 100%; flex: auto; height: 200px; }
    .cta-section.v2 .cta-box { flex-direction: column; text-align: center; gap: 30px; }
    
    .hero-section.v5 .hero-form-side { padding: 20px !important; }
}