/* wa-theme.css — тема, сгенерированная для восстановленного сайта (deepseek/deepseek-v4-pro, попытка 3). */
* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background-color: #eef2f5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #c1272d;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #a31f24;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.8em;
  color: #1a4b4b;
}
p {
  margin-top: 0;
  margin-bottom: 1.2em;
}
img {
  max-width: 100%;
  height: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

/* Page Wrappers */
.pageOffset,
.pagePadding,
.pageAlignment {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  background-image: none !important;
}
.pageOffset {
  background: none;
}
.pageContent {
  max-width: 1140px;
  margin: 0 auto 40px;
  padding: 30px 20px;
  background-color: #ffffff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background-image: none !important;
}
.pageContent::after {
  content: '';
  display: table;
  clear: both;
}

/* Header / Brand */
.master_4.title {
  text-align: center;
  padding: 50px 20px 30px;
  background: linear-gradient(135deg, #1a3c3c 0%, #2a5a5a 70%);
  color: #ffffff;
  position: relative;
  background-image: none !important;
}
.master_4.title h1.p0 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  margin: 0;
  display: inline-block;
  position: relative;
}
.master_4.title h1.p0 span.c0 {
  display: inline-block;
  border-bottom: none; /* eliminate split misaligned underlines */
}
.master_4.title h1.p0::after {
  content: '';
  display: block;
  width: 70%;
  margin: 12px auto 0;
  border-bottom: 4px solid #F4D03F;
}

/* Main Navigation */
ul.menu.horizontal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #2a5a5a;
  border-top: 2px solid #F4D03F;
  border-bottom: 3px solid #F4D03F;
  position: relative;
  z-index: 100;
  background-image: none !important;
}
li.menuItem {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
li.menuItem > a.menuItemDesign {
  display: block;
  padding: 14px 22px;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
  text-decoration: none;
  line-height: 1.4;
  background-image: none !important;
}
li.menuItem > a.menuItemDesign:hover,
li.menuItem.selected > a.menuItemDesign {
  background-color: #F4D03F;
  color: #1a3c3c;
  text-decoration: none;
}
/* Sub-menus */
li.menuItem .subMenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  min-width: 220px;
  z-index: 200;
  padding: 8px 0;
  background-image: none !important;
}
li.menuItem:hover .subMenu {
  display: block;
}
.subMenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.subMenu ul li {
  list-style: none;
}
.subMenu ul li a.subMenuItemDesign {
  display: block;
  padding: 10px 24px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
  font-size: 0.98rem;
  white-space: nowrap;
  background-image: none !important;
}
.subMenu ul li a.subMenuItemDesign:hover {
  background-color: #f5f5f5;
  color: #1a4b4b;
  text-decoration: none;
}

/* Content Sections (body classes) */
.body,
div[class*="page_welcome_"].body {
  background: #ffffff;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-left: 6px solid #F4D03F;
  border-top: 3px solid #2a5a5a;
  background-image: none !important;
}
.body:last-of-type {
  margin-bottom: 0;
}
/* Paragraph styling inside content */
.p0, .p1, .p2, .p3, .p4, .p5 {
  margin-bottom: 1.3em;
  line-height: 1.8;
}
p:last-child {
  margin-bottom: 0;
}
/* Inline highlights */
span.c1 {
  color: #c1272d;
  font-weight: 700;
}
span.c2 {
  color: #F4D03F;
  font-weight: 700;
  background-color: rgba(26,75,75,0.08);
  padding: 0 0.2em;
  border-radius: 3px;
}
span.c3 {
  color: #1a4b4b;
  font-weight: 700;
}

/* Generic Table styles */
table {
  border-collapse: collapse;
  margin: 1.5em 0;
}
table th, table td {
  padding: 12px 18px;
  border: 1px solid #dee2e6;
  text-align: left;
  vertical-align: top;
}
table th {
  background-color: #2a5a5a;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}
table tr:nth-child(even) td {
  background-color: #f8f9fa;
}
table tr:hover td {
  background-color: #f1f3f5;
}
/* Specific inner page detection table */
table#detection {
  border: 2px solid #2a5a5a;
}

/* Forms & Buttons */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #2a5a5a;
  box-shadow: 0 0 0 3px rgba(42,90,90,0.2);
}
button, input[type="submit"], input[type="button"] {
  background-color: #1a3c3c;
  color: #ffffff;
  border: none;
  cursor: pointer;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 6px;
  transition: background-color 0.25s;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background-color: #2a5a5a;
}

/* Links inside content (not navigation) */
a:not(.menuItemDesign):not(.subMenuItemDesign):not(nav a) {
  color: #c1272d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:not(.menuItemDesign):not(.subMenuItemDesign):hover {
  color: #8a1a1f;
}

/* Footer hint */
.pageContent::after {
  content: '';
  display: block;
  height: 20px;
}

/* Remove else inherited backgrounds that may break design */
.pageOffset,
.pagePadding,
.pageAlignment,
.master_4.title,
ul.menu.horizontal,
li.menuItem,
.body {
  background-image: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pageOffset,
  .pagePadding,
  .pageAlignment,
  .pageContent,
  div.container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .pageContent {
    padding: 20px 12px;
    margin-bottom: 20px;
    border-radius: 8px;
  }
  .master_4.title {
    padding: 35px 12px 20px;
  }
  .master_4.title h1.p0 {
    font-size: 2.2rem;
    word-break: break-word;
  }
  .master_4.title h1.p0::after {
    width: 90%;
    margin-top: 8px;
    border-bottom-width: 3px;
  }
  ul.menu.horizontal {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
  }
  li.menuItem {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  li.menuItem > a.menuItemDesign {
    padding: 16px 20px;
    text-align: center;
    font-size: 1rem;
  }
  li.menuItem .subMenu {
    position: static;
    display: none;
    background: #f8f8f8;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
  }
  li.menuItem:hover .subMenu {
    display: block;
  }
  .subMenu ul li a.subMenuItemDesign {
    padding: 12px 30px;
    border-bottom: 1px dotted #ccc;
  }
  .body, div[class*="page_welcome_"].body {
    padding: 20px 16px;
    border-left-width: 4px;
    margin-bottom: 15px;
  }
  table {
    font-size: 0.9rem;
  }
  table th, table td {
    padding: 8px 10px;
  }
  /* Prevent menu obscuring content by ensuring clear separation */
  .menu.horizontal {
    margin-top: 10px;
  }
  .body:first-of-type {
    margin-top: 15px;
  }
}

/* Inner page generic container */
div.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Positive highlight */
.positive {
  color: #2d6a4f;
  font-weight: 700;
}
#checkPassed .positive {
  color: #1b4332;
}

/* Accessibility: improve focus visibility */
a:focus-visible {
  outline: 3px solid #F4D03F;
  outline-offset: 2px;
}
button:focus-visible {
  outline: 3px solid #F4D03F;
  outline-offset: 2px;
}