:root {
  --page: 941px;
  --container-pad: 58px;
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #f8fbff;
  --soft-blue: #eef5ff;
  --line: #e5e7eb;
  --line-strong: #cfe0ff;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --blue-soft: #dbeafe;
  --green: #10b981;
  --purple: #7c3aed;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-xs: 0 6px 16px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 14px 30px rgba(15, 23, 42, 0.08);
  --shadow-blue: 0 14px 28px rgba(37, 99, 235, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
}

@media (min-width: 901px) {
  body {
    zoom: 1.06;
  }
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-shell {
  width: min(100%, var(--page));
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 62px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: 88px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button-icon {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex: 0 0 auto;
}

.icon-invert {
  filter: brightness(0) invert(1);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue), #075cff);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, #1d4ed8, #044ee8);
}

.button-secondary {
  border-color: #cbd5e1;
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

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

.button-dark {
  min-height: 36px;
  padding: 0 18px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.17);
}

.header-button {
  white-space: nowrap;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 366px;
  gap: 22px;
  min-height: 352px;
  padding: 10px 58px 0;
  border-bottom: 1px solid #edf2f7;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 14px;
}

.hello {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  color: #070b20;
  font-size: clamp(54px, 7vw, 72px);
  font-weight: 900;
  line-height: 0.95;
}

.lead {
  max-width: 410px;
  margin: 15px 0 12px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.body-copy {
  max-width: 430px;
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.proof-icon {
  display: block;
  width: 26px;
  height: 26px;
  padding: 5px;
  object-fit: contain;
  background: #eff6ff;
  border-radius: 50%;
}

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

.portrait-halo {
  position: absolute;
  top: -12px;
  right: 8px;
  width: 314px;
  height: 314px;
  background: radial-gradient(circle at 50% 45%, #eef5ff 0 62%, rgba(239, 246, 255, 0) 63%);
  border-radius: 50%;
}

.portrait {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 300px;
  max-width: none;
  filter: drop-shadow(0 20px 26px rgba(15, 23, 42, 0.05));
}

.dot-field {
  position: absolute;
  width: 88px;
  height: 88px;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.42) 1.3px, transparent 1.6px);
  background-position: 0 0;
  background-size: 14px 14px;
}

.dot-field-one {
  top: 155px;
  left: 48px;
}

.float-card {
  position: absolute;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e7eefb;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.float-card img {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.float-card-window {
  top: 40px;
  left: 78px;
}

.float-card-bot {
  top: 76px;
  right: 16px;
}

.float-card-gear {
  right: 6px;
  bottom: 60px;
}

.section {
  padding: 21px var(--container-pad);
  border-bottom: 1px solid #edf2f7;
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.section-heading p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
}

.process-section {
  position: relative;
  padding-top: 18px;
  padding-bottom: 18px;
}

.process-flow {
  display: grid;
  grid-template-columns: 136px repeat(3, minmax(0, 1fr));
  gap: 44px;
  align-items: center;
  margin-top: 22px;
}

.flow-card {
  position: relative;
  min-height: 146px;
  padding: 17px 16px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.flow-card:not(:last-child)::after {
  position: absolute;
  top: 51%;
  right: -37px;
  width: 30px;
  content: "";
  border-top: 1.5px dashed #0f172a;
}

.flow-card:not(:last-child) .card-topline::after,
.project-card::after {
  border-color: #0f172a;
}

.flow-card:not(:last-child)::after {
  background:
    linear-gradient(45deg, transparent 45%, #0f172a 46% 54%, transparent 55%) right 0 top -4px / 10px 10px no-repeat;
}

.project-card {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 14px 12px;
  background: linear-gradient(150deg, #f8fbff, #eef5ff);
  border-color: #a9c5ff;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.08);
}

.project-card img {
  width: 60px;
  height: 54px;
  object-fit: contain;
}

.flow-card h3,
.work-card h3,
.price-card h3 {
  margin: 0;
  color: var(--text);
}

.project-card h3 {
  font-size: 18px;
  font-weight: 900;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-icon-img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.check-dot-img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.flow-card h3 {
  font-size: 17px;
  font-weight: 900;
}

.flow-card ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  color: #334155;
  font-size: 11.5px;
  list-style: none;
}

.flow-card li {
  position: relative;
  padding-left: 16px;
}

.flow-card li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  background: var(--blue);
  border-radius: 50%;
}

.value-system-section,
.module-money-section,
.why-section,
.dev-process-section {
  padding-top: 30px;
  padding-bottom: 32px;
}

.block-heading {
  max-width: 680px;
  margin: 0 auto 22px;
  text-align: center;
}

.block-kicker {
  margin: 0 0 7px;
  color: #0ea5a3;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.block-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.13;
}

.block-heading p:not(.block-kicker) {
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

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

.profit-card,
.module-money-row,
.why-card,
.dev-step {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.profit-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 312px;
  flex-direction: column;
  padding: 18px 16px 15px;
  overflow: hidden;
  border-radius: 18px;
}

.profit-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--accent);
}

.profit-top {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.block-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--accent-soft, #eef5ff);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
}

.block-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.profit-card:nth-child(2) .block-icon img,
.module-money-row:nth-child(2) .block-icon img {
  filter: hue-rotate(42deg) saturate(1.28);
}

.profit-card:nth-child(3) .block-icon img,
.module-money-row:nth-child(3) .block-icon img {
  filter: hue-rotate(105deg) saturate(1.35);
}

.profit-card h3,
.module-title h3,
.why-card h3,
.dev-step h3 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  line-height: 1.17;
}

.profit-card h3 {
  font-size: 17px;
}

.profit-top p,
.why-card p,
.dev-step p,
.money-step p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.profit-top p {
  font-size: 11.3px;
}

.block-check-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  color: #334155;
  font-size: 11.5px;
  line-height: 1.35;
  list-style: none;
}

.block-check-list li {
  position: relative;
  padding-left: 22px;
}

.block-check-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  content: "✓";
  color: var(--accent);
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.profit-result {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 12px;
}

.profit-result b {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.profit-result span {
  color: #1e293b;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.profit-note {
  max-width: 680px;
  margin: 18px auto 0;
  padding: 13px 18px;
  color: #1e293b;
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid #dbeafe;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 750;
}

.module-money-list {
  display: grid;
  gap: 14px;
}

.module-money-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
}

.module-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 14px;
}

.module-title h3 {
  margin-top: 12px;
  font-size: 17px;
}

.module-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.money-step {
  min-width: 0;
  padding: 13px 12px;
  background: #f8fbff;
  border: 1px solid #e5eefb;
  border-radius: 14px;
}

.money-step span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-bottom: 8px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.money-step h4 {
  margin: 0;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.18;
}

.money-step p {
  font-size: 10.5px;
}

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

.why-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
}

.why-card h3 {
  font-size: 16px;
}

.why-card p {
  font-size: 11.5px;
}

.dev-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.dev-step {
  position: relative;
  min-width: 0;
  min-height: 176px;
  padding: 16px 13px;
  border-radius: 18px;
}

.dev-step:not(:last-child)::after {
  position: absolute;
  top: 31px;
  right: -13px;
  width: 13px;
  content: "";
  border-top: 1.5px dashed #94a3b8;
}

.dev-num {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 12px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
  font-size: 11px;
  font-weight: 900;
}

.dev-step h3 {
  font-size: 13.5px;
}

.dev-step p {
  font-size: 10.5px;
}

.portfolio-section {
  padding-top: 18px;
  padding-bottom: 19px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 15px;
}

.work-card {
  position: relative;
  min-width: 0;
  padding: 11px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.work-label {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-bottom: 5px;
  padding: 0 10px;
  color: #334155;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.work-card h3 {
  display: inline-block;
  margin-left: 8px;
  font-size: 13px;
  font-weight: 900;
  vertical-align: middle;
}

.work-card > p {
  margin: -2px 0 8px 58px;
  color: #64748b;
  font-size: 10px;
}

.work-preview {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
  overflow: hidden;
  border-radius: 8px;
}

.legal-preview {
  position: relative;
  display: block;
  padding: 38px 18px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 45%, rgba(148, 163, 184, 0.55), transparent 24%),
    linear-gradient(135deg, #071429, #0b2343 62%, #132c52);
}

.legal-preview strong {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 166px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.18;
}

.legal-preview span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 16px;
  padding: 7px 12px;
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.75);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.legal-nav {
  position: absolute;
  top: 11px;
  right: 13px;
  left: 13px;
  height: 9px;
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.9) 0 16px, transparent 16px 44px, rgba(255, 255, 255, 0.45) 44px 64px, transparent 64px 100px, rgba(255, 255, 255, 0.45) 100px 122px) left top / 150px 9px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)) right top / 70px 9px no-repeat;
  border-radius: 999px;
}

