/* Vars */
:root {
  --gr-bg: #F1F4EE;
  --gr-surface: #FBFCF9;
  --gr-text: #1C2A20;
  --gr-muted: #4E5E52;
  --gr-accent: #2F6B45;
  --gr-accent-text: #F1F4EE;
  --gr-plate-bg: #1C2A20;
  --gr-plate-text: #F1F4EE;
  --gr-line: #D8DFD6;
  --gr-font-head: 'Gill Sans', 'Gill Sans MT', Calibri, 'Segoe UI', sans-serif;
  --gr-font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gr-radius-card: 14px;
  --gr-radius-btn: 999px;
  --gr-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
  --gr-pad: clamp(16px, 4vw, 40px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--gr-bg);
  color: var(--gr-text);
  font-family: var(--gr-font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--gr-font-head);
  font-weight: 650;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.2rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--gr-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #24523A; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--gr-accent); outline-offset: 2px; }

/* Background layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--gr-accent) 3px, transparent 3.5px);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
}

/* Layout */
.gr-shell { max-width: 1200px; margin: 0 auto; padding: 0 var(--gr-pad); }
.gr-shell--narrow { max-width: 760px; }
.gr-block { padding: clamp(64px, 7vw, 112px) 0; overflow-x: clip; }
.gr-block__title { margin-bottom: 12px; }
.gr-block__intro { color: var(--gr-muted); font-size: 1.1rem; margin-bottom: clamp(32px, 4vw, 48px); }
main { min-height: 50vh; }

/* Skip link */
.gr-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--gr-plate-bg);
  color: var(--gr-plate-text);
  padding: 12px 20px;
  border-radius: var(--gr-radius-btn);
  text-decoration: none;
  transition: top 0.2s ease;
}
.gr-skip:focus { top: 12px; }

/* Header */
.gr-topbar {
  background: var(--gr-surface);
  border-bottom: 1px solid var(--gr-line);
  padding: 20px 0 14px;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: padding 0.3s ease;
}
.gr-topbar__brand {
  display: block;
  text-align: center;
  font-family: var(--gr-font-head);
  font-weight: 650;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gr-text);
  text-decoration: none;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.gr-topbar.is-compact { padding: 6px 0 4px; }
.gr-topbar.is-compact .gr-topbar__brand { font-size: 1.15rem; margin-bottom: 4px; }

/* Nav */
.gr-menu__list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
}
.gr-menu__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--gr-text);
  text-decoration: none;
  font-size: 16px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-bottom-width 0.2s ease, color 0.2s ease;
}
.gr-menu__link:hover {
  color: var(--gr-accent);
  border-bottom: 4px solid var(--gr-accent);
}
.gr-menu__link[aria-current="page"] { color: var(--gr-accent); font-weight: 600; }
.gr-menu__num { font-size: 13px; color: var(--gr-muted); font-variant-numeric: tabular-nums; }

.gr-menu__switch {
  display: none;
  background: none;
  border: 1px solid var(--gr-line);
  border-radius: var(--gr-radius-btn);
  padding: 10px 18px;
  cursor: pointer;
  color: var(--gr-text);
  font: inherit;
  align-items: center;
  gap: 10px;
}
.gr-menu__switch-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gr-text);
  margin: 2px 0;
}
.gr-menu__switch-caption { font-size: 15px; }

/* Hero */
.gr-hero { padding-top: clamp(48px, 6vw, 80px); }
.gr-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.gr-hero__title {
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1.1;
  max-width: 12ch;
  margin-bottom: 20px;
}
.gr-hero__lead { font-size: 1.15rem; line-height: 1.6; max-width: 32ch; color: var(--gr-muted); margin-bottom: 28px; }
.gr-hero__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
html.has-js .gr-hero__copy > * { animation: gr-rise 0.5s ease both; }
html.has-js .gr-hero__copy > *:nth-child(2) { animation-delay: 0.12s; }
html.has-js .gr-hero__copy > *:nth-child(3) { animation-delay: 0.24s; }
@keyframes gr-rise { from { transform: translateY(12px); } to { transform: translateY(0); } }

