:root {
  --green: #245b47;
  --green-dark: #173f32;
  --green-deep: #102f26;
  --green-soft: #e8f0eb;
  --sand: #f2eee5;
  --cream: #faf9f5;
  --text: #1c2722;
  --muted: #68736d;
  --line: #dfe5e1;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 56, 43, .10);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
main, section, article, aside, div { min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 63, 50, .09);
  background: rgba(250, 249, 245, .92);
  backdrop-filter: blur(16px);
}
.header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--green-dark);
  color: white;
  font-weight: 850;
  letter-spacing: -.04em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 16px; }
.brand__text small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.nav { display: flex; gap: 23px; font-size: 14px; font-weight: 650; }
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: .2s ease;
}
.nav a:hover::after { right: 0; }
.header__phone {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--green-dark);
  background: rgba(255,255,255,.7);
  font-weight: 780;
  white-space: nowrap;
}

.hero {
  padding: 78px 0 92px;
  background:
    linear-gradient(rgba(23,63,50,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,63,50,.035) 1px, transparent 1px),
    radial-gradient(circle at 75% 20%, rgba(36,91,71,.10), transparent 31%),
    var(--cream);
  background-size: 34px 34px, 34px 34px, auto, auto;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: 76px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 25px;
  font-size: clamp(46px, 5.4vw, 74px);
  line-height: .99;
  letter-spacing: -.058em;
}
h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.047em;
}
h3 { line-height: 1.24; }
.hero__lead {
  max-width: 720px;
  margin-bottom: 31px;
  color: var(--muted);
  font-size: 18px;
}
.hero__actions {
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  min-height: 52px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 780;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--green-dark);
  color: white;
  box-shadow: 0 15px 35px rgba(23,63,50,.18);
}
.btn--secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hero__meta div {
  padding: 21px 17px 0 0;
  min-width: 0;
}
.hero__meta div + div {
  padding-left: 17px;
  border-left: 1px solid var(--line);
}
.hero__meta strong {
  display: block;
  margin-bottom: 3px;
  color: var(--green-dark);
  font-size: 23px;
}
.hero__meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(23,63,50,.10);
  border-radius: 28px;
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow);
}
.hero-panel__top {
  padding: 27px 28px 25px;
  background: var(--green-dark);
  color: white;
}
.hero-panel__top span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.63);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-panel__top b { font-size: 22px; }
.hero-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-panel__item {
  min-height: 138px;
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.hero-panel__item:nth-child(odd) { border-right: 1px solid var(--line); }
.hero-panel__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}
.hero-panel__item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green-dark);
}
.hero-panel__item small {
  display: block;
  color: var(--muted);
  line-height: 1.38;
}
.hero-panel__contact {
  padding: 21px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--sand);
}
.hero-panel__contact small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
}
.hero-panel__contact strong { color: var(--green-dark); }
.hero-panel__contact > a {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: white;
  font-size: 21px;
  transition: .2s ease;
}
.hero-panel__contact > a:hover { transform: translateX(3px); }

.section { padding: 102px 0; }
.about { background: var(--white); }
.about__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 92px;
}
.about__text {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}
.about__text strong { color: var(--text); }
.about__text p + p { margin-top: 22px; }

