@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --green: #2f660d;
  --green-dark: #235606;
  --brown: #873025;
  --text: #1f2022;
  --muted: #686d76;
  --border: #cfd2d7;
  --soft-green: #eef4e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.page-container {
  width: min(1536px, calc(100% - 96px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 112px;
  background: #fff;
  border-bottom: 1px solid #e4e5e7;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: block;
  width: clamp(330px, 25vw, 390px);
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-contacts,
.mobile-contacts {
  display: flex;
  align-items: center;
  gap: 28px;
}

.phone-link,
.mobile-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #111;
  font-size: 23px;
  font-weight: 700;
  text-decoration: none;
}

.phone-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--green);
  border-radius: 50%;
}

.phone-link__icon img {
  width: 21px;
  height: 21px;
  filter: invert(33%) sepia(70%) saturate(1038%) hue-rotate(54deg) brightness(75%) contrast(104%);
}

.contacts-divider {
  width: 1px;
  height: 36px;
  background: #d5d6d8;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  line-height: 0;
  transition: transform 160ms ease;
}

.social-link--telegram {
  background: #27a7e7;
}

.social-link--whatsapp {
  background: #25c85a;
}

.social-link--max {
  background: #5744e8;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
}

.social-links img {
  width: 24px;
  height: 24px;
}

.menu-toggle,
.mobile-menu,
.mobile-contacts {
  display: none;
}

.hero {
  min-height: calc(100vh - 112px);
  padding: 58px 0 76px;
  background-color: #fbfcfa;
  background-image: url("assets/lumber-hero.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 770px) minmax(470px, 560px);
  justify-content: space-between;
  gap: 64px;
  padding-right: 90px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 2.65vw, 48px);
  line-height: 1.16;
  letter-spacing: -1.4px;
  font-weight: 800;
}

.text-green {
  color: var(--green);
}

.text-brown {
  color: var(--brown);
}

.location-note {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-height: 52px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--soft-green);
  font-size: 20px;
  font-weight: 500;
}

.location-note img {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  filter: none;
}

.hero-description {
  max-width: 725px;
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.48;
  font-weight: 400;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 38px 0 0;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 16px;
}

.benefit:first-child {
  padding-left: 0;
}

.benefit + .benefit {
  border-left: 1px solid #c7cacd;
}

.benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 50%;
  background: var(--soft-green);
}

.benefit__icon img {
  width: 45px;
  height: 45px;
  filter: none;
}

.benefit h2 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.benefit p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 780px;
  min-height: 82px;
  margin-top: 46px;
  padding: 12px 28px;
  border-radius: 14px;
  background: var(--soft-green);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
}

.security-note__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: #deecd1;
}

.security-note__icon img {
  width: 26px;
  height: 26px;
  filter: none;
}

.request-card {
  align-self: start;
  padding: 42px 42px 38px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(30, 31, 31, 0.12);
}

