/* Вариант B: светлый «редакционный» стиль */
:root {
  --paper: #faf9f6;
  --ink: #1a1f1c;
  --muted: #5c6560;
  --accent: #00a85c;
  --accent-soft: #e6f7ef;
  --line: #e2e8e4;
  --radius: 12px;
  /* Cormorant — выразительная антиква; Manrope — гротеск (оба с кириллицей) */
  --serif: "Cormorant", "Literata", Georgia, serif;
  --sans: "Manrope", system-ui, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  accent-color: var(--accent);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

*::selection {
  background: var(--accent);
  color: #fff;
}

*::-moz-selection {
  background: var(--accent);
  color: #fff;
}

.context-menu {
  position: fixed;
  z-index: 10050;
  min-width: 12rem;
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(26, 31, 28, 0.12);
}

.context-menu[hidden] {
  display: none !important;
}

.context-menu__item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.context-menu__item:hover:not(:disabled),
.context-menu__item:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

.context-menu__item:disabled {
  opacity: 0.4;
  cursor: default;
}

a,
button,
.nav-toggle,
.btn {
  -webkit-tap-highlight-color: rgba(0, 168, 92, 0.15);
}

button,
.nav-toggle {
  touch-action: manipulation;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 56.25rem;
  margin-inline: auto;
  padding-left: max(1.1rem, env(safe-area-inset-left));
  padding-right: max(1.1rem, env(safe-area-inset-right));
}

@media (min-width: 768px) {
  .container {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
}

.nav-desktop a:not(.btn) {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-desktop a:not(.btn):hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease,
    background 0.28s ease,
    filter 0.2s ease;
  min-height: 2.75rem;
}

.btn-primary {
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(
    145deg,
    #12e085 0%,
    var(--accent) 38%,
    #008f4f 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 20px rgba(0, 168, 92, 0.38);
}

.btn-primary:hover {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(
    145deg,
    #4fffc0 0%,
    #1be08f 32%,
    var(--accent) 58%,
    #006d3d 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 10px 36px rgba(0, 168, 92, 0.52),
    0 0 52px rgba(64, 255, 180, 0.35),
    0 0 96px rgba(0, 220, 140, 0.2);
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.btn-primary:focus-visible {
  outline: 2px solid rgba(0, 168, 92, 0.55);
  outline-offset: 3px;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  filter: saturate(1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 3px 14px rgba(0, 168, 92, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  gap: 0.5rem;
}

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

.nav-mobile a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  padding: 0.65rem 0;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

.hero-b {
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-b .eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-b h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 1rem 0 1.25rem;
  max-width: 14ch;
}

.hero-b .lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 48ch;
  margin: 0 0 2rem;
}

.hero-b .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pullquote {
  margin: 3rem 0 0;
  padding: 1.75rem 2rem;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
}

.section-b {
  padding: 3.5rem 0;
}

.section-b + .section-b {
  border-top: 1px solid var(--line);
}

.section-b h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.section-b .section-desc {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 55ch;
}

.services-two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.service-block {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.service-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-block h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.service-block ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.service-block li {
  margin-bottom: 0.4rem;
}

.steps-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-b {
  padding-top: 0.5rem;
}

.step-b .num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-b h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.step-b p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.cases-b {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cases-b {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-b {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.35rem;
  border-radius: var(--radius);
}

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

.case-b h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0.5rem 0 0.75rem;
}

.case-b .metric {
  font-size: 0.88rem;
  color: var(--muted);
}

.case-b .metric strong {
  color: var(--accent);
  font-size: 1.1rem;
}

.faq-b .faq-list {
  max-width: 40rem;
}

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

.faq-b .faq-item:last-child {
  border-bottom: none;
}

.faq-b .faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 1.1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
}

.faq-b .faq-q::after {
  content: "+";
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-b .faq-item.is-open .faq-q::after {
  transform: rotate(45deg);
}

.faq-b .faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-b .faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-b .faq-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-b .faq-a {
  padding: 0 0 1.05rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-b .faq-a p {
  margin: 0 0 0.65rem;
}

.faq-b .faq-a p:last-child {
  margin-bottom: 0;
}

.cta-b {
  background: var(--ink);
  color: #faf9f6;
  padding: 2.75rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
}

.cta-b h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: #fff;
}

.cta-b p {
  color: rgba(250, 249, 246, 0.75);
  margin: 0 0 1.25rem;
  max-width: 40ch;
  margin-inline: auto;
}

.contact-form-b {
  text-align: left;
  max-width: 400px;
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

.contact-form-b__fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.contact-form-b label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: rgba(250, 249, 246, 0.8);
}

.contact-form-b__choice-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: rgba(250, 249, 246, 0.8);
}

.contact-form-b .contact-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-form-b .contact-seg__item {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  margin: 0;
}

.contact-form-b .contact-seg__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.contact-form-b .contact-seg__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 249, 246, 0.88);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.contact-form-b .contact-seg__input:checked + .contact-seg__btn {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.contact-form-b .contact-seg__input:focus-visible + .contact-seg__btn {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact-form-b input:not(.contact-seg__input),
.contact-form-b textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
}

.contact-form-b input:not(.contact-seg__input):focus-visible,
.contact-form-b textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-form-b textarea {
  min-height: 90px;
  resize: none;
}

.contact-form-b small {
  font-size: 0.72rem;
  color: rgba(250, 249, 246, 0.55);
}

.contact-form-b button[type="submit"] {
  width: 100%;
}

.site-footer-b {
  padding: 2rem 0 3rem;
  padding-bottom: max(3rem, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.footer-inner-b {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.variant-switch {
  font-size: 0.85rem;
}

.variant-switch a {
  color: var(--muted);
}

@media (max-width: 767px) {
  body {
    font-size: 1rem;
  }

  .hero-b {
    padding: 2.75rem 0 3rem;
  }

  .hero-b h1 {
    max-width: none;
  }

  .hero-b .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-b .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .pullquote {
    margin-top: 2rem;
    padding: 1.35rem 1.25rem;
    font-size: 1.05rem;
  }

  .section-b {
    padding: 2.75rem 0;
  }

  .section-b h2 {
    font-size: clamp(1.45rem, 5vw, 1.85rem);
  }

  .faq-b .faq-q {
    min-height: 2.75rem;
    align-items: center;
  }

  .cta-b {
    padding: 2rem 1.25rem;
    margin: 1.5rem 0 0;
  }

  .contact-form-b input:not(.contact-seg__input),
  .contact-form-b textarea {
    font-size: 16px;
    min-height: 2.75rem;
  }

  .contact-form-b .contact-seg__btn {
    font-size: 16px;
    min-height: 2.75rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .footer-inner-b {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

  .faq-b .faq-panel {
    transition: none;
  }

  .faq-b .faq-q::after {
    transition: none;
  }
}
