/* ================= IMPORT FONTS ================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ================= VARIABLES ================= */
:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --secondary-color: #0f172a;
    --accent-color: #f59e0b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-gray: #475569;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* ================= RESET & BASE ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--secondary-color); line-height: 1.6; background-color: var(--bg-white); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* ================= UTILITY CLASSES ================= */
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; padding: 0 15px; }
.section-title { font-size: 2rem; font-weight: 700; color: var(--secondary-color); margin-bottom: 1rem; line-height: 1.2; }
.section-subtitle { font-size: 1.25rem; color: var(--primary-color); font-weight: 500; margin-bottom: 1rem; }
.section-text { color: var(--text-gray); margin-bottom: 1.5rem; font-size: 1.1rem; }
.center { text-align: center; }

/* Кнопки */
.btn { display: inline-block; padding: 12px 24px; font-weight: 600; border-radius: var(--border-radius); cursor: pointer; text-align: center; border: none; transition: var(--transition); }
.btn-primary { background-color: var(--primary-color); color: white; box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background-color: var(--primary-color); color: white; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ================= HEADER ================= */
.main-header { background-color: var(--bg-white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; padding: 15px 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-wrapper { display: flex; align-items: center; gap: 10px; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--secondary-color); letter-spacing: -0.5px; }
.main-nav { display: none; }
@media (min-width: 992px) { 
    .main-nav { display: block; }
    .nav-list { display: flex; gap: 30px; }
    .nav-link { color: var(--secondary-color); font-weight: 500; font-size: 0.95rem; }
    .nav-link:hover { color: var(--primary-color); }
}
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: block; } }

/* ================= HERO SECTION ================= */
.hero-section { position: relative; padding: 60px 0 80px; overflow: hidden; color: white; background-color: #1a202c; }
.hero-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.4; }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 992px) { 
    .hero-content { flex-direction: row; align-items: center; justify-content: space-between; }
    .hero-text { flex: 1; padding-right: 50px; }
    .hero-form-wrapper { flex: 0 0 400px; }
}
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.1; }
.hero-subtitle { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }
.hero-features-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hero-features-list i { color: var(--primary-color); }

/* FORM STYLING */
.hero-form-wrapper { background: var(--bg-white); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); color: var(--secondary-color); }
.form-header h3 { font-size: 1.5rem; margin-bottom: 5px; }
.form-header p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 5px; color: var(--secondary-color); }
.form-input { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 1rem; transition: var(--transition); font-family: inherit; }
.form-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }
.form-disclaimer { font-size: 0.75rem; color: var(--text-gray); margin-top: 15px; text-align: center; }
.form-disclaimer a { text-decoration: underline; }

