:root {
  --green: #2ABB00;
  --blue: #1355A8;
  --black: #0E0E0E;
  --gray-bg: #F7F8FA;
  --border: #E6E8EC;
  --text-secondary: #5A6068;
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--black);
  background: #ffffff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* .container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
} */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
} 

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  /* border-bottom: 1px solid var(--border); */
}

/* .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  border-bottom: 1px solid var(--border);
} */
.header-inner {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

.logo-mark {
  height: 30px;
  width: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-mark img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border: 1.5px dashed var(--green);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 26px;
  color: #555;
  font-size: 13px;
}

.nav a {
  color: #555;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 0;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__text {
  flex: 1 1 420px;
}

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  background: rgba(42,187,0,0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero__text h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
}

.hero__media {
  flex: 1 1 280px;
  max-width: 360px;
}

.hero__media.placeholder {
  aspect-ratio: 4/3;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.hero__image { border-radius: var(--radius); }

/* Info panel */
.info-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-panel__item {
  flex: 1 1 160px;
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--gray-bg);
}

.info-panel__item:last-child { border-right: none; }

.info-panel__label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.info-panel__value {
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: none; }

.section__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 28px;
}

.section__intro {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 640px;
}

.section__note {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 20px;
}

/* Accent card (Цель) */
.card--accent {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 28px;
}

.card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(42,187,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card--accent h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card--accent p {
  color: var(--text-secondary);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline__step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.timeline__number {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(19,85,168,0.08);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline__content h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.timeline__content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.timeline__image {
  border-radius: var(--radius-sm);
  max-width: 320px;
  margin-top: 8px;
}

/* Callouts */
.callout {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 12px;
  font-size: 14px;
}

.callout strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.callout--info {
  background: rgba(42,187,0,0.07);
  border: 1px solid rgba(42,187,0,0.25);
}
.callout--info strong { color: var(--green); }

.callout--warning {
  background: rgba(19,85,168,0.06);
  border: 1px solid rgba(19,85,168,0.2);
  margin-top: 28px;
}
.callout--warning strong { color: var(--blue); }

/* Grid */
.grid {
  display: grid;
  gap: 16px;
}

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

/* Requirement cards */
.req-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}

.req-card__icon {
  font-size: 20px;
  margin-bottom: 10px;
}

.req-card p {
  font-size: 14px;
  color: var(--black);
}

/* Compensation cards */
.comp-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  background: var(--gray-bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comp-card__label {
  font-size: 13px;
  color: var(--text-secondary);
}

.comp-card__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}

/* Security block */
.security-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: linear-gradient(180deg, rgba(19,85,168,0.03), rgba(42,187,0,0.03));
}

.security-block__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.security-block__header h2 {
  font-size: 22px;
}

.security-block__intro {
  font-weight: 600;
  margin-bottom: 24px;
  max-width: 640px;
}

.security-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.security-column {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.security-column h3 {
  font-size: 15px;
  margin-bottom: 14px;
}

.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.security-list li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
  color: var(--black);
}

.security-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #D64545;
  font-size: 12px;
  top: 2px;
}

.security-column--action {
  border-color: rgba(19,85,168,0.25);
}

.security-column--action p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Card options */
.card-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-options--single {
  grid-template-columns: minmax(280px, 360px);
}

