:root {
  --text: #666666;
  --heading: #060e03;
  --black: #000000;
  --border: rgba(0, 0, 0, 0.2);
  --accent: #15c586;
  --form-bg: #f4f4f4;
  --white: #ffffff;
  font-family: "Open Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

p {
  padding-bottom: 1em;
}

p:last-child {
  padding-bottom: 0;
}

.site-header {
  position: relative;
  z-index: 2;
  background: var(--white);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  width: 80%;
  max-width: 1080px;
  min-height: 72px;
  margin: 0 auto;
  padding-top: 27px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  min-height: 38px;
}

.main-nav a {
  padding: 0 11px;
  color: var(--black);
  font-weight: 700;
  line-height: 38px;
}

.main-nav a:first-child {
  padding-left: 0;
}

.languages {
  color: #222222;
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
}

.languages a {
  color: #222222;
}

.logo-band {
  display: flex;
  align-items: center;
  min-height: 132px;
  margin-top: 0;
  background: url("../images/inox-header.jpg") center center / cover no-repeat;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}

.brand img {
  width: 255px;
  height: auto;
  margin: 0;
}

.products {
  min-height: 545px;
  padding-bottom: 0;
  background: var(--white);
}

.product-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5.5%;
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 54px 0 40px;
}

.product-card {
  min-width: 0;
  text-align: center;
}

.product-copy {
  display: block;
  min-height: 133px;
  margin-bottom: 18px;
}

.product-card-salame .product-copy {
  width: 83.5%;
  min-height: 104px;
  margin-right: auto;
  margin-left: auto;
}

.product-card-services .product-copy {
  min-height: 172px;
}

.product-copy h2 {
  padding-bottom: 10px;
  color: var(--heading);
  font-family: Outfit, Helvetica, Arial, sans-serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.3;
}

.product-copy p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 0 0 48px;
}

.product-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.product-card:first-child .product-image img {
  max-width: min(100%, 330px);
  max-height: 330px;
}

.product-card-salame .product-image img {
  max-width: min(100%, 300px);
  max-height: 300px;
}

.product-card-services .product-image {
  padding-bottom: 48px;
}

.product-card-services .product-image img {
  max-width: min(100%, 330px);
  max-height: 282px;
}

.contact-section {
  border-width: 2px 1px 1px;
  border-style: solid;
  border-color: var(--border);
  background: var(--white);
}

.section-row {
  width: 80%;
  max-width: 1320px;
  margin: 0 auto;
}

.contact-title-row {
  min-height: 77px;
  padding-top: 27px;
  margin-bottom: -31px;
}

.contact-title-row h1,
.contact-form h1 {
  color: #333333;
  font-family: Arimo, Helvetica, Arial, sans-serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.3;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5.5%;
  padding: 27px 0 54px;
}

.intro-text {
  color: var(--text);
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.contact-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  border-top: 1px solid var(--border);
  padding-top: 30px;
  margin-top: 0;
  font-family: Inter, Helvetica, Arial, sans-serif;
}

.contact-item + .contact-item {
  margin-top: 0;
}

.contact-icon {
  color: var(--black);
  font-size: 30px;
  line-height: 1;
}

.contact-item h4 {
  padding-bottom: 10px;
  color: #333333;
  font-family: Arimo, Helvetica, Arial, sans-serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}

.contact-item p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 15px;
  align-content: start;
  padding: 30px;
  background: var(--form-bg);
}

.contact-form h1 {
  padding-bottom: 10px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 16px;
  color: #4e4e4e;
  background: transparent;
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2d3940;
  outline: none;
}

.contact-form button {
  justify-self: end;
  border: 0;
  border-radius: 100px;
  padding: 18px 40px;
  color: var(--white);
  background: var(--accent);
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button:hover {
  filter: brightness(0.96);
}

@media (max-width: 980px) {
  .topbar,
  .brand,
  .product-row,
  .section-row {
    width: 80%;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 0;
  }

  .languages {
    text-align: left;
  }

  .product-row,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-copy h2 {
    font-size: 32px;
  }

  .product-card-salame .product-copy {
    width: 100%;
  }

  .product-card-salame .product-image {
    margin-top: 0;
  }

  .product-image {
    min-height: 0;
  }

  .contact-title-row h1,
  .contact-form h1 {
    font-size: 40px;
  }

  .intro-text,
  .contact-form input,
  .contact-form textarea {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .topbar,
  .brand,
  .product-row,
  .section-row {
    width: calc(100% - 32px);
  }

  .topbar {
    min-height: auto;
    padding-top: 18px;
    margin-bottom: -14px;
  }

  .main-nav {
    display: block;
  }

  .main-nav a {
    display: block;
    padding: 4px 0;
    line-height: 1.5;
  }

  .logo-band {
    min-height: 108px;
  }

  .brand img {
    width: 220px;
  }

  .product-row {
    padding-top: 38px;
  }

  .product-copy h2 {
    font-size: 20px;
  }

  .product-card:first-child .product-image img {
    width: min(100%, 260px);
  }

  .product-card-salame .product-image img,
  .product-card-services .product-image img {
    height: auto;
    max-height: 240px;
  }

  .contact-title-row h1 {
    font-size: 24px;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-form h1 {
    font-size: 17px;
  }

  .contact-item h4 {
    font-size: 17px;
  }

  .intro-text,
  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }
}
