/* Buddy Lawyers — design tokens & components, extracted from original site styles */
@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-cyr-lat.4142eecea6.woff") format("woff");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --primary-font: "Rubik", Arial, sans-serif;
  --heading-font: var(--primary-font);
  --hero-tint: #eef9f9;
  --secondary-text: #374151;
  --black: #000;
  --teal-100: #eef9f9;
  --secondary-background: #fafaf9;
  --primary-text: #030712;
  --teal-700: #2f8f9d;
  --teal-500: #45b0c0;
  --teal-800: #2c7e87;
  --teal-50: #e0f2f1;
  --tertiary-text: #6b7280;
  --white: #fff;
  --highlighted-text: var(--teal-700);
  --border: #e4ebf3;
  --border-soft: #eaecf0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--primary-font);
  color: var(--secondary-text);
  background-color: var(--white);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; vertical-align: middle; display: inline-block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
.hero-head, .section-head, .heading-left, .service-head,
.team-name, .flow-step h3, .pricing-card h3 { font-family: var(--heading-font); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 940px; margin: 0 auto; }
.container-wide { width: 100%; max-width: 80rem; margin: 0 auto; }

.section {
  border-bottom: 1px solid var(--border);
  padding: 75px 30px 60px;
  position: relative;
}
.section.alt { background-color: var(--teal-100); }
.section.muted { background-color: var(--secondary-background); }

.anchor-offset { scroll-margin-top: 6rem; }

/* ---------- headings ---------- */
.section-tagline {
  color: var(--highlighted-text);
  text-align: center;
  margin-bottom: .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5rem;
}
.section-head {
  color: var(--black);
  text-align: center;
  margin: 1rem 0;
  font-size: 2rem;
  line-height: 2.25rem;
  text-wrap: balance;
}
.section-subhead {
  max-width: 620px;
  color: var(--secondary-text);
  text-align: center;
  margin: 0 auto .75rem;
  font-size: 1.0625rem;
  text-wrap: pretty;
}

/* ---------- navbar ---------- */
.navbar-wrapper { position: sticky; top: 0; z-index: 30; }
.navbar {
  background-color: var(--white);
  border-bottom: 1px solid #f2f4f7;
  display: flex;
  align-items: center;
  min-height: 5rem;
  padding: 0 2rem;
}
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}
.navbar-left { display: flex; align-items: center; gap: 2rem; }
.header-logo { height: 3rem; flex: none; }
.navbar-menu { display: flex; align-items: center; gap: .25rem; }
.navbar-link {
  color: var(--primary-text);
  padding: .75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  transition: color .3s;
}
.navbar-link:hover { color: var(--teal-700); }
.navbar-right { display: flex; align-items: center; gap: .75rem; }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal-800);
  background-color: var(--teal-700);
  color: #fff;
  text-align: center;
  white-space: nowrap;
  border-radius: .5rem;
  padding: .625rem 1.125rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 1px 2px #1018280d;
}
.button:hover { background-color: var(--teal-800); }
.button:focus { box-shadow: 0 0 0 4px var(--teal-50); }
.button.outlined {
  border-width: 2px;
  border-color: var(--teal-700);
  background-color: transparent;
  color: var(--teal-700);
  font-weight: 500;
}
.button.outlined:hover { border-color: var(--teal-800); color: var(--teal-800); }
.button.lg { padding: .8rem 1.5rem; font-size: 1.0625rem; }

/* ---------- hero ---------- */
.hero {
  background-color: var(--hero-tint);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 80px 30px;
}
.hero-flex {
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; max-width: 50%; }
.hero-eyebrow {
  color: var(--teal-700);
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}
.hero-head {
  color: var(--black);
  text-align: left;
  margin: .5rem 0 1rem;
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}
.hero-subhead {
  text-align: left;
  max-width: 36rem;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--secondary-text);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-image-wrap { flex: none; width: 46%; }
