:root {
  --page: #e7eadc;
  --paper: rgba(255, 255, 248, 0.58);
  --paper-strong: rgba(255, 255, 248, 0.76);
  --glass: rgba(255, 255, 255, 0.38);
  --glass-soft: rgba(255, 255, 255, 0.24);
  --text: #202514;
  --muted: rgba(32, 37, 20, 0.66);
  --accent: #74851f;
  --accent-dark: #4e5d13;
  --accent-soft: #e6ecaf;
  --border: rgba(255, 255, 255, 0.6);
  --border-dark: rgba(63, 73, 27, 0.12);
  --shadow-soft: 0 18px 50px rgba(39, 47, 21, 0.12);
  --shadow-card: 0 14px 34px rgba(39, 47, 21, 0.1);
  --inner-light: inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 -1px 0 rgba(255, 255, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(137, 161, 56, 0.28), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(255, 232, 168, 0.62), transparent 32%),
    radial-gradient(circle at 82% 84%, rgba(77, 92, 26, 0.26), transparent 30%),
    linear-gradient(135deg, #dfe6d1 0%, #f6f0df 46%, #d5ddc7 100%);
  overflow-x: hidden;
}

/* Легкий фон без filter: blur и без AI-сетки. Так страница не тормозит при скролле. */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255,255,255,.42), rgba(255,255,255,0) 26%, rgba(109, 128, 44, .10) 58%, rgba(255,255,255,.32)),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.38), transparent 36%);
}

.blur-orb,
.soft-leaf {
  position: absolute;
  display: block;
  opacity: .42;
}

.orb-left {
  left: -12vw;
  top: 42vh;
  width: 42vw;
  height: 32vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 123, 28, .32), rgba(96, 123, 28, 0) 70%);
}

.orb-right {
  right: -14vw;
  top: 8vh;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 131, .42), rgba(255, 220, 131, 0) 72%);
}

.soft-leaf {
  width: 300px;
  height: 560px;
  border-radius: 55% 45% 60% 40%;
  background: linear-gradient(160deg, rgba(69, 91, 20, .18), rgba(255,255,255,.02));
  transform-origin: center;
}

.leaf-one {
  left: -120px;
  bottom: -120px;
  transform: rotate(26deg);
}

.leaf-two {
  right: -135px;
  bottom: -170px;
  transform: rotate(-32deg);
  opacity: .28;
}

.site-shell {
  width: min(1840px, calc(100% - 44px));
  margin: 18px auto 0;
}

.glass-shell,
.liquid-card,
.glass-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.22));
  box-shadow: var(--shadow-soft), var(--inner-light);
}

/* backdrop-filter оставлен только на главном окне и крупных карточках, но с меньшим blur. */
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .liquid-card,
  .glass-card {
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    backdrop-filter: blur(10px) saturate(125%);
  }
}

.browser-window {
  min-height: calc(100vh - 36px);
  overflow: hidden;
  border-radius: 28px;
  position: relative;
}

.browser-window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 23%, rgba(255,255,255,.48), transparent 22%),
    radial-gradient(circle at 87% 15%, rgba(255,232,158,.34), transparent 24%),
    linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,0) 42%, rgba(76, 92, 29, .07));
}

.browser-window > * {
  position: relative;
  z-index: 1;
}

.browser-topbar {
  height: 68px;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 760px) auto;
  gap: 20px;
  align-items: center;
  padding: 0 24px;
  background: rgba(255, 255, 250, 0.5);
  border-bottom: 1px solid rgba(83, 92, 47, 0.12);
}

.traffic-lights,
.browser-actions,
.window-icons,
.header-actions,
.hero-actions,
.trust-row,
.ai-panel-header,
.assistant-title,
.quick-questions,
.mini-card-head {
  display: flex;
  align-items: center;
}

.traffic-lights {
  gap: 9px;
}

.traffic-lights span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff5f57;
}

.traffic-lights span:nth-child(2) {
  background: #ffbd2e;
}

