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

:root {
  --color-green: #2E392E;
  --color-green-dark: #2E392E;
  --color-text: #2E392E;
  --color-muted: #2E392E;
  --color-line: #2E392E;
  --color-soft: #f1f1f1;
  --color-white: #ffffff;
  --container: 1360px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.28;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.section-shell {
  width: min(100% - 30px, var(--container));
  margin-inline: auto;
}

/* Shared navigation */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--color-green);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.brand__mark {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.nav {
  display: none;
}

.nav a {
  color: var(--color-green);
  font-size: 12px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--color-green);
}

.icon-phone {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-green);
  border-radius: 50%;
  background: var(--color-white);
}

.icon-phone::before {
  width: 20px;
  height: 20px;
  content: "";
  background: url("assets/header-phone.png") center / contain no-repeat;
}

.outline-button,
.hero__button,
.solid-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.outline-button {
  height: 32px;
  padding-inline: 25px;
  border: 1px solid var(--color-green);
  color: var(--color-green);
  background: var(--color-white);
  font-size: 12px;
}

.outline-button:hover,
.hero__button:hover,
.solid-button:hover,
.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

/* Sticky desktop header */
.sticky-header {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  display: none;
  width: min(100% - 60px, var(--container));
  transform: translate(-50%, -90px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.sticky-header.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 54px;
  padding: 8px 16px;
  border: 1px solid rgba(46, 57, 46, 0.15);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(20, 30, 20, 0.12);
  backdrop-filter: blur(10px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 760px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 20px;
}

.hero__background {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(18, 29, 19, 0.22), rgba(18, 29, 19, 0.04)), url("assets/hero-field.png");
  background-position: center;
  background-size: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  padding: 22px 96px 85px;
}

.hero__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 1168px);
  min-height: 47px;
  margin-inline: auto;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
}

.hero__nav .brand {
  margin-right: auto;
}

.hero__nav .icon-phone,
.hero__nav .outline-button {
  display: none;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 0;
  background: transparent;
}

.burger span {
  display: block;
  height: 1px;
  background: var(--color-green);
}

.mobile-menu {
  position: absolute;
  top: 76px;
  right: 28px;
  display: grid;
  gap: 14px;
  width: 220px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(17, 24, 17, 0.16);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero__text {
  width: min(100%, 560px);
  margin-top: 73px;
  color: var(--color-white);
}

.hero__text h1 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(31px, 6vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__text p {
  max-width: 420px;
  margin: 34px 0 42px;
  color: var(--color-white);
  font-size: clamp(16px, 2.8vw, 24px);
  font-weight: 400;
  line-height: 1.08;
}

.hero__button {
  min-width: 211px;
  height: 48px;
  gap: 36px;
  padding-inline: 34px;
  color: var(--color-green);
  background: var(--color-white);
  font-size: 14px;
}

.arrow-button span {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 1px;
  background: currentColor;
}

.arrow-button span::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  content: "";
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* About */
.about {
  padding: 70px 0 84px;
}

.about__grid {
  display: grid;
  gap: 40px;
}

.about__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.about__image {
  width: 100%;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
}

.about__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(53%, 294px);
  transform: translate(-50%, -50%);
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.about__copy h2,
.catalog h2,
.workflow h2,
.lead h2 {
  margin: 0;
  color: var(--color-green);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.about__copy h2 {
  font-size: clamp(31px, 5vw, 48px);
}

.about__copy p {
  margin: 0;
  font-size: 16px;
}

.about__copy {
  display: grid;
  gap: 30px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  margin-top: 54px;
  text-align: center;
}

.stats__item {
  display: grid;
  gap: 9px;
}

.stats__item--wide {
  grid-column: 1 / -1;
}

.stats strong {
  color: var(--color-green);
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 500;
  line-height: 1;
}

.stats span {
  font-size: clamp(14px, 3.8vw, 24px);
}

/* Catalog */
.catalog {
  padding: 0 0 96px;
}

.catalog h2 {
  margin-bottom: 40px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.18;
}

.catalog__grid {
  display: grid;
  gap: 25px;
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 1 / 1.34;
  border-radius: 14px;
  object-fit: cover;
}

.catalog-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  margin: 14px 0 0;
  padding: 5px 16px;
  border: 1px solid var(--color-green);
  border-radius: var(--radius-pill);
  color: var(--color-green);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

/* Workflow */
.workflow {
  padding: 0 0 96px;
}

.workflow__head {
  margin-bottom: 34px;
}

.workflow h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 5vw, 48px);
}

.workflow__head p {
  max-width: 515px;
  margin: 0;
  font-size: 18px;
}

.workflow__grid {
  display: grid;
  gap: 40px;
}

.workflow__visual {
  display: none;
}

.workflow__visual img {
  width: 560px;
  height: 379px;
  border-radius: 14px;
  object-fit: cover;
}

.solid-button {
  width: 100%;
  height: 50px;
  gap: 43px;
  border: 0;
  color: var(--color-white);
  background: var(--color-green-dark);
  font-size: 14px;
}

.workflow-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 49px 1fr;
  align-items: center;
  min-height: 74px;
  border-top: 1px solid var(--color-line);
}

