/* ==========================================================================
   АНО «Единение» — лендинг
   Дизайн-система на основе Stitch: Forest Green + Leaf + Teal, тёплый крем,
   крупные скругления, мягкие тени, доступная типографика.
   ========================================================================== */

:root {
  /* Brand */
  --green:        #2e7d32;   /* primary */
  --green-deep:   #1b6d24;   /* hover / dark */
  --green-ink:    #123f16;
  --leaf:         #5fa83e;   /* secondary */
  --leaf-soft:    #dff3d3;
  --teal:         #0f8f80;   /* accent (Редкая миля) */
  --teal-deep:    #076b60;
  --teal-soft:    #d6f1ec;

  /* Neutrals */
  --cream:        #f7f5ef;   /* page background */
  --cream-2:      #efece1;
  --surface:      #ffffff;
  --ink:          #17251b;   /* main text */
  --ink-2:        #46503f;   /* muted text */
  --muted:        #6b7269;   /* captions */
  --line:         #e7e3d6;
  --line-2:       #dbe6d7;

  /* Radii */
  --r-card: 24px;
  --r-lg:   28px;
  --r-sm:   14px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-soft:  0 10px 34px rgba(23, 37, 27, 0.06);
  --shadow-hover: 0 18px 48px rgba(23, 37, 27, 0.13);
  --shadow-card:  0 6px 22px rgba(23, 37, 27, 0.05);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Plus Jakarta Sans", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 8vw, 108px) 0; position: relative; }
.section--tint { background: linear-gradient(180deg, #fff 0%, #fbfaf5 100%); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 7px 15px; border-radius: var(--r-pill);
}
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; }
.section-title { font-size: clamp(28px, 4.2vw, 44px); margin: 18px 0 0; }
.section-lead { color: var(--ink-2); font-size: clamp(17px, 2vw, 20px); margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 15px 28px; border-radius: var(--r-pill); border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn .i { width: 20px; height: 20px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--green-deep); box-shadow: var(--shadow-hover); }
.btn--outline { background: var(--surface); color: var(--green-deep); border-color: var(--leaf); box-shadow: var(--shadow-card); }
.btn--outline:hover { border-color: var(--green); box-shadow: var(--shadow-hover); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.24); }
.btn--white { background: #fff; color: var(--green-deep); box-shadow: var(--shadow-soft); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(247,245,239,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(23,37,27,.07); border-bottom-color: var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-card);
  padding: 5px; flex: none;
}
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--green-deep); line-height: 1.05; }
.brand__name span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--green); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 46px; height: 46px; border: none; background: transparent; color: var(--green-deep); border-radius: 12px; }
.burger svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(120px, 16vw, 168px); padding-bottom: clamp(40px, 7vw, 88px); overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; pointer-events: none; }
.hero__blob--1 { width: 460px; height: 460px; background: #cfeecb; top: -120px; right: -80px; }
.hero__blob--2 { width: 380px; height: 380px; background: #cdeee7; bottom: -140px; left: -120px; opacity: .45; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  padding: 8px 15px; border-radius: var(--r-pill);
}
.pill .i { width: 17px; height: 17px; }
.pill--green { background: rgba(46,125,50,.1); color: var(--green-deep); }
.pill--teal { background: var(--teal-soft); color: var(--teal-deep); }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; }
.hero__lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-2); margin-top: 22px; max-width: 33ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust { display: flex; align-items: center; gap: 14px; margin-top: 30px; color: var(--muted); font-size: 14.5px; }
.hero__trust .avatars { display: flex; }
.hero__trust .avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--cream); margin-left: -10px; background: var(--leaf-soft); display: grid; place-items: center; color: var(--green-deep); }
.hero__trust .avatars span:first-child { margin-left: 0; }

.hero__media { position: relative; }
.hero__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-hover); aspect-ratio: 5 / 5.6; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__float {
  position: absolute; left: 22px; bottom: 22px; right: 22px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-hover);
  display: flex; align-items: center; gap: 14px; max-width: 340px;
}
.hero__float .icon-circle { flex: none; }
.hero__float b { font-family: var(--font-head); font-size: 17px; color: var(--green-deep); display: block; }
.hero__float small { color: var(--ink-2); font-size: 14px; }

/* ---------- Icon circle ---------- */
.icon-circle {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--leaf-soft); color: var(--green-deep); flex: none;
}
.icon-circle .i { width: 27px; height: 27px; }
.icon-circle--teal { background: var(--teal-soft); color: var(--teal-deep); }

