/* Инфографика SEO-карты (изоляция через #viz, чтобы не конфликтовать с layout.css). */
:root {
  --viz-black: #080808;
  --viz-yellow: #f4be00;
  --viz-yellow-2: #ffd21a;
  --viz-white: #ffffff;
  --viz-line: #d8d8d8;
  --viz-text: #171717;
  --viz-muted: #565656;
  --viz-container: 1880px;
}

#viz {
  color: var(--viz-text);
}

#viz a.url,
#viz a.side-url {
  color: inherit;
  text-underline-offset: 2px;
}

#viz a.url:hover,
#viz a.side-url:hover {
  color: #000;
}

#viz .page {
  position: relative;
  min-height: 100vh;
  padding: 18px 18px 70px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.045) 0 1px, transparent 1px 34px),
    #fff;
  overflow-x: hidden;
}

#viz .page::before,
#viz .page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.14;
  z-index: 0;
}

#viz .page::before {
  left: -40px;
  top: 40px;
  width: 470px;
  height: 360px;
  background:
    linear-gradient(90deg, transparent 42%, #111 42% 45%, transparent 45%),
    linear-gradient(25deg, transparent 43%, #111 43% 45%, transparent 45%),
    linear-gradient(-25deg, transparent 43%, #111 43% 45%, transparent 45%);
  clip-path: polygon(
    8% 0,
    42% 0,
    42% 12%,
    82% 12%,
    82% 20%,
    47% 20%,
    47% 100%,
    35% 100%,
    35% 20%,
    8% 20%
  );
}

#viz .page::after {
  right: -20px;
  top: 80px;
  width: 470px;
  height: 270px;
  border: 3px solid #111;
  border-left-width: 12px;
  border-bottom-width: 16px;
  transform: skewX(-12deg);
}

#viz .container {
  width: min(var(--viz-container), 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#viz .header {
  text-align: center;
  margin-bottom: 22px;
}

#viz .title {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.8vw, 76px);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 950;
  color: #090909;
}

#viz .subtitle {
  margin: 0 auto;
  max-width: 1060px;
  font-size: clamp(18px, 1.7vw, 28px);
  line-height: 1.35;
  color: #3a3a3a;
}

#viz .semantic-bar {
  width: min(1140px, 100%);
  margin: 26px auto 14px;
  min-height: 70px;
  border: 2px solid var(--viz-yellow);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 12px 28px;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

#viz .semantic-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--viz-yellow-2), var(--viz-yellow));
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08);
}

#viz .semantic-icon span {
  width: 34px;
  height: 30px;
  display: block;
  background:
    linear-gradient(to top, #111 0 100%) 0 18px / 7px 12px no-repeat,
    linear-gradient(to top, #111 0 100%) 13px 11px / 7px 19px no-repeat,
    linear-gradient(to top, #111 0 100%) 26px 4px / 7px 26px no-repeat;
}

#viz .yellow {
  color: var(--viz-yellow);
}

#viz .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--viz-yellow);
  flex: 0 0 auto;
}

#viz .home-node {
  width: min(360px, 100%);
  min-height: 112px;
  margin: 0 auto 30px;
  background: var(--viz-black);
  color: var(--viz-white);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  padding: 18px 24px;
  position: relative;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

#viz .home-node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 34px;
  background: var(--viz-black);
}

#viz .home-node a {
  color: var(--viz-white);
  text-decoration: none;
}

#viz .home-icon {
  width: 62px;
  height: 62px;
  border: 5px solid var(--viz-yellow);
  border-bottom: 0;
  transform: rotate(45deg);
  position: relative;
  margin-left: 10px;
}

#viz .home-icon::before {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  left: 14px;
  top: 18px;
  border-left: 5px solid var(--viz-yellow);
  border-top: 5px solid var(--viz-yellow);
  transform: rotate(-45deg);
}

#viz .home-node strong {
  display: block;
  font-size: 31px;
  line-height: 1;
  text-align: center;
}

#viz .home-url {
  margin: 12px auto 0;
  width: min(170px, 100%);
  min-height: 32px;
  border-radius: 6px;
  background: var(--viz-yellow);
  color: #111;
  font-size: 18px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

