/* Lebedeva Consult — layout aligned to image/01–05 mocks
   Block 5 form: soft mint surface (not stark white) */

:root {
  --ink: #142824;
  --ink-soft: #3d4f4a;
  --muted: #6d7c77;
  --paper: #f4f7f5;
  --paper-2: #e8efec;
  --card: #eef3f1;
  --card-soft: #e4ece9;
  --mist: #d8e5e1;
  --teal: #0d4f48;
  --teal-deep: #0a3d38;
  --teal-mid: #1a6b62;
  --icon-bg: #d7e6e1;
  --line: rgba(20, 40, 36, 0.1);
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --nav-h: 4.4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-brand: "Syne", sans-serif;
  --font-display: "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --shadow: 0 10px 30px rgba(13, 79, 72, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--teal);
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
}

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 247, 245, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
}

.lang-switch a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta,
.btn-primary {
  background: var(--teal);
  color: var(--white) !important;
}

.nav-cta:hover,
.btn-primary:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink) !important;
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.arrow {
  font-size: 0.95em;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 0.75rem) 0 0;
  overflow: hidden;
  isolation: isolate;
  background: #e7efeb;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #e7efeb;
  /* путь от css/ — одинаково для / и /en/ */
  background-image: url("../image/assets/1.png");
  background-size: cover;
  /* лицо справа; левая пустая стена под текст */
  background-position: 62% 42%;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* мягкий fade только слева — не заходит на лицо */
  background:
    linear-gradient(
      95deg,
      rgba(231, 239, 235, 0.88) 0%,
      rgba(231, 239, 235, 0.55) 22%,
      rgba(231, 239, 235, 0.18) 36%,
      transparent 48%
    ),
    linear-gradient(to top, rgba(231, 239, 235, 0.45) 0%, transparent 18%);
  pointer-events: none;
}

.hero-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 32rem;
  padding: 1.25rem 0 1.5rem;
  /* ниже навбара, но не у самого верха */
  margin-top: clamp(3.5rem, 14vh, 8.5rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin: 0 0 1rem;
}

.hero-brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--teal);
  margin: 0 0 1.1rem;
}

.hero-lead {
  max-width: 28rem;
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hero-meta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.15rem 0 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.hero-meta strong {
  color: var(--teal);
  font-weight: 700;
}

.meta-sep {
  opacity: 0.35;
}

/* Мягкая подложка снизу hero — без blur/плашки */
.hero-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 7.5rem;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #eef3f0 0%,
    rgba(238, 243, 240, 0.92) 38%,
    rgba(238, 243, 240, 0.4) 72%,
    transparent 100%
  );
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

.section-index {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.section-intro h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--teal);
  margin: 0;
}

.section-intro p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Soft photo wash behind a section (not a card) */
.has-photo-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.has-photo-bg > .container {
  position: relative;
  z-index: 1;
}

.section-photo-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
}

.section-photo-bg-contact {
  background-image: url("../image/assets/3.png");
  background-position: 70% center;
  opacity: 0.42;
  -webkit-mask-image:
    linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 72%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image:
    linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 72%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.section-photo-bg-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(238, 244, 241, 0.92) 0%,
    rgba(238, 244, 241, 0.72) 42%,
    rgba(238, 244, 241, 0.2) 70%,
    transparent 100%
  );
}

/* Service cards */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.45rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.35rem;
}

.card-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.icon-badge {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-badge svg,
.icon-sq svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin: 0 0 0.5rem;
}

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

.price-bar {
  margin-top: 1.35rem;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
}

.price-bar strong {
  font-family: var(--font-brand);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-bar p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.9;
  max-width: 28rem;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Method */
.section-muted {
  background: linear-gradient(180deg, #eef4f1 0%, var(--paper) 100%);
}

.icon-sq {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--icon-bg);
  color: var(--teal);
  display: grid;
  place-items: center;
}

.method-card .card-head {
  margin-bottom: 1.5rem;
}

.method-foot {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* Audience — soft mint cards (reference 04) */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.audience-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(13, 79, 72, 0.06);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: none;
}

.audience-card::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -3rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(13, 79, 72, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.audience-card h3 {
  color: var(--ink);
}

.audience-card .card-num {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Contact — soft form, not pure white */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.direct-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 0.45rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--teal);
  word-break: break-word;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-meta {
  margin: 1rem 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-meta p {
  margin: 0.15rem 0;
}

.contact-form {
  display: grid;
  gap: 0.95rem;
  background: linear-gradient(165deg, #d5e4df 0%, #c8d9d3 100%);
  border: 1px solid rgba(13, 79, 72, 0.14);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.6rem);
  box-shadow: none;
}

.form-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.form-top strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(13, 79, 72, 0.18);
  background: #c5d7d1;
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.9rem;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal);
  background: #d4e3de;
  box-shadow: 0 0 0 3px rgba(13, 79, 72, 0.14);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-form .btn-primary {
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.2rem;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2rem;
  background: var(--paper);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: start;
}

.footer-meta,
.footer-legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-legal {
  max-width: 28rem;
  text-align: right;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary:hover,
  .nav-cta:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-intro,
  .card-grid-3,
  .card-grid-2,
  .contact-layout,
  .price-bar,
  .method-foot {
    grid-template-columns: 1fr;
  }

  .price-bar {
    justify-items: start;
  }

  .price-pill {
    white-space: normal;
  }

  .method-foot {
    text-align: left;
  }

  .footer-legal {
    text-align: left;
  }

}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    background: rgba(244, 247, 245, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem;
    display: none;
    flex-direction: column;
    gap: 1.15rem;
  }

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

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .nav-cta {
    width: fit-content;
  }

  .nav > .nav-cta,
  .nav > .lang-switch {
    display: none;
  }
}

@media (min-width: 901px) {
  .nav-panel {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    backdrop-filter: none;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 100svh;
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 0.5rem);
  }

  .hero-bg {
    background-position: 70% 40%;
  }

  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(231, 239, 235, 0.2) 0%,
      rgba(231, 239, 235, 0.55) 42%,
      rgba(231, 239, 235, 0.92) 78%
    );
  }

  .hero-copy {
    margin-top: clamp(1.5rem, 8vh, 4rem);
    padding: 0.75rem 0 1rem;
  }

  .hero-meta {
    padding: 0.85rem 0 1rem;
  }

  .section-photo-bg-contact {
    opacity: 0.28;
  }
}
