:root {
  --bg: #fff7f5;
  --bg-2: #fff1ee;
  --card: #ffffff;
  --text: #231f20;
  --muted: #6e6364;
  --accent: #ed4b4b;
  --accent-strong: #d73a3a;
  --accent-soft: #ffe0dc;
  --dark: #231f20;
  --dark-soft: #3a3435;
  --success: #eaf8ef;
  --warning: #f2a24a;
  --border: #f1d3cf;
  --shadow: 0 20px 50px rgba(74, 24, 24, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(237, 75, 75, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
}
a { color: inherit; }
.shell {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 40px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(241, 211, 207, .75);
}
.site-header-inner {
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 44px; width: auto; display: block; }
.top-nav { display: flex; gap: 16px; align-items: center; }
.top-nav a {
  text-decoration: none;
  color: var(--dark-soft);
  font-weight: bold;
  padding: 10px 12px;
  border-radius: 12px;
}
.top-nav a:hover { background: rgba(237, 75, 75, 0.08); color: var(--accent-strong); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,251,250,1) 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.hero-gradient {
  background:
    radial-gradient(circle at top right, rgba(237, 75, 75, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fff7f4 100%);
}
.hero h1 { font-size: clamp(34px, 5vw, 60px); margin: 8px 0 12px; line-height: 1.02; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 820px; }
.hero-side { max-width: 360px; }
.brand-panel {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(237, 75, 75, .12);
  border-radius: 24px;
  padding: 18px;
}
.brand-panel img { display: block; width: min(100%, 280px); height: auto; margin: 0 auto 14px; }
.brand-panel.compact img { width: min(100%, 220px); }
.right-align { text-align: center; }
.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: bold;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.layout-two { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 20px; }
.section-head { margin: 6px 0 16px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(237, 75, 75, 0.22);
}
.button:hover { transform: translateY(-1px); }
.button.secondary {
  background: #fff;
  color: var(--dark);
  border: 1px solid var(--border);
  box-shadow: none;
}
.button.warning { background: linear-gradient(180deg, #efae58 0%, #e9922f 100%); color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff5f3;
  color: #594f50;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid #f5d8d3;
}
.badge.success { background: var(--success); border-color: #cbead5; }
.badge.muted { background: #f4f0f0; border-color: #ebe3e3; }
.poll-card h2 { font-size: 28px; margin: 10px 0 12px; }
.poll-card p { color: var(--muted); min-height: 60px; }
.poll-card-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 40px 28px; }
.empty-icon { width: 82px; height: 82px; opacity: .92; }
.question-block { padding: 18px 0; border-bottom: 1px solid var(--border); }
.question-block:last-child { border-bottom: 0; }
.question-title { display: block; font-size: 24px; font-weight: bold; margin-bottom: 10px; }
.help-text, .small-text { color: var(--muted); font-size: 14px; }
.option-list ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.option-list li { margin: 0; font-size: 18px; }
.option-list label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
}
.option-list input { accent-color: var(--accent); transform: scale(1.15); }
.url-box {
  background: #fff8f7;
  border: 1px dashed #e7b8b1;
  border-radius: 16px;
  padding: 14px;
  font-size: 14px;
  word-break: break-word;
}
.qr-image {
  width: 100%;
  max-width: 280px;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--border);
}
.qr-image.small { max-width: 180px; }
.sidebar-card, .branded-sidebar { text-align: center; }
.result-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.result-card h2 { font-size: clamp(24px, 3.5vw, 42px); margin: 0 0 18px; }
.result-row { margin-bottom: 18px; }
.result-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 10px;
}
.label-text { font-size: clamp(18px, 2.6vw, 32px); font-weight: bold; }
.numbers { font-size: clamp(16px, 2vw, 30px); font-weight: bold; color: var(--dark); }
.progress {
  width: 100%;
  height: 26px;
  background: #fde5e1;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ed4b4b, #ff8a65);
}
.messages { display: grid; gap: 10px; margin-bottom: 16px; }
.message {
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: bold;
  background: #fff1ef;
  border: 1px solid #f4d1cb;
}
.message.success { background: #eaf8ef; border-color: #cbead5; }
.message.error { background: #ffe4e4; border-color: #f0c0c0; }
.message.info { background: #fff1ef; }
.errorlist, .error-block { color: #b32929; font-weight: bold; }
.screen-mode .shell { width: min(1500px, calc(100% - 32px)); }
.screen-mode .card { padding: 30px; }
.screen-mode .site-header { display: none; }
.screen-mode .hero h1 { font-size: clamp(46px, 6vw, 78px); }
.screen-mode .label-text { font-size: clamp(24px, 3.2vw, 42px); }
.screen-mode .numbers { font-size: clamp(22px, 2.5vw, 36px); }
.screen-mode .progress { height: 34px; }
.screen-mode .badge { font-size: 18px; }

@media (max-width: 900px) {
  .hero, .layout-two, .site-header-inner, .result-header { grid-template-columns: 1fr; display: grid; }
  .hero-side, .screen-side, .hero-links { justify-self: start; width: 100%; max-width: none; }
  .top-nav { flex-wrap: wrap; }
  .brand-logo { height: 38px; }
}


.poll-focus-card {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.poll-title-area h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.poll-description {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.qr-results {
  width: min(100%, 360px);
  max-width: 360px;
  padding: 14px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(35, 31, 32, 0.08);
}

.screen-mode .qr-results {
  width: min(100%, 430px);
  max-width: 430px;
  padding: 18px;
}

@media (max-width: 768px) {
  body.poll-page {
    background: #fff;
  }

  .poll-page .site-header {
    display: none;
  }

  .poll-page .shell {
    width: min(100%, calc(100% - 24px));
    margin: 12px auto 24px;
  }

  .poll-page .messages {
    margin-bottom: 12px;
  }

  .poll-page .poll-focus-card {
    max-width: none;
    margin: 0;
    background: #fff;
    border: 0;
    box-shadow: none;
    padding: 4px 0 0;
  }

  .poll-page .poll-title-area h1 {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 8px;
  }

  .poll-page .poll-description {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .poll-page .question-block {
    padding: 12px 0 16px;
    border-bottom: 0;
  }

  .poll-page .question-title {
    display: none;
  }

  .poll-page .help-text {
    display: none;
  }

  .poll-page .option-list ul {
    gap: 10px;
    margin-top: 4px;
  }

  .poll-page .option-list li {
    font-size: 17px;
  }

  .poll-page .option-list label {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .poll-page .button {
    width: 100%;
    min-height: 52px;
    font-size: 17px;
  }

  .poll-page .small-text,
  .poll-page .meta-row,
  .poll-page .brand-panel,
  .poll-page .hero,
  .poll-page .sidebar-card,
  .poll-page .branded-sidebar,
  .poll-page .url-box,
  .poll-page .eyebrow {
    display: none !important;
  }

  .poll-page h2 {
    font-size: 24px;
    margin: 0 0 8px;
  }
}
