.services {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

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

.cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

#home-page-footer {
  width: 100%;
}

.cards-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.service-card {
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  border-radius: 2px;
  min-height: clamp(168px, 18vh, 298px);
  height: auto;
  padding: clamp(6px, 0.6vw, 10px);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: clamp(4px, 0.8vw, 10px);
  overflow: visible;
}

html[data-device-type="mobile"] .service-card,
html[data-device-type="minTablet"] .service-card,
html[data-device-type="tablet"] .service-card {
  gap: 6px;
}

html[data-device-type="mobile"] .cards-row:first-child > .service-card,
html[data-device-type="minTablet"] .cards-row:first-child > .service-card,
html[data-device-type="tablet"] .cards-row:first-child > .service-card {
  gap: 6px;
}

html[data-device-type="desktop2560"] .service-card {
  display: flex;
  padding: clamp(6px, 0.6vw, 10px);
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: clamp(6px, 0.9vw, 10px);
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 30px;
}

.cards-row:first-child > .service-card:first-child {
  display: flex;
  padding: 6px;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 30px;
  background: linear-gradient(
    165deg,
    var(--service-first-gradient-start) 4.85%,
    var(--service-first-gradient-middle) 29.86%,
    var(--service-first-gradient-end) 81.76%
  );
  box-shadow: 0 4px 4px 0 var(--service-first-shadow);
}

.cards-row:first-child > .service-card:nth-child(2) {
  display: flex;
  padding: 6px;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  border-radius: 30px;
  background: linear-gradient(
    167deg,
    var(--service-second-gradient-start) 3.31%,
    var(--service-second-gradient-middle) 35.49%,
    var(--service-second-gradient-end) 81.24%
  );
  box-shadow: 0 4px 4px 0 var(--service-second-shadow);
}

.cards-row:first-child > .service-card:nth-child(3) {
  display: flex;
  padding: 6px;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  border-radius: 30px;
  background: linear-gradient(
    170deg,
    var(--service-third-gradient-start) 3.21%,
    var(--service-third-gradient-middle) 33.39%,
    var(--service-third-gradient-end) 89.21%
  );
  box-shadow: 0 4px 4px 0 var(--service-third-shadow);
}

.cards-row:first-child > .service-card:nth-child(4) {
  display: flex;
  padding: 6px;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  border-radius: 30px;
  background: linear-gradient(
    164deg,
    var(--service-fourth-gradient-start) -0.77%,
    var(--service-fourth-gradient-middle) 35.94%,
    var(--service-fourth-gradient-end) 85.84%
  );
  box-shadow: 0 4px 4px 0 var(--service-fourth-shadow);
}

html[data-device-type="desktop2560"] .cards-row:first-child > .service-card {
  gap: 12px;
  align-self: stretch;
}

.service-card.service-card-accent .tool-body {
  color: var(--white);
}

#home-services-cards > .home-services-row {
  width: 100%;
  min-width: 0;
  align-self: stretch;
}

.tool-body {
  display: flex;
  height: auto;
  padding: 6px 4px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(2px);
  background: linear-gradient(
    152deg,
    var(--service-tool-gradient-start) 2.1%,
    var(--service-tool-gradient-middle) 44.84%,
    var(--service-tool-gradient-end) 90.11%
  );
  box-shadow: 0 4px 4px 0 var(--service-tool-shadow);
  border-radius: 24px;
  text-align: center;
  font-family: "Museo Sans Cyrl";
  font-size: 10px;
  font-weight: 400;
  color: var(--white);
}

#home-services .tool-body {
  display: flex;
  width: 100%;
  min-width: 0;
}

html[data-device-type="tablet"] .tool-body,
html[data-device-type="desktop"] .tool-body,
html[data-device-type="desktop1280"] .tool-body {
  font-size: 12px;
}

html[data-device-type="desktop1920"] .tool-body {
  font-size: 16px;
}

html[data-device-type="desktop2560"] .tool-body {
  font-size: 24px;
}

.cards-row:first-child > .service-card:nth-child(2) .tool-body {
  display: flex;
  height: auto;
  padding: 6px 4px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-radius: 24px;
  background: linear-gradient(
    143deg,
    var(--service-second-tool-gradient-start) 10.74%,
    var(--service-second-tool-gradient-middle) 58.63%,
    var(--service-second-tool-gradient-end) 95.27%
  );
  box-shadow: 0 4px 4px 0 var(--service-second-tool-shadow);
  backdrop-filter: blur(2px);
}

