* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial;
  color: #121212;
  background: #ffffff;
}

.page {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}
.container {
  width: 960px;
  max-width: 100%;
}

.header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}
.logo {
  width: 180px;
  height: 36px;
  background: #cfcfcf;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 13px;
  color: #333;
}
.nav {
  display: flex;
  gap: 14px;
}
.nav .item {
  background: #cfcfcf;
  padding: 8px 16px;
  font-size: 13px;
}

.footer {
  background: #dcdcdc;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 28px;
}

.page-title {
  font-size: 22px;
  margin-bottom: 10px;
}
.intro {
  margin-bottom: 16px;
  color: #333;
}
.layout-links {
  list-style: none;
  margin: 12px 0 20px 0;
  padding-left: 0;
}
.layout-links li {
  margin: 8px 0;
}
.layout-links a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}
.note {
  color: #666;
  font-size: 13px;
  margin-top: 10px;
}

.layout1 .page {
  padding: 40px 0;
}
.layout1 .container {
  width: 960px;
  margin: 0 auto;
}

.header--l1 {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: start;
  gap: 22px;
  margin-bottom: 18px;
}
.logo--l1 {
  width: 240px;
  height: 72px;
  background: #cfcfcf;
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: #000;
}
.nav--l1 {
  height: 36px;
  background: #cfcfcf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  width: 620px;
  justify-self: end;
  align-self: start;
}
.nav--l1 span {
  background: none;
  padding: 0;
  font-size: 13px;
}

.featured-box--l1,
.product-box--l1 {
  background: #cfcfcf;
  position: relative;
}
.featured-box--l1 {
  height: 420px;
}
.product-box--l1 {
  height: 180px;
}
.box-label-inside {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #000;
}
.layout1-products--l1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 18px;
}
.footer--l1 {
  background: #dcdcdc;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 22px;
}

.layout2 .container {
  width: 960px;
  margin: 0 auto;
}

.header--l2 {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: start;
  gap: 22px;
  margin-bottom: 12px;
}
.logo--l2 {
  width: 240px;
  height: 48px;
  background: #cfcfcf;
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: #000;
}
.nav--l2 {
  background: #cfcfcf;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  width: 430px;
  justify-self: end;
  align-self: start;
}
.nav--l2 span {
  background: none;
  padding: 0;
  font-size: 13px;
}

.hero--l2 {
  margin-bottom: 22px;
}
.hero--l2 h1 {
  font-size: 40px;
  line-height: 1.06;
  font-weight: 800;
}
.hero--l2 .lead {
  font-weight: 700;
  font-size: 15px;
  color: #222;
  max-width: 820px;
  margin-top: 10px;
}
.gallery--l2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.gallery--l2 .card {
  background: #cfcfcf;
  height: 130px;
}
.footer--l2 {
  background: #dcdcdc;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 16px;
}

.layout3 .container {
  width: 960px;
  margin: 0 auto;
}

.header--l3 {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: start;
  gap: 22px;
  margin-bottom: 14px;
}
.logo--l3 {
  width: 240px;
  height: 56px;
  background: #cfcfcf;
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: #000;
}
.nav--l3 {
  background: #cfcfcf;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  width: 430px;
  justify-self: end;
  align-self: start;
}
.nav--l3 span {
  background: none;
  padding: 0;
  font-size: 13px;
}

.hero--l3 .hero-box {
  background: #cfcfcf;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 24px;
}
.hero--l3 h1 {
  font-size: 42px;
  line-height: 1.08;
  font-weight: 800;
}
.hero--l3 .lead {
  font-weight: 700;
  font-size: 16px;
  max-width: 760px;
  color: #222;
}

.layout3-main {
  display: grid;
  grid-template-columns: 1.25fr 1.75fr;
  gap: 22px;
  margin-bottom: 28px;
}

.title--bar {
  background: #cfcfcf;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.left-col .title--bar {
  width: 140px;
}

.right-col .title--bar {
  width: calc(50% - 9px);
}

.blog-post {
  background: #cfcfcf;
  height: 160px;
  margin-bottom: 18px;
  display: block;
  padding: 8px 10px;
  font-weight: 500;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.featured {
  background: #cfcfcf;
  height: 160px;
  display: block;
  padding: 8px 10px;
  font-weight: 500;
}

.footer--l3 {
  background: #dcdcdc;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .container {
    padding: 0 12px;
    width: 100%;
  }
  .layout1-products--l1 {
    grid-template-columns: 1fr;
  }
  .gallery--l2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .layout3-main {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .gallery--l2 {
    grid-template-columns: 1fr;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
}
