/* Заботливые сердца — дизайн «Мягкая графика» (вариант В, утверждён 01.09.2026).
   Пастель из бирюзы, волны-разделители, иллюстрации вместо фото. */

:root {
  --teal: #11ADBC;
  --teal-deep: #0d8a96;
  --mint: #DFF3F1;
  --mint-soft: #EFF9F8;
  --butter: #FFF6DE;
  --rose: #F9E8E6;
  --graphite: #272B2D;
  --text: #3a4144;
  --muted: #75807f;
  --bg: #FDFDFB;
  --max: 1060px;
  --max-narrow: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
}

/* картинки завёрнуты в picture ради лёгкого формата — обёртка не должна влиять на раскладку */
picture { display: contents; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--max-narrow); }

h1, h2, h3 { color: var(--graphite); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; margin: 0 0 20px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); font-weight: 700; margin: 0 0 26px; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }

a { color: var(--teal-deep); }

/* Шапка */
.topbar { background: var(--mint); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 8px; }
.topbar__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--graphite); }
.topbar__sign { display: block; }

/* Кнопки */
.btn {
  display: inline-block;
  background: var(--graphite);
  color: #fff;
  padding: 16px 34px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: #000; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn--teal { background: var(--teal); }
.btn--teal:hover { background: var(--teal-deep); }
.btn--small { padding: 9px 20px; font-size: 0.9rem; border-radius: 100px; background: var(--teal); }
.btn--small:hover { background: var(--teal-deep); }

.quiet-link { margin-left: 18px; color: var(--muted); font-size: 0.95rem; }

/* Первый экран на мятном с волной + мягкая анимация */
.hero { position: relative; background: var(--mint); padding: 56px 0 130px; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(2px); opacity: 0.35; background: var(--teal);
}
.hero::before { width: 340px; height: 340px; top: -120px; right: -80px; animation: float-a 14s ease-in-out infinite; }
.hero::after { width: 220px; height: 220px; bottom: 40px; left: -90px; background: var(--rose); opacity: 0.6; animation: float-b 18s ease-in-out infinite; }
@keyframes float-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px,18px) scale(1.06); } }
@keyframes float-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-16px) scale(0.95); } }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1, .hero__sub, .hero__actions { animation: rise-in 0.9s ease-out both; }
.hero__sub { animation-delay: 0.15s; }
.hero__actions { animation-delay: 0.3s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero h1, .hero__sub, .hero__actions, .hero__art img { animation: none !important; }
}
.hero__sub { font-size: 1.12rem; color: #4d5a59; max-width: 30em; margin: 0 0 30px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero__art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__art img {
  width: 100%; max-width: 440px; height: auto;
  border-radius: 48% 52% 55% 45% / 50% 46% 54% 50%;
  box-shadow: 0 16px 48px rgba(17, 173, 188, 0.22);
  animation: gentle-sway 9s ease-in-out infinite;
}
@keyframes gentle-sway { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(0.6deg); } }
.wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 1; display: block; width: 100%; }

/* Секции */
.section { padding: 64px 0; }
.section--tint { background: var(--mint-soft); }

.plain-list { padding-left: 1.2em; margin: 0.6em 0 1em; }
.plain-list li { margin-bottom: 0.45em; }

/* «Если это про вас» — пастельные карточки */
.sit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 20px; }
.sit-card { border-radius: 22px; padding: 26px 24px; font-weight: 500; color: var(--graphite); }
.sit-card:nth-child(3n+1) { background: var(--butter); }
.sit-card:nth-child(3n+2) { background: var(--rose); }
.sit-card:nth-child(3n+3) { background: var(--mint); }
.sit-card .ico { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.3rem; }
.sit-more { text-align: center; color: var(--muted); }

