﻿@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --bg: #f7faf7;
  --ink: #1b3222;
  --muted: #5c7364;
  --line: #dce8de;
  --card: #ffffff;
  --soft: #eef6ee;
  --green: #1fa81f;
  --green-deep: #178517;
  --shadow: 0 14px 40px rgba(27, 50, 34, 0.08);
  --radius: 20px;
  --header: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Nunito, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 85% 8%, rgba(140, 204, 51, 0.22), transparent 60%),
    radial-gradient(700px 380px at 8% 18%, rgba(34, 195, 34, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 16px; }

h1 span { color: var(--green-deep); }

h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }

h3 { font-size: 1.2rem; margin-bottom: 8px; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 30;
}

.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 247, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 232, 222, 0.9);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(27, 50, 34, 0.06);
}

.header-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  margin-right: auto;
}

.brand img { width: 42px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current { color: var(--green-deep); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(3) { opacity: 0; }
.nav-toggle.is-open span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c322 0%, #8ccc33 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(34, 195, 34, 0.25);
}

.btn:hover { filter: brightness(0.97); }

.btn:disabled { opacity: 0.7; cursor: progress; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(31, 168, 31, 0.35);
  outline-offset: 2px;
}

.btn-sm { min-height: 44px; border-radius: 12px; }

.btn-ghost {
  background: #fff;
  color: var(--green-deep);
  border: 2px solid var(--green);
  box-shadow: none;
}

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.hero { padding: 88px 0 80px; }

.hero-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.62fr);
  gap: 40px 64px;
  align-items: center;
}

.hero .pill { margin-bottom: 28px; }

.hero h1 {
  max-width: 16em;
  margin-bottom: 28px;
}

.hero h1 span { white-space: nowrap; }

