* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Geologica";
  src: url("/fonts/Geologica-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Geologica";
  src: url("/fonts/Geologica-Bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

::selection {
  color: #000000;
  background: #ffff00;
}

body {
  font-family: "Geologica", "Helvetica Neue", Helvetica, Roboto, Arial,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Первый экран / Заголовок */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  background-color: #000; /* черный фон */
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.hero .container {
  position: relative;
  isolation: isolate;
}

.hero-side-photo {
  position: absolute;
  top: 50%;
  width: min(24vw, 280px);
  max-width: 280px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 36px rgba(20, 12, 45, 0.35);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-side-photo-left {
  left: 0;
  transform: translate(-35%, -50%) rotate(-11deg);
  object-fit: fill;
  height: 500px;
}

.hero-side-photo-right {
  right: 0;
  transform: translate(35%, -50%) rotate(11deg);
}

.hero-title,
.hero-subtitle,
.support-button,
.hero-cta-button,
.scroll-down {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  display: inline-block;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(25, 28, 68, 0.58) 0%,
    rgba(80, 27, 73, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 28px rgba(19, 10, 36, 0.22);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 16px rgba(17, 8, 35, 0.2);
}

.hero-subtitle.active {
  background: transparent;
  border: 1px solid rgba(255, 190, 80, 0.6);
  color: rgba(255, 230, 179, 0.9);
  font-weight: 500;
  box-shadow: 0 0 12px rgba(255, 180, 60, 0.5);
  opacity: 1;
}

.hero-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  width: 50%;
}

.hero-cta-button {
  padding: 12px 40px;
  background: #00b4db;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.hero-cta-button svg {
  width: 24px;
  height: 24px;
  fill: #00b4db;
}

.hero-cta-button-small {
  padding: 14px 28px;
  font-size: 1rem;
}

.hero-cta-button--tight {
  margin-top: 0;
  padding: 8px 10px;
  font-size: 0.88rem;
  line-height: 1.1;
  gap: 8px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-cta-button--tight::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-140%);
  transition: transform 0.55s ease;
  z-index: 0;
  pointer-events: none;
}

.hero-cta-button--tight:hover::before {
  transform: translateX(140%);
}

.hero-cta-button__label,
.hero-cta-button--tight svg {
  position: relative;
  z-index: 1;
}

.hero-cta-button--tight svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .hero-cta-button--tight {
    font-size: 0.82rem;
    padding: 7px 8px;
  }
}

.hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #00b4db;
  color: #fff;
}

.hero-generator {
  width: min(900px, 100%);
  margin: 0 auto 18px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  text-align: left;
}

.hero-generator__label {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 8px;
  font-weight: 600;
}

.hero-generator__input {
  width: 100%;
  border-radius: 14px;
  padding: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.98);
  color: #0b1220;
  outline: none;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.45;
  resize: vertical;
  min-height: 120px;
}

.hero-generator__input::placeholder {
  color: rgba(11, 18, 32, 0.55);
}

.hero-generator__input:focus {
  border-color: rgba(255, 190, 80, 0.8);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.hero-generator__input-wrap {
  position: relative;
  overflow: visible;
  z-index: 1;
}

/* Видимая подсказка при наведении (нативный title часто с задержкой или обрезается) */
.hero-generator__icon-btn[data-tooltip] {
  z-index: 2;
}

.hero-generator__icon-btn[data-tooltip]:hover,
.hero-generator__icon-btn[data-tooltip]:focus-visible {
  z-index: 30;
}

.hero-generator__icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  left: auto;
  right: 0;
  padding: 9px 12px;
  max-width: min(280px, calc(100vw - 24px));
  width: max-content;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: #f8fafc;
  background: #0f172a;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, visibility 0.14s ease, transform 0.14s ease;
  pointer-events: none;
  white-space: normal;
  text-align: left;
}

.hero-generator__icon-btn[data-tooltip]:hover::after,
.hero-generator__icon-btn[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Палитра и вложения: оба тултипа от правого края кнопки влево — без вылезания вправо */

.hero-generator__file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.hero-generator__icon-btn {
  position: absolute;
  top: auto;
  bottom: 16px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(18, 28, 45, 0.12);
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.hero-generator__icon-btn--second {
  right: 52px;
}

.hero-generator__icon-btn:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(18, 28, 45, 0.22);
}

.hero-generator__icon-btn img {
  display: block;
}

.hero-generator__input {
  padding-right: 92px;
  padding-left: 14px;
}

.hero-generator__files-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
  flex-wrap: nowrap;
}

