@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171717;
  --navy: #022048;
  --brand-blue: #0f2eb6;
  --page-width: 85vw;
  --content-width: 953px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 11000;
  padding: 10px 14px;
  border-radius: 24px;
  color: #116dff;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.brand-header {
  position: fixed;
  top: 13px;
  left: 50%;
  z-index: 200;
  width: min(600px, var(--page-width));
  height: 67px;
  transform: translateX(-50%);
}

.brand-pill {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.brand-pill img {
  width: clamp(183px, 18vw, 210px);
  height: auto;
}

.panel {
  position: sticky;
  top: 0;
  width: var(--page-width);
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  z-index: 1;
  height: calc(var(--page-width) * 0.6666667);
  min-height: 720px;
  max-height: 970px;
  color: #fff;
  background: #050505;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  z-index: 1;
  background: rgba(0, 0, 0, 0.38);
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(690px, 75%);
  margin: 0;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.services {
  z-index: 2;
  min-height: 615px;
  padding: 63px 40px 54px;
  background: #fff;
}

.services-title {
  margin: 0 0 72px;
  font-size: 54.75px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 205px));
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  text-align: center;
}

.service-image {
  width: 205px;
  aspect-ratio: 205 / 267;
  border-radius: 50px;
  object-fit: cover;
}

.service-card h6 {
  margin: 14px 0 12px;
  color: #575757;
  font-size: 17.2px;
  font-weight: 700;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  color: #5a5a5a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.38;
}

.about {
  z-index: 3;
  min-height: 915px;
  padding: 174px 24px 175px;
  color: #fff;
  background: #000;
}

.about-content {
  position: relative;
  z-index: 3;
  width: min(870px, 72%);
  margin-inline: auto;
  text-align: center;
}

