:root {
  --bg: #f8f8f5;
  --paper: #ffffff;
  --soft: #eef0eb;
  --text: #222723;
  --muted: #69706b;
  --line: #d9ddd7;
  --accent: #294137;
  --accent-dark: #1f322b;
  --white: #ffffff;
  --radius: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

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

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 248, 245, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 13px;
}

.nav a:hover {
  color: var(--text);
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* GENERAL */

.section {
  padding: 68px 0;
}

.section-compact {
  padding: 52px 0;
}

.section-soft {
  background: var(--soft);
}

.eyebrow {
  margin-bottom: 11px;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255,255,255,.68);
}

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

.section-heading h2 {
  margin: 0 0 13px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.13;
  letter-spacing: -.025em;
}

.section-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* BUTTONS */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 19px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
}

.button-secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

/* HERO */

.hero {
  padding: 42px 0 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: center;
  gap: 64px;
  min-height: 0 !important;
}

.hero-content {
  max-width: 650px;
  padding: 0 !important;
}

.hero-content h1 {
  max-width: 620px;
  margin: 0 0 17px;
  font-size: clamp(36px, 4vw, 52px) !important;
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 700;
}

.hero-text {
  max-width: 590px;
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 16px !important;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 19px;
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 13px;
}

.hero-meta span {
  position: relative;
}

.hero-meta span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -12px;
  color: #a6aca7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-visual {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 !important;
}

.hero-visual .portrait-placeholder {
  position: relative;
  width: 350px !important;
  height: 420px !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 16px;
  background: #ddd;
  box-shadow: 0 12px 32px rgba(30,40,35,.09);
}

.hero-visual .portrait-placeholder img {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: cover;
  object-position: center;
}

/* SITUATIONS */

.cards {
  display: grid;
  gap: 14px;
}

.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.cards.four {
  grid-template-columns: repeat(2, 1fr);
}

