:root {
  --navy: #132361;
  --navy-deep: #0f1b45;
  --blue: #1f5bff;
  --accent: #f85900;
  --accent-hover: #d94c00;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-page: #ffffff;
  --bg-section: #f5f7fb;
  --bg-section-soft: #fafbfe;
  --text: #111111;
  --text-primary: #111111;
  --text-muted: #666666;
  --border: #e6eaf3;
  --shadow-soft: 0 8px 24px rgba(19, 35, 97, 0.08);
  --btn-primary: #f85900;
  --btn-primary-hover: #d94c00;
  --header-h: 70px;
  --max: 1160px;
  --max-width: 1160px;
  --font: "Manrope", system-ui, sans-serif;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}
.narrow { max-width: 760px; }
#main { flex: 1; }

/* Header like Tilda */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--navy);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 24px rgba(19, 35, 97, .18);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}
.logo:hover { color: var(--accent-hover); }
.nav-main {
  margin-left: auto;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-main a {
  color: rgba(255,255,255,.92);
  font-size: .92rem;
  font-weight: 500;
}
.nav-main a:hover { color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars {
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.site-header.is-nav-open .nav-toggle__bars { background: transparent; }
.site-header.is-nav-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}
.site-header.is-nav-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.btn,
.btn-nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.2rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  border: 0;
  letter-spacing: .02em;
}
.btn:hover,
.btn-nav-download:hover {
  background: var(--accent-hover);
  color: #fff !important;
}
.btn--accent { background: var(--accent); }
body.nav-lock { overflow: hidden; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.78);
  padding: 1.6rem 0;
}
.footer-copy { margin: 0; font-size: .88rem; }
.footer-copy a { color: #fff; }

/* Hero: light bg, image LEFT, text RIGHT — как на Tilda */
.hero {
  background: var(--bg-soft);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  font-weight: 800;
  color: #111;
}
.hero__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}
.hero__list li {
  position: relative;
  padding-left: 1.15rem;
  color: #222;
  font-size: 1.02rem;
}
.hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #111;
}
.hero__list li.is-strong {
  font-weight: 800;
}
.hero__media img {
  width: 100%;
}

