/* klicken.ru fake-door landing — без сборки, для shared hosting */

:root {
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --accent-500: #f97316;
  --accent-600: #ea580c;
  --surface: #f8fafc;
  --surface-elevated: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --error: #dc2626;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow: 0 10px 40px rgba(15, 118, 110, 0.08);
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand-700);
  text-decoration: none;
}

a:hover {
  color: var(--brand-800);
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.logo span {
  color: var(--brand-600);
}

.nav {
  display: none;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a:hover {
  color: var(--brand-700);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  padding: 0.75rem 1.5rem;
  background: var(--accent-500);
  color: #fff;
  box-shadow: 0 1px 3px rgba(249, 115, 22, 0.3);
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-600);
}

.btn--secondary {
  padding: 0.75rem 1.5rem;
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover:not(:disabled) {
  border-color: var(--brand-200);
  background: var(--brand-50);
}

.btn--lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
}

/* Hero */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--brand-100) 0%, transparent 55%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .hero__inner {
    padding-top: 5.5rem;
    padding-bottom: 6rem;
  }
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.hero__grid > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
  }
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .hero__aside .access-card {
    flex-shrink: 0;
  }

  .hero__aside .dashboard-mockup {
    flex: 1;
    margin-top: 0;
    display: flex;
    flex-direction: column;
  }

  .hero__aside .dashboard-mockup__body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .hero__aside .dashboard-mockup__chart {
    flex: 1;
    min-height: 6rem;
  }
}

.badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-800);
}

.hero h1 {
  margin: 1.5rem 0 0;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.75rem;
  }
}

.hero__lead {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero__stats {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--brand-50);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--brand-700);
}

.stat-card span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Form card */
.access-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .access-card {
    padding: 2rem;
  }
}

.access-card h2 {
  margin: 0;
  font-size: 1.375rem;
}

.access-card p {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.form {
  margin-top: 1.25rem;
}

.form__field {
  margin-bottom: 0.875rem;
}

.form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form input {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form input:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.form input.is-error {
  border-color: #fca5a5;
}

.form__error {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--error);
}

.form__note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  text-align: center;
}

.form-success strong {
  display: block;
  color: var(--brand-800);
}

.form-success p {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-error-banner {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: #fef2f2;
  border: 1px solid #fecaca;
  font-size: 0.875rem;
  color: var(--error);
  text-align: center;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--surface-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__head h2 {
  margin: 0;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
}

.section__head p {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* Scenario chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chip {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--brand-300);
  color: var(--brand-800);
}

.chip.is-active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.flow-demo {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
}

.flow-demo__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .flow-demo__row {
    flex-direction: row;
    align-items: center;
  }
}

.flow-box {
  flex: 1;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.875rem;
}

.flow-box--highlight {
  border: 2px solid var(--brand-300);
  background: var(--brand-50);
}

.flow-box strong {
  display: block;
}

.flow-box span {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.flow-box code {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
}

.flow-arrow {
  text-align: center;
  color: var(--text-muted);
}

/* Features grid */
.features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
}

.feature h3 {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
}

.feature p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.feature__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
}

.step__num {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--brand-600);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.step h3 {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
}

.step p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-elevated);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0.5rem 0 0;
}

.hidden {
  display: none !important;
}

/* Dashboard mockup */
.dashboard-mockup {
  margin-top: 0;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-mockup__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #f1f5f9;
}

.dashboard-mockup__chrome span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: #cbd5e1;
}

.dashboard-mockup__title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dashboard-mockup__body {
  padding: 1rem;
}

.dashboard-mockup__metrics {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .dashboard-mockup__metrics {
    grid-template-columns: 1fr 1.4fr;
  }
}

.dashboard-mockup__metric {
  padding: 0.875rem;
  border-radius: var(--radius);
  background: var(--brand-50);
}

.dashboard-mockup__metric strong {
  display: block;
  font-size: 1.375rem;
  color: var(--brand-700);
}

.dashboard-mockup__metric span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dashboard-mockup__metric--accent {
  background: #fff7ed;
}

.dashboard-mockup__metric--accent strong {
  font-size: 0.9375rem;
  color: var(--accent-600);
  word-break: break-all;
}

.dashboard-mockup__chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 5.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--surface);
}

.dashboard-mockup__chart div {
  flex: 1;
  height: var(--h);
  border-radius: 0.35rem 0.35rem 0 0;
  background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 100%);
}

.dashboard-mockup__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Section helpers */
.section__label {
  max-width: 40rem;
  margin: 0 auto 1rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}

.steps--spaced {
  margin-top: 2.5rem;
}

.container--narrow {
  max-width: 32rem;
}

/* UTM generator */
.utm-card {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .utm-card {
    padding: 2rem;
  }
}

.utm-form {
  margin-top: 0;
}

.utm-form .form__field {
  margin-bottom: 1rem;
}

.utm-form select,
.utm-form input[type='url'],
.utm-form input[type='text'] {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.utm-form select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
}

.utm-form select:focus,
.utm-form input:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.utm-form input.is-error {
  border-color: #fca5a5;
}

.utm-fields {
  margin: 1.5rem 0 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.utm-fields__title {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.utm-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .utm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.utm-grid .form__field {
  margin-bottom: 0;
}

.utm-grid__wide {
  grid-column: 1 / -1;
}

.utm-result {
  min-height: 3.5rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  border: 1px dashed var(--brand-200);
  background: var(--brand-50);
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  word-break: break-all;
  color: var(--text);
}

.utm-result--empty {
  font-family: var(--font);
  color: var(--text-muted);
}

.utm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.utm-cta {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  text-align: center;
}

.utm-cta p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--brand-800);
}

/* FAQ */
.faq {
  max-width: 40rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  overflow: hidden;
}

.faq__item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq__item summary::after {
  content: '+';
  float: right;
  color: var(--brand-600);
  font-weight: 700;
}

.faq__item[open] summary::after {
  content: '−';
}

.faq__item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Legal pages */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page__inner {
  max-width: 42rem;
}

.legal-page__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.legal-page h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.legal-page__meta {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.legal-page__content {
  margin-top: 2rem;
}

.legal-page__content h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.125rem;
}

.legal-page__content p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}
