:root {
  --surface: rgba(255, 250, 243, 0.84);
  --surface-strong: #fffdf9;
  --text: #1d2935;
  --muted: #61717f;
  --line: rgba(29, 41, 53, 0.12);
  --accent: #df6c45;
  --accent-soft: rgba(223, 108, 69, 0.12);
  --focus: #1f8f84;
  --focus-soft: rgba(31, 143, 132, 0.12);
  --warning: #8f4d1d;
  --warning-soft: rgba(223, 108, 69, 0.12);
  --success: #2e9d6c;
  --success-soft: rgba(46, 157, 108, 0.12);
  --dark-soft: rgba(29, 41, 53, 0.08);
  --shadow: 0 20px 50px rgba(98, 77, 54, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(223, 108, 69, 0.16), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(31, 143, 132, 0.14), transparent 24%),
    linear-gradient(180deg, #f8f2e9 0%, #f3ece3 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-size: 1.2rem;
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(135deg, var(--accent), #f2a85f);
}

.brand-copy,
.section-heading {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
.hero h1,
.section-heading h2,
.service-card h3,
.screen-topbar h3,
.stepper-card h3,
.view-head h4,
.snapshot-card strong,
.offer-card h4 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy small,
.topnav a,
.hero-text,
.eyebrow,
.service-card p,
.mini-label,
.hero-note p,
.step-item p,
.timeline-line,
.summary-line span,
.contact-card p,
.offer-role,
.offer-copy,
.view-copy,
.snapshot-card p,
.next-action,
.scenario-card p {
  color: var(--muted);
}

.topnav {
  display: flex;
  gap: 24px;
}

.ghost-button,
.secondary-button,
.primary-button,
.scenario-pill {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ghost-button,
.secondary-button,
.scenario-pill {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #f4a261);
  box-shadow: 0 14px 28px rgba(223, 108, 69, 0.28);
}

.scenario-pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--focus), #49b0a6);
  box-shadow: none;
}

.ghost-button:hover,
.secondary-button:hover,
.primary-button:hover,
.scenario-pill:hover {
  transform: translateY(-1px);
}

.secondary-button:disabled,
.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  padding: 54px 0 36px;
  align-items: center;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
}

.hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.96;
  max-width: 10.5ch;
}

.hero-text {
  max-width: 60ch;
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 28px 0 32px;
}

.hero-main-button {
  min-width: 220px;
  font-size: 1.02rem;
  font-weight: 800;
}

.hero-pro-button {
  background: linear-gradient(135deg, rgba(31, 143, 132, 0.14), rgba(255, 255, 255, 0.92));
  box-shadow: inset 0 0 0 1px rgba(31, 143, 132, 0.18);
}

.audience-strip,
.info-grid,
.benefits-grid,
.map-card,
.map-board {
  display: grid;
  gap: 18px;
}

.audience-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 26px;
}

.audience-card,
.info-card,
.benefit-card,
.map-card,
.district-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.audience-card,
.info-card,
.benefit-card,
.district-card {
  padding: 20px;
}

.audience-card strong,
.info-card strong,
.benefit-card strong,
.district-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
}

.info-card p,
.district-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.benefit-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.hero-stats,
.service-grid,
.app-shell,
.view-grid,
.scenario-toolbar,
.screen-actions,
.scenario-actions,
.offer-list.embedded {
  display: grid;
  gap: 18px;
}

.hero-stats {
  padding: 0;
  margin: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stats li,
.hero-note,
.service-card,
.stepper-card,
.screen-card,
.contact-card,
.view-card,
.snapshot-card,
.offer-card,
.scenario-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.hero-stats li {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.hero-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 246, 236, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: var(--shadow);
}

.hero-figure img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
  filter: sepia(0.18) hue-rotate(-10deg) saturate(1.2) brightness(1.08) contrast(0.97) drop-shadow(0 22px 34px rgba(98, 77, 54, 0.16));
}

.hero-note,
.service-card,
.stepper-card,
.screen-card,
.contact-card,
.view-card,
.snapshot-card,
.offer-card,
.scenario-card {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.hero-note strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 1.55rem;
}

.services,
.order-start,
.why-us,
.benefits,
.map-section,
.journey,
.contact {
  padding: 36px 0;
}

.section-heading {
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 20ch;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid,
.benefits-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefits-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  display: grid;
  gap: 14px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
}

.service-card.active {
  border-color: rgba(31, 143, 132, 0.36);
  box-shadow: inset 0 0 0 2px rgba(31, 143, 132, 0.18), var(--shadow);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 143, 132, 0.18), rgba(223, 108, 69, 0.2));
}

.service-card h3,
.snapshot-card strong,
.view-head h4 {
  margin: 0;
}