.hero-image-slot {
  width: 100%;
  height: 26rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 20px 40px -12px #2f8f9d33;
}

/* ---------- trust bar ---------- */
.trust-bar {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 30px;
}
.trust-item { text-align: center; padding: 0 .5rem; }
.trust-item:not(:last-child) { border-right: 1px solid var(--border-soft); }
.trust-num { color: var(--teal-700); font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 700; line-height: 1.15; white-space: nowrap; }
.trust-label { color: var(--secondary-text); font-size: .95rem; margin-top: .35rem; }

/* ---------- context / pain ---------- */
.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.tagline-left { color: var(--teal-700); margin-bottom: 10px; font-size: 18px; font-weight: 700; }
.heading-left { text-align: left; margin: .25rem 0 1rem; font-size: 2rem; line-height: 1.2; color: var(--black); text-wrap: balance; }
.context-text p { font-size: 1.1rem; margin-bottom: 1rem; }
.context-aside {
  background-color: var(--teal-100);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.context-point { display: flex; gap: 1.1rem; align-items: flex-start; }
.context-aside-title {
  color: var(--teal-700);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.context-point .ic { color: var(--teal-700); flex: none; width: 2.75rem; height: 2.75rem; border-radius: .75rem; background: var(--white); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px #1018280d; }
.context-point .ic svg { width: 1.4rem; height: 1.4rem; }
.context-point strong { color: var(--primary-text); display: block; margin-bottom: .15rem; }
.context-point span { color: var(--secondary-text); font-size: .98rem; }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all .25s;
  box-shadow: 0 12px 16px -4px #00000010, 0 4px 6px -2px #10182808;
}
.service-card:hover { transform: translateY(-.25rem); border-color: var(--teal-500); }
.service-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: .75rem;
  background: var(--teal-100);
  color: var(--teal-700);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 1.6rem; height: 1.6rem; }
.service-head { color: var(--primary-text); font-size: 1.35rem; line-height: 1.3; margin-bottom: .75rem; }
.service-desc { color: var(--secondary-text); font-size: 1rem; margin-bottom: 1.25rem; flex: 1; }
.service-desc strong { color: var(--teal-700); }
.service-link {
  color: var(--teal-700);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: .35rem;
  align-self: flex-start;
  transition: gap .2s;
}
.service-link:hover { gap: .6rem; }

/* ---------- why us (numbered editorial list) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 4rem;
  margin-top: 2.5rem;
}
.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border-soft);
}
.why-item:hover .why-num { color: var(--teal-500); }
.why-item .why-num {
  flex: none;
  min-width: 2rem;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--teal-700);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  transition: color .25s;
}
.why-item strong { color: var(--primary-text); display: block; margin-bottom: .35rem; font-size: 1.15rem; line-height: 1.4; }
.why-item > span:last-child { color: var(--secondary-text); }

/* ---------- flow / steps (two-column timeline) ---------- */
.process-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  margin-top: 1rem;
}
.process-intro { position: sticky; top: 6.5rem; }
.process-eyebrow {
  color: var(--teal-700);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5rem;
  margin-bottom: .5rem;
}
.process-head {
  color: var(--black);
  font-family: var(--heading-font);
  font-size: 2rem;
  line-height: 1.2;
  margin: .25rem 0 1rem;
  text-wrap: balance;
}
.process-pill {
  display: inline-block;
  background: #ecc15a;
  color: #4a3811;
  padding: 0 .3em .04em;
  border-radius: .5rem;
  white-space: nowrap;
}
.process-lead {
  color: var(--secondary-text);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

/* timeline column */
.process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 3.75rem;
}
/* track + progressive fill */
.process-line {
  position: absolute;
  left: 1.1875rem;
  top: 2rem;
  bottom: 2.25rem;
  width: 2px;
  background: var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
}
.process-line::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--progress, 0%);
  background: var(--teal-500);
  transition: height .5s cubic-bezier(.4,0,.2,1);
}

