/* mvkbot.ru — собственная вёрстка, без зависимостей от внешних CDN */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  background: linear-gradient(180deg, #72b3f1 0%, #205ab0 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Layout */
.page {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.banner {
  display: block;
  margin: 0 auto 8px;
  max-width: 397px;
  width: 100%;
}

.banner img {
  width: 100%;
  height: auto;
}

.intro {
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  margin: 8px 0 0;
}

/* Buttons / link blocks
   Дефолт = прозрачные с белой обводкой (account.theme.link.transparent=100).
   Брендовые модификаторы — только для чат-ботов в мессенджерах/соцсетях. */
.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.btn:active {
  transform: translateY(1px);
}

/* Brand-coloured chat-bot buttons (MAX / VK / OK) — точные цвета сервисов */
.btn--brand {
  border: 0;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(15, 50, 110, 0.25);
}

.btn--brand:hover,
.btn--brand:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(15, 50, 110, 0.32);
}

.btn--brand-mx {
  background: radial-gradient(
    136.12% 140.74% at 99.77% 99.04%,
    #8d28c8 0%,
    #7c42fa 20%,
    #007aff 80%,
    #609ceb 100%
  );
}

.btn--brand-vk {
  background: #0077ff;
}

.btn--brand-ok {
  background: #f7941d;
}

.btn__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.btn__icon img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.btn__title {
  flex: 1;
}

/* Divider between groups (Taplink "break" блок) */
.divider {
  height: 1px;
  border: 0;
  margin: 8px 8px;
  background: rgba(255, 255, 255, 0.35);
}

.divider--spacer {
  height: 0;
  background: transparent;
  margin: 4px 0;
}

/* FAQ accordion */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
}

.faq__item > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary::after {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
  transition: transform 0.2s ease;
}

.faq__item[open] > summary::after {
  transform: rotate(180deg);
}

.faq__body {
  padding: 0 18px 16px;
  white-space: pre-line;
  font-size: 15px;
  opacity: 0.95;
}

.faq__body a {
  text-decoration: underline;
  color: #ffffff;
}

/* Avatar block at the bottom */
.avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar__caption {
  font-size: 13px;
  text-align: center;
  white-space: pre-line;
  opacity: 0.95;
}

/* Article (eula / e8dd5b) */
.article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 20px;
  font-size: 15px;
  line-height: 1.65;
}

.article--prewrap {
  white-space: pre-line;
}

.article h1 {
  margin: 0 0 16px;
  font-size: 22px;
  text-align: center;
}

.article p {
  margin: 0 0 12px;
}

.article p:last-child {
  margin-bottom: 0;
}

.article ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.article ul li {
  margin-bottom: 4px;
}

.article a {
  text-decoration: underline;
  color: #ffffff;
  word-break: break-word;
}

.article strong {
  display: inline-block;
  margin-top: 4px;
  font-size: 16px;
}

.text-center {
  text-align: center;
}

/* Form (deletion) */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 14px;
  font-weight: 500;
}

.form__label--required::after {
  content: " *";
  color: #ffe27a;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 12px;
  color: #205ab0;
  font: inherit;
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.form__textarea {
  min-height: 100px;
  resize: vertical;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.form__check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: #ffffff;
}

.form__submit {
  margin-top: 4px;
}

.form__notice {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
  opacity: 0.9;
}

.form__error {
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 80, 80, 0.18);
  border: 1px solid rgba(255, 80, 80, 0.5);
  font-size: 14px;
  text-align: center;
  color: #fff5f5;
  min-height: 0;
}

.form__error:empty {
  display: none;
}

.form__submit {
  justify-content: center;
}

.form__submit.is-loading,
.form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.form__success {
  display: none;
  background: rgba(255, 255, 255, 0.92);
  color: #205ab0;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 500;
}

.form.is-sent .form__fields {
  display: none;
}

.form.is-sent .form__success {
  display: block;
}

/* Footer link back */
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px auto 0;
  padding: 8px 14px;
  font-size: 14px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

.back:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Responsive */
@media (max-width: 480px) {
  .page {
    padding: 16px 12px 32px;
  }

  .article {
    padding: 16px;
    font-size: 14px;
  }

  .btn {
    padding: 12px 14px;
    font-size: 15px;
  }
}
