* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 18px 0 30px;
  background-color: #d8d8ca;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 6px 6px;
  color: #202020;
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

a { color: #0645ad; text-decoration: underline; }
a:visited { color: #5a2ca0; }
a:hover { color: #c00000; }

.page-shell {
  width: 960px;
  max-width: calc(100% - 20px);
  margin: 0 auto;
  background: #f4f1df;
  border: 1px solid #636363;
  box-shadow: 0 0 0 3px #b4b4a7, 0 7px 18px rgba(0,0,0,.25);
}

.site-header {
  padding: 18px 24px 16px;
  color: #fff;
  border-bottom: 1px solid #17375e;
  background: linear-gradient(#5f82ad, #315a8a 58%, #24466e);
  text-shadow: 1px 1px 0 #173658;
}
.header-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: bold;
  letter-spacing: -1px;
}
.header-subtitle { margin-top: 2px; font-size: 13px; }

.old-nav {
  padding: 7px 12px;
  text-align: center;
  background: linear-gradient(#fffef3, #ded8b7);
  border-top: 1px solid #fff;
  border-bottom: 1px solid #9d9678;
  font-weight: bold;
  font-size: 12px;
}
.old-nav span { color: #8d866e; margin: 0 6px; }
.old-nav a { color: #193d69; }

.content-layout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
}
.main-column { width: 680px; }
.side-column { width: 238px; }

.welcome-box,
.retro-section,
.contacts-strip {
  margin: 0 0 14px;
  background: #fffef8;
  border: 1px solid #a9a48f;
}
.welcome-box { padding: 14px 16px 16px; }
.welcome-box h1 {
  margin: 0 0 12px;
  color: #234f82;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.2;
}
.lead { font-size: 14px; }
.important-note {
  margin-top: 14px;
  padding: 10px 12px;
  background: #fff4b8;
  border: 1px solid #c3a75b;
  color: #4a3b12;
}

.retro-section h2,
.contacts-strip h2 {
  margin: 0;
  padding: 6px 10px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  background: linear-gradient(#6f8fb5, #3d648f);
  border-bottom: 1px solid #23476f;
  text-shadow: 1px 1px 0 #2f4c6c;
}
.retro-section > p,
.retro-section > ul,
.retro-section > div,
.contacts-strip > p { margin-left: 12px; margin-right: 12px; }
.retro-section { padding-bottom: 10px; }

.facts-table {
  width: calc(100% - 24px);
  margin: 12px;
  border-collapse: collapse;
  background: white;
}
.facts-table th,
.facts-table td {
  border: 1px solid #bbb59f;
  padding: 7px 8px;
  vertical-align: top;
  text-align: left;
}
.facts-table th { width: 31%; background: #ebe7d4; color: #303030; }

.plain-list { padding-left: 25px; }
.retro-button {
  display: inline-block;
  padding: 6px 12px;
  color: #111 !important;
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(#fff, #d0d0d0);
  border: 1px solid #777;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 #fff, 1px 1px 0 #aaa;
}
.retro-button:hover { background: linear-gradient(#fff7c7, #e7d987); }

.video-link-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f1f1ed;
  border: 1px inset #b6b6aa;
}
.video-icon {
  width: 48px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #b52323;
  border: 2px outset #d16c6c;
  font-size: 18px;
}

.faq-item { padding: 2px 12px 8px; border-bottom: 1px dotted #aaa58f; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { margin: 10px 0 4px; font-size: 14px; color: #2a4f79; }
.faq-item p { margin: 0; }

.search-reference {
  margin: 8px 10px 4px;
  font-size: 11px;
  color: #777366;
}
.search-reference > summary {
  cursor: pointer;
  color: #777366;
  text-decoration: underline;
}
.search-reference[open] {
  padding: 4px 0 2px;
}
.search-reference .search-faq-item {
  margin-top: 4px;
  background: #f7f5e8;
}

.side-box {
  margin-bottom: 12px;
  background: #faf9ef;
  border: 1px solid #8f8c7b;
}
.side-title {
  padding: 5px 8px;
  color: #fff;
  font-weight: bold;
  background: linear-gradient(#818181, #5b5b5b);
  border-bottom: 1px solid #444;
}
.side-box p { margin: 9px 10px 11px; }
.old-info { background: #ffffdc; }

.contacts-strip { margin: 0 14px 14px; padding-bottom: 8px; }
.site-footer {
  padding: 10px 14px 12px;
  text-align: center;
  background: #d8d3ba;
  border-top: 1px solid #a49d81;
  color: #4c4a40;
  font-size: 12px;
}
.footer-small { margin-top: 2px; font-size: 10px; }

@media (max-width: 760px) {
  body { padding-top: 7px; font-size: 13px; }
  .page-shell { max-width: calc(100% - 10px); }
  .header-title { font-size: 32px; }
  .old-nav { line-height: 2; }
  .content-layout { display: block; padding: 9px; }
  .main-column, .side-column { width: 100%; }
  .side-column { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .side-box { margin: 0; }
  .contacts-strip { margin-left: 9px; margin-right: 9px; }
}

@media (max-width: 480px) {
  .site-header { padding: 14px; }
  .header-title { font-size: 28px; }
  .side-column { display: block; }
  .side-box { margin-bottom: 9px; }
  .facts-table th { width: 38%; }
}

/* Добавлено для фото и новых блоков */
.photo-section { padding-bottom: 0; }
.shelter-photo { margin: 12px; }
.shelter-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #6d6b60;
  padding: 4px;
  background: #fff;
  box-shadow: 2px 2px 0 #c9c4ad;
}
.shelter-photo figcaption {
  margin-top: 5px;
  color: #696557;
  font-size: 10px;
  line-height: 1.4;
}
.social-link-boxes { padding: 12px; }
.social-link-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px;
  background: #f1f1ed;
  border: 1px inset #b6b6aa;
}
.social-link-box:last-child { margin-bottom: 0; }
.social-icon {
  width: 48px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: bold;
  border: 2px outset #9ba8b5;
  background: #4a76a8;
}
.youtube-box .social-icon { background: #b52323; border-color: #d16c6c; }
.big-year {
  margin-bottom: 0 !important;
  color: #244f80;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
  font-size: 28px;
  line-height: 1;
}