/* Typographic accent */
.gr-mark {
  display: inline;
  background: linear-gradient(transparent 62%, rgb(47 107 69 / 0.22) 62%);
  color: inherit;
  font-style: normal;
}
.gr-mark--big {
  font-family: var(--gr-font-head);
  font-weight: 650;
  font-size: clamp(2.6rem, 6vw + 1rem, 6rem);
  line-height: 1.05;
  display: block;
  color: var(--gr-accent);
}

/* Buttons */
.gr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid var(--gr-text);
  border-radius: var(--gr-radius-btn);
  background: transparent;
  color: var(--gr-text);
  font-family: var(--gr-font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.15s ease, color 0.25s ease;
}
.gr-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--gr-text);
  transform: scale(0);
  transition: transform 0.3s ease;
}
.gr-btn:hover { color: var(--gr-bg); }
.gr-btn:hover::before { transform: scale(1.6); }
.gr-btn:focus-visible { outline: 4px solid var(--gr-accent); outline-offset: 3px; }
.gr-btn:active { transform: scale(0.96); }
.gr-btn--invert {
  border-color: var(--gr-plate-text);
  color: var(--gr-plate-text);
}
.gr-btn--invert::before { background: var(--gr-plate-text); }
.gr-btn--invert:hover { color: var(--gr-plate-bg); }

/* Cards */
.gr-tile {
  background: var(--gr-surface);
  border-radius: var(--gr-radius-card);
  padding: clamp(20px, 2.5vw, 28px);
  box-shadow: var(--gr-shadow);
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.gr-tile:hover {
  box-shadow: 0 2px 4px rgb(47 107 69 / .10), 0 16px 40px rgb(47 107 69 / .18);
}
.gr-tile h3 { margin-bottom: 10px; }
.gr-tile a { font-weight: 600; }

/* Two columns */
.gr-duo { display: grid; grid-template-columns: 1fr; gap: 24px; }
.gr-duo__col { margin: 0; }

/* Steps */
.gr-steps {
  list-style: none;
  counter-reset: gr-step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
.gr-steps__item { position: relative; counter-increment: gr-step; display: flex; flex-direction: column; }
.gr-steps__item::before {
  content: counter(gr-step, decimal-leading-zero);
  font-family: var(--gr-font-head);
  font-weight: 650;
  color: var(--gr-accent);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 8px;
}

/* Filter */
.gr-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.gr-filter__btn {
  border: 1px solid var(--gr-line);
  background: var(--gr-surface);
  color: var(--gr-text);
  border-radius: var(--gr-radius-btn);
  padding: 10px 20px;
  min-height: 44px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.gr-filter__btn:hover { border-color: var(--gr-accent); }
.gr-filter__btn.is-active {
  background: var(--gr-accent);
  border-color: var(--gr-accent);
  color: var(--gr-accent-text);
  font-weight: 600;
}

/* Rubrics */
.gr-rubrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.gr-rubrics__item[hidden] { display: none; }

/* Images */
.gr-frame {
  margin: 0;
  position: relative;
  border-radius: var(--gr-radius-card);
  overflow: visible;
}
.gr-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(12px, 12px);
  background: var(--gr-accent);
  opacity: 0.28;
  border-radius: var(--gr-radius-card);
  z-index: -1;
}
.gr-frame img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--gr-radius-card);
  aspect-ratio: 16 / 9;
  background: var(--gr-surface);
}
.gr-frame--tall img { aspect-ratio: 3 / 4; }
.gr-frame--square img { aspect-ratio: 1 / 1; }
.gr-frame--classic img { aspect-ratio: 4 / 3; }
.gr-frame--wide img { aspect-ratio: 16 / 9; }

/* Gallery */
.gr-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 32px);
}

