@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --black: #242323;
  --red: #31596a;
  --deep-red: #223f4c;
  --blue: #0693d8;
  --gray: #f1f1f1;
  --light: #ffffff;
  --site-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: #fff;
  font-family: Manrope, Tahoma, Arial, sans-serif;
  font-size: 16px;
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

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

img.is-loading {
  background: linear-gradient(90deg, #f2f2f2 25%, #e4e4e4 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  animation: skeletonPulse 1.35s ease infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 96px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header-inner {
  width: min(var(--site-width), calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 96px;
  gap: 24px;
}

.social {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.social a {
  transition: opacity 180ms ease, transform 180ms ease;
}

.social a:hover,
.social a:focus-visible {
  opacity: 0.7;
  transform: translateY(-1px);
}

.social img {
  width: 26px;
  height: 26px;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  direction: rtl;
}

.nav a {
  min-width: 118px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #151515;
  font-size: 16px;
  border-left: 1px solid transparent;
  transition: color 180ms ease, background 180ms ease;
}

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

.call-link {
  justify-self: end;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #111;
  transition: color 180ms ease, transform 180ms ease;
}

.call-link:hover,
.call-link:focus-visible {
  color: var(--red);
  transform: translateY(-1px);
}

.call-link svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--red);
  transform: translateY(-1px);
}

.page {
  overflow: hidden;
}

.hero {
  min-height: 460px;
  background: #fff;
  display: grid;
  align-items: start;
  padding: 42px 0 0;
}

.hero-logo {
  width: min(430px, 74vw);
  margin: 0 auto 30px;
  animation: fadeUp 700ms ease both;
}

.intro-strip {
  width: 100%;
  background: #31596a;
  padding: 32px 18px;
}

.intro-text {
  width: min(880px, 100%);
  margin: 0 auto;
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1.75;
  animation: fadeUp 800ms ease 120ms both;
}

.section {
  width: min(var(--site-width), calc(100% - 30px));
  margin: 0 auto;
  padding: 48px 0;
}

.section-title {
  margin: 0 0 28px;
  color: var(--black);
  text-align: center;
  font-size: 28px;
  font-weight: 400;
}

.client-gallery-wrap {
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 16px 0 26px;
}

.client-gallery,
.food-gallery {
  display: flex;
  width: max-content;
  gap: 0;
  animation: clientSlide 42s linear infinite;
}

.client-gallery:hover,
.food-gallery:hover,
.client-gallery:focus-within,
.food-gallery:focus-within {
  animation-play-state: paused;
}

.client-gallery img,
.food-gallery img {
  width: 220px;
  height: 150px;
  object-fit: contain;
  padding: 12px 18px;
}

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

.product-card {
  text-align: center;
  min-height: 270px;
  animation: fadeUp 600ms ease both;
  transition: transform 180ms ease, filter 180ms ease;
}

.product-card:hover,
.product-card:focus-within {
  filter: drop-shadow(0 6px 10px rgba(49, 89, 106, 0.14));
  transform: translateY(-3px);
}

.product-card img {
  width: 219px;
  height: 141px;
  object-fit: cover;
  margin: 0 auto 14px;
}

.product-card h3 {
  display: inline-grid;
  place-items: center;
  min-width: 120px;
  min-height: 36px;
  margin: 0 auto 12px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 16px;
  font-weight: 400;
  box-shadow: 0 3px 8px rgba(49, 89, 106, 0.16);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover h3,
.product-card:focus-within h3 {
  background: var(--deep-red);
  box-shadow: 0 8px 16px rgba(49, 89, 106, 0.26);
  transform: translateY(-2px) scale(1.03);
}

.product-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.newsletter {
  background: #31596a;
  color: #fff;
  text-align: center;
  padding: 52px 18px;
}

.newsletter h2 {
  margin: 0 0 24px;
  font-size: 27px;
  font-weight: 400;
}

.join-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 20px;
  transition: color 180ms ease;
}

.join-link:hover {
  color: #ddd;
}

.join-link:focus-visible {
  color: #ddd;
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.newsletter-form {
  display: flex;
  width: min(430px, calc(100% - 24px));
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  direction: rtl;
}

.newsletter-form input {
  width: 100%;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  color: #31596a;
  background: #fff;
  font: inherit;
  text-align: center;
}

.newsletter-form input::placeholder {
  color: #9aa7ad;
}

.newsletter-form button {
  min-width: 164px;
  min-height: 42px;
  border: 0;
  padding: 0 22px;
  color: #fff;
  background: #252525;
  font: inherit;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible {
  background: #111;
  transform: translateY(-1px);
}

.form-status {
  min-height: 20px;
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.newsletter-form[data-phase="blank"] .form-status,
.contact-form[data-phase="blank"] .form-status {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form[data-phase="blank"] .form-status {
  color: #777;
}

.newsletter-form[data-phase="filled"] .form-status,
.contact-form[data-phase="filled"] .form-status {
  color: #e9f3f6;
}

.contact-form[data-phase="filled"] .form-status {
  color: var(--red);
}

.newsletter-form[data-phase="success"] .form-status,
.contact-form[data-phase="success"] .form-status {
  color: #d9f8e7;
  font-weight: 700;
}

.contact-form[data-phase="success"] .form-status {
  color: #1f7a43;
}

.newsletter-form[data-phase="failure"] .form-status,
.contact-form[data-phase="failure"] .form-status {
  color: #ffe4e4;
  font-weight: 700;
}

.contact-form[data-phase="failure"] .form-status {
  color: #a31f1f;
}

.newsletter-form[data-phase="success"] input,
.contact-form[data-phase="success"] input,
.contact-form[data-phase="success"] textarea {
  border-color: #1f7a43;
}

.newsletter-form[data-phase="failure"] input,
.contact-form[data-phase="failure"] input,
.contact-form[data-phase="failure"] textarea {
  border-color: #a31f1f;
}

.contact-hero {
  position: relative;
  min-height: 430px;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
}

.contact-hero {
  background-image: url("assets/001-765e58_6f569b4006774fa2ac328377b243c2d7_mv2.png");
  background-size: cover;
  background-color: #222;
}

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

.hero-copy {
  position: relative;
  width: min(780px, calc(100% - 32px));
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 400;
}

.hero-copy p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.6;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: start;
}

.contact-panel {
  text-align: center;
}

.contact-panel h1 {
  margin: 0 0 18px;
  font-size: 42px;
  font-weight: 400;
}

.contact-panel p,
.contact-panel a {
  font-size: 20px;
  line-height: 1.8;
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  color: var(--red);
}

.contact-form {
  display: grid;
  gap: 12px;
  direction: rtl;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #999;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 12px 34px;
  font: inherit;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: var(--deep-red);
  transform: translateY(-1px);
}

.site-footer {
  background: #fff;
  border-top: 1px solid #e7e7e7;
  text-align: center;
  padding: 24px 16px 18px;
}

.footer-inner {
  width: min(560px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.footer-contact,
.footer-payment {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.footer-logo {
  width: min(176px, 54vw);
  margin: 0;
}

.footer-title {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
}

.footer-email {
  display: inline-block;
  font-size: 17px;
  direction: ltr;
  unicode-bidi: embed;
}

a[href^="mailto:"],
a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: embed;
}

.cards {
  width: 104px;
  margin: 0;
}

.credit {
  margin: 2px 0 0;
  color: #555;
  font-size: 12px;
}

.credit a {
  color: var(--red);
}

.credit a:hover,
.credit a:focus-visible {
  text-decoration: underline;
  opacity: 0.82;
}

.footer-email:hover,
.footer-email:focus-visible,
a[href^="mailto:"]:hover,
a[href^="mailto:"]:focus-visible,
a[href^="tel:"]:hover,
a[href^="tel:"]:focus-visible {
  color: var(--red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skeletonPulse {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

@keyframes clientSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

@media (max-width: 840px) {
  .site-header {
    min-height: 72px;
  }

  .header-inner {
    min-height: 72px;
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: block;
    justify-self: start;
  }

  .social {
    justify-self: center;
  }

  .call-link {
    width: 44px;
    height: 44px;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #ddd;
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
  }

  .hero {
    min-height: 430px;
    padding-top: 24px;
  }

  .intro-strip {
    padding: 26px 16px;
  }

  .products,
  .service-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }

  .product-card img {
    width: min(260px, 82vw);
    height: auto;
  }
}

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

  .section-title {
    font-size: 24px;
  }

  .intro-text {
    font-size: 15px;
  }

  .newsletter h2 {
    font-size: 23px;
  }

  .service-card img {
    height: 210px;
  }
}
