:root {
  --gold: #ae944a;
  --text: #1b1b1b;
  --light: #d5d5d5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font: 400 16px/1.65 Roboto, -apple-system, "Segoe UI", sans-serif;
  color: #334155;
  background: #fff;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.boxed { max-width: 1140px; margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  display: grid;
  grid-template-columns: 16.408% 1fr 13.279%;
  align-items: center;
  min-height: 136px;
  position: relative;
  z-index: 20;
}
.logo { padding: 10px; }
.logo img { width: 50%; margin: 0 auto; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px;
  font-size: 14px;
  color: var(--gold);
  white-space: nowrap;
}
.header-phone svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.nav-toggle, .nav-close, .nav-overlay { display: none; }

.menu { display: flex; justify-content: center; align-items: center; height: 50px; }
.menu > li { position: relative; margin: 10px; }
.menu > li > a {
  display: block;
  font: 600 13px/26px "Open Sans", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #000;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.menu > li.active > a, .menu > li:hover > a { color: var(--gold); }
.menu > li:hover > a { border-bottom-color: var(--gold); }

.caret {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  border: 4px solid transparent;
  border-top-color: #101010;
  border-bottom: 0;
}

.sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 15px 0;
  background: #f4f4f4;
  border-top: 1px solid #dadada;
  box-shadow: 0 10px 30px rgba(45, 45, 45, .2);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}
.sub li { position: relative; }
.sub a { display: flex; justify-content: space-between; align-items: center; padding: 8px; font-size: 14px; color: #000; }
.sub li:hover > a { color: var(--gold); }
.sub .sub { top: 0; left: 100%; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; }

/* ---------- Slider ---------- */
.slider {
  position: relative;
  height: min(600px, 48.4vw);
  overflow: hidden;
  container-type: inline-size;
}
.slides, .slide { position: absolute; inset: 0; }
.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(.85);
  transition: opacity 1s, transform 1s;
}
.slide.is-active { opacity: 1; transform: none; z-index: 1; }
.slide.is-leaving { opacity: 1; transform: translateX(100%); z-index: 2; }

.slider-shade {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 43%;
  background: rgba(174, 148, 74, .6);
  z-index: 3;
}
.slider-grid {
  position: relative;
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  z-index: 4;
  color: #e5e5e5;
}
.slider-grid h1, .slider-grid p {
  position: absolute;
  right: 7.26cqw;
  width: 32.26cqw;
  animation: from-right 1s both;
}
.slider-grid h1 { top: 12.1cqw; font-size: 3.63cqw; line-height: 1; font-weight: 500; letter-spacing: .161cqw; }
.slider-grid p { top: 20.16cqw; font-size: 1.29cqw; line-height: 2.016cqw; font-weight: 300; }
@keyframes from-right { from { opacity: 0; transform: translateX(50px); } }

@media (min-width: 1240px) {
  .slider-grid h1, .slider-grid p { right: 90px; width: 400px; }
  .slider-grid h1 { top: 150px; font-size: 45px; letter-spacing: 2px; }
  .slider-grid p { top: 250px; font-size: 16px; line-height: 25px; }
}

.arrow {
  position: absolute;
  bottom: 20px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .1);
  opacity: 0;
  transition: opacity .3s, background .3s;
}
.arrow::before {
  content: "";
  position: absolute;
  top: 15px; left: 15px;
  width: 9px; height: 9px;
  border: solid #fff;
  border-width: 2px 0 0 2px;
  transform: rotate(-45deg);
}
.arrow:hover { background: rgba(0, 0, 0, .4); }
.arrow-prev { left: calc(50% - 60px); }
.arrow-next { left: calc(50% + 20px); }
.arrow-next::before { left: 13px; transform: rotate(135deg); }
.slider:hover .arrow, .arrow:focus-visible { opacity: 1; }

