/* ============================================================
   Landing page (index.html) — Compact Business Portal
   Вынесено из style.css.
   ⚠ .lp-container и .lp-heading — SHARED, остались в style.css.
   ⚠ .footer__* — SHARED (base.html), остались в style.css.
   ============================================================ */

/* --- Hero --- */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 0 40px;
    background: linear-gradient(180deg, var(--bg-base) 0%, #d8dbf0 100%);
    transition: background var(--transition);
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg, var(--bg-base) 0%, #121220 100%);
}

.hero__inner { max-width: 640px; }

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--text-main);
}

.hero__subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero__cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero__metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero__metric {
    text-align: center;
    min-width: 80px;
}

.hero__metric-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.hero__metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- About + Services (Compact side-by-side) --- */
.about-services {
    padding: 48px 0;
}

.about-services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.about-block h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.about-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 12px;
}

.about-block ul {
    list-style: none;
    margin-top: 8px;
}

.about-block li {
    padding: 4px 0 4px 18px;
    position: relative;
    color: var(--text-main);
    font-size: 0.9rem;
}

.about-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: default;
}

.service-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.service-item__icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--glow-primary);
}

.service-item__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-item__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.service-item__desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Tools — Interactive Grid --- */
.tools-section {
    padding: 48px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    background: var(--bg-card-hover);
    color: inherit;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-card__icon {
    transform: scale(1.1) rotate(-4deg);
}

.tool-card__icon svg {
    width: 22px;
    height: 22px;
}

.tool-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tool-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.tool-card__desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Contacts + Map --- */
.contacts-section {
    padding: 48px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    color: inherit;
}

.contact-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: var(--glow-primary);
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-card__icon {
    transform: scale(1.1);
}

.contact-card__icon svg {
    width: 20px;
    height: 20px;
}

.contact-card__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.contact-card__value {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.lp-map {
    position: relative;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

/* ===== Responsive (landing-specific) ===== */
@media (max-width: 768px) {
    .hero { min-height: auto; padding: 36px 0 32px; }
    .hero__title { font-size: 2.2rem; }
    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; justify-content: center; }
    .hero__metrics { gap: 24px; }
    .hero__metric-value { font-size: 1.4rem; }

    .about-services__grid { grid-template-columns: 1fr; gap: 24px; }

    .tools-grid { grid-template-columns: 1fr; }

    .contacts-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .lp-map { height: 250px; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 1.8rem; }
    .hero__metrics { gap: 20px; }
    .hero__metric-value { font-size: 1.2rem; }

    .contacts-grid { grid-template-columns: 1fr; }
    .tool-card { padding: 16px; }
    .service-item { padding: 10px 12px; }
}
