/**
 * Steel service responsive rules.
 */

@media (max-width: 820px) {
  .ai-rfi-layout {
    grid-template-columns: 1fr;
  }

  .ai-rfi-panel {
    grid-template-columns: 1fr;
  }

  .ai-rfi-process {
    padding: 32px;
  }

  .ai-zone-diagram {
    display: none;
  }

  .ai-zone-mobile {
    display: block;
  }

  .ai-zone-mobile ol {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .ai-zone-mobile li {
    background: var(--ai-color-white);
    border: 1px solid var(--ai-line);
    border-left: 4px solid var(--ai-blue);
    border-radius: 12px;
    margin-bottom: 32px;
    padding: 18px 20px;
    position: relative;
  }

  .ai-zone-mobile li:not(:last-child)::after {
    background: #72b62b;
    bottom: -24px;
    content: "";
    height: 16px;
    left: 24px;
    position: absolute;
    width: 2px;
  }

  .ai-zone-mobile li:not(:last-child)::before {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #72b62b;
    bottom: -28px;
    content: "";
    left: 20px;
    position: absolute;
  }

  .ai-zone-mobile li span {
    color: var(--ai-blue);
    display: block;
    font-size: var(--ai-type-body-size);
    font-weight: 600;
    margin-bottom: 7px;
  }

  .ai-zone-mobile li strong {
    display: block;
    font-size: var(--ai-type-body-size);
    line-height: 1.4;
  }

  .ai-zone-mobile li small {
    border-top: 1px dashed rgba(220,44,54,.45);
    color: var(--ai-muted);
    display: block;
    font-size: var(--ai-type-small-size);
    line-height: 1.5;
    margin-top: 10px;
    padding-top: 9px;
  }

  .ai-zone-mobile li.is-approval {
    background: var(--ai-blue);
    border-color: var(--ai-blue);
    color: var(--ai-color-white);
  }

  .ai-zone-mobile li.is-approval span {
    color: var(--ai-color-accent-inverse-soft);
  }

  .ai-zone-mobile__parallel {
    background: #f3f6ed;
    border-left: 3px solid #72b62b;
    border-radius: 8px;
    padding: 16px 18px;
  }

  .ai-zone-mobile__parallel strong {
    display: block;
    font-size: var(--ai-type-label-size);
  }

  .ai-zone-mobile__parallel p {
    color: var(--ai-muted);
    font-size: var(--ai-type-body-size);
    line-height: 1.55;
    margin: 5px 0 0;
  }

  .ai-zone-seo-summary > div {
    grid-template-columns: 1fr;
  }

  .ai-zone-flow {
    padding: 26px;
  }

  .ai-zone-flow__row,
  .ai-zone-flow__row--split {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .ai-zone-flow__row:not(:last-child)::after,
  .ai-zone-flow__row--split::after {
    left: 22px;
  }

  .ai-zone-flow__row:not(:last-child)::before,
  .ai-zone-flow__row--split::before {
    left: 18px;
  }

  .ai-zone-check {
    margin-left: 20px;
  }
}

@media (max-width: 560px) {
  .ai-rfi-visual {
    min-height: 330px;
  }

  .ai-rfi-panel .ai-rfi-carousel {
    padding: 14px 14px 12px;
  }

  .ai-rfi-panel .ai-rfi-carousel__track,
  .ai-rfi-panel .ai-rfi-visual {
    min-height: 260px;
  }

  .ai-rfi-process {
    padding: 28px 22px;
  }

  .ai-rfi-process h3 {
    font-size: 25px;
  }

  .ai-zone-flow {
    border-radius: 18px;
    padding: 18px;
  }

  .ai-zone-stage {
    padding: 17px 18px;
  }

  .ai-zone-stage h3 {
    font-size: 15px;
  }

  .ai-service--steel .ai-section--cad {
    background: #f5f7fa;
    padding: 54px 0 58px;
  }

  .ai-service--steel .ai-section--cad::before {
    display: none;
  }

  .ai-service--steel .ai-section--cad .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ai-service--steel .ai-intro-grid {
    gap: 22px;
  }

  .ai-service--steel .ai-section--cad .ai-section-heading h2 {
    font-size: 32px;
    line-height: 1.08;
    margin: 7px 0 13px;
  }

  .ai-service--steel .ai-section--cad .ai-section-heading > p:last-child {
    font-size: var(--ai-type-body-size);
    line-height: 1.65;
  }

  .ai-service--steel .ai-prose {
    background: var(--ai-color-white);
    border: 1px solid #dfe3eb;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(31,40,86,.07);
    padding: 20px;
  }

  .ai-service--steel .ai-prose p {
    font-size: var(--ai-type-body-size);
    line-height: 1.72;
    margin-bottom: 13px;
  }

  .ai-service--steel .ai-procedure-layout {
    gap: 17px;
    margin-top: 28px;
    padding-right: 0;
  }

  .ai-service--steel .ai-procedure-visual {
    border-radius: 18px;
    height: 248px;
    min-height: 248px;
    margin-right: 20px;
  }

  .ai-service--steel .ai-procedure-visual figcaption {
    padding: 64px 20px 18px;
  }

  .ai-service--steel .ai-procedure-visual figcaption strong {
    font-size: 16px;
  }

  .ai-service--steel .ai-procedure-mobile-guide {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding-right: 20px;
  }

  .ai-service--steel .ai-procedure-mobile-guide span {
    color: var(--ai-muted);
    font-size: var(--ai-type-label-size);
    font-weight: 600;
  }

  .ai-service--steel .ai-procedure-mobile-guide strong {
    color: var(--ai-blue);
    font-size: var(--ai-type-label-size);
    font-weight: 600;
  }

  .ai-service--steel .ai-procedure-mobile-guide b {
    font-size: 17px;
    margin-left: 5px;
  }

  .ai-service--steel .ai-procedure-grid {
    display: flex;
    gap: 12px;
    margin: 0;
    overflow-x: auto;
    padding: 2px 20px 14px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .ai-service--steel .ai-procedure-grid::-webkit-scrollbar {
    display: none;
  }

  .ai-service--steel .ai-tech-card {
    border-radius: 17px;
    flex: 0 0 84%;
    min-height: 205px;
    padding: 22px;
    scroll-snap-align: start;
  }

  .ai-service--steel .ai-tech-card:hover {
    box-shadow: none;
    transform: none;
  }

  .ai-service--steel .ai-tech-card .ai-step-code {
    align-items: center;
    background: #edf0ff;
    border-radius: 99px;
    color: var(--ai-blue);
    display: inline-flex;
    font-size: var(--ai-type-label-size);
    font-weight: 700;
    height: 28px;
    justify-content: center;
    margin-bottom: 24px;
    width: 38px;
  }

  .ai-service--steel .ai-tech-card .ai-icon {
    background: #f4f6fa;
    border-radius: 10px;
    height: 38px;
    margin: 0 0 18px;
    padding: 9px;
    width: 38px;
  }

  .ai-service--steel .ai-tech-card h3 {
    font-size: 18px;
    margin: 0 0 9px;
  }

  .ai-service--steel .ai-tech-card p {
    font-size: var(--ai-type-body-size);
    line-height: 1.58;
  }

  .ai-service--steel .ai-software-strip {
    gap: 9px;
    margin-top: 22px;
    padding: 20px;
  }

  .ai-service--steel .ai-software-strip span {
    margin: 0 0 4px;
    width: 100%;
  }

  .ai-service--steel .ai-software-strip strong {
    background: rgba(255,255,255,.08);
    border: 0;
    border-radius: 10px;
    padding: 11px 13px;
    width: 100%;
  }

  .ai-service--steel .ai-workflow .ai-section-heading h2 {
    font-size: 32px;
  }

  .ai-service--steel .ai-workflow .ai-section-heading > p:last-child {
    font-size: var(--ai-type-body-size);
    line-height: 1.65;
  }

  .ai-service--steel .ai-zone-mobile {
    background: linear-gradient(180deg,#f8f9fc 0%,#eef1f6 100%);
    border: 1px solid #dfe3eb;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(31,40,86,.08);
    margin-top: 28px;
    padding: 16px;
  }

  .ai-service--steel .ai-zone-mobile__key {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }

  .ai-service--steel .ai-zone-mobile__key span {
    align-items: center;
    background: var(--ai-color-white);
    border: 1px solid #dde2ea;
    border-radius: 99px;
    color: var(--ai-muted);
    display: inline-flex;
    font-size: var(--ai-type-label-size);
    font-weight: 700;
    gap: 7px;
    padding: 7px 10px;
  }

  .ai-service--steel .ai-zone-mobile__key span::before {
    border-radius: 50%;
    content: "";
    height: 7px;
    width: 7px;
  }

  .ai-service--steel .ai-zone-mobile__key .is-correct::before {
    background: #5f9f35;
  }

  .ai-service--steel .ai-zone-mobile__key .is-rework::before {
    background: #c7444d;
  }

  .ai-service--steel .ai-zone-mobile ol {
    position: relative;
  }

  .ai-service--steel .ai-zone-mobile li {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 7px 18px rgba(27,38,78,.075);
    margin-bottom: 20px;
    padding: 18px;
  }

  .ai-service--steel .ai-zone-mobile li:not(:last-child)::after {
    background: #5f9f35;
    bottom: -15px;
    height: 11px;
    left: 27px;
    width: 2px;
  }

  .ai-service--steel .ai-zone-mobile li:not(:last-child)::before {
    border-left-width: 4px;
    border-right-width: 4px;
    border-top-color: #5f9f35;
    border-top-width: 6px;
    bottom: -19px;
    left: 24px;
  }

  .ai-service--steel .ai-zone-mobile li > span {
    background: #eef0ff;
    border-radius: 99px;
    color: var(--ai-blue);
    display: inline-flex;
    font-size: var(--ai-type-body-size);
    letter-spacing: .02em;
    margin-bottom: 11px;
    padding: 6px 9px;
  }

  .ai-service--steel .ai-zone-mobile li > strong {
    font-size: var(--ai-type-body-size);
    line-height: 1.48;
  }

  .ai-service--steel .ai-zone-mobile li > small {
    background: #fff5f5;
    border: 0;
    border-left: 3px solid #c7444d;
    border-radius: 8px;
    color: #82404a;
    font-size: var(--ai-type-small-size);
    line-height: 1.55;
    margin: 13px 0 0;
    padding: 10px 11px;
  }

  .ai-service--steel .ai-zone-mobile li > small::before {
    color: #ad3540;
    content: "Quality check / return path";
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 3px;
    text-transform: uppercase;
  }

  .ai-service--steel .ai-zone-mobile li.is-split {
    padding-bottom: 16px;
  }

  .ai-service--steel .ai-zone-mobile__branches {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
  }

  .ai-service--steel .ai-zone-mobile__branches article {
    background: #f4f6fa;
    border: 1px solid #e0e4eb;
    border-radius: 11px;
    padding: 12px;
  }

  .ai-service--steel .ai-zone-mobile__branches b {
    color: #5f9f35;
    display: block;
    font-size: var(--ai-type-label-size);
    margin-bottom: 7px;
  }

  .ai-service--steel .ai-zone-mobile__branches strong {
    display: block;
    font-size: var(--ai-type-label-size);
    line-height: 1.45;
  }

  .ai-service--steel .ai-zone-mobile li.is-approval {
    background: linear-gradient(135deg,var(--ai-blue),#3d3490);
    box-shadow: 0 12px 24px rgba(40,49,126,.2);
  }

  .ai-service--steel .ai-zone-mobile li.is-approval > span {
    background: rgba(255,255,255,.12);
    color: #dfe2ff;
  }

  .ai-service--steel .ai-zone-mobile li.is-approval > strong {
    font-size: var(--ai-type-body-size);
  }

  .ai-service--steel .ai-zone-mobile__parallel {
    background: #f1f6eb;
    border: 1px solid #d5e4c8;
    border-left: 0;
    border-radius: 14px;
    margin-top: 3px;
    padding: 16px;
  }

  .ai-service--steel .ai-zone-mobile__parallel strong {
    color: #3e7020;
    font-size: var(--ai-type-label-size);
  }

  .ai-service--steel .ai-zone-mobile__parallel p {
    font-size: var(--ai-type-body-size);
    line-height: 1.6;
    margin-top: 6px;
  }

  .ai-service--steel .ai-zone-mobile + .ai-workflow__legend {
    display: none;
  }

  .ai-service--steel .ai-zone-seo-summary {
    margin-top: 30px;
    padding-top: 26px;
  }

  .ai-service--steel .ai-zone-seo-summary h3 {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .ai-service--steel .ai-zone-seo-summary > div {
    gap: 10px;
  }

  .ai-service--steel .ai-zone-seo-summary > div p {
    background: var(--ai-color-white);
    border: 1px solid #e1e5ec;
    border-radius: 12px;
    font-size: var(--ai-type-body-size);
    line-height: 1.58;
    padding: 15px;
  }

  .ai-service--steel .ai-zone-seo-summary .ai-workflow__seo-note {
    font-size: var(--ai-type-label-size);
    line-height: 1.65;
    margin-top: 15px;
    text-align: left;
  }
}

@media (max-width: 360px) {
  .ai-service--steel .ai-zone-mobile__branches {
    grid-template-columns: 1fr;
  }

  .ai-service--steel .ai-zone-mobile__branches article {
    padding: 11px 12px;
  }
}
