:root {
  --ink: #151a1f;
  --muted: #66707a;
  --line: #d9e1e5;
  --paper: #ffffff;
  --soft: #f3f7f6;
  --deep: #0c2d2f;
  --green: #1f8b61;
  --green-dark: #146547;
  --amber: #d79b3d;
  --shadow: 0 20px 60px rgba(15, 33, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.topline {
  color: #e6f2ef;
  background: var(--deep);
  font-size: 14px;
}

.topline__inner {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.topline__inner span {
  margin-right: auto;
}

.topline__whatsapp {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: #25d366;
  border-radius: 6px;
}

.topline__whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 225, 229, 0.78);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0;
  font-size: 20px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #233034;
  font-size: 15px;
  font-weight: 700;
}

.nav__links a {
  position: relative;
  padding-block: 8px;
}

.nav__links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.nav__toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: var(--deep);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 38, 40, 0.96) 0%, rgba(8, 38, 40, 0.77) 44%, rgba(8, 38, 40, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 38, 40, 0.35), rgba(8, 38, 40, 0.18));
  content: "";
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(0.9);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 680px;
  max-width: 760px;
  flex-direction: column;
  justify-content: center;
  padding-block: 96px 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.18;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  color: #dce8e5;
  font-size: 19px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 800;
}

.button--primary {
  color: #fff;
  background: var(--green);
}

.button--primary:hover {
  background: var(--green-dark);
}

.button--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero__stats {
  display: grid;
  width: min(100%, 660px);
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 54px 0 0;
  background: rgba(255, 255, 255, 0.18);
}

.hero__stats div {
  min-height: 118px;
  padding: 22px;
  background: rgba(6, 30, 32, 0.55);
}

.hero__stats dt {
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.hero__stats dd {
  margin: 4px 0 0;
  color: #c7d8d3;
  font-size: 14px;
}

.section {
  padding-block: 96px;
}

.section--muted {
  background: var(--soft);
}

.section--dark {
  color: #fff;
  background: var(--deep);
}

.intro__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 70px;
}

.intro__copy {
  display: grid;
  gap: 18px;
  color: #38444a;
  font-size: 18px;
}

.section__heading {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section__heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section__heading--left {
  max-width: 700px;
  margin-inline: 0;
  text-align: left;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce6e5;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-card--dark {
  color: #fff;
  background: #102d38;
}

.product-card__image {
  height: 360px;
  background: #fff;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 26px 42px;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.product-card__tagline {
  margin: -2px 0 14px;
  color: var(--amber);
  font-weight: 900;
}

.product-card p,
.product-card li {
  color: #526069;
}

.product-card--dark .product-card__tagline {
  color: var(--amber);
}

.product-card--dark p,
.product-card--dark li {
  color: #d4e1e3;
}

.product-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}

.product-card li {
  position: relative;
  padding-left: 24px;
}

.product-card li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  content: "";
}

.price {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  color: var(--deep);
  background: #e5f4ee;
  border-radius: 6px;
  font-weight: 900;
}

.price__uah {
  font-weight: 800;
  white-space: nowrap;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}

.details-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.details-button:hover,
.details-button:focus-visible {
  background: var(--green-dark);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 24px;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 26, 0.72);
}

.modal__dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 34px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.modal__dialog--compact {
  width: min(640px, 100%);
}

.modal__close {
  position: sticky;
  top: 0;
  float: right;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: -12px -12px 8px 16px;
  color: #fff;
  background: var(--deep);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal__header {
  max-width: 760px;
  margin-bottom: 22px;
}

.modal__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.modal__tab {
  position: relative;
  min-height: 54px;
  padding: 14px 22px;
  color: #5b685e;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
}

.modal__tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: #e3261d;
  content: "";
  opacity: 0;
}

.modal__tab.is-active {
  color: #006a12;
}

.modal__tab.is-active::after {
  opacity: 1;
}

.modal__content {
  display: block;
}

.modal__panel {
  padding: 6px 4px 4px;
}

.modal__panel h3 {
  margin-bottom: 18px;
  text-align: center;
  font-size: 34px;
}

.modal__panel h4 {
  margin: 22px 0 10px;
  color: var(--deep);
  font-size: 17px;
}

.modal__panel h4:first-of-type {
  margin-top: 0;
}

.modal__panel ul {
  display: grid;
  gap: 9px;
  margin: 0 0 6px;
  padding-left: 19px;
}

.spec-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list div:last-child {
  border-bottom: 0;
}

.spec-list dt {
  color: #405057;
}

