:root {
  --ink: #071323;
  --ink-2: #0b1f37;
  --ink-3: #123353;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --surface-blue: #eaf3ff;
  --line: #d9e3ef;
  --line-strong: #b7c8dc;
  --text: #122033;
  --muted: #5f6f84;
  --blue: #0868e8;
  --blue-2: #0b87ff;
  --teal: #19c7a6;
  --green: #0c9f6f;
  --amber: #f59e0b;
  --red: #e11d48;
  --shadow: 0 22px 60px rgba(7, 19, 35, 0.16);
  --radius: 8px;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface-soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(25, 199, 166, 0.78);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: rgba(7, 19, 35, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffffff;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta,
.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 12px 28px rgba(8, 104, 232, 0.28);
}

.header-cta:hover,
.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(8, 104, 232, 0.34);
}

.button-secondary {
  color: var(--ink-2);
  background: #ffffff;
  border-color: var(--line-strong);
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 76% 20%, rgba(8, 104, 232, 0.34), transparent 28%),
    linear-gradient(135deg, #06111f 0%, #0a2544 52%, #061829 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.62fr);
  gap: 34px;
  align-items: center;
  min-height: 520px;
  padding: 68px 0 48px;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  max-width: 940px;
  font-size: clamp(2.7rem, 4.8vw, 4.05rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-items: center;
  margin-top: 30px;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.privacy-note span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
}

.hero-visual {
  position: relative;
  min-height: 330px;
}

.map-panel,
.search-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(6px);
}

.map-panel {
  inset: 18px 132px auto 0;
  height: 220px;
  transform: rotate(-14deg);
  overflow: hidden;
}

.map-panel::before,
.map-panel::after,
.map-line {
  content: "";
  position: absolute;
  background: rgba(154, 187, 230, 0.32);
}

.map-panel::before {
  width: 180%;
  height: 3px;
  left: -40%;
  top: 82px;
}

.map-panel::after {
  width: 3px;
  height: 150%;
  left: 45%;
  top: -20%;
}

.map-line {
  width: 3px;
  height: 160%;
  top: -30%;
}

.line-one {
  left: 22%;
  transform: rotate(28deg);
}

.line-two {
  left: 70%;
  transform: rotate(-22deg);
}

.line-three {
  width: 160%;
  height: 3px;
  left: -20%;
  top: 145px;
  transform: rotate(26deg);
}

.pin {
  position: absolute;
  z-index: 2;
  left: 48%;
  top: 24px;
  width: 38px;
  height: 38px;
  border: 8px solid var(--blue-2);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #062747;
  box-shadow: 0 12px 24px rgba(8, 104, 232, 0.42);
}

.search-card {
  right: 20px;
  top: 80px;
  width: 270px;
  min-height: 210px;
  padding: 26px;
  border-radius: var(--radius);
}

.search-bar,
.check-row {
  height: 14px;
  border-radius: 8px;
  background: rgba(190, 213, 243, 0.72);
}

.search-bar {
  width: 78%;
  margin-bottom: 30px;
}

.check-row {
  position: relative;
  width: 90%;
  margin: 18px 0 0 36px;
}

.check-row::before {
  content: "✓";
  position: absolute;
  left: -36px;
  top: -4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #ffffff;
  background: var(--blue-2);
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 900;
}

.check-row.short {
  width: 64%;
}

.hero-seo-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 160px;
  opacity: 0.16;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.32));
}

.intro-section {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
}

.intro-section h2,
.service-cta h2,
.panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.intro-section p,
.service-cta p,
.panel-heading p,
.empty-state p,
.score-summary p {
  margin: 8px 0 0;
  color: var(--muted);
}

.intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.intro-points span {
  padding: 10px 14px;
  color: var(--ink-2);
  background: var(--surface-blue);
  border: 1px solid #cbe0fa;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}

.generator-section {
  padding: 40px 0 26px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.tool-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 42px rgba(7, 19, 35, 0.08);
}

.form-panel,
.result-panel {
  padding: 24px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-heading > p {
  max-width: 380px;
  font-size: 0.95rem;
}

.section-number {
  margin: 0 0 6px;
  color: var(--blue);
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 22px;
}

.field,
.choice-group {
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.choice-group legend {
  display: block;
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 900;
}

.field label span,
.choice-group legend span {
  color: var(--muted);
  font-weight: 700;
}

.required {
  color: var(--red);
}

input[type="text"],
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

input[type="text"]:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 104, 232, 0.13);
  outline: 0;
}

.field-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--red);
  font-size: 0.83rem;
  font-weight: 800;
}

