/* ============================================================ */
/* GEO PAGE — /geo (AI-видимість)                               */
/* ============================================================ */

/* ===== 1. HERO ===== */
.geo-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.geo-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.geo-hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    animation: geoFloat 22s ease-in-out infinite;
}

.geo-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 97, 70, 0.06) 0%, transparent 70%);
    animation: geoFloat 28s ease-in-out infinite reverse;
}

@keyframes geoFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, 30px); }
}

.geo-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.geo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 28px;
    animation: geoFadeUp 0.6s ease;
}

.geo-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    animation: geoFadeUp 0.6s ease 0.1s both;
}

.geo-hero h1 .accent {
    color: var(--accent);
}

.geo-hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    color: var(--gray);
    margin-bottom: 36px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: geoFadeUp 0.6s ease 0.2s both;
}

/* URL form */
.geo-hero-form {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto 16px;
    animation: geoFadeUp 0.6s ease 0.3s both;
}

.geo-form-input-wrap {
    flex: 1;
    position: relative;
}

.geo-form-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
    font-size: 1rem;
    pointer-events: none;
}

.geo-form-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-family: 'Onest', sans-serif;
    font-size: 1.05rem;
    background: white;
    transition: all 0.2s ease;
}

.geo-form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 97, 70, 0.12);
}

.geo-form-submit {
    padding: 18px 28px;
    font-size: 1.05rem;
    border-radius: 14px;
    white-space: nowrap;
}

.geo-form-error {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto 20px;
    color: #ef4444;
    font-size: 0.92rem;
    font-weight: 500;
}

.geo-form-error.geo-form-error-visible {
    display: flex;
}

.geo-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 36px;
    margin-top: 24px;
    animation: geoFadeUp 0.6s ease 0.4s both;
}

.geo-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.92rem;
    font-weight: 500;
}

.geo-trust-item i {
    color: var(--accent);
    font-size: 0.95rem;
}

@keyframes geoFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 2. PROBLEM ===== */
.geo-problem {
    padding: 100px 0;
    background: var(--bg);
}

.geo-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.geo-problem-card {
    background: white;
    padding: 36px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.geo-problem-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.geo-problem-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(255, 97, 70, 0.25);
}

.geo-problem-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.geo-problem-card p {
    color: var(--gray);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ===== 3. HOW IT WORKS ===== */
.geo-how {
    padding: 100px 0;
    background: var(--bg-alt);
}

.geo-how-stage {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.geo-how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.geo-how-step {
    position: relative;
    padding: 22px 16px;
    background: var(--bg-alt);
    border-radius: 14px;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0.5;
}

.geo-how-step.geo-step-active {
    opacity: 1;
    background: white;
    box-shadow: 0 8px 24px rgba(255, 97, 70, 0.12);
    transform: translateY(-3px);
}

.geo-how-step.geo-step-done { opacity: 1; }

.geo-how-step-num {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: var(--border);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.geo-step-active .geo-how-step-num,
.geo-step-done .geo-how-step-num {
    background: var(--accent);
}

.geo-how-step-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.geo-step-active .geo-how-step-icon {
    background: var(--accent);
    color: white;
    animation: geoPulse 1.4s ease-in-out infinite;
}

@keyframes geoPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 97, 70, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 97, 70, 0); }
}

.geo-how-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.geo-how-step p {
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.4;
}

/* Chat demo */
.geo-how-demo {
    background: var(--bg-alt);
    border-radius: 18px;
    padding: 24px;
}

.geo-how-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.geo-how-demo-models {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.geo-model-pill {
    background: white;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.3s ease;
}

.geo-model-pill.geo-model-active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(255, 97, 70, 0.3);
}