.cards-row:first-child > .service-card:nth-child(3) .tool-body {
  display: flex;
  height: auto;
  padding: 6px 4px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-radius: 24px;
  background: linear-gradient(
    150deg,
    var(--service-third-tool-gradient-start) 15.46%,
    var(--service-third-tool-gradient-middle) 48%,
    var(--service-third-tool-gradient-end) 97.28%
  );
  box-shadow: 0 4px 4px 0 var(--service-third-tool-shadow);
  backdrop-filter: blur(2px);
}

.cards-row:first-child > .service-card:nth-child(4) .tool-body {
  display: flex;
  height: auto;
  padding: 6px 4px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-radius: 24px;
  background: linear-gradient(
    149deg,
    var(--service-fourth-tool-gradient-start) 11.81%,
    var(--service-fourth-tool-gradient-middle) 45.16%,
    var(--service-fourth-tool-gradient-end) 85.97%
  );
  box-shadow: 0 4px 4px 0 var(--service-fourth-tool-shadow);
  backdrop-filter: blur(2px);
}

.help-section {
  display: flex;
  justify-content: flex-end;
}

html[data-device-type="desktop"] .help-section,
html[data-device-type="desktop1280"] .help-section,
html[data-device-type="desktop1920"] .help-section,
html[data-device-type="desktop2560"] .help-section {
  margin-top: 0;
}

html[data-device-type="mobile"] .help-section,
html[data-device-type="minTablet"] .help-section {
  padding-right: 24px;
}

.help-dropdown {
  position: relative;
  margin-left: auto;
}

.help-toggle {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid var(--transparent);
  background: var(--surface-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  margin-left: auto;
}

.help-toggle:hover {
  border-color: var(--primary-400);
}

.help-toggle img {
  display: block;
  width: 7px;
  height: 10px;
  object-fit: contain;
}

.help-toggle:hover img {
  filter: brightness(0) saturate(100%) invert(58%) sepia(98%) saturate(1352%)
    hue-rotate(162deg) brightness(97%) contrast(101%);
}

.help-dropdown[open] .help-toggle {
  background: var(--primary-400);
  border-color: var(--primary-400);
}

.help-dropdown[open] .help-toggle img {
  filter: none;
}

.help-toggle::-webkit-details-marker {
  display: none;
}

.help-list {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: var(--surface-dark);
  border: 1px solid var(--help-border);
  color: var(--white);
  width: 179.51px;
  min-width: 179.51px;
  display: grid;
  gap: 0;
  list-style: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  box-shadow: 0 0 0 1px var(--help-outline), 0 8px 20px var(--help-shadow);
}

.help-list::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 100%;
  width: 0;
  height: 0;
  border-left: 6px solid var(--transparent);
  border-right: 6px solid var(--transparent);
  border-top: 6px solid var(--surface-dark);
}

.help-list li {
  margin: 0;
  padding: 0;
}

.help-item {
  display: block;
  color: var(--help-item-muted);
  text-decoration: none;
}

.help-item-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin: 0 4px;
  height: 34px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

.help-list li:first-child .help-item-content {
  margin-top: 4px;
}

.help-list li:last-child .help-item-content {
  margin-bottom: 4px;
}

.help-item-icon {
  padding: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.help-item-icon img {
  width: 11px;
  height: 11px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(78%) sepia(0%) saturate(9%) hue-rotate(334deg) brightness(90%) contrast(93%);
}

.help-item-content span {
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--help-item-muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

.help-item:hover,
.help-item:hover .help-item-content span {
  color: var(--white);
}

.help-item:hover .help-item-content {
  background: var(--primary-400);
}

.help-item:hover .help-item-icon img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7499%) hue-rotate(57deg) brightness(102%) contrast(104%);
}

.help-dropdown:not([open]) .help-list {
  display: none;
}

.service-card.service-card-accent {
  border-radius: 2px;
  background: var(--service-accent-bg);
}

.service-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.service-card .service-card-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-height: 1440px) {
  .service-card .service-card-logo {
    width: 100px;
    height: 100px;
  }
}

.service-icon-wrap {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.service-icon-wrap .service-icon-slot {
  width: 29.039px;
  height: 29.039px;
  display: inline-block;
}

.service-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.badge {
  text-transform: none;
  margin-bottom: 6px;
}

.service-card .badge,
.service-card .service-title {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

.service-card .badge {
  flex-shrink: 0;
  font-size: clamp(16px, 1.25vw, 32px);
  font-weight: 600;
  color: var(--white);
}

.service-card .service-title {
  font-size: clamp(15px, 0.95vw, 22px);
  font-weight: 300;
  color: var(--white);
}

.service-card .service-title {
  margin: 0;
}

.service-body p {
  font-size: 14px;
  color: var(--text-light-muted);
}