#viz .structure {
  display: grid;
  grid-template-columns: 1.85fr 0.78fr 1fr;
  gap: 30px;
  align-items: start;
  position: relative;
}

#viz .structure::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 31%;
  top: -30px;
  height: 2px;
  background: var(--viz-black);
  z-index: -1;
}

#viz .box-title {
  min-height: 62px;
  background: var(--viz-black);
  color: var(--viz-white);
  border-radius: 7px 7px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 22px;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.02em;
}

#viz .box-title small {
  font-size: 20px;
  opacity: 0.9;
}

#viz .title-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  position: relative;
}

#viz .title-icon.crane::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 4px;
  width: 6px;
  height: 36px;
  background: var(--viz-yellow);
}

#viz .title-icon.crane::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 38px;
  height: 6px;
  background: var(--viz-yellow);
  box-shadow: 29px 8px 0 -2px var(--viz-yellow);
}

#viz .title-icon.doc {
  border: 4px solid var(--viz-yellow);
  border-radius: 3px;
}

#viz .title-icon.doc::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 12px;
  height: 4px;
  background: var(--viz-yellow);
  box-shadow: 0 10px 0 var(--viz-yellow);
}

#viz .title-icon.book {
  border: 4px solid var(--viz-yellow);
  border-radius: 3px;
  border-left-width: 8px;
  transform: skewY(3deg);
}

#viz .title-icon.book::after {
  content: "";
  position: absolute;
  left: 16px;
  top: -4px;
  bottom: -4px;
  width: 4px;
  background: var(--viz-yellow);
}

#viz .services-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.92fr 1.05fr;
  gap: 10px;
  margin-top: 14px;
}

#viz .service-column,
#viz .side-list .side-item {
  border-radius: 7px;
}

#viz .service-column,
#viz .blog-card {
  border: 1px solid var(--viz-line);
  background: rgba(255, 255, 255, 0.92);
}

#viz .service-head {
  min-height: 36px;
  background: linear-gradient(180deg, var(--viz-yellow-2), var(--viz-yellow));
  border-radius: 7px 7px 0 0;
  display: grid;
  place-items: center;
  padding: 7px 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

#viz .service-list {
  margin: 0;
  padding: 10px 12px 16px;
  list-style: none;
  display: grid;
  gap: 13px;
}

#viz .service-item {
  display: grid;
  grid-template-columns: 27px 1fr auto;
  gap: 10px;
  align-items: start;
  min-height: 54px;
}

#viz .num {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--viz-black);
  color: var(--viz-white);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
}

#viz .service-name {
  display: block;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.12;
}

#viz .url {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  color: #111;
  word-break: break-word;
}

#viz .freq {
  align-self: center;
  height: 26px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--viz-yellow);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  white-space: nowrap;
  font-size: 14px;
}

#viz .side-list {
  margin-top: 14px;
  padding: 10px 14px;
  display: grid;
  gap: 10px;
}

#viz .side-item {
  min-height: 76px;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--viz-line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
}

#viz .line-icon {
  width: 52px;
  height: 52px;
  position: relative;
  margin: auto;
}

#viz .line-icon.user::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 4px;
  width: 20px;
  height: 20px;
  border: 4px solid #111;
  border-radius: 50%;
}

#viz .line-icon.user::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 31px;
  width: 40px;
  height: 20px;
  border: 4px solid #111;
  border-radius: 30px 30px 0 0;
  border-bottom: 0;
}

#viz .line-icon.hand::before {
  content: "";
  position: absolute;
  inset: 12px 2px 16px 2px;
  border: 5px solid #111;
  border-radius: 18px;
  transform: rotate(-24deg);
}

#viz .line-icon.cert::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 34px;
  height: 42px;
  border: 4px solid #111;
  border-radius: 3px;
}

#viz .line-icon.cert::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border: 4px solid #111;
  border-radius: 50%;
  background: #fff;
}

#viz .line-icon.pin::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 4px;
  width: 28px;
  height: 28px;
  border: 4px solid #111;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