.about-title {
  margin: 0 0 38px;
  font-size: 164px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.about-copy {
  margin: 0;
  color: #e7e7e7;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.about-copy + .about-copy {
  margin-top: 28px;
}

.about-image {
  position: absolute;
  z-index: 1;
  opacity: 0.22;
  object-fit: cover;
  will-change: transform;
}

.about-image--electronics {
  top: 70px;
  left: 7.5%;
  width: 232px;
  height: 150px;
  border-radius: 52px;
}

.about-image--tractor {
  top: 41px;
  left: 69.8%;
  width: 260px;
  height: 220px;
  border-radius: 52px;
}

.about-image--harvester {
  top: 462px;
  left: 11.8%;
  width: 211px;
  height: 276px;
  border-radius: 52px;
}

.about-image--machinery {
  top: 565px;
  left: 33.6%;
  width: 350px;
  height: 140px;
  border-radius: 52px;
}

.about-image--clothing {
  top: 552px;
  left: 65.6%;
  width: 110px;
  height: 144px;
  border-radius: 44px;
}

.about-image--steel {
  top: 492px;
  left: 79.6%;
  width: 232px;
  height: 152px;
  border-radius: 52px;
}

.site-footer {
  position: relative;
  z-index: 4;
  width: var(--page-width);
  min-height: 500px;
  margin-inline: auto;
  padding: 35px 40px 20px;
  background: #fff;
}

.contact-form {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.contact-form h1,
.contact-form h2 {
  margin: 0 0 28px;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 27px;
}

.field {
  display: grid;
  gap: 10px;
}

.field--message {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  line-height: 1.4;
}

.field input,
.field textarea {
  width: 100%;
  padding: 7px 0 9px;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid #8c8c8c;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
}

.field textarea {
  min-height: 75px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: #000;
  box-shadow: 0 1px 0 #000;
}

.form-submit {
  width: 100%;
  min-height: 43px;
  margin-top: 23px;
  color: #000;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  transition: color 180ms ease, background 180ms ease;
}

.form-submit:hover,
.form-submit:focus-visible {
  color: #fff;
  background: #000;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.footer-address {
  margin: 56px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.footer-address a {
  text-underline-offset: 2px;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.legal-page {
  min-height: 100vh;
  background: #fff;
}

.legal-main {
  width: min(830px, calc(100% - 40px));
  margin-inline: auto;
  padding: 84px 0 171px;
  color: #171717;
}

.legal-main h1 {
  margin: 0 0 45px;
  font-size: 27.1px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.legal-main h2,
.legal-main p,
.legal-main li {
  font-size: 14.08px;
  font-weight: 400;
  line-height: 1.4;
}

.legal-main h2 {
  margin: 20px 0 0;
  font-weight: 400;
}

.legal-main p {
  margin: 19px 0 0;
}

.legal-main .legal-intro {
  margin-top: 0;
}

.legal-main ul {
  margin: 0;
  padding-left: 25px;
}

.legal-main li {
  padding-left: 0;
}

.legal-main a {
  text-underline-offset: 2px;
}

.legal-footer {
  padding-top: 35px;
}

.confirmation {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.confirmation img {
  width: min(360px, 80vw);
  margin: 0 auto 44px;
}

.confirmation h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 72px);
}

.confirmation p {
  margin: 0 0 30px;
}

.confirmation a {
  display: inline-block;
  padding: 11px 24px;
  color: #fff;
  background: #000;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== COOKIE BANNER - COMPLETE ONE-FILE VERSION ===== */
#cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  animation: slideUp 0.4s ease-out;
}

#cookie-banner.hidden {
  display: none !important;
}

.cookie-content {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 16px;
}

.cookie-text {
  color: #333;
  font-size: 14px;
}

.cookie-text a {
  color: #06c;
  font-weight: 500;
  text-decoration: none;
}

.cookie-text a:hover,
.cookie-settings-link:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
}

.cookie-btn {
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn-reject {
  color: #333;
  border: 1px solid #d0d0d0;
  background: #f0f0f0;
}

.cookie-btn-reject:hover {
  border-color: #bbb;
  background: #e5e5e5;
}

.cookie-btn-accept {
  color: #fff;
  background: #06c;
}

.cookie-btn-accept:hover {
  background: #0052a3;
}

.cookie-close,
.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #666;
  border: 0;
  background: none;
  cursor: pointer;
}

.cookie-close {
  width: 24px;
  height: 24px;
  font-size: 18px;
}

.cookie-close:hover,
.modal-close:hover {
  color: #333;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
}

#cookie-modal.show {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  padding: 28px;
  overflow-y: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  color: #222;
  font-size: 20px;
}

.modal-close {
  width: 28px;
  height: 28px;
  font-size: 24px;
}

.cookie-category {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.cookie-category:last-child {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: 0;
}

.category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.category-name {
  margin-bottom: 4px;
  color: #222;
  font-weight: 600;
}

.category-desc {
  color: #666;
  font-size: 13px;
}

.toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 24px;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}

.toggle-switch:checked {
  background: #06c;
}

.toggle-switch:checked::after {
  left: 18px;
}

.toggle-switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-footer button {
  flex: 1;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn-reject {
  color: #333;
  background: #f0f0f0;
}

.modal-btn-reject:hover {
  background: #e0e0e0;
}

.modal-btn-accept {
  color: #fff;
  background: #06c;
}

.modal-btn-accept:hover {
  background: #0052a3;
}

.cookie-settings-link {
  padding: 0;
  color: #06c;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.privacy-reopen {
  position: fixed;
  bottom: 31px;
  left: 34px;
  z-index: 9900;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  padding: 17px;
  border: 0;
  border-radius: 50%;
  background: #102fb6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.privacy-reopen img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

@media (max-width: 1050px) {
  .hero {
    height: 75vw;
    min-height: 0;
    max-height: none;
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 170px));
    gap: 40px;
  }

  .service-image {
    width: 100%;
  }

  .about-title {
    font-size: clamp(92px, 13vw, 164px);
  }

  .about-image--steel {
    left: 78%;
  }
}

@media (max-width: 700px) {
  :root {
    --page-width: 85vw;
  }

  .brand-header {
    width: var(--page-width);
    height: 58px;
    top: 10px;
  }

  .brand-pill img {
    width: 183px;
  }

  .hero {
    height: 120.5vw;
    min-height: 0;
  }

  .hero-title {
    width: 88%;
    font-size: clamp(28px, 9.25vw, 36px);
    line-height: 1.2;
  }

  .services {
    min-height: 829px;
    padding: 49px 30px 82px;
  }

  .services-title {
    margin-bottom: 48px;
    font-size: 21.33px;
    line-height: 1.1;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 115px));
    column-gap: 40px;
    row-gap: 68px;
  }

  .service-image {
    width: 115px;
    height: 149px;
    border-radius: 34px;
  }

  .service-card h6 {
    margin: 20px 0 9px;
    font-size: 12px;
    line-height: 1.2;
  }

  .service-card p {
    font-size: 11px;
    line-height: 1.4;
  }

  .about {
    min-height: 853px;
    padding: 97px 18px 100px;
  }

  .about-content {
    width: 88%;
  }

  .about-title {
    margin-bottom: 34px;
    font-size: 58px;
    line-height: 0.9;
  }

  .about-copy {
    font-size: 14px;
    line-height: 1.48;
  }

  .about-copy + .about-copy {
    margin-top: 24px;
  }

  .about-image--electronics {
    top: 66px;
    left: -5%;
    width: 152px;
    height: 97px;
    border-radius: 34px;
  }

  .about-image--tractor {
    top: 30px;
    left: 51%;
    width: 150px;
    height: 104px;
    border-radius: 34px;
  }

  .about-image--harvester {
    top: 512px;
    left: -7%;
    width: 115px;
    height: 150px;
    border-radius: 32px;
  }

  .about-image--machinery {
    top: 589px;
    left: 32%;
    width: 112px;
    height: 85px;
    border-radius: 30px;
  }

  .about-image--clothing {
    top: 554px;
    left: 82%;
    width: 75px;
    height: 98px;
    border-radius: 28px;
  }

  .about-image--steel {
    top: 386px;
    left: 83%;
    width: 63px;
    height: 41px;
    border-radius: 20px;
  }

  .site-footer {
    min-height: 497px;
    padding: 40px 18px 18px;
  }

  .contact-form {
    width: min(100%, 264px);
  }

  .contact-form h1,
  .contact-form h2 {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 1.5;
    white-space: nowrap;
  }

  .contact-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 14px;
  }

  .field--message {
    grid-column: 1 / -1;
  }

  .field label {
    font-size: 12px;
  }

  .field input,
  .field textarea {
    padding-top: 4px;
    padding-bottom: 6px;
    font-size: 14px;
  }

  .field textarea {
    min-height: 60px;
  }

  .form-submit {
    margin-top: 14px;
  }

  .footer-address {
    margin-top: 35px;
    font-size: 10px;
    line-height: 1.45;
  }

  .legal-main {
    width: calc(100% - 42px);
    padding-top: 82px;
  }

  .legal-main h1 {
    margin-bottom: 39px;
    font-size: 25px;
  }

  .legal-main h2,
  .legal-main p,
  .legal-main li {
    font-size: 13px;
    line-height: 1.48;
  }

  #cookie-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .cookie-content {
    flex-direction: column;
    gap: 12px;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .cookie-btn {
    flex: 1;
    min-height: 40px;
  }

  .cookie-close {
    position: absolute;
    top: 9px;
    right: 9px;
  }

  .modal-content {
    padding: 20px;
  }

  .privacy-reopen {
    bottom: 22px;
    left: 18px;
    width: 56px;
    height: 56px;
    padding: 15px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
