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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  color: #1e5f3a;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:focus {
  color: #e86b1c;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.3;
  color: #1e5f3a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1em;
}

.container,
.site-container,
.wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

header,
.header,
#header,
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
  margin-bottom: 0;
}

header .container,
.header .container,
#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-title,
.logo-text,
header h1,
header .site-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1e5f3a;
  margin: 0;
  text-decoration: none;
}

header a.site-title:hover,
a.logo-text:hover {
  color: #e86b1c;
}

noscript img,
header img,
.logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

nav,
.nav,
.menu,
.fusion-menu {
  width: 100%;
}

nav ul,
.nav ul,
.menu ul,
.fusion-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

nav li,
.nav li,
.menu li,
.fusion-menu li {
  position: relative;
}

nav a,
.nav a,
.menu a,
.fusion-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
  border-bottom: 3px solid transparent;
}

nav a:hover,
.nav a:hover,
.menu a:hover,
.fusion-menu a:hover,
nav a:focus,
.nav a:focus,
.menu a:focus {
  color: #e86b1c;
}

nav .current-menu-item > a,
.nav .current-menu-item > a,
.menu .current-menu-item > a,
.current_page_item > a,
.active > a {
  color: #e86b1c;
  border-bottom-color: #e86b1c;
}

nav ul ul,
.nav ul ul,
.menu ul ul,
.fusion-menu ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 1000;
  flex-direction: column;
}

nav ul ul li,
.nav ul ul li,
.menu ul ul li {
  width: 100%;
}

nav ul ul a,
.nav ul ul a,
.menu ul ul a {
  padding: 10px 20px;
  border-bottom: none;
  white-space: nowrap;
}

nav ul li:hover > ul,
.nav ul li:hover > ul,
.menu ul li:hover > ul,
nav ul li:focus-within > ul,
.nav ul li:focus-within > ul,
.menu ul li:focus-within > ul {
  display: flex;
}

nav ul ul ul,
.nav ul ul ul,
.menu ul ul ul {
  left: 100%;
  top: 0;
}

form {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

input[type="text"],
input[type="search"] {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s;
  flex: 1;
  min-width: 0;
}

input[type="text"]:focus,
input[type="search"]:focus {
  border-color: #e86b1c;
}

button,
input[type="submit"],
.btn,
.button,
a.btn,
a.button,
.fusion-button {
  padding: 10px 20px;
  background-color: #1e5f3a;
  color: white;
  border: 2px solid #1e5f3a;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

button:hover,
input[type="submit"]:hover,
.btn:hover,
.button:hover,
a.btn:hover,
a.button:hover,
.fusion-button:hover {
  background-color: #e86b1c;
  border-color: #e86b1c;
  color: white;
}

input[type="text"] + button,
input[type="search"] + button,
input[type="text"] + input[type="submit"],
input[type="search"] + input[type="submit"] {
  border-radius: 0 4px 4px 0;
  margin-left: -1px;
  border-left: none;
}

.search-form,
form[role="search"],
.searchform {
  display: flex;
  align-items: center;
}

.search-form input,
form[role="search"] input,
.searchform input {
  flex: 1;
}

main,
#main,
.content,
#content,
.site-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 10px;
}

article,
.post,
.entry,
.entry-content,
.page-content {
  background: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.alt-bg,
.section-bg,
.featured-section {
  background: #f7f9f8;
  padding: 40px 0;
}

a.cta,
.cta-button,
.header-cta,
a[href*="join-the-relay"] {
  background-color: #e86b1c;
  border-color: #e86b1c;
  color: white;
}

a.cta:hover,
.cta-button:hover,
.header-cta:hover,
a[href*="join-the-relay"]:hover {
  background-color: #1e5f3a;
  border-color: #1e5f3a;
}

footer,
.footer,
#footer {
  background-color: #1e5f3a;
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-top: 40px;
}

footer a,
.footer a,
#footer a {
  color: #FFD54F;
  text-decoration: none;
}

footer a:hover,
.footer a:hover,
#footer a:hover {
  color: #fff;
}

footer .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
}

figure,
iframe,
object,
embed {
  max-width: 100%;
}

:focus {
  outline: 2px solid #e86b1c;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  header {
    padding: 10px 0;
  }

  nav ul,
  .nav ul,
  .menu ul {
    flex-direction: column;
    width: 100%;
  }

  nav li,
  .nav li,
  .menu li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  nav a,
  .nav a,
  .menu a {
    padding: 12px 15px;
  }

  main,
  .content,
  #content {
    padding: 15px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  article,
  .post,
  .entry,
  .entry-content {
    padding: 20px;
  }

  form {
    flex-direction: column;
    align-items: stretch;
  }

  input[type="text"],
  input[type="search"] {
    border-radius: 4px;
    margin-bottom: 5px;
  }

  button,
  input[type="submit"],
  .btn {
    border-radius: 4px;
    margin-left: 0;
    width: 100%;
    border-left: 2px solid #1e5f3a;
  }

  input[type="text"] + button,
  input[type="search"] + button {
    margin-left: 0;
    border-radius: 4px;
    border-left: 2px solid #1e5f3a;
  }
}