.traffic-lights span:nth-child(3) {
  background: #28c840;
}

.browser-actions,
.window-icons {
  gap: 16px;
  color: rgba(36, 41, 26, .48);
  font-size: 28px;
}

.window-icons {
  justify-content: flex-end;
  font-size: 19px;
}

.address-bar {
  justify-self: center;
  width: min(760px, 100%);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(32, 37, 20, .72);
  border-radius: 12px;
  border: 1px solid rgba(80, 89, 46, .13);
  background: rgba(255, 255, 255, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  font-size: 15px;
}

.lock {
  color: rgba(47, 55, 23, .58);
  font-size: 9px;
}

.header {
  height: 104px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 0 60px;
  background: rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(255,255,255,.22);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-mark,
.assistant-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: #fffbea;
  background: linear-gradient(135deg, #a4b74c, #576516 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 10px 18px rgba(70, 84, 19, .16);
  font-weight: 900;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 54px;
}

.nav a,
.login-link,
.demo-link {
  color: rgba(32, 37, 20, .78);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.header-actions {
  gap: 12px;
}

.login-link {
  padding: 14px 21px;
  border-radius: 999px;
  background: rgba(255,255,255,.3);
  border: 1px solid rgba(255,255,255,.52);
}

.hero {
  min-height: calc(100vh - 172px);
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(720px, 1.18fr);
  gap: 64px;
  align-items: center;
  padding: 44px 58px 70px;
}

.hero-content {
  max-width: 690px;
}

.pill {
  width: max-content;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 10px 16px;
  color: var(--accent-dark);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
  font-size: 15px;
  font-weight: 700;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: #1f2612;
  font-size: clamp(54px, 6vw, 94px);
  line-height: .97;
  letter-spacing: -0.075em;
}

.hero-text {
  margin: 28px 0 0;
  color: rgba(31, 38, 18, .79);
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.58;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover,
.quick-questions button:hover,
.demo-link:hover {
  transform: translateY(-1px);
}

.btn-small {
  min-height: 48px;
  padding: 13px 23px;
}

.primary {
  color: #fffdf0;
  background: linear-gradient(135deg, #94a93b 0%, #5d6e17 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 14px 24px rgba(82, 100, 23, .18);
}

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.demo-link span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  font-size: 13px;
}

.trust-row {
  gap: 18px;
  margin-top: 82px;
}

.avatars {
  display: flex;
}

.avatars span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: -10px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #59631e, #d7cfa5);
  box-shadow: 0 8px 18px rgba(45, 52, 26, .12);
  font-size: 14px;
  font-weight: 800;
}

.avatars span:first-child {
  margin-left: 0;
}

.trust-row p {
  margin: 0 0 5px;
  color: rgba(32,37,20,.58);
}

.trust-row strong {
  color: rgba(32,37,20,.78);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin-top: 36px;
  overflow: hidden;
  border-radius: 26px;
}

.stats div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  padding: 17px clamp(14px, 1.3vw, 22px);
  border-right: 1px solid rgba(255,255,255,.42);
}

.stats div:last-child {
  border-right: 0;
}

.stat-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #6f801f;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.55);
}

.stats strong,
.stats small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stats strong {
  font-size: clamp(14px, 1.1vw, 15px);
  line-height: 1.15;
}

.stats small {
  color: rgba(32,37,20,.58);
  line-height: 1.28;
}

.ai-stage {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
}

.liquid-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.liquid-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0) 34%, rgba(255,255,255,.18) 64%, rgba(255,255,255,0));
  opacity: .5;
}

.liquid-card > * {
  position: relative;
  z-index: 1;
}

.ai-main-card {
  height: clamp(600px, calc(100vh - 230px), 720px);
  min-height: 600px;
  max-height: 720px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 30px;
  overflow: hidden;
}

.ai-panel-header {
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
}

.assistant-title {
  gap: 14px;
}

.assistant-avatar {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  font-size: 25px;
}

.assistant-title h2,
.mini-card h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.assistant-title h2 {
  font-size: 24px;
}

