/* Avitologia - статичный фон; токены theme-tokens.css; композиция flow.css */

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

html {
  scroll-behavior: smooth;
  accent-color: var(--accent);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--site-header-bar));
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

html.has-shader-bg body {
  background-color: transparent;
}

*::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

*::-moz-selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

/* WebGL-фон + вуаль поверх (js/shader-bg.js) */
.shader-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-color: transparent;
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -10%, var(--page-bg-1), transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 0%, var(--page-bg-2), transparent 50%),
    radial-gradient(ellipse 100% 60% at 50% 110%, var(--page-bg-3), transparent 45%),
    linear-gradient(180deg, rgba(8, 10, 11, 0.45) 0%, rgba(8, 10, 11, 0.38) 45%, rgba(8, 10, 11, 0.52) 100%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 72px,
      rgba(255, 255, 255, 0.014) 72px,
      rgba(255, 255, 255, 0.014) 73px
    );
}

html:not(.has-shader-bg) .page-bg {
  background-color: var(--bg);
}

body > main,
body > .site-footer {
  position: relative;
  z-index: 2;
}

main {
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--site-header-bar));
}

/* Кастомное меню (js/main.js) */
.context-menu {
  position: fixed;
  z-index: 10050;
  min-width: 12rem;
  padding: 0.35rem;
  margin: 0;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
}

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

.context-menu__item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  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;
}

.context-menu--bar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  min-width: auto;
  padding: 0.2rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-menu);
}

.context-menu--bar .context-menu__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.context-menu--bar .context-menu__item + .context-menu__item {
  box-shadow: -2px 0 0 var(--border);
}

a,
button,
.nav-toggle,
.btn {
  -webkit-tap-highlight-color: var(--tap-highlight);
}

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: 68rem;
  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: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  background: var(--header-bg);
  backdrop-filter: blur(var(--header-blur, 12px));
  -webkit-backdrop-filter: blur(var(--header-blur, 12px));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.header-trailing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.theme-toggle {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 3.5rem;
  height: 2rem;
  padding: 0.2rem;
  box-sizing: border-box;
  gap: 0;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.theme-toggle__cell {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* Ползунок: ширина = половина контента; сдвиг на вторую половину через translateX(100% от своей ширины) - без заезда на соседнюю иконку */
.theme-toggle::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: calc((100% - 0.4rem) / 2);
  border-radius: 3px;
  background: var(--accent);
  z-index: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(0);
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle svg {
  display: block;
  width: 0.82rem;
  height: 0.82rem;
  flex-shrink: 0;
  color: var(--text);
  mix-blend-mode: normal;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

/* Тёмная тема: подсветка под луной */
.theme-toggle__icon--moon {
  opacity: 0.95;
}

.theme-toggle__icon--sun {
  opacity: 0.42;
}

html.theme-light .theme-toggle::before {
  transform: translateX(100%);
}

html.theme-light .theme-toggle__icon--moon {
  opacity: 0.42;
}

html.theme-light .theme-toggle__icon--sun {
  opacity: 0.95;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
  font-variant-ligatures: common-ligatures;
}

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

.nav-desktop {
  display: none;
  gap: 1.35rem;
  align-items: center;
  margin-left: auto;
  justify-content: flex-end;
}

.theme-toggle--desktop {
  display: none;
}

.theme-toggle--mobile {
  display: inline-flex;
}

.nav-desktop a:not(.btn) {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-desktop a:not(.btn):hover {
  color: var(--accent);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  min-height: 2.75rem;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(165deg, var(--accent-hover) 0%, var(--accent) 45%, var(--accent-dim) 100%);
  border-color: var(--accent-dim);
  box-shadow:
    var(--shadow-inset),
    0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  color: var(--on-accent);
  text-decoration: none;
  filter: brightness(1.06);
  box-shadow:
    var(--shadow-inset),
    0 8px 28px var(--accent-glow);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-inset), 0 2px 12px var(--accent-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

html.theme-light .btn-ghost {
  background: rgba(0, 0, 0, 0.03);
}

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

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--border);
  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;
  font-weight: 600;
}

.nav-mobile .btn {
  min-height: 2.75rem;
}

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

  .theme-toggle--desktop {
    display: inline-flex;
  }

  .theme-toggle--mobile {
    display: none;
  }

  .header-trailing {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

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

/* Плашка / «журнальная» метка */
.plaque {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

html.theme-light .plaque {
  box-shadow: 3px 3px 0 rgba(28, 25, 23, 0.08);
}

.hero {
  padding: 3rem 0 3.75rem;
}

.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2vw, 1.2rem);
  min-width: 0;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2vw, 1.35rem);
  min-width: 0;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }
}

.hero h1 {
  margin: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38ch;
  margin: 0 0 1.5rem;
}

.hero .hero-cta {
  margin: 0.25rem 0 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  padding: 0;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  text-align: left;
}

.hero-stats .stat:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.stat strong {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  line-height: 1.1;
}

.stat span {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: left;
  line-height: 1.35;
}

.hero-card {
  align-self: start;
  width: 100%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  pointer-events: none;
}

.hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 0.85rem;
  padding-left: 0.5rem;
}