.workflow-list li:last-child {
  border-bottom: 1px solid var(--color-line);
}

.workflow-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  overflow: hidden;
}

.workflow-list__icon img {
  width: 40px;
  height: 40px;
  max-width: none;
}

.workflow-list h3 {
  margin: 0 0 7px;
  color: var(--color-green);
  font-size: 20px;
  font-weight: 600;
}

.workflow-list p {
  margin: 0;
  font-size: 13px;
}

.workflow__mobile-button {
  margin-top: 30px;
}

/* Lead form */
.lead {
  max-width: 570px;
  padding: 0 0 88px;
  text-align: center;
}

.lead h2 {
  font-size: clamp(31px, 6vw, 48px);
  line-height: 1.08;
}

.lead > p {
  margin: 25px auto 27px;
  font-size: 20px;
}

.lead-form {
  display: grid;
  gap: 13px;
}

.lead-form > label:not(.consent) > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.lead-form input[type="text"],
.lead-form input[type="tel"] {
  width: 100%;
  height: 52px;
  padding: 0 27px;
  border: 1px solid #d9d9d9;
  border-radius: var(--radius-pill);
  outline: 0;
  background: var(--color-soft);
  color: var(--color-text);
  font-size: 14px;
}

.lead-form input:focus {
  border-color: #b7b7b7;
}

.submit-button {
  height: 56px;
  border: 0;
  color: var(--color-white);
  background: var(--color-green-dark);
  font-size: 16px;
}

.submit-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #a0a0a0;
  font-size: 11px;
  line-height: 1.2;
  text-align: left;
}

.consent input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-green-dark);
}

.consent button,
.footer button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
}

.form-status {
  min-height: 18px;
  margin: 0;
  color: var(--color-green);
  font-size: 13px;
}

/* Partners */
.partners {
  overflow: hidden;
  padding: 28px 0 34px;
  background: var(--color-white);
}

.partners__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 78px;
  animation: marquee 34s linear infinite;
}

.partners__track img {
  width: 198px;
  height: 84px;
  object-fit: contain;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Footer */
.footer {
  color: var(--color-white);
  background: var(--color-green-dark);
}

.footer__inner {
  display: grid;
  gap: 36px;
  width: min(100% - 30px, var(--container));
  margin-inline: auto;
  padding: 58px 0 28px;
}

.brand--footer {
  color: var(--color-white);
  font-size: 20px;
}

.footer .brand--footer .brand__name {
  color: var(--color-white);
  font-size: 20px;
}

.brand--footer .brand__mark {
  width: 62px;
  height: 62px;
  filter: brightness(0) invert(1);
}

.footer p,
.footer a,
.footer button,
.footer span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-style: normal;
}

.footer h2 {
  margin: 0 0 32px;
  color: var(--color-white);
  font-size: 20px;
  font-weight: 600;
}

.footer__brand,
.footer__contacts,
.footer__address {
  display: grid;
  align-content: start;
  gap: 15px;
  font-style: normal;
}

