@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #2b2b2b;
  --muted: #8f8f8f;
  --navy: #1c244b;
  --accent: #1346af;
  --line: #ececec;
  --paper: #ffffff;
  --soft: #f3f3f3;
  --max: 1140px;
  --header: 91px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: #8f8f8f;
  background: var(--paper);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
}

img { max-width: 100%; }

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

button, input { font: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(20px, calc((100% - var(--max)) / 2));
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  font-size: 24px;
  font-weight: 400;
  line-height: 28px;
  color: #2b2b2b;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 40px;
  font-size: 14px;
  font-weight: 500;
  line-height: 50px;
  color: #2b2b2b;
}

.site-nav a.is-current { color: var(--accent); }

.search-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(55, 58, 71, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s, visibility 0.4s;
}

.search-dialog.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.search-open { overflow: hidden; }

.search-dialog__panel {
  width: 50%;
  max-width: 650px;
  min-width: 290px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, -150px, 0);
}

.search-dialog.is-open .search-dialog__panel {
  animation: search-open 0.4s forwards;
}

.search-dialog.is-closing .search-dialog__panel {
  animation: search-close 0.4s forwards;
}

@keyframes search-open {
  from { opacity: 0; transform: translate3d(0, -150px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes search-close {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0; transform: translate3d(0, 50px, 0); }
}

.search-dialog__head {
  height: 50px;
  padding-left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -3px 15px 6px rgba(0, 0, 0, 0.03);
}

.search-dialog__title {
  flex: 1;
  color: #2b2b2b;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-transform: uppercase;
}

.search-dialog__close {
  width: 50px;
  height: 50px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.search-dialog__close:hover { color: firebrick; }

.search-dialog__form {
  position: relative;
  height: 60px;
  margin: 0;
}

.search-dialog__form input {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f1f3f5;
  color: #8f8f8f;
  font-size: 14px;
  font-style: italic;
  padding: 1px 50px 1px 20px;
  outline: none;
}

.search-dialog__form input::placeholder { color: #a5b0b7; }

.search-dialog__form button {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #8f8f8f;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

.hero {
  position: relative;
  min-height: 684px;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 300px 20px 100px;
  color: #fff;
  background: #111 url("../images/hero.png") center / cover no-repeat;
  text-align: center;
}

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

.hero__inner {
  position: relative;
  width: min(1200px, calc(100% - 24px));
}

.hero h1 {
  margin: 0 auto;
  max-width: 1140px;
  font-family: "Poppins", sans-serif;
  font-size: 60px;
  font-weight: 600;
  line-height: 78px;
  letter-spacing: normal;
  color: #fff;
}

.hero p {
  margin: 20px 0 0;
  color: #8f8f8f;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
}

.hero-search {
  margin: 30px auto 0;
  width: min(640px, 100%);
  height: 50px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 0 8px 0 22px;
  color: #2b2b2b;
}

.hero-search input {
  flex: 1;
  border: 0;
  background: transparent;
  min-width: 0;
  padding: 10px 0;
  outline: none;
}

.hero-search button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: #444;
}

.section { padding: 100px 0 0; }

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
}

.section h2,
.page-head h1,
.contact h1,
.product h1 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: normal;
  color: #2b2b2b;
}

.section h2 {
  font-size: 36px;
  line-height: 36px;
}

.section .lead,
.page-head .lead,
.contact .lead {
  margin: 20px 0 0;
  color: #2b2b2b;
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 30px;
  margin-top: 20px;
}

main .product-grid { margin-bottom: 80px; }

.product-card { display: block; }

.product-card__photo {
  display: block;
  width: 83.333%;
  margin: 0 auto;
  aspect-ratio: 1;
  overflow: hidden;
  background: transparent;
}

.product-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__name {
  display: block;
  margin: 30px 0 0;
  text-align: center;
  color: #8f8f8f;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.shop-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0 4px;
}

.shop-tools select {
  min-width: 180px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #555;
  padding: 8px 12px;
}

.result-count { color: var(--muted); font-size: 14px; }

.empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 24px 0 8px;
}

.product-stage { position: relative; }

.product-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #f3f3f3;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px;
}

