@font-face {
  font-family: "YekanBakh";
  src: url("assets/fonts/Yekan-Bakh-FaNum-03-Light.woff") format("woff");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YekanBakh";
  src: url("assets/fonts/Yekan-Bakh-FaNum-05-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YekanBakh";
  src: url("assets/fonts/Yekan-Bakh-FaNum-06-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f1f1f1;
  color: #424242;
  font-family: "YekanBakh", Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.9;
}

body[dir="ltr"] {
  font-family: Arial, Helvetica, sans-serif;
}

body[dir="ltr"] .main-nav {
  padding-inline-start: 0;
  padding-inline-end: 70px;
}

body[dir="ltr"] .articles p,
body[dir="ltr"] .about p,
body[dir="ltr"] .about-page-text,
body[dir="ltr"] .news-list p {
  text-align: left;
}

body[dir="ltr"] .articles a {
  float: right;
}

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

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

.container {
  width: min(1040px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  background: #779bd1;
  min-height: 85px;
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 85px;
}

.brand {
  width: 124px;
  flex: 0 0 124px;
  transform: translateY(4px);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-inline: auto;
  padding-inline-start: 70px;
  font-size: 16px;
  font-weight: 300;
}

.main-nav a,
.language a {
  transition: color .18s ease;
}

.main-nav a:hover,
.language a:hover {
  color: #ffe4b5;
}

.language {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #d9e4f5;
}

.hero-track {
  position: relative;
  height: clamp(320px, 43vw, 690px);
}

.hero-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .7s ease, transform .9s ease;
}

.hero-track img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(0, 0, 0, .18);
  color: #fff;
  font: 300 34px/1 Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .18s ease, border-color .18s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, .32);
  border-color: rgba(255, 255, 255, .85);
}

.hero-prev {
  right: 7%;
}

.hero-next {
  left: 7%;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: 34px;
  display: flex;
  gap: 6px;
  transform: translateX(50%);
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dce1e6;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.hero-dots button.is-active {
  background: #0d47a1;
  transform: scale(1.2);
}

.articles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-block: 92px 64px;
}

.articles article {
  min-width: 0;
}

.articles img {
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
}

.articles h2 {
  margin: 14px 0 4px;
  color: #5286c8;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}

.articles h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 8px;
  background: #bebebe;
}

.articles p {
  margin: 12px 0 4px;
  color: #333;
  font-size: 12.5px;
  line-height: 2;
  text-align: justify;
}

.articles a {
  float: left;
  color: #999;
  font-size: 12px;
}

.product-section {
  margin-bottom: 78px;
  text-align: center;
}

.product-section h2 {
  margin: 16px 0 30px;
  font-size: 24px;
  font-weight: 400;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.product-grid a {
  position: relative;
  overflow: hidden;
  background: #000;
  grid-column: span 2;
  aspect-ratio: 1.38;
}

.product-grid a:nth-child(n+7) {
  grid-column: span 3;
}

.product-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .18s ease, transform .18s ease;
}

.product-grid span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  color: transparent;
  font-size: 16px;
  font-weight: 400;
  transition: color .18s ease;
}

.product-grid a:hover img {
  opacity: .4;
  transform: rotate(6deg) scale(1.22);
}

.product-grid a:hover span {
  color: #fff;
}