.checklist {
  list-style: none;
  padding: 0 0 0 0.5rem;
  margin: 0;
}

.checklist li {
  padding: 0.32rem 0 0.32rem 1.5rem;
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border: 2px solid var(--accent-dim);
  transform: rotate(45deg);
}

.section {
  padding: 3.75rem 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 2px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.65rem;
}

.section-desc {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 2.25rem;
}

#faq .section-desc {
  color: var(--text);
}

#process .section-desc {
  font-size: 1.05rem;
  line-height: 1.55;
}

.grid-3 {
  display: grid;
  gap: 1.15rem;
}

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

.card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0 0 0.55rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.steps {
  display: grid;
  gap: 1.25rem;
  position: relative;
}

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

.step {
  text-align: left;
  padding: 1rem 0.85rem 1rem 1rem;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 2px solid var(--border);
  border-left: 4px solid var(--accent);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}

.step-num {
  width: auto;
  height: auto;
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.45rem;
  border: 2px solid var(--accent);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 0.45rem;
}

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

#process .step p {
  font-size: 1.02rem;
  line-height: 1.55;
}

.cases {
  display: grid;
  gap: 1.15rem;
}

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

.case {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.case-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  border: 2px solid var(--accent-dim);
  padding: 0.28rem 0.55rem;
  border-radius: 3px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.case h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0.5rem 0 0.65rem;
}

.case-desc {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.58;
}

.case-metrics {
  display: flex;
  gap: 1.15rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--border);
}

.case-metrics div strong {
  display: block;
  color: var(--accent);
  font-size: 1.2rem;
  font-family: var(--font-display);
}

.case-metrics div span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.faq-list {
  max-width: 42rem;
}

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

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

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

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

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

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

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

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

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

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

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

.cta-block {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  background: var(--bg-card);
  box-shadow:
    inset 0 0 0 1px rgba(245, 158, 11, 0.12),
    0 10px 40px rgba(0, 0, 0, 0.25);
}

.cta-block h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.65rem;
}

.cta-block p {
  color: var(--muted);
  margin: 0 0 1.35rem;
  max-width: 44ch;
  margin-inline: auto;
}

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

.contact-form__fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 0.95rem;
}

.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 label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-form__choice-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.contact-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

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

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

.contact-seg__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.contact-seg__input:checked + .contact-seg__btn {
  background: var(--accent);
  border-color: var(--accent-dim);
  color: var(--on-accent);
}

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

.contact-form input:not(.contact-seg__input),
.contact-form textarea {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

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

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form small {
  font-size: 0.72rem;
  color: var(--muted);
}

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

.nav-mobile .btn-primary {
  width: 100%;
  justify-content: center;
}

.site-footer {
  padding: 2.25rem 0;
  padding-bottom: max(2.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--bg-elevated);
}

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

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

  .hero {
    padding: 2.35rem 0 2.75rem;
  }

  .stat {
    padding: 0.75rem 0.9rem;
  }

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

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

  .lead {
    max-width: none;
  }

  .section {
    padding: 2.6rem 0;
  }

  .section-title {
    font-size: clamp(1.35rem, 5.2vw, 1.8rem);
  }

  .section-desc {
    margin-bottom: 1.6rem;
  }

  .hero-card {
    padding: 1.2rem 1.15rem;
  }

  .grid-3 {
    gap: 0.95rem;
  }

  .card {
    padding: 1.2rem;
  }

  .step {
    padding: 0.85rem 0.65rem;
  }

  .case-metrics {
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

  .faq-q {
    min-height: 2.75rem;
    padding: 0.95rem 0;
  }

  .cta-block {
    padding: 1.65rem 1rem;
  }

  .cta-block h2 {
    font-size: clamp(1.28rem, 4.2vw, 1.48rem);
  }

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

  .contact-seg__btn {
    font-size: 14px;
    min-height: 2.6rem;
  }

  .contact-form textarea {
    min-height: 6.25rem;
  }

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

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

  .btn:active {
    transform: none;
  }

  .card:hover {
    transform: none;
  }

  .faq-panel {
    transition: none;
  }

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

  .theme-toggle::before {
    transition: none;
  }
}
