/* Frame 2 — Цифровая идентичность */

.identity-page {
  padding: 150px 0 150px;
}

.identity-shell {
  /* same green folder as index .identity__panel */
  position: relative;
  width: min(100%, 1560px);
  min-height: 838px;
  margin-inline: auto;
  padding: 170px 70px 70px;
  overflow: visible;
  box-sizing: border-box;
}

/* Main green folder (Vector) — left shelf lower, diagonal up to right */
.identity-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #174c4a;
  box-shadow: inset 0 5px 80px rgba(255, 255, 255, 0.15);
  border-radius: 0 20px 20px 20px;
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(
    0 100px,
    42% 100px,
    49% 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

/*
  Dark back tab (Rectangle 29):
  768×100, left 52px, top 30px — peeks above the left shelf
*/
.identity-shell__tab {
  position: absolute;
  left: 52px;
  top: 30px;
  width: 768px;
  max-width: calc(100% - 52px);
  height: 100px;
  background: #113d3b;
  border-radius: 15px;
  z-index: 0;
  pointer-events: none;
}

.identity-shell__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.identity-shell__head h1 {
  max-width: 367px;
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.service-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.service-tab {
  flex: 0 0 auto;
  min-height: 74px;
  padding: 0 25px;
  color: #fff;
  background: transparent;
  border: 2px solid #e6e6e6;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.service-tab.is-active {
  color: #0d2a29;
  background: #fff;
}

.service-tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
}

.service-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 358px;
  gap: 60px;
  align-items: center;
  min-height: 468px;
  padding: 65px 65px 65px;
  background: #fff;
  border-radius: 20px;
}

.service-panel__content {
  max-width: 761px;
}

.service-panel__content h2 {
  margin: 0 0 20px;
  color: #174c4a;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.service-panel__content p {
  margin: 0 0 50px;
  color: #0d2a29;
  font-size: 20px;
  line-height: 1.2;
}

.service-panel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 289px;
  min-height: 110px;
  padding: 0 36px;
  color: #fff;
  background: #174c4a;
  border-radius: 20px;
  box-shadow: inset 0 0 35px rgba(255, 255, 255, 0.3);
  font-size: 20px;
  font-weight: 500;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.service-panel__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.service-panel__icon {
  display: grid;
  place-items: center;
  width: 358px;
  height: 358px;
  background: #174c4a;
  border-radius: 20px;
}

.service-panel__icon img {
  width: 152px;
  height: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 1200px) {
  .identity-page {
    padding: 100px 0;
  }

  .identity-shell {
    width: 100%;
    min-height: 0;
    padding: 80px 40px 40px;
    background: #174c4a;
    border-radius: 20px;
    box-shadow: inset 0 5px 80px rgba(255, 255, 255, 0.15);
  }

  .identity-shell::after,
  .identity-shell__tab {
    display: none;
  }

  .identity-shell__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 40px;
  }

  .service-panel__icon {
    width: min(100%, 280px);
    height: min(100vw, 280px);
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .identity-page {
    padding: 70px 0;
  }

  .identity-shell {
    padding: 48px 16px 16px;
  }

  .identity-shell__head h1 {
    font-size: 28px;
  }

  .service-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .service-tab {
    flex: 0 0 auto;
    min-height: 58px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .service-panel {
    padding: 28px 20px;
    gap: 28px;
  }

  .service-panel__content h2 {
    font-size: 20px;
  }

  .service-panel__content p {
    margin-bottom: 28px;
    font-size: 16px;
  }

  .service-panel__cta {
    width: 100%;
    min-width: 0;
    min-height: 72px;
  }

  .service-panel__icon {
    width: 180px;
    height: 180px;
  }

  .service-panel__icon img {
    width: 90px;
  }
}
