/* Technopolis / IТехно UI system
   Visual direction: clean educational SaaS + approved IТехно red/blue soft shapes.
*/
:root {
  --tp-bg: #f5f8ff;
  --tp-surface: #ffffff;
  --tp-surface-soft: #f9fbff;
  --tp-text: #10234b;
  --tp-muted: #667391;
  --tp-blue: #2156d9;
  --tp-blue-dark: #153b9b;
  --tp-blue-soft: #dfe9ff;
  --tp-red: #f04452;
  --tp-red-dark: #ca2331;
  --tp-red-soft: #ffe4e8;
  --tp-yellow: #f5a524;
  --tp-green: #18a058;
  --tp-border: #dfe7f5;
  --tp-shadow: 0 24px 70px rgba(24, 62, 140, 0.14);
  --tp-shadow-sm: 0 12px 30px rgba(24, 62, 140, 0.10);
  --tp-radius-lg: 32px;
  --tp-radius-md: 22px;
  --tp-radius-sm: 14px;
  --tp-container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.tp-body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--tp-text);
  background:
    radial-gradient(circle at 5% 10%, rgba(240, 68, 82, 0.15) 0 0, transparent 260px),
    radial-gradient(circle at 95% 5%, rgba(33, 86, 217, 0.18) 0 0, transparent 300px),
    linear-gradient(180deg, #ffffff 0%, var(--tp-bg) 100%);
}

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

.tp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}

.tp-brand { display: flex; gap: 12px; align-items: center; font-weight: 800; letter-spacing: -0.03em; }
.tp-logo {
  width: 44px; height: 44px; border-radius: 16px;
  background: linear-gradient(135deg, var(--tp-blue), var(--tp-red));
  box-shadow: 0 12px 30px rgba(33, 86, 217, .24);
  position: relative;
}
.tp-logo:after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 8px; right: 8px; opacity: .9; }
.tp-brand small { display: block; color: var(--tp-muted); font-weight: 600; letter-spacing: 0; margin-top: 2px; }

.tp-pill,
.tp-price-chip,
.tp-card-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.7); border: 1px solid var(--tp-border);
  color: var(--tp-muted); font-size: 14px; font-weight: 800;
}

.tp-card {
  background: rgba(255,255,255,.88); border: 1px solid rgba(223,231,245,.9);
  border-radius: var(--tp-radius-lg); box-shadow: var(--tp-shadow);
  backdrop-filter: blur(14px); position: relative; overflow: hidden;
}
.tp-card-pad { padding: clamp(24px, 4vw, 42px); }
.tp-card:before {
  content: ""; position: absolute; inset: auto -70px -90px auto;
  width: 220px; height: 220px; border-radius: 42% 58% 62% 38%;
  background: rgba(33,86,217,.10); transform: rotate(18deg); pointer-events: none;
}
.tp-card:after {
  content: ""; position: absolute; inset: -80px auto auto -60px;
  width: 190px; height: 190px; border-radius: 55% 45% 40% 60%;
  background: rgba(240,68,82,.10); transform: rotate(-14deg); pointer-events: none;
}
.tp-content { position: relative; z-index: 1; }

