:root {
  --blue: #00286e;
  --bright-blue: #0e61c6;
  --light-blue: #dce8f7;
  --gray: #f0f0f0;
  --page: #f8f8f8;
  --white: #fff;
  --brand-red: #cd1f1c;
  --brand-red-dark: #a91815;
  --shadow: 0 3px 12px rgba(0, 40, 110, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--blue);
  font-family: Lato, Arial, sans-serif;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--blue);
  font-weight: 400;
  word-break: break-word;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.125rem, 1rem + 4vw, 3.125rem);
  line-height: 1.06;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.375rem);
  line-height: 1.08;
}

h3 {
  overflow-wrap: anywhere;
}

p {
  margin: 0;
}

a {
  color: var(--bright-blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

button {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a,
button {
  outline-offset: 3px;
}

.o-container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.header-inner {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) max-content;
  gap: 1rem;
  align-items: center;
  min-height: 76px;
}

.logo {
  display: block;
  max-width: 190px;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 44px);
}

.main-nav a {
  display: inline-block;
  padding: 8px 0;
  color: var(--blue);
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand-red);
}

.header-utils {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--blue);
  font-size: 16px;
  font-weight: 400;
}

.utility-link svg {
  width: 22px;
  height: 22px;
  fill: none;
}

.utility-link:hover {
  color: var(--brand-red);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border: 1px solid var(--blue);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  z-index: 990;
  inset: 76px 0 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: auto;
  background: var(--blue);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity .2s ease, transform .25s ease, visibility 0s .25s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity .2s ease, transform .25s ease;
}

.mobile-nav a {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  color: var(--white);
  font-size: 22px;
  line-height: 30px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  padding-bottom: 37.5%;
  background: var(--blue);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: 50% 50%;
  background-size: cover;
  transition: opacity .5s ease;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .15;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide-one {
  background-image: url("../img/ban1.webp");
}

.hero-slide-two {
  background-image: url("../img/ban2.webp");
}

.hero-slide-three {
  background-image: url("../img/ban3.webp");
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(90%, 1200px);
  color: var(--white);
  transform: translate(-50%, -50%);
}

.hero-heading {
  max-width: 850px;
  color: var(--white);
  font-size: clamp(1.75rem, .6rem + 3.5vw, 3.125rem);
  line-height: clamp(2rem, .7rem + 3.9vw, 3.3125rem);
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}

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

.button {
  display: inline-block;
  min-height: 48px;
  padding: 11px 38px;
  border: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.button-hero {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.button-hero-primary {
  border-color: var(--brand-red);
  background: var(--brand-red);
}

.button-hero:hover,
.button-hero:focus-visible {
  background: var(--white);
  color: var(--blue);
  text-decoration: none;
}

.button-hero-primary:hover,
.button-hero-primary:focus-visible {
  border-color: var(--brand-red-dark);
  background: var(--brand-red-dark);
  color: var(--white);
}

.hero-pagination {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  opacity: .4;
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--brand-red);
  opacity: 1;
}

.introduction {
  padding: 74px 0 64px;
}

.introduction > .o-container > p {
  max-width: 1040px;
  font-size: clamp(1.125rem, 1rem + .7vw, 1.5rem);
  line-height: 1.3;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-top: 70px;
}

.metric {
  text-align: center;
}

.metric img {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  margin-inline: auto;
  object-fit: contain;
}

.metric h3 {
  position: relative;
  margin-top: 24px;
  font-size: clamp(1.125rem, .9rem + .9vw, 1.75rem);
  line-height: 1.22;
}

.metric h3::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 28px;
  height: 3px;
  background: var(--brand-red);
  transform: translateX(-50%);
}

.section {
  padding: 58px 0;
}

.section > .o-container > h2,
.section > .o-container > p {
  max-width: 900px;
}

.section > .o-container > p {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 26px;
}

.product-section .card-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 38px;
}

.lift-card {
  position: relative;
  display: block;
}

a.lift-card:hover {
  text-decoration: none;
}

.lift-image {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding-bottom: 75%;
  background-position: 50% 50%;
  background-size: cover;
}

.lift-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background .3s ease;
}

.lift-card:hover .lift-image::after {
  background: rgba(0, 40, 110, .07);
}

.product-kraft-window {
  background-image: url("../img/product-kraft-window.jpg");
}

.product-cone-cup {
  background-image: url("../img/product-cone-cup.jpg");
}

.product-burger-box {
  background-image: url("../img/product-burger-box.jpg");
}

.product-fresh {
  background-image: url("../img/product-fresh.jpg");
}

.product-delivery {
  background-image: url("../img/product-delivery.jpg");
}

