/* ============================================================
   ld-footer.css — Site-wide footer
   ============================================================ */

.ld-site-footer {
    background: #0c1e3c;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.65;
    /* Break out of any flex/grid ancestor */
    display: block;
    width: 100%;
    flex: none;
    grid-column: 1 / -1;
    align-self: stretch;
    clear: both;
    box-sizing: border-box;
}

.ld-site-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem 3rem;
}

/* About column */
.ld-site-footer__col--about {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ld-site-footer__logo {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.ld-site-footer__logo:hover {
    color: #60a5fa;
    text-decoration: none;
}

.ld-site-footer__desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
}

.ld-site-footer__contact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    transition: color 0.15s;
}

.ld-site-footer__contact:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Column titles */
.ld-site-footer__col-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 0.85rem;
}

/* Link lists */
.ld-site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ld-site-footer__links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.15s;
    font-size: 0.9rem;
}

.ld-site-footer__links a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Bottom bar */
.ld-site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.ld-site-footer__bottom-note {
    font-style: italic;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
    .ld-site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .ld-site-footer__col--about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .ld-site-footer__inner {
        grid-template-columns: 1fr;
        padding: 2.5rem 1rem 1.5rem;
        gap: 1.75rem;
    }

    .ld-site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        text-align: left;
    }
}

/* ============================================================
   Cooperation page  (/sotrudnichestvo/)
   ============================================================ */

.ld-coop__lead {
    font-size: 1.05rem;
    color: var(--ld-text, #1e293b);
    margin-bottom: 2rem;
    max-width: 72ch;
}

.ld-coop__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

.ld-coop__card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ld-coop__card--featured {
    border-color: #1e64ff;
    box-shadow: 0 4px 24px rgba(30, 100, 255, 0.12);
}

.ld-coop__card-head {
    background: #f8fafc;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.ld-coop__card--featured .ld-coop__card-head {
    background: #1e64ff;
    border-bottom-color: transparent;
}

.ld-coop__card-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    color: #0f172a;
}

.ld-coop__card--featured .ld-coop__card-head h3 {
    color: #ffffff;
}

.ld-coop__card-head p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.ld-coop__card--featured .ld-coop__card-head p {
    color: rgba(255, 255, 255, 0.8);
}

.ld-coop__card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
}

.ld-coop__card-body ul {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #334155;
}

.ld-coop__card-price {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ld-coop__price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.ld-coop__price-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.ld-coop__price-period {
    font-size: 0.875rem;
    color: #64748b;
}

.ld-coop__price-row--year .ld-coop__price-amount {
    font-size: 1.05rem;
    color: #1e64ff;
}

.ld-coop__price-row--year em {
    font-style: normal;
    color: #16a34a;
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .ld-coop__cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Rating page  (/kak-rabotaet-rejting/)
   ============================================================ */

.ld-rating-page__lead {
    font-size: 1.05rem;
    max-width: 72ch;
    margin-bottom: 2rem;
}

.ld-rating-page__formula {
    background: #f1f5f9;
    border-left: 4px solid #1e64ff;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
    color: #0f172a;
    margin: 1rem 0 1.5rem;
}

/* ============================================================
   Sitemap page  (/sitemap/)
   ============================================================ */

.ld-sitemap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.ld-sitemap__section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.ld-sitemap__section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ld-sitemap__section > ul {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ld-sitemap__section a {
    color: #1e64ff;
    text-decoration: none;
    font-size: 0.95rem;
}

.ld-sitemap__section a:hover {
    text-decoration: underline;
}

.ld-sitemap__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.35rem 1rem;
}

.ld-sitemap__grid--cities {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
