:root {
  --init-green: #00b34b;
  --dark-bg: #2a2a2a;
  --text-light: #cfcfcf;
  --text-white: #ffffff;
  --text-black: #000000;
  --animation-duration: 0.3s;
  --border-radius: 12px;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.25);
  --transition-ease: 0.3s ease-out;
  --font-family: "Montserrat", sans-serif;
  --font-size-base: clamp(14px, 2vw, 16px);
}

/* Base Styles */
* {
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}
 
/* Fast Request Button */
#aitele.click-fast-request.quizai {
  width: max-content;
  margin: 2% auto 5% auto;
  background: #3ca1ea;
  color: var(--text-white);
  border-left: 2px solid var(--text-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background var(--transition-ease), transform var(--transition-ease);
}

#aitele.click-fast-request.quizai:hover {
  background: #077ace;
  transform: translateY(-2px);
}

/* Container */
.container.container-generate {
  width: 80%;
  margin: 5% auto;
  padding: 1rem;
  background: rgba(34, 34, 34, 0.93);
  max-height: 80vh;
  overflow-y: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.container.container-generate::-webkit-scrollbar {
  width: 6px;
}

.container.container-generate::-webkit-scrollbar-track {
  background: #333;
}

.container.container-generate::-webkit-scrollbar-thumb {
  background: var(--init-green);
  border-radius: 3px;
}

/* Smart Lead */
.smart-lead {
  padding: 5%;
}

/* ===== Photo question modal ===== */
.wg28-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.wg28-photo-modal__box {
  width: min(520px, 100%);
  background: rgba(18, 24, 38, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  color: #fff;
}

.wg28-photo-modal__title {
  padding: 16px 16px 10px;
  font-size: 15px;
  font-weight: 700;
}

.wg28-photo-modal__preview-wrap {
  padding: 0 16px 12px;
}

.wg28-photo-modal__preview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
}

.wg28-photo-modal__note {
  margin-bottom: 10px;
  font-size: 13px;
  opacity: 0.92;
}

.wg28-photo-modal__img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.wg28-photo-modal__body {
  padding: 0 16px 16px;
}

.wg28-photo-modal__textarea {
  width: 100%;
  min-height: 88px;
  max-height: 160px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  box-sizing: border-box;
}

.wg28-photo-modal__textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.wg28-photo-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 16px 16px;
}

.wg28-photo-modal__btn {
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: .18s ease;
}

.wg28-photo-modal__btn--cancel {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: transparent;
  color: #fff;
}

.wg28-photo-modal__btn--cancel:hover {
  background: rgba(255, 255, 255, 0.05);
}

.wg28-photo-modal__btn--send {
  border: 0;
  background: linear-gradient(135deg, #00b154, #00d26a);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 177, 84, 0.28);
}

.wg28-photo-modal__btn--send:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 177, 84, 0.34);
}

/* ===== Extra question under uploaded photo ===== */
.wg28-chat-photo-extra {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.95;
}

/* ===== Assistant card for photo recognition ===== */
.ai-photo-caption p {
  margin: 0;
}

/* ===== Lightbox subtitle from alt ===== */
.lb-title {
  font-weight: 700;
  line-height: 1.4;
}

.lb-alt {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.82;
}



/* Social Buttons */
i.fab.fa-whatsapp,
i.fab.fa-telegram {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background var(--transition-ease), transform var(--transition-ease);
}

i.fab.fa-whatsapp {
  background: #37815a;
  color: var(--text-white);
  padding: 0.75rem;
  font-size: 1.5rem;
}

i.fab.fa-whatsapp:hover {
  background: #247349;
  transform: scale(1.05);
}

i.fab.fa-telegram {
  background: #1d98f2;
  color: var(--text-white);
  padding: 0.625rem;
  font-size: 1.875rem;
  margin-right: 0.0625rem;
}

i.fab.fa-telegram:hover {
  background: #1095f6;
  transform: scale(1.05);
}

a#telewhats.wh-button {
  text-decoration: none;
  padding: 0;
}

/* Generated Text */
#gentext p {
  opacity: 0.8;
  font-weight: 500;
  line-height: 1.5;
}

#gentext h3, #gentext h4, #gentext h5, #gentext h6 {
  font-size: 1.15rem;
  transition: opacity var(--animation-duration) ease-out;
  margin-bottom: 20px;
}

#gentext ul {
  font-weight: 500;
  line-height: 1.5;
}

/* Header */
header {
  margin-bottom: 1.25rem;
}

header h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0.625rem 0;
  background: var(--init-green);
  padding: 0.625rem;
  border-radius: var(--border-radius);
  animation: fadeIn 0.5s ease;
}

header p {
  font-size: 0.875rem;
  margin: 0.3125rem 0;
  background: #343434;
  padding: 0.625rem;
  border-radius: var(--border-radius);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none; transition: none; }
}


 


/* Grid Container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.625rem;
  padding: 0.625rem;
}

.grid-item {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--transition-ease);
  margin-bottom: 0.625rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.grid-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  width: 80%;
  max-height: 80%;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.lightbox:target {
  display: flex;
}

      /* чтобы Safari не зумил поля <16px */
      .wg28-chat textarea#intentInput,
      .wg28-chat input.add-phone,
      .wg28-chat input[type="tel"] {
        font-size: 16px !important;
      }

/* Responsive - Mobile First */
@media (max-width: 600px) {
        /* чтобы Safari не зумил поля <16px */
      .wg28-chat textarea#intentInput,
      .wg28-chat input.add-phone,
      .wg28-chat input[type="tel"] {
        font-size: 16px !important;
      }
  .aiblock-trans, .aiblock-white, .aiblock-green, .aiblock-black, .aiblock-red {
    padding: 3%;
  }

  .int1 {
    font-size: 1rem;
    line-height: 1.125rem;
  }

  .int2 {
    font-size: 0.75rem;
    line-height: 1.125rem;
  }

  #inputLabel {
    font-size: 0.75rem;
  }

  #gentext ul, #gentext p {
    font-size: 0.875rem;
    line-height: 1.375rem;
    font-weight: 500;
  }
}

@media (max-width: 768px) {
  
  
  h1 {
font-size: 120%;
line-height: 28px !important;
}
  h2 {
    font-size: 130%;
    line-height: 36px;
    padding-bottom: 20px;
    line-height: 24px;
}
    h3 {
        font-size: 110% !important;
        line-height: 28px !important;
        margin-top: 20px;
          padding-bottom: 20px;
      line-height: 36px;
}
}
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .container.container-generate {
    width: 70%;
    margin: 10% auto;
  }

 

  .suggestionsChat {
    font-size: 0.625rem;
    top: -3.125rem;
  }
}

@media (max-width: 1268px) {
  .container.container-generate {
    width: 85%;
  }

}