/* ---------- Partnership ---------- */
.partnership { display: grid; grid-template-columns: 1fr 1fr; margin-block: 80px; }
.partnership .col { padding: 10px; }
.partnership h2 { font-size: 32px; line-height: 1.3; margin-bottom: 20px; }
.partnership .kicker { font-weight: 400; color: var(--text); }
.partnership .title { font-weight: 500; color: var(--gold); }
.divider { padding-block: 15px; margin-bottom: 20px; }
.divider::before { content: ""; display: block; width: 25%; border-top: 1px solid #000; }
.partnership p { font-size: 14px; line-height: 26.4px; color: var(--text); margin-bottom: 22px; }
.col-image { display: flex; align-items: center; justify-content: center; }

/* ---------- Jelly glue + features ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; margin-block: 80px; }

.jelly {
  position: relative;
  min-height: 626px;
  padding: 200px;
  background: url("../assets/img/je.jpg") center / cover;
}
.jelly::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.jelly-text { position: relative; padding: 10px; width: 170px; }
.jelly-text > * { margin-bottom: 20px; }
.jelly h5 { font-size: 20px; line-height: 24px; color: #fff; }
.jelly h6 { font-size: 16px; line-height: 20px; color: var(--gold); }
.jelly p { font-size: 16px; line-height: 1; color: #fff; }
.jelly a { display: inline-flex; gap: 16px; font-size: 15px; font-weight: 500; line-height: 26px; margin: 0; color: var(--light); }

.features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 0 100px;
  background: #222;
}
.feature { display: flex; align-items: flex-start; gap: 30px; }
.feature img { width: 68px; flex: none; }
.feature h3 { font-size: 26px; line-height: 1.3; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.feature p { font-size: 16px; color: var(--light); }

/* ---------- Footer ---------- */
.footer-main { background: #1a1a1a; color: var(--light); padding-block: 50px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.footer-cols .col { padding: 10px; }
.footer-logo { display: block; margin-bottom: 20px; }
.footer-logo img { width: 180px; }
.footer-cols .col > p { font-size: 14px; line-height: 21px; }
.footer-cols h2 { font-size: 23px; line-height: 1.3; font-weight: 500; margin-bottom: 20px; }
.footer-links { color: #fff; }
.footer-links a:hover { color: #9da24f; }
.footer-contact { font-size: 14px; line-height: 26.4px; }
.footer-contact li + li { margin-top: 5px; }

.footer-bar { background: var(--gold); color: #fff; font-size: 15px; line-height: 1.3; }
.footer-bar .boxed { display: grid; grid-template-columns: 1fr 1fr; }
.footer-bar p { padding: 10px; }
.footer-bar p:last-child { text-align: end; }

.to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 30;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #a07438;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
.to-top::before {
  content: "";
  position: absolute;
  top: 13px; left: 12px;
  width: 8px; height: 8px;
  border: solid #fff;
  border-width: 2px 0 0 2px;
  transform: rotate(45deg);
}
.to-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 1200px) {
  .jelly { padding: 200px 20%; }
  .features { padding: 40px; }
}

@media (max-width: 1024px) {
  .site-header { grid-template-columns: 1fr auto; }
  .logo { justify-self: start; width: 200px; }
  .main-nav { padding-right: 40px; }
  .header-phone { grid-column: 1 / -1; }

  .nav-toggle { display: block; width: 45px; padding: 8px; color: var(--gold); }
  .nav-toggle svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.6; margin: 0 auto; display: block; }
  .nav-panel {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 50;
    width: min(350px, 85vw);
    overflow-y: auto;
    background: #fff;
    transform: translateX(-100%);
    visibility: hidden;
    transition: .35s;
  }
  .nav-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .5); }
  .nav-open .nav-panel { transform: none; visibility: visible; }
  .nav-open .nav-overlay { display: block; }
  .nav-close { display: block; margin: 13px 13px 13px auto; width: 45px; padding: 4px; border: 1px solid var(--gold); border-radius: 3px; color: var(--gold); }

  .menu { display: block; height: auto; }
  .menu > li { margin: 0; }
  .menu > li > a { padding: 10px 15px; }
  .menu > li:hover > a { border-bottom-color: transparent; }
  .sub, .sub .sub { position: static; display: none; opacity: 1; visibility: visible; box-shadow: none; padding: 0 0 0 15px; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.is-open > .sub { display: block; }
  .sub a { padding: 12px 15px; }

  .products { grid-template-columns: 1fr; }
  .features { padding-block: 60px; }
}

@media (max-width: 767px) {
  .logo { width: 178px; }
  .main-nav { padding-right: 20px; }

  .partnership, .footer-cols, .footer-bar .boxed { grid-template-columns: 1fr; }
  .partnership { margin-block: 40px; }
  .products { margin-block: 40px; }

  .jelly { min-height: 0; padding: 84px; }
  .features { padding: 31px; }
  .feature { flex-direction: column; align-items: center; text-align: center; gap: 10px; }

  .footer-bar p, .footer-bar p:last-child { text-align: center; }
}

/* ---------- Inner pages ---------- */
.banner { display: grid; grid-template-columns: 1fr 1fr; min-height: 278px; background: center / cover no-repeat; }
.banner-top { background-position: top center; }
.banner-title { display: flex; align-items: center; justify-content: flex-end; padding: 100px 20px 100px 10px; background: #0000005c; }
.banner-title h1 { font-size: 60px; line-height: 1.3; font-weight: 600; color: #fff; text-align: right; }
.banner-tint { background: #745423e6; }

.service .col-image.fill img { width: 100%; }
.service > .col:not(.col-image) { align-self: center; }
.partnership.service .kicker { font-weight: 500; color: var(--gold); }
.partnership.service .title { color: var(--text); }
.partnership.service .boxed-note p { padding: 10px 16px; border: 1px solid #eee; }

.galleries { margin-block: 70px; padding-inline: 10px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 63px; align-items: start; }
.gallery img { width: 100%; }
.gallery + .gallery { margin-top: 20px; }

.certificates { display: grid; grid-template-columns: 1fr 1fr; row-gap: 60px; margin-block: 80px; text-align: center; }
.certificate { padding: 0 20px; }
.certificate h2 { font-size: 25px; line-height: 1.3; font-weight: 600; color: var(--gold); margin-bottom: 20px; }
.certificate img { width: 324px; margin: 0 auto; }

.contact-intro { margin-block: 80px 50px; padding-inline: 10px; text-align: center; color: var(--text); }
.contact-intro h2 { font-size: 32px; line-height: 1.3; font-weight: 600; color: var(--gold); margin-bottom: 20px; }
.contact-intro p { max-width: 784px; margin: 0 auto; font-size: 17px; line-height: 26.4px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; row-gap: 90px; margin-bottom: 80px; color: var(--text); }
.contact .col { padding: 10px 20px; }
.contact h2, .contact h3 { font-family: Raleway, sans-serif; line-height: 1.3; margin-bottom: 20px; }
.contact h2 { font-size: 25px; font-weight: 500; color: var(--gold); }
.contact h3 { font-size: 18px; font-weight: 600; }
.contact p { line-height: 1.3; margin-bottom: 20px; }
.contact iframe { width: 100%; height: 400px; border: 0; }
.contact .col-photo { grid-column: 2; padding: 10px; }
.contact .col-photo img { width: 100%; }

/* ---------- Shop ---------- */
.shop { max-width: 1240px; margin: 64px auto 80px; padding-inline: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.breadcrumb { font-size: 14.7px; color: #777; margin-bottom: 15px; }
.breadcrumb a:hover { color: var(--gold); }
.shop > h1 { font-size: 40px; line-height: 1.4; font-weight: 400; color: #1e293b; margin-bottom: 40px; }
.result-count { margin-bottom: 45px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
.product-grid.four { grid-template-columns: repeat(4, 1fr); }
.product-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-cat { display: block; margin-top: 13px; font-size: 13.6px; line-height: 18px; opacity: .6; }
.product h2 { font-size: 16px; line-height: 21px; font-weight: 600; color: #1e293b; margin: 9px 0 16px; }
.button { display: inline-block; padding: 14px 34px; border-radius: 3px; background: var(--gold); color: #fff; font-weight: 700; line-height: 23px; }
.button:hover { background: #8f7a3b; }
.category a { display: block; position: relative; }
.category-label { position: absolute; left: 14px; right: 14px; bottom: 26px; padding: 10px; background: #fffffff0; text-align: center; text-transform: uppercase; color: #1e293b; line-height: 1.4; }
.category-label strong { display: block; font-size: 13.6px; }
.category-label small { font-size: 10px; font-weight: 600; opacity: .7; }

.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-photo img { width: 100%; }
.product-top h1 { font-size: 25px; font-weight: 400; color: #1e293b; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #eee; }
.product-meta { font-size: 14px; }
.product-meta a, .description a { color: #046bd2; }
.tab-title { margin: 64px 0 30px; border-top: 1px solid #eee; }
.tab-title span { display: inline-block; margin-top: -1px; padding-top: 6px; border-top: 3px solid #046bd2; font-size: 15px; font-weight: 600; }
.description { font-size: 15px; overflow-wrap: break-word; }
.description p { margin-bottom: 25px; }
.description h2 { font-size: 24px; color: #1e293b; margin-bottom: 25px; }
.description img { display: inline-block; vertical-align: middle; margin: 0 4px 10px 0; max-width: min(260px, 100%); }
.description hr { max-width: 560px; margin: 30px 0; border: 0; border-top: 3px solid #1e293b; }
.table-scroll { overflow-x: auto; }
.description table { width: 100%; min-width: 640px; border-collapse: collapse; }
.description td, .description th { padding: 10px 16px; border: 1px solid #eee; text-align: start; }
.description td p { margin: 0; }
.related-title { font-size: 25px; color: #1e293b; margin: 40px 0 30px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: #000000e6; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 90vw; max-height: 90vh; }
.lightbox button { position: absolute; padding: 12px 18px; color: #fff; font-size: 34px; line-height: 1; }
.lightbox button[hidden] { display: none; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 5px; top: 45%; }
.lightbox .lb-next { right: 5px; top: 45%; }

@media (max-width: 767px) {
  .banner { grid-template-columns: 1fr; min-height: 0; }
  .banner-tint { display: none; }
  .banner-title { justify-content: center; padding-block: 60px; }
  .banner-title h1 { font-size: 40px; text-align: center; }
  .certificates, .contact, .product-top { grid-template-columns: minmax(0, 1fr); }
  .contact .col-photo { grid-column: 1; }
  .gallery { gap: 10px; }
  .galleries, .certificates { margin-block: 40px; }
  .shop { margin-top: 30px; }
  .product-grid, .product-grid.four { grid-template-columns: repeat(2, 1fr); }
  .button { padding: 10px 20px; }
}