.product-kraft-cake {
  background-image: url("../img/product-kraft-cake.jpg");
}

.quality-control {
  background-image: url("../img/quality-control-clean.jpg");
}

.production-equipment {
  background-image: url("../img/production-equipment.jpg");
}

.lift-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
  color: var(--blue);
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}

.lift-card h3 svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: var(--brand-red);
}

.lift-card h3 a {
  color: var(--bright-blue);
}

.action-block {
  background: var(--gray);
}

.action-block .card-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 38px;
}

.card-category {
  display: block;
  margin-top: 1rem;
  color: var(--brand-red);
  font-size: 18px;
  line-height: 22px;
}

.action-block .lift-card h3 {
  margin-top: .5rem;
}

.section-link {
  margin-top: 40px;
  text-align: center;
}

.arrow-link,
.bold-link {
  position: relative;
  display: inline-block;
  padding-right: 26px;
  color: var(--bright-blue);
  font-size: 18px;
  font-weight: 700;
}

.arrow-link::after,
.bold-link::after {
  content: "\2192";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--brand-red);
}

.promo-block {
  padding: 64px 0;
  background: var(--white);
}

.promo-block.gray {
  background: var(--gray);
}

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

.promo-copy h2 {
  margin-bottom: 2rem;
  font-size: clamp(2rem, 1.5rem + 1.7vw, 2.5rem);
  line-height: 1;
}

.promo-copy p {
  margin-bottom: 2rem;
  font-size: 20px;
  line-height: 26px;
}

.promo-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news-section {
  padding-bottom: 72px;
}

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

.news-date {
  display: inline-block;
  color: var(--brand-red);
  font-size: 18px;
  line-height: 22px;
}

.news-grid h3 {
  margin-top: .5rem;
}

.news-grid h3 a {
  color: var(--bright-blue);
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}

.glance-band {
  padding: 58px 0;
  background: var(--light-blue);
}

.glance-band h2 {
  text-align: center;
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}

.glance-grid div {
  text-align: center;
}

.glance-grid h3 {
  color: var(--blue);
  font-size: 20px;
  line-height: 24px;
}

.glance-grid span {
  display: block;
  margin-top: 14px;
  color: var(--blue);
  font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem);
  line-height: 1.15;
  font-weight: 700;
}

.site-footer {
  padding: 72px 0 56px;
  background: var(--blue);
  color: var(--white);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--white);
  font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3.25rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-logo span {
  margin-left: 6px;
  font-size: .58em;
  font-weight: 400;
  text-transform: capitalize;
}

.footer-logo:hover {
  text-decoration: none;
}

.footer-nav ul,
.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 45px;
  margin-bottom: 1.5rem;
}

.footer-nav a,
.footer-links a {
  color: var(--white);
  font-size: 22px;
  line-height: 30px;
}

.footer-links a {
  font-size: 18px;
  font-weight: 300;
  line-height: 30px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 78px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.legal-links a,
.footer-bottom p {
  color: var(--white);
  font-size: 18px;
  line-height: 26px;
  font-weight: 300;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1200px) {
  .header-inner {
    grid-template-columns: 180px minmax(0, 1fr) max-content;
  }

  .main-nav a {
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .nav-toggle {
    display: block;
  }

  .product-section .card-track,
  .action-block .card-grid-three,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .glance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
    line-height: 26px;
  }

  .header-inner {
    min-height: 68px;
  }

  .logo,
  .footer-logo {
    max-width: 150px;
  }

  .mobile-nav {
    inset: 68px 0 0;
  }

  html {
    scroll-padding-top: 78px;
  }

  .hero-carousel {
    padding-bottom: 118%;
  }

  .hero-content {
    width: calc(100% - 40px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: min(100%, 280px);
  }

  .hero-pagination {
    bottom: 20px;
  }

  .introduction {
    padding: 56px 0;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 52px;
  }

  .metric img {
    max-width: 92px;
  }

  .section {
    padding: 44px 0;
  }

  .product-section .card-track,
  .action-block .card-grid-three,
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .promo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .promo-media {
    order: -1;
  }

  .promo-copy h2 {
    margin-bottom: 1.25rem;
  }

  .promo-copy p {
    margin-bottom: 1.5rem;
  }

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

  .footer-nav ul,
  .footer-links ul {
    flex-direction: column;
    gap: 5px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 52px;
  }
}

@media (max-width: 400px) {
  .utility-link span {
    display: none;
  }

  .metrics,
  .glance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-heading {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide,
  .lift-image::after,
  .mobile-nav,
  .nav-toggle span {
    transition: none;
  }
}