.service-card p,
.view-copy,
.snapshot-card p,
.contact-card p,
.order-start-copy,
.next-action,
.scenario-card p {
  margin: 0;
  line-height: 1.6;
}

.order-start-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.order-start-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-start-head h3 {
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.quick-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quick-form-wide {
  grid-column: 1 / -1;
}

.order-start-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-step {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(29, 41, 53, 0.03);
}

.contact-step.hidden {
  display: none;
}

.contact-step .offer-list.embedded {
  margin-top: 4px;
}

.contact-step .summary-box + .order-start-actions {
  margin-top: 2px;
}

.order-start-head.compact h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

.service-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pill,
.status-pill,
.rating-badge,
.view-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.pill {
  background: var(--accent-soft);
}

.pill.outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.app-shell {
  grid-template-columns: 320px 1fr;
  align-items: start;
}

.stepper-card {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.stepper-card h3,
.screen-topbar h3 {
  margin: 0;
}

.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.step-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.step-item span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(29, 41, 53, 0.08);
  font-weight: 800;
}

.step-item strong {
  display: block;
  margin-bottom: 4px;
}

.step-item.active span {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #f4a261);
}

.step-item.done span {
  color: var(--focus);
  background: var(--focus-soft);
}

.screen-card {
  display: grid;
  gap: 18px;
}

.screen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  color: var(--focus);
  background: var(--focus-soft);
  font-weight: 700;
}

.scenario-toolbar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.map-card {
  grid-template-columns: 1.1fr 0.7fr 0.6fr;
  padding: 24px;
}

.map-board {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(248, 244, 237, 0.96));
}

.map-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 700'%3E%3Cdefs%3E%3Cfilter id='s' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeDropShadow dx='0' dy='10' stdDeviation='16' flood-color='%23cbb59b' flood-opacity='.22'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M127 575c-45-44-60-118-27-180 24-44 18-89 56-121 36-31 96-27 138-55 37-25 54-78 96-99 52-26 111-7 169-10 72-3 138-44 204-22 73 24 96 104 134 170 34 58 99 98 107 165 9 74-41 148-102 192-60 43-140 37-212 35-64-2-128 10-192 16-70 6-142 21-209-2-64-22-110-44-162-89z' fill='%23f3e4d2' filter='url(%23s)'/%3E%3Cpath d='M511 84c44 29 62 63 81 108 17 40 35 76 70 101 39 29 88 47 119 84 17 20 27 45 24 73-6 53-37 100-78 134-47 38-106 61-162 79-45 15-87 35-121 67-35 34-53 79-76 121-8 14-18 29-34 33-16 4-32-7-39-22-10-20-5-43 0-64 9-41 18-84 6-125-12-40-45-70-76-97-31-27-64-53-83-89-30-56-22-129 14-181 38-55 99-90 157-118 42-20 88-34 128-58 26-16 47-40 70-60z' fill='none' stroke='%23d7c0aa' stroke-width='20' stroke-linecap='round' stroke-linejoin='round' opacity='.65'/%3E%3Cpath d='M172 548c68-40 123-105 161-182 28-58 51-120 98-164 64-61 161-79 242-109 80-30 151-75 221-126' fill='none' stroke='%23bfdde6' stroke-width='34' stroke-linecap='round' stroke-linejoin='round' opacity='.92'/%3E%3Cpath d='M180 554c74-43 128-110 165-188 27-56 50-115 96-158 63-60 158-77 238-106 79-28 149-72 217-122' fill='none' stroke='%239fd0dd' stroke-width='10' stroke-linecap='round' stroke-linejoin='round' opacity='.95'/%3E%3Cpath d='M257 185l52 28M332 150l40 30M687 220l48-12M662 552l58 21M365 560l-18 52M505 472l48 42' stroke='%23d8c8b7' stroke-width='6' stroke-linecap='round' opacity='.65'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0.98;
}

.map-board::after {
  content: "Vilniaus seniūnijų aktyvumo žemėlapis";
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(29, 41, 53, 0.44);
}

