:root {
  --bg: #FBFAF6;
  --ink: #1B1F33;
  --muted: #565B72;
  --soft: #8A8FA3;
  --accent: #5B5BD6;
  --accent-dark: #4A47B8;
  --orange: #F5A623;
  --green: #34A853;
  --line: #ECE9E0;
  --line-2: #E3E0D6;
  --font-head: 'Unbounded', sans-serif;
  --font-body: 'Golos Text', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

@keyframes kFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes kFloatB { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes kSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes kMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kDash { to { stroke-dashoffset: -24; } }
@keyframes kPulse { 0%,100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.35); opacity: .15; } }

/* ---------- Навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.logo {
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  color: var(--ink); text-decoration: none; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 10px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  font-family: var(--font-body); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-dark { background: var(--ink); color: #fff; font-size: 14px; padding: 11px 22px; }
.btn-dark:hover { background: var(--accent); transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #fff; font-size: 16px; padding: 16px 32px;
  box-shadow: 0 10px 24px rgba(91, 91, 214, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(91, 91, 214, 0.38); }
.btn-outline {
  background: #fff; color: var(--ink); font-size: 16px; padding: 16px 32px;
  border: 1.5px solid var(--line-2);
}
.btn-outline:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #EEEDFB; color: var(--accent-dark);
  font-size: 13.5px; font-weight: 600; padding: 8px 16px;
  border-radius: 999px; margin-bottom: 26px;
}
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(34px, 4.2vw, 54px); line-height: 1.14;
  margin-bottom: 22px; letter-spacing: -0.5px;
}
.hl { position: relative; display: inline-block; color: var(--accent); }
.hl svg { position: absolute; left: 0; bottom: -8px; width: 100%; height: 12px; }
.hero-sub { font-size: 18px; line-height: 1.65; color: var(--muted); margin-bottom: 34px; max-width: 520px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat-num { font-family: var(--font-head); font-weight: 600; font-size: 26px; }
.stat-label { font-size: 13.5px; color: var(--soft); max-width: 130px; line-height: 1.4; margin-top: 4px; }
.hero-art { position: relative; min-height: 440px; }
.hero-art svg { width: 100%; height: auto; }
.anim-float { animation: kFloat 5s ease-in-out infinite; }
.anim-float-slow { animation: kFloat 7s ease-in-out infinite; }
.anim-float-b { animation: kFloatB 6s ease-in-out infinite; }
.anim-dash { animation: kDash 1.6s linear infinite; }

/* ---------- Маркиза ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff; overflow: hidden; padding: 18px 0;
}
.marquee-track { display: flex; width: max-content; animation: kMarquee 30s linear infinite; }
.marquee-item {
  display: flex; align-items: center; gap: 12px; padding: 0 26px;
  font-family: var(--font-head); font-size: 14px; font-weight: 500;
  color: var(--soft); white-space: nowrap;
}
.marquee-item i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ---------- Секции ---------- */
.section { padding: 96px 0 40px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head h2, .contact-info h2 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(26px, 3vw, 38px); margin-bottom: 16px; line-height: 1.2;
}
.section-head p { font-size: 17px; color: var(--muted); text-wrap: pretty; }

/* ---------- Услуги ---------- */
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  background: #fff; border: 1.5px solid var(--line); border-radius: 22px;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(27, 31, 51, 0.09); border-color: #D8D6F5; }
.svc-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.svc h3 { font-family: var(--font-head); font-weight: 600; font-size: 17px; margin-top: 6px; line-height: 1.35; }
.svc p { font-size: 15px; color: var(--muted); flex: 1; }
.svc-price {
  font-weight: 700; font-size: 15px; color: var(--accent);
  background: #F4F3FC; align-self: flex-start; padding: 7px 14px; border-radius: 999px;
}

/* ---------- Кейсы ---------- */
.grid-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case {
  background: #fff; border: 1.5px solid var(--line); border-radius: 22px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.case:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(27, 31, 51, 0.09); }
.case-head { padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.case-tags span {
  font-size: 12px; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(27, 31, 51, 0.12);
  padding: 4px 11px; border-radius: 999px;
}
.case-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-body h3 { font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.35; }
.case-body > p { font-size: 15px; color: var(--muted); flex: 1; }
.case-result {
  display: flex; align-items: flex-start; gap: 10px;
  background: #F7F6F0; border-radius: 14px; padding: 13px 16px;
  font-size: 14px; font-weight: 600; line-height: 1.45;
}
.case-result svg { flex-shrink: 0; margin-top: 1px; }

/* ---------- Отзывы ---------- */
.reviews-section {
  padding: 96px 0 40px; background: #F3F1FB; margin-top: 56px;
  border-top: 1px solid #E4E1F2; border-bottom: 1px solid #E4E1F2;
}
.reviews-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 48px;
}
.reviews-head .section-head { margin-bottom: 0; max-width: 560px; }
.rating-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1.5px solid #E4E1F2; border-radius: 18px;
  padding: 16px 22px; text-decoration: none; color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.rating-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27, 31, 51, 0.1); }
