:root {
  --green-950: #0f2f26;
  --green-900: #164536;
  --green-800: #1d5d45;
  --green-700: #177347;
  --green-500: #31a75b;
  --green-100: #ecf6ef;
  --cream: #f7f8f3;
  --paper: #ffffff;
  --ink: #24302b;
  --muted: #697771;
  --line: #e8eee9;
  --gold: #f0b84a;
  --shadow: 0 18px 48px rgba(22, 43, 33, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin: 0;
  letter-spacing: 0;
}

.hero {
  position: relative;
  display: grid;
  gap: 26px;
  min-height: 100svh;
  padding: 118px 16px 28px;
  background: var(--green-700);
}

.site-logo {
  position: absolute;
  top: 18px;
  left: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  width: 78px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__content {
  align-self: end;
}

h1 {
  max-width: 760px;
  color: var(--paper);
  font-size: clamp(3.35rem, 15vw, 6.7rem);
  line-height: 0.9;
}

.hero__subtitle {
  max-width: 640px;
  margin-top: 16px;
  color: var(--paper);
  font-size: clamp(1.32rem, 5.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero__lead {
  max-width: 680px;
  margin-top: 18px;
  color: var(--gold);
  font-size: 1.06rem;
  font-weight: 900;
}

.hero__actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 28px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button--primary {
  background: var(--gold);
  color: var(--green-950);
  box-shadow: 0 4px 14px rgba(240, 184, 74, 0.36);
}

.button--primary:hover {
  background: #e5ac39;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 184, 74, 0.52);
}

.button--outline {
  border-color: var(--gold);
  background: var(--paper);
  color: var(--green-950);
}

.button--outline:hover {
  background: #fff9ed;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.button--small {
  width: min(100%, 240px);
  margin-top: 22px;
  background: var(--green-900);
  color: var(--paper);
}

.button--mini {
  display: flex;
  width: max-content;
  min-height: 42px;
  margin: 22px auto 0;
  padding: 9px 22px;
  background: var(--green-900);
  color: var(--paper);
  box-shadow: 0 8px 20px rgba(22, 43, 33, 0.1);
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.hero__trust span {
  min-height: 42px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: var(--paper);
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.hero__visual {
  position: relative;
  min-height: 330px;
  border-radius: 8px;
}

.hero__factory {
  width: 100%;
  height: 330px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}

.section {
  padding: 58px 16px;
}

.section__header {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

h2 {
  color: var(--green-700);
  font-size: clamp(1.9rem, 8vw, 3.25rem);
  line-height: 1.05;
}

h3 {
  color: var(--green-950);
  font-size: 1rem;
  line-height: 1.15;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}

.product-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(22, 43, 33, 0.06);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: contain;
  background: var(--paper);
}

.product-card h3 {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-button {
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

.factory {
  background: var(--green-100);
}

.factory__title {
  margin-bottom: 26px;
}

.factory__images {
  display: grid;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
}

.factory__images img {
  width: 100%;
  aspect-ratio: 1.25;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.certificate-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1120px;
  margin: 22px auto 0;
}

.certificate-row img {
  width: 100%;
  height: 104px;
  padding: 12px;
  border-radius: 8px;
  background: var(--paper);
  object-fit: contain;
  box-shadow: 0 8px 22px rgba(22, 43, 33, 0.06);
}

.services {
  background: #f4f4f2;
}

.services__panel {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 12px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.services__panel h2 {
  margin-bottom: 20px;
  text-align: center;
  color: var(--green-950);
  font-size: clamp(1.9rem, 8vw, 3.25rem);
  line-height: 1.05;
}

.service-steps {
  display: grid;
  gap: 12px;
  max-width: 840px;
  margin: 0 auto;
}

.service-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: stretch;
  min-height: 76px;
  border-radius: 8px;
  overflow: hidden;
}

.service-step__mark {
  display: grid;
  place-items: center;
  background: var(--green-900);
  color: var(--paper);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.service-step div {
  display: grid;
  align-content: center;
  padding: 12px 14px;
  background: var(--paper);
}

.service-step p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-band {
  display: grid;
  gap: 22px;
  padding: 48px 16px;
  background: var(--green-900);
  color: var(--paper);
}

.contact-band h2 {
  color: var(--paper);
  text-align: center;
}

.contact-band__copy {
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--paper);
  box-shadow: 0 12px 28px rgba(18, 66, 45, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(18, 66, 45, 0.32);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 101px 18px 18px;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 672px);
  max-height: calc(100vh - 120px);
  overflow: auto;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 0 24px;
  border-bottom: 1px solid #edf0f3;
}

.modal__header h2 {
  color: #1f2937;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.modal__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b7280;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 16px;
  padding: 40px 24px 24px;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
  color: #98a1af;
  opacity: 1;
}

.modal-form textarea {
  min-height: 106px;
  resize: vertical;
}

.modal-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 4px;
  background: #45b53d;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.modal-form__success {
  padding: 12px 14px;
  border-radius: 4px;
  background: rgba(69, 181, 61, 0.12);
  color: #238423;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 560px) {
  .modal {
    align-items: center;
    padding: 12px;
  }

  .modal__header,
  .modal-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .modal-form {
    padding-top: 28px;
  }
}

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

label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 900;
}

.label-text {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.required-mark {
  color: var(--paper);
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-success {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(49, 167, 91, 0.18);
  color: #c8ffd4;
  font-weight: 900;
}

@media (min-width: 560px) {
  .hero__actions {
    grid-template-columns: repeat(2, minmax(0, 220px));
  }

  .hero__trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid,
  .factory__images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .certificate-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    min-height: 720px;
    padding: 104px clamp(32px, 5vw, 72px) 64px;
  }

  .site-logo {
    top: 28px;
    left: clamp(32px, 5vw, 72px);
    width: 94px;
    height: 78px;
  }

  .hero__content {
    align-self: center;
  }

  .hero__visual,
  .hero__factory {
    min-height: 570px;
  }

  .section {
    padding: 78px clamp(32px, 5vw, 72px);
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .factory__images {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .certificate-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .services__panel {
    padding: 26px 70px 26px;
  }

  .service-step {
    grid-template-columns: 88px 1fr;
    min-height: 82px;
  }

  .contact-band {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 62px clamp(32px, 5vw, 72px);
  }

  .quote-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-form__message,
  .quote-form button,
  .form-success {
    grid-column: 1 / -1;
  }
}

@media (max-width: 370px) {
  .hero,
  .contact-band,
  .section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero__trust span {
    font-size: 0.72rem;
  }

  .product-card {
    padding: 8px;
  }

  .service-step {
    grid-template-columns: 54px 1fr;
  }
}
