/* wa-theme.css — тема, сгенерированная для восстановленного сайта (deepseek/deepseek-v4-pro, попытка 1). */
* Base Reset & Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #1b3a4b;
  --primary-light: #2e5266;
  --accent: #f18f01;
  --accent-dark: #d47300;
  --link: #006064;
  --link-hover: #f18f01;
  --bg: #f4f7f6;
  --white: #ffffff;
  --light-gray: #f0f0f0;
  --med-gray: #cccccc;
  --text: #333333;
  --text-light: #666666;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
}

a {
  color: var(--link);
  text-decoration: underline;
}
a:hover {
  color: var(--link-hover);
}

/* Container */
#bat-container {
  max-width: 1140px;
  margin: 30px auto;
  background: var(--white);
  box-shadow: 0 5px 25px rgba(0,0,0,0.07);
  border-radius: 4px;
  overflow: hidden;
}

/* ---------- Masthead ---------- */
#masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 25px;
  background: var(--primary);
  color: var(--white);
}
.mastlogo {
  max-width: 220px;
  height: auto;
  margin-right: auto;
  background-color: rgba(255,255,255,0.1);
  order: 1;
}
#searchbox {
  margin-left: auto;
  order: 2;
  display: flex;
  align-items: center;
}
#searchbox form {
  display: flex;
  gap: 6px;
}
#searchbox table,
#searchbox table td,
#searchbox table th {
  border: none;
  padding: 0;
  margin: 0;
}
input.search-input,
#searchbox input[type="text"] {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 4px;
  width: 200px;
  outline: none;
  transition: border-color 0.2s;
}
input.search-input::placeholder,
#searchbox input[type="text"]::placeholder {
  color: rgba(255,255,255,0.7);
}
input.search-input:focus,
#searchbox input[type="text"]:focus {
  border-color: var(--accent);
}
input.searchbutton,
#searchbox input[type="submit"] {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}
input.searchbutton:hover,
#searchbox input[type="submit"]:hover {
  background: var(--accent-dark);
}
#strapline {
  width: 100%;
  order: 3;
  margin-top: 12px;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}

/* ---------- Navigation ---------- */
#menubar {
  background: var(--primary-light);
}
#menubar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#menubar ul li {
  padding: 0;
  margin: 0;
  position: relative;
}
#menubar ul li.noborderrule a,
#menubar ul li.menudividerrule a {
  display: block;
  padding: 13px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s;
}
#menubar ul li.menudividerrule::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255,255,255,0.25);
}
#menubar ul li.noborderrule::after {
  display: none;
}
#menubar ul li a:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- Page Content ---------- */
#pagecontent {
  padding: 30px 25px;
  overflow: hidden; /* clearfix for floats */
}
.mainpic {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 25px;
  background: #e0e0e0;
  border: 1px solid #ccc;
  min-height: 100px;
}
#sidecolumn {
  float: left;
  width: 26%;
  padding-right: 25px;
}
#sidecolumn a img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  background: #e0e0e0;
  border: 1px solid #ccc;
  min-height: 80px;
}
#maincontent {
  float: right;
  width: 74%;
}
/* Clearfix fallback */
#pagecontent::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- Typography ---------- */
p {
  margin-bottom: 1.3em;
}
.boldblue {
  color: var(--link);
  font-weight: bold;
}
h1, h2, h3, h4 {
  color: var(--primary);
  margin-top: 0;
  line-height: 1.3;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ---------- Tables ---------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-size: 0.95rem;
}
table td,
table th {
  padding: 10px 12px;
  border: 1px solid var(--med-gray);
  text-align: left;
}
thead {
  background: var(--primary-light);
  color: #fff;
}
thead th {
  border-color: var(--primary-light);
}
tbody tr:nth-child(even) {
  background: var(--light-gray);
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
textarea,
select {
  padding: 10px 14px;
  border: 1px solid var(--med-gray);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 2px rgba(46,82,102,0.2);
}
input[type="submit"],
button,
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s, transform 0.1s;
}
input[type="submit"]:hover,
button:hover,
.btn:hover {
  background: var(--accent-dark);
}
input[type="submit"]:active,
button:active {
  transform: scale(0.98);
}

/* ---------- Footer ---------- */
#bat-footer {
  background: var(--primary-light);
  color: rgba(255,255,255,0.85);
  padding: 30px 25px 20px;
  text-align: center;
  font-size: 0.92rem;
}
#bat-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
#bat-footer ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
#bat-footer ul li a:hover {
  text-decoration: underline;
  color: var(--accent);
}
#bat-footer p {
  margin: 0;
  opacity: 0.8;
}

/* ---------- Broken Image Fallbacks ---------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.mastlogo {
  background-color: rgba(255,255,255,0.08);
  border-radius: 4px;
  min-height: 60px;
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 768px) {
  #bat-container {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  #masthead {
    flex-direction: column;
    text-align: center;
  }
  .mastlogo {
    max-width: 180px;
    margin: 0 auto 15px;
  }
  #searchbox {
    margin: 0 auto 15px;
    width: 100%;
    justify-content: center;
  }
  #searchbox form {
    flex-wrap: wrap;
    justify-content: center;
  }
  input.search-input {
    width: 100%;
  }
  #strapline {
    text-align: center;
  }
  #menubar ul {
    flex-direction: column;
    align-items: stretch;
  }
  #menubar ul li {
    width: 100%;
  }
  #menubar ul li.menudividerrule::after {
    display: none;
  }
  #pagecontent {
    padding: 20px 15px;
  }
  #sidecolumn,
  #maincontent {
    float: none;
    width: 100%;
    padding-right: 0;
  }
  #sidecolumn {
    margin-bottom: 25px;
  }
  .mainpic {
    margin-bottom: 20px;
  }
  #bat-footer ul {
    flex-direction: column;
    gap: 12px;
  }
  input[type="text"],
  input[type="email"],
  textarea,
  select {
    max-width: 100%;
  }
}