:root {
  --page: #ecf9f0;
  --green: #064d0b;
  --green-dark: #003d08;
  --ink: #171e19;
  --light-green: #a4e9aa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 112%;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
[class*="__container"] {
  width: 945px;
  max-width: calc(100% - 40px);
  margin-right: auto;
  margin-left: auto;
}

.header {
  height: 95px;
  border-bottom: 1px solid #a5d9ae;
  background: var(--page);
}
.header__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  width: 77px;
  height: 60px;
  display: block;
}
.header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.header__publication {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: #2b9d41;
  font-size: 16px;
  font-style: italic;
}
.header__publication small {
  color: #9baaa0;
  font-size: 16px;
}

.article {
  padding-top: 58px;
  padding-bottom: 25px;
}
.article__section {
  margin-bottom: 42px;
}
.article__intro {
  margin-bottom: 40px;
}
.article__title {
  max-width: 655px;
  margin-bottom: 23px;
  font-size: 40px;
  font-weight: 700;
  line-height: 93%;
}
.article__heading {
  max-width: 650px;
  margin-bottom: 23px;
  font-size: 28px;
  font-weight: 700;
  line-height: 100%;
}
.article p {
  max-width: 650px;
}
.article__copy p:not(:last-child),
.article__section > p:not(:last-child) {
  margin-bottom: 30px;
}
.article__row {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}
.article__row--image-left {
  flex-direction: row;
}
.article__copy {
  flex: 1 1 auto;
  min-width: 0;
}
.article__image {
  flex: 0 0 305px;
  width: 305px;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}
.article__row--image-left .article__image {
  margin-right: 0;
}
.article__section--narrow {
  max-width: 650px;
}
.article__list {
  margin: 0 0 18px;
  padding-left: 23px;
}
.article__list li {
  line-height: 105%;
}

.plants__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.plants__card,
.plants__illustration {
  width: calc((100% - 40px) / 3);
  height: 200px;
}
.plants__card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
}
.plants__card img {
  flex: 0 0 104px;
  width: 104px;
  height: 150px;
  object-fit: contain;
}
.plants__card div {
  flex: 1 1 auto;
  display: flex;
  height: 150px;
  flex-direction: column;
  min-width: 0;
}
.plants__card h3 {
  margin-bottom: 32px;
  font-size: 18px;
  font-weight: 700;
  line-height: 100%;
}
.plants__card p {
  font-size: 16px;
  line-height: 105%;
}
.plants__illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}
.plants__illustration img {
  width: 220px;
  max-height: 190px;
  object-fit: contain;
}

.consultation {
  padding: 35px 0 37px;
  border-radius: 15px;
  background: var(--green);
  color: #fff;
}
.consultation__content {
  width: 600px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}
.consultation h2 {
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 400;
  line-height: 100%;
}
.consultation p {
  max-width: none;
  font-size: 18px;
  line-height: 110%;
}
.consultation__content > p {
  margin-bottom: 14px;
}
.consultation__content > p:last-of-type {
  margin-bottom: 18px;
}
.consultation p strong {
  font-weight: 700;
}
.lead-form {
  font-family: Inter, Arial, sans-serif;
}
.lead-form__field {
  display: block;
  margin-bottom: 14px;
}
.lead-form__field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.lead-form input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #ccd9cf;
  border-radius: 5px;
  outline: none;
  background: #fff;
  color: #1d2720;
  font: inherit;
  font-size: 16px;
}
.lead-form input::placeholder {
  color: #aeb9af;
}
.lead-form input:focus {
  border-color: var(--light-green);
  box-shadow: 0 0 0 2px rgba(164, 233, 170, 0.35);
}
.lead-form__field--phone {
  margin-bottom: 38px;
}
.lead-form__submit {
  width: 100%;
  height: 57px;
  border: 0;
  border-radius: 13px;
  background: var(--light-green);
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  transition: background-color 180ms ease;
}
.lead-form__submit:hover {
  background: #baf4bd;
}
.lead-form__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}
.lead-form__status {
  font-size: 16px;
  text-align: center;
}
.lead-form:has(.lead-form__status:not(:empty)) .lead-form__submit {
  margin-bottom: 12px;
}
.lead-form__status--error {
  color: #ffd9d9;
}

.success-popup {
  width: 940px;
  max-width: calc(100% - 40px);
  height: 456px;
  max-height: calc(100vh - 40px);
  padding: 38px 25px 20px;
  border: 0;
  border-radius: 14px;
  outline: none;
  overflow: auto;
  background: var(--green);
  color: #fff;
  text-align: center;
}
.success-popup::backdrop {
  background: rgba(0, 0, 0, 0.65);
}
.success-popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 28px;
  line-height: 100%;
}
.success-popup__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.success-popup__title {
  font-size: 28px;
  font-weight: 400;
  line-height: 110%;
}
.success-popup__description {
  font-size: 20px;
  line-height: 110%;
}
.success-popup__image {
  width: 432px;
  height: 312px;
  max-width: 100%;
  margin: 20px auto 0;
  object-fit: contain;
}

