/* Cabinet and chat-bots page */
.inner-page {
  background: var(--page-bg);
}

.inner-page .header {
  position: relative;
  margin-bottom: 0;
  background: var(--color-header);
  border-bottom: 0;
  backdrop-filter: none;
}

.inner-page .top-nav {
  padding-top: 13px;
  padding-bottom: 13px;
}

.inner-page .top-nav__inner {
  min-height: 58px;
}

.inner-page .site-menu.is-mega-open .mega-menu {
  top: 86px;
}

.breadcrumbs {
  background: var(--footer-bg);
  color: var(--text);
}

[data-theme="dark"] .breadcrumbs {
  background: #3d5977;
}

.breadcrumbs__inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}

.breadcrumbs span:last-child {
  font-weight: 600;
}

.cabinet-hero {
  padding: 50px 0 66px;
  background: var(--page-bg);
}

.cabinet-hero h1 {
  max-width: 1120px;
  margin: 0 0 58px;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.22;
}

.cabinet-accordion {
  display: grid;
  gap: 28px;
}

.cabinet-panel {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--card-blue);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.cabinet-panel__trigger {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 21px 72px 21px 30px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 55px;
}

.cabinet-panel__trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 30px;
  width: 16px;
  height: 16px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--transition);
}

.cabinet-panel.is-open .cabinet-panel__trigger::after {
  transform: translateY(-35%) rotate(225deg);
}

.cabinet-panel__body {
  display: none;
  padding: 0 28px 27px;
}

.cabinet-panel.is-open .cabinet-panel__body {
  display: block;
}

.cabinet-panel__body::before {
  content: "";
  display: block;
  border-top: 1px solid var(--color-border);
  margin-bottom: 26px;
}

.cabinet-panel__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 23px;
  color: var(--text);
  font-size: 24px;
  font-weight: 400;
  line-height: 29px;
}

.cabinet-panel__hint img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.cabinet-panel__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 565px);
  gap: 20px;
}

.account-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border-radius: var(--radius-md);
  color: #ffffff;
}

.account-card>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 47, 54, 0.58);
}

.account-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 500px;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 50px 55px;
}

.account-card h2 {
  max-width: 640px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 55px;
}

.account-card p {
  max-width: 620px;
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 41px;
}

.account-card a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: #404040;
  font-size: 22px;
  font-weight: 600;
  line-height: 27px;
}

.account-card a span {
  display: inline-flex;
  min-width: 265px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: #ffe265;
}

.account-card a img {
  width: 58px;
  height: 58px;
  margin-left: 10px;
  border-radius: 50%;
}

.bot-list {
  display: grid;
  gap: 20px;
}

.bot-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 240px;
  border-radius: var(--radius-md);
  background: var(--color-card-soft);
  box-shadow: var(--shadow-sm);
  padding: 25px 28px;
}

[data-theme="dark"] .bot-card {
  background: rgba(255, 255, 255, 0.08);
}

.bot-card__qr {
  width: 210px;
  height: 210px;
  object-fit: contain;
}

.bot-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.bot-card h2 {
  margin: 0 0 38px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 400;
  line-height: 43px;
}

.bot-card a {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
}

