:root {
  color-scheme: light;
  --ink: #14231d;
  --muted: #65736d;
  --line: #dce6e1;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --blue: #558bc8;
  --blue-dark: #3f72ad;
  --blue-soft: #e8f1fb;
  --shadow: 0 18px 60px rgba(20, 35, 29, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #f5f8fc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a { font: inherit; }

.demo-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.demo-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand__ru { color: var(--blue); }

.environment-badge,
.preview-pill,
.product-card__id {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.environment-badge { padding: 8px 12px; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: 50px;
  align-items: center;
  min-height: 520px;
  padding: 70px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 24%, rgba(190, 216, 246, 0.82), transparent 25%),
    linear-gradient(135deg, #e9f2fc 0%, #f7faff 65%, #edf5fd 100%);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -110px;
  bottom: -160px;
  border: 45px solid rgba(85, 139, 200, 0.1);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button,
.buy-button,
.map-demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover,
.buy-button:hover,
.map-demo-button:hover { transform: translateY(-2px); }

.button:focus-visible,
.buy-button:focus-visible,
.map-demo-button:focus-visible { outline: 3px solid rgba(85, 139, 200, 0.32); outline-offset: 3px; }

.button { min-height: 52px; padding: 0 20px; }
.button--primary { color: white; background: var(--blue); box-shadow: 0 12px 24px rgba(85, 139, 200, 0.2); }
.button--primary:hover { background: var(--blue-dark); }
.buy-button { color: white; background: var(--blue); box-shadow: 0 12px 24px rgba(85, 139, 200, 0.2); }
.buy-button:hover { background: var(--blue-dark); }
.buy-button:focus-visible { outline-color: rgba(85, 139, 200, 0.32); }
.button--ghost { color: var(--ink); background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(20, 35, 29, 0.08); }
.button--dark { color: white; background: var(--ink); white-space: nowrap; }

.hero__preview {
  position: relative;
  z-index: 1;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(16px);
  box-shadow: 0 26px 60px rgba(20, 35, 29, 0.12);
}

.preview-pill { display: inline-block; padding: 7px 10px; }
.preview-steps { display: grid; gap: 14px; margin: 28px 0; padding: 0; list-style: none; }
.preview-steps li { display: flex; align-items: center; gap: 12px; font-weight: 720; }
.preview-steps span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--blue-dark); background: var(--blue-soft); border-radius: 11px; }
.hero__preview p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.scenario-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 28px 0 92px;
  padding: 32px 38px;
  border-radius: 24px;
  color: white;
  background: var(--ink);
}

.scenario-note .eyebrow { color: #bcd6f3; }
.scenario-note h2 { font-size: 30px; }
.scenario-note p:last-child { max-width: 650px; margin-bottom: 0; color: #b8c6c0; line-height: 1.5; }
.scenario-note .button { color: white; background: var(--blue); }

.catalog { scroll-margin-top: 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.section-heading > p { max-width: 320px; margin-bottom: 5px; color: var(--muted); text-align: right; line-height: 1.5; }

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(20, 35, 29, 0.035);
}

.product-card__image-link {
  display: grid;
  place-items: center;
  height: 205px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: var(--surface-soft);
}

.product-card__image { max-width: 80%; max-height: 170px; object-fit: contain; mix-blend-mode: multiply; }
.product-card__meta { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; }
.product-card__id { padding: 5px 8px; }
.product-card__title { color: var(--ink); font-weight: 720; line-height: 1.38; text-decoration: none; }
.product-card__title:hover { color: var(--blue-dark); }
.product-card__footer { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: 24px; }
.product-card__price { display: flex; flex-direction: column; }
.product-card__price strong { font-size: 22px; letter-spacing: -0.035em; }
.product-card__price del { color: #99a69f; font-size: 13px; }
.buy-button { min-width: 112px; min-height: 44px; padding: 0 16px; }
.product-card__actions { display: grid; gap: 7px; min-width: 132px; }
.map-demo-button { min-height: 38px; padding: 0 12px; border: 1px solid var(--blue); color: var(--blue-dark); background: white; font-size: 11px; }
.map-demo-button:hover { color: white; background: var(--blue-dark); }
.map-demo-button:focus-visible { outline-color: rgba(85, 139, 200, 0.32); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 80px 0 34px; color: var(--muted); font-size: 13px; }
footer p { margin: 0; }
footer a { color: var(--blue-dark); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 50px; }
  .hero__preview { max-width: 520px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .demo-header, main, footer { width: min(100% - 24px, 1180px); }
  .environment-badge { display: none; }
  .hero { min-height: auto; padding: 38px 24px; border-radius: 24px; }
  h1 { font-size: 43px; }
  .hero__actions, .hero__actions .button { width: 100%; }
  .scenario-note, .section-heading, footer { align-items: stretch; flex-direction: column; }
  .scenario-note { margin-bottom: 64px; padding: 26px; }
  .section-heading > p { text-align: left; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 390px; }
}
