:root {
  --blue: #00527f;
  --blue-dark: #003b5e;
  --green: #64be2e;
  --green-dark: #499b22;
  --paper: #f7f9f4;
  --white: #fff;
  --ink: #123047;
  --muted: #61717a;
  --line: #dfe7e3;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 82px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 249, 244, .94);
  border-bottom: 1px solid rgba(18, 48, 71, .08);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand strong { font-size: 1.05rem; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 1.65vw, 28px); }
.site-nav a {
  position: relative;
  padding: 29px 0 26px;
  color: #365263;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after { transform: scaleX(1); }
.site-nav .nav-contact {
  padding: 11px 17px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
}
.site-nav .nav-contact::after,
.site-nav .nav-facebook::after { display: none; }
.site-nav .nav-facebook {
  display: inline-flex;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #1877f2;
  border-radius: 50%;
}
.facebook-mark,
.footer-facebook-link span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: #1877f2;
  border-radius: 50%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
}
.site-nav .nav-facebook .facebook-mark {
  width: auto;
  height: auto;
  background: transparent;
}
.facebook-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--blue);
  background: #fff;
  border: 1px solid rgba(0,82,127,.14);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,82,127,.08);
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  flex: 0 0 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle:focus-visible { outline: 3px solid rgba(100,190,46,.38); outline-offset: 3px; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 690px;
  padding: 110px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 42%, rgba(100, 190, 46, .13), transparent 27%),
    linear-gradient(135deg, #fff 0 55%, #edf6e9 100%);
}
.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: url("/assets/ritka-map-clean.webp") center / cover no-repeat;
  opacity: .11;
  filter: grayscale(.2) saturate(.8);
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0 48%, rgba(255,255,255,.58) 72%, rgba(247,249,244,.38));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 72px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, p { text-wrap: pretty; }
h1 {
  max-width: 780px;
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(4rem, 8vw, 7.4rem);
  font-weight: 820;
  line-height: .9;
  letter-spacing: -.07em;
}
h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--blue) 10%, var(--green) 95%);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-lead {
  max-width: 700px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  line-height: 1.72;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 54px;
  padding: 14px 23px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 16px 35px rgba(0,82,127,.16); }
.button-secondary { color: var(--blue); background: rgba(255,255,255,.78); border-color: #c9d9e2; }
.button-white { color: var(--blue-dark); background: #fff; }

.hero-panel {
  position: relative;
  padding: 44px;
  color: #fff;
  background: linear-gradient(145deg, #00669a, var(--blue-dark));
  border-radius: 36px 36px 100px 36px;
  box-shadow: 0 30px 80px rgba(0,59,94,.2);
}
.hero-panel::after {
  position: absolute;
  right: 30px;
  bottom: 28px;
  width: 92px;
  height: 92px;
  content: "";
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.hero-panel img {
  width: 80px;
  height: 80px;
  padding: 10px;
  object-fit: contain;
  background: #fff;
  border-radius: 22px;
}
.panel-label {
  margin: 48px 0 10px;
  color: #b8ef95;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.panel-title { margin: 0; font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 820; line-height: 1.1; letter-spacing: -.04em; }
.status { display: flex; gap: 9px; margin-top: 34px; align-items: center; color: rgba(255,255,255,.78); font-size: .92rem; }
.status span { width: 10px; height: 10px; flex: 0 0 auto; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 6px rgba(100,190,46,.14); }

.info-section { padding: 110px 0; background: #fff; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 50px;
}
h2 { margin: 0; color: var(--blue-dark); font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.info-card {
  min-height: 330px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
}
.info-card:nth-child(2) { background: #edf6e9; }
.card-number { display: block; margin-bottom: 70px; color: var(--green-dark); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.info-card h3 { margin: 0 0 15px; color: var(--blue-dark); font-size: 1.5rem; line-height: 1.15; letter-spacing: -.03em; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.card-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 850;
  text-decoration: none;
}
.card-link:hover, .card-link:focus-visible { text-decoration: underline; }

.join-section { padding: 80px 0; background: var(--paper); }
.join-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  padding: 65px;
  align-items: center;
  color: #fff;
  background: linear-gradient(125deg, var(--blue-dark), var(--blue));
  border-radius: 34px 34px 100px 34px;
}
.eyebrow-light { color: #b8ef95; }
.join-panel h2 { max-width: 800px; color: #fff; font-size: clamp(2.1rem, 4.4vw, 4.2rem); }
.join-actions { display: grid; gap: 14px; justify-items: center; }
.text-link-light { color: #fff; font-size: .88rem; font-weight: 750; text-align: center; }
footer { padding: 38px 0; color: rgba(255,255,255,.72); background: #062e47; }
.footer-inner { display: flex; gap: 30px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; gap: 12px; align-items: center; color: #fff; }
.footer-brand img { width: 45px; height: 45px; object-fit: contain; }
.footer-brand div { display: grid; gap: 2px; }
.footer-brand span { color: rgba(255,255,255,.62); font-size: .78rem; }
footer p { margin: 0; font-size: .84rem; }
footer a { color: #fff; }
.footer-facebook-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #b8ef95;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}
.footer-facebook-link:hover,
.footer-facebook-link:focus-visible { text-decoration: underline; }

@media (max-width: 900px) {
  .hero { padding: 75px 0; }
  .hero-grid, .section-heading { grid-template-columns: 1fr; gap: 42px; }
  .hero-panel { max-width: 620px; }
  .card-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 0; }
  .card-number { margin-bottom: 44px; }
  .join-panel { grid-template-columns: 1fr; padding: 48px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 860px) {
  .site-header { min-height: 70px; padding: 0 20px; }
  .brand img { width: 42px; height: 42px; }
  .menu-toggle { display: flex; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    z-index: 49;
    inset: 70px 0 0;
    display: none;
    height: calc(100dvh - 70px);
    padding: 30px 24px 48px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-contact { margin-top: 22px; border-bottom: 0; text-align: center; }
  .site-nav .nav-facebook {
    width: auto;
    height: auto;
    margin-top: 12px;
    padding: 12px 4px;
    justify-content: flex-start;
    gap: 10px;
    color: var(--blue);
    background: transparent;
    border-radius: 0;
  }
  .site-nav .nav-facebook .facebook-mark {
    display: inline-grid;
    width: 30px;
    height: 30px;
    color: #fff;
    background: #1877f2;
  }
  .site-nav .nav-facebook .facebook-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}
@media (max-width: 620px) {
  .container { width: min(100% - 30px, var(--max)); }
  .site-header { padding: 0 15px; }
  .brand strong { font-size: .96rem; }
  .hero { min-height: 0; padding: 62px 0; }
  .hero::after { background: rgba(255,255,255,.78); }
  h1 { font-size: clamp(3.3rem, 17vw, 5.1rem); }
  .hero-lead { margin-top: 25px; font-size: 1rem; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-panel { padding: 30px; border-radius: 28px 28px 72px 28px; }
  .panel-label { margin-top: 38px; }
  .info-section { padding: 75px 0; }
  .section-heading { margin-bottom: 34px; }
  .info-card { padding: 28px; }
  .join-section { padding: 52px 0; }
  .join-panel { gap: 35px; padding: 36px 28px; border-radius: 28px 28px 72px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
