.qy-ports-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.qy-ports-hero__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(18, 99, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 99, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 74% 48%, #000000, transparent 62%);
  pointer-events: none;
}

.qy-ports-hero__inner {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 430px;
  align-items: center;
  gap: 54px;
  padding: 86px 0;
}

.qy-ports-hero__content h1 {
  margin: 24px 0 18px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -1.3px;
}

.qy-ports-hero__content p {
  max-width: 720px;
  margin: 0;
  color: var(--qy-text);
  font-size: 18px;
  line-height: 1.9;
}

.qy-ports-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.qy-ports-flow {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--qy-shadow-md);
  backdrop-filter: blur(14px);
}

.qy-ports-flow div {
  padding: 20px;
  border: 1px solid var(--qy-line);
  border-radius: 20px;
  background: linear-gradient(90deg, #ffffff, #f8fbff);
}

.qy-ports-flow span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--qy-primary);
  border-radius: 14px;
  background: var(--qy-primary-light);
  font-weight: 900;
}

.qy-ports-flow strong {
  display: block;
  margin-top: 14px;
  color: var(--qy-title);
  font-size: 20px;
}

.qy-ports-flow em {
  display: block;
  margin-top: 6px;
  color: var(--qy-muted);
  font-size: 13px;
  font-style: normal;
}

.qy-ports-section {
  padding: 84px 0;
  background: #ffffff;
}

.qy-ports-section--soft {
  background: var(--qy-bg);
}

.qy-ports-diff,
.qy-ports-steps,
.qy-ports-scenes,
.qy-ports-advice {
  display: grid;
  gap: 18px;
}

.qy-ports-diff {
  grid-template-columns: repeat(3, 1fr);
}

.qy-ports-steps,
.qy-ports-scenes {
  grid-template-columns: repeat(4, 1fr);
}

.qy-ports-advice {
  grid-template-columns: repeat(3, 1fr);
}

.qy-ports-diff article,
.qy-ports-steps article,
.qy-ports-scenes article,
.qy-ports-advice div,
.qy-ports-table-wrap,
.qy-ports-command-note,
.qy-ports-command-card {
  border: 1px solid var(--qy-line);
  border-radius: 28px;
  background: var(--qy-white);
  box-shadow: var(--qy-shadow-sm);
}

.qy-ports-diff article,
.qy-ports-steps article,
.qy-ports-scenes article,
.qy-ports-advice div {
  padding: 28px;
  transition: 0.2s ease;
}

.qy-ports-diff article:hover,
.qy-ports-steps article:hover,
.qy-ports-scenes article:hover,
.qy-ports-advice div:hover {
  transform: translateY(-5px);
  border-color: #c7d7ff;
  box-shadow: var(--qy-shadow-md);
}

.qy-ports-diff span {
  width: 54px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--qy-primary);
  border-radius: 16px;
  background: var(--qy-primary-light);
  font-size: 13px;
  font-weight: 900;
}

.qy-ports-diff h3,
.qy-ports-steps h3,
.qy-ports-scenes h3,
.qy-ports-advice h3 {
  margin: 22px 0 10px;
  color: var(--qy-title);
  font-size: 21px;
  line-height: 1.25;
}

.qy-ports-scenes h3,
.qy-ports-advice h3 {
  margin-top: 0;
}

.qy-ports-diff p,
.qy-ports-steps p,
.qy-ports-scenes p,
.qy-ports-advice p {
  margin: 0;
  color: var(--qy-text);
  font-size: 14px;
  line-height: 1.8;
}

.qy-ports-diff ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.qy-ports-diff li {
  position: relative;
  padding-left: 18px;
  color: var(--qy-text);
  font-size: 14px;
  line-height: 1.7;
}

.qy-ports-diff li::before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--qy-primary);
}

.qy-ports-table-wrap {
  overflow: hidden;
}