/* FAQ */
.gr-questions { display: grid; gap: 12px; max-width: 760px; }
.gr-questions__item {
  background: var(--gr-surface);
  border-radius: var(--gr-radius-card);
  padding: 18px 24px;
  box-shadow: var(--gr-shadow);
}
.gr-questions__item summary {
  font-family: var(--gr-font-head);
  font-weight: 650;
  font-size: 1.15rem;
  cursor: pointer;
  list-style-position: inside;
}
.gr-questions__item[open] summary { color: var(--gr-accent); }
.gr-questions__item p { margin: 12px 0 0; color: var(--gr-muted); }

/* Contrast plate */
.gr-panel {
  background: var(--gr-plate-bg);
  color: var(--gr-plate-text);
  border-radius: var(--gr-radius-card);
  padding: clamp(32px, 5vw, 56px);
}
.gr-panel__title { color: var(--gr-plate-text); }
.gr-panel__intro { color: rgb(241 244 238 / 0.85); margin-bottom: 28px; }

/* Form */
.gr-inquiry { display: grid; gap: 18px; }
.gr-inquiry__row { display: grid; gap: 6px; }
.gr-inquiry__tag { font-weight: 600; font-size: 15px; color: var(--gr-plate-text); }
.gr-inquiry__box {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--gr-surface);
  color: var(--gr-text);
  font: inherit;
  padding: 12px 16px;
  min-height: 48px;
}
.gr-inquiry__box::placeholder { color: var(--gr-muted); }
.gr-inquiry__box:focus { outline: 3px solid var(--gr-accent); outline-offset: 2px; }
.gr-inquiry__area { resize: vertical; min-height: 120px; }
.gr-inquiry__agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: rgb(241 244 238 / 0.9);
}
.gr-inquiry__agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gr-accent); }
.gr-inquiry__agree a { color: var(--gr-accent-text); text-decoration-thickness: 2px; }
.gr-inquiry__hint { font-size: 14px; color: rgb(241 244 238 / 0.75); margin: 0; }
.gr-inquiry__alert { color: #FFD9C9; font-size: 14px; margin: 0; display: none; }
.gr-inquiry__alert.is-visible { display: block; }
.gr-inquiry__send { justify-self: start; border-color: var(--gr-plate-text); color: var(--gr-plate-text); }
.gr-inquiry__send::before { background: var(--gr-plate-text); }
.gr-inquiry__send:hover { color: var(--gr-plate-bg); }
.gr-inquiry.is-busy .gr-inquiry__send { opacity: 0.6; pointer-events: none; }

/* Floating panel */
.gr-panel--float {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  padding: 16px 20px;
  border-radius: var(--gr-radius-card);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--gr-shadow);
}
.gr-panel--float .gr-panel__note { margin: 0; font-size: 15px; }

/* Footer */
.gr-foot {
  background: var(--gr-surface);
  border-top: 1px solid var(--gr-line);
  padding: clamp(48px, 6vw, 72px) 0 24px;
  margin-top: clamp(48px, 6vw, 80px);
}
.gr-foot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gr-line);
}
.gr-foot__title {
  font-family: var(--gr-font-head);
  font-weight: 650;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.gr-foot__text { color: var(--gr-muted); font-size: 15px; }
.gr-foot__col address { font-style: normal; }
.gr-foot__col address p { font-size: 15px; color: var(--gr-muted); margin-bottom: 8px; }
.gr-foot__col ul { list-style: none; padding: 0; margin: 0; }
.gr-foot__col ul li { font-size: 15px; margin-bottom: 8px; color: var(--gr-muted); }
.gr-foot__col ul li span { color: var(--gr-text); font-weight: 600; }
.gr-foot__list { list-style: none; padding: 0; margin: 0; }
.gr-foot__item { margin-bottom: 8px; }
.gr-foot__link { color: var(--gr-muted); text-decoration: none; font-size: 15px; }
.gr-foot__link:hover { color: var(--gr-accent); }
.gr-foot__base { padding-top: 20px; }
.gr-foot__copy { font-size: 14px; color: var(--gr-muted); margin: 0; }

/* Inner pages */
.gr-pagehead { padding-top: clamp(40px, 5vw, 64px); }
.gr-pagehead h1 { max-width: 20ch; }
.gr-pagehead__intro { color: var(--gr-muted); font-size: 1.15rem; max-width: 60ch; }

/* Prose */
.gr-text { max-width: 760px; }
.gr-text h2 { margin-top: 2em; }
.gr-text h3 { margin-top: 1.6em; }
.gr-text p, .gr-text li { color: var(--gr-text); }
.gr-text code { background: var(--gr-surface); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.gr-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  background: var(--gr-surface);
  border-radius: var(--gr-radius-card);
  overflow: hidden;
}
.gr-text th, .gr-text td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--gr-line); }
.gr-text th { font-weight: 650; color: var(--gr-text); }

