footer {
    background: #f7f7f7;
    color: var(--muted);
    margin-top: 60px;
    padding: 40px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 1.125rem;
}

.footer-col a {
    color: var(--muted);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--primary-3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}


/* Inline редактирование */

footer .editable {
    display: inline-block;
    outline: none;
    border-radius: 0;
    transition: border-bottom 0.2s;
    cursor: text;
    border-bottom: 1px dashed transparent;
}

footer .editable:hover {
    border-bottom: 1px dashed var(--primary-2);
    background: none;
}

footer .editable:focus {
    border-bottom: 1px solid var(--primary-2);
    background: none;
    box-shadow: none;
}


/* Панель сохранения */

.edit-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    padding: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

#saveEdit {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--primary-2);
    color: white;
    transition: opacity 0.2s;
}

#saveEdit:hover {
    opacity: 0.85;
}

#cancelEdit {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

#cancelEdit:hover {
    opacity: 0.75;
}


/* Inline редактирование для ссылок */

.editable-link {
    display: inline-block;
    outline: none;
    border-radius: 0;
    transition: border-bottom 0.2s;
    cursor: text;
    border-bottom: 1px dashed transparent;
    padding: 0 2px;
}

.editable-link:hover {
    border-bottom: 1px dashed var(--primary-2);
    background: none;
}

.editable-link:focus {
    border-bottom: 1px solid var(--primary-2);
    background: none;
    box-shadow: none;
}


/* Соцсети — иконки */

.socials {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8eaed;
    color: #555;
    transition: background 0.25s ease, color 0.25s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.social-link:hover {
    background: var(--primary, #2f4d85);
    color: #e8eaed !important;
}

.social-link svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.footer-col p {
    font-size: 0.95rem;
}


/* Адаптив */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}