/* ---------- Stats ---------- */
.stats { background: var(--green); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-hover); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 1px; background: rgba(255,255,255,.18); }
.stat b { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 4vw, 40px); display: block; letter-spacing: -.02em; }
.stat span { font-size: 15px; color: #dff3d3; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 30px; box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--line-2); }
.card h3 { font-size: 21px; margin: 20px 0 10px; }
.card p { color: var(--ink-2); font-size: 16.5px; }

/* ---------- About / mission ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.about__lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--ink); font-family: var(--font-head); font-weight: 600; line-height: 1.4; }
.about p + p { margin-top: 18px; color: var(--ink-2); font-family: var(--font-body); font-weight: 400; font-size: 17.5px; }
.quote {
  background: var(--surface); border-left: 5px solid var(--teal); border-radius: 18px;
  padding: 28px 30px; box-shadow: var(--shadow-card); position: relative;
}
.quote p { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.45; }
.quote cite { display: block; margin-top: 16px; font-style: normal; color: var(--muted); font-size: 15px; }
.quote cite b { color: var(--green-deep); font-family: var(--font-head); }

/* ---------- Projects ---------- */
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.project__img { aspect-ratio: 16 / 11; overflow: hidden; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project__img img { transform: scale(1.06); }
.project__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-family: var(--font-head); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill); background: var(--leaf-soft); color: var(--green-deep); margin-bottom: 14px; }
.tag--teal { background: var(--teal-soft); color: var(--teal-deep); }
.project h3 { font-size: 22px; }
.project p { color: var(--ink-2); font-size: 16px; margin-top: 10px; flex: 1; }
.project__note { margin-top: 18px; display: flex; align-items: center; gap: 8px; color: var(--teal-deep); font-weight: 700; font-family: var(--font-head); font-size: 14.5px; }
.project__note .i { width: 18px; height: 18px; }

/* ---------- Gallery ---------- */
.gallery { columns: 3; column-gap: 18px; }
.gallery figure { break-inside: avoid; margin: 0 0 18px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.gallery img { width: 100%; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 12px; color: #fff; font-size: 14px;
  font-family: var(--font-head); font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(11,24,15,.72));
  opacity: 0; transform: translateY(8px); transition: .3s ease;
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }

/* ---------- Help ---------- */
.help-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.help-card .icon-circle { width: 64px; height: 64px; border-radius: 20px; margin-bottom: 8px; }
.help-card .btn { margin-top: 22px; }

/* ---------- Contacts ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-info { display: flex; flex-direction: column; gap: 8px; }
.contact-person { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.contact-person .avatar { width: 66px; height: 66px; border-radius: 50%; background: var(--leaf-soft); display: grid; place-items: center; color: var(--green-deep); flex: none; box-shadow: var(--shadow-card); }
.contact-person b { font-family: var(--font-head); font-size: 19px; color: var(--ink); display: block; }
.contact-person span { color: var(--muted); font-size: 15px; }
.contact-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: .2s; margin-bottom: 12px; }
.contact-list a:hover { border-color: var(--leaf); box-shadow: var(--shadow-card); transform: translateX(3px); }
.contact-list .icon-circle { width: 44px; height: 44px; border-radius: 13px; }
.contact-list .icon-circle .i { width: 21px; height: 21px; }
.contact-list b { font-family: var(--font-head); font-size: 16.5px; color: var(--ink); display: block; }
.contact-list small { color: var(--muted); font-size: 13.5px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-card); }
.form h3 { font-size: 22px; margin-bottom: 6px; }
.form p.hint { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fcfbf7; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(46,125,50,.12); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--green) 0%, var(--teal-deep) 100%); color: #fff; border-radius: var(--r-lg); padding: clamp(40px, 6vw, 68px); text-align: center; box-shadow: var(--shadow-hover); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 16px auto 0; font-size: 18px; }
.cta-band .hero__cta { justify-content: center; margin-top: 30px; }
.cta-band__mark { position: absolute; right: -40px; top: -30px; width: 240px; opacity: .12; }

/* ---------- Footer ---------- */
.footer { background: #16251b; color: #cdd8ce; padding: clamp(52px, 7vw, 80px) 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand__name { color: #fff; }
.footer .brand__name span { color: #8fa593; }
.footer__about { margin-top: 18px; color: #a9b7ac; font-size: 15.5px; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer__links a { display: block; color: #b7c4b9; padding: 6px 0; font-size: 15.5px; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cdd8ce; transition: .2s; }
.socials a:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.footer__req { margin-top: 22px; font-size: 13.5px; color: #8fa593; line-height: 1.7; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8fa593; font-size: 14px; }
.footer__bottom a { color: #b7c4b9; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 76px 0 auto 0; z-index: 99;
  background: var(--cream); border-bottom: 1px solid var(--line);
  padding: 14px var(--gutter) 24px; display: none; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-hover);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink); padding: 14px 6px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: grid; place-items: center; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; }
  .hero__lead { max-width: none; }
  .about__grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stat + .stat::before { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn, .cta-band .btn { width: 100%; }
  .card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* honeypot: скрыт от людей, но не display:none — часть ботов такие поля игнорирует */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 12px 0 0; font-size: 15px; min-height: 1.4em; }
.form-msg.ok { color: #2f6f4f; }
.form-msg.err { color: #a4462f; }