.qy-ports-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.qy-ports-table thead {
  background: linear-gradient(90deg, #f5f9ff, #ffffff);
}

.qy-ports-table th {
  padding: 18px;
  color: var(--qy-title);
  border-bottom: 1px solid var(--qy-line);
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.qy-ports-table td {
  padding: 18px;
  color: var(--qy-text);
  border-bottom: 1px solid var(--qy-soft-line);
  font-size: 14px;
  line-height: 1.6;
  vertical-align: top;
}

.qy-ports-table tbody tr:last-child td {
  border-bottom: 0;
}

.qy-ports-table td strong {
  color: var(--qy-primary);
  font-size: 17px;
}

.qy-ports-table span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.qy-ports-table .is-ok {
  color: #166534;
  background: #dcfce7;
}

.qy-ports-table .is-warning {
  color: #9a3412;
  background: #ffedd5;
}

.qy-ports-table .is-danger {
  color: #991b1b;
  background: #fee2e2;
}

.qy-ports-command-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 22px;
  align-items: start;
}

.qy-ports-command-note {
  position: sticky;
  top: 96px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff, #f6faff);
}

.qy-ports-command-note h3 {
  margin: 0 0 16px;
  color: var(--qy-title);
  font-size: 22px;
}

.qy-ports-command-note ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qy-ports-command-note li {
  position: relative;
  padding-left: 22px;
  color: var(--qy-text);
  font-size: 14px;
  line-height: 1.7;
}

.qy-ports-command-note li::before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--qy-primary);
}

.qy-ports-command-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.qy-ports-command-card {
  overflow: hidden;
}

.qy-ports-command-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--qy-soft-line);
  background: linear-gradient(90deg, #ffffff, #f8fbff);
}

.qy-ports-command-card__head span {
  color: var(--qy-primary);
  font-size: 12px;
  font-weight: 900;
}

.qy-ports-command-card__head h3 {
  margin: 6px 0 0;
  color: var(--qy-title);
  font-size: 18px;
}

.qy-ports-command-card__head button {
  height: 36px;
  min-width: 70px;
  padding: 0 14px;
  color: var(--qy-white);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--qy-primary), var(--qy-sky));
  font-size: 13px;
  font-weight: 900;
}

.qy-ports-command-card__head button.is-copied {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.qy-ports-command-card pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  background: #07142f;
}

.qy-ports-command-card code,
.qy-ports-steps code {
  color: #dbeafe;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre;
}

.qy-ports-steps strong {
  display: block;
  color: var(--qy-primary);
  font-size: 30px;
  line-height: 1;
}

.qy-ports-steps code {
  display: block;
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: #07142f;
  white-space: normal;
}

.qy-ports-cta {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #07142f, #1263ff);
}

.qy-ports-cta::before {
  position: absolute;
  top: -120px;
  right: 8%;
  width: 360px;
  height: 360px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.qy-ports-cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.qy-ports-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.qy-ports-cta p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  line-height: 1.85;
}

.qy-ports-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .qy-ports-hero__inner,
  .qy-ports-command-layout {
    grid-template-columns: 1fr;
  }

  .qy-ports-command-note {
    position: static;
  }

  .qy-ports-diff,
  .qy-ports-steps,
  .qy-ports-scenes {
    grid-template-columns: repeat(2, 1fr);
  }

  .qy-ports-advice {
    grid-template-columns: 1fr;
  }

  .qy-ports-cta__inner {
    display: block;
  }

  .qy-ports-cta__actions {
    margin-top: 24px;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .qy-ports-table-wrap {
    padding: 16px;
  }

  .qy-ports-table,
  .qy-ports-table thead,
  .qy-ports-table tbody,
  .qy-ports-table tr,
  .qy-ports-table th,
  .qy-ports-table td {
    display: block;
  }

  .qy-ports-table thead {
    display: none;
  }

  .qy-ports-table tbody {
    display: grid;
    gap: 14px;
  }

  .qy-ports-table tr {
    padding: 18px;
    border: 1px solid var(--qy-line);
    border-radius: 22px;
    background: var(--qy-white);
    box-shadow: var(--qy-shadow-sm);
  }

  .qy-ports-table td {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--qy-soft-line);
  }

  .qy-ports-table td:last-child {
    border-bottom: 0;
  }

  .qy-ports-table td::before {
    content: attr(data-label);
    color: var(--qy-muted);
    font-size: 13px;
    font-weight: 900;
  }
}

@media (max-width: 760px) {
  .qy-ports-hero__inner {
    min-height: auto;
    padding: 58px 0;
  }

  .qy-ports-hero__content p {
    font-size: 16px;
  }

  .qy-ports-section {
    padding: 62px 0;
  }

  .qy-ports-flow,
  .qy-ports-diff,
  .qy-ports-steps,
  .qy-ports-scenes,
  .qy-ports-command-grid {
    grid-template-columns: 1fr;
  }

  .qy-ports-command-card__head {
    display: block;
  }

  .qy-ports-command-card__head button {
    margin-top: 14px;
  }

  .qy-ports-command-card code {
    font-size: 12px;
  }

  .qy-ports-table td {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .qy-ports-hero__actions,
  .qy-ports-cta__actions {
    width: 100%;
  }
}
