/* wa-theme.css — тема, сгенерированная для восстановленного сайта (deepseek/deepseek-v4-pro, попытка 1). */
html, body { margin: 0; padding: 0; }
body { background: #FAF7F2; color: #333; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; }
*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; color: #C87A4F; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }
li::marker, li::before, td::before, a::before, a::after { display: none; content: ''; }
table { border-collapse: collapse; width: 100%; }

body > table {
    max-width: 1140px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}
body > table > tbody > tr > td {
    vertical-align: top;
    padding: 0;
}
body > table > tbody > tr > td:first-child {
    background: #F5F0E8;
    width: 220px;
    padding: 30px 20px;
}
body > table > tbody > tr > td:first-child a {
    display: block;
    padding: 10px 15px;
    margin-bottom: 5px;
    color: #2C231D;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.3s;
}
body > table > tbody > tr > td:first-child a:hover {
    background: #E8DFD1;
    text-decoration: none;
}
body > table > tbody > tr > td:last-child {
    background: #F5F0E8;
    width: 180px;
    padding: 30px 20px;
    font-size: 0.9em;
}
body > table > tbody > tr > td:last-child p {
    line-height: 1.7;
}
body > table > tbody > tr > td:nth-child(2) {
    background: #ffffff;
    padding: 0;
}

body > table > tbody > tr > td:nth-child(2) > table {
    width: 100%;
    background: #2C231D;
}
body > table > tbody > tr > td:nth-child(2) > table td {
    padding: 15px;
    text-align: center;
}
body > table > tbody > tr > td:nth-child(2) > table td img {
    display: inline-block;
    margin: 0 8px;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s, transform 0.3s;
}
body > table > tbody > tr > td:nth-child(2) > table td a:hover img {
    border-color: #C87A4F;
    transform: scale(1.05);
}

.t1_link {
    font-size: 0;
    background: #2C231D;
    text-align: center;
    padding: 0 10px;
}
.t1_link a {
    font-size: 1rem;
    display: inline-block;
    padding: 14px 25px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}
.t1_link a:hover {
    background: #C87A4F;
    color: #fff;
    text-decoration: none;
}

body > table > tbody > tr > td:nth-child(2) > table td:not(:has(img)) {
    font-size: 0;
}
body > table > tbody > tr > td:nth-child(2) > table td:not(:has(img)) a {
    font-size: 1rem;
    display: inline-block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
}
body > table > tbody > tr > td:nth-child(2) > table td:not(:has(img)) a:hover {
    background: #C87A4F;
}

p { margin: 1em 0; }
h1, h2, h3, h4 { color: #2C231D; font-family: 'Times New Roman', serif; }

.t1 { font-size: 1em; line-height: 1.8; }
.t2 { font-size: 1.1em; font-weight: 600; color: #2C231D; }
.t3 { font-size: 2em; font-weight: bold; color: #2C231D; margin: 20px 0 10px; font-family: 'Times New Roman', serif; }

table.t4 {
    display: block;
    width: 100%;
    margin: 30px 0;
}
table.t4 tbody {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
table.t4 tr {
    display: contents;
}
table.t4 td {
    display: inline-block;
    width: 160px;
    height: 160px;
    background: #E8DFD1;
    text-align: center;
    line-height: 160px;
    color: transparent;
    overflow: hidden;
    border-radius: 6px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
table.t4 td::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44,35,29,0.05);
    border: 1px dashed #bbb;
}
table.t4 td:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
table.t4 td img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 6px;
    position: relative;
    z-index: 1;
}

p + .t4 + p, .t4 ~ p {
    text-align: center;
    font-style: italic;
    color: #666;
}

.t5 { font-size: 1.3em; font-weight: bold; color: #C87A4F; margin: 15px 0; }
.t21 { background: #fdf5ec; padding: 15px; border-left: 4px solid #C87A4F; margin: 20px 0; }

p.t1:last-of-type {
    background: #2C231D;
    color: #f0ede5;
    padding: 25px;
    text-align: center;
    margin: 40px 0 0;
    font-size: 0.9em;
}
p.t1:last-of-type a {
    color: #C87A4F;
}

body > table > tbody > tr > td:first-child,
body > table > tbody > tr > td:last-child,
.t1_link,
.t3,
.t4,
.t5 {
    background-image: none !important;
}

@media (max-width: 768px) {
    body > table {
        display: block;
        box-shadow: none;
    }
    body > table > tbody {
        display: block;
    }
    body > table > tbody > tr {
        display: block;
    }
    body > table > tbody > tr > td {
        display: block;
        width: 100% !important;
        float: none;
        padding: 20px 15px;
    }
    body > table > tbody > tr > td:first-child,
    body > table > tbody > tr > td:last-child {
        background: #F5F0E8;
    }
    body > table > tbody > tr > td:nth-child(2) {
        background: #fff;
        padding: 0;
    }
    body > table > tbody > tr > td:nth-child(2) > table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    .t1_link a {
        display: block;
        padding: 12px;
    }
    table.t4 td {
        width: 45%;
        height: auto;
        aspect-ratio: 1 / 1;
        line-height: normal;
    }
}