/* Prevention with icons */
.prevention {
  background: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.prevention__title {
  margin: 0 0 .45rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: #111;
  font-weight: 800;
}
.prevention__sub {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.prevention__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.prevention__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.prevention__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  margin: 0 0 1rem;
}
.prevention__item figcaption {
  font-weight: 700;
  color: #111;
  font-size: .98rem;
  line-height: 1.35;
  width: 100%;
}

/* Sections */
.section { padding: 4rem 0; }
.section--navy {
  background: var(--navy);
  color: #fff;
}
.section-heading {
  margin: 0 0 2rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  color: #111;
  text-align: center;
  font-weight: 800;
}
.section-heading--light { color: #fff; }
.section-heading--left { text-align: left; color: var(--navy); }

/* Cases */
.cases {
  display: grid;
  gap: 1.5rem;
}
.case {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.case__img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}
.case__body {
  padding: 1.4rem 1.4rem 1.4rem 0;
  background: #fff;
  position: relative;
  z-index: 1;
}
.case__title {
  margin: 0 0 .5rem;
  color: var(--accent);
  font-size: 1.25rem;
}
.case__lead {
  margin: 0 0 .6rem;
  font-weight: 700;
  color: var(--navy);
}
.case__text {
  margin: 0;
  color: var(--text-muted);
}

/* Showcase */
.showcase {
  padding: 3.5rem 0 4rem;
  background: var(--bg-soft);
  text-align: center;
}
.showcase__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  color: #111;
  font-weight: 800;
}
.showcase__img {
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(19,35,97,.14);
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.product {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}
.product__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  background: #fff;
}
.product__subtitle {
  margin: 0 0 .25rem;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product__title {
  margin: 0 0 .6rem;
  font-size: 1.2rem;
}
.product__text {
  margin: 0 0 .8rem;
  color: rgba(255,255,255,.85);
}
.product__list {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: rgba(255,255,255,.8);
  flex: 1;
}
.product .btn { align-self: flex-start; }

/* ——— /wdc page ——— */
.wdc-hero {
  background: var(--bg-soft);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
.wdc-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2.2rem;
  align-items: center;
}
.wdc-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  color: #111;
  font-weight: 800;
}
.wdc-hero__text {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.wdc-hero__media img {
  width: 100%;
  border-radius: var(--radius);
}

.wdc-screens {
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.wdc-screens__img {
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(19,35,97,.14);
}
.wdc-screens__caption {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.wdc-features {
  padding: 2rem 0 4rem;
  background: #fff;
}
.wdc-features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
.wdc-feature {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}
.wdc-feature h3 {
  margin: 0 0 .7rem;
  color: var(--navy);
  font-size: 1.08rem;
}
.wdc-feature ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}
.wdc-feature li + li { margin-top: .4rem; }

.wdc-download {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0;
}
.wdc-download__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.wdc-download h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}
.wdc-download__req h3 {
  margin: 0 0 .7rem;
  font-size: 1.1rem;
}
.wdc-download__req p,
.wdc-download__req li {
  color: rgba(255,255,255,.88);
}
.wdc-download__req ul {
  margin: .4rem 0 1rem;
  padding-left: 1.1rem;
}
.wdc-download__note {
  margin: 0;
  opacity: .85;
  font-size: .95rem;
}
.btn--lg {
  padding: .9rem 1.5rem;
  font-size: 1.05rem;
}

@media (max-width: 960px) {
  .wdc-hero__grid,
  .wdc-features__grid,
  .wdc-download__inner { grid-template-columns: 1fr; }
  .wdc-hero__media { order: -1; }
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}
.about__text { color: var(--text-muted); margin: 0; }
.about__contact { margin-top: 1.1rem; }
.about__media img {
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(19,35,97,.12);
}

/* Inner pages */
.page { padding: 2.5rem 0 3rem; }
.page h1 { margin-top: 0; color: var(--navy); }
.lead { color: var(--text-muted); font-size: 1.1rem; }
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.content > * + * { margin-top: 1rem; }
.content img {
  border-radius: 8px;
  margin: 1.2rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(19,35,97,.05);
}
.blog-card__link { display: block; color: inherit; padding: 0 0 1rem; }
.blog-card__image {
  height: 160px;
  background: #d9e0f2 center/cover no-repeat;
}
.blog-card__image--empty { background: linear-gradient(135deg, #d9e0f2, #b7c4e6); }
.blog-card__title {
  margin: 1rem 1rem .4rem;
  font-size: 1.05rem;
  color: var(--navy);
}
.blog-card__descr {
  margin: 0 1rem .6rem;
  color: var(--text-muted);
  font-size: .92rem;
}
.blog-card time {
  display: block;
  margin: 0 1rem;
  color: var(--text-muted);
  font-size: .85rem;
}
.blog-post time {
  display: block;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

/* After install */
.after-install {
  padding: 2.75rem 0 3.5rem;
  background: linear-gradient(180deg, #f7f9fd 0%, #fff 42%);
}
.after-install__inner { max-width: 880px; }
.after-install__hero {
  text-align: center;
  margin-bottom: 2.25rem;
}
.after-install__hero h1 {
  margin: 0 0 .75rem;
  color: var(--navy);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.25;
}
.after-install__feedback {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.after-install__feedback a { font-weight: 700; }
.after-install__list {
  display: grid;
  gap: 1.25rem;
}
.after-install__card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
}
.after-install__media {
  background: var(--bg-soft);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.after-install__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.after-install__body h2 {
  margin: 0 0 .65rem;
  color: var(--navy);
  font-size: 1.2rem;
}
.after-install__text {
  color: var(--text);
  font-size: .98rem;
}
.after-install__text p { margin: 0 0 .45rem; }
.after-install__body ul {
  margin: .55rem 0 .75rem;
  padding-left: 1.15rem;
}
.after-install__body li { margin: .25rem 0; }
.after-install__note {
  margin: .5rem 0 .75rem;
  color: var(--text-muted);
  font-size: .95rem;
}
.after-install__more {
  margin: 0;
  font-weight: 700;
}
.after-install__more a { color: var(--accent); }
.after-install__more a:hover { color: var(--accent-hover); }

@media (max-width: 720px) {
  .after-install__card { grid-template-columns: 1fr; }
  .after-install__media { max-width: 280px; }
}

/* Help hub */
.docs-index { padding: 2.5rem 0 3rem; }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.docs-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 8px 24px rgba(19,35,97,.05);
}
.docs-card__title {
  margin: 0 0 .6rem;
  font-size: 1.2rem;
}
.docs-card__title a { color: var(--navy); }
.docs-card__descr { color: var(--text-muted); margin: 0 0 1rem; }

@media (max-width: 960px) {
  .hero__grid,
  .products,
  .about,
  .prevention__grid { grid-template-columns: 1fr; }
  .case {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .case__img {
    height: auto;
    min-height: 0;
    max-height: 220px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
  .case__body {
    padding: 1.15rem 1.2rem 1.35rem;
    background: #fff;
  }
  .nav-toggle { display: inline-flex; }
  .btn-nav-download {
    order: 2;
    padding: .55rem .9rem;
    font-size: .85rem;
    white-space: nowrap;
  }
  .nav-main {
    display: none;
    position: absolute;
    top: calc(100% - 8px);
    left: 12px;
    right: 12px;
    margin: 0;
    padding: .75rem;
    flex-direction: column;
    gap: 0;
    background: var(--navy-deep);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 27, 69, .35);
    z-index: 50;
  }
  .site-header.is-nav-open .nav-main { display: flex; }
  .nav-main a {
    display: block;
    padding: .85rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
  }
  .nav-main a:hover,
  .nav-main a:active {
    background: rgba(255,255,255,.08);
    color: #fff;
  }
  .site-header { overflow: visible; }
  .header-inner { position: relative; gap: 10px; }
  .hero__media { order: -1; }
}
