:root {
  --color-text: #203027;
  --color-green: #587b4f;
  --color-green-dark: #31533c;
  --color-heather: #846a8f;
  --color-bg: #f7fbf3;
  --color-bg-soft: #edf5e8;
  --color-card: rgba(255, 255, 255, 0.9);
  --color-muted: #5d6b60;
  --color-border: rgba(49, 83, 60, 0.17);
  --shadow-soft: 0 18px 50px rgba(31, 55, 40, 0.13);
  --shadow-card: 0 12px 34px rgba(31, 55, 40, 0.09);
  --radius: 8px;
  --max-width: 1120px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, #f7fbf3 0%, #ffffff 44%, #f7fbf3 100%);
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--color-text);
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(49, 83, 60, 0.12);
  background: rgba(247, 251, 243, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100% - 40px, var(--max-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--color-text);
}

.brand-logo {
  width: 54px;
  height: 54px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(49, 83, 60, 0.13));
  transform: scale(1.22);
}

.brand-logo-wide {
  width: 168px;
  height: auto;
  max-height: 36px;
  transform: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  background: #fff;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
  content: "";
}

.nav-toggle-lines::before {
  transform: translateY(-7px);
}

.nav-toggle-lines::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  transform: translateY(-2px) rotate(-90deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--color-muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
  color: var(--color-green-dark);
  background: rgba(88, 123, 79, 0.11);
}

.site-main {
  overflow: hidden;
}

.section,
.hero {
  position: relative;
  padding: 88px 0;
}

.hero {
  min-height: calc(86vh - var(--header-height));
  display: flex;
  align-items: flex-end;
  padding: 86px 0 78px;
  color: #fff;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(0.82) contrast(0.96);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 40, 28, 0.64), rgba(18, 40, 28, 0.28) 48%, rgba(18, 40, 28, 0.08)),
    linear-gradient(180deg, rgba(18, 40, 28, 0.04), rgba(18, 40, 28, 0.28));
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  align-items: end;
}

.hero-copy {
  align-self: center;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.6vw, 4.35rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.72;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--color-green);
  box-shadow: 0 12px 30px rgba(31, 55, 40, 0.25);
}

.button-primary:hover {
  background: var(--color-green-dark);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-secondary:hover {
  color: var(--color-green-dark);
  background: #fff;
  border-color: #fff;
}

.button-outline {
  color: var(--color-green-dark);
  border-color: var(--color-green-dark);
  background: #fff;
}

.button-outline:hover {
  background: var(--color-bg-soft);
}

.section-soft {
  background: linear-gradient(180deg, rgba(237, 245, 232, 0.88), rgba(237, 245, 232, 0.42));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.text-panel h2,
.contact-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
}

.section-heading p,
.text-panel p,
.contact-panel p {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 44px;
}

.signature-card {
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.signature-card p {
  margin: 22px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.4vw, 1.9rem);
  line-height: 1.25;
}

.signature-name {
  display: block;
  margin-top: 24px;
  color: var(--color-green-dark);
  font-weight: 800;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center 38%;
}

.text-panel {
  padding: 8px 0;
}

.text-panel strong {
  color: var(--color-green-dark);
}

.services-intro {
  max-width: 700px;
  color: var(--color-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.service-card,
.benefit-card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-right: 34px;
  cursor: pointer;
  list-style: none;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-card summary::after {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-green-dark);
  font-size: 1.05rem;
  line-height: 1;
  content: "+";
}

.service-card[open] summary::after {
  content: "-";
}

.service-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-green), rgba(132, 106, 143, 0.22));
  content: "";
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 0;
  border-radius: var(--radius);
  color: var(--color-green-dark);
  background: rgba(88, 123, 79, 0.13);
}

.card-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.9;
}

.service-title,
.benefit-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.service-card p,
.benefit-card p {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.service-card p {
  padding-right: 8px;
}

.service-more {
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.benefit-card {
  padding: 22px;
}

.benefit-card h3 {
  color: var(--color-green-dark);
  font-size: 1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: start;
}

.contact-panel,
.contact-details {
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.contact-details {
  display: grid;
  gap: 20px;
}

.detail-item {
  display: grid;
  gap: 4px;
}

.detail-label {
  color: var(--color-green-dark);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-item a {
  color: var(--color-text);
  font-weight: 700;
  text-decoration-color: rgba(88, 123, 79, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.detail-item a:hover {
  color: var(--color-green-dark);
}

.site-footer {
  padding: 48px 0;
  color: #edf5e8;
  background: #203027;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 850;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #edf5e8;
  text-decoration-color: rgba(132, 106, 143, 0.85);
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-hero {
  padding: 76px 0 52px;
  background: linear-gradient(180deg, rgba(237, 245, 232, 0.9), rgba(247, 251, 243, 0));
}

.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 1.12rem;
}

.content-page {
  padding: 38px 0 88px;
}

.privacy-content {
  max-width: 860px;
  padding: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.privacy-content h2 {
  margin: 34px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.18;
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p,
.privacy-content li {
  color: var(--color-muted);
}

.privacy-content ul {
  padding-left: 1.15rem;
}

.privacy-content a {
  color: var(--color-green-dark);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .header-inner,
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .brand-logo-wide {
    width: 148px;
    max-height: 32px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 14px auto 14px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .section,
  .hero {
    padding: 54px 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.65rem);
  }

  .button-row {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .signature-card,
  .contact-panel,
  .contact-details,
  .privacy-content {
    padding: 24px;
  }

  .card-grid,
  .benefits-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