.bot-card a img {
  display: block;
  width: 265px;
  height: 58px;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .cabinet-panel__content {
    grid-template-columns: minmax(0, 1fr) 445px;
  }

  .bot-card {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .bot-card__qr {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 992px) {
  .inner-page .header {
    background: var(--color-header);
  }

  .inner-page .top-nav {
    padding-top: 0;
    padding-bottom: 0;
  }

  .inner-page .top-nav__inner {
    min-height: 56px;
  }

  .inner-page .site-menu {
    top: 56px;
  }

  .breadcrumbs__inner {
    min-height: 42px;
    font-size: 14px;
    line-height: 17px;
  }

  .cabinet-hero {
    padding-top: 38px;
  }

  .cabinet-hero h1 {
    margin-bottom: 45px;
    font-size: 46px;
    line-height: 1.2;
  }

  .cabinet-accordion {
    gap: 27px;
  }

  .cabinet-panel__trigger {
    min-height: 88px;
    padding: 18px 60px 18px 24px;
    font-size: 30px;
    line-height: 41px;
  }

  .cabinet-panel__trigger::after {
    right: 24px;
  }

  .cabinet-panel__body {
    padding: 0 20px 20px;
  }

  .cabinet-panel__content {
    grid-template-columns: 1fr;
  }

  .account-card,
  .account-card__content {
    min-height: 405px;
  }

  .account-card__content {
    padding: 42px 34px 38px;
  }

  .bot-card {
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 250px;
  }

  .bot-card__qr {
    width: 210px;
    height: 210px;
  }
}

@media (max-width: 575px) {
  .inner-page .page-container {
    width: min(100% - 16px, var(--container));
  }

  .inner-page .top-nav {
    border-bottom: 0;
  }

  .inner-page .top-nav__inner {
    min-height: 31px;
  }

  .inner-page .logo img {
    width: 19px;
    height: 19px;
  }

  .inner-page .logo span {
    max-width: calc(100vw - 74px);
    font-size: 7px;
    line-height: 9px;
  }

  .inner-page .menu-toggle {
    width: 23px;
    height: 19px;
  }

  .inner-page .menu-toggle span {
    width: 23px;
    height: 3px;
    margin: 2px 0;
  }

  .inner-page .site-menu {
    top: 31px;
  }

  .breadcrumbs__inner {
    min-height: 28px;
    gap: 8px;
    font-size: 10px;
    line-height: 12px;
  }

  .cabinet-hero {
    padding: 22px 0 36px;
  }

  .cabinet-hero h1 {
    margin-bottom: 21px;
    font-size: 30px;
    line-height: 41px;
  }

  .cabinet-accordion {
    gap: 15px;
  }

  .cabinet-panel {
    border-radius: 6px;
  }

  .cabinet-panel__trigger {
    min-height: 70px;
    padding: 13px 38px 13px 12px;
    font-size: 20px;
    line-height: 27px;
  }

  .cabinet-panel__trigger::after {
    right: 16px;
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  .cabinet-panel__body {
    padding: 0 8px 13px;
  }

  .cabinet-panel__body::before {
    margin-bottom: 12px;
  }

  .cabinet-panel__hint {
    gap: 4px;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 15px;
  }

  .cabinet-panel__hint img {
    width: 14px;
    height: 14px;
  }

  .cabinet-panel__content {
    gap: 9px;
  }

  .account-card,
  .account-card__content {
    min-height: 194px;
  }

  .account-card {
    border-radius: 6px;
  }

  .account-card__content {
    align-items: center;
    padding: 19px 12px 14px;
    text-align: center;
  }

  .account-card h2 {
    max-width: 245px;
    font-size: 20px;
    line-height: 27px;
  }

  .account-card p {
    max-width: 265px;
    font-size: 12px;
    line-height: 15px;
  }

  .account-card a {
    font-size: 11px;
    line-height: 15px;
  }

  .account-card a span {
    min-width: 128px;
    min-height: 32px;
  }

  .account-card a img {
    width: 32px;
    height: 32px;
    margin-left: 6px;
  }

  .bot-list {
    gap: 8px;
  }

  .bot-card {
    display: flex;
    min-height: 53px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 6px;
    background: #f3f8ff;
    padding: 10px 12px;
  }

  [data-theme="dark"] .bot-card {
    background: rgba(255, 255, 255, 0.1);
  }

  .bot-card__qr {
    display: none;
  }

  .bot-card__content {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .bot-card h2 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    color: var(--text);
  }

  .bot-card a {
    flex: 0 0 auto;
    width: 106px;
    min-width: 106px;
    min-height: 32px;
    justify-content: center;
  }

  .bot-card a img {
    display: block;
    width: 106px;
    height: 32px;
  }
}