.disclaimer {
  width: 620px;
  padding-bottom: 31px;
  color: #a9b6ac;
  font-size: 14px;
  font-style: italic;
  line-height: 110%;
}
.footer {
  padding: 24px 0 22px;
  background: #000;
  color: #d3d6d3;
  font-size: 14px;
  line-height: 115%;
}
.footer__intro {
  width: 680px;
  max-width: 100%;
  margin-bottom: 30px;
}
.footer__intro p:not(:last-child) {
  margin-bottom: 16px;
}
.footer__panel {
  margin-bottom: 30px;
  padding: 16px 15px 18px;
  border-radius: 5px;
  background: #282b29;
}
.footer__panel h2 {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}
.footer__columns {
  display: flex;
  gap: 25px;
}
.footer__column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}
.footer__detail span {
  display: block;
  margin-bottom: 6px;
  color: #797e7b;
}
.footer__detail p {
  color: #d3d6d3;
}
.footer__contact h2 {
  font-size: 14px;
  font-weight: 600;
}
.footer a:hover {
  text-decoration: underline;
}
.footer__lower {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.footer__contact {
  flex: 0 1 370px;
}
.footer__contact h2 {
  margin-bottom: 14px;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}
.footer__bottom {
  color: #939b95;
  text-align: center;
}

.legal {
  padding-top: 55px;
  padding-bottom: 70px;
}
.legal__title {
  margin-bottom: 25px;
  color: var(--green);
  font-size: 40px;
  line-height: 100%;
}
.legal__content,
.legal__section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.legal__content {
  gap: 34px;
  max-width: 760px;
}
.legal__section-title {
  color: var(--green);
  font-size: 28px;
  line-height: 105%;
}
.legal__link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
}
.legal__list {
  margin: 0;
  padding-left: 25px;
}
.legal__list li:not(:last-child) {
  margin-bottom: 8px;
}
.legal__contact {
  font-style: normal;
}

@media (max-width: 991px) and (min-width: 768px) {
  [class*="__container"] {
    max-width: calc(100% - 48px);
  }
  .article__row {
    gap: 20px;
  }
  .article__image {
    flex-basis: 32%;
    width: 32%;
  }
  .plants__cards {
    gap: 14px;
  }
  .plants__card,
  .plants__illustration {
    width: calc((100% - 28px) / 3);
    height: 230px;
  }
  .plants__card {
    align-items: flex-start;
    gap: 7px;
    padding: 20px 9px 9px;
  }
  .plants__card div {
    height: auto;
  }
  .plants__card img {
    flex-basis: 80px;
    width: 80px;
  }
  .plants__card h3 {
    font-size: 17px;
  }
  .plants__card p {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  [class*="__container"] {
    max-width: calc(100% - 32px);
  }
  body {
    font-size: 16px;
  }
  .header {
    height: 92px;
  }
  .header__publication small {
    font-size: 13px;
  }
  .article {
    padding-top: 39px;
    padding-bottom: 25px;
  }
  .article__section {
    margin-bottom: 42px;
  }
  .article__title {
    margin-bottom: 24px;
    font-size: 28px;
    line-height: 100%;
  }
  .article__heading {
    margin-bottom: 25px;
    font-size: 24px;
    line-height: 105%;
  }
  .article__row {
    flex-direction: column;
    gap: 20px;
  }
  .article__row--intro .article__image,
  .article__section--cold .article__image {
    order: -1;
  }
  .article__copy,
  .article__image {
    width: 100%;
    flex-basis: auto;
  }
  .article__image {
    height: 425px;
  }
  .article__intro .article__image {
    height: 360px;
  }
  .article__section--autumn .article__image {
    height: 470px;
  }
  .article__section--cold .article__image {
    height: 337px;
  }
  .article__section--money .article__image {
    height: 446px;
  }
  .article__section--narrow {
    max-width: none;
  }
  .plants__cards {
    gap: 20px;
  }
  .plants__card {
    width: 100%;
    height: auto;
    min-height: 124px;
    padding: 15px;
    gap: 12px;
  }
  .plants__card img {
    flex-basis: 95px;
    width: 95px;
    height: 94px;
  }
  .plants__card div {
    height: auto;
    min-height: 94px;
  }
  .plants__illustration {
    display: none;
  }
  .consultation {
    padding: 20px 0 18px;
  }
  .consultation__content {
    width: auto;
    max-width: calc(100% - 48px);
  }
  .consultation h2 {
    font-size: 24px;
    line-height: 110%;
    text-align: center;
  }
  .consultation__content > p {
    font-size: 16px;
  }
  .disclaimer {
    width: 945px;
    padding-bottom: 42px;
  }
  .footer {
    padding-top: 30px;
  }
  .footer__container {
    display: flex;
    flex-direction: column;
  }
  .footer__intro {
    order: 1;
    width: 100%;
    margin-bottom: 30px;
  }
  .footer__lower {
    display: contents;
  }
  .footer__contact {
    order: 2;
    flex: none;
    margin-bottom: 31px;
  }
  .footer__panel {
    order: 3;
    margin-bottom: 31px;
    padding: 16px;
  }
  .footer__columns {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
  .footer__column {
    display: contents;
  }
  .footer__detail {
    flex: 0 0 calc((100% - 20px) / 2);
    min-width: 0;
  }
  .footer__column:nth-child(1) .footer__detail:nth-child(1) { order: 1; }
  .footer__column:nth-child(2) .footer__detail:nth-child(1) { order: 2; }
  .footer__column:nth-child(3) .footer__detail:nth-child(1) { order: 3; }
  .footer__column:nth-child(1) .footer__detail:nth-child(2) { order: 4; }
  .footer__column:nth-child(2) .footer__detail:nth-child(2) { order: 5; }
  .footer__column:nth-child(3) .footer__detail:nth-child(2) { order: 6; }
  .footer__column:nth-child(1) .footer__detail:nth-child(3) { order: 7; }
  .footer__column:nth-child(2) .footer__detail:nth-child(3) { order: 8; }
  .footer__column:nth-child(3) .footer__detail:nth-child(3) { order: 9; }
  .footer__nav {
    order: 4;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
  }
  .footer__bottom {
    order: 5;
  }
  .legal {
    padding-top: 39px;
    padding-bottom: 50px;
  }
  .legal__title {
    font-size: 28px;
  }
  .legal__section-title {
    font-size: 24px;
  }
}
