:root {
  --green-dark: #004d43;
  --green-mid: #00a655;
  --green-bright: #6aa82a;
  --green-lime: #7ac142;
  --black: #0a0a0a;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --bg: #f5f7f6;
  --white: #ffffff;
  --border: #e2e8e5;
  --shadow: 0 12px 40px rgba(0, 77, 67, 0.12);
  --radius: 4px;
  --header-h: 80px;
  --font: "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-mid);
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-dark);
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a.is-active {
  color: var(--green-mid);
}

.header__phone {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-dark);
  white-space: nowrap;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green-dark);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(68vh, 520px);
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(105deg, #004d43 0%, #00a655 52%, #0a0a0a 100%);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 18% 28%, #7ac142 0, transparent 32%),
    radial-gradient(circle at 82% 72%, #6aa82a 0, transparent 38%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.55));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-lime);
  margin-bottom: 1rem;
  animation: fadeUp 0.7s ease both;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  max-width: 34ch;
  opacity: 0.95;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  animation: fadeUp 0.7s ease 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn--primary {
  background: var(--green-lime);
  color: var(--green-dark);
  border-color: var(--green-lime);
}

.btn--primary:hover {
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: var(--green-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn--dark {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
  width: 100%;
}

.btn--dark:hover {
  background: #003830;
  color: var(--white);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section__head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.01em;
}

.section--dark .section__head h2 {
  color: var(--white);
}

.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section--dark .section__head p {
  color: rgba(255, 255, 255, 0.75);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 420px;
}

.about__visual {
  background:
    linear-gradient(160deg, rgba(0, 77, 67, 0.85), rgba(0, 166, 85, 0.7)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(122, 193, 66, 0.12) 12px,
      rgba(122, 193, 66, 0.12) 24px
    ),
    #004d43;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.about__visual::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 2px solid rgba(122, 193, 66, 0.35);
  border-radius: 50%;
  animation: pulseRing 4s ease-in-out infinite;
}

.about__mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.about__mark img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex-shrink: 0;
}

.about__mark-text {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
}

.about__content {
  background: var(--green-mid);
  color: var(--white);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__content h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
}

.about__content p {
  margin: 0 0 1.25rem;
  opacity: 0.95;
}

.about__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.about__list li {
  position: relative;
  padding-left: 1.25rem;
  font-weight: 500;
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-lime);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: var(--green-lime);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  color: var(--green-dark);
}

.service-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: var(--green-dark);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contacts + Form */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
}

.contact-card h3 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  color: var(--green-dark);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.15rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-list__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.contact-list__value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.contact-list a {
  font-weight: 600;
}

.contact-note {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--green-dark);
}

.form-card > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(0, 166, 85, 0.15);
  background: var(--white);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.consent input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--green-dark);
  flex-shrink: 0;
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.35em;
}

.form-status.is-success {
  color: var(--green-mid);
}

.form-status.is-error {
  color: #b42318;
}

/* Privacy page */
.page-hero {
  background: linear-gradient(120deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  padding: 3.5rem 0;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.page-hero p {
  margin: 0;
  opacity: 0.9;
}

.legal {
  padding: 3.5rem 0 5rem;
}

.legal article {
  max-width: 780px;
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--green-dark);
}

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

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

.legal ul {
  padding-left: 1.25rem;
}

.legal a {
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

.footer__inner {
  display: grid;
  gap: 1.25rem;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer__brand {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.85);
}

.footer__links a:hover {
  color: var(--green-lime);
}

.footer__meta {
  margin: 0;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 720px;
}

.footer__meta a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__meta a:hover {
  color: var(--green-lime);
}

/* Cookie */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--green-dark);
  color: var(--white);
  padding: 1rem 0;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookie.is-visible {
  transform: translateY(0);
}

.cookie__inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 900px;
}

.cookie a {
  color: var(--green-lime);
  font-weight: 600;
}

.cookie__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.25;
  }
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about,
  .contacts-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .burger {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .header__phone {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

  .cookie__inner {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
