* {
  box-sizing: border-box;
}
body {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  padding: 0;
  margin: 0;
  color: #012226;
}
a {
  color: #107E7B;
}
.tac {
  text-align: center;
}
.hbox {
  display: flex;
}
.alic {
  align-items: center;
}
.just-cn {
  justify-content: center;
}
.textfield {
  position: relative;
  z-index: 1;
}
.textfield .prepend {
  position: absolute;
}
.textfield input {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
}
.header {
  font-family: 'Roboto Condensed', Helvetica, Arial, sans-serif;
  background: url(/img/header-img.jpg) no-repeat 50% 0%;
  background-size: cover;
  background-attachment: fixed;
  /* пространство под фиксированным меню */
  padding-top: 7rem;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  margin-top: 0;
}
.header h1 {
  font-size: 62px;
  text-align: center;
  max-width: 960px;
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.header.nobg {
  height: auto;
  min-height: 0;
}
.header.about {
  background: url(/img/planters.jpg) no-repeat 50% 50%;
  justify-content: flex-start;
  background-size: cover;
  background-position: 0 0;
  height: 400px;
}
.header.about h1 {
  flex-grow: 0;
}
.nobg {
  background: none;
}
.trees-planted {
  font-size: 22px;
  color: #fff;
  text-align: center;
  flex-grow: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.trees-planted .title {
  font-size: 53px;
}
.trees-planted .counter {
  font-size: 42px;
}
.logo {
  color: #107E7B;
}
.logo svg {
  width: 294px;
  height: 44px;
}
.header-cta {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 24px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.header-cta .btn {
  font-size: 32px;
  margin-right: 0.5em;
}
.btn {
  background-color: #107E7B;
  border: 0;
  font-family: 'Roboto Condensed', Helvetica, Arial, sans-serif;
  color: #fff;
  text-decoration: none;
  padding: 0.2em 0.5em;
  border-radius: 0.25em;
  cursor: pointer;
}
.btn:hover {
  background-color: #149e9a;
}
.btn:disabled {
  background-color: #999;
  cursor: not-allowed;
}
.menu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  max-width: 1100px;
  padding: 16px 20px;
  align-items: center;
  font-size: 1.3rem;
  width: 100%;
  font-family: 'Roboto Condensed', Helvetica, Arial, sans-serif;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
}
.menu .col-nav {
  display: flex;
  align-items: center;
}
.menu .col-nav > * {
  margin-left: 3rem;
}
.menu .col-nav a.active {
  text-decoration: none;
  color: #000;
}
body > .menu {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}
.hdg1 {
  font-family: 'Roboto Condensed', Helvetica, Arial, sans-serif;
  font-size: 42px;
  font-weight: bold;
}
.subhdg {
  color: #787878;
  font-size: 18px;
}
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 20px;
}
.wlimit {
  max-width: 1000px;
  margin: 100px auto;
  padding: 0 20px;
}
.sec-why {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.sec-why p {
  line-height: 1.5;
}
.img-title {
  background: url(/img/why-trees.jpg) no-repeat 50% 50%;
  background-size: cover;
  background-attachment: fixed;
  text-align: center;
  color: #fff;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}
.img-title .title {
  font-size: 52px;
  font-family: 'Roboto Condensed', Helvetica, Arial, sans-serif;
  font-weight: bold;
}
.img-title .subtitle {
  font-size: 24px;
}
.trees-grid {
  display: grid;
  display: -ms-grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 1.5rem;
  margin-top: 2rem;
}
.trees-grid .item {
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 1.5rem 0;
  border-radius: 6px;
  text-decoration: none;
  color: #012226;
}
.trees-grid .item:hover {
  border: 2px solid #ccc;
}
.trees-grid .item .title {
  font-family: 'Roboto Condensed', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
}
.trees-grid .item .price {
  font-size: 24px;
  font-weight: bold;
}
.imgp {
  margin: 4rem 0;
  display: flex;
  line-height: 1.5;
  font-size: 18px;
}
.imgp:nth-child(even) .col-text {
  order: 1;
}
.imgp:nth-child(even) .col-img {
  order: 2;
  margin-right: 0;
  margin-left: 3rem;
}
.imgp .col-img {
  width: 256px;
  height: 256px;
  overflow: hidden;
  border-radius: 128px;
  flex-shrink: 0;
  margin-right: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.imgp .col-img img {
  height: 100%;
  width: auto;
}
.imgp .title {
  font-size: 24px;
  font-family: 'Roboto Condensed', Helvetica, Arial, sans-serif;
  font-weight: bold;
}
.trees-select {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.field-label {
  display: block;
  margin-top: 2em;
  margin-bottom: 8px;
}
.selected-trees {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.selected-trees img {
  height: 100%;
  vertical-align: middle;
}
.pay-amount {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}
.pay-amount .hint {
  font-size: 18px;
  padding-left: 1rem;
}
.pay-input {
  border: 2px solid #444;
  border-radius: 4px;
  display: flex;
  margin-right: 8px;
}
.pay-input input {
  background: #fff;
  border: 0;
  padding: 0.25em;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  width: 80px;
  text-align: center;
}
.pay-input .currency {
  background: #444;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  padding: 0 0.5em;
  font-size: 18px;
}
.btn-pay {
  display: inline-block;
  font-size: 18px;
  border: 0;
}
.icon24 {
  width: 24px;
  height: 24px;
}
.btn-group {
  display: flex;
}
.btn-group .btn {
  display: flex;
  align-items: center;
  background: none;
  color: #107E7B;
  text-decoration: underline;
  font-weight: bold;
  font-size: 18px;
  padding: 8px 16px;
}
.btn-group .btn svg {
  margin-right: 8px;
}
.btn-group .btn.active {
  background-color: #012226;
  color: #fff;
  text-decoration: none;
  cursor: default;
}
.pay-method {
  margin-top: 48px;
}
.pay-method .btn-group {
  margin-top: 16px;
}
.pay-method .btn-group label {
  color: #444;
  cursor: pointer;
}
.pay-method .btn-group label input[type="radio"] {
  position: absolute;
  opacity: 0;
  z-index: -1;
  left: -9999px;
}
.pay-method .btn-group label input[type="radio"]:checked + span {
  background: #444;
  color: #fff;
}
.pay-method .btn-group label span {
  display: flex;
  align-items: center;
  border-radius: 5px;
  padding: 8px 16px;
}
.pay-method .btn-group label span svg {
  margin-right: 6px;
}
.row-pay {
  margin-top: 1rem;
}
.row-pay button {
  font-size: 18px;
  background-color: #107E7B;
  border: 0;
  font-family: 'Roboto Condensed', Helvetica, Arial, sans-serif;
  color: #fff;
  text-decoration: none;
  padding: 0.4em 1em;
  border-radius: 0.25em;
  cursor: pointer;
}
.row-pay button:hover {
  background-color: #149e9a;
}
.contacts input,
.contacts textarea {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  padding: 8px;
}
.contacts textarea {
  resize: vertical;
}
.wmwallets {
  display: none;
}
.wmwallets.active {
  display: block;
}
.inp {
  padding: 4px 8px;
  border: 2px solid #444;
  border-radius: 4px;
}

/* Language selector */
.lang-select {
  display: flex;
}
.lang-select > div {
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 3px;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
}
.lang-select .active {
  color: #fff;
  background: #000;
}

/* Footer */
.footer {
  padding: 60px;
  background: #728D8D;
  text-align: center;
  color: #fff;
  margin-top: 48px;
}
.footer a {
  color: #fff;
}
.footer-counter {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* Donation form styles */
.form-donate {
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 16px;
}
.pay-email-row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.email-input {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.email-input input {
  width: 200px;
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 4px;
  font-size: 16px;
}
.error-container {
  margin-top: 16px;
  text-align: center;
}
.error-message {
  display: block;
  color: red;
  font-size: 14px;
  margin-bottom: 4px;
}
.sec-donate {
  /* убираем верхний отступ, чтобы не появлялась белая полоса сразу под хедером */
  padding-top: 0;
}
.sec-donate .icon {
  width: 34px;
  height: 34px;
}
.sec-donate .hdg1 + .tac {
  margin-top: 16px;
  color: #107E7B;
}
.donate-text {
  text-align: center;
  font-size: 16px;
  color: #2c3e50;
  margin: 12px 0 18px;
}
.donate-text .account {
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border: 1px solid #0f7e7b;
  border-radius: 6px;
}
.donate-text .loading {
  color: #999;
  border-color: #ccc;
}

/* Reports page styles */
.reports h1 {
  margin-top: 32px;
}
.report {
  display: flex;
  margin: 48px 0;
}
.col-text-imgs {
  flex: 1;
}
.part-imgs {
  margin-right: 16px;
  display: flex;
  margin-top: 16px;
}
.part-imgs > * {
  margin-right: 16px;
}
.part-imgs img {
  height: 100px;
  vertical-align: middle;
  cursor: pointer;
}
.part-text .date {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: bold;
}
.part-text .desc {
  line-height: 1.5;
}
.col-donations {
  flex-basis: 250px;
  flex-shrink: 0;
  margin-left: 40px;
}
.col-donations .title {
  font-weight: bold;
}
.donations-list {
  max-height: 276px;
  position: relative;
  overflow: hidden;
}
.donations-list.show-all {
  max-height: none;
}
.show-more {
  cursor: pointer;
  color: #107E7B;
  text-decoration: underline;
  margin-top: 8px;
}
.donator {
  margin-top: 8px;
  display: flex;
  align-items: center;
}
.donator .icon24 {
  color: #107E7B;
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

/* Image zoom styles */
.zoom-wrapper {
  display: inline-block;
}
.image-zoom {
  z-index: 1;
  position: relative;
}
.image-zoom.active {
  position: fixed;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: auto;
}
.image-zoom.active img {
  height: auto;
  max-height: 700px;
  max-width: 90%;
}
.image-zoom.active .overlay {
  display: block;
}
.image-zoom img {
  position: relative;
  z-index: 2;
  height: 100px;
  transition: height 0.2s;
  cursor: pointer;
}
.image-zoom .overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1;
}

/* Contact form styles */
.form-status {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.4;
}
.form-status.success {
  color: #1b7f3b;
}
.form-status.error {
  color: #b00020;
}

/* Loading indicator */
.loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* Responsive styles */
@media (max-width: 732px) {
  .header h1 {
    font-size: 36px;
    padding: 0 20px;
  }
  .header-cta .btn {
    font-size: 24px;
  }
  .trees-planted .title {
    font-size: 32px;
  }
  .trees-planted .counter {
    font-size: 28px;
  }
  .menu {
    flex-direction: column;
    gap: 16px;
  }
  .menu .col-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .menu .col-nav > * {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .imgp {
    flex-direction: column;
    text-align: center;
  }
  .imgp .col-img {
    margin: 0 auto 1rem;
  }
  .imgp:nth-child(even) .col-img {
    margin: 0 auto 1rem;
  }
  .report {
    flex-direction: column;
  }
  .col-donations {
    margin-left: 0;
    margin-top: 24px;
  }
  .pay-email-row {
    flex-direction: column;
  }
  .email-input input {
    width: 100%;
  }
  .image-zoom.active {
    align-items: flex-start;
    justify-content: flex-start;
    top: 50px;
    padding: 10px;
  }
  .image-zoom.active img {
    max-width: 100%;
  }
  .image-zoom.active .image {
    margin: auto;
  }
  .hdg1 {
    font-size: 28px;
  }
  .img-title .title {
    font-size: 32px;
    padding: 0 20px;
  }
  .img-title .subtitle {
    font-size: 18px;
  }
  .footer {
    padding: 30px 20px;
  }
}