.choice-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 8px 0;
  color: #203047;
  font-size: 0.9rem;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.result-panel {
  position: sticky;
  top: 92px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 38px;
  text-align: center;
}

.empty-state img {
  width: 92px;
  margin-bottom: 18px;
}

.empty-state h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
}

.result-content {
  padding-top: 22px;
}

.score-summary {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #f7fbff, #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.score-ring {
  display: grid;
  place-items: center;
  align-content: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
    conic-gradient(var(--score-color, var(--teal)) calc(var(--score) * 1%), #e5edf6 0);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px rgba(7, 19, 35, 0.06);
}

.score-ring span {
  font-size: 3rem;
  line-height: 0.95;
  font-weight: 900;
}

.score-ring small {
  color: var(--muted);
  font-weight: 800;
}

.score-label,
.date-line {
  font-size: 0.88rem;
  font-weight: 900;
}

.score-summary h3 {
  margin: 5px 0 0;
  color: var(--score-color, var(--green));
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.category-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.category-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.category-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  color: var(--ink-2);
  background: #ffffff;
  border: 0;
  text-align: left;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 900;
}

.category-title {
  display: block;
  font-weight: 900;
}

.category-intro {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.category-status {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.category-body {
  padding: 0 16px 16px 60px;
}

.category-body p {
  margin: 0 0 10px;
  color: var(--muted);
}

.category-body ul {
  margin: 0;
  padding-left: 18px;
}

.category-body li {
  margin: 7px 0;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.copy-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--green);
  font-weight: 900;
}

.service-cta {
  color: #ffffff;
  background: linear-gradient(135deg, #06213a, #083760 54%, #061829);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.cta-inner {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
}

.cta-rocket {
  width: 72px;
}

.service-cta h2,
.service-cta p {
  color: #ffffff;
}

.service-cta p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
}

.cta-links a {
  color: rgba(255, 255, 255, 0.86);
}

.cta-links a:hover {
  color: #ffffff;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 48px;
  padding: 34px 0;
}

.footer-brand {
  color: #ffffff;
  text-transform: none;
}

.footer-brand img {
  width: 48px;
  filter: brightness(0) invert(1);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 7px 0;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer p {
  margin: 12px 0 0;
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero-grid,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-visual {
    min-height: 280px;
  }

  .result-panel {
    position: static;
  }

  .cta-inner {
    grid-template-columns: 60px 1fr;
  }

  .cta-inner .button,
  .cta-links {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    padding: 48px 0 34px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .hero-visual {
    min-height: 230px;
  }

  .search-card {
    right: 0;
    width: 235px;
  }

  .map-panel {
    right: 80px;
  }

  .intro-grid,
  .panel-heading,
  .score-summary,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .intro-points {
    justify-content: flex-start;
  }

  .form-panel,
  .result-panel {
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions,
  .result-actions {
    grid-template-columns: 1fr;
  }

  .score-ring {
    width: 122px;
    height: 122px;
  }

  .category-header {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .category-status {
    grid-column: 2;
  }

  .category-body {
    padding-left: 16px;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand span {
    max-width: 180px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .privacy-note {
    align-items: flex-start;
  }

  .hero-visual {
    min-height: 190px;
  }

  .map-panel {
    inset: 30px 70px auto 0;
    height: 160px;
  }

  .search-card {
    top: 54px;
    width: 190px;
    min-height: 166px;
    padding: 18px;
  }

  .hero-seo-mark {
    width: 110px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner .button,
  .cta-links {
    grid-column: 1;
  }

  .cta-rocket {
    width: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .hero,
  .intro-section,
  .form-panel,
  .service-cta,
  .site-footer,
  .result-actions,
  .copy-status {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .container,
  .tool-layout {
    width: 100%;
    display: block;
  }

  .generator-section {
    padding: 0;
  }

  .result-panel {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .category-item {
    break-inside: avoid;
  }
}