.crumb {
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.product-top .crumb { margin: 0; }

.product-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 14px;
  text-transform: uppercase;
}

.product-nav__link,
.product-nav__link:visited {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2b2b2b;
}

.product-nav__link:hover {
  color: var(--accent);
}

.product-nav__sep { color: var(--muted); }

.product-nav__card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #fff;
  box-shadow: 0 10px 10px -5px #ddd;
  text-transform: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  z-index: 30;
}

.product-nav__link:hover .product-nav__card,
.product-nav__link:focus .product-nav__card,
.product-nav__link:focus-within .product-nav__card {
  opacity: 1;
  visibility: visible;
}

.product-nav__card img {
  width: 60px;
  height: auto;
  align-self: stretch;
  object-fit: cover;
  flex: none;
}

.product-nav__name {
  flex: 1;
  min-width: 0;
  padding: 10px 15px;
  color: #2b2b2b;
  font-size: 14px;
  font-weight: 700;
  line-height: 16.8px;
}

.posted-in {
  margin: 16px 0 0;
  color: #8f8f8f;
  font-size: 14px;
}

.posted-in a { color: #2b2b2b; }
.posted-in a:hover { color: var(--accent); }

.related {
  margin: 0 0 80px;
  border-top: 1px solid #efefef;
}

.related h2 {
  margin: 0;
  padding: 25px 0;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: #2b2b2b;
}

.cat-title {
  margin: 36px 0 8px;
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  color: #2b2b2b;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 180;
  width: 40px;
  height: 40px;
  border: 0;
  padding: 0;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}

.to-top.is-visible { opacity: 1; visibility: visible; }

.crumb a:hover { color: var(--accent); }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 50px;
}

.product__photo {
  background: transparent;
  padding: 0;
}

.product__photo img { display: block; width: 100%; height: auto; }

.product h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
}

.product__summary {
  margin: 18px 0 0;
  color: #666;
  font-size: 14px;
}

.product__mail {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.desc-title {
  margin: 64px 0 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.product__body {
  margin: 0 0 50px;
  color: #666;
  font-size: 14px;
}

.contact-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8% 0 0 3%;
}

.contact-intro > div { padding-left: 20%; }

.contact-intro h1 {
  margin: 0;
  padding-right: 10%;
  font-size: 65px;
  font-weight: 600;
  line-height: 78px;
  color: var(--navy);
}

.contact-intro .lead {
  margin: 15px 0 0;
  color: #324a6d;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}

.contact-intro img { display: block; width: 100%; height: auto; }

.visit {
  padding: 72px 0 88px;
  text-align: center;
}

.visit h2 {
  margin: 0 0 28px;
  font-size: 48px;
  font-weight: 600;
  color: var(--navy);
}

.visit ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #555;
}

.visit li + li { margin-top: 8px; }

.site-footer {
  background: #eeeeec;
  padding: 11px 20px;
  color: #8f8f8f;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
}

.site-footer p { margin: 0; }

@media (max-width: 800px) {
  .search-dialog__panel { width: 80%; min-width: 0; }
  .hero { min-height: 460px; }
  .hero h1 { font-size: 32px; line-height: 44px; }
  .logo { font-size: 18px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product,
  .contact-intro { grid-template-columns: 1fr; gap: 24px; }
  .contact-intro { padding: 40px 20px 0; }
  .contact-intro > div { padding-left: 0; }
  .contact-intro h1 { padding-right: 0; line-height: 1.2; }
  .contact-intro h1,
  .visit h2 { font-size: 36px; }
  .shop-tools { align-items: flex-start; }
}

@media (max-width: 680px) {
  .nav-toggle { display: grid; place-items: center; }
  .header-tools { gap: 4px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .product-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0 12px; }
}
