:root {
  --porto-primary: #dabe5b;
  --porto-primary-dark: #d0a81a;
  --porto-dark: #1d1d1e;
  --porto-heading: #222529;
  --porto-body: #777777;
  --porto-gray: #f7f7f7;
  --porto-border: rgba(0, 0, 0, .08);
  --container: 1140px;
  --gutter: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--porto-body);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
}

a {
  color: inherit;
}

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

section[id] {
  scroll-margin-top: 118px;
}

h1,
h2,
h3,
h4 {
  color: var(--porto-heading);
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--porto-dark);
  color: #fff;
}

.header-inner {
  max-width: var(--container);
  min-height: 118px;
  margin: 0 auto;
  padding: 10px 15px;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  justify-self: center;
}

.brand img {
  width: 95px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 20px;
  text-transform: uppercase;
}

.nav a {
  color: #fff;
  text-decoration: none;
  transition: color .18s ease;
}

.nav a:hover {
  color: #ab8b65;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 28px;
}

.phone {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.socials a {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
}

.socials img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.hero {
  position: relative;
  min-height: 670px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #333 url("../img/hero-kraft-bags.jpg") center center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 30, .58);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 40px));
  display: grid;
  justify-items: center;
}

.hero h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-separator {
  width: 30%;
  max-width: 260px;
  height: 2px;
  margin-bottom: 30px;
  background: linear-gradient(to right, transparent, var(--porto-primary), transparent);
}

.hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero p {
  margin: 0;
  color: #d1d1d1;
  font-size: 20px;
  line-height: 1.35;
}

.button {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.primary {
  min-height: 50px;
  padding: 0 32px;
  background: var(--porto-primary);
  color: #fff;
  font-family: "Open Sans", "Poppins", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.primary:hover {
  background: var(--porto-primary-dark);
  color: #fff;
}

.secondary {
  min-width: 118px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-family: "Open Sans", "Poppins", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 34px;
  text-transform: uppercase;
}

.secondary::before {
  content: ">";
  margin-right: 7px;
  font-weight: 800;
  color: currentColor;
}

.product-card:hover .secondary,
.secondary:hover {
  border-color: var(--porto-primary);
  background: var(--porto-primary);
  color: #fff;
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 110px 15px;
}

.section-heading {
  max-width: 560px;
  margin: 0 auto 50px;
  text-align: center;
}

.section h2,
.section-heading h2,
.question-card h2,
.policy h1 {
  margin: 0 0 16px;
  color: var(--porto-heading);
  font-size: 35px;
  font-weight: 700;
  line-height: 1.2;
}

.section-heading::after {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  max-width: 540px;
  margin: 18px auto 0;
  background: var(--porto-primary);
}

.section p {
  margin: 0 0 20px;
  color: var(--porto-body);
  font-size: 14px;
  line-height: 26px;
}

.catalog {
  max-width: none;
  background: var(--porto-gray);
}

.catalog .section-heading,
.catalog .product-grid {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

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

.product-grid-single {
  grid-template-columns: minmax(280px, 420px);
  justify-content: center;
}

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

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

.product-image {
  display: block;
  position: relative;
  width: 100%;
  min-height: 90px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .18s ease;
}

.product-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity .18s ease, transform .18s ease;
}

.product-card:hover .product-image {
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, .1);
}

.product-card:hover .product-image img {
  transform: scale(1.02);
}

.product-card h3 {
  min-height: 42px;
  margin: 0 0 8px;
  color: var(--porto-heading);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.product-card p {
  margin: 0 auto 18px;
  color: var(--porto-body);
  font-size: 14px;
  line-height: 24px;
}

.product-lines {
  padding-top: 96px;
  padding-bottom: 96px;
}

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

.line-card {
  min-height: 290px;
  padding: 34px 30px;
  display: grid;
  align-content: start;
  gap: 16px;
  border-top: 4px solid var(--porto-primary);
  background: #f8f8f8;
}

.line-card.dark {
  background: var(--porto-dark);
}

.line-card span {
  color: var(--porto-primary);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.line-card h3 {
  margin: 0;
  color: var(--porto-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.line-card.dark h3 {
  color: #fff;
}

.line-card p {
  margin: 0;
  color: var(--porto-body);
  font-size: 14px;
  line-height: 26px;
}

.line-card.dark p {
  color: rgba(255, 255, 255, .72);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding-top: 90px;
  padding-bottom: 90px;
}

.split h2,
.about h2 {
  margin: 0 0 25px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: center;
}

.about-text h2::after {
  content: "";
  display: block;
  width: 30%;
  height: 4px;
  margin-top: 18px;
  background: var(--porto-primary);
}

.about-panel {
  min-height: 220px;
  padding: 34px;
  display: grid;
  align-content: center;
  gap: 10px;
  background: var(--porto-dark);
  color: #fff;
  text-align: center;
}

.about-panel strong {
  color: var(--porto-primary);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
}

.about-panel span {
  color: rgba(255, 255, 255, .72);
}

.question-section {
  padding: 110px 15px;
  background: #1d1d1e url("../img/hero-kraft-bags.jpg") center center / cover no-repeat;
}

.question-card {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  color: #fff;
}

.question-copy {
  position: relative;
  min-height: 320px;
  padding: 64px 44px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.question-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(33, 37, 41, .72);
}

.question-copy > * {
  position: relative;
  z-index: 1;
}

.question-card h2 {
  color: #fff;
}

.question-copy p {
  max-width: 420px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .7);
  font-weight: 300;
}

.question-copy a {
  color: var(--porto-primary);
  font-size: 16.8px;
  font-weight: 700;
  text-decoration: none;
}

.question-form-wrap {
  padding: 10px 0;
}

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

.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: #464646;
  padding: 15px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857;
}

.lead-form textarea {
  min-height: 112px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(218, 190, 91, .55);
}

.privacy-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.privacy-row input {
  min-height: 0;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 3px;
  accent-color: var(--porto-primary);
}

.privacy-row a {
  color: var(--porto-primary);
  font-weight: 700;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--porto-primary);
}

.product-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 15px 54px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.product-gallery {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid #f4f4f4;
  background: #f7f4ed;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info h1 {
  margin: 0 0 24px;
  color: var(--porto-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.product-info p {
  margin: 0 0 16px;
  color: var(--porto-body);
  font-size: 14px;
  line-height: 26px;
}

.product-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.product-feature-list span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(218, 190, 91, .55);
  background: #fbf8ee;
  color: #5b4b1c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-detail-band {
  padding: 96px 15px;
  background: linear-gradient(rgba(29, 29, 30, .9), rgba(29, 29, 30, .92)), url("../img/hero-kraft-bags.jpg") center center / cover no-repeat;
}

.product-detail-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.product-detail-band .section-heading h2 {
  color: #fff;
}

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

.type-card {
  padding: 38px 34px;
  border: 1px solid rgba(218, 190, 91, .28);
  background: rgba(255, 255, 255, .96);
}

.type-card > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 10px;
  background: var(--porto-primary);
  color: #1d1d1e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.type-card h3 {
  margin: 0 0 18px;
  color: var(--porto-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.type-card p {
  margin: 0 0 24px;
  color: var(--porto-body);
  line-height: 26px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 6px 10px;
  border: 1px solid #e8e2ce;
  background: #fbf8ee;
  color: #5d5140;
  font-size: 12px;
  line-height: 1.2;
}

.production-applications {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 56px;
  align-items: start;
}

.production-applications h2 {
  margin: 0 0 22px;
  color: var(--porto-heading);
  font-size: 35px;
  font-weight: 700;
  line-height: 1.2;
}

.production-applications h2::after {
  content: "";
  display: block;
  width: 38%;
  height: 4px;
  margin-top: 18px;
  background: var(--porto-primary);
}

.application-panel {
  padding: 32px;
  background: var(--porto-dark);
}

.application-panel h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.application-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  text-decoration: none;
}

.application-panel a:hover {
  color: var(--porto-primary);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .72);
  padding: 20px;
}

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

.modal-dialog {
  position: relative;
  width: min(680px, 100%);
  padding: 44px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  background: #fff;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 28px;
  cursor: pointer;
}

.modal-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.modal-form h2 {
  margin: 0;
  color: var(--porto-heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.modal-form .privacy-row {
  padding: 11px 12px;
  border: 1px solid #e0d19a;
  background: #fbf8ee;
  color: #4f4f4f;
}

.modal-form .privacy-row a {
  color: #8c6f0f;
}

.policy {
  max-width: 860px;
  margin: 0 auto;
  padding: 78px 20px 96px;
}

.policy h2 {
  margin-top: 34px;
  font-size: 30px;
}

.policy p {
  color: var(--porto-body);
  font-size: 14px;
  line-height: 26px;
}

.footer {
  min-height: 440px;
  padding: 96px 20px 28px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 64px;
  background: var(--porto-dark);
  color: rgba(255, 255, 255, .4);
}

.footer img {
  width: 195px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
}

.footer a {
  color: rgba(255, 255, 255, .6);
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: 960px;
  margin: 0 auto;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(218, 190, 91, .45);
  border-radius: 12px;
  background: #1d1d1e;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: var(--porto-primary);
  font-weight: 700;
}

.cookie-banner button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--porto-primary);
  color: #1d1d1d;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .header-inner {
    grid-template-columns: 130px 1fr;
  }

  .header-contact {
    grid-column: 1 / -1;
    justify-content: center;
    padding-bottom: 16px;
  }

  .product-page,
  .about,
  .split,
  .question-card,
  .type-grid,
  .production-applications {
    grid-template-columns: 1fr;
  }

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

  .product-grid-single {
    grid-template-columns: minmax(280px, 420px);
  }

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

@media (max-width: 640px) {
  body {
    font-size: 13px;
    line-height: 20px;
  }

  .header-inner {
    min-height: 92px;
    grid-template-columns: 86px 1fr;
    gap: 10px;
  }

  .brand img {
    width: 80px;
  }

  .nav {
    justify-content: flex-end;
    gap: 12px;
    font-size: 14px;
  }

  .phone {
    font-size: 19px;
  }

  .socials {
    gap: 10px;
  }

  .hero {
    min-height: 470px;
  }

  .hero h4 {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.25;
  }

  .hero p {
    font-size: 16px;
  }

  .section,
  .catalog,
  .question-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

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

  .product-grid-single {
    grid-template-columns: minmax(260px, 420px);
    justify-content: center;
  }

  .line-card,
  .type-card,
  .application-panel {
    padding: 26px 22px;
  }

  .type-card h3 {
    font-size: 23px;
  }

  .product-feature-list span {
    min-height: 32px;
    font-size: 11px;
  }

  .product-page {
    padding-top: 44px;
    gap: 30px;
  }

  .product-gallery {
    aspect-ratio: 4 / 3;
  }

  .modal-dialog {
    grid-template-columns: 1fr;
    padding: 36px 22px 26px;
  }

  .modal-product {
    display: none;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: none;
    padding: 14px;
  }

  .cookie-banner.is-visible {
    display: block;
  }

  .cookie-banner button {
    width: 100%;
    margin-top: 12px;
  }
}