.assistant-title p,
.mini-card p {
  margin: 5px 0 0;
  color: rgba(32,37,20,.58);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  color: var(--accent-dark);
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #79a629;
  box-shadow: 0 0 0 5px rgba(121,166,41,.12);
}

.quick-questions {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.quick-questions button {
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 999px;
  padding: 11px 16px;
  color: rgba(31,38,18,.76);
  background: rgba(255,255,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.64);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}

.chat-messages {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px;
  border: 1px solid rgba(97, 104, 59, .11);
  border-radius: 24px;
  background: rgba(255, 255, 248, .3);
  box-shadow: inset 0 1px 12px rgba(255,255,255,.14);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(111, 128, 31, .34);
  border-radius: 999px;
}

.message {
  box-sizing: border-box;
  width: fit-content;
  max-width: min(82%, 620px);
  min-width: 0;
  padding: 14px 16px;
  border-radius: 20px;
  color: rgba(30, 35, 20, .9);
  line-height: 1.52;
  text-align: left !important;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(47, 55, 23, .06), inset 0 1px 0 rgba(255,255,255,.75);
}

.message.bot {
  align-self: flex-start;
  margin-right: auto;
  background: rgba(255,255,255,.6);
  border-top-left-radius: 8px;
  border: 1px solid rgba(255,255,255,.62);
}

.message.user {
  align-self: flex-end;
  margin-left: auto;
  background: linear-gradient(135deg, rgba(236, 239, 182, .9), rgba(183, 196, 87, .52));
  border-top-right-radius: 8px;
  border: 1px solid rgba(255,255,255,.44);
  font-weight: 700;
}

.chat-note {
  align-self: center;
  max-width: 92%;
  padding: 10px 14px;
  color: rgba(66, 76, 25, .82);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 12px;
  margin-top: 16px;
}

.chat-form input,
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: rgba(31,38,18,.9);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, .48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 8px 18px rgba(63, 71, 34, .05);
  font: inherit;
}

.chat-form input::placeholder,
.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(31,38,18,.44);
}

.chat-form input:focus,
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: rgba(111, 128, 31, .45);
  box-shadow: 0 0 0 4px rgba(132, 154, 46, .12), inset 0 1px 0 rgba(255,255,255,.7);
}

.chat-form button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 18px;
  color: #fffce9;
  background: linear-gradient(135deg, #8fa639, #596716);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 12px 22px rgba(82, 100, 23, .16);
  cursor: pointer;
  font-size: 24px;
  transition: transform .15s ease;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.mini-card {
  padding: 20px;
}

.lead-preview {
  min-height: 365px;
}

.chart-card {
  min-height: 267px;
}

.mini-card-head {
  justify-content: space-between;
  gap: 12px;
}

.mini-card-head span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #60721b;
  background: rgba(255,255,255,.44);
  font-size: 12px;
  font-weight: 800;
}

dl {
  margin: 22px 0 20px;
}

dt {
  margin-top: 13px;
  color: rgba(32,37,20,.48);
  font-size: 12px;
}

dd {
  margin: 4px 0 0;
  color: rgba(32,37,20,.82);
  font-weight: 650;
}

.wide {
  width: 100%;
  min-height: 44px;
  padding: 12px 18px;
  font-size: 14px;
}

.big-number {
  margin-top: 20px;
  color: #1f2612;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 7px;
  height: 76px;
  margin-top: 18px;
}