.tp-kicker { color: var(--tp-red); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; margin-bottom: 12px; }
.tp-title { font-size: clamp(34px, 6vw, 64px); line-height: .95; margin: 0 0 18px; letter-spacing: -0.06em; color: var(--tp-blue-dark); }
.tp-subtitle { color: var(--tp-muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.55; margin: 0 0 28px; max-width: 620px; }

.tp-form { display: grid; gap: 14px; }
.tp-grid-2, .tp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tp-field label,
.tp-form label { display: block; font-weight: 850; font-size: 14px; margin: 0; color: var(--tp-text); }
.tp-field input, .tp-field select, .tp-field textarea,
.tp-form input, .tp-form select, .tp-form textarea {
  width: 100%; border: 1px solid var(--tp-border); border-radius: 16px;
  padding: 15px 16px; font: inherit; background: #fff; color: var(--tp-text);
  outline: none; transition: .18s ease; margin-top: 7px;
}
.tp-field textarea, .tp-form textarea { min-height: 86px; resize: vertical; }
.tp-field input:focus, .tp-field select:focus, .tp-field textarea:focus,
.tp-form input:focus, .tp-form select:focus, .tp-form textarea:focus { border-color: var(--tp-blue); box-shadow: 0 0 0 4px rgba(33,86,217,.10); }
.tp-help, .tp-form-note { font-size: 13px; color: var(--tp-muted); margin: 0; line-height: 1.45; }

.tp-checkbox { display: flex !important; align-items: flex-start; gap: 10px; color: var(--tp-muted) !important; line-height: 1.35; }
.tp-checkbox input { width: 18px !important; height: 18px; margin: 0 !important; flex: 0 0 18px; }

.tp-button {
  border: 0; cursor: pointer; border-radius: 18px; padding: 16px 20px;
  font-weight: 900; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.tp-button:hover { transform: translateY(-1px); }
.tp-button-primary { color: #fff; background: linear-gradient(135deg, var(--tp-blue), var(--tp-blue-dark)); box-shadow: 0 16px 30px rgba(33,86,217,.22); }
.tp-button-red { color: #fff; background: linear-gradient(135deg, var(--tp-red), var(--tp-red-dark)); box-shadow: 0 16px 30px rgba(240,68,82,.22); }
.tp-button-ghost { color: var(--tp-blue); background: var(--tp-blue-soft); }
.tp-button-full { width: 100%; }

.tp-steps { display: grid; gap: 14px; }
.tp-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--tp-border); border-radius: 20px; background: rgba(255,255,255,.74); }
.tp-step-num { flex: 0 0 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--tp-blue); font-weight: 900; }
.tp-step strong { display: block; margin-bottom: 4px; }
.tp-step span { color: var(--tp-muted); font-size: 14px; line-height: 1.45; }

.tp-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; font-weight: 900; font-size: 13px; }
.tp-status-wait { color: #8a5600; background: #fff1cf; }
.tp-status-paid { color: #08743b; background: #dff8ea; }
.tp-status-danger { color: #a31120; background: var(--tp-red-soft); }

.tp-invoice-total { font-size: clamp(36px, 8vw, 72px); line-height: 1; letter-spacing: -0.06em; color: var(--tp-blue-dark); font-weight: 950; margin: 18px 0 8px; }
.tp-list { display: grid; gap: 10px; margin: 22px 0; }
.tp-list-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--tp-border); }
.tp-list-row span:first-child { color: var(--tp-muted); }
.tp-list-row span:last-child { font-weight: 850; text-align: right; }

.tp-dashboard { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.tp-mini-card { padding: 20px; background: #fff; border: 1px solid var(--tp-border); border-radius: 22px; box-shadow: var(--tp-shadow-sm); }
.tp-mini-card b { font-size: 28px; letter-spacing: -0.05em; display: block; margin-bottom: 6px; color: var(--tp-blue-dark); }
.tp-mini-card span { color: var(--tp-muted); font-weight: 700; }

/* Landing registration */
.tp-landing-body {
  background:
    radial-gradient(circle at 8% 12%, rgba(240, 68, 82, .17), transparent 280px),
    radial-gradient(circle at 88% 4%, rgba(33, 86, 217, .20), transparent 330px),
    radial-gradient(circle at 70% 90%, rgba(33, 86, 217, .10), transparent 360px),
    #f7f9ff;
}
.tp-landing-shell { padding-bottom: 48px; }
.tp-landing-header { position: sticky; top: 0; z-index: 10; background: rgba(247,249,255,.78); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(223,231,245,.65); }
.tp-landing-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) 420px; gap: 28px; align-items: center; padding: 36px 0 26px; }
.tp-hero-copy { min-height: 570px; border-radius: 42px; padding: clamp(28px, 5vw, 58px); background: linear-gradient(145deg, #fff 0%, #f7faff 68%, #eef4ff 100%); border: 1px solid rgba(223,231,245,.95); box-shadow: var(--tp-shadow); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.tp-hero-copy:before { content:""; position:absolute; width:250px; height:250px; right:-80px; top:-70px; background:rgba(33,86,217,.13); border-radius: 46% 54% 63% 37%; transform: rotate(16deg); }
.tp-hero-copy:after { content:""; position:absolute; width:210px; height:210px; left:-80px; bottom:-70px; background:rgba(240,68,82,.12); border-radius: 62% 38% 41% 59%; transform: rotate(-12deg); }
.tp-hero-copy > * { position: relative; z-index: 1; }
.tp-display { max-width: 700px; margin: 0; font-size: clamp(38px, 5.7vw, 72px); line-height: .92; letter-spacing: -.075em; color: var(--tp-blue-dark); overflow-wrap: anywhere; }
.tp-lead { max-width: 620px; margin: 22px 0 0; color: var(--tp-muted); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55; font-weight: 650; }
.tp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 30px 0 0; }
.tp-price-chip { color: var(--tp-red-dark); background: #fff2f4; border-color: #ffd1d7; font-size: 16px; padding: 13px 16px; }
.tp-trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tp-trust-strip span { padding: 10px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--tp-border); color: var(--tp-muted); font-weight: 800; font-size: 14px; }
.tp-form-card { background: rgba(255,255,255,.94); border: 1px solid rgba(223,231,245,.95); box-shadow: var(--tp-shadow); border-radius: 34px; padding: clamp(22px, 3vw, 32px); }
.tp-hero-form-card { position: sticky; top: 94px; }
.tp-form-card h2 { margin: 14px 0 8px; font-size: 30px; letter-spacing: -.05em; color: var(--tp-blue-dark); }
.tp-form-card > p { margin: 0 0 18px; color: var(--tp-muted); line-height: 1.45; font-weight: 650; }
.tp-card-badge { color: var(--tp-blue-dark); background: var(--tp-blue-soft); border: 0; }
.tp-error-box { padding: 12px 14px; border-radius: 16px; background: var(--tp-red-soft); color: var(--tp-red-dark); font-weight: 850; font-size: 14px; }

.tp-section-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.tp-info-card { min-height: 250px; padding: 28px; border-radius: 30px; border: 1px solid var(--tp-border); box-shadow: var(--tp-shadow-sm); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.tp-info-card span { font-size: 13px; letter-spacing: .18em; font-weight: 950; opacity: .72; }
.tp-info-card h3 { margin: 34px 0 10px; font-size: 28px; line-height: 1; letter-spacing: -.055em; }
.tp-info-card p { margin: 0; color: inherit; opacity: .78; line-height: 1.5; font-weight: 650; }
.tp-info-card-blue { background: linear-gradient(145deg, var(--tp-blue), var(--tp-blue-dark)); color: #fff; }
.tp-info-card-red { background: linear-gradient(145deg, var(--tp-red), var(--tp-red-dark)); color: #fff; }
.tp-info-card-white { background: #fff; color: var(--tp-text); }

.tp-process-card,
.tp-parent-note { display: grid; grid-template-columns: .85fr 1.15fr; gap: 26px; align-items: center; margin: 28px 0; padding: clamp(24px, 4vw, 42px); background: #fff; border: 1px solid var(--tp-border); border-radius: 34px; box-shadow: var(--tp-shadow-sm); }
.tp-process-card h2,
.tp-parent-note h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: .98; letter-spacing: -.065em; color: var(--tp-blue-dark); }
.tp-process-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tp-process-steps div { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 20px; background: var(--tp-surface-soft); border: 1px solid var(--tp-border); font-weight: 850; }
.tp-process-steps b { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 12px; background: var(--tp-blue); color: #fff; }
.tp-parent-note { grid-template-columns: 1fr auto; background: linear-gradient(145deg, #fff, #f4f7ff); }
.tp-parent-note p { margin: 14px 0 0; max-width: 760px; color: var(--tp-muted); line-height: 1.55; font-size: 18px; font-weight: 650; }

@media (max-width: 980px) {
  .tp-landing-hero { grid-template-columns: 1fr; }
  .tp-hero-copy { min-height: auto; }
  .tp-hero-form-card { position: static; }
  .tp-section-grid, .tp-process-card, .tp-parent-note { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .tp-hero { grid-template-columns: 1fr; padding-top: 8px; }
  .tp-grid-2, .tp-form-grid, .tp-dashboard, .tp-process-steps { grid-template-columns: 1fr; }
  .tp-header { align-items: flex-start; gap: 12px; }
  .tp-pill { display: none; }
  .tp-landing-header { position: static; }
}

@media (max-width: 560px) {
  .tp-shell { width: min(100% - 20px, var(--tp-container)); }
  .tp-button { width: 100%; }
  .tp-header .tp-button { display: none; }
  .tp-display { font-size: 42px; }
  .tp-hero-copy, .tp-form-card, .tp-process-card, .tp-parent-note, .tp-info-card { border-radius: 24px; padding: 22px; }
  .tp-section-grid { gap: 12px; }
  .tp-info-card { min-height: 210px; }
}

/* IТехно poster-style refinements + ops v2 */
.tp-landing-body {
  background:
    radial-gradient(ellipse 55% 22% at 14% 18%, rgba(20, 55, 155, .10), transparent 70%),
    radial-gradient(ellipse 45% 18% at 90% 36%, rgba(20, 55, 155, .09), transparent 70%),
    radial-gradient(ellipse 60% 20% at 35% 86%, rgba(20, 55, 155, .08), transparent 70%),
    #fbfcff;
}
.tp-display, .tp-title {
  text-transform: uppercase;
  font-weight: 950;
  color: #073b9d;
}
.tp-hero-copy {
  background:
    linear-gradient(135deg, rgba(230,234,250,.92), transparent 32%),
    linear-gradient(155deg, #fff 0%, #f9fbff 56%, #eef2ff 100%);
}
.tp-hero-copy:before { background: rgba(12,55,160,.10); border-radius: 999px; transform: rotate(-28deg) scaleX(1.7); }
.tp-hero-copy:after { background: rgba(12,55,160,.08); border-radius: 999px; transform: rotate(33deg) scaleX(1.55); }
.tp-subject-pills { display:flex; flex-wrap:wrap; gap:14px; margin-top:26px; max-width:650px; }
.tp-subject-pills span { display:inline-flex; align-items:center; justify-content:center; padding:16px 28px; border-radius:999px; background:#073b9d; color:#fff; font-size:clamp(16px,2vw,24px); line-height:1; font-weight:950; letter-spacing:.02em; text-transform:uppercase; box-shadow: 0 16px 30px rgba(7,59,157,.16); }
.tp-subject-pills .tp-pill-red { background:#ff2e3a; box-shadow: 0 16px 30px rgba(255,46,58,.16); }
.tp-price-star { width:128px; height:128px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:14px; color:#fff; background:#ff2e3a; font-weight:950; line-height:1.05; transform: rotate(-10deg); clip-path: polygon(50% 0%,61% 20%,84% 13%,80% 37%,100% 50%,80% 63%,84% 87%,61% 80%,50% 100%,39% 80%,16% 87%,20% 63%,0% 50%,20% 37%,16% 13%,39% 20%); }
.tp-price-star small{display:block;margin-top:4px;font-size:11px;text-transform:uppercase;}
.tp-offer-details{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px;}
.tp-offer-details strong,.tp-offer-details span{padding:9px 12px;border-radius:14px;background:#fff;border:1px solid var(--tp-border);color:var(--tp-blue-dark);font-size:14px;font-weight:850;}
.tp-checkbox a{color:var(--tp-blue-dark);font-weight:850;}
.tp-info-card h3, .tp-process-card h2, .tp-parent-note h2 { text-transform: uppercase; color:#073b9d; }
.tp-button-primary { background:#073b9d; }
.tp-button-red, .tp-info-card-red { background:#ff2e3a; }
.tp-header-actions { display:flex; gap:10px; flex-wrap:wrap; }
.tp-ops-shell { padding-bottom:54px; }
.tp-ops-card { margin-bottom:48px; }
.tp-dashboard-4 { grid-template-columns: repeat(4, 1fr); }
.tp-metric-link { color:inherit; text-decoration:none; }
.tp-ops-filter { display:grid; grid-template-columns: 1.4fr 1fr 1.2fr auto auto; gap:12px; align-items:end; margin:26px 0 28px; padding:18px; border:1px solid var(--tp-border); border-radius:24px; background:#fff; }
.tp-ops-filter label { display:grid; gap:7px; font-weight:900; color:var(--tp-text); font-size:14px; }
.tp-ops-filter input, .tp-ops-filter select, .tp-link-tools input { width:100%; border:1px solid var(--tp-border); border-radius:15px; padding:13px 14px; font:inherit; background:#fff; color:var(--tp-text); }
.tp-ops-list { display:grid; gap:16px; }
.tp-application-card { display:grid; grid-template-columns: minmax(0,1fr) 220px; gap:18px; padding:22px; border:1px solid var(--tp-border); border-radius:28px; background:#fff; box-shadow:var(--tp-shadow-sm); }
.tp-app-topline { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:10px; }
.tp-app-date { color:var(--tp-muted); font-size:13px; font-weight:800; }
.tp-application-card h2 { margin:0 0 8px; font-size:30px; line-height:1; letter-spacing:-.045em; color:#073b9d; }
.tp-app-meta, .tp-app-enrollment, .tp-app-comment { margin:7px 0; color:var(--tp-muted); font-weight:700; line-height:1.4; }
.tp-app-comment { padding:12px 14px; border-radius:16px; background:#f6f8ff; }
.tp-link-tools { display:grid; grid-template-columns: minmax(0,1fr) auto; gap:10px; align-items:end; margin-top:14px; }
.tp-link-tools label { font-size:13px; font-weight:900; color:var(--tp-muted); }
.tp-copy-btn { border:0; border-radius:15px; padding:13px 14px; background:var(--tp-blue-soft); color:#073b9d; font-weight:950; text-decoration:none; cursor:pointer; text-align:center; }
.tp-link-tools-pay .tp-copy-btn { background:#ffe4e8; color:#ca2331; }
.tp-application-actions { display:grid; align-content:start; gap:12px; }
.tp-payment-box { padding:16px; border-radius:20px; background:#f6f8ff; border:1px solid var(--tp-border); }
.tp-payment-box span { display:block; color:var(--tp-muted); font-size:13px; font-weight:900; }
.tp-payment-box b { display:block; color:#073b9d; margin:4px 0; }
.tp-payment-box strong { font-size:24px; color:#ff2e3a; }
.tp-empty-state { padding:28px; border-radius:24px; background:#fff; border:1px dashed var(--tp-border); color:var(--tp-muted); font-weight:900; text-align:center; }
@media (max-width: 980px) { .tp-dashboard-4, .tp-ops-filter, .tp-application-card { grid-template-columns:1fr; } .tp-link-tools { grid-template-columns:1fr; } }
@media (max-width: 560px) { .tp-subject-pills span { width:100%; } .tp-price-star { width:96px; height:96px; } }

/* contrast fix for colored poster cards */
.tp-info-card-blue h3, .tp-info-card-red h3 { color:#fff; }
.tp-info-card-blue p, .tp-info-card-red p { color:#fff; opacity:.95; }
