:root {
  --business-green: #23c366;
  --business-green-dark: #15984e;
  --business-ink: #171a1f;
  --business-muted: #697386;
  --business-line: #e5e9ef;
  --business-surface: #fff;
  --business-bg: #f5f5f5;
}

body:has(.business-editor),
body:has(.company-page) {
  background: #f5f5f5;
}

.main-block:has(> .main-container > .business-editor),
.main-block:has(> .main-container > .company-page) {
  align-items: stretch;
  min-height: calc(100vh - 120px);
  padding-right: 0;
  padding-left: 0;
  background: #f5f5f5;
}

.main-container:has(> .business-editor),
.main-container:has(> .company-page) {
  max-width: none;
  margin-bottom: 0;
  padding-bottom: 0;
  overflow: visible;
  background: #f5f5f5;
}

.business-editor,
.company-page {
  width: 100%;
  min-height: calc(100vh - 80px);
  padding: 42px 20px 80px;
  background: #f5f5f5;
  color: var(--business-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.business-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.business-editor__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 164px;
  margin-bottom: 22px;
  padding: 26px 26px 26px 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .72) 42%, rgba(0, 0, 0, .08) 72%),
    url("../img/business-profile/business-header.webp") center / cover no-repeat;
  box-shadow: 0 10px 32px rgba(23, 26, 31, .12);
  overflow: hidden;
}

.business-editor__header > div {
  min-width: 0;
  max-width: 650px;
  margin-left: -400px;
}

.business-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #58dc8f;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.business-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--business-green);
  box-shadow: 0 0 0 4px rgba(35, 195, 102, .12);
}

.business-editor__header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.business-editor__header p {
  max-width: 680px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.55;
}

.business-editor__header .business-button {
  min-height: 44px;
  padding-inline: 18px;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .94);
  color: #171a1f;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.business-editor__header .business-button:hover {
  border-color: #fff;
  background: #fff;
  color: var(--business-green-dark);
}

.business-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--business-green);
  border-radius: 10px;
  background: var(--business-green);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: .18s ease;
}

.business-button:hover {
  border-color: var(--business-green-dark);
  background: var(--business-green-dark);
  color: #fff;
}

.business-button--light {
  flex: 0 0 auto;
  border-color: var(--business-line);
  background: #fff;
  color: var(--business-ink);
}

.business-button--light:hover {
  border-color: var(--business-green);
  background: #effbf4;
  color: var(--business-green-dark);
}

.business-alert {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid;
  border-radius: 12px;
  line-height: 1.5;
}

.business-alert--success { border-color: #a7e7c1; background: #effbf4; color: #116b39; }
.business-alert--error { border-color: #f0b7b7; background: #fff4f4; color: #8f2626; }
.business-alert ul { margin: 8px 0 0 20px; }

.business-form {
  display: grid;
  gap: 20px;
}

.business-form-card,
.business-publish,
.company-card,
.company-hero {
  border: 1px solid var(--business-line);
  border-radius: 16px;
  background: var(--business-surface);
  box-shadow: 0 8px 30px rgba(23, 26, 31, .035);
}

.business-form-card { padding: 28px; }

.business-form-card__heading {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}

.business-form-card__heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 9px;
  background: #eaf9f0;
  color: var(--business-green-dark);
  font-size: 12px;
  font-weight: 800;
}

.business-form-card__heading h2,
.company-card h2 {
  margin: 0;
  color: var(--business-ink);
  font-size: 21px;
  line-height: 1.35;
}

.business-form-card__heading p {
  margin: 4px 0 0;
  color: var(--business-muted);
  font-size: 13px;
}

.business-media-grid {
  position: relative;
  display: block;
  padding-bottom: 58px;
}

.business-upload--cover {
  grid-area: cover;
}

.business-upload--logo {
  grid-area: logo;
}

.business-brand-card {
  overflow: hidden;
}

.business-brand-card .business-form-card__heading {
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0f3;
}

.business-brand-card .business-upload {
  position: relative;
  padding: 16px;
  border: 1px solid #e4e8ed;
  border-radius: 14px;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.business-brand-card .business-upload--cover {
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #eef1f4;
}

.business-brand-card .business-upload--cover:hover,
.business-brand-card .business-upload--cover:focus-within,
.business-brand-card .business-upload--cover.is-dragging {
  background: #e9f6ee;
  box-shadow: 0 0 0 3px rgba(35, 195, 102, .15);
}

.business-brand-card .business-upload--cover > span {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(5px);
}

.business-brand-card .business-upload--cover > span::after,
.business-brand-card .business-upload--logo > span {
  display: none;
}

.business-brand-card .business-upload--cover > small {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  min-height: 36px;
  margin: 0;
  padding: 8px 12px;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(0, 0, 0, .46);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(5px);
}

.business-brand-card .business-upload--logo {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 24px;
  display: block;
  width: 150px;
  height: 150px;
  padding: 5px;
  border: 1px solid #dfe4ea;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 24, 32, .18);
}

.business-brand-card .business-upload--logo:hover,
.business-brand-card .business-upload--logo:focus-within,
.business-brand-card .business-upload--logo.is-dragging {
  border-color: var(--business-green);
  background: #fff;
  box-shadow: 0 8px 28px rgba(18, 24, 32, .2), 0 0 0 4px rgba(35, 195, 102, .12);
}

.business-brand-card .business-upload--logo > small {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  left: 10px;
  min-height: 30px;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, .54);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity .18s ease;
}

.business-brand-card .business-upload--logo:hover > small,
.business-brand-card .business-upload--logo:focus-within > small,
.business-brand-card .business-upload--logo.is-dragging > small {
  color: #fff;
  opacity: 1;
}

.business-brand-card .business-upload:hover,
.business-brand-card .business-upload:focus-within,
.business-brand-card .business-upload.is-dragging {
  border-color: rgba(35, 195, 102, .55);
  background: #f7fcf9;
  box-shadow: 0 0 0 4px rgba(35, 195, 102, .07);
}

.business-brand-card .business-upload.is-dragging {
  border-style: dashed;
  transform: translateY(-1px);
}

.business-brand-card .business-upload > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
}

