.section {
  padding: 90px 0;
}

@media (max-width: 767px) {
  .section {
    padding: 65px 0;
  }
}

.section-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.section-description {
  max-width: 650px;
  margin-top: 24px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* -----------------------------------------
           Hero
        ----------------------------------------- */

.hero {
  padding-top: 100px;
  padding-bottom: 50px;
  overflow: hidden;
  background: #fff;
}

@media (min-width: 576px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 80px;
  }
}

@media (min-width: 1200px) {
  .hero {
    padding-top: 180px;
    padding-bottom: 80px;
  }
}

#banner .hero > .col:first-child img {
  /*border: 5px solid var(--color-primary);*/
  /*box-shadow: -18px 18px 0 #f4df4e;*/
}

@media (min-width: 1400px) {
  #banner .row {
    width: 90vw;
    max-width: 1900px;
  }
}

@media (min-width: 1400px) {
  #banner .container-fluid {
    display: flex;
    justify-content: center;
  }
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: calc(100svh - 90px);
}

.hero-content {
  position: relative;
  padding: 20px 30px 20px 65px;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 30px;
  width: 4px;
  background: var(--color-accent);
}

.hero h1 {
  max-width: 800px;
  font-family: var(--font-heading);
  font-size: clamp(3.1rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  color: var(--color-primary);
}

.hero-description {
  max-width: 560px;
  margin-top: 32px;
  color: #53534e;
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.hero-year {
  position: absolute;
  left: 4%;
  /*bottom: -4%;*/
  color: rgba(255, 255, 255, 0.26);
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 24rem);
  line-height: 1;
  pointer-events: none;
  margin-top: 20%;
}

/* -----------------------------------------
           Categories
        ----------------------------------------- */

.categories-section {
  background: var(--page-white);
}

.categories-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.categories-header .section-description {
  max-width: 430px;
  margin-top: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #222222;
  min-height: 560px;
  box-shadow: 0 18px 45px rgba(23, 54, 74, 0.12);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient( 90deg, #168dc4 0 42%, #f4df4e 42% 72%, #c52f3a 72% 100% );
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05) 65% );
}

.category-card:hover img {
  transform: scale(1.045);
}

.category-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px;
}

.category-number {
  display: block;
  margin-bottom: 14px;
  opacity: 0.7;
  letter-spacing: 0.18em;
}

.category-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-link::after {
  content: "→";
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.category-card:hover .category-link::after {
  transform: translateX(7px);
}

/* -----------------------------------------
           Products
        ----------------------------------------- */

.products-section {
  overflow: hidden;
  background: var(--page-cream);
}

.products-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 22px;
  border-bottom: 3px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-image {
  position: relative;
  aspect-ratio: 0.82;
  overflow: hidden;
  border: 1px solid rgba(23, 54, 74, 0.12);
  background: #ffffff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: translateY(-6px);
  border-bottom-color: var(--color-primary);
}

.product-info {
  padding-top: 22px;
}

.product-category {
  color: var(--color-text-light);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-info h3 {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text);
  font-size: 1.45rem;
}

.product-description {
  margin-top: 10px;
  color: var(--color-text-light);
}

/* -----------------------------------------
           History
        ----------------------------------------- */

.history-section {
  background: var(--page-blue-light);
}

.history-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.history-image {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}

.history-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.75);
}

.history-year {
  position: absolute;
  z-index: 2;
  right: -8px;
  bottom: -18px;
  font-family: var(--font-heading);
  font-size: clamp(7rem, 14vw, 13rem);
  line-height: 0.8;
  color: rgba(22, 141, 196, 0.18);
  text-shadow: 4px 4px 0 rgba(244, 223, 78, 0.35);
}

.history-content .section-label {
  color: var(--bs-warning);
}

.history-content .section-description {
  /*color: rgba(255, 255, 255, 0.72);*/
}

.history-timeline {
  display: grid;
  gap: 20px;
  margin-top: 50px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(23, 54, 74, 0.16);
}

