/* company/index.css: страница "О компании" в продуктовой стилистике marketplace */

:root {
  --company-bg: #ffffff;
  --company-surface: #ffffff;
  --company-surface-soft: #f6f8fc;
  --company-border: #e7edf5;
  --company-text: #1f2937;
  --company-muted: #60738f;
  --company-orange: #f36a21;
  --company-blue: #2563eb;
  --company-blue-soft: rgba(37, 99, 235, 0.1);
  --company-orange-soft: rgba(243, 106, 33, 0.12);
  --company-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
  --company-shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.gmt-company-page {
  margin: 0;
  background: var(--company-bg);
  color: var(--company-text);
  font-family: "Manrope", sans-serif;
}

.gmt-company-page #allrecords {
  overflow-x: clip;
  background: #ffffff;
}

/* Mobile nav shell for company page */
.gmt-company-page .tmenu-mobile {
  display: none;
}

@media (max-width: 980px) {
  .gmt-company-page .tmenu-mobile {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e7edf5;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  }

  .gmt-company-page .tmenu-mobile__container {
    min-height: 64px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .gmt-company-page .tmenu-mobile__burgerlogo {
    min-width: 0;
    max-width: calc(100% - 52px);
  }

  .gmt-company-page .tmenu-mobile__burgerlogo__title {
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
  }

  .gmt-company-page .t-menuburger {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid #d8e1ef;
    border-radius: 11px;
    background: #ffffff;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
  }

  .gmt-company-page .t-menuburger span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    border-radius: 2px;
    background: #0f172a !important;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  }

  .gmt-company-page .t-menuburger span:nth-child(1) { top: 12px; }
  .gmt-company-page .t-menuburger span:nth-child(2) { top: 18px; }
  .gmt-company-page .t-menuburger span:nth-child(3) { top: 18px; }
  .gmt-company-page .t-menuburger span:nth-child(4) { top: 24px; }

  .gmt-company-page .t-menuburger.t-menuburger-opened span:nth-child(1),
  .gmt-company-page .t-menuburger.t-menuburger-opened span:nth-child(4) {
    opacity: 0;
  }

  .gmt-company-page .t-menuburger.t-menuburger-opened span:nth-child(2) {
    transform: rotate(45deg);
  }

  .gmt-company-page .t-menuburger.t-menuburger-opened span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .gmt-company-page #nav1509995691 {
    position: fixed !important;
    left: 50%;
    right: auto;
    width: min(560px, calc(100vw - 20px));
    top: 64px;
    bottom: auto;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(420px, calc(100vh - 76px));
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1190;
    background: #ffffff !important;
    border: 1px solid #e2eaf4;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    transform: translate(-50%, 0);
    transform-origin: top center;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .gmt-company-page #nav1509995691.tmenu-mobile__menucontent_hidden {
    transform: translate(-50%, -10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .gmt-company-page #nav1509995691 .t454__maincontainer {
    height: auto !important;
    max-width: none;
    padding: 14px 12px 16px;
  }

  .gmt-company-page #nav1509995691 .t454__logowrapper,
  .gmt-company-page #nav1509995691 .t454__linewrapper {
    display: none;
  }

  .gmt-company-page #nav1509995691 .t454__leftwrapper,
  .gmt-company-page #nav1509995691 .t454__rightwrapper {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .gmt-company-page #nav1509995691 .t454__leftmenuwrapper,
  .gmt-company-page #nav1509995691 .t454__rightmenuwrapper {
    width: 100%;
  }

  .gmt-company-page #nav1509995691 .t454__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
  }

  .gmt-company-page #nav1509995691 .t454__list_item {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .gmt-company-page #nav1509995691 .t454__list_item a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #e2eaf4;
    background: #ffffff;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
  }

  .gmt-company-page #nav1509995691 .t454__list_item a:hover {
    background: #f8fbff;
    border-color: #d3dfef;
  }

  .gmt-company-page .gmt-company {
    padding-top: 96px;
  }

  .gmt-company-page.gmt-company-menu-open {
    overflow: hidden;
  }
}

/* Общий контейнер страницы */
.gmt-company {
  max-width: 1240px;
  margin: 0 auto;
  padding: 136px 20px 92px;
  display: grid;
  gap: 28px;
}

.gmt-company > * {
  min-width: 0;
}

.gmt-company a {
  color: inherit;
}

/* HERO */
.gmt-company-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  padding: 34px;
  border-radius: 32px;
  border: 1px solid var(--company-border);
  background:
    radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 42%),
    radial-gradient(circle at 8% 92%, rgba(243, 106, 33, 0.11) 0%, rgba(243, 106, 33, 0) 46%),
    linear-gradient(145deg, #ffffff 0%, #f7faff 55%, #ffffff 100%);
  box-shadow: var(--company-shadow);
  overflow: hidden;
}

.gmt-company-eyebrow {
  margin: 0;
  color: #4f6688;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gmt-company-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(2.05rem, 2.9vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gmt-company-lead {
  margin: 14px 0 0;
  color: var(--company-muted);
  font-size: 16px;
  line-height: 1.46;
  max-width: 64ch;
}