.cards.five {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card-number {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* SERVICES */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.service-item {
  min-height: 155px;
  padding: 23px;
  background: var(--paper);
}

.service-item h3 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.3;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* APPROACH */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  min-height: 205px;
  padding: 23px 20px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step-number {
  margin-bottom: 31px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.3;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ABOUT */

.about-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 80px;
  align-items: start;
}

.about-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 3.7vw, 46px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.about-lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.about-copy {
  max-width: 680px;
}

.about-copy > p {
  margin: 0 0 17px;
  font-size: 15px;
  line-height: 1.65;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 29px;
  border-top: 1px solid var(--line);
}

.fact {
  padding: 17px 15px 0 0;
  border-right: 1px solid var(--line);
}

.fact:not(:first-child) {
  padding-left: 15px;
}

.fact:last-child {
  border-right: 0;
}

.fact strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.fact span {
  color: var(--muted);
  font-size: 12px;
}

/* CREDENTIALS */

.credentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.credential {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.credential strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.35;
}

.credential span {
  color: var(--muted);
  font-size: 13px;
}

/* FAQ */

.faq {
  max-width: 850px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 18px 45px 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 13px;
  color: var(--accent);
  font-size: 21px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 700px;
  margin: -2px 0 17px;
  padding-right: 40px;
  color: var(--muted);
  font-size: 14px;
}

/* CONTACTS */

.contact-section {
  padding: 68px 0;
  background: var(--accent);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 70px;
}

.contact-copy {
  max-width: 700px;
}

.contact-copy h2 {
  margin: 0 0 13px;
  font-size: clamp(30px, 3.5vw, 45px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.contact-copy > p {
  max-width: 600px;
  margin: 0 0 22px;
  color: rgba(255,255,255,.72);
  font-size: 16px;
}

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

.contact-details p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.contact-details strong {
  display: inline-block;
  min-width: 75px;
  color: var(--white);
}

.contact-details a {
  color: var(--white);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.contact-actions .button {
  width: 100%;
}

/* FOOTER */

.footer {
  background: var(--accent-dark);
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.footer-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* TABLET */

@media (max-width: 950px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 38px;
  }

  .hero-visual .portrait-placeholder {
    width: 300px !important;
    height: 370px !important;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step {
    border-bottom: 1px solid var(--line);
  }

  .step:nth-child(3) {
    border-right: 0;
  }

  .step:nth-child(4),
  .step:nth-child(5) {
    border-bottom: 0;
  }

  .credentials,
  .cards.five {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */

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

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .nav {
    display: none;
  }

  .header-button {
    margin-left: auto;
    min-height: 39px;
    padding: 0 13px;
    font-size: 12px;
  }

  .hero {
    padding: 34px 0 42px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-content h1 {
    font-size: 36px !important;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .hero-visual .portrait-placeholder {
    width: 300px !important;
    height: 365px !important;
  }

  .cards.two,
  .cards.three,
  .cards.four,
  .cards.five,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .step,
  .step:nth-child(4),
  .step:nth-child(5) {
    min-height: 0;
    padding: 21px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-actions {
    max-width: 360px;
  }

  .footer-inner {
    min-height: 82px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 0;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 32px !important;
  }

  .hero-text {
    font-size: 15px !important;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-visual .portrait-placeholder {
    width: 280px !important;
    height: 340px !important;
  }

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

  .fact,
  .fact:not(:first-child) {
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }
}

/* ===== ОБЩИЙ РАЗДЕЛ УСЛУГ: СЕМЬЯ + БИЗНЕС ===== */

.services-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.services-column {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.services-column-head {
  padding: 25px 25px 21px;
  border-bottom: 1px solid var(--line);
}

.services-column-head > span {
  display: block;
  margin-bottom: 21px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.services-column-head h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.services-column-head p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.service-list-item {
  min-height: 125px;
  padding: 20px 21px;
  border-bottom: 1px solid var(--line);
}

.service-list-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.service-list-item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.service-list-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.3;
}

.service-list-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

@media (max-width: 560px) {
  .service-list {
    grid-template-columns: 1fr;
  }

  .service-list-item,
  .service-list-item:nth-child(odd),
  .service-list-item:nth-last-child(-n+2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-list-item:last-child {
    border-bottom: 0;
  }
}

/* ===== МЯГКИЙ ФОН ЛЕНДИНГА ===== */

body {
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(205, 214, 205, 0.34) 0,
      rgba(205, 214, 205, 0.14) 170px,
      transparent 360px
    ),
    radial-gradient(
      circle at 92% 38%,
      rgba(224, 213, 194, 0.32) 0,
      rgba(224, 213, 194, 0.12) 180px,
      transparent 380px
    ),
    #f8f7f3;
}

/* Очень лёгкое визуальное разделение первого экрана */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -170px;
  border-radius: 50%;
  background: rgba(210, 219, 211, 0.22);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

/* Секции остаются чистыми, но не выглядят плоско */
.section-soft {
  background: rgba(234, 237, 232, 0.68);
}

.card,
.service-item,
.services-column,
.credential {
  box-shadow: 0 5px 20px rgba(35, 45, 40, 0.035);
}

/* Чуть мягче границы */
.card,
.service-item,
.services-column,
.credential {
  border-color: rgba(205, 210, 204, 0.9);
}


/* ===== ДЕЛИКАТНАЯ ДЕКОРАТИВНАЯ ВЯЗЬ ===== */

body {
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 520px;
  height: 520px;
  pointer-events: none;
  opacity: .045;
  background-repeat: no-repeat;
  background-size: contain;
}

body::before {
  top: 90px;
  right: -260px;
  background-image:
    radial-gradient(
      ellipse at center,
      transparent 34%,
      rgba(41, 65, 55, .85) 34.5%,
      transparent 35.5%
    ),
    radial-gradient(
      ellipse at center,
      transparent 48%,
      rgba(41, 65, 55, .75) 48.5%,
      transparent 49.5%
    ),
    radial-gradient(
      ellipse at center,
      transparent 62%,
      rgba(41, 65, 55, .65) 62.5%,
      transparent 63.5%
    );
  transform: rotate(22deg);
}

body::after {
  top: 1150px;
  left: -300px;
  background-image:
    radial-gradient(
      ellipse at center,
      transparent 35%,
      rgba(41, 65, 55, .7) 35.5%,
      transparent 36.5%
    ),
    radial-gradient(
      ellipse at center,
      transparent 49%,
      rgba(41, 65, 55, .6) 49.5%,
      transparent 50.5%
    ),
    radial-gradient(
      ellipse at center,
      transparent 63%,
      rgba(41, 65, 55, .5) 63.5%,
      transparent 64.5%
    );
  transform: rotate(-28deg);
}

/* Контент всегда поверх декоративного фона */
.header,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* Дополнительная тонкая линия-орнамент между крупными секциями */
.section {
  position: relative;
}

.section:nth-of-type(odd)::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 18px;
  width: 120px;
  height: 38px;
  opacity: .035;
  border-top: 1px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}

@media (max-width: 760px) {
  body::before,
  body::after {
    opacity: .025;
  }
}



/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.78;
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }


/* PROFILE MEDIA */

.profile-portrait {
  display: block;
  width: 100%;
  max-width: 360px;
  margin-top: 24px;
  aspect-ratio: 589 / 720;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.credential-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.credential-proof {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.credential-proof > a {
  display: block;
  cursor: zoom-in;
}

.credential-proof img {
  display: block;
  width: 100%;
  aspect-ratio: 720 / 509;
  object-fit: contain;
  background: #fff;
  border-radius: calc(var(--radius) - 4px);
}

.credential-proof figcaption {
  padding: 10px 4px 2px;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .credential-gallery {
    grid-template-columns: 1fr;
  }
}


/* REVIEW FORM */

.review-form-wrap {
  max-width: 760px;
}

.review-form {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.review-field {
  display: grid;
  gap: 8px;
}

.review-field label,
.review-rating legend {
  font-weight: 700;
}

.review-field input[type="text"],
.review-field input[type="email"],
.review-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.review-field textarea {
  min-height: 150px;
  resize: vertical;
}

.review-field input:focus,
.review-field textarea:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.review-rating {
  margin: 0;
  padding: 0;
  border: 0;
}

.review-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.review-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.review-stars label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}

.review-stars input:checked + label {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
  font-weight: 700;
}

.review-stars input:focus-visible + label {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.review-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
}

.review-consent input {
  margin-top: 3px;
}

.review-note {
  font-size: 14px;
  opacity: .78;
}

.review-status {
  min-height: 24px;
  font-size: 14px;
  font-weight: 600;
}

.review-status.is-success {
  opacity: .9;
}

.review-status.is-error {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .review-form {
    padding: 20px;
  }
}


/* SITE-SUBMITTED REVIEWS */

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.review-card-head h3 {
  margin: 0;
}

.review-card-rating {
  white-space: nowrap;
  letter-spacing: .08em;
}

.review-card-meta {
  margin-top: 14px;
  font-size: 13px;
  opacity: .72;
}

@media (max-width: 520px) {
  .review-card-head {
    display: block;
  }

  .review-card-rating {
    display: block;
    margin-top: 6px;
  }
}


/* ANALYTICS CONSENT */

.analytics-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(30,40,35,.14);
}

.analytics-consent__text {
  font-size: 14px;
  line-height: 1.5;
}

.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .analytics-consent {
    display: grid;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