.timeline-year {
  color: var(--bs-warning);
  font-family: var(--font-heading);
  font-size: 1.6rem;
}

.timeline-content h4 {
  margin-bottom: 7px;
  color: var(--color-text);
  font-size: 1.1rem;
}

.timeline-content p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* -----------------------------------------
           Factory
        ----------------------------------------- */

.factory-points {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .factory-points {
    margin-top: 20px;
    margin-bottom: 20px;
    align-content: center;
    align-items: center;
  }
}

.factory-point {
  padding-top: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--color-border);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  max-width: 90%;
}

@media (min-width: 992px) {
  .factory-point {
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
  }
}

.factory-point h4 {
  margin-bottom: 8px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
}

.factory-point p {
  color: var(--color-text-light);
  max-width: 300px;
}

/* -----------------------------------------
           B2B
        ----------------------------------------- */

.b2b-section {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient( 90deg, rgba(23, 54, 74, 0.97), rgba(23, 54, 74, 0.7) ), url("https://images.unsplash.com/photo-1567696911980-2eed69a46042?auto=format&fit=crop&w=1800&q=85") center / cover no-repeat;
}

.b2b-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.b2b-content .section-label {
  color: var(--bs-warning);
}

.b2b-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.b2b-content p {
  max-width: 620px;
  margin: 28px 0 38px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

/* -----------------------------------------
           Responsive
        ----------------------------------------- */

@media (max-width: 1100px) {
  .category-card {
    min-height: 500px;
  }
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 24px;
  }
}

@media (max-width: 1100px) {
  .history-layout {
    gap: 50px;
  }
}

@media (max-width: 1100px) {
  .hero-content {
    padding: 60px;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 78px 0;
  }
}

/* Hero */

@media (max-width: 767px) {
  .hero-content {
    padding: 35px 20px;
  }
}

@media (max-width: 767px) {
  .hero-content::before {
    display: none;
  }
}

@media (max-width: 767px) {
  #banner .hero > .col:first-child img {
    /*box-shadow: -10px 10px 0 #f4df4e;*/
  }
}

@media (max-width: 767px) {
  .hero-content {
    padding: 30px;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .hero-inner {
    align-items: flex-start;
    min-height: calc(100svh - 76px);
    padding-top: 100px;
  }
}

@media (max-width: 767px) {
  .hero h1 {
    max-width: 500px;
    font-size: clamp(3.4rem, 16vw, 5.2rem);
  }
}

@media (max-width: 767px) {
  .hero-description {
    /*max-width: 400px;*/
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
  }
}

@media (max-width: 767px) {
  .hero-year {
    right: -10%;
    bottom: 1%;
    font-size: 9rem;
  }
}

/* Categories */

@media (max-width: 767px) {
  .categories-header, .products-header {
    display: block;
  }
}

@media (max-width: 767px) {
  .categories-header .section-description {
    margin-top: 24px;
  }
}

@media (max-width: 767px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .category-card {
    min-height: 460px;
  }
}

@media (max-width: 767px) {
  .category-content {
    padding: 28px;
  }
}

/* Products */

@media (max-width: 767px) {
  .products-header .text-link {
    margin-top: 28px;
  }
}

@media (max-width: 767px) {
  .products-grid {
    display: flex;
    gap: 16px;
    margin-right: -16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
}

@media (max-width: 767px) {
  .product-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

/* History */

@media (max-width: 767px) {
  .history-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .history-image {
    min-height: 520px;
  }
}

@media (max-width: 767px) {
  .timeline-item {
    grid-template-columns: 70px 1fr;
  }
}

/* Factory */

/* B2B */

@media (max-width: 767px) {
  .b2b-section {
    padding: 90px 0;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 3.7rem;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .category-card {
    min-height: 420px;
  }
}

@media (max-width: 480px) {
  .history-image {
    min-height: 430px;
  }
}

#points {
  background: url("/assets/img/5355.jpg?h=e62e0eaa0b3eda2e3a8494aa98ff4cf0") center / cover no-repeat;
}

#products {
  background: #fff;
}