.legal-figures {
  position: absolute;
  right: 22px;
  bottom: 0;
  width: 105px;
  height: 125px;
  opacity: 0.7;
  background:
    radial-gradient(circle at 34% 22%, #b9c8df 0 13px, transparent 14px),
    radial-gradient(circle at 70% 25%, #d1d8e4 0 12px, transparent 13px),
    linear-gradient(#8ea4c4, #233a59) 24px 44px / 32px 85px no-repeat,
    linear-gradient(#cbd5e1, #334155) 60px 47px / 30px 82px no-repeat;
  filter: blur(0.2px);
}

.work-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 8px -11px -11px;
  border-top: 1px solid #eef2f7;
}

.work-features span {
  display: grid;
  min-height: 52px;
  padding: 7px 8px;
  border-right: 1px solid #eef2f7;
}

.work-features span:last-child {
  border-right: 0;
}

.work-features img {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 5px;
  object-fit: contain;
}

.work-features b {
  color: #0f172a;
  font-size: 9.5px;
  line-height: 1.2;
}

.work-features small {
  margin-top: 3px;
  color: #64748b;
  font-size: 8.5px;
  line-height: 1.25;
}

.portfolio-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  max-width: 780px;
  margin: 18px auto 0;
}

.portfolio-case-card {
  --case-accent: #fb6f67;
  --case-soft: #fff1f0;
  --case-border: #ffe0dc;
  --case-preview-bg: #fff5f4;
  --case-tag-color: var(--blue);
  --case-tag-bg: #f1f6ff;
  --case-tag-border: #dbeafe;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  grid-template-areas:
    "preview body"
    "preview features";
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.portfolio-case-card:hover,
.portfolio-case-card:focus-visible {
  border-color: var(--case-border);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.13), 0 0 0 3px var(--case-soft);
  transform: translateY(-4px) scale(1.012);
}

.portfolio-case-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.portfolio-case-link:focus-visible {
  outline: 0;
}

.case-education {
  --case-accent: #0ea5a3;
  --case-soft: #ecfeff;
  --case-border: #bff0ee;
  --case-preview-bg: #eff8ff;
  --case-tag-color: #0f6fbd;
  --case-tag-bg: #eef8ff;
  --case-tag-border: #cfe9ff;
}

.case-miniapp {
  --case-accent: #2dd4bf;
  --case-soft: #e8fffb;
  --case-border: #a7f3e8;
  --case-preview-bg: #071013;
  --case-tag-color: #0f766e;
  --case-tag-bg: #ecfeff;
  --case-tag-border: #bff0ee;
}

.case-preview {
  position: relative;
  grid-area: preview;
  min-height: 306px;
  overflow: hidden;
  background: var(--case-preview-bg);
  border-right: 1px solid #eef2f7;
}

.case-preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  transition: transform 0.24s ease, filter 0.24s ease;
}

.portfolio-case-card:hover .case-preview > img,
.portfolio-case-card:focus-visible .case-preview > img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.055);
}