.business-brand-card .business-upload > span::after {
  color: #929ba8;
  font-size: 11px;
  font-weight: 500;
}

.business-brand-card .business-upload--cover > span::after {
  content: "1600 × 500";
}

.business-brand-card .business-upload--logo > span::after {
  content: "1 : 1";
}

.business-upload {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  color: var(--business-ink);
  font-size: 14px;
  font-weight: 700;
}

.business-upload img,
.business-upload b {
  width: 100%;
  height: 180px;
  border: 1px solid #dfe4ea;
  border-radius: 12px;
  background: #f1f3f5;
  object-fit: cover;
}

.business-brand-card .business-upload--cover > img,
.business-brand-card .business-upload--cover:not(:has(img))::before {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 14px;
}

.business-brand-card .business-upload--cover > img {
  display: block;
  object-fit: cover;
}

.business-upload--cover:not(:has(img))::before {
  content: "Добавьте обложку компании";
  display: flex;
  width: 100%;
  height: 180px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd3dd;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(35, 195, 102, .06), rgba(35, 195, 102, 0)),
    #f3f5f6;
  color: #7c8694;
  font-size: 13px;
  font-weight: 600;
}

.business-upload--logo img,
.business-upload--logo b {
  display: flex;
  width: 150px;
  height: 150px;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: 18px;
  background: #fff;
  color: var(--business-green-dark);
  font-size: 48px;
  object-fit: contain;
}

.business-brand-card .business-upload--logo > img,
.business-brand-card .business-upload--logo > b,
.business-brand-card .business-upload--logo > svg {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 17px;
  background: #f3f5f6;
  object-fit: cover;
}

.business-brand-card .business-upload--logo > svg {
  padding: 28px;
}

.business-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.business-upload small,
.business-fields small {
  color: #8a94a3;
  font-size: 12px;
  font-weight: 400;
}

.business-brand-card .business-upload > small {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 7px 10px;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  background: #fff;
  color: #687382;
  text-align: center;
  transition: .18s ease;
}

.business-brand-card .business-upload:hover > small,
.business-brand-card .business-upload.is-dragging > small {
  border-color: rgba(35, 195, 102, .4);
  color: var(--business-green-dark);
}

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

.business-fields label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.business-fields label > span {
  color: #303743;
  font-size: 13px;
  font-weight: 750;
}

.business-fields input,
.business-fields textarea,
.business-fields select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #dce2e8;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--business-ink);
  font: inherit;
  font-size: 14px;
  transition: .18s ease;
}

.business-fields textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
.business-fields input:focus,
.business-fields textarea:focus,
.business-fields select:focus { border-color: var(--business-green); box-shadow: 0 0 0 4px rgba(35, 195, 102, .1); }
.business-field--wide { grid-column: 1 / -1; }

