/* ===== БАЗА ===== */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #F5DEB3;
  font-family: Trebuchet MS, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
  overflow-x: hidden;
}



a {
  color: inherit;
}

/* ===== ЛОГО ===== */
#logo picture,
#logo img {
  width: 100%;
  height: auto;
  display: block;
}

#logo img {
  max-width: 1500px;
  margin: 0 auto;
}

/* ===== МЕНЮ ===== */

.headmenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  max-width: 980px;
  margin: 8px auto 16px;
  padding: 8px 12px;
}

.headmenu a {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
}

.headmenu a img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* ===== КОНТЕНТ ===== */

#socmedia,
.links,
.footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
}

h3 {
  margin: 12px 0 8px;
  font-family: "Times New Roman", serif;
  font-size: 18px;
  color: #000;
}

p,
li {
  overflow-wrap: anywhere;
}

.links ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

.links li {
  margin: 6px 0;
}

/* ===== ТАБЛИЦЫ (для внутренних страниц) ===== */

.table-scroll {
  max-width: 980px;
  margin: 8px auto;
  padding: 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-scroll table {
  min-width: 560px;
}

th, td {
  border: 1px solid #000;
  padding: 4px;
  text-align: center;
}

th {
  background: #ffc14d;
}

td {
  background: #fff;
}

/* ===== ФУТЕР ===== */

.footer {
  text-align: center;
  font-size: 16px;
  opacity: 0.85;
}

/* ===== MEDIA ===== */

@media (min-width: 768px) {
  body { font-size: 17px; }

  .headmenu {
    justify-content: flex-start;
  }

  .headmenu a {
    width: 60px;
    height: 60px;
  }

  .headmenu a img {
    width: 48px;
    height: 48px;
  }
}
/* Цвета ссылок как раньше: синий и бордовый после перехода */
a:link { color: #0000EE; }      /* синий */
a:visited { color: #800020; }   /* бордовый (можно #800000) */
a:hover { text-decoration: underline; }
a:active { color: #0000EE; }

/* ===== ДЕСКТОП: нормальный размер иконок ===== */

.headmenu a {
  width: 320px;      /* нормальная кнопка на ПК */
  height: 60px;
}

.headmenu a img {
  width:320px;       /* реальный, читаемый размер */
  height: 60px;
  object-fit: contain;
}
/* ===== МОБИЛЬНЫЕ: иконки 100% ===== */
@media (max-width: 767px) {

  .headmenu {
    justify-content: center;
    gap: 14px;
  }

  .headmenu a {
    width: calc(50% - 14px); /* 2 в ряд */
    max-width: 240px;
    height: 120px;
  }

  .headmenu a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}