.tg-case {
  margin-top: 26px;
  padding: 42px;
  border: 1px solid rgba(53, 89, 75, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 8%, rgba(42, 171, 238, .08), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.985), rgba(247,249,248,.985));
  box-shadow:
    0 28px 70px rgba(7, 18, 13, .16),
    0 0 0 1px rgba(255,255,255,.6) inset;
  color: #2f3431;
}

.tg-case-header {
  max-width: 920px;
  margin-bottom: 28px;
}

.tg-case-kicker {
  margin-bottom: 9px;
  color: #35594b;
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tg-case h2 {
  margin: 0;
  color: #27483c;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.tg-case-subtitle {
  max-width: 860px;
  margin: 16px 0 0;
  color: #626a65;
  font-size: 14px;
  line-height: 1.8;
}

.tg-problem-solution {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.tg-info-card {
  padding: 24px;
  border: 1px solid #e2ded8;
  border-radius: 18px;
  background: #fbf9f6;
}

.tg-solution {
  border-color: #c9ddd0;
  background: #f2f7f4;
}

.tg-info-label {
  display: block;
  margin-bottom: 10px;
  color: #956744;
  font-family: var(--font-tech);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tg-solution .tg-info-label {
  color: #35594b;
}

.tg-info-card h3 {
  margin: 0;
  color: #353a37;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.tg-info-card p {
  margin: 11px 0 0;
  color: #666c68;
  font-size: 12px;
  line-height: 1.72;
}

.tg-live-demo {
  margin-top: 10px;
  padding: 20px;
  border: 1px solid #d9e2dc;
  border-radius: 22px;
  background:
    radial-gradient(circle at 72% 18%, rgba(42,171,238,.05), transparent 28%),
    #f7f9f8;
}

.tg-live-demo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.tg-live-demo-head > div:first-child {
  max-width: 760px;
}

.tg-live-demo-kicker {
  display: block;
  margin-bottom: 6px;
  color: #2aabee;
  font-family: var(--font-tech);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.tg-live-demo-head strong {
  display: block;
  color: #34413a;
  font-size: 20px;
  line-height: 1.25;
}

.tg-live-demo-head p {
  margin: 8px 0 0;
  color: #78817c;
  font-size: 11px;
  line-height: 1.6;
}

.tg-demo-state {
  min-width: 86px;
  padding: 10px 12px;
  border: 1px solid #d7e3dc;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.tg-demo-state span {
  display: block;
  color: #8b948f;
  font-family: var(--font-tech);
  font-size: 7px;
  text-transform: uppercase;
}

.tg-demo-state strong {
  margin-top: 4px;
  color: #35594b;
  font-family: var(--font-tech);
  font-size: 14px;
}

.tg-phone-stage {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
}

.tg-phone-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  border: 10px solid #111715;
  border-radius: 34px;
  background: #17212b;
  box-shadow:
    0 26px 60px rgba(8, 17, 13, .26),
    0 0 0 1px rgba(255,255,255,.04) inset;
}

.tg-phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 14px;
  background: #17212b;
  color: rgba(255,255,255,.88);
  font-size: 8px;
}

.tg-phone-status-icons {
  display: flex;
  gap: 7px;
  align-items: center;
  opacity: .8;
}

.tg-app-header {
  display: grid;
  grid-template-columns: 28px 40px 1fr 28px;
  gap: 9px;
  align-items: center;
  min-height: 56px;
  padding: 7px 10px;
  background: #202b36;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.tg-app-back,
.tg-app-menu {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8fa3b5;
  font-size: 24px;
}

.tg-bot-avatar {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2aabee, #1c8bc2);
  color: #fff;
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 800;
}

.tg-app-profile strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.tg-app-profile span {
  display: block;
  margin-top: 2px;
  color: #8fa3b5;
  font-size: 8px;
}

.tg-chat-area {
  min-height: 520px;
  max-height: 520px;
  overflow-y: auto;
  padding: 12px 10px 18px;
  background:
    linear-gradient(rgba(255,255,255,.015), rgba(255,255,255,.015)),
    #0e1621;
  scrollbar-width: thin;
}

.tg-chat-date {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(30,45,59,.78);
  color: #aab8c4;
  font-size: 7px;
}

.tg-message {
  position: relative;
  width: fit-content;
  max-width: 82%;
  margin-bottom: 8px;
  padding: 8px 10px 15px;
  border-radius: 11px;
  box-shadow: 0 3px 8px rgba(0,0,0,.12);
}

.tg-message-bot {
  margin-right: auto;
  border-bottom-left-radius: 4px;
  background: #182533;
  color: #eef4f8;
}

.tg-message-user {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  background: #2b5278;
  color: #fff;
}

.tg-message-text {
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-line;
}

.tg-message-time {
  position: absolute;
  right: 7px;
  bottom: 4px;
  color: rgba(255,255,255,.45);
  font-size: 6px;
}

.tg-inline-keyboard {
  display: grid;
  gap: 5px;
  margin: 2px 0 10px;
}

.tg-inline-keyboard-main {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-inline-button,
.tg-reply-keyboard button {
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid rgba(42,171,238,.34);
  border-radius: 8px;
  background: rgba(24,37,51,.92);
  color: #58b9ef;
  font-family: var(--font-main);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.tg-inline-button:hover,
.tg-reply-keyboard button:hover {
  transform: translateY(-1px);
  border-color: #2aabee;
  background: #203c50;
  color: #fff;
}

.tg-next-action {
  animation: tgHintPulse 1.35s ease-in-out infinite;
}

@keyframes tgHintPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(42,171,238,.16);
  }

  50% {
    border-color: #2aabee;
    box-shadow: 0 0 0 5px rgba(42,171,238,.10);
  }
}

.tg-dynamic-zone {
  display: block;
}

.tg-reply-keyboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 7px;
  border-top: 1px solid rgba(255,255,255,.05);
  background: #17212b;
}

.tg-reply-keyboard[hidden] {
  display: none;
}

.tg-composer {
  display: grid;
  grid-template-columns: 30px 1fr 36px;
  gap: 6px;
  align-items: center;
  padding: 7px 8px;
  border-top: 1px solid rgba(255,255,255,.05);
  background: #17212b;
}

.tg-attach-button {
  border: 0;
  background: transparent;
  color: #7f95a7;
  font-size: 22px;
}

.tg-composer input {
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border: 0;
  outline: 0;
  border-radius: 17px;
  background: #202b36;
  color: #fff;
  font-size: 10px;
}

.tg-composer input::placeholder {
  color: #758898;
}

.tg-composer input:disabled {
  opacity: .55;
}

.tg-send-button {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #2aabee;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform .2s ease,
    opacity .2s ease,
    box-shadow .2s ease;
}

.tg-send-button:not(:disabled):hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 5px rgba(42,171,238,.12);
}

.tg-send-button:disabled {
  opacity: .35;
  cursor: default;
}

.tg-demo-guide {
  padding: 18px;
  border: 1px solid #dbe4de;
  border-radius: 18px;
  background: #fff;
}

.tg-guide-head span {
  display: block;
  color: #2aabee;
  font-family: var(--font-tech);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
}

.tg-guide-head strong {
  display: block;
  margin-top: 5px;
  color: #39453f;
  font-size: 15px;
}

.tg-guide-message {
  margin: 13px 0 16px;
  padding: 11px 12px;
  border: 1px solid #cbded1;
  border-radius: 12px;
  background: #f1f7f3;
  color: #4e6458;
  font-size: 10px;
  line-height: 1.55;
}

.tg-guide-steps {
  display: grid;
  gap: 7px;
}

.tg-guide-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #e3e8e5;
  border-radius: 10px;
  background: #fafbfa;
  opacity: .55;
  transition:
    opacity .2s ease,
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.tg-guide-step.active {
  opacity: 1;
  transform: translateX(3px);
  border-color: #9cc3ad;
  background: #f1f7f3;
}

.tg-guide-step.done {
  opacity: .82;
}

.tg-guide-step > span {
  color: #35594b;
  font-family: var(--font-tech);
  font-size: 8px;
  font-weight: 800;
}

.tg-guide-step strong {
  display: block;
  color: #414b46;
  font-size: 10px;
}

.tg-guide-step small {
  display: block;
  margin-top: 2px;
  color: #909893;
  font-size: 8px;
}

.tg-reset-demo {
  width: 100%;
  min-height: 40px;
  margin-top: 15px;
  border: 1px solid #cbded1;
  border-radius: 10px;
  background: #f6f9f7;
  color: #35594b;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.tg-reset-demo:hover {
  background: #edf5f0;
}

.tg-share-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4,10,7,.68);
  backdrop-filter: blur(10px);
}

