.smgf {
  --smgf-accent: var(--md-sys-color-primary, #5a3ca8);
  --smgf-muted: color-mix(in oklch, currentColor 64%, transparent);
  --smgf-line: color-mix(in oklch, currentColor 14%, transparent);
  --smgf-hover: color-mix(in oklch, currentColor 7%, transparent);
  color: inherit;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}

.smgf.smgf *,
.smgf.smgf *::before,
.smgf.smgf *::after {
  box-sizing: border-box;
}

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

.smgf.smgf img {
  display: block;
  max-width: none;
}

.smgf.smgf ul,
.smgf.smgf li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.smgf.smgf h2,
.smgf.smgf p {
  margin: 0;
}

.smgf.smgf .smgf__main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 40px 40px;
  border-top: 1px solid var(--smgf-line);
}

.smgf.smgf .smgf__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
}

.smgf.smgf .smgf__intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
}

.smgf.smgf .smgf__logo {
  align-self: flex-start;
}

.smgf.smgf .smgf__logo img {
  width: auto;
  height: 30px;
}

.smgf.smgf .smgf__logo-on-dark {
  display: none !important;
}

:root[data-theme="dark"] .smgf .smgf__logo-on-light,
.dark .smgf .smgf__logo-on-light {
  display: none !important;
}

:root[data-theme="dark"] .smgf .smgf__logo-on-dark,
.dark .smgf .smgf__logo-on-dark {
  display: block !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .smgf--auto-dark .smgf__logo-on-light {
    display: none !important;
  }

  :root:not([data-theme="light"]) .smgf--auto-dark .smgf__logo-on-dark {
    display: block !important;
  }
}

.smgf.smgf .smgf__title {
  margin: 0;
  color: inherit;
  font-size: clamp(22px, 1.2rem + 0.6vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.smgf.smgf .smgf__lead {
  margin: 0;
  color: var(--smgf-muted);
  font-family: inherit;
  font-size: 15px;
}

.smgf.smgf .smgf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smgf.smgf .smgf__btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--smgf-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.smgf.smgf .smgf__btn:hover {
  background: var(--smgf-hover);
}

.smgf.smgf .smgf__groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.smgf.smgf .smgf__group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
}

.smgf.smgf .smgf__label {
  display: flex;
  flex: 1 1 200px;
  flex-direction: column;
  gap: 4px;
  max-width: 240px;
}

.smgf.smgf .smgf__name {
  color: var(--smgf-accent);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.smgf.smgf .smgf__text {
  color: var(--smgf-muted);
  font-size: 14px;
}

.smgf.smgf .smgf__items {
  display: flex;
  flex: 999 1 560px;
  flex-wrap: wrap;
  gap: 14px 24px;
  min-width: 0;
}

.smgf.smgf .smgf__items li {
  flex: 0 1 220px;
}

.smgf.smgf .smgf__item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
}

.smgf.smgf .smgf__item img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: transform 0.25s;
}

.smgf.smgf .smgf__item:hover img {
  transform: scale(1.05);
}

.smgf.smgf .smgf__item > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.smgf.smgf .smgf__iname {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.smgf.smgf .smgf__item:hover .smgf__iname {
  color: var(--smgf-accent);
}

.smgf.smgf .smgf__itext {
  color: var(--smgf-muted);
  font-size: 13px;
  line-height: 1.35;
}

.smgf.smgf .smgf__legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 20px 4px;
  border-top: 1px solid var(--smgf-line);
}

.smgf.smgf .smgf__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 14px;
  font-weight: 600;
}

.smgf.smgf .smgf__links a:hover,
.smgf.smgf .smgf__links button:hover {
  color: var(--smgf-accent);
}

.smgf.smgf .smgf__links button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.smgf.smgf .smgf__copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 24px;
  color: var(--smgf-muted);
  font-size: 13px;
}

.smgf.smgf .smgf__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.smgf.smgf .smgf__contact a:hover {
  color: var(--smgf-accent);
}

.smgf.smgf a:focus-visible,
.smgf.smgf button:focus-visible {
  outline: 2px solid var(--smgf-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .smgf.smgf .smgf__items li {
    flex-basis: 100%;
  }

  .smgf.smgf .smgf__label {
    max-width: none;
  }
}

@media (min-width: 1440px) {
  .smgf.smgf .smgf__items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