.rating-num { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--accent); }
.rating-stars { color: var(--orange); font-size: 16px; letter-spacing: 2px; }
.rating-note { font-size: 13px; color: var(--soft); margin-top: 2px; }
.reviews-cols { columns: 3; column-gap: 20px; }
.review {
  break-inside: avoid; background: #fff; border: 1.5px solid #E4E1F2;
  border-radius: 20px; padding: 26px; margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.review-stars { color: var(--orange); font-size: 15px; letter-spacing: 2.5px; }
.review p { font-size: 15px; line-height: 1.65; color: #33384E; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.review-name { font-weight: 700; font-size: 14.5px; }
.review-project { font-size: 13px; color: var(--soft); margin-top: 1px; }

/* ---------- Процесс ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps-line { position: absolute; top: 34px; left: 10%; width: 80%; height: 4px; z-index: 0; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.step-badge { position: relative; width: 68px; height: 68px; }
.step-pulse { position: absolute; inset: 0; border-radius: 22px; animation: kPulse 3.2s ease-in-out infinite; }
.step-num {
  position: relative; width: 68px; height: 68px; border-radius: 22px;
  border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
}
.step h3 { font-family: var(--font-head); font-weight: 600; font-size: 17px; margin-top: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Контакты ---------- */
.contact-section { padding: 96px 0 100px; }
.contact-panel {
  background: var(--ink); border-radius: 32px; padding: 60px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  position: relative; overflow: hidden;
}
.contact-deco { position: absolute; right: -50px; top: -50px; width: 260px; opacity: 0.12; }
.contact-info { color: #fff; }
.contact-info .section-tag { color: #A5A3F0; }
.contact-info > p { font-size: 16.5px; color: #B9BCCB; line-height: 1.65; margin-bottom: 30px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.contact-links a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15.5px;
  display: flex; align-items: center; gap: 10px; transition: color 0.2s;
}
.contact-links a:hover { color: #A5A3F0; }
.guarantees {
  display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 26px;
}
.guarantees div {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; color: #B9BCCB; line-height: 1.5;
}
.guarantees svg { flex-shrink: 0; margin-top: 2px; }
.guarantees b { color: #fff; }

.form-card { background: #fff; border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: #33384E;
}
.form-card input, .form-card select, .form-card textarea {
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 13px 15px;
  font-size: 15px; font-family: inherit; outline: none;
  background: var(--bg); color: var(--ink); resize: vertical;
  transition: border-color 0.2s;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--accent); }
.form-submit {
  background: var(--accent); color: #fff; border: none;
  font-weight: 600; font-size: 16px; padding: 16px; border-radius: 999px;
  cursor: pointer; font-family: inherit; transition: background 0.2s, transform 0.2s;
}
.form-submit:hover { background: var(--accent-dark); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }
.form-note { font-size: 12.5px; color: var(--soft); text-align: center; }
.form-error { font-size: 14px; font-weight: 600; color: #D14343; text-align: center; display: none; }

.form-success {
  display: none; flex-direction: column; align-items: center; gap: 16px;
  padding: 48px 20px; text-align: center;
}
.form-success .fs-title { font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.form-success p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.fs-again {
  background: none; border: none; color: var(--accent);
  font-weight: 600; font-size: 14.5px; cursor: pointer; font-family: inherit;
}
.form-card.sent .form-success { display: flex; }
.form-card.sent .form-fields { display: none; }
.form-fields { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.footer-logo span { color: var(--accent); }
.footer-text { font-size: 14px; color: var(--soft); }
.footer-links { display: flex; gap: 20px; font-size: 14px; font-weight: 600; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps-line { display: none; }
  .grid-cases { grid-template-columns: 1fr; }
  .reviews-cols { columns: 2; }
  .contact-panel { grid-template-columns: 1fr; padding: 36px 24px; gap: 40px; }
}
@media (max-width: 600px) {
  .grid-services, .steps, .form-row { grid-template-columns: 1fr; }
  .reviews-cols { columns: 1; }
  .hero { padding: 56px 0 56px; }
  .hero-art { min-height: 0; }
}