.agency {
  display: grid;
  place-items: center;
  min-height: 390px;
  margin-top: 30px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(220px 90px at 1% 92%, rgba(255, 255, 255, .86) 0 36%, transparent 37%),
    radial-gradient(180px 70px at 0% 88%, rgba(255, 255, 255, .46) 0 38%, transparent 39%),
    radial-gradient(260px 120px at 100% 86%, rgba(255, 255, 255, .78) 0 34%, transparent 35%),
    radial-gradient(6px 6px at 96% 18%, rgba(255, 255, 255, .9) 0 45%, transparent 46%),
    radial-gradient(4px 4px at 92% 28%, rgba(255, 255, 255, .8) 0 45%, transparent 46%),
    linear-gradient(105deg, #8b090f 0%, #b61721 54%, #da4446 100%);
  position: relative;
  overflow: hidden;
}

.agency div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.agency h2 {
  margin: 0 0 6px;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.45;
}

.agency p {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.8;
}

.agency a {
  display: inline-block;
  min-width: 96px;
  padding: 10px 22px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.7;
  transition: color .18s ease, background .18s ease;
}

.agency a:hover {
  color: #bd2028;
  background: #fff;
}

.about {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 48px;
  align-items: start;
  padding-block: 112px 58px;
}

.about img {
  width: 100%;
}

.about h2 {
  margin: 0 0 20px;
  font-size: 38px;
  font-weight: 400;
}

.about p {
  margin: 0 0 12px;
  color: #4b4b4b;
  font-size: 13px;
  line-height: 2.2;
  text-align: justify;
}

.site-footer {
  margin-top: 52px;
  background: #010024;
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 20px;
  align-items: center;
  min-height: 88px;
  text-align: center;
}

.footer-inner p {
  margin: 0;
  font-size: 11px;
  line-height: 1.9;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #b6b6b6;
}

.footer-icons a {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #b6b6b6;
  transition: color .18s ease, transform .18s ease;
}

.footer-icons a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.footer-icons svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.page {
  min-height: 650px;
  padding-top: 50px;
}

.page-title {
  height: 40px;
  margin-bottom: 25px;
  padding: 9px 14px;
  background: #779bd1;
  color: #fff;
}

.page-title h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.page-intro {
  margin: 0 0 28px;
  color: #0d47a1;
  font-size: 13px;
  line-height: 2;
}

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

.products-page-grid a {
  display: block;
  color: #333;
  text-align: center;
}

.products-page-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 12px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.products-page-grid span {
  display: block;
  margin-top: 9px;
  color: #0d47a1;
  font-size: 13px;
  line-height: 1.8;
}

.products-page-grid a:hover img {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.news-list {
  display: grid;
  gap: 24px;
}

.news-list article {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid #d5d5d5;
}

.news-list img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.news-list h2 {
  margin: 0 0 8px;
  color: #0d47a1;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
}

.news-list p {
  margin: 0 0 8px;
  color: #444;
  font-size: 13px;
  line-height: 2.1;
  text-align: justify;
}

.news-list a {
  color: #999;
  font-size: 12px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
}

.about-page {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  margin-top: 34px;
}

.about-page figure {
  margin: 0;
}

.about-page img {
  width: 100%;
}

.about-page-text {
  color: #0d47a1;
  font-size: 13px;
  line-height: 2.25;
  text-align: justify;
}

.about-page-text p {
  margin: 0 0 14px;
}

.contact-text {
  color: #0d47a1;
  font-size: 13px;
  line-height: 2.2;
}

.contact-text p {
  margin: 0 0 8px;
}

.map-box {
  display: grid;
  place-items: center;
  min-height: 380px;
  color: #355f91;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(119,155,209,.12) 1px, transparent 1px),
    linear-gradient(rgba(119,155,209,.12) 1px, transparent 1px),
    #e7edf6;
  background-size: 28px 28px;
  border: 1px solid #d4dfed;
}

.map-box span {
  padding: 10px 16px;
  background: rgba(255,255,255,.86);
  border: 1px solid #cbd8e8;
}

.comments {
  margin-top: 40px;
}

.comments h2 {
  margin: 0 0 18px;
  color: #333;
  font-size: 18px;
  font-weight: 500;
}

.comments form {
  width: min(620px, 100%);
}

.comments label {
  display: block;
  margin-bottom: 14px;
  color: #333;
}

.comments input,
.comments textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 12px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font: inherit;
}

.comments button {
  padding: 9px 18px;
  border: 1px solid #adadad;
  background: #fff;
  color: #333;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px 22px;
    padding-block: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 22px;
    margin-inline: 0;
    padding-inline-start: 0;
  }

  .language {
    margin-inline-start: auto;
  }

  .articles,
  .contact-layout,
  .about-page {
    grid-template-columns: 1fr 1fr;
  }

  .products-page-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .product-grid a,
  .product-grid a:nth-child(n+7) {
    grid-column: span 2;
  }

  .about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1040px);
  }

  .brand {
    width: 92px;
    flex-basis: 92px;
  }

  .main-nav {
    font-size: 14px;
  }

  .hero-track {
    height: 280px;
  }

  .hero-control {
    width: 34px;
    height: 34px;
    font-size: 26px;
  }

  .hero-prev {
    right: 14px;
  }

  .hero-next {
    left: 14px;
  }

  .articles,
  .contact-layout,
  .about-page {
    grid-template-columns: 1fr;
  }

  .products-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 14px;
  }

  .news-list article {
    grid-template-columns: 1fr;
  }

  .articles {
    padding-block: 42px;
  }

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

  .product-grid a,
  .product-grid a:nth-child(n+7) {
    grid-column: span 1;
  }

  .agency h2 {
    font-size: 24px;
  }

  .about {
    gap: 24px;
    padding-block: 52px 24px;
  }

  .about h2 {
    font-size: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-block: 18px;
  }
}
