/* „Виж своя сайт“: генератор. Ползва токените и бутоните от ../style.css. */
.gen-page { background: var(--bg); }
.gen-top { position: sticky; background: rgba(251, 247, 240, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-accent { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.gen-hero { padding: clamp(48px, 8vw, 104px) 0 36px; }
.gen-title { font: 600 clamp(2.4rem, 6vw, 5rem)/1.02 "Unbounded", sans-serif; letter-spacing: -.035em; margin: 0; max-width: 16ch; text-wrap: balance; }
.gen-sub { margin: 22px 0 0; font-size: 1.15rem; color: var(--muted); max-width: 56ch; }

.gen-form { margin-top: 40px; display: grid; grid-template-columns: 1.4fr 1.1fr .9fr auto; gap: 14px; align-items: end;
  padding: 16px; background: var(--card); border-radius: var(--radius); }
.gen-form label { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.gen-form em { font-style: normal; font-weight: 500; color: var(--muted); }
.gen-form input, .gen-form select { font: 600 1rem "Manrope", sans-serif; color: var(--ink); width: 100%; min-height: 52px; padding: 0 16px;
  border: 2px solid transparent; border-radius: 10px; background: var(--bg-alt); transition: border-color .25s; }
.gen-form select { appearance: none; padding-right: 40px; background-repeat: no-repeat; background-position: calc(100% - 16px) 50%; background-size: 12px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317201b' stroke-width='2'/%3E%3C/svg%3E"); }
.gen-form input:focus, .gen-form select:focus { outline: none; border-color: var(--brand); }
.gen-form .btn { min-height: 52px; white-space: nowrap; }

/* сцена: компютър + телефон */
.gen-stage { padding: 28px 0 24px; }
.view-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-alt); margin-bottom: 22px; }
.view-switch button { font: 700 .88rem "Manrope", sans-serif; color: var(--muted); background: none; border: 0; padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.view-switch button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.gstage { position: relative; padding-right: clamp(60px, 9vw, 140px); }
.gdesk { border-radius: var(--radius); overflow: hidden; background: #fff; }
.gdesk-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #ece4d6; }
.gdesk-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9cfbf; }
.gdesk-bar .url { margin-left: 14px; flex: 0 1 380px; padding: 5px 14px; border-radius: 8px; background: #fff; font-size: .82rem; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gdesk-screen { position: relative; aspect-ratio: 16 / 9.6; overflow: hidden; background: var(--bg-alt); }
.gdesk-screen iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 768px; border: 0; transform-origin: 0 0; }
.gphone { position: absolute; right: 0; bottom: -28px; width: clamp(170px, 21vw, 280px); aspect-ratio: 390 / 812; padding: 10px; border-radius: 40px; background: #17201b;
}
.gphone-screen { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--bg-alt); }
.gphone-screen iframe { position: absolute; top: 0; left: 0; width: 390px; height: 812px; border: 0; transform-origin: 0 0; }

.gstage[data-view="phone"] { padding-right: 0; display: grid; place-items: center; }
.gstage[data-view="phone"] .gdesk { display: none; }
.gstage[data-view="phone"] .gphone { position: relative; right: auto; bottom: auto; width: min(360px, 86vw); }

.gen-cta { padding: 72px 0 24px; }
.gen-cta-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--brand); color: var(--brand-ink); }
.gen-cta-in h2, .gen-cta-in h3 { font: 600 clamp(1.9rem, 3.6vw, 3rem)/1.05 "Unbounded", sans-serif; letter-spacing: -.03em; margin: 0; text-wrap: balance; color: var(--brand-ink); }
.gen-cta-in p { margin: 16px 0 0; color: #d5e4dc; font-size: 1.08rem; max-width: 52ch; }
.gen-actions { display: grid; gap: 12px; }
.gen-actions .btn { justify-content: center; }
.gen-cta-in .btn-ghost { color: var(--bg); border-color: rgba(251, 247, 240, .45); }
.gen-cta-in .btn-ghost::before { background: var(--bg); }
.gen-cta-in .btn-ghost:hover { color: var(--ink); border-color: var(--bg); }
.gen-more { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.gen-more a, .gen-more button { font: 700 .9rem "Manrope", sans-serif; color: var(--bg); background: none; text-decoration: none; cursor: pointer;
  padding: 9px 16px; background: rgba(251, 247, 240, .12); border: 0; border-radius: 999px; }
.gen-more a:hover, .gen-more button:hover { background: rgba(251, 247, 240, .24); }
.gen-fine { color: var(--muted); font-size: .86rem; margin-top: 14px; margin-bottom: 64px; }
.gen-foot { background: var(--bg-alt); padding: 24px 0; font-size: .9rem; color: var(--ink-2); }
.gen-foot .wrap { display: flex; justify-content: space-between; gap: 16px; }
.gen-foot a { color: var(--ink); font-weight: 700; text-decoration: none; }

@media (max-width: 960px) {
  .gen-form { grid-template-columns: 1fr 1fr; }
  .gen-form .f-name { grid-column: 1 / -1; }
  .gen-form .btn { grid-column: 1 / -1; justify-content: center; }
  .gen-cta-in { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .gen-form { grid-template-columns: 1fr; padding: 14px; }
  .view-switch { display: none; }
  /* на телефон показваме само телефона: десктоп в 350px не се чете */
  .gstage { padding-right: 0; display: grid; place-items: center; }
  .gstage .gdesk { display: none; }
  .gstage .gphone { position: relative; right: auto; bottom: auto; width: min(330px, 84vw); }
  .gen-cta { padding-top: 48px; }
  .gen-foot .wrap { flex-direction: column; }
}

/* личен линк от писмо: по-малко заглавие, сайтът веднага се вижда */
.personal .gen-hero { padding-bottom: 8px; }
.personal .gen-title { font-size: clamp(1.9rem, 4.2vw, 3.4rem); max-width: 24ch; }
.personal .gen-sub { margin-top: 14px; }
.gen-change { margin: 72px 0 0; font-weight: 700; color: var(--ink-2); }
.personal .gen-form { margin-top: 12px; }

/* раздел #tvoyat-sait на главната */
.gen-sec .gen-form { margin-top: 0; }
.gen-sec .gen-cta-in { margin-top: 64px; }
.gen-sec .gen-fine { margin: 14px 0 0; }
@media (max-width: 640px) { .gen-sec .gen-cta-in { margin-top: 44px; } }
@media (max-width: 760px), (pointer: coarse) { .gen-more a, .gen-more button { min-height: 44px; display: inline-flex; align-items: center; } }

/* „Звъннете ми“ на личния пример (29.10) */
.callback { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(251, 247, 240, .08); }
.callback p { margin: 0; font-size: .95rem; color: #d5e4dc; }
.cb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.callback input { min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(251, 247, 240, .35); background: rgba(251, 247, 240, .95); color: var(--ink); font: inherit; font-size: 16px; }
.callback .cb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.callback .cb-msg:empty { display: none; }
.callback.done .cb-row, .callback.done button { display: none; }
@media (max-width: 420px) { .cb-row { grid-template-columns: 1fr; } }