.tg-share-modal[hidden] {
  display: none;
}

.tg-share-dialog {
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: #17212b;
  box-shadow: 0 30px 70px rgba(0,0,0,.38);
}

.tg-share-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.tg-share-dialog-head strong {
  color: #fff;
  font-size: 12px;
}

.tg-share-dialog-head button {
  border: 0;
  background: transparent;
  color: #9babb7;
  font-size: 20px;
  cursor: pointer;
}

.tg-share-search {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 6px;
  align-items: center;
  margin: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #202b36;
  color: #6f8393;
}

.tg-share-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 10px;
}

.tg-share-contact-list {
  display: grid;
}

.tg-share-contact {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.04);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tg-share-contact:hover {
  background: #202b36;
}

.tg-share-avatar {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2aabee;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.tg-share-contact strong {
  display: block;
  color: #f4f7f9;
  font-size: 10px;
}

.tg-share-contact small {
  display: block;
  margin-top: 2px;
  color: #8092a0;
  font-size: 8px;
}

.tg-share-preview {
  margin: 10px;
  padding: 11px;
  border-radius: 10px;
  background: #202b36;
}

.tg-share-preview span {
  display: block;
  color: #2aabee;
  font-size: 7px;
  text-transform: uppercase;
}

.tg-share-preview strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 10px;
  line-height: 1.45;
}