.gmt-company-hero__chips {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gmt-company-hero__chips li {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dce5f3;
  background: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  color: #4c617f;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
}

.gmt-company-hero__actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.gmt-company-btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gmt-company-btn--primary {
  background: linear-gradient(135deg, #f36a21 0%, #fb7a36 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(243, 106, 33, 0.3);
}

.gmt-company .gmt-company-btn--primary,
.gmt-company .gmt-company-btn--primary:visited,
.gmt-company .gmt-company-btn--primary:hover,
.gmt-company .gmt-company-btn--primary:active,
.gmt-company .gmt-company-btn--primary:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1;
}

#allrecords .gmt-company a.gmt-company-btn.gmt-company-btn--primary,
#allrecords .gmt-company a.gmt-company-btn.gmt-company-btn--primary:visited,
#allrecords .gmt-company a.gmt-company-btn.gmt-company-btn--primary:hover,
#allrecords .gmt-company a.gmt-company-btn.gmt-company-btn--primary:active,
#allrecords .gmt-company a.gmt-company-btn.gmt-company-btn--primary:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.gmt-company-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(243, 106, 33, 0.34);
}

.gmt-company-btn--ghost {
  border-color: #d4ddec;
  background: #ffffff;
  color: #111111;
}

.gmt-company-btn--ghost:hover {
  border-color: #b7c9e7;
  background: #f8fbff;
}

.gmt-company .gmt-company-btn--ghost,
.gmt-company .gmt-company-btn--ghost:visited,
.gmt-company .gmt-company-btn--ghost:hover,
.gmt-company .gmt-company-btn--ghost:active,
.gmt-company .gmt-company-btn--ghost:focus-visible {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}

#allrecords .gmt-company a.gmt-company-btn.gmt-company-btn--ghost,
#allrecords .gmt-company a.gmt-company-btn.gmt-company-btn--ghost:visited,
#allrecords .gmt-company a.gmt-company-btn.gmt-company-btn--ghost:hover,
#allrecords .gmt-company a.gmt-company-btn.gmt-company-btn--ghost:active,
#allrecords .gmt-company a.gmt-company-btn.gmt-company-btn--ghost:focus-visible {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}

.gmt-company-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24);
}

/* Визуальные карточки в hero */
.gmt-company-hero__visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: stretch;
}

.gmt-company-preview {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--company-border);
  background: #ffffff;
  box-shadow: var(--company-shadow-soft);
  min-height: 188px;
  display: grid;
  align-content: start;
  gap: 2px;
}

.gmt-company-preview h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.gmt-company-preview p {
  margin: 8px 0 0;
  color: #667a97;
  font-size: 14px;
  line-height: 1.42;
  max-width: 82%;
}

.gmt-company-preview__art {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 108px;
  height: 84px;
  pointer-events: none;
  opacity: 0.98;
  transform: translateZ(0);
}

.gmt-company-preview__art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gmt-company-preview__art--wide {
  right: 8px;
  bottom: 6px;
  width: 162px;
  height: 88px;
}

.gmt-company-preview--blue {
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.13) 0%, #ffffff 78%);
}

.gmt-company-preview--orange {
  background: linear-gradient(150deg, rgba(243, 106, 33, 0.14) 0%, #ffffff 80%);
}

.gmt-company-preview--white {
  grid-column: 1 / -1;
  min-height: 168px;
}

.gmt-company-preview--white p {
  max-width: 60%;
}

/* Универсальная секция */
.gmt-company-section {
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--company-border);
  background: var(--company-surface);
  box-shadow: var(--company-shadow-soft);
}

.gmt-company-section__head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.25vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.gmt-company-section__head p {
  margin: 10px 0 0;
  color: #566d89;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  max-width: 72ch;
}

/* Крупный вводный блок */
.gmt-company-panorama {
  background:
    radial-gradient(circle at 12% 16%, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 38%),
    radial-gradient(circle at 90% 85%, rgba(243, 106, 33, 0.08) 0%, rgba(243, 106, 33, 0) 40%),
    #ffffff;
}

.gmt-company-panorama__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 12px;
}

.gmt-company-panorama__card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--company-border);
  background: #ffffff;
  min-height: 160px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.gmt-company-panorama__card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.gmt-company-panorama__card p {
  margin: 10px 0 0;
  color: #4f6684;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  max-width: 52ch;
}

.gmt-company-panorama__card--wide {
  background: linear-gradient(135deg, #f7faff 0%, #ffffff 100%);
}

.gmt-company-panorama__card--blue {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.14) 0%, #ffffff 82%);
}

.gmt-company-panorama__card--orange {
  background: linear-gradient(145deg, rgba(243, 106, 33, 0.15) 0%, #ffffff 82%);
}

/* Карточки преимуществ и ролей */
.gmt-company-grid {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.gmt-company-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gmt-company-card {
  position: relative;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--company-border);
  background: #ffffff;
}

.gmt-company-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--company-blue), var(--company-orange));
  opacity: 0.75;
}

