html {
  height: 100%;
  margin: 0;
  overflow-y: scroll;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: #797979;
  font-family: Raleway, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 23px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: #b2dd4c;
  text-decoration: none;
  transition: color 0.15s ease-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: #202020;
  font-family: Raleway, sans-serif;
  word-wrap: break-word;
}

h1 {
  font-size: 48px;
  line-height: 1.097;
}

h2 {
  font-size: 34px;
  line-height: 1.284;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
}

.seo-page-title {
  color: #202020;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.284;
}

#sd-back-to-top {
  position: fixed;
  right: 46px;
  bottom: 65px;
  z-index: 10000;
  width: 46px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
}

#sd-back-to-top > span {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 3px;
  box-sizing: border-box;
  background: #373737;
  color: #fff;
  font-size: 12px;
  line-height: 43px;
  text-align: center;
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 64px, 1240px);
  min-height: 92px;
  margin: 0 auto;
  gap: 32px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img {
  display: block;
  width: 139px;
  height: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 20px;
  border-radius: 3px;
  color: #797979;
  font-family: Raleway, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.site-nav li.is-active a,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: #9e2064;
}

.site-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 10px;
  background: transparent;
  cursor: pointer;
}

.site-nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px auto;
  background: #000;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

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

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 208px;
  min-height: 55px;
  padding: 0 32px;
  border: 2px solid #e6e6e6;
  color: #707070;
  font-family: Raleway, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button-primary {
  border-color: #9e2064;
  background: #9e2064;
  color: #fff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #9e2064;
  background: #9e2064;
  color: #fff;
}

.site-footer {
  padding: 32px 24px 42px;
  background: #212121;
  color: #999;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1024px) {
  .site-header__inner {
    position: relative;
    width: min(100% - 48px, 720px);
    min-height: 100px;
  }

  .site-logo {
    margin: 0 auto;
  }

  .site-nav-toggle {
    position: absolute;
    right: 0;
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: block;
    padding: 0 0 8px;
  }

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid #eaeaea;
    color: #8d8d8d;
    font-size: 13px;
    line-height: 26px;
  }

  .site-nav li.is-active a,
  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: #000;
    background: transparent;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    width: calc(100% - 48px);
  }
}

.portfolio-grid-section {
  width: min(100% - 64px, 1210px);
  margin: 0 auto;
  padding: 0 0 52px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.portfolio-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #111;
}

.portfolio-card a {
  position: relative;
  display: block;
  color: #fff;
  text-decoration: none;
}

.portfolio-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.portfolio-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(158, 32, 100, 0.9);
  opacity: 0;
  text-align: center;
  transition: opacity 0.2s ease;
}

.portfolio-card:hover img,
.portfolio-card:focus-within img {
  transform: scale(1.04);
  opacity: 0.35;
}

.portfolio-card:hover .portfolio-card__body,
.portfolio-card:focus-within .portfolio-card__body {
  opacity: 1;
}

.portfolio-card h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

.portfolio-card__body span {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.portfolio-grid__cta {
  margin: 42px auto 0;
}

.client-logo-section {
  width: min(100% - 64px, 1100px);
  margin: 0 auto;
  padding: 32px 0 52px;
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.client-logo-grid a {
  display: grid;
  min-height: 86px;
  place-items: center;
  opacity: 0.65;
  transition: opacity 0.18s ease;
}

.client-logo-grid a:hover,
.client-logo-grid a:focus-visible {
  opacity: 1;
}

.client-logo-grid img {
  display: block;
  max-width: 150px;
  max-height: 64px;
  width: auto;
  height: auto;
}

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

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

@media (max-width: 600px) {
  .portfolio-grid-section,
  .client-logo-section {
    width: calc(100% - 40px);
  }

  .portfolio-card__body {
    position: static;
    opacity: 1;
    background: #9e2064;
  }

  .portfolio-card:hover img,
  .portfolio-card:focus-within img {
    transform: none;
    opacity: 1;
  }

  .client-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