/* История */
.story { background: #fff; border-radius: 26px; padding: 34px 32px; box-shadow: 0 6px 30px rgba(39, 43, 45, 0.07); }
.story p { margin: 0 0 1em; }
.story__sign { text-align: right; color: var(--teal-deep); font-weight: 600; margin-bottom: 0 !important; }

/* Команда */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px 0 16px; }
.team-card { position: relative; background: #fff; border-radius: 22px; padding: 18px 18px 22px; text-align: center; box-shadow: 0 2px 12px rgba(39, 43, 45, 0.05); }
.team-card img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; object-fit: cover; margin-bottom: 14px; }
.team-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.team-card__role { margin: 0 0 6px; font-weight: 500; color: var(--teal-deep); font-size: 0.92rem; }
.team-card__edu { margin: 0; color: var(--muted); font-size: 0.85rem; }
.demo-badge { position: absolute; top: 14px; right: 14px; background: var(--butter); color: #8a6d1a; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em; }
/* три фото всегда в один ряд, подписи под фото (правка Сергея 01.09) */
@media (max-width: 760px) {
  .team-grid { gap: 10px; }
  .team-card { padding: 10px 8px 14px; }
  .team-card h3 { font-size: 0.9rem; }
  .team-card__role { font-size: 0.78rem; }
  .team-card__edu { font-size: 0.72rem; }
  .demo-badge { top: 6px; right: 6px; font-size: 0.6rem; padding: 2px 7px; }
}

/* Что мы делаем — квадратные карточки с картинками */
.do-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.do-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.do-card { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 2px 12px rgba(39, 43, 45, 0.05); display: flex; flex-direction: column; }
.do-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.do-card h3 { margin: 0 0 8px; }
.do-card p { margin: 0; font-size: 0.95rem; }
.do-block { border-radius: 22px; padding: 26px 28px; margin-bottom: 16px; background: #fff; box-shadow: 0 2px 12px rgba(39, 43, 45, 0.05); }
.do-block--border { background: var(--rose); box-shadow: none; }
@media (max-width: 760px) { .do-grid { grid-template-columns: 1fr; } }

/* Как проходит помощь */
.how-img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto 26px; border-radius: 22px; box-shadow: 0 8px 30px rgba(17, 173, 188, 0.15); }

/* Шаги */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1em; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1em 56px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Плейсхолдеры контента — убрать до публикации */
.placeholder-inline { background: #fff3cd; outline: 1px dashed #d4b106; padding: 0 4px; }
.placeholder {
  border: 2px dashed #b9d8d5;
  border-radius: 22px;
  padding: 30px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  background: #fff;
}

/* Форма */
.section--form { background: var(--mint-soft); }
#contact-form { background: #fff; border-radius: 26px; padding: 34px 30px; box-shadow: 0 6px 30px rgba(39, 43, 45, 0.07); }
#contact-form label { display: block; margin-bottom: 1.1em; }
#contact-form label > span { display: block; margin-bottom: 0.35em; font-weight: 600; color: var(--graphite); }
#contact-form label em { font-weight: 400; color: var(--muted); font-style: normal; }
#contact-form input[type="text"],
#contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d5e2e0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
}
#contact-form input:focus, #contact-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  border-color: var(--teal);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.check input { margin-top: 4px; flex-shrink: 0; accent-color: var(--teal); }
.check span { font-weight: 400 !important; color: var(--muted) !important; }

/* honeypot: визуально спрятан, для ботов выглядит обычным полем */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

#form-success { color: var(--teal-deep); font-weight: 600; }
#form-error { color: #a4423c; }
.form-note { font-size: 0.92rem; color: var(--muted); margin-top: 1.4em; }

/* Реквизиты */
.rekv { margin-top: 1.2em; }
.rekv summary { cursor: pointer; color: var(--teal-deep); font-weight: 600; }
.rekv p { font-size: 0.92rem; color: var(--muted); }

/* Подвал */
.footer { background: var(--graphite); color: #c7cccd; padding: 48px 0; font-size: 0.92rem; }
.footer a { color: #9fd9de; }
.footer__logo { margin-bottom: 14px; background: #fff; padding: 8px 12px; border-radius: 12px; height: auto; }
.footer__docs { color: #8a9194; }

@media (max-width: 760px) {
  .hero { padding: 40px 0 100px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__art { max-width: 340px; margin: 0 auto; }
  .section { padding: 44px 0; }
  .sit-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .btn--small { width: auto; }
  .quiet-link { margin-left: 0; }
}