.request-card > h2 {
  margin: 0 0 7px;
  color: var(--green-dark);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.request-card__subtitle {
  margin: 0 0 27px;
  font-size: 16px;
  line-height: 1.45;
}

.form-message {
  margin: 0 0 20px;
  padding: 13px 16px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.45;
}

.form-message--success {
  color: #245c08;
  background: #eef8e8;
  border: 1px solid #bcd8aa;
}

.form-message--error {
  color: #8f241d;
  background: #fff2f1;
  border: 1px solid #e5b3ae;
}

.form-field {
  margin: 0 0 19px;
}

.form-field label {
  display: block;
  margin: 0 0 8px;
  color: #111;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

.form-field__control {
  position: relative;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 23px;
  height: 23px;
  transform: translateY(-50%);
  opacity: 0.62;
}

.form-field input {
  display: block;
  width: 100%;
  height: 58px;
  padding: 0 18px 0 54px;
  border: 1px solid #bfc3c8;
  border-radius: 8px;
  outline: 0;
  color: #17191b;
  background: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input::placeholder {
  color: #8b8e94;
  opacity: 1;
}

.form-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 102, 13, 0.12);
}

.form-field input[aria-invalid="true"] {
  border-color: #a8342a;
}

.field-error {
  margin: 6px 0 0;
  color: #9c2f25;
  font-size: 12px;
  line-height: 1.35;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  min-height: 70px;
  margin-top: 31px;
  padding: 14px 24px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #287d0b;
  box-shadow: 0 8px 20px rgba(34, 102, 10, 0.19);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: #216906;
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.submit-button img {
  width: 27px;
  height: 27px;
  filter: none;
}

.consent-text {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.consent-text a {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (min-width: 1321px) and (max-width: 1500px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(470px, 560px);
    gap: 88px;
    padding-right: 66px;
  }

  .benefit {
    gap: 10px;
  }

  .benefit:nth-child(2) {
    gap: 8px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .benefit:nth-child(2) .benefit__icon {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .benefit:nth-child(2) .benefit__icon img {
    width: 39px;
    height: 39px;
  }

  .benefit:nth-child(2) p {
    font-size: 11.5px;
  }

  .benefit__icon {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }

  .benefit__icon img {
    width: 41px;
    height: 41px;
  }

  .benefit p {
    font-size: 12px;
  }
}

@media (max-width: 1320px) {
  .page-container {
    width: min(1160px, calc(100% - 64px));
  }

  .hero__layout {
    grid-template-columns: minmax(0, 620px) minmax(430px, 500px);
    gap: 42px;
    padding-right: 0;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

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

@media (max-width: 960px) {
  .page-container {
    width: calc(100% - 80px);
  }

  .site-header {
    height: 118px;
    border-bottom: 0;
  }

  .brand {
    width: min(390px, calc(100% - 92px));
  }

  .desktop-contacts {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    background: var(--soft-green);
  }

  .menu-toggle img {
    width: 40px;
    height: 40px;
    filter: none;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% - 7px);
    right: 0;
    display: grid;
    width: min(310px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid #dfe3dc;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(20, 30, 17, 0.15);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu a {
    padding: 17px 20px;
    color: #1b1d1b;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-menu a + a {
    border-top: 1px solid #eceeeb;
  }

  .hero {
    min-height: 0;
    padding: 60px 0 28px;
    background-position: calc(100% + 130px) 70px;
    background-size: auto 585px;
  }

  .hero__layout {
    display: block;
  }

  .hero-copy h1 {
    max-width: 690px;
    margin-bottom: 31px;
    font-size: clamp(32px, 4.4vw, 39px);
    line-height: 1.24;
    letter-spacing: -0.7px;
  }

  .location-note {
    max-width: 470px;
    padding: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1.6;
    font-weight: 700;
  }

  .location-note img {
    width: 35px;
    height: 35px;
  }

  .hero-description {
    max-width: 550px;
    margin-top: 24px;
    font-size: 19px;
    line-height: 1.76;
  }

  .benefits {
    max-width: 780px;
    margin-top: 50px;
  }

  .benefit {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    text-align: center;
  }

  .benefit:first-child {
    padding-left: 0;
  }

  .benefit:last-child {
    padding-right: 0;
  }

  .benefit__icon {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    background: transparent;
  }

  .benefit__icon img {
    width: 58px;
    height: 58px;
  }

  .benefit h2 {
    color: var(--green);
    font-size: 20px;
  }

  .benefit p {
    font-size: 16px;
    line-height: 1.6;
  }

  .benefit:first-child p {
    max-width: 200px;
  }

  .security-note {
    display: none;
  }

  .request-card {
    margin: 67px 8px 0;
    padding: 46px 38px 44px;
    border-radius: 20px;
  }

  .request-card > h2 {
    font-size: 27px;
  }

  .request-card__subtitle {
    margin-bottom: 29px;
    font-size: 18px;
  }

  .field-icon {
    display: none;
  }

  .form-field input {
    height: 66px;
    padding-left: 24px;
    font-size: 18px;
  }

  .form-field label {
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 500;
  }

  .form-field {
    margin-bottom: 23px;
  }

  .submit-button {
    min-height: 78px;
    margin-top: 33px;
    font-size: 25px;
  }

  .consent-text {
    font-size: 16px;
    line-height: 1.7;
  }

  .mobile-contacts {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    margin-top: 80px;
  }

  .mobile-phone {
    font-size: 24px;
  }

  .mobile-phone .phone-link__icon {
    width: 60px;
    height: 60px;
  }

  .mobile-phone .phone-link__icon img {
    width: 29px;
    height: 29px;
  }

  .mobile-contacts .social-links {
    margin-left: auto;
  }

  .mobile-contacts .social-links a {
    width: 60px;
    height: 60px;
  }

  .mobile-contacts .social-links img {
    width: 31px;
    height: 31px;
  }
}

@media (max-width: 600px) {
  .page-container {
    width: calc(100% - 44px);
  }

  .site-header {
    height: 64px;
  }

  .brand {
    width: min(166px, calc(100% - 54px));
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
    padding: 5px;
  }

  .menu-toggle img {
    width: 24px;
    height: 24px;
  }

  .hero {
    padding: 11px 0 18px;
    background-position: calc(100% + 38px) 28px;
    background-size: auto 220px;
  }

  .hero-copy h1 {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.43;
    letter-spacing: -0.15px;
  }

  .location-note {
    max-width: 230px;
    min-height: 0;
    gap: 7px;
    font-size: 10px;
    line-height: 1.45;
  }

  .location-note img {
    width: 16px;
    height: 16px;
  }

  .hero-description {
    max-width: 225px;
    margin-top: 14px;
    font-size: 8.5px;
    line-height: 1.62;
  }

  .benefits {
    margin-top: 22px;
  }

  .benefit {
    gap: 5px;
    padding: 0 7px;
  }

  .benefit__icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .benefit__icon img {
    width: 29px;
    height: 29px;
  }

  .benefit h2 {
    margin-bottom: 3px;
    font-size: 9.5px;
  }

  .benefit p {
    font-size: 7.5px;
    line-height: 1.5;
  }

  .benefit:first-child p {
    max-width: 85px;
  }

  .request-card {
    margin: 24px 0 0;
    padding: 17px 17px 18px;
    border-radius: 14px;
  }

  .request-card > h2 {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .request-card__subtitle {
    margin-bottom: 11px;
    font-size: 8.5px;
  }

  .form-field label {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .form-field {
    margin-bottom: 9px;
  }

  .form-field input {
    height: 30px;
    padding: 0 11px;
    border-radius: 6px;
    font-size: 9px;
  }

  .submit-button {
    min-height: 36px;
    margin-top: 15px;
    padding: 8px 16px;
    gap: 10px;
    border-radius: 6px;
    font-size: 13.5px;
  }

  .submit-button img {
    width: 17px;
    height: 17px;
  }

  .consent-text {
    margin-top: 10px;
    font-size: 7.5px;
    line-height: 1.55;
  }

  .mobile-contacts {
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 25px;
  }

  .mobile-phone {
    gap: 8px;
    font-size: 12.5px;
  }

  .mobile-phone .phone-link__icon {
    width: 30px;
    height: 30px;
  }

  .mobile-phone .phone-link__icon img {
    width: 15px;
    height: 15px;
  }

  .mobile-contacts .contacts-divider {
    display: block;
    height: 29px;
  }

  .mobile-contacts .social-links {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    padding: 0;
  }

  .mobile-contacts .social-links a {
    width: 30px;
    height: 30px;
  }

  .mobile-contacts .social-links img {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