.card-option {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.card-option__image-wrap {
  aspect-ratio: 16/10;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-option__image-wrap.placeholder::after {
  content: "Изображение карты";
  font-size: 13px;
  color: var(--text-secondary);
}

.card-option__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-option__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

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

.card-option__content p {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}

/* Buttons */
.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.button--primary {
  background: var(--green);
  color: #06210a;
}

.button--primary:hover {
  opacity: 0.88;
}

.button--large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Manager card */
.manager-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 480px;
}

.manager-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.manager-card__row:last-child { border-bottom: none; }

.manager-card__label {
  font-size: 13px;
  color: var(--text-secondary);
}

.manager-card__value {
  font-size: 14px;
  font-weight: 600;
}

.manager-card__link {
  color: var(--blue);
  text-decoration: none;
}

.manager-card__link:hover { text-decoration: underline; }

/* Final CTA */
.final-cta {
  background: var(--black);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  color: #fff;
}

.final-cta h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.final-cta p {
  color: #c8c8c8;
  max-width: 480px;
  margin: 0 auto 24px;
}

.final-cta .button--primary {
  margin-bottom: 16px;
}

.final-cta__note {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}

/* Footer */
/* .site-footer { */
  /* border-top: 1px solid var(--border); */
  /* padding: 0 0 36px; */
/* } */

/* Footer */
.site-footer{
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
  border-top:1px solid var(--border);
  padding:28px 0 36px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#777;
  font-size:11px;
}
.site-footer strong{ color:var(--black); }

/* .site-footer {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #777;
  font-size: 11px;
}

.site-footer strong { color: var(--black); } */


.footer-meta {
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: #777;
  flex-wrap: wrap;
}

.footer-meta a {
  color: #777;
  text-decoration: none;
}

.footer-meta a:hover { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card-options { grid-template-columns: repeat(2, 1fr); }
  .security-columns { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero__text h1 { font-size: 26px; }
  .grid--3 { grid-template-columns: 1fr; }
  .card-options { grid-template-columns: 1fr; }
  .info-panel__item { flex: 1 1 50%; }
  .timeline__step { flex-direction: column; }
  .nav { gap: 16px; }
  .nav a { font-size: 13px; }
  .final-cta { padding: 32px 20px; }
}

/* ---------- Apply page: hero with illustration ---------- */
.apply-hero {
  position: relative;
  padding: 110px 0 160px;
  background-image: url('hero-bg.svg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}

.apply-hero__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.apply-hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.apply-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto;
}

/* карточка формы "наплывает" на хиро снизу */
.apply-form-wrap {
  max-width: 760px;
  margin: -100px auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.apply-form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(14,14,14,0.14);
  padding: 44px 48px;
}

.apply-form-card__title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.apply-form-card__hint {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

.apply-form-card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 620px) {
  .apply-hero { padding: 80px 0 130px; }
  .apply-hero h1 { font-size: 32px; }
  .apply-form-wrap { margin-top: -80px; padding: 0 16px; }
  .apply-form-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Success screen ---------- */
.success-screen {
  text-align: center;
  padding: 20px 0 8px;
  width: 100%;
}

.success-checkmark {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}

.success-checkmark circle {
  stroke: var(--green);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: circle-draw 0.5s ease forwards;
}

.success-checkmark path {
  stroke: var(--green);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: check-draw 0.35s ease forwards 0.45s;
}

@keyframes circle-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

.success-screen h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.success-screen p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 380px;
  margin: 0 auto 28px;
}

.form-error {
  display: none;
  background: rgba(214,69,69,0.08);
  border: 1px solid rgba(214,69,69,0.3);
  color: #b23a3a;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Messenger chips ---------- */
.messenger-choice {
  display: flex;
  gap: 10px;
}

.messenger-chip {
  flex: 1;
  position: relative;
}

.messenger-chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.messenger-chip label {
  display: block;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #fff;
  transition: all 0.15s ease;
  margin-bottom: 0;
}

.messenger-chip input:checked + label {
  border-color: var(--green);
  background: rgba(42,187,0,0.08);
  color: var(--black);
}

.messenger-chip input:focus-visible + label {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Success screen (стоит отдельно, без заголовка формы) ---------- */
.apply-form-card.is-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

/* ---------- Form ---------- */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-field .hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 4px;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--black);
  transition: border-color 0.15s ease;
}

.form-field input[type="text"]:focus,
.form-field input[type="number"]:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--green);
}

.form-checkbox label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-checkbox a {
  color: var(--blue);
  text-decoration: none;
}

.form-checkbox a:hover {
  text-decoration: underline;
}

.button--full {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-note {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  background: rgba(42,187,0,0.07);
  border: 1px solid rgba(42,187,0,0.25);
  color: var(--black);
}

.form-note strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  color: var(--green);
}

/* honeypot field — скрыто от людей, ловит ботов */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.brand__logo {
    height: 40px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .brand__logo {
        height: 30px;
    }
}