﻿/* 4docs.ru — главная: сетка 4 изображений (как было) + доп. информация внизу */
body {
    font-family: Arial, "Segoe UI", Tahoma, sans-serif;
    color: #1e3a8a;
    background: #fefdfb;
}

a {
    color: #1e3a8a;
}

/* ---- сетка изображений (оригинальная вёрстка) ---- */
.photos {
    position: relative;
    width: 70%;
    margin: 20px auto;
}

.photos table {
    table-layout: fixed;
}

.photos td {
    vertical-align: top;
}

.photos img {
    display: block;
    border: 2px solid #1e3a8a;
    transition: transform 0.2s ease;
}

.photos td a:hover img {
    transform: scale(0.9);
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 150px;
    height: 150px;
    border: none;
    transition: transform 0.3s ease;
}

.overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.photos .overlay {
    border: none;
}

/* ---- доп. информация внизу ---- */
.info {
    max-width: 980px;
    margin: 30px auto 10px;
    padding: 0 15px;
}

.info h2 {
    font-size: 19px;
    line-height: 1.3;
    margin: 26px 0 10px;
}

.info .block:first-child h2 {
    margin-top: 6px;
}

.info ul,
.info ol {
    margin: 0 0 8px;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.6;
    color: #1e3a8a;
}

.info li {
    margin-bottom: 6px;
}

.info .more {
    margin: 4px 0 0;
    font-size: 13px;
}

.info .lead {
    margin: 12px 0 6px;
    font-size: 15px;
    color: #1e3a8a;
}

.info .small {
    margin: 6px 0 0;
    font-size: 13px;
    color: #1e3a8a;
}

.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 40px 0 28px;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: #1e3a8a;
    color: #fff;
}

.btn-primary:hover {
    background: #101a40;
}

.btn-ghost {
    border: 1px solid #1e3a8a;
    color: #1e3a8a;
}

.btn-ghost:hover {
    background: #1e3a8a;
    color: #fff;
}

/* ---- футер ---- */
.foot {
    max-width: 980px;
    margin: 0 auto 30px;
    padding: 14px 15px 0;
    border-top: 1px solid #1e3a8a;
    font-size: 13px;
    color: #1e3a8a;
    text-align: center;
}

.foot a {
    color: #1e3a8a;
    text-decoration: none;
}

.foot a:hover {
    text-decoration: underline;
}

.sep {
    margin: 0 8px;
    color: #d1d5db;
}

@media (max-width: 640px) {
    .photos {
        width: 94%;
    }
}