.business-slug {
  display: flex;
  min-width: 0;
  align-items: center;
  border: 1px solid #dce2e8;
  border-radius: 9px;
  overflow: hidden;
}

.business-slug:focus-within { border-color: var(--business-green); box-shadow: 0 0 0 4px rgba(35, 195, 102, .1); }
.business-slug em { padding-left: 13px; color: #8993a1; font-size: 13px; font-style: normal; white-space: nowrap; }
.business-slug input { min-width: 90px; border: 0; box-shadow: none !important; }

.business-publish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 28px;
}

.business-publish strong { display: block; margin-bottom: 4px; font-size: 15px; }
.business-publish p { margin: 0; color: var(--business-muted); font-size: 13px; }
.business-switch { position: relative; flex: 0 0 48px; height: 28px; cursor: pointer; }
.business-switch input { position: absolute; opacity: 0; }
.business-switch span { position: absolute; inset: 0; border-radius: 20px; background: #cdd3da; transition: .2s ease; }
.business-switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: .2s ease; }
.business-switch input:checked + span { background: var(--business-green); }
.business-switch input:checked + span::after { transform: translateX(20px); }
.business-form__actions { display: flex; justify-content: flex-end; padding-top: 4px; }

body.business-crop-open {
  overflow: hidden;
}

.business-crop-modal[hidden] {
  display: none;
}

.business-crop-modal {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.business-crop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, .76);
  backdrop-filter: blur(5px);
}

