body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f5f5dc;
  color: #2e3b2e;
}

header,
footer {
  background: #2e6d2e;
  color: white;
  padding: 1em;
  text-align: center;
}

header h1 {
  color: white;
  margin-bottom: 0.2em;
}

header p {
  margin-top: 0;
}

.language-switcher {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-bottom: 1em;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  width: 2.2em;
  height: 2.2em;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  font-size: 1.35em;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1;
}

.language-switcher a:hover,
.language-switcher a.active {
  background: rgba(255, 255, 255, 0.18);
}

.language-switcher span {
  display: inline-block;
}

.language-switcher .lang-code {
  display: none;
  font-size: 0.7em;
}

.no-emoji-flags .language-switcher a {
  width: 2.8em;
  height: 2.1em;
  font-size: 0.95em;
}

.no-emoji-flags .language-switcher .flag {
  display: none;
}

.no-emoji-flags .language-switcher .lang-code {
  display: inline-block;
}

main {
  padding: 2em;
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 2em;
}

.content-main {
  flex: 2;
}

.sidebar {
  flex: 1;
  background: #e0e4d0;
  padding: 1em;
  border: 1px solid #ccd;
  height: fit-content;
  position: sticky;
  top: 2em;
}

section {
  margin-bottom: 3em;
}

h1,
h2,
h3 {
  color: #2e6d2e;
}

ul {
  padding-left: 1.2em;
}

.video-icons {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 1em;
}

.video-icons button {
  width: 140px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2e3b2e;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.video-icons img {
  width: 120px;
  max-width: 100%;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s;
}

.video-icons button:hover img {
  transform: scale(1.05);
}

.video-icons span {
  display: block;
  margin-top: 0.35em;
}

.video-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 2px solid #333;
  padding: 1em;
  z-index: 1000;
}

.video-popup iframe {
  width: 560px;
  height: 315px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.illustration {
  text-align: center;
  margin: 2em 0;
}

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

.faq details {
  border-top: 1px solid #d0d5bf;
  padding: 0.85em 0;
}

.faq details:last-child {
  border-bottom: 1px solid #d0d5bf;
}

.faq summary {
  color: #2e6d2e;
  cursor: pointer;
  font-weight: bold;
}

.faq summary:hover {
  text-decoration: underline;
}

.faq details p {
  margin: 0.6em 0 0;
}

form {
  display: grid;
  gap: 1em;
}

.hp-field {
  display: none;
}

.form-row {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

input,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6em;
  border: 1px solid #b8bea9;
  border-radius: 4px;
  font: inherit;
}

.form-row input {
  flex: 1 1 220px;
}

button[type="submit"] {
  justify-self: start;
  padding: 0.6em 1.2em;
  background-color: #2e6d2e;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
}

.visitor-counter {
  margin-top: 0.5em;
  font-size: 0.95em;
}

.visitor-counter strong {
  color: white;
  font-size: 1.4em;
  line-height: 1.2;
}

@media (max-width: 768px) {
  main {
    flex-direction: column;
    padding: 1em;
  }

  .sidebar {
    position: static;
    margin-top: 2em;
  }

  .video-popup {
    width: calc(100% - 2em);
    box-sizing: border-box;
  }

  .video-popup iframe {
    width: 100%;
    height: 56.25vw;
  }

}