.gmt-company-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--company-blue-soft);
  color: var(--company-blue);
}

.gmt-company-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gmt-company-card h3 {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.gmt-company-card p {
  margin: 8px 0 0;
  color: #60738f;
  font-size: 14px;
  line-height: 1.42;
}

.gmt-company-card--accent {
  background: linear-gradient(156deg, #ffffff 0%, #f8fbff 100%);
}

.gmt-company-card--accent a {
  margin-top: 11px;
  display: inline-block;
  max-width: 100%;
  color: #2156c5;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.28;
  white-space: normal;
  word-break: break-word;
}

.gmt-company-card--accent a::after {
  content: " →";
  transition: transform 0.2s ease;
}

.gmt-company-card--accent a:hover::after {
  transform: translateX(3px);
}

/* Блок процесса сделки */
.gmt-company-process {
  background:
    radial-gradient(circle at 90% 12%, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 38%),
    #ffffff;
}

.gmt-company-process__layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
}

.gmt-company-process__steps {
  counter-reset: company-step;
  display: grid;
  gap: 10px;
}

.gmt-company-step {
  position: relative;
  padding: 16px 16px 16px 58px;
  border-radius: 16px;
  border: 1px solid #dfe7f4;
  background: #ffffff;
}

.gmt-company-step::before {
  counter-increment: company-step;
  content: counter(company-step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 15px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: #f5f9ff;
  color: var(--company-blue);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gmt-company-step h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.gmt-company-step p {
  margin: 7px 0 0;
  color: #63758f;
  font-size: 14px;
  line-height: 1.4;
}

.gmt-company-process__aside {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid #dae5f6;
  background: linear-gradient(145deg, #f6f9ff 0%, #ffffff 100%);
  display: grid;
  align-content: start;
  gap: 11px;
}

.gmt-company-process__aside h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.gmt-company-process__aside p {
  margin: 0;
  color: #60748f;
  font-size: 14px;
  line-height: 1.42;
}

/* Анимация появления */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .gmt-company {
    padding-top: 128px;
  }

  .gmt-company-hero {
    grid-template-columns: 1fr;
  }

  .gmt-company-hero__visual {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gmt-company-preview--white {
    grid-column: auto;
  }

  .gmt-company-panorama__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gmt-company-panorama__card--wide {
    grid-column: 1 / -1;
  }

  .gmt-company-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gmt-company-process__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gmt-company {
    padding: 88px 12px 56px;
    gap: 14px;
  }

  .gmt-company-hero,
  .gmt-company-section {
    padding: 16px;
    border-radius: 18px;
  }

  .gmt-company-hero h1 {
    font-size: clamp(1.48rem, 7.2vw, 1.92rem);
  }

  .gmt-company-hero__actions {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .gmt-company-hero__actions .gmt-company-btn {
    width: auto;
    min-height: 46px;
    padding: 0 16px;
    justify-content: flex-start;
    text-align: left;
  }

  .gmt-company-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gmt-company-grid--three > :nth-child(3) {
    grid-column: 1 / -1;
  }

  .gmt-company-hero__visual,
  .gmt-company-panorama__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gmt-company-preview--white,
  .gmt-company-panorama__card--orange {
    grid-column: 1 / -1;
  }

  .gmt-company-panorama__card--wide {
    grid-column: auto;
  }

  .gmt-company-preview,
  .gmt-company-panorama__card,
  .gmt-company-card,
  .gmt-company-process__aside {
    min-height: 0;
    padding: 14px;
  }

  .gmt-company-step {
    min-height: 0;
    padding: 14px 14px 14px 52px;
  }

  .gmt-company-step::before {
    left: 12px;
    top: 12px;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 11px;
  }

  .gmt-company-preview {
    min-height: 148px;
  }

  .gmt-company-preview p {
    max-width: 80%;
    font-size: 13px;
  }

  .gmt-company-preview__art {
    width: 88px;
    height: 66px;
  }

  .gmt-company-preview--white p {
    max-width: 72%;
  }

  .gmt-company-preview__art--wide {
    width: 120px;
    height: 68px;
  }

  .gmt-company-card h3,
  .gmt-company-step h3 {
    font-size: 16px;
  }

  .gmt-company-card p,
  .gmt-company-step p,
  .gmt-company-panorama__card p {
    font-size: 13px;
  }

  .gmt-company-panorama__card h3 {
    font-size: 18px;
  }

  .gmt-company-card--accent a {
    font-size: 12.5px;
  }

  .gmt-company-card--accent a::after {
    content: "";
  }
}

@media (max-width: 420px) {
  .gmt-company-grid--three,
  .gmt-company-hero__visual,
  .gmt-company-panorama__grid {
    grid-template-columns: 1fr;
  }

  .gmt-company-grid--three > :nth-child(3),
  .gmt-company-preview--white,
  .gmt-company-panorama__card--orange {
    grid-column: auto;
  }

  .gmt-company-process__aside .gmt-company-btn {
    width: 100%;
  }
}