.bars span {
  display: block;
  min-height: 15px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #dfe69b, #66771d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.bars span:nth-child(1) { height: 28%; }
.bars span:nth-child(2) { height: 45%; }
.bars span:nth-child(3) { height: 36%; }
.bars span:nth-child(4) { height: 66%; }
.bars span:nth-child(5) { height: 78%; }
.bars span:nth-child(6) { height: 55%; }
.bars span:nth-child(7) { height: 92%; }
.bars span:nth-child(8) { height: 41%; }

.section {
  padding: 92px 34px 0;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.section-title {
  max-width: 930px;
  margin-bottom: 28px;
}

.section-title h2,
.lead-info h2 {
  margin: 0;
  color: #202514;
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 1;
  letter-spacing: -0.065em;
}

.section-title.compact {
  display: grid;
  grid-template-columns: .52fr 1fr;
  column-gap: 34px;
  align-items: end;
  max-width: 100%;
}

.section-title.compact .pill {
  grid-column: 1 / -1;
}

.section-title.compact p:last-child,
.lead-info p,
.card p,
.service-card p,
.footer p {
  color: var(--muted);
  line-height: 1.65;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 250px;
  padding: 30px;
}

.card span {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
}

.card h3,
.service-card h3 {
  margin: 34px 0 12px;
  font-size: 27px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.services-section {
  margin-top: 92px;
  padding: 34px;
  border-radius: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.service-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 24px;
  background: rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48);
}

.service-card h3 {
  margin-top: 0;
}

.service-card strong {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent-dark);
  font-size: 23px;
}

.lead-section {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 82px;
}

.lead-info,
.lead-form {
  padding: 34px;
}

.lead-info p {
  margin-top: 22px;
  font-size: 18px;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form textarea {
  min-height: 130px;
  padding-top: 17px;
  resize: vertical;
}

.form-result {
  min-height: 24px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 750;
}

.footer {
  padding: 30px 34px 42px;
  border-top: 1px solid rgba(255,255,255,.28);
}

.footer p {
  margin: 0;
}

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

  .hero-content {
    max-width: 980px;
  }

  .trust-row {
    margin-top: 46px;
  }

  .ai-stage {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 1180px) {
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .stats div {
    padding: 16px 14px;
  }
}

@media (max-width: 1020px) {
  .site-shell {
    width: min(100% - 24px, 1840px);
  }

  .browser-topbar {
    grid-template-columns: auto 1fr auto;
  }

  .browser-actions {
    display: none;
  }

  .header {
    height: auto;
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .nav {
    justify-content: flex-start;
    gap: 22px;
    flex-wrap: wrap;
  }

  .hero {
    padding: 34px 24px 50px;
  }

  .ai-stage,
  .lead-section,
  .section-title.compact {
    grid-template-columns: 1fr;
  }

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

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

  .ai-main-card {
    height: 620px;
    min-height: 620px;
    max-height: 620px;
  }
}

@media (max-width: 690px) {
  html {
    scroll-behavior: auto;
  }

  .site-shell {
    width: calc(100% - 14px);
    margin-top: 7px;
  }

  .browser-window {
    border-radius: 22px;
  }

  .browser-topbar {
    height: 54px;
    gap: 10px;
    padding: 0 13px;
  }

  .address-bar {
    height: 34px;
    font-size: 13px;
  }

  .window-icons {
    display: none;
  }

  .header {
    padding: 18px;
  }

  .logo {
    font-size: 21px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn,
  .login-link {
    flex: 1;
  }

  .hero {
    padding: 26px 16px 36px;
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(42px, 16vw, 62px);
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions {
    gap: 16px;
  }

  .trust-row {
    align-items: flex-start;
    margin-top: 40px;
  }

  .stats,
  .side-stack,
  .cards,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.42);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .ai-main-card,
  .mini-card,
  .lead-info,
  .lead-form,
  .services-section {
    border-radius: 24px;
    padding: 18px;
  }

  .ai-main-card {
    height: 590px;
    min-height: 590px;
    max-height: 590px;
  }

  .assistant-title h2 {
    font-size: 20px;
  }

  .assistant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 18px;
  }

  .ai-panel-header {
    align-items: flex-start;
  }

  .status-dot {
    padding: 9px 11px;
    font-size: 12px;
  }

  .message {
    max-width: min(88%, 380px);
    padding: 13px 15px;
    font-size: 14px;
    text-align: left;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-form button {
    width: 100%;
  }

  .section {
    padding: 64px 16px 0;
  }

  .section-title h2,
  .lead-info h2 {
    font-size: 38px;
  }

  .services-section {
    margin-top: 64px;
  }

  .lead-section {
    padding-bottom: 58px;
  }

  .footer {
    padding: 25px 16px 36px;
  }
}

/* Дополнительный режим для слабых видеокарт и старых ноутбуков. */
@media (prefers-reduced-motion: reduce), (max-width: 690px) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .liquid-card,
  .glass-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* Booking form */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-link {
  width: max-content;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 850;
}

.ghost {
  color: rgba(32, 37, 20, .82);
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 10px 18px rgba(63, 71, 34, .06);
}

/* Admin panel */
.admin-shell {
  margin-bottom: 22px;
}

.admin-window {
  min-height: calc(100vh - 36px);
}

.admin-header {
  height: 92px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr);
  gap: 28px;
  align-items: end;
  padding: 54px 58px 34px;
}

.admin-title h1 {
  max-width: 820px;
  margin: 0;
  color: #1f2612;
  font-size: clamp(44px, 5.3vw, 86px);
  line-height: .98;
  letter-spacing: -0.075em;
}

.admin-title p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(31, 38, 18, .74);
  font-size: 18px;
  line-height: 1.62;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-tile {
  min-height: 160px;
  padding: 22px;
}

.stat-tile span {
  color: rgba(32,37,20,.56);
  font-weight: 750;
}

.stat-tile strong {
  display: block;
  margin-top: 26px;
  color: #202514;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.07em;
}

.admin-section {
  padding: 28px 58px 0;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border-radius: 28px;
}

.admin-toolbar h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.055em;
}

.admin-toolbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-toolbar select,
.status-select {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 16px;
  outline: none;
  color: rgba(31,38,18,.9);
  background: rgba(255, 255, 255, .48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 8px 18px rgba(63, 71, 34, .05);
  font: inherit;
  font-weight: 750;
}

.leads-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.lead-card {
  padding: 24px;
}

.lead-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.lead-id {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(32,37,20,.45);
  font-size: 12px;
  font-weight: 850;
}

.lead-card h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.lead-card-top p {
  margin: 8px 0 0;
  color: rgba(32,37,20,.66);
  font-weight: 700;
}

.lead-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.lead-details div {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;
  background: rgba(255,255,255,.28);
}

.lead-details span,
.lead-comment span,
.reply-box span {
  display: block;
  color: rgba(32,37,20,.48);
  font-size: 12px;
  font-weight: 850;
}

.lead-details strong {
  display: block;
  margin-top: 8px;
  color: rgba(32,37,20,.86);
  font-size: 14px;
}

.lead-comment {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.28);
}

.lead-comment p,
.reply-box p {
  margin: 8px 0 0;
  color: rgba(32,37,20,.74);
  line-height: 1.6;
}

.lead-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.lead-actions .btn,
.reply-box .btn {
  min-height: 46px;
  padding: 12px 18px;
  font-size: 14px;
}

.reply-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 20px;
  background: rgba(235, 240, 180, .26);
}

.reply-box .btn {
  margin-top: 14px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: -0.05em;
}

.empty-state p {
  margin: 0 auto 20px;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.65;
}

.knowledge-section {
  margin: 34px 58px 0;
  padding: 34px;
  border-radius: 34px;
}

.knowledge-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.knowledge-card {
  min-height: 210px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 22px;
  background: rgba(255,255,255,.28);
}

.knowledge-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.knowledge-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.knowledge-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--accent-dark);
  font-weight: 850;
}