.footer__contacts a {
  width: max-content;
}

.footer__requisites {
  display: grid;
  gap: 15px;
}

.footer__socials {
  display: flex;
  align-items: center;
  width: 161px;
  height: 40px;
}

.footer__social {
  display: block;
  width: 53.666px;
  height: 40px;
  background-image: url("assets/footer-3logo.png");
  background-repeat: no-repeat;
  background-size: 161px 40px;
}

.footer__contacts .footer__social {
  width: 53.666px;
}

.footer__social--phone {
  background-position: left center;
}

.footer__social--max {
  background-position: center center;
}

.footer__social--whatsapp {
  background-position: right center;
}

.footer__address strong {
  font-size: 13px;
}

.footer__bottom {
  display: grid;
  gap: 18px;
}

/* Popups and modals */
.contact-popup,
.legal-modal {
  position: fixed;
  z-index: 80;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 30px), 520px);
  max-height: min(85vh, 620px);
  overflow: auto;
  padding: 32px;
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: 0 30px 90px rgba(13, 18, 13, 0.25);
  transform: translate(-50%, -50%);
}

.contact-popup h2,
.legal-modal h2 {
  margin: 0 0 22px;
  color: var(--color-green);
  font-size: 28px;
  font-weight: 600;
}

.contact-popup a,
.contact-popup p,
.legal-modal p {
  display: block;
  margin: 0 0 14px;
  color: var(--color-text);
  font-size: 16px;
}

.modal-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(12, 18, 12, 0.58);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: var(--color-green);
  font-size: 24px;
  line-height: 1;
}