/* Summary block for policies */
.gr-summary {
  background: var(--gr-surface);
  border-left: 4px solid var(--gr-accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--gr-muted);
  font-size: 15px;
}

/* Contacts block */
.gr-contacts { display: grid; gap: 12px; max-width: 560px; }
.gr-contacts__row { display: flex; gap: 12px; align-items: baseline; }
.gr-contacts__row span { font-weight: 600; min-width: 90px; }

/* Thanks / 404 */
.gr-confirm { text-align: left; }
.gr-confirm__title { margin-bottom: 16px; }
.gr-nextlinks { display: grid; gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }

/* Reveal */
html.has-js .gr-appear {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.has-js .gr-appear.is-shown { opacity: 1; transform: none; }

/* Breakpoints */
@media (max-width: 1279px) {
  .gr-shell { max-width: 1120px; }
}

@media (max-width: 1023px) {
  .gr-topbar { position: static; }
  .gr-menu__switch { display: inline-flex; margin: 8px auto 0; }
  .gr-topbar .gr-shell { display: flex; flex-direction: column; align-items: center; }
  .gr-menu { width: 100%; }
  .gr-menu__list {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 0 4px;
  }
  .gr-menu.is-open .gr-menu__list { display: flex; }
  .gr-menu__link { display: flex; padding: 10px 16px; width: 100%; justify-content: center; }
  .gr-panel--float { display: flex; }
}

@media (min-width: 640px) {
  .gr-duo { grid-template-columns: 1fr 1fr; }
  .gr-steps { grid-template-columns: 1fr 1fr; }
  .gr-rubrics { grid-template-columns: 1fr 1fr; }
  .gr-gallery { grid-template-columns: 1fr 1fr; }
  .gr-gallery .gr-frame--wide { grid-column: 1 / -1; }
  .gr-foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .gr-hero__inner { grid-template-columns: 1.1fr 1fr; }
  .gr-hero__collage { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .gr-steps { grid-template-columns: repeat(4, 1fr); }
  .gr-rubrics { grid-template-columns: repeat(2, 1fr); }
  .gr-gallery { grid-template-columns: 1fr 1fr 1fr; }
  .gr-foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1280px) {
  .gr-hero__inner { max-width: 1120px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.has-js .gr-appear { opacity: 1; transform: none; }
  html.has-js .gr-hero__copy > * { animation: none; }
}

.gr-hero__collage { padding-right: clamp(8px, 2vw, 24px); }
.gr-rubrics__item { display: flex; flex-direction: column; }
.gr-rubrics__item p { flex: 1 1 auto; }
.gr-panel--float .gr-btn { white-space: nowrap; }
@media (max-width: 1023px) {
  .gr-hero { padding-bottom: 104px; }
}
@media (max-width: 479px) {
  .gr-panel--float { flex-direction: column; align-items: stretch; gap: 12px; }
  .gr-panel--float .gr-btn { justify-content: center; }
}
@media (min-width: 768px) {
  .gr-hero__inner { align-items: center; }
}

@media (max-width: 479px) {
  .gr-frame::before { transform: translate(10px, 10px); }
  .gr-hero__collage { padding-right: 0; }
  .gr-hero__collage .gr-frame--tall { padding-right: 12px; }
}

/* Overflow guards */
.gr-topbar, .gr-foot { overflow-x: clip; }
.gr-text table { display: block; overflow-x: auto; }
