/*
Theme Name: Smart Poll Agency
Theme URI: https://smartpoll.agency
Description: Custom theme for Smart Poll Agency based on Techno-Boutique concept.
Author: Smart Poll Dev Team
Version: 1.4
*/

/* --- 1. ЗМІННІ (DESIGN TOKENS) --- */
:root {
    --color-primary: #382E42;   /* Deep Aubergine */
    --color-accent: #8B5CF6;    /* Electric Lavender */
    --color-bg: #D1CEE5;        /* Ghost Lilac */
    --color-footer: #1A1625;    /* Midnight Void */
    --color-text: #382E42;
    --color-white: #F5F3FF;
    
    --color-success: #10B981;   /* Emerald Green */
    --shadow-soft: 0 10px 30px rgba(56, 46, 66, 0.08);

    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
}

/* --- 2. БАЗОВІ СТИЛІ --- */
* { box-sizing: border-box; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    padding-top: var(--header-height);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* --- 3. HEADER --- */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%; height: var(--header-height);
    background: rgba(249, 248, 252, 0.7); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05); z-index: 1000;
    display: flex; align-items: center;
}

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

.logo a {
    font-family: var(--font-heading); font-size: 24px; font-weight: 800;
    text-transform: uppercase; letter-spacing: -0.5px;
}
.pulse-text { color: var(--color-accent); }

/* --- МЕНЮ (DROPDOWNS) --- */
.main-navigation ul {
    display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; align-items: center;
}
.main-navigation > ul > li { position: relative; padding: 10px 0; }
.main-navigation a { font-weight: 500; font-size: 16px; color: var(--color-text); display: block; }
.main-navigation a:hover { color: var(--color-accent); }