.geo-how-demo-niche {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.geo-how-demo-niche small {
    color: var(--gray);
    font-size: 0.82rem;
}

.geo-how-demo-niche span {
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 600;
}

.geo-how-chat {
    min-height: 160px;
}

.geo-chat-msg {
    margin-bottom: 14px;
    animation: geoFadeUp 0.3s ease;
}

.geo-chat-msg-meta {
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.geo-chat-msg-meta i {
    color: var(--accent);
}

.geo-chat-msg-text {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.94rem;
    line-height: 1.5;
    min-height: 1.5em;
}

.geo-chat-msg-user .geo-chat-msg-text {
    background: white;
    color: var(--dark);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.geo-chat-msg-ai .geo-chat-msg-text {
    background: var(--accent);
    color: white;
    border-bottom-left-radius: 4px;
}

.geo-chat-typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--accent);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.geo-typing-dot {
    width: 7px;
    height: 7px;
    background: white;
    border-radius: 50%;
    opacity: 0.4;
    animation: geoTypingBounce 1.4s ease-in-out infinite;
}

.geo-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.geo-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes geoTypingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.geo-how-demo-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.geo-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 14px 18px;
    border-radius: 12px;
}

.geo-result-label {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.94rem;
}

.geo-result-value {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
}

.geo-result-bad {
    color: #ef4444;
    font-size: 1.4rem;
}

/* ===== 4. SERVICE ===== */
.geo-service {
    padding: 100px 0;
    background: var(--bg);
}

.geo-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.geo-service-card {
    background: white;
    padding: 36px 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.geo-service-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 97, 70, 0.1);
}

.geo-service-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.85;
}

.geo-service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.geo-service-card p {
    color: var(--gray);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ===== 5. REPORT ===== */
.geo-report {
    padding: 100px 0;
    background: var(--bg-alt);
}

.geo-report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.geo-report-item {
    background: white;
    padding: 30px 22px;
    border-radius: 18px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.geo-report-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.geo-report-item i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.geo-report-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.geo-report-item p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.45;
}

/* ===== 6. FAQ ===== */
.geo-faq {
    padding: 100px 0;
    background: var(--bg);
}

.geo-faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.geo-faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.geo-faq-item[open] {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(255, 97, 70, 0.08);
}

.geo-faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    list-style: none;
}

.geo-faq-item summary::-webkit-details-marker { display: none; }

.geo-faq-item summary i {
    color: var(--accent);
    font-size: 0.85rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.geo-faq-item[open] summary i { transform: rotate(45deg); }

.geo-faq-item p {
    padding: 0 24px 22px;
    color: var(--dark-light);
    line-height: 1.7;
    font-size: 0.96rem;
}

/* ===== 7. FINAL CTA ===== */
.geo-final {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    text-align: center;
}

.geo-final-inner {
    max-width: 720px;
    margin: 0 auto;
}

.geo-final h2 {
    color: white;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.geo-final p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    margin-bottom: 36px;
    line-height: 1.5;
}

.geo-final-form .geo-form-input {
    background: white;
    border-color: transparent;
}

.geo-final-form .geo-form-submit {
    background: var(--dark);
    color: white;
}

.geo-final-form .geo-form-submit:hover {
    background: #2d2d2d;
}

.geo-final .geo-form-error {
    color: white;
    font-weight: 600;
}

/* ============================================================ */
/* RESPONSIVE                                                   */
/* ============================================================ */
@media (max-width: 1024px) {
    .geo-problem-grid {
        grid-template-columns: 1fr;
    }

    .geo-report-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .geo-service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .geo-hero {
        padding: 110px 0 60px;
    }

    .geo-problem,
    .geo-how,
    .geo-service,
    .geo-report,
    .geo-faq,
    .geo-final {
        padding: 60px 0;
    }

    .geo-hero-form {
        flex-direction: column;
    }

    .geo-form-submit {
        width: 100%;
        justify-content: center;
    }

    .geo-hero-trust {
        gap: 14px 24px;
    }

    .geo-trust-item {
        font-size: 0.85rem;
    }

    .geo-how-stage {
        padding: 24px 18px;
    }

    .geo-how-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 24px;
    }

    .geo-how-step {
        padding: 18px 12px;
    }

    .geo-how-demo {
        padding: 18px 14px;
    }

    .geo-how-demo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .geo-chat-msg-text {
        font-size: 0.88rem;
    }

    .geo-report-grid {
        grid-template-columns: 1fr;
    }

    .geo-faq-item summary {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    .geo-faq-item p {
        padding: 0 18px 18px;
    }

    .geo-result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .geo-how-steps {
        grid-template-columns: 1fr;
    }

    .geo-model-pill {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}