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

:root {
  --green: #17a05f;
  --green-deep: #0f6b42;
  --green-tint: #eaf6f0;
  --green-tint-2: #dff3e8;
  --text: #1f2a26;
  --text-muted: #5c6b64;
  --line: rgba(31, 42, 38, 0.1);
  --shadow-btn: 0 10px 26px rgba(23, 160, 95, 0.28);
  --shadow-card: 0 8px 22px rgba(23, 160, 95, 0.1);
  --radius-pill: 999px;
  --radius-card: 22px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  background: #fff;
  overscroll-behavior: none;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  min-height: 100%;
  overflow-x: clip;
  overscroll-behavior: none;
}

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

picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.page-bg {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  height: 120vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.page-bg__blob--top {
  top: -180px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(23, 160, 95, 0.18) 0%, transparent 70%);
  animation: blob-drift 16s ease-in-out infinite;
}

.wrapper {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 26px 24px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fade-up 0.6s ease both;
}

.logo {
  display: block;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.85;
}

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

.header__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header__phones {
  display: flex;
  align-items: center;
  gap: 9px;
}

.header__phones-icon {
  width: 18px;
  height: 18px;
  fill: var(--green);
  flex-shrink: 0;
}

.header__phones-list {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.header__phones-list a {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

.header__phones-list a:hover {
  color: var(--green);
}

.header__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--green-tint);
  border: 1px solid rgba(23, 160, 95, 0.08);
  border-radius: var(--radius-card);
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.header__chip:hover {
  transform: translateY(-2px);
  background: var(--green-tint-2);
  border-color: rgba(23, 160, 95, 0.22);
  box-shadow: 0 10px 22px rgba(23, 160, 95, 0.14);
}

.header__chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.header__chip svg {
  width: 18px;
  height: 18px;
  fill: var(--green);
  flex-shrink: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas:
    "intro visual"
    "actions visual";
  align-items: center;
  column-gap: 48px;
  row-gap: 8px;
  flex: 1;
  margin-bottom: 36px;
}

.hero__intro {
  grid-area: intro;
  align-self: end;
}

.hero__visual {
  grid-area: visual;
  align-self: center;
}

.hero__actions {
  grid-area: actions;
  align-self: start;
}

.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  white-space: nowrap;
  animation: fade-up 0.7s ease both;
}

.hero__word {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  margin-right: 0.28em;
}

.hero__underline {
  position: absolute;
  left: -2%;
  bottom: 0;
  width: 104%;
  height: 12px;
  color: var(--green);
  overflow: visible;
  pointer-events: none;
}

.hero__underline path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: draw-line 0.9s ease 0.35s forwards;
}

.hero__subtitle {
  font-size: clamp(0.98rem, 1.7vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 26px;
  animation: fade-up 0.7s ease 0.12s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s, box-shadow 0.25s, filter 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(23, 160, 95, 0.36);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn__icon,
.btn__arrow {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn--domain {
  padding: 16px 32px;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: 0.01em;
  animation: fade-up 0.7s ease 0.28s both;
}

.btn--domain .btn__arrow {
  transition: transform 0.25s;
}

.btn--domain:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--cta {
  padding: 17px 52px;
  font-size: 1.08rem;
}

.btn--cta .btn__arrow--left {
  width: 20px;
  height: 20px;
  transition: transform 0.25s;
}

.btn--cta:hover .btn__arrow--left {
  transform: translateX(-4px);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  animation: fade-up 0.7s ease 0.38s both;
}

.features__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 0 10px;
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
  transition: transform 0.25s;
}

.features__item:hover {
  transform: translateY(-3px);
}

.features__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: var(--line);
}

.features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.features__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(480px, 88%);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 160, 95, 0.3) 0%, rgba(23, 160, 95, 0.14) 40%, transparent 72%);
  filter: blur(10px);
  transform: translate(-50%, -50%);
  animation: glow-float 8s ease-in-out infinite;
}

.hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  filter: drop-shadow(0 22px 34px rgba(31, 42, 38, 0.22));
  animation: fade-up 0.8s ease 0.18s both;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
  animation: fade-up 0.7s ease 0.45s both;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--green-tint);
  border-radius: var(--radius-card);
  border: 1px solid rgba(23, 160, 95, 0.08);
  box-shadow: var(--shadow-card);
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

a.contact-card {
  cursor: pointer;
}

a.contact-card:hover {
  transform: translateY(-3px);
  background: var(--green-tint-2);
  border-color: rgba(23, 160, 95, 0.22);
  box-shadow: 0 14px 28px rgba(23, 160, 95, 0.16);
}