.hero .lead { max-width: 36rem; margin-bottom: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e7f6e4;
  color: var(--green-deep);
  font-weight: 800;
  font-size: 0.92rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.lead { color: var(--muted); font-size: 1.08rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 32px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
}

.hero-points li::before { content: "●"; color: var(--green); margin-right: 8px; font-size: 0.7rem; }

.hero-fund {
  margin: 8px 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.hero-fund a { color: var(--green-deep); font-weight: 800; }

.hero-visual {
  justify-self: center;
  position: relative;
  background: #fff;
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18% 10% 12%;
  background: radial-gradient(circle, rgba(34, 195, 34, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-visual img { position: relative; width: min(300px, 100%); height: auto; }

section[id] { scroll-margin-top: 92px; }

.section { padding: 72px 0; }

.section-soft { background: rgba(238, 246, 238, 0.72); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }

.section-head p:last-child { color: var(--muted); margin-bottom: 0; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.about-photo {
  margin: 0;
  background: #111;
  border-radius: 28px;
  overflow: hidden;
}

.about-photo img { width: 100%; object-fit: cover; }

.check-list { margin: 18px 0 0; padding: 0; list-style: none; }

.check-list li { padding: 8px 0 8px 28px; position: relative; font-weight: 700; }

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green-deep);
  border-bottom: 2px solid var(--green-deep);
  transform: rotate(-45deg);
}

.steps, .benefits, .partner-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps li, .benefits li, .partner-card, .order-form {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps li { padding: 22px; }

.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.step-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #22c322, #8ccc33);
}

.step-num { font-size: 2rem; font-weight: 800; color: rgba(31, 168, 31, 0.22); }

.steps p, .benefits p { margin-bottom: 0; color: var(--muted); }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefits li { padding: 24px; }

.benefit-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--green-deep);
  background: #e7f6e4;
}

.support-legal {
  font-size: 1.05rem;
  color: var(--ink);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.partner-card {
  margin: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  min-height: 230px;
}

.partner-card img {
  width: auto;
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.partner-card img[alt="Фонд содействия инновациям"] {
  max-height: 72px;
}

.partner-card p { margin: 0; color: var(--muted); font-weight: 700; }

.partner-card-text { background: linear-gradient(180deg, #fff, #f3fbe8); }

.partner-card .partner-kicker {
  color: var(--green-deep);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-card .partner-title {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
}

.partner-cta {
  margin-top: 28px;
  padding: 40px 24px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #22c322 0%, #7fbe32 100%);
}

.partner-cta h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.partner-cta p { margin: 0 auto 18px; max-width: 36rem; color: rgba(255, 255, 255, 0.9); }

.contact-grid { align-items: start; }

.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-list a { font-weight: 800; text-decoration: none; }

.contact-list a:hover { color: var(--green-deep); }

.order-form {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.intent-row { display: flex; flex-wrap: wrap; gap: 8px; }

.intent-row button {
  border: 1px solid var(--line);
  background: #f3faf3;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.intent-row button:hover,
.intent-row button.is-selected {
  border-color: var(--green);
  color: var(--green-deep);
  background: #e7f6e4;
}

.order-form label { display: grid; gap: 6px; font-weight: 800; }

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.order-form input[aria-invalid="true"],
.order-form textarea[aria-invalid="true"] { border-color: #c44747; }

.form-status { min-height: 1.4em; margin: 0; font-weight: 800; }

.form-status[data-state="error"] { color: #a12626; }

.form-status[data-state="ok"] { color: var(--green-deep); }

.form-note { margin: 0; color: var(--muted); font-size: 0.92rem; }

.site-footer {
  background: #163222;
  color: rgba(255, 255, 255, 0.86);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 28px;
}

.brand-light { color: #fff; margin-bottom: 12px; }

.site-footer h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; }

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.site-footer a { text-decoration: none; }

.site-footer a:hover { color: #fff; }

.footer-support {
  margin-top: 32px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.footer-support img {
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  max-height: 58px;
  width: auto;
}

.footer-support p { margin: 0; font-size: 0.92rem; }

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 0 22px;
}

.footer-copy p { margin: 0; }

.call-bar { display: none; }

.call-bar.is-hidden { display: none !important; }

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .steps,
  .benefits,
  .partner-grid,
  .footer-grid,
  .footer-support {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: grid; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(247, 250, 247, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a { padding: 12px 4px; }

  .header-bar { position: relative; }

  .footer-support img { justify-self: start; }

  .header-bar { gap: 10px; }

  .section { padding: 56px 0; }

  .call-bar {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 25;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #22c322 0%, #8ccc33 100%);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(27, 50, 34, 0.2);
  }

  body { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===== Animations & polish ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 40;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #22c322, #8ccc33);
  pointer-events: none;
}

/* Page load */
@keyframes fb-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fb-fade-down { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes fb-pop { from { opacity: 0; transform: scale(0.85) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes fb-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes fb-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 168, 31, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(31, 168, 31, 0); } }
@keyframes fb-shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes fb-blob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.12); } }

.site-header { animation: fb-fade-down 0.6s ease both; }

.hero > .container { position: relative; }

.hero .pill { animation: fb-fade-up 0.6s 0.1s ease both; }
.hero h1 { animation: fb-fade-up 0.7s 0.2s ease both; }
.hero .lead { animation: fb-fade-up 0.7s 0.32s ease both; }
.hero-actions { animation: fb-fade-up 0.7s 0.44s ease both; }
.hero-points { animation: fb-fade-up 0.7s 0.54s ease both; }
.hero-fund { animation: fb-fade-up 0.7s 0.64s ease both; }
.hero-visual { animation: fb-pop 0.9s 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; }
.hero-visual img { animation: fb-float 6s ease-in-out 1.2s infinite; }

.hero h1 span {
  background: linear-gradient(90deg, #178517, #5fb82a, #178517);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fb-shift 5s linear infinite;
}
@keyframes fb-shift { to { background-position: 200% 0; } }

.dot { animation: fb-pulse 1.8s ease-out infinite; }

/* Ambient blobs behind hero */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  width: 320px; height: 320px; right: 6%; top: 4%;
  background: rgba(140, 204, 51, 0.3);
  animation: fb-blob 12s ease-in-out infinite;
}
.hero::after {
  width: 260px; height: 260px; left: -4%; bottom: 0;
  background: rgba(34, 195, 34, 0.18);
  animation: fb-blob 15s ease-in-out infinite reverse;
}

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(34, 195, 34, 0.32); filter: none; }
.btn:hover::after { animation: fb-shine 0.8s ease; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ghost:hover { background: #f1faf0; box-shadow: none; }
.btn-light:hover { box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); }

/* Nav underline */
.site-nav a { position: relative; transition: color 0.2s ease; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a.is-current::after { transform: scaleX(1); }

.brand img { transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.brand:hover img { transform: rotate(-8deg) scale(1.1); }

/* Cards hover */
.steps li, .benefits li, .partner-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.7s ease;
}
.steps li:hover, .benefits li:hover, .partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(27, 50, 34, 0.14);
}
.step-icon, .benefit-icon { transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.3s ease, color 0.3s ease; }
.steps li:hover .step-icon { transform: rotate(-8deg) scale(1.12); }
.benefits li:hover .benefit-icon { transform: scale(1.15) rotate(6deg); background: var(--green); color: #fff; }
.step-num { transition: color 0.3s ease; }
.steps li:hover .step-num { color: rgba(31, 168, 31, 0.5); }

.about-photo img { transition: transform 0.8s ease; }
.about-photo:hover img { transform: scale(1.05); }

/* Form */
.order-form input,
.order-form textarea { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.order-form input:focus,
.order-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 168, 31, 0.12); outline: none; }
.intent-row button { transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.intent-row button:hover { transform: translateY(-2px); }
.contact-list a { transition: color 0.2s ease, padding-left 0.2s ease; }
.contact-list a:hover { padding-left: 6px; }

@keyframes fb-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.order-form input[aria-invalid="true"],
.order-form textarea[aria-invalid="true"] { animation: fb-shake 0.4s ease; }
.form-status[data-state] { animation: fb-fade-up 0.35s ease both; }

/* Mobile call bar */
@keyframes fb-ring { 0%, 100% { transform: none; } 10%, 30% { transform: rotate(-2deg) scale(1.02); } 20%, 40% { transform: rotate(2deg) scale(1.02); } 50% { transform: none; } }
.call-bar { animation: fb-ring 4s ease-in-out 3s infinite; }

/* Mobile menu */
@keyframes fb-menu { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .site-nav.is-open { animation: fb-menu 0.25s ease both; }
  .site-nav a::after { display: none; }
}

/* Scroll reveal (only when JS is active) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), box-shadow 0.3s ease;
}
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .steps li[data-reveal].is-visible:hover,
.js .benefits li[data-reveal].is-visible:hover,
.js .partner-card[data-reveal].is-visible:hover {
  transform: translateY(-6px);
  transition-delay: 0s;
}

/* Check-list ticks */
.js .check-list li::before { transform: rotate(-45deg) scale(0); transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--d, 0s) + 0.2s); }
.js .check-list.is-visible li::before { transform: rotate(-45deg) scale(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
}

/* Fixes: no clipped blobs at section seams, no dark edge on photo hover */
.hero { overflow: visible; }
.hero::after { left: 0; bottom: 14%; }
.hero::before { top: 2%; }
body { overflow-x: clip; }
.about-photo {
  background: transparent;
  isolation: isolate;
  transform: translateZ(0);
}
.about-photo img { backface-visibility: hidden; will-change: transform; }