.spec-list dd {
  margin: 0;
  color: var(--deep);
  font-weight: 900;
  text-align: right;
}

body.modal-open {
  overflow: hidden;
}

.application {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.application__panel {
  padding: 36px 40px;
  color: #fff;
  background: var(--deep);
  border-radius: 8px;
}

.application__panel p:not(.eyebrow) {
  color: #d9e7e5;
}

.application__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.application__list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  align-items: start;
}

.application__list span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  font-weight: 900;
}

.application__list p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.machine-strip {
  padding-block: 82px;
  background: #132b2e;
}

.machine-strip__inner {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(360px, 0.65fr);
  gap: 44px;
  align-items: center;
  color: #fff;
}

.field-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.field-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #fff;
  border-radius: 8px;
  filter: contrast(1.06) saturate(1.08);
}

.field-gallery__main {
  grid-column: span 3;
  height: 360px;
}

.machine-strip p:not(.eyebrow) {
  color: #d5e3df;
  font-size: 17px;
  line-height: 1.55;
}

.machine-strip h2 {
  font-size: clamp(34px, 3.4vw, 52px);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tech-grid article {
  min-height: 260px;
  padding: 28px;
  border-top: 4px solid var(--green);
  background: var(--soft);
}

.tech-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.gallery img {
  width: 100%;
  height: 260px;
  padding: 22px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.gallery img:nth-child(1),
.gallery img:nth-child(2) {
  padding: 10px;
}

.gallery img:nth-child(3),
.gallery img:nth-child(4),
.gallery img:nth-child(5) {
  padding: 46px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 60px;
  align-items: center;
}

.contact p:not(.eyebrow) {
  color: #d4e2de;
  font-size: 18px;
}

.contact__card {
  display: grid;
  gap: 14px;
  padding: 30px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
}

.contact__card a {
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
}

.contact__card .contact__phone {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 12px 16px;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  font-size: 24px;
  line-height: 1.15;
}

.contact__card .contact__whatsapp {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: #fff;
  background: #25d366;
  border-radius: 6px;
  font-size: 17px;
}

.contact__whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact__more {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--deep);
  background: #e5f4ee;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
}

.contact__more:hover,
.contact__more:focus-visible {
  background: #d3ede3;
}

.contact__card address {
  max-width: 330px;
  color: #8a969b;
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
}

.contact__card span {
  color: var(--muted);
}

.company-info {
  display: grid;
  gap: 14px;
  margin: 0;
}

.company-info div {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-info dt {
  margin-bottom: 4px;
  color: var(--green-dark);
  font-weight: 900;
}

.company-info dd {
  margin: 0;
  color: #405057;
}

.footer {
  padding-block: 26px;
  color: #c7d4d0;
  background: #071c1e;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.footer__brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

@media (max-width: 920px) {
  .topline__inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 18px;
    padding-block: 10px;
  }

  .topline__inner span {
    width: 100%;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .nav__links a {
    padding: 13px 10px;
  }

  .hero,
  .hero__content {
    min-height: 620px;
  }

  .intro__grid,
  .machine-strip__inner,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .application__list {
    grid-template-columns: 1fr;
  }

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

  .modal__tab {
    padding-inline: 16px;
  }

  .field-gallery img {
    height: 210px;
  }

  .field-gallery__main {
    height: 420px;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .topline {
    display: none;
  }

  .nav {
    min-height: 70px;
  }

  .hero,
  .hero__content {
    min-height: 650px;
  }

  h1 {
    font-size: 42px;
  }

  .hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .hero__stats div {
    min-height: auto;
  }

  .section {
    padding-block: 70px;
  }

  .product-card__image {
    height: 300px;
  }

  .product-card__image img {
    padding: 20px 24px;
  }

  .modal {
    padding: 12px;
  }

  .modal__dialog {
    max-height: 92vh;
    padding: 24px;
  }

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

  .field-gallery__main {
    grid-column: span 2;
    height: 250px;
  }

  .field-gallery img {
    height: 150px;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .spec-list dd {
    text-align: left;
  }

  .product-grid,
  .tech-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 300px;
  }

  .gallery img:nth-child(1),
  .gallery img:nth-child(2) {
    padding: 18px;
  }

  .gallery img:nth-child(3),
  .gallery img:nth-child(4),
  .gallery img:nth-child(5) {
    padding: 40px;
  }

  .application__list article {
    grid-template-columns: 58px 1fr;
  }

  .application__panel {
    padding: 28px;
  }

  .contact__card {
    padding: 24px;
  }

  .footer__inner {
    flex-direction: column;
  }
}