.contact-card--phones {
  cursor: default;
}

.contact-card__icon {
  width: 22px;
  height: 22px;
  fill: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card__icon--img {
  border-radius: 50%;
  object-fit: cover;
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact-card__body strong {
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
}

.contact-card__phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card__phones a {
  color: var(--text-muted);
  transition: color 0.2s;
  width: fit-content;
}

.contact-card__phones a:hover {
  color: var(--green);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: 10px;
  animation: fade-up 0.7s ease 0.55s both;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 720px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--green-tint);
  border: 1px solid rgba(23, 160, 95, 0.08);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: transform 0.2s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.footer__link:hover {
  transform: translateY(-2px);
  background: var(--green-tint-2);
  border-color: rgba(23, 160, 95, 0.22);
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--green-tint);
  border: 1px solid rgba(23, 160, 95, 0.08);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.footer__badge:hover {
  transform: translateY(-2px);
  background: var(--green-tint-2);
  border-color: rgba(23, 160, 95, 0.22);
}

.footer__badge-stars {
  color: #fc0;
  font-size: 1rem;
  letter-spacing: 1px;
  line-height: 1;
}

.footer__badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.footer__badge-text strong {
  color: var(--text);
  font-size: 0.88rem;
}

.legal-page {
  max-width: 860px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.legal-header .logo img {
  height: 48px;
  width: auto;
}

.legal {
  background: #fff;
  border: 1px solid rgba(23, 160, 95, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 28px 30px 32px;
  margin-bottom: 28px;
}

.legal h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.2;
}

.legal h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 26px 0 12px;
  color: var(--text);
}

.legal p,
.legal li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 10px;
}

.legal ul {
  list-style: disc;
  padding-left: 1.2em;
  margin: 0 0 12px;
}

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

.legal a:hover {
  text-decoration: underline;
}

.legal__requisites {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer--legal {
  padding-bottom: 20px;
}

@media (max-width: 700px) {
  .legal {
    padding: 20px 16px 24px;
    border-radius: 16px;
  }

  .legal-header .logo img {
    height: 40px;
  }

  .footer__links {
    flex-direction: column;
    align-items: stretch;
  }

  .footer__link,
  .footer__badge {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "visual"
      "actions";
    gap: 18px 0;
    text-align: center;
  }

  .hero__intro,
  .hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__visual {
    min-height: 240px;
    order: unset;
  }

  .features {
    width: 100%;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 700px) {
  .wrapper {
    padding: 16px 14px 28px;
  }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
  }

  .logo img {
    height: 44px;
  }

  .header__contacts {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    max-width: 360px;
    margin: 0 auto;
  }

  .header__phones {
    background: var(--green-tint);
    border-radius: 16px;
    padding: 10px 16px;
    width: 100%;
    justify-content: center;
    border: 1px solid rgba(23, 160, 95, 0.08);
    box-shadow: var(--shadow-card);
  }

  .header__phones-list {
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header__row {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  .header__chip {
    justify-content: center;
    min-width: 0;
    border-radius: 16px;
  }

  .header__chip:last-child {
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    margin-bottom: 24px;
  }

  .hero__visual {
    min-height: 200px;
  }

  .hero__image {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 2.5rem);
    margin-bottom: 10px;
    white-space: normal;
  }

  .hero__subtitle {
    margin: 22px 0 20px;
    font-size: 0.98rem;
  }

  .hero__subtitle .nb {
    display: none;
  }

  .btn--domain,
  .btn--cta {
    width: 100%;
    max-width: 360px;
  }

  .btn--domain {
    padding: 15px 22px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
    margin-top: 28px;
    padding-top: 20px;
  }

  .features__item {
    font-size: 0.78rem;
  }

  .features__item:nth-child(even)::after {
    display: none;
  }

  .contact-cards {
    gap: 12px;
    margin-bottom: 24px;
  }

  .contact-card {
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 0.84rem;
  }

  .hero__glow {
    width: min(360px, 92%);
  }
}

@media (max-width: 400px) {
  .hero__title {
    font-size: 1.9rem;
  }

  .header__phones-list a {
    font-size: 0.82rem;
  }

  .features__icon {
    width: 40px;
    height: 40px;
  }

  .features__icon img {
    width: 34px;
    height: 34px;
  }

  .contact-card__phones {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .hero__underline path {
    stroke-dashoffset: 0;
  }
}

@keyframes glow-float {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  35% {
    transform: translate(-46%, -54%) scale(1.08);
    opacity: 1;
  }
  70% {
    transform: translate(-54%, -47%) scale(0.96);
    opacity: 0.82;
  }
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 18px) scale(1.06); }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}
