
:root {
  --ink: #152720;
  --muted: #4c6257;
  --dark: #122922;
  --panel: #1e3a30;
  --paper: #f3f6f2;
  --white: #fff;
  --line: #d6e0d7;
  --brand: #0e5143;
  --accent: #d9f5a4;
  --pale: #e7f0e7;
  --error: #963528;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.58 "Segoe UI", Arial, sans-serif; }
main { min-height: 65vh; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.025em; }
h1 { font-size: clamp(36px, 5.3vw, 66px); font-weight: 720; letter-spacing: -.055em; }
h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 690; }
h3 { font-size: 20px; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #26765b; outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 15px; z-index: 20; background: var(--white); padding: 8px; }
.skip:focus { top: 12px; }
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; }
.header-row { min-height: 69px; }
.brand { font-size: 20px; white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 560; }
.brand span { font-weight: 800; letter-spacing: .045em; border-right: 1px solid var(--line); margin-right: 6px; padding-right: 10px; }
.nav, .header-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nav a { padding: 7px 8px; border-radius: 7px; text-decoration: none; font-size: 14px; font-weight: 620; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: var(--pale); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; min-height: 42px; border: 1px solid transparent;
  border-radius: 8px; font: 690 14px/1.4 "Segoe UI", Arial, sans-serif; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: #07382f; }
.btn-outline { border-color: #a3b8aa; background: var(--white); color: var(--brand); }
.btn-outline:hover { background: var(--pale); }
.btn:disabled { opacity: .65; cursor: wait; }
.hero { padding: clamp(34px, 6vw, 76px) 0; background: var(--dark); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center; gap: clamp(22px, 5vw, 72px); }
.hero h1 { max-width: 16ch; }
.lead { font-size: clamp(17px, 1.9vw, 21px); margin-top: 18px; max-width: 58ch; color: var(--muted); }
.hero .lead { color: #d9ebe0; }
.hero .actions, .section .actions { margin-top: 20px; }
.hero .btn-primary { background: var(--accent); color: var(--dark); }
.hero .btn-primary:hover { background: #e8fbc5; }
.hero .btn-outline { background: transparent; color: var(--white); border-color: #90b09e; }
.hero :focus-visible { outline-color: var(--accent); }
.device-panel { padding: clamp(16px, 2.4vw, 27px); border-radius: 18px; background: var(--panel); border: 1px solid #567365; min-width: 0; }
.device-panel header { display: flex; justify-content: space-between; gap: 8px; align-items: end; }
.device-panel h2 { font-size: 25px; }
.device-panel header p, .device-panel small { color: #d0e3d6; font-size: 13px; }
.device-panel ul { padding: 0; margin: 17px 0; list-style: none; }
.device-panel li {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center;
  gap: 9px; border-top: 1px solid #4c6d5c; padding: 11px 0;
}
.device-panel small { display: block; }
.device-marker { background: #335647; color: #eaf7ee; border-radius: 6px; padding: 5px; font-size: 12px; font-weight: 700; }
.state { display: inline-block; color: #4e5e55; background: #ecf0ed; border-radius: 6px; padding: 4px 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.state.on { color: #195b3e; background: #d8f1e1; }
.page-head { padding: 50px 0 27px; background: var(--paper); }
.page-head h1 { font-size: clamp(32px, 4.55vw, 60px); }
.section { padding: clamp(30px, 5vw, 52px) 0; }
.section.compact { padding-top: 22px; }
.pale { background: var(--pale); }
.section-title { margin-bottom: 19px; }
.section-title p { color: var(--muted); max-width: 70ch; margin-top: 9px; }
.grid, .split, .demo, .contact-grid { display: grid; gap: 14px; align-items: stretch; }
.g2, .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .panel { padding: 22px; border: 1px solid var(--line); background: var(--white); border-radius: 14px; min-width: 0; }
.card p, .panel p, .split p, .cta p { color: var(--muted); margin-top: 8px; }
.card a, .panel a:not(.btn) { display: inline-block; margin-top: 13px; font-weight: 650; }
.panel .btn { margin-top: 7px; }
.panel h2 { font-size: 26px; }
.result { padding-top: 9px; border-top: 1px solid var(--line); font-size: 14px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 23px; }
.cta h2 { font-size: 25px; }
.cta .actions { margin-top: 0; }
.steps { padding: 0; margin: 0; display: grid; list-style: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.steps li::before { content: counter(step); display: inline-block; background: var(--pale); color: var(--brand); padding: 1px 8px; margin: 0 7px 0 0; border-radius: 6px; font-weight: 800; }
.steps li p { margin-top: 8px; color: var(--muted); }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 13px 17px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.faq p { margin-top: 9px; }
.contact-grid { grid-template-columns: 1fr 1fr; }
.demo { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); padding: clamp(19px, 4vw, 32px); border: 1px solid var(--line); background: var(--white); border-radius: 18px; gap: 25px; }
.demo-device, .demo-output { min-width: 0; }
.demo-device-header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin: 17px 0 11px; }
.demo-device-header h2 { font-size: 25px; }
.demo-output { background: var(--pale); border-radius: 12px; padding: clamp(15px, 3vw, 22px); }
.demo-output h2 { font-size: 22px; }
.demo select { margin-top: 5px; }
.demo-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 13px 0; border-block: 1px solid var(--line); gap: 11px; }
.demo-facts dt { color: var(--muted); font-size: 13px; }
.demo-facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.demo-device .help { color: var(--muted); margin-top: 7px; }
.demo-actions .btn { max-width: 100%; text-align: start; }
.demo-actions .btn:disabled { cursor: default; }
.demo-result { margin-top: 12px; min-height: 2.9em; font-weight: 600; color: var(--muted); }
.demo-result[data-state="done"] { color: var(--brand); }
.demo-journal { list-style: none; margin: 10px 0 0; padding: 0; }
.demo-journal li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 9px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.demo-journal li:last-child { border-bottom: 0; }
.demo-journal time { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); padding-top: 2px; }
.install-panel ol { margin: 12px 0 16px; padding-left: 1.25em; }
.install-panel li + li { margin-top: 8px; }
.install-panel p a:not(.btn) { margin: 0; }
.contact-aside { display: grid; gap: 12px; align-content: start; }
select { width: 100%; border: 1px solid #9cb1a4; border-radius: 7px; color: var(--ink); background: var(--white); padding: 9px 11px; font: inherit; min-width: 0; }
.help, .form-message { font-size: 14px; }
.footer { border-top: 1px solid var(--line); padding: 22px 0; background: var(--white); color: var(--muted); font-size: 14px; }
.footer-row { align-items: start; flex-wrap: wrap; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer p { margin-top: 4px; }
.nowrap { white-space: nowrap; }
@media (max-width: 970px) {
  .header-row { flex-wrap: wrap; padding: 12px 0; gap: 6px 12px; }
  .header .nav { order: 3; width: 100%; }
  .nav a { padding-left: 0; padding-right: 0; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .hero-grid, .g3, .g2, .demo, .contact-grid, .split, .steps { grid-template-columns: 1fr; }
  .hero h1 { max-width: 22ch; }
  .header-actions { gap: 6px; }
  .header-actions .btn { min-height: 37px; padding: 7px 10px; }
  .page-head { padding-top: 33px; }
}
@media (max-width: 400px) {
  .hero-grid { gap: 19px; }
  .card, .panel { padding: 16px; }
  .device-panel strong { font-size: 14px; }
  .nav { gap: 4px 10px; }
}

.offers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.offer { display: flex; flex-direction: column; align-items: start; gap: 7px; }
.offer h2 { font-size: 22px; }
.offer .btn { margin-top: auto; }
.offer p + .btn { margin-top: 12px; }
.demo label { font-weight: 660; }