.process-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 1.75rem 1.85rem;
  box-shadow: 0 12px 16px -4px #00000010, 0 4px 6px -2px #10182808;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease, border-color .25s, box-shadow .25s;
}
.flow-grid.in-view .process-card { opacity: 1; transform: none; }
.flow-grid.in-view .process-card:nth-child(2) { transition-delay: .08s; }
.flow-grid.in-view .process-card:nth-child(3) { transition-delay: .2s; }
.flow-grid.in-view .process-card:nth-child(4) { transition-delay: .32s; }
.flow-grid.in-view .process-card:nth-child(5) { transition-delay: .44s; }
.process-card.is-done { border-color: var(--teal-500); }

/* checkbox node — empty until "done" */
.process-node {
  position: absolute;
  left: -3.75rem;
  top: 1.85rem;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px var(--white);
  z-index: 2;
  transition: background-color .35s ease, border-color .35s ease, transform .35s ease;
}
.process-node svg {
  width: 1.2rem; height: 1.2rem;
}
.process-node svg path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  transition: stroke-dashoffset .4s ease .1s;
}
.process-card.is-done .process-node {
  background: var(--teal-700);
  border-color: var(--teal-700);
  transform: scale(1.06);
}
.process-card.is-done .process-node svg path { stroke-dashoffset: 0; }

.process-num {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--teal-700);
  font-variant-numeric: tabular-nums;
  margin-bottom: .6rem;
}
.process-card h3 {
  color: var(--primary-text);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: .5rem;
}
.process-card p {
  color: var(--secondary-text);
  font-size: 1rem;
  line-height: 1.6;
}
.process-card .free { color: var(--teal-700); font-weight: 600; }