/* Випадаюче меню */
.main-navigation ul ul {
    position: absolute; top: 100%; left: -20px;
    background: #ffffff; min-width: 240px;
    box-shadow: var(--shadow-soft); border-radius: 12px;
    padding: 15px 0; border: 1px solid rgba(0,0,0,0.05);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex; flex-direction: column; gap: 0; z-index: 999;
}
.main-navigation li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation ul ul li { display: block; width: 100%; }
.main-navigation ul ul a { padding: 10px 25px; font-size: 15px; color: #555; white-space: nowrap; }
.main-navigation ul ul a:hover { background: #f9f8fc; color: var(--color-accent); padding-left: 30px; }
.menu-item-has-children > a::after { content: ' ▾'; font-size: 12px; color: #999; margin-left: 5px; }
.menu-item-has-children > a:hover::after { color: var(--color-accent); }

.lang-switcher { font-weight: 600; font-size: 14px; margin-left: 20px; }
.lang-switcher .active { color: var(--color-accent); }

/* --- 4. FOOTER --- */
.site-footer {
    background-color: var(--color-footer); color: #b0b0b0;
    padding: 60px 0 20px; margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3, .footer-col h4 { color: var(--color-white); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 14px; }

/* Кнопки */
.btn-primary {
    background-color: var(--color-accent); color: var(--color-white);
    padding: 12px 28px; border-radius: 6px; border: none; font-weight: 600; cursor: pointer;
}
.btn-primary:hover { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }

/* --- HERO SECTION --- */
.hero-section {
    position: relative; padding: 160px 0 100px; min-height: 80vh;
    display: flex; align-items: center; overflow: hidden;
    background: radial-gradient(circle at 70% 30%, #f3f0f7 0%, var(--color-bg) 70%);
}
.hero-map-bg {
    position: absolute; top: 0; right: 0; width: 60%; height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Ukraine_map_outline.svg/1200px-Ukraine_map_outline.svg.png');
    background-size: contain; background-repeat: no-repeat; background-position: center right;
    opacity: 0.1; z-index: 0; filter: grayscale(100%) brightness(0.8);
}
.hero-content { position: relative; z-index: 1; max-width: 650px; }
.hero-tagline {
    font-size: 14px; text-transform: uppercase; letter-spacing: 2px;
    color: var(--color-accent); font-weight: 700; margin-bottom: 20px; display: inline-block;
}
.hero-title { font-size: 56px; line-height: 1.1; margin-bottom: 30px; color: var(--color-primary); }
.hero-desc { font-size: 20px; color: #666; margin-bottom: 40px; max-width: 500px; }
.trust-badges { display: flex; gap: 40px; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(0,0,0,0.05); }
.badge-item h4 { font-size: 32px; color: var(--color-accent); margin-bottom: 5px; }
.badge-item p { font-size: 14px; color: #888; margin: 0; text-transform: uppercase; font-weight: 600; }

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-map-bg { width: 100%; opacity: 0.05; }
    .trust-badges { flex-wrap: wrap; gap: 20px; }
}

/* --- SERVICES NAVIGATOR --- */
.services-section { padding: 80px 0; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.service-card {
    background: var(--color-white); padding: 50px; border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03); text-decoration: none !important;
    display: block; position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(56, 46, 66, 0.08); }
.card-icon {
    width: 60px; height: 60px; background: rgba(139, 92, 246, 0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 30px; color: var(--color-accent);
}
.card-icon svg { width: 32px; height: 32px; stroke-width: 2; }
.service-card h3 { font-size: 28px; margin-bottom: 15px; color: var(--color-primary); }
.service-card p { color: #666; font-size: 18px; margin: 0; max-width: 90%; }
.card-arrow {
    position: absolute; bottom: 40px; right: 40px; opacity: 0;
    transform: translateX(-10px); transition: all 0.3s ease; color: var(--color-accent);
}
.service-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 30px; }
}

/* --- ARCHIVE SECTION --- */
.archive-section { padding: 100px 0; background-color: var(--color-white); }
.section-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 50px; }
.section-title { font-size: 42px; margin-bottom: 0; }
.view-all-link { font-weight: 600; color: var(--color-primary); border-bottom: 2px solid var(--color-accent); padding-bottom: 2px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.report-card {
    background-color: var(--color-bg); border-radius: 12px; padding: 30px;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 280px; border: 1px solid transparent; transition: all 0.3s ease;
}
.report-card:hover { border-color: var(--color-accent); transform: translateY(-5px); }
.report-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.report-tag {
    font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
    padding: 6px 10px; background: rgba(139, 92, 246, 0.1); color: var(--color-accent); border-radius: 4px;
}
.report-date { font-size: 13px; color: #999; }
.report-card h4 { font-size: 22px; line-height: 1.4; margin-bottom: 20px; flex-grow: 1; }
.report-link { font-size: 14px; font-weight: 700; color: var(--color-primary); display: flex; align-items: center; gap: 8px; }

@media (max-width: 768px) {
    .archive-grid { display: flex; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; gap: 20px; }
    .report-card { min-width: 280px; scroll-snap-align: start; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* --- SINGLE REPORT PAGE --- */
.single-report-container { max-width: 800px; margin: 0 auto; padding: 120px 20px 80px; }
.report-header { text-align: center; margin-bottom: 60px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 40px; }
.report-meta-top { font-size: 14px; color: #888; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.report-category a { color: var(--color-accent); }
.report-title { font-size: 48px; line-height: 1.2; margin-bottom: 20px; }
.report-lead { font-size: 22px; color: #555; font-weight: 500; max-width: 90%; margin: 0 auto; }
.report-content { font-size: 19px; line-height: 1.8; color: #333; margin-bottom: 60px; }
.report-content h2 { margin-top: 40px; font-size: 32px; }
.report-content h3 { margin-top: 30px; font-size: 24px; }
.report-content p { margin-bottom: 24px; }
.report-content ul { list-style: disc; margin-left: 20px; margin-bottom: 24px; }
.report-actions { background: var(--color-white); border: 1px solid rgba(0,0,0,0.05); padding: 30px; border-radius: 12px; box-shadow: var(--shadow-soft); }
.download-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.download-box .icon { font-size: 30px; }
.download-box .text { flex-grow: 1; }
.download-box .text strong { display: block; font-size: 18px; }
.download-box .text span { font-size: 14px; color: #888; }
@media (max-width: 768px) {
    .report-title { font-size: 32px; }
    .report-content { font-size: 17px; }
    .download-box { flex-direction: column; text-align: center; }
}

/* --- PAGE: TEAM & MAP --- */
.team-hero { padding: 80px 0 40px; text-align: center; }
.lead-text { font-size: 20px; color: #666; max-width: 600px; margin: 0 auto; }
.section-heading { font-size: 32px; margin-bottom: 40px; text-align: center; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }
.team-card { background: #fff; padding: 30px; border-radius: 12px; text-align: center; box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.02); }
.avatar-placeholder { width: 100px; height: 100px; background: #f1eff5; border-radius: 50%; margin: 0 auto 20px; position: relative; overflow: hidden; }
.avatar-placeholder::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; background: #dcd6e5; border-radius: 50%; }
.avatar-placeholder::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; background: #dcd6e5; border-radius: 50%; }
.team-card h3 { font-size: 20px; margin-bottom: 5px; }
.team-card .role { color: var(--color-accent); font-weight: 700; font-size: 14px; text-transform: uppercase; margin-bottom: 10px; }
.team-card .exp { font-size: 14px; color: #777; }

/* Інтерактивна мапа */
.network-map-section { padding-bottom: 100px; text-align: center; }
.interactive-map-container {
    position: relative; max-width: 1000px; margin: 0 auto; height: auto;
    background: transparent; box-shadow: none; overflow: visible;
}
.map-wrapper { position: relative; width: 100%; display: flex; justify-content: center; }
.map-image {
    width: 100%; height: auto; display: block; margin: 0; opacity: 0.8;
    filter: brightness(0) saturate(100%) invert(16%) sepia(11%) saturate(2350%) hue-rotate(224deg) brightness(93%) contrast(92%);
}
.map-point {
    position: absolute; width: 14px; height: 14px; background: var(--color-accent);
    border-radius: 50%; cursor: pointer; z-index: 10; transform: translate(-50%, -50%);
}
.pulse-ring {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--color-accent);
    animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 300%; height: 300%; opacity: 0; }
}

.point-kyiv { top: 35%; left: 50%; }
.point-kharkiv { top: 38%; left: 82%; }
.point-lviv { top: 63%; left: 12%; }
.point-odesa { top: 72%; left: 52%; }

.map-tooltip {
    position: absolute; background: #382E42; color: #fff;
    padding: 10px 15px; border-radius: 6px; font-size: 13px;
    pointer-events: none; opacity: 0; transition: opacity 0.2s;
    z-index: 20; width: 180px; text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.map-tooltip strong { color: var(--color-accent); display: block; margin-top: 5px; font-size: 15px; }
@media (max-width: 768px) {
    .team-grid { grid-template-columns: 1fr; }
    .interactive-map-container { height: 300px; }
    .map-point { width: 12px; height: 12px; }
}

/* --- ARCHIVE PAGE STYLES --- */
.archive-container { padding: 120px 20px 80px; }
.archive-header { text-align: center; margin-bottom: 60px; }
.archive-header h1 { font-size: 48px; margin-bottom: 10px; }
.archive-header p { color: #666; font-size: 18px; }
.archive-layout { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: start; }
.archive-sidebar {
    background: #fff; padding: 30px; border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05); position: sticky; top: 100px;
}
.filter-group { margin-bottom: 30px; }
.filter-group h3 { font-size: 18px; margin-bottom: 15px; }
#search-input, .filter-select {
    width: 100%; padding: 12px; border: 1px solid #ddd;
    border-radius: 6px; font-family: var(--font-body); font-size: 16px;
}
.filter-list li { margin-bottom: 10px; }
.filter-list label { cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 16px; }
.filter-list input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-accent); }
.archive-results .archive-grid { grid-template-columns: repeat(2, 1fr); }
.pagination { margin-top: 50px; display: flex; justify-content: center; gap: 10px; }
.pagination a, .pagination span {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-weight: 600;
}
.pagination .current { background: var(--color-accent); color: #fff; }
.pagination a { background: #fff; color: var(--color-primary); }
.pagination a:hover { background: #eee; }
@media (max-width: 900px) {
    .archive-layout { grid-template-columns: 1fr; }
    .archive-sidebar { position: static; margin-bottom: 40px; }
}

/* --- SERVICE PAGE (Layout & Accordion) --- */
.service-layout-container { padding: 60px 20px 100px; }
.service-layout { display: grid; grid-template-columns: 250px 1fr; gap: 80px; }
.service-sidebar { position: sticky; top: 120px; height: fit-content; }
.anchor-nav ul { border-left: 2px solid #eee; padding-left: 20px; }
.anchor-nav li { margin-bottom: 15px; }
.anchor-nav a { color: #888; font-weight: 500; display: block; transition: 0.2s; }
.anchor-nav a:hover, .anchor-nav a.active { color: var(--color-accent); transform: translateX(5px); }
.btn-sidebar { background: var(--color-primary); color: #fff !important; padding: 10px 20px; border-radius: 6px; text-align: center; margin-top: 20px; }

.content-block { margin-bottom: 80px; scroll-margin-top: 140px; }
.content-block h2 { font-size: 32px; margin-bottom: 20px; }
.content-block p { font-size: 19px; color: #555; margin-bottom: 20px; }

.accordion { border-top: 1px solid rgba(0,0,0,0.05); }
.accordion-item { border-bottom: 1px solid rgba(0,0,0,0.05); }
.accordion-header {
    width: 100%; padding: 25px 0; background: none; border: none; text-align: left;
    font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--color-primary);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.3s;
}
.accordion-header:hover { color: var(--color-accent); }
.accordion-header .icon { font-size: 24px; font-weight: 300; transition: 0.3s; }
.accordion-item.active .accordion-header .icon { transform: rotate(45deg); color: var(--color-accent); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; opacity: 0.5; }
.accordion-item.active .accordion-body { max-height: 200px; opacity: 1; padding-bottom: 25px; }

.check-list li { padding-left: 30px; position: relative; margin-bottom: 10px; color: #444; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-success); font-weight: bold; }
@media (max-width: 900px) {
    .service-layout { grid-template-columns: 1fr; }
    .service-sidebar { display: none; }
}

/* --- SMART PULSE (Vertical) --- */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.tech-card {
    background: #fff; padding: 30px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); text-align: left;
}
.tech-icon { font-size: 40px; margin-bottom: 20px; }
.tech-card h3 { font-size: 20px; margin-bottom: 10px; }
.tech-card p { font-size: 16px; color: #666; margin: 0; }

.content-block-full { margin-bottom: 80px; }
.quality-section {
    background: #fff; padding: 50px; border-radius: 16px; border: 1px solid rgba(0,0,0,0.03);
    text-align: center; box-shadow: var(--shadow-soft);
}
.quality-content h2 { margin-bottom: 20px; }
.quality-content p { max-width: 600px; margin: 0 auto 40px; color: #666; font-size: 18px; }
.check-list-horizontal { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; }
.check-list-horizontal li {
    font-size: 18px; font-weight: 600; color: var(--color-primary); display: flex; align-items: center; gap: 10px;
}

.calculator-section-centered { margin-top: 60px; display: flex; justify-content: center; }
.standalone-calc {
    width: 100%; max-width: 900px; background: #fff; padding: 50px;
    border-radius: 24px; box-shadow: 0 20px 60px rgba(56, 46, 66, 0.08); border: 1px solid rgba(139, 92, 246, 0.15);
}
.calc-header { margin-bottom: 40px; }
.calc-header h3 { font-size: 28px; margin-bottom: 10px; }
.calc-grid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 40px; align-items: start; }
.form-group label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 15px; color: var(--color-primary); }
.form-control {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 10px;
    font-size: 16px; font-family: var(--font-body); background: #fdfdfd; cursor: pointer;
}
.range-slider {
    width: 100%; height: 8px; background: #e5e7eb; border-radius: 5px; outline: none; -webkit-appearance: none; margin-top: 10px;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 28px; height: 28px; background: var(--color-accent);
    border-radius: 50%; cursor: pointer; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3); transition: transform 0.1s;
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.range-labels { display: flex; justify-content: space-between; font-size: 13px; color: #999; margin-top: 10px; font-weight: 600; }
.calc-result-bar {
    background: #F9F8FC; border: 1px solid rgba(0,0,0,0.03); padding: 30px;
    border-radius: 16px; display: flex; align-items: center; justify-content: space-between;
}
.result-item { display: flex; flex-direction: column; }
.result-item span { font-size: 13px; color: #888; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 5px; }
.result-item strong { font-size: 32px; color: var(--color-primary); line-height: 1; }
.result-action .btn-primary { padding: 15px 40px; font-size: 18px; }
.disclaimer { font-size: 12px; color: #aaa; margin-top: 20px; }

/* --- RESPONDENT PANEL (Landing) --- */
.panel-hero { padding: 80px 0; background: radial-gradient(circle at 20% 50%, #f3f0f7 0%, #fff 70%); }
.panel-hero .container { display: grid; grid-template-columns: 1fr 450px; gap: 60px; align-items: center; }
.panel-benefits { margin-top: 40px; display: flex; flex-direction: column; gap: 25px; }
.panel-benefits li { display: flex; align-items: center; gap: 20px; }
.panel-benefits .icon {
    font-size: 32px; width: 60px; height: 60px; background: #fff; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.panel-benefits strong { font-size: 18px; color: var(--color-primary); }
.panel-benefits span { font-size: 15px; color: #666; }
.panel-form-card {
    background: #fff; padding: 40px; border-radius: 20px;
    box-shadow: 0 20px 60px rgba(56, 46, 66, 0.1); border: 1px solid rgba(139, 92, 246, 0.1);
}
.form-header { text-align: center; margin-bottom: 30px; }
.form-header h3 { margin-bottom: 5px; font-size: 24px; }
.form-row { margin-bottom: 20px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Кастомні поля вводу (працюють для Панелі і Контактів) */
.custom-input {
    width: 100%; height: 54px; background: #F3F4F6; border: 1px solid transparent;
    border-radius: 8px; padding: 0 15px; font-size: 16px; font-family: var(--font-body); transition: 0.3s;
}
.custom-input:focus {
    background: #fff; border-color: var(--color-accent); outline: none; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.radio-group { display: flex; gap: 10px; }
.radio-btn { flex: 1; position: relative; }
.radio-btn input { position: absolute; opacity: 0; }
.radio-btn span {
    display: block; text-align: center; padding: 12px; background: #F3F4F6;
    border-radius: 8px; cursor: pointer; font-weight: 500; transition: 0.3s;
}
.radio-btn input:checked + span { background: var(--color-accent); color: #fff; }
.checkbox-row { margin-top: 20px; }
.custom-checkbox { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 13px; color: #666; }
.custom-checkbox input { accent-color: var(--color-accent); width: 18px; height: 18px; }
.btn-full { width: 100%; height: 54px; font-size: 18px; margin-top: 10px; }
.form-note { font-size: 12px; text-align: center; color: #999; margin-top: 15px; }

.panel-faq { padding: 80px 0; background: var(--color-bg); }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.faq-item h4 { font-size: 18px; color: var(--color-primary); margin-bottom: 10px; }
.faq-item p { font-size: 15px; color: #666; line-height: 1.5; }

/* --- CONTACT PAGE --- */
.contact-page-wrapper {
    padding: 120px 0 100px; background: #fff; min-height: 80vh; display: flex; align-items: center;
}
.contact-grid { display: grid; grid-template-columns: 1fr 450px; gap: 80px; align-items: start; }
.section-label {
    display: block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--color-accent); margin-bottom: 20px;
}
.contact-info h1 { font-size: 56px; line-height: 1.1; margin-bottom: 30px; }
.contact-desc { font-size: 20px; color: #666; max-width: 500px; margin-bottom: 60px; }
.contact-details { margin-bottom: 60px; }
.detail-item { margin-bottom: 40px; }
.detail-item label {
    display: block; font-size: 14px; color: #999; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;
}
.big-link {
    font-size: 32px; font-weight: 600; color: var(--color-primary);
    border-bottom: 2px solid rgba(139, 92, 246, 0.2); padding-bottom: 2px;
}
.big-link:hover { color: var(--color-accent); border-color: var(--color-accent); }
address { font-style: normal; font-size: 20px; line-height: 1.6; color: #333; }
.small-link { font-size: 18px; font-weight: 500; color: var(--color-primary); }
.social-links-minimal { display: flex; gap: 30px; }
.social-links-minimal a { font-size: 16px; font-weight: 600; color: #333; }
.social-links-minimal a:hover { color: var(--color-accent); }
.custom-textarea { height: 150px; padding-top: 15px; resize: none; }

/* Адаптив для останніх сторінок */
@media (max-width: 900px) {
    .panel-hero .container { grid-template-columns: 1fr; }
    .panel-hero-content { text-align: center; order: 2; }
    .panel-benefits { align-items: flex-start; }
    .panel-form-card { order: 1; }
    .faq-grid { grid-template-columns: 1fr; }
    
    .tech-grid { grid-template-columns: 1fr; }
    .calc-grid-row { grid-template-columns: 1fr; gap: 30px; }
    .calc-result-bar { flex-direction: column; gap: 30px; text-align: center; }
    .check-list-horizontal { flex-direction: column; gap: 15px; text-align: left; }
    .standalone-calc { padding: 30px; }

    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .contact-info h1 { font-size: 36px; }
    .big-link { font-size: 24px; }
    .contact-page-wrapper { padding-top: 40px; }
}

/* --- NEW VISUAL REPORT CARDS (З ФОТО) --- */

.report-card-visual {
    padding: 0 !important; /* Прибираємо старі відступи контейнера */
    overflow: hidden; /* Щоб фото не вилазило за заокруглені кути */
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Блок для фото */
.card-image-wrap {
    width: 100%;
    height: 220px; /* Фіксована висота фото */
    background-color: #eee;
    position: relative;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото обрізається, щоб заповнити блок */
    display: block;
    transition: transform 0.5s ease;
}

/* Ефект збільшення фото при наведенні */
.report-card-visual:hover .card-image-wrap img {
    transform: scale(1.05);
}

/* Заглушка, якщо фото немає */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1eff5 0%, #e8e6ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.no-image-placeholder::after {
    content: 'Smart Poll';
    color: #ccc;
    font-weight: 700;
    text-transform: uppercase;
}

/* Текстовий блок всередині картки */
.card-content {
    padding: 25px; /* Внутрішні відступи для тексту */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Розтягує блок на всю висоту */
}

/* Заголовок */
.report-card-visual h4 {
    margin-top: 0;
    margin-bottom: auto; /* Притискає кнопку до низу */
    font-size: 20px;
    line-height: 1.4;
    padding-bottom: 20px; /* Відступ до кнопки */
}

/* Мета дані */
.report-meta {
    margin-bottom: 15px;
}

/* Кнопка внизу */
.report-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --- NEW HERO DESIGN (Split Screen) --- */
.hero-modern-section {
    padding: 140px 0 80px; /* Більше повітря зверху */
    background: #fff; /* Білий фон як на скріні */
    min-height: 85vh; /* На весь екран */
    display: flex;
    align-items: center;
}

.hero-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Дві рівні частини */
    gap: 60px;
    align-items: center;
}

/* Ліва частина (Текст) */
.hero-text-side {
    max-width: 600px;
}

.hero-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-big-title {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase; /* Великі літери як на скріні */
    color: var(--color-primary);
    margin-bottom: 30px;
}

.hero-description {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-hero {
    display: inline-block;
    background-color: var(--color-primary); /* Темний колір кнопки */
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px; /* Кругла кнопка (pill shape) */
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
    text-transform: uppercase; /* Текст кнопки капсом */
}

.btn-hero:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* Права частина (Карта) */
.hero-map-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-interactive-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
}

.hero-map-img {
    width: 100%;
    height: auto;
    display: block;
    /* Фільтр, щоб зробити карту фіолетовою (Outline Style) */
    filter: sepia(100%) hue-rotate(220deg) saturate(300%) opacity(0.8);
    /* Якщо у вас вже фіолетовий SVG, видаліть рядок filter вище */
}

/* Точки на карті */
.hero-map-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hero-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    animation: hero-pulse 2s infinite;
}

@keyframes hero-pulse {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 300%; height: 300%; opacity: 0; }
}

/* Координати точок для Hero-карти */
.point-kyiv { top: 25%; left: 48%; }
.point-kharkiv { top: 28%; left: 78%; }
.point-lviv { top: 26%; left: 14%; }
.point-odesa { top: 70%; left: 50%; }

/* --- HEADER FIX (Align Logo Left, Menu Right) --- */
.header-container {
    display: flex;
    justify-content: space-between; /* Розносить краї */
    align-items: center;
}

.main-navigation {
    margin-left: auto; /* Притискає меню до правого краю */
}

/* Адаптив */
@media (max-width: 900px) {
    .hero-grid-layout {
        grid-template-columns: 1fr; /* Одна колонка на мобільному */
        text-align: center;
        gap: 40px;
    }
    .hero-text-side { margin: 0 auto; }
    .hero-big-title { font-size: 36px; }
    .hero-map-side { order: -1; /* Карта зверху на мобільному (або приберіть цей рядок, щоб була знизу) */ margin-bottom: 20px; }
}

/* --- FIXED HEADER LAYOUT --- */
.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}
.main-navigation { margin-left: auto !important; }

/* --- HERO SECTION (NEW PNG) --- */
.hero-modern-section {
    padding: 160px 0 100px;
    background-color: #F8F9FD; /* Світло-сірий фон як на референсі */
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-grid-layout {
    display: grid !important;
    grid-template-columns: 45% 55% !important;
    gap: 40px;
    align-items: center;
    width: 100%;
}

/* Текст */
.hero-text-side { padding-right: 20px; }
.hero-subtitle {
    display: block; font-size: 13px; font-weight: 700; color: var(--color-accent);
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 25px;
}
.hero-big-title {
    font-family: var(--font-heading); font-size: 48px; line-height: 1.1;
    font-weight: 800; text-transform: uppercase; color: var(--color-primary); margin-bottom: 30px;
}
.hero-description {
    font-size: 18px; color: #555; margin-bottom: 40px; line-height: 1.6; max-width: 90%;
}
.btn-hero {
    display: inline-block; background-color: #2D2436; color: #fff;
    padding: 16px 36px; border-radius: 50px; font-weight: 600; font-size: 15px;
    text-transform: uppercase; transition: 0.3s;
}
.btn-hero:hover {
    background-color: var(--color-accent); transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Карта */
.hero-map-side {
    position: relative; display: flex; justify-content: center; align-items: center;
}
.map-interactive-wrapper { position: relative; width: 100%; }
.hero-map-img {
    width: 100%; height: auto; display: block; max-height: 600px; object-fit: contain;
    /* Фільтри прибрано, щоб PNG відображався як є */
}

/* Точки */
.hero-map-point {
    position: absolute; width: 14px; height: 14px;
    background: var(--color-primary); border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
}
.hero-pulse {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--color-primary);
    animation: hero-pulse 2s infinite;
}
@keyframes hero-pulse {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 300%; height: 300%; opacity: 0; }
}

/* Координати (можливо треба трохи посунути, дивлячись на ваш PNG) */
.point-kyiv { top: 23%; left: 47%; }
.point-kharkiv { top: 28%; left: 78%; }
.point-lviv { top: 30%; left: 13%; }
.point-odesa { top: 72%; left: 48%; }

@media (max-width: 991px) {
    .hero-grid-layout { grid-template-columns: 1fr !important; text-align: center; }
    .hero-big-title { font-size: 32px; }
    .hero-map-side { order: -1; margin-bottom: 30px; }
    .hero-description { margin-left: auto; margin-right: auto; }
}

/* --- FIX CONTACT FORM 7 STYLES --- */
.wpcf7-form p {
    margin-bottom: 0;
}
.wpcf7-spinner {
    position: absolute; 
    margin-top: 15px;
}
.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #dc2626;
    margin-top: 5px;
}
.wpcf7-response-output {
    font-size: 14px;
    border-radius: 8px;
    padding: 10px !important;
    margin: 20px 0 0 !important;
    text-align: center;
}

/* Контейнер для блоку */
.contact-item {
    font-family: Arial, sans-serif; /* Або інший шрифт твого сайту */
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

/* Стиль для слова FACEBOOK */
.contact-label {
    font-size: 12px;
    color: #999999; /* Світло-сірий колір */
    letter-spacing: 1px; /* Відступ між літерами */
    text-transform: uppercase; /* Робить всі літери великими */
    margin-bottom: 8px;
    font-weight: 600;
}

/* Стиль для посилання Smart Poll Agency */
.facebook-link {
    text-decoration: none; /* Прибирає стандартне підкреслення */
    color: #333333; /* Темно-сірий/чорний колір тексту */
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease; /* Плавна зміна кольору при наведенні */
}

/* Ефект при наведенні мишки */
.facebook-link:hover {
    color: #4267B2; /* Синій колір Facebook при наведенні */
    text-decoration: underline; /* Додає підкреслення при наведенні */
}