.hero-generator__files-meta span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.14);
}

.hero-generator__btn--create {
  margin-left: auto;
  flex: 0 0 190px;
  width: 190px;
  max-width: 190px;
  min-height: 42px;
}

@media (max-width: 420px) {
  .hero-generator__btn--create {
    flex: 0 0 min(190px, calc(100% - 120px));
    width: min(190px, calc(100% - 120px));
    max-width: min(190px, calc(100% - 120px));
  }
}

.hero-preview-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 86px);
  gap: 10px;
}

.hero-preview-card {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.hero-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(18, 28, 45, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: rgba(15, 23, 42, 0.9);
  font-size: 14px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-preview-remove:hover {
  background: rgba(255, 255, 255, 1);
}

.hero-generator__action-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.hero-generator__row--secondary {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
}

.hero-generator__row--secondary > * {
  min-height: 42px;
  box-sizing: border-box;
  flex: 0 0 190px;
  width: 190px;
  max-width: 190px;
}

@media (max-width: 640px) {
  .hero-generator__row--secondary {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .hero-generator__row--secondary > * {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }
}

.hero-generator__btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 45%, #06b6d4 100%);
  box-shadow: 0 18px 42px rgba(79, 70, 229, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: auto;
  max-width: 240px;
  white-space: nowrap;
  text-align: center;
  line-height: 1.1;
  gap: 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  font-family: inherit;
}

.hero-generator__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(79, 70, 229, 0.28);
}

.hero-generator__btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-140%);
  transition: transform 0.55s ease;
  z-index: 0;
  pointer-events: none;
}

.hero-generator__btn:hover::before {
  transform: translateX(140%);
}

.hero-generator__btn > * {
  position: relative;
  z-index: 1;
}

.hero-generator__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.hero-generator__btn:disabled::before {
  display: none;
}

.hero-generator__btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  font-weight: 800;
}

.hero-generator__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.hero-generator__link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 180, 0.55);
  background: linear-gradient(
    90deg,
    rgba(255, 138, 101, 0.95) 0%,
    rgba(255, 77, 79, 0.92) 50%,
    rgba(225, 29, 72, 0.9) 100%
  );
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.1;
  padding: 8px 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 16px 40px rgba(255, 90, 90, 0.2);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.16);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-generator__link-text {
  position: relative;
  z-index: 1;
}

.hero-generator__link-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-140%);
  transition: transform 0.55s ease;
  z-index: 0;
  pointer-events: none;
}

.hero-generator__link-btn:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 163, 132, 0.98) 0%,
    rgba(255, 99, 99, 0.96) 50%,
    rgba(225, 29, 72, 0.94) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(255, 90, 90, 0.24);
}

.hero-generator__link-btn:hover::before {
  transform: translateX(140%);
}

.hero-generator__progress {
  margin-top: 10px;
}

.hero-generator__progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.hero-generator__progress-bar {
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 45%, #06b6d4 100%);
  transform: translateX(-140%);
  animation: home-progress-slide 1.2s linear infinite;
}

@keyframes home-progress-slide {
  0% {
    transform: translateX(-140%);
  }
  50% {
    transform: translateX(140%);
  }
  50.01% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(140%);
  }
}

.hero-generator__btn-ico {
  width: 18px;
  height: 18px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.22));
}

.hero-generator__login {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-generator__login:hover {
  color: rgba(255, 230, 179, 0.95);
}

.hero-generator__status {
  margin-top: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  min-height: 22px;
  line-height: 1.45;
  white-space: pre-line;
}

.hero-generator__status.is-error {
  color: rgba(255, 175, 195, 0.95);
}

.hero-generator__status.is-success {
  color: rgba(180, 255, 214, 0.95);
}

.hero-generator__result-wrap {
  margin-top: 12px;
}

.hero-generator__result-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.hero-generator__result-download {
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  margin: 0 auto;
}

.hero-generator__result {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.22);
}

