/*
Theme Name: Locksmith Moscow Pro
Theme URI: http://example.com/
Author: Replit Agent
Description: Высококонверсионная тема для службы вскрытия замков. Белый фон, доверие, SEO.
Version: 1.1
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --text-dark: #1a1a1a;
    --text-gray: #555;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    margin-top: 0;
}

/* Header */
.site-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary-color);
}

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

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: var(--bg-white);
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 35px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-main {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.2);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.3);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 60px 0;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 35px 30px;
    border-radius: 14px;
    transition: all 0.3s;
    text-align: left;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-price {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Trust Blocks */
.trust-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    background: var(--bg-light);
    padding: 50px;
    border-radius: 20px;
    margin: 60px 0;
}

.trust-item h4 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Floating Call Button for Mobile */
.floating-call {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1001;
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero { padding: 60px 0; }
    .trust-row { flex-direction: column; text-align: center; }
}

/* ============================================================
   BLOG CONTENT STYLES (single.php)
   ============================================================ */
.blog-content p {
    margin-bottom: 1.4em;
    line-height: 1.8;
}
.blog-content h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-top: 2.2em;
    margin-bottom: 0.7em;
    color: var(--text-dark);
    line-height: 1.3;
}
.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    color: var(--text-dark);
    line-height: 1.35;
}
.blog-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.blog-content ul,
.blog-content ol {
    margin-bottom: 1.4em;
    padding-left: 1.5em;
}
.blog-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}
.blog-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s;
}
.blog-content a:hover {
    color: var(--accent-color, #c0392b);
}
.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 14px 20px;
    margin: 1.5em 0;
    background: #f0f6ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-dark);
}
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    display: block;
    margin: 1.5em auto;
}
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.4em;
    font-size: 0.95rem;
}
.blog-content table th {
    background: #f0f6ff;
    font-weight: 700;
    padding: 10px 14px;
    border: 1px solid #dde3ec;
    text-align: left;
}
.blog-content table td {
    padding: 10px 14px;
    border: 1px solid #dde3ec;
}
.blog-content table tr:nth-child(even) {
    background: #f9fafb;
}
/* WordPress block editor compatibility */
.blog-content .wp-block-image {
    margin: 1.5em 0;
}
.blog-content .wp-block-image img {
    margin: 0;
}
.blog-content figure figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.5em;
}

/* ============================================================
   FAQ BLOCK IN BLOG CONTENT
   ============================================================ */
.blog-content .faq-container {
    background: var(--primary-color, #1e2d4d);
    padding: 32px;
    border-radius: 16px;
    margin: 2em 0;
}
.blog-content .faq-container h2 {
    color: #fff !important;
    margin-top: 0 !important;
}
.blog-content .faq-container details {
    background: rgba(255,255,255,0.06) !important;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(91,155,213,0.25) !important;
    padding: 20px 24px !important;
}
.blog-content .faq-container summary {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
}
.blog-content .faq-container summary::-webkit-details-marker { display: none; }
.blog-content .faq-container summary::before {
    content: '+ ';
    color: #5b9bd5;
    font-weight: 700;
}
.blog-content .faq-container details[open] summary::before {
    content: '− ';
}
.blog-content .faq-container details > div,
.blog-content .faq-container details p {
    color: #d0e8f8 !important;
    line-height: 1.7;
    margin-top: 14px;
    font-size: 0.97rem;
}

/* CTA block in blog content */
.blog-content .cta-blog-block,
.blog-content [class*="cta-"] {
    background: var(--primary-color, #1e2d4d) !important;
    color: #fff !important;
    border-radius: 14px;
    padding: 28px 32px !important;
    margin: 2em 0 !important;
}
.blog-content [class*="cta-"] * {
    color: inherit !important;
}