@media (max-width: 860px) {
  .process-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-intro { position: static; }
  .process-lead { max-width: none; }
}
.flow-label {
  color: var(--teal-700); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem;
}
@media (prefers-reduced-motion: reduce) {
  .process-card { opacity: 1; transform: none; transition: border-color .25s; }
  .process-node, .process-node svg path { transition: none; }
}

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 3.5rem auto 0;
}
.team-card {
  background-color: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 16px -4px #00000010, 0 4px 6px -2px #10182808;
}
.team-image-wrap {
  width: 100%;
  padding-top: 100%;
  position: relative;
  overflow: hidden;
  background: var(--teal-50);
}
.team-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 1.25rem 1.5rem 1.75rem; }
.team-name { color: #101828; font-size: 1.25rem; font-weight: 600; line-height: 1.75rem; }
.team-position { color: var(--teal-700); font-weight: 700; margin: .35rem 0 .75rem; }
.team-desc { color: var(--secondary-text); font-size: .98rem; }

/* ---------- pricing rate-card / price list ---------- */
.price-list {
  max-width: 920px;
  margin: 3rem auto 0;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 1.25rem;
  box-shadow: 0 12px 16px -4px #00000010, 0 4px 6px -2px #10182808;
  padding: .5rem 2.5rem;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.price-row:last-child { border-bottom: 0; }
.price-main { display: flex; gap: 1.1rem; align-items: flex-start; min-width: 0; }
.price-icon {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  border-radius: .75rem;
  background: var(--teal-100);
  color: var(--teal-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: .15rem;
}
.price-icon svg { width: 1.4rem; height: 1.4rem; }
.price-info { min-width: 0; }
.price-name {
  color: var(--primary-text);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: .4rem;
}
.price-includes {
  color: var(--tertiary-text);
  font-size: .95rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.price-includes b { color: var(--secondary-text); font-weight: 600; }
.price-term {
  color: var(--tertiary-text);
  font-size: .82rem;
  margin-top: .55rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.price-term::before {
  content: "";
  width: .35rem; height: .35rem;
  border-radius: 50%;
  background: var(--teal-500);
  flex: none;
}
.price-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: .35rem;
  padding-top: .15rem;
}
.price-amount {
  color: var(--teal-700);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.1;
  white-space: nowrap;
}
.price-amount .price-from {
  display: block;
  color: var(--tertiary-text);
  font-family: var(--primary-font);
  font-weight: 500;
  font-size: .8rem;
  margin-bottom: .1rem;
}
.price-amount .price-unit {
  color: var(--tertiary-text);
  font-family: var(--primary-font);
  font-weight: 500;
  font-size: .9rem;
}
.price-cta {
  color: var(--teal-700);
  font-weight: 500;
  font-size: .92rem;
  display: inline-flex; align-items: center; gap: .3rem;
  transition: gap .2s;
}
.price-cta:hover { gap: .55rem; text-decoration: underline; }

/* "Важно знать" note panel */
.price-note {
  max-width: 920px;
  margin: 1.5rem auto 0;
  background: var(--secondary-background);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
}
.price-note-title {
  color: var(--secondary-text);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.price-note ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem 2rem;
}
.price-note li {
  color: var(--tertiary-text);
  font-size: .88rem;
  line-height: 1.5;
  padding-left: 1.1rem;
  position: relative;
  text-wrap: pretty;
}
.price-note li::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem;
  width: .3rem; height: .3rem;
  border-radius: 50%;
  background: var(--teal-500);
}
.price-main-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 850px; margin: 2.5rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1.4rem 0;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-text);
  line-height: 1.5;
}
.faq-icon {
  flex: none;
  width: 1.75rem; height: 1.75rem;
  color: var(--teal-700);
  transition: transform .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a-inner { padding: 0 0 1.4rem; color: var(--secondary-text); }
.faq-a-inner a { color: var(--teal-700); text-decoration: underline; }

/* ---------- contact form ---------- */
.contact-form { max-width: 34rem; margin: 2.5rem auto 0; }
.form-grid { display: grid; gap: 1.5rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field-label { color: var(--primary-text); display: block; margin-bottom: .5rem; font-size: .85rem; font-weight: 500; }
.field-input, .field-select, textarea.field-input {
  width: 100%;
  color: #101828;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: .5rem;
  min-height: 2.75rem;
  padding: .5rem .875rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: all .3s;
  box-shadow: 0 1px 2px #1018280d;
}
textarea.field-input { min-height: 6rem; resize: vertical; }
.field-input:focus, .field-select:focus {
  outline: 0;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px var(--teal-100);
}
.field-radio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
.radio-item { display: flex; align-items: center; gap: .65rem; cursor: pointer; }
.radio-item span { color: #344054; font-weight: 500; font-size: .95rem; }
.field-checkbox { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1.75rem; cursor: pointer; }
/* custom checkbox + radio — guaranteed white glyph on teal fill */
.radio-item input, .field-checkbox input {
  appearance: none; -webkit-appearance: none;
  flex: none; margin: 0;
  width: 1.2rem; height: 1.2rem;
  border: 2px solid #c2cad6;
  background-color: #fff;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.radio-item input { border-radius: 50%; }
.field-checkbox input { border-radius: .3rem; margin-top: .15rem; }
.radio-item input:checked, .field-checkbox input:checked {
  background-color: var(--teal-700);
  border-color: var(--teal-700);
}
.field-checkbox input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4 4 10-10'/%3E%3C/svg%3E");
  background-size: .8rem; background-position: center; background-repeat: no-repeat;
}
.radio-item input:checked {
  background-image: radial-gradient(circle at center, #fff 0 33%, transparent 38%);
}
.radio-item input:focus-visible, .field-checkbox input:focus-visible {
  outline: 0; box-shadow: 0 0 0 4px var(--teal-100);
}
.checkbox-label { color: var(--secondary-text); font-size: .9rem; font-weight: 500; }
.checkbox-label a { color: var(--teal-700); text-decoration: underline; }
.submit-wrap { margin-top: 1.5rem; }
.submit-wrap .button { width: 100%; }
.success-message {
  background-color: var(--teal-100);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--teal-700);
  font-weight: 500;
  display: none;
}

/* ---------- footer ---------- */
.footer { background-color: var(--secondary-background); overflow: hidden; }
.footer-inner { padding: 3rem 2rem 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4vw;
  align-items: center;
}
.footer-logo { height: 2.5rem; }
.footer-nav { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.footer-nav a { color: var(--secondary-text); padding: .5rem; font-weight: 500; transition: color .3s; }
.footer-nav a:hover { color: var(--teal-700); }
.footer-contacts { display: flex; gap: .6rem; justify-content: flex-end; }
.footer-contacts .social-link {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .25s, color .25s, transform .25s;
}
.footer-contacts .social-link span { width: 1.15rem; height: 1.15rem; display: inline-flex; }
.footer-contacts .social-link svg { width: 100%; height: 100%; }
.footer-contacts .social-link:hover { background: var(--teal-700); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  border-top: 1px solid var(--border-soft);
  margin-top: 2rem;
  padding-top: 2rem;
  color: var(--tertiary-text);
  font-size: .8rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--tertiary-text); }
.footer-bottom a:hover { color: var(--teal-700); }

/* ---------- responsive ---------- */
@media screen and (max-width: 991px) {
  .container { max-width: 728px; }
  .services-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .flow-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .flow-arrow { display: none; }
  .team-grid { grid-template-columns: 1fr 1fr; max-width: 640px; }
  .hero-head { font-size: 2.1rem; }
}
@media screen and (max-width: 767px) {
  .navbar { padding: 0 1rem; min-height: 4.5rem; }
  .navbar-menu, .navbar-right .button { display: none; }
  .navbar.open .navbar-menu {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #f2f4f7;
    padding: 1rem; gap: .25rem;
  }
  .navbar.open .navbar-menu .navbar-link { width: 100%; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: .5rem;
  }
  .menu-toggle span { width: 24px; height: 2px; background: #344054; border-radius: 2px; }
  .section { padding: 60px 15px; }
  .hero { padding: 60px 15px; }
  .hero-flex { flex-direction: column-reverse; gap: 2rem; }
  .hero-text { max-width: 100%; align-items: center; }
  .hero-head, .hero-subhead { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-image-wrap { width: 100%; max-width: 30rem; }
  .hero-image-slot { height: 18rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .trust-item:nth-child(2) { border-right: 0; }
  .context-grid { grid-template-columns: 1fr; gap: 2rem; }
  .heading-left, .context-text p { text-align: left; }
  .services-grid, .why-grid, .flow-grid, .team-grid { grid-template-columns: 1fr; }
  .why-grid { grid-auto-flow: row; grid-template-rows: none; }
  .team-grid { max-width: 24rem; }
  .price-list { padding: .5rem 1.5rem; }
  .price-row { flex-direction: column; gap: 1rem; padding: 1.5rem 0; }
  .price-side { align-items: flex-start; text-align: left; padding-top: 0; }
  .price-note ul { grid-template-columns: 1fr; }
  .form-row-2, .field-radio { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; justify-items: center; }
  .footer-contacts { justify-content: center; }
}
@media screen and (max-width: 479px) {
  .section-head { font-size: 1.65rem; line-height: 2rem; }
  .hero-head { font-size: 1.85rem; }
}

/* ---------- surface style: "sharp" / architectural ---------- */
body.surface-sharp .service-card,
body.surface-sharp .team-card,
body.surface-sharp .context-aside,
body.surface-sharp .price-list,
body.surface-sharp .price-note,
body.surface-sharp .price-icon,
body.surface-sharp .button,
body.surface-sharp .field-input,
body.surface-sharp .field-select,
body.surface-sharp textarea.field-input,
body.surface-sharp .hero-image-slot,
body.surface-sharp .service-icon { border-radius: 0; }
body.surface-sharp .why-check,
body.surface-sharp .context-point .ic,
body.surface-sharp .footer-contacts .social-link,
body.surface-sharp .flow-num { border-radius: 0; }
body.surface-sharp .service-card,
body.surface-sharp .team-card,
body.surface-sharp .price-list { box-shadow: none; }
body.surface-sharp .price-list { border: 1px solid var(--teal-700); }
body.surface-sharp .service-card:hover { transform: none; }
body.surface-sharp .pricing-plan:hover,
body.surface-sharp .service-card:hover { transform: none; }
/* heavier hairline framing replaces soft shadow */
body.surface-sharp .service-card,
body.surface-sharp .context-aside { border: 1px solid var(--teal-700); }
body.surface-sharp .hero { border-bottom-width: 2px; border-bottom-color: var(--teal-700); }
body.surface-sharp .section-tagline,
body.surface-sharp .tagline-left { letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; }

/* ---------- icon style tweak: soft (default) / line / solid ---------- */
/* "line" — drop the chip + the .12 duotone fill, leave a clean stroke glyph */
body.icons-line .service-icon,
body.icons-line .price-icon,
body.icons-line .context-point .ic {
  background: transparent;
  box-shadow: none;
}
body.icons-line [opacity="0.12"] { opacity: 0 !important; }
body.icons-line .service-icon { width: auto; height: auto; margin-bottom: 1.1rem; }
body.icons-line .service-icon svg { width: 2.1rem; height: 2.1rem; }
body.icons-line .context-point .ic svg { width: 1.6rem; height: 1.6rem; }
body.icons-line .price-icon svg { width: 1.7rem; height: 1.7rem; }

/* "solid" — filled accent chip, white glyph */
body.icons-solid .service-icon,
body.icons-solid .price-icon,
body.icons-solid .context-point .ic {
  background: var(--teal-700);
  color: #fff;
}

/* ---------- reviews / testimonials ---------- */
/* trust signal lives with the CTA at the bottom — muted, не отвлекает от отзывов */
.reviews-trust-line {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--tertiary-text);
  font-size: .9rem;
}
.reviews-trust-line .fb {
  width: 1.05rem; height: 1.05rem; flex: none;
  color: #8a93a6; /* muted, not bright Facebook blue */
  display: inline-flex;
}
.reviews-trust-line .fb svg { width: 100%; height: 100%; }
.reviews-trust-line b { color: var(--secondary-text); font-weight: 600; }

/* carousel */
.reviews-carousel { position: relative; margin-top: 2.5rem; }
.reviews-track {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .5rem .25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  position: relative;
  flex: 0 0 calc((100% - 1.75rem) / 2);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 1.7rem 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  color: inherit;
  box-shadow: 0 12px 16px -4px #00000010, 0 4px 6px -2px #10182808;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.review-card:hover {
  transform: translateY(-.25rem);
  border-color: var(--teal-500);
  box-shadow: 0 18px 26px -8px #00000016, 0 6px 10px -4px #1018280d;
}
/* small Facebook source mark — the whole card links to the review */
.fb-corner {
  position: absolute;
  top: 1.55rem;
  right: 1.75rem;
  width: 1.25rem; height: 1.25rem;
  color: #1877f2;
  opacity: .85;
  display: inline-flex;
}
.fb-corner svg { width: 100%; height: 100%; }
/* the quote — not an icon+heading — is the lead element; kept neutral, not teal */
.review-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  line-height: 1;
  height: 1.7rem;
  color: #d4dade;
  user-select: none;
  pointer-events: none;
}
.review-text {
  color: var(--primary-text);
  font-size: 1.06rem;
  line-height: 1.55;
  text-wrap: pretty;
  flex: 1;
  margin: .35rem 0 1.4rem;
}
.review-foot { display: flex; align-items: center; gap: .85rem; }
.review-avatar {
  flex: none;
  width: 2.85rem; height: 2.85rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border-soft);
}
.review-name { color: var(--primary-text); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.review-context { color: var(--tertiary-text); font-size: .85rem; margin-top: .1rem; text-wrap: pretty; }

/* controls: prev — dots — next, centered below the track */
.reviews-controls { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: .25rem; }
.reviews-arrow {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--teal-700);
  cursor: pointer;
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .25s, color .25s, border-color .25s;
}
.reviews-arrow:hover { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.reviews-arrow:disabled { opacity: .3; cursor: default; }
.reviews-arrow:disabled:hover { background: var(--white); color: var(--teal-700); border-color: var(--border); }
.reviews-arrow svg { width: 1.2rem; height: 1.2rem; }
.reviews-dots { display: flex; align-items: center; gap: .5rem; }
.reviews-dot {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--teal-500);
  background: transparent;
  cursor: pointer;
  transition: background-color .25s, transform .25s;
}
.reviews-dot.active { background: var(--teal-700); border-color: var(--teal-700); transform: scale(1.25); }

.reviews-cta { display: flex; flex-direction: column; align-items: center; gap: .7rem; margin-top: 1.85rem; }
.reviews-all-link {
  color: var(--teal-700);
  font-weight: 500;
  font-size: 1rem;
  display: inline-flex; align-items: center; gap: .35rem;
  transition: gap .2s;
}
.reviews-all-link:hover { gap: .6rem; text-decoration: underline; }

/* sharp surface tweak parity */
body.surface-sharp .review-card { border-radius: 0; box-shadow: none; border: 1px solid var(--teal-700); }
body.surface-sharp .review-card:hover { transform: none; }
body.surface-sharp .review-avatar,
body.surface-sharp .reviews-arrow { border-radius: 0; }

@media screen and (max-width: 767px) {
  .review-card { flex-basis: 88%; }
  .reviews-track { gap: 1rem; }
}

/* ---------- scroll reveal / fade-up ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Headings/subheads/descriptions stay stable; only content blocks animate.
     Grids & lists cascade via .stagger; single content blocks use .reveal-item. */
  html.js-reveal .reveal .reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.15s cubic-bezier(.22,1,.36,1), transform 1.15s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
  }
  html.js-reveal .reveal.is-visible .reveal-item { opacity: 1; transform: none; }

  /* staggered children inside a revealed block (grids, lists) */
  html.js-reveal .reveal .stagger > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .95s cubic-bezier(.22,1,.36,1), transform .95s cubic-bezier(.22,1,.36,1);
  }
  html.js-reveal .reveal.is-visible .stagger > * { opacity: 1; transform: none; }
  html.js-reveal .reveal.is-visible .stagger > *:nth-child(1) { transition-delay: .12s; }
  html.js-reveal .reveal.is-visible .stagger > *:nth-child(2) { transition-delay: .22s; }
  html.js-reveal .reveal.is-visible .stagger > *:nth-child(3) { transition-delay: .32s; }
  html.js-reveal .reveal.is-visible .stagger > *:nth-child(4) { transition-delay: .42s; }
  html.js-reveal .reveal.is-visible .stagger > *:nth-child(5) { transition-delay: .52s; }
  html.js-reveal .reveal.is-visible .stagger > *:nth-child(6) { transition-delay: .62s; }
  html.js-reveal .reveal.is-visible .stagger > *:nth-child(7) { transition-delay: .72s; }
  html.js-reveal .reveal.is-visible .stagger > *:nth-child(8) { transition-delay: .82s; }

  /* hero — richer, multi-timing entrance on load */
  html.js-reveal .hero-eyebrow,
  html.js-reveal .hero-head,
  html.js-reveal .hero-subhead,
  html.js-reveal .hero-actions,
  html.js-reveal .hero-image-wrap { opacity: 0; }
  html.js-reveal.hero-ready .hero-eyebrow { animation: blHeroUp 1s cubic-bezier(.22,1,.36,1) .15s both; }
  html.js-reveal.hero-ready .hero-head { animation: blHeroUp 1.15s cubic-bezier(.22,1,.36,1) .32s both; }
  html.js-reveal.hero-ready .hero-subhead { animation: blHeroUp 1.15s cubic-bezier(.22,1,.36,1) .54s both; }
  html.js-reveal.hero-ready .hero-actions { animation: blHeroUp 1.1s cubic-bezier(.22,1,.36,1) .74s both; }
  html.js-reveal.hero-ready .hero-image-wrap { animation: blHeroImg 1.5s cubic-bezier(.22,1,.36,1) .25s both; }
}
@keyframes blHeroUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes blHeroImg {
  from { opacity: 0; transform: scale(.82); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- ambient decoration layer ---------- */
/* intensity is set on <body> by ambient.js / Tweaks: ambient-off | -calm | -rich */
body { --amb-op: 0.055; --amb-glow: 0.34; }
body.ambient-rich { --amb-op: 0.09; --amb-glow: 0.62; }
body.ambient-off .bl-ambient-layer { display: none; }

/* sections that carry a watermark establish their own stacking context so the
   layer can sit at z-index 0 with real content lifted above it */
.has-ambient { position: relative; isolation: isolate; }
.has-ambient > .container,
.has-ambient > .container-wide,
.has-ambient > .process-layout { position: relative; z-index: 1; }

.bl-ambient-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bl-glyph {
  position: absolute;
  color: var(--teal-700);
  opacity: var(--amb-op);
  will-change: transform;
  transition: opacity .6s ease;
}
.bl-glyph svg { width: 100%; height: 100%; display: block; }
/* watermark reads cleaner as a single faint tone — drop the duotone fill layer */
.bl-glyph svg [opacity="0.12"] { opacity: 0 !important; }
.bl-glyph svg [stroke] { stroke-width: 1.4; }

.bl-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: var(--amb-glow);
  background: radial-gradient(circle at center, var(--teal-500) 0%, transparent 68%);
  filter: blur(36px);
  transition: opacity .6s ease;
}

/* hero image — owns its own frame so the inner photo can over-scale & parallax */
.hero-image-wrap { border-radius: 1rem; overflow: hidden; box-shadow: 0 20px 40px -12px #2f8f9d33; }
.hero-image-slot { box-shadow: none; }
body.ambient-on-img .hero-image-slot { transform: scale(1.12); will-change: transform; }
body.surface-sharp .hero-image-wrap { border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  .bl-glyph { will-change: auto; }
}

/* on small screens the gutters vanish — pull watermarks in tighter & lighter
   so they never crowd the single-column content */
@media screen and (max-width: 767px) {
  body { --amb-op: 0.04; }
  .bl-glyph { transform: none !important; }
  .bl-glow { opacity: calc(var(--amb-glow) * 0.7); }
}

/* ---------- production additions (tools/prepare.py) ---------- */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  padding: .875rem 1.125rem;
  border: 1px solid #f3b8b8;
  border-radius: .75rem;
  background: #fff4f4;
  color: #9b1c1c;
  text-align: center;
}
.form-error[hidden] { display: none; }
/* Inline phone error under the field (lead-form.js) */
.field-error {
  margin: .5rem 0 0;
  color: #9b1c1c;
  font-size: .875rem;
  line-height: 1.4;
}
.field-error[hidden] { display: none; }
.field-input[aria-invalid="true"],
.field-input[aria-invalid="true"]:focus {
  border-color: #d64545;
  box-shadow: 0 0 0 3px #d6454526;
}
.contact-form button[disabled] { opacity: .7; cursor: progress; }
/* Ambient layer: keep the soft glows and hero parallax, drop the watermark icons */
.bl-glyph { display: none; }
/* Two team cards after the placeholder card is removed: centre them on desktop */
@media screen and (min-width: 992px) {
  .team-grid.team-2 { grid-template-columns: repeat(2, 1fr); max-width: 680px; }
}