/* ================= TRUST SECTION ================= */
.trust-section { background-color: var(--bg-light); padding: 30px 0; border-bottom: 1px solid #e2e8f0; }
.trust-text { text-align: center; font-size: 0.9rem; color: var(--text-gray); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.trust-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; color: #94a3b8; }
.trust-item { font-size: 1.5rem; display: flex; align-items: center; gap: 8px; font-weight: 600; transition: var(--transition); }
.trust-item:hover { color: var(--primary-color); }

/* ================= ABOUT SECTION ================= */
.about-section { padding: 80px 0; }
.about-container { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 992px) { 
    .about-container { flex-direction: row; align-items: center; }
    .about-image-wrapper { flex: 1; }
    .about-content { flex: 1; padding-left: 40px; }
}
.about-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--border-radius); box-shadow: var(--shadow-md); }
.about-stats { display: flex; gap: 40px; margin-top: 30px; border-top: 1px solid #e2e8f0; padding-top: 20px; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--primary-color); }
.stat-label { font-size: 0.9rem; color: var(--text-gray); }

/* ================= SERVICES SECTION ================= */
.services-section { padding: 80px 0; background-color: var(--bg-light); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 50px; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { background: var(--bg-white); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid transparent; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.icon-wrapper { width: 60px; height: 60px; background-color: rgba(16, 185, 129, 0.1); color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.service-card h4 { font-size: 1.25rem; margin-bottom: 10px; color: var(--secondary-color); }
.service-card p { color: var(--text-gray); font-size: 0.95rem; }

/* ================= BLOG SECTION ================= */
.blog-section { padding: 80px 0; }
.section-intro { color: var(--text-gray); margin-bottom: 50px; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { background: var(--bg-white); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.3s ease; }
.blog-card:hover .blog-img { transform: scale(1.05); }
.blog-content { padding: 20px; }
.blog-date { font-size: 0.8rem; color: var(--primary-color); font-weight: 600; text-transform: uppercase; display: block; margin-bottom: 10px; }
.blog-title { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.blog-title a:hover { color: var(--primary-color); }
.blog-excerpt { font-size: 0.9rem; color: var(--text-gray); }

/* ================= FOOTER ================= */
.main-footer { background-color: var(--secondary-color); color: #cbd5e1; padding: 60px 0 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 60px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: white; font-weight: 700; font-size: 1.2rem; }
.footer-desc { max-width: 300px; line-height: 1.6; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer-contacts li, .footer-links li { margin-bottom: 12px; }
.footer-contacts i { margin-right: 10px; color: var(--primary-color); }
.footer-links a:hover { color: var(--primary-color); }
.footer-bottom { background-color: #020617; padding: 20px 0; text-align: center; border-top: 1px solid #334155; }
.footer-bottom p { font-size: 0.8rem; opacity: 0.7; }

/* ================= ARTICLE & BLOG STYLES ================= */
.page-header { background-color: var(--bg-light); padding: 40px 0; text-align: center; border-bottom: 1px solid #e2e8f0; }
.breadcrumbs { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 15px; }
.breadcrumbs a:hover { color: var(--primary-color); text-decoration: underline; }
.article-container { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 60px 15px; max-width: var(--container-width); margin: 0 auto; }
@media (min-width: 992px) { .article-container { grid-template-columns: 2fr 1fr; } }
.article-main img { border-radius: var(--border-radius); margin: 20px 0; box-shadow: var(--shadow-md); }
.article-meta { margin-bottom: 20px; font-size: 0.9rem; color: var(--text-gray); display: flex; gap: 20px; align-items: center; }
.article-body h2 { font-size: 1.8rem; color: var(--secondary-color); margin-top: 40px; margin-bottom: 15px; }
.article-body h3 { font-size: 1.4rem; color: var(--secondary-color); margin-top: 30px; margin-bottom: 10px; }
.article-body p { margin-bottom: 1.2rem; font-size: 1.05rem; line-height: 1.8; color: #334155; }
.article-body ul { list-style: disc; margin-left: 20px; margin-bottom: 20px; color: #334155; }
.article-body li { margin-bottom: 10px; }
.article-cta-box { background-color: #f0fdf4; border: 1px solid var(--primary-color); border-radius: var(--border-radius); padding: 30px; margin: 40px 0; text-align: center; }
.article-cta-box h3 { margin-top: 0; color: var(--primary-dark); }
.author-box { background: var(--bg-light); padding: 20px; border-radius: var(--border-radius); margin-top: 50px; display: flex; align-items: center; gap: 20px; border-left: 4px solid var(--primary-color); }
.author-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-info h4 { margin-bottom: 5px; font-size: 1.1rem; }
.author-info p { font-size: 0.9rem; color: var(--text-gray); margin: 0; }
.sidebar-widget { background: var(--bg-white); padding: 25px; border: 1px solid #e2e8f0; border-radius: var(--border-radius); margin-bottom: 30px; }
.widget-title { font-size: 1.2rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); display: inline-block; }
.widget-links li { margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; }
.widget-links a { font-weight: 500; color: var(--secondary-color); display: block; }
.widget-links a:hover { color: var(--primary-color); }
.widget-links span { font-size: 0.8rem; color: var(--text-gray); display: block; margin-top: 5px; }

/* ================= LEGAL PAGES STYLES ================= */
.legal-page { padding: 60px 0; background-color: var(--bg-white); }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { font-size: 2.2rem; margin-bottom: 30px; color: var(--secondary-color); border-bottom: 2px solid #e2e8f0; padding-bottom: 20px; }
.legal-content h2 { font-size: 1.5rem; margin-top: 30px; margin-bottom: 15px; color: var(--secondary-color); }
.legal-content p { margin-bottom: 15px; color: #475569; font-size: 0.95rem; }
.legal-content ul { list-style: disc; margin-left: 20px; margin-bottom: 20px; }
.legal-content li { margin-bottom: 8px; color: #475569; }
.alert-box { background-color: #fff4e5; border-left: 5px solid #f97316; padding: 20px; margin: 30px 0; border-radius: 4px; }
.alert-box strong { color: #c2410c; }
.map-responsive { overflow: hidden; padding-bottom: 56.25%; position: relative; height: 0; margin-top: 20px; margin-bottom: 30px; border-radius: var(--border-radius); box-shadow: var(--shadow-md); }
.map-responsive iframe { left: 0; top: 0; height: 100%; width: 100%; position: absolute; }