.case-preview::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(15, 23, 42, 0.26));
  pointer-events: none;
}

.case-miniapp .case-preview {
  display: grid;
  min-height: 424px;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 22% 18%, rgba(45, 212, 191, 0.34), transparent 26%),
    radial-gradient(circle at 82% 70%, rgba(37, 99, 235, 0.26), transparent 30%),
    linear-gradient(150deg, #071013, #0b1e23 55%, #061416);
}

.case-miniapp .case-preview > img {
  position: relative;
  z-index: 1;
  width: min(214px, 76%);
  height: auto;
  max-height: 374px;
  object-fit: contain;
  border: 7px solid #071013;
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(45, 212, 191, 0.22);
  transform: none;
}

.case-miniapp:hover .case-preview > img,
.case-miniapp:focus-visible .case-preview > img {
  filter: saturate(1.08) contrast(1.04);
  transform: translateY(-2px) scale(1.025);
}

.case-miniapp .case-preview::after {
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.16));
}

.case-miniapp .case-badge {
  color: #062421;
  background: rgba(45, 212, 191, 0.94);
  border-color: rgba(255, 255, 255, 0.35);
}

.case-leadbot {
  --case-accent: #0f766e;
  --case-soft: #ecfeff;
  --case-border: #99f6e4;
  --case-preview-bg: #effaf8;
  --case-tag-color: #0f766e;
  --case-tag-bg: #ecfeff;
  --case-tag-border: #bff0ee;
}

