/* wa-theme.css — тема, сгенерированная для восстановленного сайта (deepseek/deepseek-v4-pro, попытка 3). */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
  background: #f4f6f8;
}
a {
  color: #1abc9c;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #16a085;
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  color: #2c3e50;
  line-height: 1.3;
  margin-top: 0;
}
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Main container */
.x-root,
.site {
  max-width: 1140px;
  margin: 0 auto;
  background: #ffffff;
}
.x-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.masthead {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 1rem 2rem;
}
.masthead a {
  color: #ffffff;
}
.masthead a:hover {
  color: #1abc9c;
  text-decoration: none;
}

/* Navigation */
.x-nav-wrap,
.x-nav {
  background-image: none !important;
}
.x-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.x-nav li {
  position: relative;
  margin: 0;
}
.x-nav > li {
  margin-right: 1.5rem;
}
.x-nav a {
  display: block;
  padding: 0.5rem 0;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}
.x-nav a:hover,
.x-nav a:focus {
  color: #1abc9c;
  text-decoration: none;
}
/* Dropdowns */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  z-index: 100;
}
.sub-menu .sub-menu {
  top: 0;
  left: 100%;
}
.sub-menu li {
  width: 100%;
}
.sub-menu a {
  padding: 0.5rem 1rem;
  color: #2c3e50;
  white-space: nowrap;
}
.sub-menu a:hover {
  background: #f4f6f8;
  color: #1abc9c;
}
.menu-item-has-children:hover > .sub-menu {
  display: block;
}
/* Arrow indicator */
.menu-item-has-children > a:after {
  content: " ▾";
  font-size: 0.8em;
  vertical-align: middle;
}

/* Disable any old positioning */
.x-nav-wrap,
.visually-hidden {
  display: none; /* if needed */
}

/* Content layout for inner pages */
.x-root .site > *:not(.masthead):not(.x-colophon) {
  padding: 2rem;
  flex: 1;
}
/* Sidebar layouts (from x-renew) */
.x-sidebar-content-active .x-main {
  float: left;
  width: 70%;
  padding-right: 2rem;
}
.x-sidebar-content-active .x-sidebar {
  float: right;
  width: 30%;
}
/* Clear floats */
.site:after {
  content: "";
  display: table;
  clear: both;
}
/* Ensure tables and pre don't overflow */
table, pre, code {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
th, td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}
th {
  background-color: #f4f6f8;
}

/* 404 page card */
.box {
  max-width: 600px;
  margin: 4rem auto;
  padding: 3rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.box h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.box p {
  margin-bottom: 1.5rem;
}
.box a {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #1abc9c;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.box a:hover {
  background: #16a085;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Buttons & forms globally */
button, .button, input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #1abc9c;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover, .button:hover {
  background: #16a085;
}
input, textarea, select {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #1abc9c;
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
}

/* Footer */
.x-colophon, footer, colophon {
  background: #2c3e50;
  color: #ffffff;
  padding: 2rem;
  text-align: center;
  margin-top: auto;
}
.x-colophon a, footer a {
  color: #1abc9c;
}

/* Remove any residual backgrounds */
.x-root, .site, .masthead, .x-nav-wrap, .x-nav, .menu-item, .sub-menu, .x-colophon, .x-main, .x-sidebar, .box {
  background-image: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .x-nav {
    flex-direction: column;
  }
  .x-nav > li {
    margin-right: 0;
    width: 100%;
  }
  .x-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .sub-menu {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    padding-left: 1rem;
    display: block; /* show submenus on mobile inline */
    border-radius: 0;
  }
  .menu-item-has-children > a:after {
    content: "";
  }
  .x-sidebar-content-active .x-main,
  .x-sidebar-content-active .x-sidebar {
    float: none;
    width: 100%;
    padding: 0;
  }
  .box {
    margin: 2rem 1rem;
    padding: 2rem;
  }
  .masthead {
    padding: 1rem;
  }
  body {
    font-size: 15px;
  }
}