.knowledge-card span {
  color: rgba(32,37,20,.52);
}


/* Calendar schedule */
.calendar-section {
  padding-top: 18px;
}

.calendar-toolbar {
  align-items: flex-end;
}

.calendar-toolbar .pill {
  margin-bottom: 10px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.calendar-controls input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 16px;
  outline: none;
  color: rgba(31,38,18,.9);
  background: rgba(255, 255, 255, .48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 8px 18px rgba(63, 71, 34, .05);
  font: inherit;
  font-weight: 750;
}

.calendar-controls .btn {
  min-height: 48px;
  padding: 12px 18px;
  font-size: 14px;
}

.calendar-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.calendar-day {
  min-width: 220px;
  padding: 18px;
  border-radius: 26px;
}

.calendar-day-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.calendar-day-header span {
  color: rgba(32,37,20,.48);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-day-header strong {
  display: block;
  margin-top: 4px;
  color: #202514;
  font-size: 17px;
  line-height: 1.18;
}

.calendar-day-header b {
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(226, 236, 134, .44);
  font-size: 12px;
}

.calendar-bookings {
  display: grid;
  gap: 10px;
}

.booking-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.44);
}

.booking-time {
  color: var(--accent-dark);
  font-size: 16px;
}

.booking-row b {
  display: block;
  color: #202514;
  font-size: 14px;
  line-height: 1.18;
}