.case-leadbot .case-preview {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 26px;
  background:
    radial-gradient(circle at 18% 16%, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(124, 58, 237, 0.13), transparent 24%),
    radial-gradient(circle at 84% 82%, rgba(16, 185, 129, 0.2), transparent 30%),
    linear-gradient(145deg, #f8fffc 0%, #eef9f8 52%, #f6f8ff 100%);
}

.case-leadbot .case-preview::after {
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(15, 118, 110, 0.08)),
    radial-gradient(circle at 9px 9px, rgba(37, 99, 235, 0.2) 1.5px, transparent 2px);
  background-size: auto, 18px 18px;
  opacity: 0.72;
}

.leadbot-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
}

.leadbot-panel::before {
  position: absolute;
  top: -70px;
  right: -58px;
  width: 150px;
  height: 150px;
  content: "";
  background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 64%);
  pointer-events: none;
}

.leadbot-topline {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.leadbot-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: #eaf3ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.56);
}

.leadbot-avatar img {
  width: 24px;
  height: 24px;
}

.leadbot-topline strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.18;
}

.leadbot-topline small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.25;
}

.leadbot-chat {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.leadbot-bubble {
  display: block;
  max-width: 86%;
  padding: 9px 11px;
  border-radius: 13px;
  color: #334155;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.leadbot-bubble.bot {
  justify-self: start;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.leadbot-bubble.user {
  justify-self: end;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.leadbot-score-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, #ecfeff, #f4f7ff);
  border: 1px solid #c7efe9;
  border-radius: 16px;
}

.leadbot-score-ring {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(#10b981 0 87%, #dbeafe 87% 100%);
  border-radius: 999px;
}

.leadbot-score-ring strong {
  margin-top: 7px;
  color: #0f172a;
  font-size: 21px;
  line-height: 1;
}

.leadbot-score-ring span {
  margin-top: -13px;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
}

.leadbot-score-card b {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.15;
}

.leadbot-score-card small {
  display: block;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
}

.case-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: #fff;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  font-size: 9.5px;
  font-weight: 850;
}

.case-body {
  grid-area: body;
  padding: 26px 26px 16px;
}

.case-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 9px;
  padding: 0 10px;
  color: var(--case-accent);
  background: var(--case-soft);
  border: 1px solid var(--case-border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}

.portfolio-case-card h3 {
  display: block;
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.02;
}

.case-summary {
  margin: 12px 0 0;
  color: #475569;
  font-size: 12.4px;
  line-height: 1.48;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.case-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 11px;
  color: var(--case-tag-color);
  background: var(--case-tag-bg);
  border: 1px solid var(--case-tag-border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.case-features {
  grid-area: features;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0;
  padding: 0 26px 24px;
  border-top: 0;
}

.case-features span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon text";
  column-gap: 10px;
  min-height: 56px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fbff;
  border: 1px solid #e5eefb;
  border-radius: 13px;
}

.case-features span:last-child {
  border-right: 1px solid #e5eefb;
}

.case-features img {
  grid-area: icon;
  width: 24px;
  height: 24px;
  margin: 0;
}

.case-features b {
  grid-area: title;
  font-size: 12px;
  line-height: 1.1;
}

.case-features small {
  grid-area: text;
  margin: 3px 0 0;
  font-size: 10.2px;
  line-height: 1.28;
}

.pricing-section {
  padding-top: 16px;
  padding-bottom: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 15px;
  padding: 0 12px;
}

.price-card {
  position: relative;
  display: flex;
  min-height: 194px;
  flex-direction: column;
  padding: 14px 21px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.13);
}

.popular {
  position: absolute;
  top: -14px;
  left: 50%;
  display: inline-flex;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
  font-size: 11px;
  font-weight: 800;
  transform: translateX(-50%);
}

.price-card h3 {
  text-align: center;
  font-size: 17px;
  font-weight: 900;
}

.price-card > p {
  min-height: 24px;
  margin: 4px 0 8px;
  color: #64748b;
  text-align: center;
  font-size: 12px;
  line-height: 1.55;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.price strong {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.price-card ul {
  display: grid;
  gap: 3px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 13px;
  color: #1f2937;
  font-size: 11px;
  line-height: 1.25;
}

.price-card li::before {
  position: absolute;
  top: 0.63em;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  background: #0f172a;
  border-radius: 50%;
}

.price-button {
  width: 100%;
  min-height: 32px;
  margin-top: auto;
  border-color: var(--blue);
  color: var(--blue);
  background: #fff;
}

.price-card.featured .price-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #075cff);
  box-shadow: var(--shadow-blue);
}

.cta-panel {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 296px;
  gap: 18px;
  align-items: center;
  margin: 0 48px 9px;
  padding: 14px 34px;
  background:
    radial-gradient(circle at 95% 16%, rgba(37, 99, 235, 0.08) 0 85px, transparent 86px),
    linear-gradient(100deg, #eef5ff, #f8fbff 60%, #eaf3ff);
  border: 1px solid #cde0ff;
  border-radius: var(--radius-lg);
}

.cta-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: var(--blue);
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.cta-icon img {
  display: block;
  width: 41px;
  height: 41px;
  object-fit: contain;
}

.cta-copy h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.cta-copy p {
  max-width: 430px;
  margin: 0;
  color: #475569;
  font-size: 12.5px;
  line-height: 1.55;
}

.cta-action {
  display: grid;
  justify-items: center;
  gap: 13px;
}

.telegram-button {
  width: 100%;
  min-height: 42px;
  font-size: 14px;
}

.cta-action span {
  color: #64748b;
  font-size: 12px;
}

.contacts-section {
  padding-top: 0;
  padding-bottom: 10px;
  border-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 16px;
  margin-top: 12px;
  padding: 0 12px;
}

.contact-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  border-color: #c7d9ff;
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.contact-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--blue);
  background: #edf5ff;
  border-radius: 50%;
}

.contact-icon.telegram {
  background: #edf5ff;
}

.contact-icon img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.contact-icon.telegram img {
  width: 30px;
  height: 30px;
}

.contact-card span:last-child {
  display: grid;
  min-width: 0;
}

.contact-card b {
  color: #1f2937;
  font-size: 12px;
}

.contact-card strong {
  display: block;
  max-width: 100%;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
}

.contact-card[href^="mailto:"] strong {
  font-size: 13px;
}

.contact-card small {
  color: #64748b;
  font-size: 11px;
}

.site-footer {
  padding: 0 48px 12px;
  color: #64748b;
  text-align: center;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  :root {
    --container-pad: 28px;
  }

  .site-header {
    height: 64px;
    padding: 0 24px;
  }

  .main-nav,
  .header-button {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-xs);
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    grid-area: 1 / 1;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease;
  }

  .menu-toggle span:first-child {
    transform: translateY(-4px);
  }

  .menu-toggle span:last-child {
    transform: translateY(4px);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    top: 58px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 4px;
    padding: 14px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-nav.is-open {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    color: var(--blue);
    background: #eff6ff;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px 24px 0;
  }

  .hero-copy {
    padding-top: 10px;
    min-width: 0;
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  .hero-actions,
  .proof-row {
    align-items: stretch;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button {
    width: min(100%, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
  }

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

  .portrait-halo {
    right: 50%;
    transform: translateX(50%);
  }

  .portrait {
    right: 50%;
    width: min(310px, 82vw);
    transform: translateX(50%);
  }

  .float-card-window {
    left: 15%;
  }

  .float-card-bot {
    right: 16%;
  }

  .float-card-gear {
    right: 17%;
  }

  .process-flow,
  .work-grid,
  .pricing-grid,
  .contact-grid,
  .cta-panel,
  .profit-grid,
  .module-steps,
  .why-grid,
  .dev-timeline {
    grid-template-columns: 1fr;
  }

  .process-flow {
    gap: 18px;
  }

  .flow-card:not(:last-child)::after {
    display: none;
  }

  .value-system-section,
  .module-money-section,
  .why-section,
  .dev-process-section {
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .module-money-row {
    grid-template-columns: 1fr;
  }

  .module-title {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .module-title h3 {
    margin-top: 0;
    margin-left: 12px;
  }

  .portfolio-grid {
    max-width: 520px;
  }

  .portfolio-case-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "body"
      "features";
  }

  .case-preview {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid #eef2f7;
  }

  .case-miniapp .case-preview {
    min-height: 420px;
    padding: 18px;
  }

  .case-miniapp .case-preview > img {
    width: min(220px, 82%);
    max-height: 360px;
  }

  .case-leadbot .case-preview {
    min-height: 356px;
    padding: 18px;
  }

  .case-body {
    padding: 20px 18px 13px;
  }

  .case-features {
    padding: 0 18px 18px;
  }

  .dev-step {
    min-height: 0;
  }

  .dev-step:not(:last-child)::after {
    display: none;
  }

  .pricing-grid,
  .contact-grid {
    padding: 0;
  }

  .cta-panel {
    margin: 0 24px 24px;
    padding: 24px;
    text-align: center;
  }

  .cta-icon {
    margin: 0 auto;
  }

  .cta-action {
    width: 100%;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .brand {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .lead {
    font-size: 16px;
  }

  .proof-row {
    display: grid;
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .block-heading h2 {
    font-size: 23px;
  }

  .block-heading p:not(.block-kicker) {
    font-size: 12px;
  }

  .section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .profit-card,
  .module-money-row,
  .why-card,
  .dev-step {
    border-radius: 16px;
  }

  .profit-top,
  .why-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .block-icon {
    width: 44px;
    height: 44px;
  }

  .block-icon img {
    width: 24px;
    height: 24px;
  }

  .portfolio-case-card h3 {
    font-size: 25px;
  }

  .case-summary {
    font-size: 12px;
  }

  .case-preview {
    min-height: 200px;
  }

  .case-miniapp .case-preview {
    min-height: 392px;
  }

  .case-miniapp .case-preview > img {
    width: min(210px, 82%);
    max-height: 336px;
  }

  .case-leadbot .case-preview {
    min-height: 336px;
    padding: 16px;
  }

  .leadbot-panel {
    padding: 15px;
    border-radius: 17px;
  }

  .leadbot-score-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
  }

  .leadbot-score-ring {
    width: 58px;
    height: 58px;
  }

  .work-features {
    grid-template-columns: 1fr;
  }

  .work-features span {
    min-height: 56px;
    border-right: 0;
    border-bottom: 1px solid #eef2f7;
  }

  .work-features span:last-child {
    border-bottom: 0;
  }

  .price-card {
    padding-right: 22px;
    padding-left: 22px;
  }

  .contact-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}

@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;
  }
}