.scroll-down {
  display: inline-block;
  margin-top: 30px;
  color: white;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-down:hover {
  opacity: 1;
  transform: translateY(5px);
}

.scroll-down svg {
  width: 32px;
  height: 32px;
  display: block;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Боли и ситуация */
.pains {
  padding: 40px 0;
  background-color: #f8f9fa;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-radius: 14px;
  color: #fff;
  padding: 10px 20px;
  background: linear-gradient(
    135deg,
    rgba(25, 28, 68, 0.58) 0%,
    rgba(80, 27, 73, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: inline-block;
}

.pains-content {
  background: white;
  padding: 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.pain-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.pain-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
}

.pain-item p {
  margin: 0;
}

.pain-icon {
  color: #f59e0b;
  font-weight: bold;
  margin-right: 15px;
  font-size: 1.5rem;
}

.pains-question {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 40px 0;
  color: #2d3748;
  text-align: center;
}

.pains-explanation {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin: 30px 0;
}

.pains-explanation p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.pains-explanation ul {
  margin-left: 30px;
  margin-bottom: 20px;
}

.pains-explanation li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.pains-result {
  font-weight: 600;
  color: #dc2626;
  font-size: 1.2rem;
}

.consequences {
  background-color: #fef2f2;
  padding: 30px;
  border-radius: 8px;
  margin: 30px 0;
  border-left: 4px solid #dc2626;
}

.consequences h3 {
  color: #dc2626;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.consequences ul {
  margin-left: 30px;
}

.consequences li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.solution-intro {
  margin-top: 40px;
  text-align: center;
}

.solution-intro h3 {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 20px;
}

.solution-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 40px;
  line-height: 1.6;
}

.solution-process {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: white;
  padding: 35px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.process-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.process-step h4 {
  font-size: 1.5rem;
  color: #667eea;
  margin-bottom: 12px;
  font-weight: 600;
}

.process-step p {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

.process-arrow {
  font-size: 2rem;
  color: #667eea;
  font-weight: bold;
  flex-shrink: 0;
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.solution-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.solution-item h4 {
  font-size: 1.3rem;
  color: #667eea;
  margin-bottom: 12px;
  font-weight: 600;
}

.solution-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
}

/* Выгоды и продукт */
.benefits-product {
  padding: 40px 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
  background-color: #000;
}

.benefits-section {
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.benefit-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-card.highlight {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

.benefit-card h3 {
  font-size: 1.5rem;
  color: #667eea;
  margin-bottom: 15px;
}

.benefit-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5568;
}

.product-description {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 10px;
  margin-top: 40px;
}

.product-intro {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #2d3748;
}

.technologies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: flex-start;
  gap: 25px;
}

.how-it-works {
  margin: 40px 0;
}

.how-it-works h3 {
  font-size: 1.8rem;
  color: #2d3748;
  margin-bottom: 30px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.step {
  display: flex;
  align-items: flex-start;
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.step-number {
  background: #667eea;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.step p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5568;
}

.pricing-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 24px;
}

.pricing-section h3 {
  font-size: 2rem;
  color: #2d3748;
  margin: 0;
}

.pricing-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.pricing-tab {
  padding: 6px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #4a5568;
  font-family: inherit;
}

.pricing-tab:focus {
  outline: none;
}

.pricing-tab:hover {
  border-color: #667eea;
  color: #667eea;
}

.pricing-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.pricing-tab-content {
  display: none;
}

.pricing-tab-content.active {
  display: block;
}

.pricing-benefits-section {
  background: white;
  padding: 40px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  margin-bottom: 40px;
}

.pricing-benefits-section h4 {
  font-size: 1.8rem;
  color: #2d3748;
  margin-bottom: 25px;
  font-weight: 600;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.benefits-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.6;
}

.benefits-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: bold;
  font-size: 1.3rem;
}

.pricing-cards-section {
  margin-top: 40px;
}

.pricing-cards-section h4 {
  font-size: 1.8rem;
  color: #2d3748;
  margin-bottom: 30px;
  font-weight: 600;
  text-align: center;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.pricing-card-new {
  background: white;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.pricing-card-new.highlight-card {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.card-header {
  margin-bottom: 20px;
}

.card-badge {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  padding: 8px 16px;
  background: #f8f9fa;
  border-radius: 20px;
}

.video-container {
  width: 100%;
}

video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.highlight-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-amount {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 25px;
  line-height: 1.6;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.price-number {
  font-size: 3rem;
  font-weight: 700;
  color: #667eea;
  line-height: 1;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: #667eea;
}

.pricing-custom-note {
  text-align: center;
  font-size: 1rem;
  color: #4a5568;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #e2e8f0;
  line-height: 1.6;
}

.pricing-custom-note strong {
  color: #2d3748;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
}

@media (max-width: 1280px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card.highlight {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  transform: scale(1.05);
}

.pricing-badge {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2d3748;
}

.pricing-amount {
  font-size: 1.3rem;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 15px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.amount-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
}

.amount-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

.amount-type {
  font-size: 1rem;
  font-weight: 500;
  color: #4a5568;
}

.pricing-price-per {
  font-size: 1rem;
  font-weight: 500;
  color: #667eea;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #4a5568;
  font-size: 1rem;
}

.pricing-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: bold;
}

.pricing-note-text {
  text-align: center;
  margin-top: 30px;
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
}

.pricing-note-text strong {
  color: #2d3748;
  font-weight: 600;
}

.how-it-works-detailed {
  margin-top: 60px;
  padding: 40px 0;
}

.how-it-works-detailed h3 {
  font-size: 2rem;
  color: #2d3748;
  margin-bottom: 40px;
  text-align: center;
}

.how-works-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.how-works-step {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  background: white;
  padding: 30px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-works-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.step-image {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.step-number-big {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.how-works-step h4 {
  font-size: 1.5rem;
  color: #2d3748;
  margin: 0;
}

.how-works-step p {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

.how-pricing-works {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 10px;
  margin-top: 30px;
}

.how-pricing-works h3 {
  font-size: 1.8rem;
  color: #2d3748;
  margin-bottom: 30px;
  text-align: center;
}

.how-pricing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.how-pricing-step {
  text-align: center;
  background: white;
  padding: 25px;
  border-radius: 8px;
}

.how-pricing-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 15px;
}

.how-pricing-step h4 {
  font-size: 1.2rem;
  color: #2d3748;
  margin-bottom: 10px;
}

.how-pricing-step p {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
}

.why-choose-us h3 {
  font-size: 1.8rem;
  color: #2d3748;
  margin-bottom: 30px;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.why-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.why-item h4 {
  font-size: 1.2rem;
  color: #667eea;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

.questions-section {
  background: white;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 40px;
  text-align: center;
  border: 2px solid #667eea;
}

.questions-section h3 {
  font-size: 1.8rem;
  color: #2d3748;
  margin-bottom: 15px;
}

.questions-section p {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 25px;
  line-height: 1.6;
}

.support-button {
  display: inline-block;
  padding: 12px 34px;
  background: linear-gradient(
    110deg,
    rgba(201, 39, 64, 0.62) 0%,
    rgba(150, 22, 53, 0.56) 100%
  );
  color: #fff5f7;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  border: 1px solid rgba(255, 214, 223, 0.45);
  transition: all 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 24px rgba(96, 16, 35, 0.3);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(3px);
}

.support-button:hover {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(224, 45, 78, 0.75) 0%,
    rgba(168, 26, 59, 0.68) 100%
  );
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(109, 17, 40, 0.4);
}

.support-button-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-140%);
  transition: transform 0.55s ease;
}

.support-button-glow:hover::before {
  transform: translateX(140%);
}

/* Оффер и CTA */
.offer-cta {
  padding: 40px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.benefits-recap {
  background: white;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 40px;
  border: 2px solid #667eea;
}

.benefits-recap h3 {
  font-size: 1.8rem;
  color: #2d3748;
  margin-bottom: 25px;
}

.benefits-recap ul {
  margin-left: 30px;
}

.benefits-recap li {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #4a5568;
  line-height: 1.8;
}

.qualification-questions {
  background: white;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 40px;
  border: 2px solid #667eea;
}

.qualification-questions h3 {
  font-size: 1.8rem;
  color: #2d3748;
  margin-bottom: 25px;
}

.qualification-questions ul {
  margin-left: 30px;
}

.qualification-questions li {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #4a5568;
  line-height: 1.8;
}

.offer-block {
  background: white;
  padding: 60px 40px;
  border-radius: 10px;
  margin-bottom: 40px;
  text-align: center;
}

.offer-block a {
  width: max-content;
  margin: 0 auto;
}

.offer-block h3 {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 40px;
}

.telegram-button {
  display: inline-block;
  padding: 20px 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.telegram-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.telegram-button:active {
  transform: translateY(0);
}

.footer {
  background-color: #2d3748;
  color: white;
  padding: 30px 0;
  text-align: center;

  display: flex;
  align-items: center;
  gap: 10px;
}

.footer a {
  display: block;
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
  /* не clip — иначе CSS-подсказки у поля промпта обрезаются */
  .hero {
    overflow: visible;
  }

  .hero-side-photo {
    display: none;
  }

  .hero-title {
    font-size: 1.8rem;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    padding: 5px 10px;
  }

  .hero-tabs {
    width: 100%;
  }

  .hero-generator {
    padding: 14px 12px 12px;
  }

  .hero-generator__input {
    font-size: 1rem;
  }

  .hero-cta-button {
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .hero-cta-button-small {
    padding: 12px 22px;
    font-size: 0.95rem;
  }

  .solution-process {
    flex-direction: column;
    gap: 15px;
  }

  .process-step {
    max-width: 100%;
    width: 100%;
  }

  .process-arrow {
    transform: rotate(90deg);
    font-size: 1.5rem;
  }

  .process-icon {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
    padding: 12px 20px;
  }

  .pains-content,
  .product-description,
  .benefits-recap,
  .offer-block,
  .qualification-questions,
  .questions-section,
  .how-pricing-works,
  .pricing-benefits-section {
    padding: 25px;
  }

  .benefits-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pricing-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card-new.highlight-card {
    transform: scale(1);
  }

  .price-number {
    font-size: 2.5rem;
  }

  .price-currency {
    font-size: 1.3rem;
  }

  .card-amount {
    font-size: 1.1rem;
    min-height: auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.highlight {
    transform: scale(1);
  }

  .pricing-header h3 {
    font-size: 22px;
  }

  .pricing-tabs button {
    padding: 6px 14px;
    font-size: 12px;
  }

  .how-pricing-steps {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .pricing-price {
    font-size: 2rem;
  }

  .pricing-note-text {
    font-size: 0.85rem;
    margin-top: 20px;
    padding: 0 10px;
  }

  .amount-item {
    flex-direction: column;
    gap: 5px;
  }

  .amount-number {
    font-size: 1.3rem;
  }

  .amount-type {
    font-size: 0.9rem;
  }

  .how-works-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-image {
    height: 180px;
  }

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

  .step-number-big {
    margin: 0 auto 15px;
  }

  .how-it-works-detailed {
    padding: 20px 0;
  }

  .how-it-works-detailed h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .pain-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .pain-item {
    padding: 15px;
    font-size: 1rem;
  }

  .solution-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .solution-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .solution-item {
    padding: 20px;
  }

  .technologies {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .telegram-button {
    padding: 18px 40px;
    font-size: 1.1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .pain-item {
    font-size: 1rem;
  }
}

/* Фиксированная шапка 50px, блюр, статус авторизации.
   Не добавляем padding на body — иначе сверху остаётся «поле» с белым фоном
   #fff, а тёмный .hero начинается ниже и выглядит как белая полоса. */
body.page-with-site-header {
  padding-top: 0;
}

/* Отступ под фикс. шапку внутри первого экрана, фон героя идёт от самого верха */
body.page-with-site-header .hero {
  padding-top: 90px; /* 50 (шапка) + 40 (как было) */
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 14, 25, 0.28);
  backdrop-filter: blur(16px) saturate(140%);
}

.site-header.is-hidden {
  display: none;
}

/* На главной модалка "образа" должна быть поверх хедера */
.prompts-modal {
  z-index: 2000;
}

/* generate.css задаёт это, но на главной его нет */
.auth-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #36538e;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.auth-modal__close:hover {
  opacity: 0.75;
}

/* Auth modal (как на /generate.html) */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.auth-modal.hidden {
  display: none !important;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 35, 0.55);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.auth-modal__dialog {
  text-align: center;
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 28px));
  border-radius: 18px;
  border: 1px solid rgba(196, 210, 250, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 44px rgba(9, 20, 48, 0.25);
  padding: 18px 16px 16px;
}

.billing-modal {
  width: min(540px, calc(100vw - 28px));
}

.billing-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #3f5c98;
  font-size: 0.86rem;
}

.billing-loading.hidden {
  display: none !important;
}

.billing-error {
  margin: 0 0 10px;
  color: #b91c1c;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
}

.billing-error.hidden {
  display: none !important;
}

.inline-loader {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(94, 117, 184, 0.25);
  border-top-color: #4f66ad;
  animation: inline-spin 0.8s linear infinite;
}

@keyframes inline-spin {
  to {
    transform: rotate(360deg);
  }
}

.billing-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.billing-plan {
  font-family: inherit;
  border: 2px solid rgba(214, 225, 246, 0.95);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.billing-plan:hover {
  transform: translateY(-2px);
  border-color: #8598eb;
  box-shadow: 0 10px 20px rgba(36, 53, 95, 0.12);
}

.billing-plan.is-active {
  border-color: #667eea;
  background: linear-gradient(180deg, #f6f8ff 0%, #eef2ff 100%);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18);
}

.billing-plan-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(227, 236, 255, 0.95);
  color: #324b82;
  font-size: 0.78rem;
  font-weight: 700;
}

.billing-plan-generations {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #667eea;
}

.billing-plan-price-row {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
}

.billing-plan-price {
  color: #667eea;
}

.billing-plan-meta {
  color: #667eea;
  font-size: 0.82rem;
  font-weight: 600;
}

.billing-pay-button {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #6b7fff 0%, #8d5cff 100%);
  cursor: pointer;
}

.billing-pay-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .billing-plans {
    grid-template-columns: 1fr;
  }
}

.auth-modal__dialog h3 {
  margin: 0 0 8px;
  color: #1f2f58;
}

.auth-modal__dialog p {
  margin: 0 0 14px;
  color: #4b6498;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.auth-actions--stack {
  flex-direction: column;
  align-items: center;
}

.google-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(66, 133, 244, 0.5);
  color: #1f2f58;
  border-radius: 50px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.google-auth-button:hover {
  background: rgba(66, 133, 244, 0.08);
  border-color: rgba(66, 133, 244, 0.75);
}

.google-auth-button--full {
  width: 75%;
  box-sizing: border-box;
}

/* Result fullscreen modal */
.result-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.result-modal.hidden {
  display: none !important;
}

.result-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 35, 0.72);
  backdrop-filter: blur(6px);
  z-index: 0;
}

.result-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border-radius: 22px;
  border: 1px solid rgba(196, 210, 250, 0.35);
  background: rgba(10, 14, 25, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.95);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, transform 0.12s ease;
}

.result-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.result-modal__close:active {
  transform: scale(0.96);
}

.result-modal__image {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.result-modal__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.result-modal__animate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: rgba(245, 158, 11, 0.22);
  color: rgba(255, 250, 235, 0.98);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.result-modal__animate:hover {
  background: rgba(245, 158, 11, 0.35);
  border-color: rgba(251, 191, 36, 0.85);
}

.result-modal__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 800;
}

.result-modal__download:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Мягкое затемнение внизу плашки — имитация глубины, не box-shadow */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.14) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0.4;
  pointer-events: none;
  border-radius: inherit;
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 0 auto;
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Те же кнопки, что у героя: hero-generator__link-btn + hero-cta-button--tight */
.site-header__nav .hero-generator__link-btn,
.site-header__nav .hero-cta-button--tight {
  margin-top: 0;
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
}

.site-header__nav .hero-generator__link-btn {
  padding: 7px 12px;
  font-size: 0.8rem;
}

.site-header__nav .hero-cta-button--tight {
  padding: 7px 10px;
  font-size: 0.8rem;
}

.site-header__drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.site-header__drawer-nav .hero-generator__link-btn,
.site-header__drawer-nav .hero-cta-button--tight {
  margin-top: 0;
  width: 100%;
}

.site-header__brand {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-header__brand-ico {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}

.site-header__brand:hover {
  color: rgba(255, 230, 179, 0.95);
}

.site-header__auth {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  text-align: right;
  min-width: 0;
}

.site-header__auth-placeholder {
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.75);
}

.site-header__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.site-header__gens {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  font-weight: 800;
  font-size: 0.82rem;
}

.site-header__topup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

.site-header__topup:hover {
  background: rgba(255, 255, 255, 0.18);
}

.site-header__sbp {
  width: 34px;
  height: 18px;
  display: inline-block;
  margin-left: 8px;
  filter: invert(1);
  opacity: 0.95;
}

.site-header__logout {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.site-header__logout:hover {
  background: rgba(255, 255, 255, 0.18);
}

.site-header__logout img {
  display: block;
  filter: invert(1);
  opacity: 0.92;
}

.site-header__burger {
  width: 20px;
  height: 20px;
  border-radius: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  display: none;
}

.site-header__burger:hover {
  opacity: 0.9;
}

.site-header__burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.site-header__drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 1002;
  padding: 12px 16px 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;

  background: rgba(10, 14, 25, 1.5);
  backdrop-filter: blur(16px) saturate(140%);
}

.site-header__drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-header__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.site-header__drawer-title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.site-header__drawer-close {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.site-header__drawer-close:hover {
  opacity: 0.85;
}

.site-header__auth--mobile {
  text-align: left;
}

.site-header__user-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.site-header__user-id {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__guest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header__login-link {
  color: rgba(255, 230, 179, 0.95);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header__login-link:hover {
  color: #ffffff;
}

@media (max-width: 520px) {
  .site-header__inner {
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-header {
    height: auto;
    min-height: 50px;
  }

  .site-header__auth {
    text-align: left;
  }

  .site-header__burger {
    display: inline-flex;
  }

  .site-header__auth:not(.site-header__auth--mobile) {
    display: none;
  }

  .site-header__user {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 100%;
  }

  .site-header__gens {
    flex-basis: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .site-header__burger {
    display: inline-flex;
  }

  .site-header__auth:not(.site-header__auth--mobile) {
    display: none;
  }
}

@media (min-width: 769px) {
  .site-header__auth:not(.site-header__auth--mobile) {
    display: block;
  }
}

@media (max-width: 768px) {
  .site-header__nav {
    display: none;
  }
}

/* --- Плавающая кнопка Telegram (FAB) --- */
.tg-fab {
  position: fixed;
  right: max(40px, env(safe-area-inset-right, 0px));
  bottom: max(40px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 24px);
  height: 50px;
  z-index: 2050;
  pointer-events: none;
  isolation: isolate;
  visibility: visible;
}

.tg-fab__hint {
  order: -1;
  pointer-events: none;
  visibility: visible;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e8eefc;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: tg-fab-hint 10s cubic-bezier(0.33, 1, 0.68, 1) infinite;
  will-change: opacity, transform;
}

.tg-fab__link {
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  text-align: center;
  text-decoration: none;
  background: #229ed9;
  border-radius: 50%;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.25);
  opacity: 1;
  transition: opacity 0.3s ease, background 0.3s ease, transform 0.2s ease;
  max-width: 100%;
}

.tg-fab__link:hover {
  opacity: 1;
  background: #1b8bc7;
}

.tg-fab__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.tg-fab__link::before,
.tg-fab__link::after {
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -11%;
  left: -11%;
  right: 0;
  bottom: 0;
  content: "";
  width: 90%;
  height: 90%;
  border: 8px solid rgba(0, 169, 221, 0.55);
  border-radius: 50%;
  animation: tg-fab-ripple 10s cubic-bezier(0.65, 0, 0.34, 1) infinite;
  z-index: -1;
  pointer-events: none;
}

.tg-fab__link::before {
  animation-delay: 0.5s;
}

.tg-fab__link::after {
  animation-delay: 0s;
}

.tg-fab__icon {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 22px;
  width: 22px;
  height: auto;
}

@keyframes tg-fab-ripple {
  from {
    opacity: 1;
    transform: scale3d(0.75, 0.75, 1);
  }
  to {
    opacity: 0;
    transform: scale3d(1.5, 1.5, 1);
  }
}

@keyframes tg-fab-hint {
  0%,
  50%,
  100% {
    opacity: 0;
    transform: translateX(10px) scale(0.96);
    visibility: hidden;
  }
  5% {
    opacity: 0.2;
    transform: translateX(4px) scale(0.98);
    visibility: visible;
  }
  20% {
    opacity: 1;
    transform: translateX(0) scale(1);
    visibility: visible;
  }
  38% {
    opacity: 1;
    transform: translateX(0) scale(1);
    visibility: visible;
  }
  50% {
    opacity: 0;
    transform: translateX(8px) scale(0.98);
    visibility: hidden;
  }
}

@media (max-width: 590px) {
  .tg-fab {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    gap: 8px;
    height: 50px;
  }

  .tg-fab__hint {
    font-size: 0.72rem;
    padding: 5px 10px;
    max-width: min(52vw, 200px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tg-fab__link {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .tg-fab__link::before,
  .tg-fab__link::after {
    border: 6px solid rgba(0, 169, 221, 0.55);
  }

  .tg-fab__icon {
    max-width: 22px;
    width: 22px;
  }
}