.tg-capabilities {
  margin-top: 18px;
}

.tg-capabilities-head span {
  display: block;
  color: #35594b;
  font-family: var(--font-tech);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.tg-capabilities-head strong {
  display: block;
  margin-top: 5px;
  color: #37423c;
  font-size: 17px;
}

.tg-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.tg-capabilities-grid article {
  padding: 15px;
  border: 1px solid #e0e6e2;
  border-radius: 14px;
  background: #fff;
}

.tg-capabilities-grid article > span {
  color: #2aabee;
  font-family: var(--font-tech);
  font-size: 8px;
  font-weight: 800;
}

.tg-capabilities-grid strong {
  display: block;
  margin-top: 6px;
  color: #414a45;
  font-size: 11px;
}

.tg-capabilities-grid p {
  margin: 7px 0 0;
  color: #818985;
  font-size: 9px;
  line-height: 1.5;
}

.tg-business-impact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tg-business-impact article {
  padding: 15px;
  border: 1px solid #dfe6e1;
  border-radius: 14px;
  background: #f9faf9;
}

.tg-business-impact span {
  display: block;
  color: #7d8781;
  font-family: var(--font-tech);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.tg-business-impact strong {
  display: block;
  margin-top: 6px;
  color: #35594b;
  font-size: 12px;
  line-height: 1.4;
}

.tg-business-impact small {
  display: block;
  margin-top: 6px;
  color: #8a928e;
  font-size: 8px;
  line-height: 1.45;
}

.tg-case-cta {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.tg-case-cta a {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #2aabee;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 12px 26px rgba(42,171,238,.2);
  transition:
    transform .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.tg-case-cta a:hover {
  transform: translateY(-2px);
  background: #229ed9;
  box-shadow: 0 16px 32px rgba(42,171,238,.25);
}

@media (max-width: 1000px) {
  .tg-phone-stage {
    grid-template-columns: 1fr;
  }

  .tg-phone-shell {
    max-width: 460px;
  }

  .tg-demo-guide {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .tg-case {
    padding: 32px;
  }

  .tg-problem-solution {
    grid-template-columns: 1fr;
  }

  .tg-capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tg-case {
    margin-top: 18px;
    padding: 24px 14px;
    border-radius: 18px;
  }

  .tg-case h2 {
    font-size: 1.85rem;
  }

  .tg-case-subtitle {
    font-size: 13px;
  }

  .tg-live-demo {
    padding: 13px;
  }

  .tg-live-demo-head {
    display: block;
  }

  .tg-demo-state {
    width: 84px;
    margin-top: 12px;
  }

  .tg-phone-shell {
    border-width: 7px;
    border-radius: 28px;
  }

  .tg-chat-area {
    min-height: 470px;
    max-height: 470px;
  }

  .tg-inline-keyboard-main,
  .tg-reply-keyboard {
    grid-template-columns: 1fr 1fr;
  }

  .tg-capabilities-grid,
  .tg-business-impact {
    grid-template-columns: 1fr;
  }
}

.tg-date-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.tg-date-picker-custom {
  grid-template-columns: 1fr 110px;
}

.tg-date-picker > span {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #202b36;
  color: #c8d4dd;
  font-size: 9px;
}

.tg-date-picker input {
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(42,171,238,.34);
  outline: 0;
  border-radius: 8px;
  background: #202b36;
  color: #fff;
  color-scheme: dark;
  font-family: var(--font-main);
  font-size: 9px;
}

.tg-date-picker input:focus {
  border-color: #2aabee;
}

.tg-picker-confirm {
  grid-column: 1 / -1;
  min-height: 34px;
  border: 1px solid #2aabee;
  border-radius: 8px;
  background: #2aabee;
  color: #fff;
  font-family: var(--font-main);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 520px) {
  .tg-date-picker,
  .tg-date-picker-custom {
    grid-template-columns: 1fr;
  }
}

.tg-app-profile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.tg-open-telegram {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #58b9ef;
  font-size: 7px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color .2s ease,
    opacity .2s ease;
}

.tg-open-telegram:hover {
  color: #ffffff;
}

@media (max-width: 520px) {
  .tg-app-profile-meta {
    gap: 5px;
  }

  .tg-open-telegram {
    font-size: 6px;
  }
}
