:root {
    --primary: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #c8102e;
    --accent-hover: #a00d24;
    --text: #1d1d1f;
    --text-light: #6e6e73;
    --bg: #f5f5f7;
    --white: #ffffff;
    --border: #d2d2d7;
    --success: #16a34a;
    --shadow: 0 4px 24px rgba(29, 78, 216, 0.08);
    --shadow-lg: 0 8px 40px rgba(29, 78, 216, 0.12);
    --radius: 12px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.header-phone {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600 !important;
}

.header-phone:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 4px 8px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 0 24px 16px;
    gap: 12px;
    border-top: 1px solid var(--border);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    color: var(--text);
    font-weight: 500;
    padding: 8px 0;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 72px 0 88px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 620px;
    margin-bottom: 28px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Sections */
.section { padding: 60px 0; }
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    text-align: center;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* Survey Cards */
.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.survey-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.survey-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.survey-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block { width: 100%; }

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}

.feature-card h4 {
    color: var(--text);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Survey Form */
.survey-page { padding: 40px 0 80px; }

.survey-header {
    text-align: center;
    margin-bottom: 40px;
}

.survey-header h1 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 12px;
}

.survey-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.survey-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.question-block {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}
.question-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.question-block h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 16px;
}

.question-number {
    color: var(--primary);
    font-weight: 700;
    margin-right: 8px;
}

.options-list { display: flex; flex-direction: column; gap: 10px; }

.option-item { position: relative; }

.option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-item label {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.option-item label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.option-item input:checked + label {
    border-color: var(--primary);
    background: rgba(29, 78, 216, 0.04);
}

.option-item input:checked + label::before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px var(--white);
}

.option-item label:hover { border-color: var(--primary); }

.submit-area { margin-top: 32px; text-align: center; }

/* Thank you */
.thank-you { text-align: center; padding: 60px 20px; }

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: var(--white);
}

.thank-you h2 {
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 12px;
}

.thank-you p {
    color: var(--text-light);
    margin-bottom: 28px;
}

.thank-you-with-stats { text-align: left; max-width: 760px; }
.thank-you-with-stats .thank-you-icon,
.thank-you-with-stats h2,
.thank-you-with-stats > p { text-align: center; }

.public-stats {
    margin: 32px 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.public-stats-title {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 6px;
    text-align: center;
}

.public-stats-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 28px;
}

.public-stats-question {
    margin-bottom: 28px;
    background: var(--bg);
    border-radius: 10px;
    padding: 20px;
}

.public-stats-question h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 14px;
}

.public-stats-row { margin-bottom: 12px; }
.public-stats-row:last-child { margin-bottom: 0; }

.public-stats-row.is-user-choice .public-stats-label span:first-child {
    font-weight: 700;
    color: var(--primary);
}

.your-choice-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
}

.public-stats-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 6px;
    gap: 12px;
}

.public-stats-pct {
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.public-stats-bar {
    height: 22px;
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.public-stats-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 5px;
    transition: width 0.6s ease;
    min-width: 2%;
}

.public-stats-row.is-user-choice .public-stats-fill {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

/* Footer */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.75);
    padding: 48px 0 24px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand p { margin-top: 12px; line-height: 1.7; }

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 8px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.65);
    padding: 4px 0;
    font-size: 0.88rem;
}

.footer-links a:hover { color: var(--white); }

.footer-brand a { color: rgba(255,255,255,0.85); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 20px;
    text-align: center;
}

.footer-tagline {
    margin-top: 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state h3 {
    color: var(--text);
    margin-bottom: 8px;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .hero { padding: 48px 0 64px; }
    .survey-form { padding: 24px; }
    .header-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
}