.services { background: var(--sand); }
.section-head { max-width: 700px; margin-bottom: 46px; }
.section-head > p:last-child { color: var(--muted); font-size: 17px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid rgba(23,63,50,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  transition: .2s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(36,91,71,.22);
  background: white;
  box-shadow: 0 18px 44px rgba(23,63,50,.08);
}
.service-card > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
}
.service-card h3 {
  margin: 47px 0 13px;
  font-size: 21px;
}
.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.principles { background: var(--green-deep); color: white; }
.principles__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: start;
}
.principles .eyebrow { color: #a8cbb9; }
.principles__intro > p:last-child {
  color: rgba(255,255,255,.66);
  font-size: 17px;
}
.principles__list { border-top: 1px solid rgba(255,255,255,.17); }
.principles__list > div {
  padding: 26px 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,.17);
}
.principles__list strong { color: #a8cbb9; font-size: 12px; }
.principles__list span { color: rgba(255,255,255,.67); }
.principles__list b {
  display: block;
  margin-bottom: 3px;
  color: white;
  font-size: 18px;
}

.contacts { background: var(--cream); }
.contact-card {
  padding: 58px;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 72px;
  border: 1px solid rgba(23,63,50,.08);
  border-radius: 29px;
  background: white;
  box-shadow: var(--shadow);
}
.contact-card > div:first-child > p:last-child { color: var(--muted); }
.contact-links { display: grid; gap: 12px; }
.contact-links a {
  padding: 19px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: .2s ease;
}
.contact-links a:hover {
  border-color: var(--green);
  transform: translateX(4px);
}
.contact-links small {
  grid-column: 1;
  display: block;
  color: var(--muted);
}
.contact-links strong {
  grid-column: 1;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.contact-links span {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}
.footer__inner p { margin: 0; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}
.footer__links a:hover { color: var(--green); }

/* Legal page */
.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 90, 69, .08), transparent 34%),
    var(--cream);
}
.legal-back {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: var(--green-dark);
  font-weight: 750;
  transition: .2s ease;
}
.legal-back:hover { border-color: var(--green); transform: translateX(-2px); }
.legal-main { padding: 72px 0 110px; }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.legal-aside { position: sticky; top: 116px; padding: 10px 6px; }
.legal-aside h1 {
  max-width: 100%;
  margin-bottom: 22px;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.legal-aside > p:last-of-type {
  max-width: 310px;
  color: var(--muted);
  font-size: 16px;
}
.legal-status {
  margin-top: 32px;
  padding: 18px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border: 1px solid rgba(31,90,69,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.legal-status__dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border-radius: 50%;
  background: #45a66f;
  box-shadow: 0 0 0 5px rgba(69,166,111,.13);
}
.legal-status strong { display: block; margin-bottom: 4px; font-size: 14px; }
.legal-status small { display: block; color: var(--muted); line-height: 1.45; }
.legal-card {
  min-width: 0;
  overflow: hidden;
  padding: 44px 48px;
  border: 1px solid rgba(31,90,69,.08);
  border-radius: 28px;
  background: rgba(255,255,255,.93);
  box-shadow: var(--shadow);
}
.legal-meta {
  padding-bottom: 25px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.legal-section {
  padding: 36px 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.legal-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}
.legal-section h2 {
  margin: 3px 0 14px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.legal-section p {
  max-width: 750px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 16px;
  overflow-wrap: anywhere;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-contacts {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.legal-contacts a {
  min-width: 0;
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--cream);
  transition: .2s ease;
}
.legal-contacts a:hover { border-color: var(--green); transform: translateY(-2px); }
.legal-contacts small { display: block; margin-bottom: 4px; color: var(--muted); }
.legal-contacts strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font-size: 16px;
}
.legal-note {
  margin-top: 34px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--sand);
}
.legal-note strong { display: block; margin-bottom: 5px; }
.legal-note p { margin: 0; color: var(--muted); }


@media (max-width: 1120px) {
  .header__inner {
    gap: 18px;
  }

  .nav {
    display: none;
  }

  .hero__grid,
  .about__grid,
  .principles__grid,
  .contact-card,
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__grid {
    gap: 44px;
  }

  .hero-panel {
    width: 100%;
    max-width: 760px;
  }

  .about__grid,
  .principles__grid,
  .contact-card {
    gap: 42px;
  }

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

  .legal-layout {
    gap: 30px;
  }

  .legal-aside {
    position: static;
    padding: 0;
  }

  .legal-aside h1 {
    max-width: 760px;
    font-size: clamp(40px, 7vw, 60px);
  }

  .legal-aside > p:last-of-type {
    max-width: 720px;
  }

  .legal-status {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header {
    position: sticky;
  }

  .header__inner {
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
    font-size: 14px;
  }

  .brand__text {
    min-width: 0;
  }

  .brand__text strong {
    max-width: 180px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand__text small {
    display: none;
  }

  .header__phone {
    min-height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border: 0;
    background: var(--green-dark);
    color: white;
    font-size: 0;
  }

  .header__phone::after {
    content: "Позвонить";
    font-size: 13px;
    font-weight: 780;
  }

  .hero {
    padding: 48px 0 60px;
    background-size: 26px 26px, 26px 26px, auto, auto;
  }

  .hero__grid {
    gap: 34px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .11em;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: clamp(38px, 11.2vw, 54px);
    line-height: 1.02;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(31px, 9.5vw, 43px);
    line-height: 1.08;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
  }

  .hero__lead {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero__actions {
    margin-bottom: 27px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .btn {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    text-align: center;
  }

  .hero__meta {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }

  .hero__meta div,
  .hero__meta div + div {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero__meta strong {
    font-size: 21px;
  }

  .hero-panel {
    border-radius: 21px;
  }

  .hero-panel__top {
    padding: 22px 19px;
  }

  .hero-panel__top b {
    display: block;
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .hero-panel__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel__item {
    min-height: 0;
    padding: 18px 19px;
    border-right: 0 !important;
  }

  .hero-panel__item:last-child {
    border-bottom: 0;
  }

  .hero-panel__contact {
    padding: 18px 19px;
  }

  .hero-panel__contact > div {
    min-width: 0;
  }

  .hero-panel__contact strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 15px;
  }

  .section {
    padding: 68px 0;
  }

  .about__grid,
  .principles__grid,
  .contact-card {
    gap: 28px;
  }

  .about__text {
    font-size: 16px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head > p:last-child {
    font-size: 16px;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .service-card {
    min-height: 0;
    padding: 23px 21px;
    border-radius: 17px;
  }

  .service-card h3 {
    margin: 27px 0 10px;
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .principles__list > div {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0;
  }

  .contact-card {
    padding: 27px 20px;
    border-radius: 21px;
  }

  .contact-links {
    gap: 10px;
  }

  .contact-links a {
    padding: 17px;
    display: block;
  }

  .contact-links strong,
  .contact-links span,
  .contact-links small {
    display: block;
    grid-column: auto;
    grid-row: auto;
    overflow-wrap: anywhere;
  }

  .contact-links span {
    margin-top: 6px;
  }

  .footer {
    padding: 24px 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__links {
    justify-content: flex-start;
  }

  .legal-main {
    padding: 42px 0 68px;
  }

  .legal-aside h1 {
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .legal-status {
    padding: 15px;
  }

  .legal-card {
    padding: 22px 17px;
    border-radius: 19px;
  }

  .legal-meta {
    flex-direction: column;
    gap: 4px;
  }

  .legal-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 26px 0;
  }

  .legal-section h2 {
    font-size: 23px;
  }

  .legal-section p {
    font-size: 15px;
  }

  .legal-contacts {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-back {
    min-height: 40px;
    padding: 0 11px;
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .brand__text strong {
    max-width: 130px;
    font-size: 13px;
  }

  .header__phone {
    padding: 0 10px;
  }

  .header__phone::after {
    content: "Звонок";
    font-size: 12px;
  }

  h1 {
    font-size: clamp(35px, 11vw, 43px);
  }

  h2 {
    font-size: clamp(29px, 9.2vw, 36px);
  }

  .hero-panel__contact {
    align-items: flex-start;
  }

  .legal-back {
    font-size: 0;
  }

  .legal-back::after {
    content: "← Назад";
    font-size: 12px;
  }
}