@media (min-width: 680px) {
  .catalog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  body {
    font-size: 18px;
  }

  .sticky-header {
    display: block;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 46px;
  }

  .nav a,
  .outline-button {
    font-size: 14px;
  }

  .brand {
    font-size: 18px;
  }

  .brand__mark {
    width: 48px;
    height: 48px;
  }

  .hero__nav .icon-phone,
  .hero__nav .outline-button {
    display: inline-flex;
  }

  .burger,
  .mobile-menu {
    display: none;
  }

  .hero__nav {
    padding-left: 13px;
    padding-right: 13px;
    min-height: 58px;
  }

  .hero {
    min-height: 825px;
  }

  .hero__content {
    padding: 25px 115px 92px;
  }

  .hero__text {
    margin-top: 95px;
  }

  .hero__text h1 {
    font-size: 66px;
  }

  .hero__text p {
    font-size: 26px;
  }

  .hero__button {
    min-width: 240px;
    height: 54px;
    font-size: 16px;
  }

  .about__grid {
    grid-template-columns: 620px 620px;
    align-items: start;
    gap: 70px;
  }

  .about__image-wrap {
    height: 420px;
  }

  .about__logo {
    width: min(30%, 168px);
  }

  .about__copy p {
    font-size: 18px;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 76px;
  }

  .stats__item--wide {
    grid-column: auto;
  }

  .catalog__grid {
    gap: 44px;
  }

  .workflow__grid {
    grid-template-columns: 620px 620px;
    gap: 56px;
  }

  .workflow__visual {
    display: grid;
    gap: 20px;
  }

  .workflow__visual img {
    width: 620px;
    height: 420px;
  }

  .workflow__mobile-button {
    display: none;
  }

  .lead-form {
    width: 620px;
    margin-inline: auto;
  }

  .lead {
    max-width: 640px;
  }

  .footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(56px, 7vw, 130px);
    min-height: 360px;
  }

  .footer__bottom {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(56px, 7vw, 130px);
    align-items: end;
  }

  .footer__contacts {
    justify-self: center;
  }

  .footer__address {
    justify-self: end;
  }

  .brand--footer {
    gap: 18px;
    font-size: 32px;
  }

  .footer .brand--footer .brand__name {
    font-size: 24px;
  }

  .brand--footer .brand__mark {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 899px) {
  .section-shell {
    width: min(100% - 32px, 350px);
  }

  .hero {
    width: min(100% - 40px, 350px);
    min-height: 660px;
    margin-top: 0;
    border-radius: 0;
  }

  .hero__background {
    top: 61px;
    border-radius: 12px;
    background-position: 57% top;
  }

  .hero__content {
    padding: 16px 0 27px;
  }

  .hero__nav {
    min-height: 48px;
    padding-inline: 0;
    background: transparent;
    border-radius: 0;
  }

  .hero__nav .icon-phone {
    display: inline-flex;
    margin-left: auto;
  }

  .hero__nav .brand {
    margin-right: 0;
  }

  .brand {
    font-size: 11px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .hero__nav .brand__name {
    font-size: 14px;
  }

  .hero__nav .icon-phone {
    width: 34px;
    height: 34px;
  }

  .hero__nav .icon-phone::before {
    width: 16px;
    height: 16px;
  }

  .burger {
    width: 30px;
    margin-left: 8px;
  }

  .mobile-menu {
    top: 62px;
    right: 0;
  }

  .hero__text {
    margin-top: 77px;
    padding-inline: 10px;
  }

  .hero__text h1 {
    max-width: 310px;
    font-size: 27px;
  }

  .hero__text p {
    max-width: 300px;
    margin: 28px 0 301px;
    font-size: 18px;
  }

  .hero__button {
    width: 100%;
    height: 48px;
    font-size: 15px;
  }

  .about {
    padding: 80px 0 78px;
  }

  .about__image-wrap {
    display: none;
  }

  .about__copy {
    gap: 24px;
  }

  .about__copy p {
    font-size: 15px;
    line-height: 1.18;
  }

  .about__copy h2 {
    font-size: 28px;
  }

  .stats {
    margin-top: 40px;
  }

  .stats strong {
    font-size: 48px;
  }

  .stats__item--wide strong {
    font-size: 56px;
  }

  .catalog {
    padding-bottom: 96px;
  }

  .catalog h2 {
    margin-bottom: 42px;
    font-size: 28px;
    line-height: 1.25;
    text-align: center;
  }

  .catalog__grid {
    gap: 28px;
  }

  .catalog-card img {
    aspect-ratio: 350 / 252;
    border-radius: 12px;
  }

  .workflow {
    padding-bottom: 88px;
    text-align: center;
  }

  .workflow__head {
    margin-bottom: 36px;
  }

  .workflow__head p {
    font-size: 18px;
  }

  .workflow-list {
    text-align: left;
  }

  .workflow-list h3 {
    font-size: 19px;
  }

  .workflow-list p {
    font-size: 13px;
  }

  .workflow-list li {
    grid-template-columns: 52px 1fr;
    min-height: 78px;
  }

  .lead {
    padding-bottom: 62px;
  }

  .lead > p {
    font-size: 18px;
  }

  .partners {
    padding: 22px 0 28px;
  }

  .partners__track {
    gap: 44px;
    animation-duration: 28s;
  }

  .partners__track img {
    width: 122px;
    height: 54px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
    padding: 42px 0 28px;
  }

  .footer__brand {
    display: contents;
  }

  .footer__brand .brand--footer,
  .footer__company-name {
    grid-column: 1 / -1;
    justify-items: center;
    order: 1;
    text-align: center;
  }

  .brand--footer {
    flex-direction: column;
    gap: 10px;
    font-size: 18px;
  }

  .footer .brand--footer .brand__name {
    font-size: 18px;
  }

  .brand--footer .brand__mark {
    width: 62px;
    height: 62px;
  }

  .footer__company-name {
    margin-top: -18px;
  }

  .footer__contacts {
    order: 2;
  }

  .footer__address {
    order: 3;
  }

  .footer__requisites {
    grid-column: 1 / -1;
    order: 4;
    text-align: center;
  }

  .footer h2 {
    margin-bottom: 14px;
    font-size: 19px;
  }

  .footer p,
  .footer a,
  .footer button,
  .footer span {
    font-size: 14px;
    line-height: 1.45;
  }

  .footer__bottom {
    position: relative;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    order: 5;
    padding-top: 28px;
    text-align: center;
  }

  .footer__bottom::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.55);
  }

  .footer__bottom span {
    order: 3;
  }
}