.district-map-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.river-line {
  fill: none;
  stroke: rgba(131, 197, 214, 0.95);
  stroke-width: 34;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.district-group {
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.district-group .district-shape {
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 6;
  transition: transform 180ms ease, opacity 180ms ease, stroke 180ms ease, filter 180ms ease;
}

.district-group.hot .district-shape {
  fill: rgba(234, 120, 72, 0.9);
}

.district-group.balanced .district-shape {
  fill: rgba(233, 214, 184, 0.92);
}

.district-group.cool .district-shape {
  fill: rgba(77, 176, 169, 0.88);
}

.district-group:hover .district-shape,
.district-group.active .district-shape {
  filter: drop-shadow(0 10px 14px rgba(29, 41, 53, 0.16));
  stroke: rgba(255, 255, 255, 1);
}

.district-group.active .district-shape {
  stroke-width: 8;
}

.district-label,
.district-stat {
  font-family: "Manrope", sans-serif;
  text-anchor: middle;
  pointer-events: none;
}

.district-label {
  font-size: 18px;
  font-weight: 800;
  fill: #20303d;
}

.district-stat {
  font-size: 16px;
  font-weight: 700;
  fill: rgba(29, 41, 53, 0.78);
}

.district-group.hot .district-label,
.district-group.hot .district-stat,
.district-group.cool .district-label,
.district-group.cool .district-stat {
  fill: #fff;
}

.map-detail {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
}

.map-detail strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.map-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.map-legend {
  display: grid;
  gap: 14px;
  align-content: start;
}

.legend-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
}

.legend-row small {
  grid-column: 2;
  color: var(--muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.legend-dot.hot {
  background: var(--accent);
}

.legend-dot.balanced {
  background: #d2ab7c;
}

.legend-dot.cool {
  background: var(--focus);
}

.feedback-banner {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.feedback-banner.hidden,
.empty-state.hidden,
.offer-list.hidden {
  display: none;
}

.feedback-banner.info {
  background: rgba(31, 143, 132, 0.09);
  color: var(--focus);
}

.feedback-banner.success {
  background: var(--success-soft);
  color: var(--success);
}

.feedback-banner.warning {
  background: rgba(223, 108, 69, 0.1);
  color: var(--warning);
}

.order-snapshot,
.view-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-snapshot {
  display: grid;
  gap: 16px;
}

.snapshot-card {
  display: grid;
  gap: 8px;
}

.view-card {
  display: grid;
  gap: 16px;
}

.rating-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(29, 41, 53, 0.04);
}

.rating-panel.hidden {
  display: none;
}

.rating-panel strong {
  display: block;
  margin: 8px 0 6px;
}

.rating-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.client-view {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 238, 0.9));
}

.pro-view {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 251, 249, 0.92));
}

.crm-view {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 246, 248, 0.92));
}

.view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.view-badge {
  background: var(--accent-soft);
  color: var(--warning);
  font-weight: 700;
}

.view-badge.alt {
  background: var(--focus-soft);
  color: var(--focus);
}

.view-badge.dark {
  background: var(--dark-soft);
  color: var(--text);
}

.summary-box,
.timeline-card,
.empty-state,
.selected-offer {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.summary-box {
  display: grid;
  gap: 12px;
}

.summary-box.compact {
  gap: 10px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.offer-list.embedded {
  grid-template-columns: 1fr;
}

.offer-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.offer-card.selected {
  box-shadow: inset 0 0 0 2px rgba(31, 143, 132, 0.28), var(--shadow);
}

.offer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.offer-role,
.offer-copy {
  margin: 0;
  line-height: 1.6;
}

.rating-badge {
  color: var(--focus);
  background: var(--focus-soft);
  font-weight: 700;
}

.selected-offer {
  display: grid;
  gap: 8px;
}

.selected-offer strong,
.empty-state strong,
.scenario-card strong {
  display: block;
}

.next-action {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(29, 41, 53, 0.04);
}

.timeline-card {
  display: grid;
  gap: 10px;
}

.timeline-line {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(29, 41, 53, 0.04);
}

.timeline-line.active {
  color: var(--text);
  background: rgba(223, 108, 69, 0.12);
}

.timeline-line.warning {
  background: rgba(223, 108, 69, 0.18);
  color: var(--warning);
}

.scenario-card {
  display: grid;
  gap: 10px;
  background: rgba(29, 41, 53, 0.03);
}

.scenario-actions,
.screen-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.small-button {
  padding: 10px 14px;
}

.contact-card {
  line-height: 1.7;
}

.admin-only {
  display: none;
}

@media (max-width: 1180px) {
  .scenario-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .service-grid,
  .view-grid,
  .order-snapshot,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-board {
    min-height: 480px;
  }
}

@media (max-width: 960px) {
  .topbar {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topnav {
    display: none;
  }

  .hero,
  .app-shell,
  .service-grid,
  .quick-form,
  .view-grid,
  .order-snapshot,
  .audience-strip,
  .info-grid,
  .benefits-grid,
  .map-card,
  .map-board,
  .service-meta,
  .screen-actions,
  .scenario-actions,
  .scenario-toolbar {
    grid-template-columns: 1fr;
  }

  .map-board {
    min-height: 560px;
  }

  .hero-actions,
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stepper-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero h1 {
    max-width: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .scenario-pill {
    width: 100%;
  }
}