.business-crop-modal__dialog {
  position: relative;
  display: grid;
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 17px;
  overflow: auto;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.business-crop-modal__dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.business-crop-modal__dialog > header span {
  display: block;
  margin-bottom: 4px;
  color: var(--business-green-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.business-crop-modal__dialog h2 {
  margin: 0;
  color: var(--business-ink);
  font-size: 22px;
}

.business-crop-modal__dialog > header > button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--business-line);
  border-radius: 9px;
  background: #fff;
  color: #606a78;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.business-crop-modal__stage {
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #161a20;
}

.business-crop-modal__stage img {
  display: block;
  max-width: 100%;
}

.business-crop-modal__dialog > p {
  margin: 13px 0 18px;
  color: var(--business-muted);
  font-size: 13px;
}

.business-crop-modal__dialog > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.company-page { padding-top: 30px; }
.company-hero { overflow: hidden; }
.company-cover { height: 250px; background: linear-gradient(125deg, #152c20, #24a75c 55%, #8ee2b2); background-position: center; background-size: cover; }
.company-hero__body { display: flex; gap: 24px; padding: 0 32px 30px; }
.company-logo { display: flex; width: 150px; height: 150px; flex: 0 0 150px; align-items: center; justify-content: center; margin-top: -55px; border: 5px solid #fff; border-radius: 22px; overflow: hidden; background: #effbf4; box-shadow: 0 8px 28px rgba(23,26,31,.12); color: var(--business-green-dark); font-size: 56px; font-weight: 800; }
.company-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.company-identity { min-width: 0; flex: 1; padding-top: 24px; }
.company-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.company-title-row h1 { margin: 0 0 5px; color: var(--business-ink); font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.035em; }
.company-title-row > div > a { color: #8a94a3; font-size: 13px; text-decoration: none; }
.company-tagline { max-width: 760px; margin: 16px 0 0; color: #3f4754; font-size: 17px; line-height: 1.55; }
.company-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.company-facts span { padding: 7px 11px; border-radius: 8px; background: #f2f4f6; color: #4e5866; font-size: 12px; font-weight: 650; }
.company-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 20px; align-items: start; }
.company-card { padding: 26px; }
.company-card h2 { margin-bottom: 18px; }
.company-description { color: #4a5360; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.company-sidebar { display: grid; gap: 20px; }
.company-links { display: grid; }
.company-links a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf0f3; color: #303743; font-size: 14px; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.company-links a:first-child { padding-top: 0; }
.company-links a:last-child { border-bottom: 0; padding-bottom: 0; }
.company-links a:hover { color: var(--business-green-dark); }
.company-links p { margin: 0; color: var(--business-muted); font-size: 13px; }
.company-owner span,
.company-owner small { display: block; color: var(--business-muted); font-size: 12px; }
.company-owner a { display: inline-block; margin: 7px 0; color: var(--business-ink); font-size: 16px; font-weight: 750; text-decoration: none; }
.company-owner a:hover { color: var(--business-green-dark); }

.company-profile-page {
  width: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.company-profile-banner.edit-own-profile-block {
  position: relative;
  display: block;
  width: 100%;
  height: 240px;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #17241c, #27895a 58%, #86d6a8);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -70px 90px rgba(0, 0, 0, .12);
}

.company-profile-banner.company-profile-banner--embedded {
  width: calc(100% + 48px);
  height: 190px;
  min-height: 190px;
  margin: -24px -24px 0;
  flex: 0 0 auto;
  border-radius: 17px 17px 0 0;
  box-shadow: inset 0 -55px 70px rgba(0, 0, 0, .1);
}

.profile-community-main:has(.company-profile-banner--embedded) .freelancer-info-content1 {
  padding-top: 0;
  padding-right: 190px;
}

.profile-community-main:has(.company-profile-banner--embedded) .profile-community-main__owner-action,
.profile-community-main:has(.company-profile-banner--embedded) .profile-actions-container {
  top: 214px;
}

.company-profile-banner__edit.edit-own-profile-button {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  background: rgba(0, 0, 0, .48);
  color: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
  backdrop-filter: blur(6px);
}

.company-profile-banner__edit.edit-own-profile-button:hover {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(0, 0, 0, .62);
  color: #fff;
}

.company-profile-info-block.freelancer-info-block {
  margin-top: 50px;
}

.company-profile-heading .company-profile-logo {
  flex: 0 0 168px;
  border: 1px solid #e2e6eb;
  background: #f1f3f5;
  box-shadow: 0 8px 24px rgba(23, 26, 31, .08);
}

.company-profile-logo > span {
  color: var(--business-green-dark);
  font-size: 54px;
  font-weight: 800;
}

.company-profile-heading .freelancer-name {
  font-size: 26px;
}

.company-profile-heading .freelancer-position {
  max-width: 580px;
}

.company-profile-about {
  width: 100%;
}

.company-profile-tabs {
  width: 100%;
  margin-top: 26px;
  overflow: hidden;
  border-bottom: 1px solid #e6e8ec;
}

.company-profile-tabs__list {
  display: flex;
  min-width: max-content;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.company-profile-tabs__list::-webkit-scrollbar {
  display: none;
}

.company-profile-tabs__item {
  position: relative;
  min-height: 48px;
  padding: 0 1px;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  transition: color .18s ease;
}

.company-profile-tabs__item::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #177de5;
  content: "";
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .18s ease, transform .18s ease;
}

.company-profile-tabs__item:hover,
.company-profile-tabs__item:focus-visible,
.company-profile-tabs__item.is-active {
  color: #111827;
}

.company-profile-tabs__item:focus-visible {
  border-radius: 6px;
  outline: 2px solid rgba(23, 125, 229, .25);
  outline-offset: -2px;
}

.company-profile-tabs__item.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.company-profile-tabs__tooltip[hidden] {
  display: none;
}

.company-profile-tabs__tooltip {
  --company-tooltip-arrow-left: 50%;
  position: fixed;
  z-index: 1700;
  display: flex;
  width: min(400px, calc(100vw - 24px));
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 12px 14px 18px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  visibility: hidden;
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .15);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.company-profile-tabs__tooltip.is-positioned {
  visibility: visible;
}

.company-profile-tabs__tooltip > button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: transparent;
  color: #697386;
  cursor: pointer;
}

.company-profile-tabs__tooltip > button:hover,
.company-profile-tabs__tooltip > button:focus-visible {
  background: #f2f4f7;
  color: #111827;
}

.company-profile-tabs__tooltip > button:focus-visible {
  outline: 2px solid rgba(23, 125, 229, .28);
}

.company-profile-tabs__tooltip > i {
  position: absolute;
  top: -7px;
  left: var(--company-tooltip-arrow-left);
  width: 14px;
  height: 14px;
  border-top: 1px solid #dfe3e8;
  border-left: 1px solid #dfe3e8;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.company-profile-about .project-to-do-description {
  white-space: normal;
  overflow-wrap: anywhere;
}

.company-profile-about h2:not(:first-child) {
  margin-top: 28px;
}

.company-profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-profile-sidebar.freelancer-rating-combo {
  display: grid;
  width: 100%;
  gap: 16px;
}

.company-profile-side-card {
  width: 100%;
  padding: 22px;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(23, 26, 31, .045);
}

.company-profile-side-card h2 {
  margin: 0 0 18px;
  color: #222325;
  font-family: var(--font4);
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 800px) {
  .business-editor, .company-page { padding: 25px 14px 55px; }
  .business-editor__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    min-height: 190px;
    padding: 22px;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .75) 58%, rgba(0, 0, 0, .28) 100%),
      url("../img/business-profile/business-header.webp") 66% center / cover no-repeat;
  }
  .business-editor__header > div { margin-left: 0; }
  .business-editor__header .business-button { align-self: flex-start; }
  .business-media-grid {
    padding-bottom: 50px;
  }
  .business-fields, .company-layout { grid-template-columns: 1fr; }
  .business-field--wide { grid-column: auto; }
  .business-brand-card .business-upload--cover,
  .business-brand-card .business-upload--cover > img,
  .business-brand-card .business-upload--cover:not(:has(img))::before { height: 210px; min-height: 210px; }
  .business-brand-card .business-upload--logo { left: 18px; width: 126px; height: 126px; }
  .company-cover { height: 180px; }
  .company-hero__body { display: block; padding: 0 20px 24px; }
  .company-logo { width: 112px; height: 112px; margin-top: -45px; font-size: 42px; }
  .company-identity { padding-top: 16px; }
  .company-title-row { flex-direction: column; }
  .company-profile-banner.edit-own-profile-block {
    height: 210px;
    margin-top: 12px;
    border-radius: 8px;
  }
  .company-profile-banner.company-profile-banner--embedded {
    height: 170px;
    min-height: 170px;
    margin: -24px -24px 0;
    border-radius: 17px 17px 0 0;
  }
  .profile-community-main:has(.company-profile-banner--embedded) .profile-community-main__owner-action,
  .profile-community-main:has(.company-profile-banner--embedded) .profile-actions-container {
    top: 194px;
  }
  .company-profile-info-block.freelancer-info-block { margin-top: 28px; }
  .company-profile-heading .company-profile-logo { flex-basis: 100px; }
  .company-profile-heading .freelancer-name { font-size: 22px; }
}

@media (max-width: 520px) {
  .business-editor__header { padding: 19px 16px; border-radius: 14px; }
  .business-editor__header h1 { font-size: 25px; }
  .business-editor__header .business-button { width: 100%; }
  .business-form-card, .company-card { padding: 20px; }
  .business-crop-modal { padding: 10px; }
  .business-crop-modal__dialog { max-height: calc(100vh - 20px); padding: 17px; }
  .business-crop-modal__stage { min-height: 280px; }
  .business-crop-modal__dialog > footer .business-button { flex: 1; padding-inline: 12px; }
  .business-slug em { display: none; }
  .business-publish { align-items: flex-start; padding: 20px; }
  .business-form__actions .business-button { width: 100%; }
  .company-profile-banner.edit-own-profile-block { height: 170px; }
  .company-profile-banner.company-profile-banner--embedded {
    height: 140px;
    min-height: 140px;
    margin: -18px -18px 0;
    width: calc(100% + 36px);
    border-radius: 15px 15px 0 0;
  }
  .profile-community-main:has(.company-profile-banner--embedded) .freelancer-info-content1 {
    padding-right: 0;
  }
  .company-profile-banner__edit.edit-own-profile-button {
    top: 12px;
    right: 12px;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 12px;
  }
  .company-profile-side-card { padding: 18px; }
}

@media (max-width: 768px) {
  .profile-community-main:has(.company-profile-banner--embedded) .company-profile-banner--embedded {
    order: -2;
    width: calc(100% + 36px);
    margin: -18px -18px 0;
    border-radius: 15px 15px 0 0;
  }

  .profile-community-main:has(.company-profile-banner--embedded) .profile-community-main__owner-action,
  .profile-community-main:has(.company-profile-banner--embedded) .profile-actions-container {
    order: -1;
  }

  .profile-community-main:has(.company-profile-banner--embedded) .freelancer-info-content1 {
    padding-right: 0;
  }
}

.company-profile-private-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #f0d58a;
    border-radius: 10px;
    background: #fff9e8;
    color: #694f0b;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.company-profile-private-notice a {
    flex: 0 0 auto;
    color: #3155cc;
    font-weight: 600;
    text-decoration: none;
}

.company-profile-private-notice a:hover {
    text-decoration: underline;
}

@media (max-width: 575px) {
    .company-profile-private-notice {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
    }
}
.company-rating-team {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #e7e9ec;
    border-radius: 12px;
    background: #fff;
    font-family: Inter, sans-serif;
}

.company-rating-team__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.company-rating-team__heading h3 {
    margin: 0;
    color: #25282c;
    font: 700 15px/1.25 Inter, sans-serif;
}

.company-rating-team__heading > span {
    display: grid;
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    border-radius: 999px;
    place-items: center;
    color: #68717b;
    background: #f0f2f4;
    font: 650 11px Inter, sans-serif;
}

.company-rating-team__people {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 16px;
}

.company-rating-team__person {
    width: 64px;
    flex: 0 0 64px;
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 7px;
    color: #35393e;
    text-align: center;
    text-decoration: none;
}

.company-rating-team__avatar {
    position: relative;
    display: block;
    width: 52px;
    height: 52px;
}

.company-rating-team__avatar > img {
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #e1e5e9;
    transition: box-shadow .16s ease, transform .16s ease;
}

.company-rating-team__person:hover .company-rating-team__avatar > img,
.company-rating-team__person:focus-visible .company-rating-team__avatar > img {
    box-shadow: 0 0 0 2px #23c366;
    transform: translateY(-1px);
}

.company-rating-team__person > strong {
    width: 100%;
    overflow: hidden;
    font: 600 11px/1.3 Inter, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-rating-team__tooltip {
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 10px);
    left: 50%;
    width: max-content;
    max-width: 190px;
    padding: 7px 9px;
    border-radius: 7px;
    background: #202327;
    color: #fff;
    font: 500 11px/1.35 Inter, sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .15s ease, transform .15s ease;
}

.company-rating-team__tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 5px solid transparent;
    border-top-color: #202327;
    transform: translateX(-50%);
}

.company-rating-team__person:hover .company-rating-team__tooltip,
.company-rating-team__person:focus-visible .company-rating-team__tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 900px) {
    .company-rating-team__people {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    }
}

/* Public company page: uses the same App surface as a personal profile. */
body.fiwork-public-company-profile-page .company-profile-banner.edit-own-profile-block {
    width: 100%;
    height: 220px;
    margin: 0 0 24px;
    border-radius: 26px;
    box-shadow: inset 0 -72px 96px rgba(0, 0, 0, .12);
}

body.fiwork-public-company-profile-page .company-profile-banner.company-profile-banner--embedded {
    width: calc(100% + 60px);
    height: 200px;
    min-height: 200px;
    margin: -30px -30px 0;
    border-radius: 26px 26px 0 0;
}

body.fiwork-public-company-profile-page .profile-community-main:has(.company-profile-banner--embedded) .profile-community-main__owner-action,
body.fiwork-public-company-profile-page .profile-community-main:has(.company-profile-banner--embedded) .profile-actions-container {
    top: 224px;
}

body.fiwork-public-company-profile-page .company-profile-private-notice,
body.fiwork-public-company-profile-page .edit-own-profile-block:not(.company-profile-banner) {
    margin: 0 0 24px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
}

body.fiwork-public-company-profile-page .company-profile-heading .company-profile-logo > span {
    color: #0188ff;
    font-size: 44px;
}

body.fiwork-public-company-profile-page .company-profile-sidebar.freelancer-rating-combo {
    gap: 14px;
}

body.fiwork-public-company-profile-page .company-profile-side-card h2 {
    margin-bottom: 16px;
    color: #202228;
    font-family: Inter, var(--font-family), sans-serif;
    font-size: 18px;
    font-weight: 750;
}

body.fiwork-public-company-profile-page .company-links a {
    min-height: 46px;
    align-items: center;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    color: #39414c;
    background: #f3f5f7;
}

body.fiwork-public-company-profile-page .company-links a:hover {
    color: #0188ff;
    background: #e9f4ff;
}

body.fiwork-public-company-profile-page .company-owner a {
    color: #202228;
}

@media (max-width: 768px) {
    body.fiwork-public-company-profile-page .company-profile-banner.edit-own-profile-block {
        height: 170px;
        margin-bottom: 18px;
        border-radius: 20px;
    }

    body.fiwork-public-company-profile-page .company-profile-banner.company-profile-banner--embedded {
        width: calc(100% + 40px);
        height: 160px;
        min-height: 160px;
        margin: -20px -20px 0;
        border-radius: 20px 20px 0 0;
    }

    body.fiwork-public-company-profile-page .profile-community-main:has(.company-profile-banner--embedded) .profile-community-main__owner-action,
    body.fiwork-public-company-profile-page .profile-community-main:has(.company-profile-banner--embedded) .profile-actions-container {
        top: auto;
    }
}

@media (min-width: 769px) {
    body.fiwork-public-company-profile-page .profile-community-main:has(.company-profile-banner--embedded) .freelancer-info-content1 {
        padding-right: 260px;
    }
}