.booking-row span {
  display: block;
  margin-top: 4px;
  color: rgba(32,37,20,.58);
  font-size: 12px;
  line-height: 1.35;
}

.booking-status {
  grid-column: 1 / -1;
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  background: rgba(255,255,255,.42);
  color: rgba(32,37,20,.66);
}

.booking-status.confirmed {
  background: rgba(222, 238, 140, .62);
  color: var(--accent-dark);
}

.booking-status.progress {
  background: rgba(247, 232, 172, .62);
  color: rgba(116, 86, 16, .92);
}

.booking-status.cancelled {
  background: rgba(255, 222, 207, .62);
  color: rgba(139, 61, 31, .92);
}

.calendar-empty {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  color: rgba(32,37,20,.5);
  background: rgba(255,255,255,.24);
}

.calendar-free {
  margin-top: 16px;
}

.calendar-free > span {
  display: block;
  margin-bottom: 9px;
  color: rgba(32,37,20,.48);
  font-size: 12px;
  font-weight: 850;
}

.calendar-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.slot-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(235, 242, 159, .58);
  border: 1px solid rgba(255,255,255,.48);
  font-size: 12px;
  font-weight: 850;
}

.slot-pill.busy {
  color: rgba(32,37,20,.5);
  background: rgba(255,255,255,.34);
}

@media (max-width: 1180px) {
  .admin-hero,
  .leads-list {
    grid-template-columns: 1fr;
  }

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

  .calendar-list {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-hero,
  .admin-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-stats,
  .lead-details,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .calendar-toolbar,
  .lead-card-top {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-list {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .calendar-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .knowledge-section {
    margin-left: 18px;
    margin-right: 18px;
    padding: 20px;
  }

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

.ai-meta {
  margin: 12px 4px 0;
  color: rgba(32, 37, 20, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.status-dot.offline {
  color: rgba(99, 45, 27, .86);
  background: rgba(255, 229, 214, .64);
  border-color: rgba(164, 87, 54, .25);
}

.quick-questions button:disabled,
.chat-form button:disabled,
.chat-form input:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.ai-control {
  width: min(1180px, calc(100% - 72px));
  margin: 0 auto 22px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  border-radius: 28px;
}

.ai-control h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.05em;
}

.ai-control p:last-child {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.toggle-switch {
  position: relative;
  width: 84px;
  height: 48px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch span {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(74, 86, 34, .16);
  background: rgba(255,255,255,.44);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 12px 24px rgba(47, 59, 26, .12);
  transition: .22s ease;
}

.toggle-switch span::before {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  left: 5px;
  top: 4px;
  border-radius: 50%;
  background: #fffdf1;
  box-shadow: 0 8px 18px rgba(45, 54, 22, .16);
  transition: .22s ease;
}

.toggle-switch input:checked + span {
  background: rgba(141, 160, 58, .64);
}

.toggle-switch input:checked + span::before {
  transform: translateX(35px);
}

@media (max-width: 760px) {
  .ai-control {
    width: min(100% - 28px, 1180px);
    grid-template-columns: 1fr;
  }
}