#viz .line-icon.calc::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 36px;
  height: 44px;
  border: 4px solid #111;
  border-radius: 3px;
  background:
    linear-gradient(#111, #111) 8px 10px / 20px 4px no-repeat,
    radial-gradient(circle, #111 2px, transparent 3px) 8px 24px / 10px 10px repeat;
}

#viz .side-name {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.12;
}

#viz .side-url {
  margin-top: 6px;
  font-size: 18px;
  color: #111;
}

#viz .support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 14px;
}

#viz .blog-card {
  min-height: 95px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 16px;
}

#viz .line-icon.pencil::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 11px;
  width: 32px;
  height: 12px;
  border: 4px solid #111;
  transform: rotate(-45deg);
}

#viz .blog-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: start;
  font-size: 20px;
  font-weight: 900;
}

#viz .blog-title span:last-child {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.28;
}

#viz .note-card,
#viz .template-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--viz-yellow);
  border-radius: 7px;
  padding: 14px 18px 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

#viz .note-title,
#viz .template-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
}

#viz .badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--viz-black);
  color: var(--viz-white);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

#viz .note-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  font-size: 17px;
  line-height: 1.25;
}

#viz .note-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
}

#viz .note-list b {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--viz-yellow);
  display: grid;
  place-items: center;
  font-size: 14px;
}

#viz .template-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

#viz .flow-item {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.05;
}

#viz .flow-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border: 4px solid #111;
  border-radius: 5px;
  position: relative;
}

#viz .flow-ico.light {
  border-radius: 50%;
}

#viz .flow-ico.light::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 10px;
  width: 14px;
  height: 22px;
  border-radius: 14px 14px 4px 4px;
  background: #111;
}

#viz .flow-ico.rub {
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

#viz .flow-ico.steps {
  border: 0;
  background:
    linear-gradient(#111, #111) 4px 38px / 44px 5px no-repeat,
    linear-gradient(#111, #111) 14px 27px / 34px 5px no-repeat,
    linear-gradient(#111, #111) 24px 16px / 24px 5px no-repeat,
    linear-gradient(#111, #111) 34px 5px / 14px 5px no-repeat;
}

#viz .arrow {
  font-size: 33px;
  font-weight: 900;
  text-align: center;
}

#viz .bottom-drawing {
  position: absolute;
  inset: auto 0 0 0;
  height: 64px;
  background: repeating-linear-gradient(135deg, #111 0 16px, var(--viz-yellow) 16px 32px);
  z-index: 2;
}

#viz .building-sketch {
  position: absolute;
  left: 44%;
  bottom: 64px;
  width: min(680px, 94vw);
  height: 150px;
  border-bottom: 4px solid #d69c00;
  opacity: 0.78;
  pointer-events: none;
}

#viz .building-sketch::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  border: 4px solid #d69c00;
  border-bottom: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 58px, #d69c00 58px 62px),
    repeating-linear-gradient(
      0deg,
      transparent 0 36px,
      rgba(214, 156, 0, 0.65) 36px 39px
    );
  transform: skewY(-3deg);
}

#viz .building-sketch::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 27px;
  width: min(640px, 94vw);
  height: 70px;
  border-top: 5px solid #d69c00;
  transform: skewY(-5deg);
}

@media (max-width: 1400px) {
  #viz .structure {
    grid-template-columns: 1fr;
  }

  #viz .structure::before,
  #viz .home-node::after,
  #viz .building-sketch {
    display: none;
  }

  #viz .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #viz .support-grid {
    grid-template-columns: 1fr 1fr;
  }

  #viz .template-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  #viz .semantic-bar {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 18px;
  }

  #viz .services-grid,
  #viz .support-grid {
    grid-template-columns: 1fr;
  }

  #viz .template-flow {
    grid-template-columns: 1fr;
  }

  #viz .arrow {
    transform: rotate(90deg);
  }

  #viz .blog-title {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  #viz .page {
    padding: 14px 10px 60px;
  }

  #viz .box-title {
    font-size: 21px;
  }

  #viz .service-item {
    grid-template-columns: 27px 1fr;
  }

  #viz .freq {
    grid-column: 2;
    justify-self: start;
  }

  #viz .side-item,
  #viz .blog-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
