/* Начало блока: Общие настройки страницы */
.page-internet-portal #architecture,
.page-internet-portal #process,
.page-internet-portal #faq,
.page-internet-portal #contact {
  scroll-margin-top: 104px;
}

.page-internet-portal .contact-copy > p:not(.eyebrow) {
  line-height: 1.55;
}

/* Конец блока: Общие настройки страницы */

/* Начало блока: Первый экран */
.page-internet-portal .dev-hero h1 {
  max-width: 1040px;
}

.page-internet-portal .dev-hero h1 strong {
  font-weight: inherit;
  white-space: nowrap;
}

.portal-browser {
  width: 79%;
  transform: rotate(-3deg);
}

.portal-browser-canvas {
  position: relative;
  display: grid;
  min-height: 362px;
  grid-template-columns: 0.28fr 1fr;
  gap: 12px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 88% 82%, rgba(0, 140, 255, 0.24), transparent 44%);
  background-size: 27px 27px, 27px 27px, auto;
}

.portal-nav-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(7, 12, 17, 0.84);
}

.portal-nav-preview strong {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-nav-preview i {
  position: relative;
  display: block;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
}

.portal-nav-preview i::after {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 56%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  content: "";
}

.portal-nav-preview i.is-active {
  border-color: rgba(86, 230, 255, 0.25);
  background: rgba(0, 140, 255, 0.14);
}

.portal-nav-preview i.is-active::after {
  background: var(--cyan);
}

.portal-content-preview {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 10px;
  padding-bottom: 45px;
}

.portal-search-preview {
  display: flex;
  height: 35px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(7, 12, 17, 0.75);
}

.portal-search-preview span {
  width: 5px;
  height: 5px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
}

.portal-search-preview b {
  flex: 1;
  color: #6e7984;
  font-size: 6px;
  font-weight: 700;
}

.portal-search-preview i {
  color: var(--cyan);
  font-size: 10px;
  font-style: normal;
}

.portal-feature-preview {
  position: relative;
  min-height: 112px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(86, 230, 255, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 12%, rgba(0, 140, 255, 0.3), transparent 42%),
    rgba(7, 12, 17, 0.76);
}

.portal-feature-preview::after {
  position: absolute;
  top: -45px;
  right: -26px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(86, 230, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.portal-feature-preview span {
  display: block;
  color: var(--cyan);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-feature-preview strong {
  display: block;
  max-width: 180px;
  margin-top: 22px;
  font-size: 11px;
  line-height: 1.2;
}

.portal-feature-preview b {
  display: inline-block;
  width: 45px;
  height: 4px;
  margin: 13px 5px 0 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.portal-card-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.portal-card-preview article {
  position: relative;
  min-height: 80px;
  padding: 12px 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(7, 12, 17, 0.78);
}

.portal-card-preview article::after {
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(0, 140, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.portal-card-preview i {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(86, 230, 255, 0.25);
  border-radius: 6px;
  background: rgba(0, 140, 255, 0.12);
}

.portal-card-preview strong {
  display: block;
  font-size: 7px;
}

.portal-card-preview small {
  display: block;
  margin-top: 4px;
  color: #77838e;
  font-size: 5px;
}

.portal-update-preview {
  position: absolute;
  right: 18px;
  bottom: 17px;
  display: grid;
  min-width: 138px;
  padding: 10px 13px;
  border: 1px solid rgba(86, 230, 255, 0.28);
  border-radius: 12px;
  background: rgba(9, 21, 30, 0.96);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.32);
}

.portal-update-preview span {
  color: var(--accent);
  font-size: 6px;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-update-preview strong {
  margin-top: 4px;
  font-size: 10px;
}
/* Конец блока: Первый экран */

/* Начало блока: Общие заголовки */
.portal-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.55fr);
  align-items: end;
  gap: clamp(48px, 8vw, 130px);
}

.portal-heading h2 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(42px, 5.3vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.066em;
}

.portal-heading > p {
  margin: 0 0 7px;
  color: var(--dev-muted);
  font-size: 16px;
  line-height: 1.72;
}
/* Конец блока: Общие заголовки */

/* Начало блока: Виды порталов */
.portal-types {
  overflow: hidden;
}

.portal-type-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(58px, 7vw, 92px);
}

.portal-type-grid::before,
.portal-route::before,
.portal-capability-grid::before,
.portal-scope-grid::before {
  position: absolute;
  top: -30px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  content: "";
}

.portal-type-grid article {
  position: relative;
  min-height: 330px;
  padding: clamp(30px, 3.5vw, 48px);
  overflow: hidden;
  border: 1px solid var(--dev-line);
  border-radius: 27px;
  background:
    radial-gradient(circle at 88% 10%, rgba(0, 140, 255, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.72);
}

.portal-type-grid article::after {
  position: absolute;
  right: -28%;
  bottom: -42%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px dashed rgba(0, 140, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.portal-type-grid span,
.portal-capability-grid span,
.portal-scope-grid span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-type-grid h3 {
  position: relative;
  z-index: 2;
  margin: 76px 0 18px;
  font-size: clamp(28px, 2.8vw, 43px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.portal-type-grid p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--dev-muted);
  font-size: 14px;
  line-height: 1.7;
}

.portal-type-grid small {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 25px;
  color: #87929d;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* Конец блока: Виды порталов */

/* Начало блока: Архитектура портала */
.portal-architecture {
  overflow: hidden;
}

.portal-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(58px, 7vw, 92px);
}

.portal-route article {
  position: relative;
  min-height: 350px;
  padding: clamp(25px, 2.8vw, 38px);
  overflow: hidden;
  border: 1px solid var(--dev-line);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.72);
}

.portal-route article::after {
  position: absolute;
  right: -45%;
  bottom: -26%;
  width: 108%;
  aspect-ratio: 1;
  border: 1px dashed rgba(0, 140, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.portal-route article:not(:last-child)::before {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: -12px;
  width: 24px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.portal-route > article > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(0, 140, 255, 0.25);
  border-radius: 50%;
  color: var(--accent);
  font-size: 10px;
  font-weight: 820;
}

.portal-route small {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 62px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-route h3 {
  position: relative;
  z-index: 2;
  margin: 12px 0 16px;
  font-size: clamp(27px, 2.5vw, 38px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.portal-route p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--dev-muted);
  font-size: 13px;
  line-height: 1.68;
}

.portal-route i {
  position: absolute;
  right: 28px;
  bottom: 25px;
  z-index: 2;
  color: #9aa4ad;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-route .portal-route-result {
  color: white;
  background:
    radial-gradient(circle at 80% 12%, rgba(0, 140, 255, 0.24), transparent 35%),
    var(--dev-ink);
  box-shadow: 0 28px 65px rgba(7, 17, 26, 0.16);
}

.portal-route-result p {
  color: var(--muted);
}

.portal-route-result i {
  color: var(--cyan);
}
/* Конец блока: Архитектура портала */

/* Начало блока: Возможности портала */
.portal-capabilities {
  overflow: hidden;
}

.portal-capability-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr repeat(2, 0.91fr);
  gap: 14px;
  margin-top: clamp(58px, 7vw, 95px);
}

.portal-capability-grid article {
  position: relative;
  display: flex;
  min-height: 215px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 3vw, 42px);
  overflow: hidden;
  border: 1px solid var(--dev-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 26px 70px rgba(35, 58, 75, 0.055);
}

.portal-capability-grid article::before {
  position: absolute;
  right: -20%;
  bottom: -34%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 140, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.portal-capability-grid .portal-capability-main {
  grid-row: span 2;
  min-height: 444px;
  color: white;
  background:
    radial-gradient(circle at 70% 22%, rgba(0, 140, 255, 0.2), transparent 32%),
    var(--dev-ink);
  box-shadow: 0 34px 90px rgba(7, 17, 26, 0.18);
}

.portal-capability-grid .portal-capability-optional {
  grid-column: 2 / 4;
  border-color: rgba(0, 140, 255, 0.23);
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 140, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.76);
}

.portal-capability-grid span {
  position: absolute;
  top: 32px;
  left: clamp(28px, 3vw, 42px);
}

.portal-capability-grid h3 {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 40px 0 14px;
  font-size: clamp(26px, 2.5vw, 39px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.portal-capability-main h3 {
  margin-top: 120px;
  font-size: clamp(38px, 3.7vw, 56px);
}

.portal-capability-grid p {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0;
  color: var(--dev-muted);
  font-size: 14px;
  line-height: 1.68;
}

.portal-capability-main p {
  color: var(--muted);
}

.portal-capability-grid small {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  color: #87929d;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portal-map {
  position: absolute;
  top: 78px;
  left: 50%;
  width: 238px;
  height: 116px;
  transform: translateX(-50%);
}

.portal-map::before,
.portal-map::after {
  position: absolute;
  background: rgba(86, 230, 255, 0.25);
  content: "";
}

.portal-map::before {
  top: 28px;
  left: 50%;
  width: 1px;
  height: 38px;
}

.portal-map::after {
  top: 65px;
  left: 8%;
  width: 84%;
  height: 1px;
}

.portal-map i {
  position: absolute;
  z-index: 2;
  width: 38px;
  height: 25px;
  border: 1px solid rgba(86, 230, 255, 0.25);
  border-radius: 9px;
  background: rgba(0, 140, 255, 0.11);
}

.portal-map i:first-child {
  top: 4px;
  left: 50%;
  width: 46px;
  transform: translateX(-50%);
}

.portal-map i:nth-child(2) {
  bottom: 9px;
  left: 0;
}

.portal-map i:nth-child(3) {
  bottom: 9px;
  left: 20%;
}

.portal-map i:nth-child(4) {
  bottom: 9px;
  left: 40%;
}

.portal-map i:nth-child(5) {
  right: 20%;
  bottom: 9px;
}

.portal-map i:nth-child(6) {
  right: 0;
  bottom: 9px;
}
/* Конец блока: Возможности портала */

/* Начало блока: Безопасность */
.portal-security {
  overflow: hidden;
  color: #f5f7f9;
  background:
    radial-gradient(circle at 88% 8%, rgba(0, 140, 255, 0.16), transparent 31%),
    #07111a;
}

.portal-security .portal-heading > p {
  color: #8d98a3;
}

.portal-security-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(58px, 7vw, 95px);
}

.portal-security-grid::before {
  position: absolute;
  top: -30px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(86, 230, 255, 0.02));
  content: "";
}

.portal-security-grid article {
  position: relative;
  min-height: 340px;
  padding: clamp(30px, 3.5vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.025);
}

.portal-security-grid article::before {
  position: absolute;
  right: -28%;
  bottom: -32%;
  width: 85%;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 140, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.portal-security-grid span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-security-grid i {
  position: absolute;
  top: 46px;
  right: 46px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(86, 230, 255, 0.18);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 18px;
  font-style: normal;
}

.portal-security-grid h3 {
  position: relative;
  z-index: 2;
  margin: 104px 0 18px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.portal-security-grid p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #8d98a3;
  font-size: 14px;
  line-height: 1.72;
}

.portal-security-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 40px;
  margin-top: 14px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(86, 230, 255, 0.16);
  border-radius: 27px;
  background: rgba(0, 140, 255, 0.065);
}

.portal-security-note span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-security-note p {
  max-width: 760px;
  margin: 13px 0 0;
  color: #9ba6af;
  font-size: 14px;
  line-height: 1.7;
}

.portal-security-note strong {
  color: white;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
/* Конец блока: Безопасность */

/* Начало блока: Срок и стоимость */
.portal-scope {
  overflow: hidden;
}

.portal-scope-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(58px, 7vw, 95px);
}

.portal-scope-grid article {
  position: relative;
  min-height: 310px;
  padding: clamp(30px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid var(--dev-line);
  border-radius: 27px;
  background:
    radial-gradient(circle at 88% 10%, rgba(0, 140, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.72);
}

.portal-scope-grid article::after {
  position: absolute;
  right: -12%;
  bottom: -42%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px dashed rgba(0, 140, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.portal-scope-grid h3 {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 75px 0 18px;
  font-size: clamp(27px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.057em;
}

.portal-scope-grid p {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0;
  color: var(--dev-muted);
  font-size: 14px;
  line-height: 1.7;
}
/* Конец блока: Срок и стоимость */

/* Начало блока: Адаптивность */
@media (max-width: 1180px) {
  

  .portal-browser-canvas {
    min-height: 320px;
    padding: 18px;
  }

  .portal-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-route article {
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  .portal-heading,
  .portal-security-note {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portal-type-grid,
  .portal-security-grid {
    grid-template-columns: 1fr;
  }

  .portal-type-grid article,
  .portal-security-grid article {
    min-height: 285px;
  }

  .portal-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-capability-grid .portal-capability-main {
    grid-row: auto;
    grid-column: 1 / 3;
    min-height: 400px;
  }

  .portal-capability-grid .portal-capability-optional {
    grid-column: 1 / 3;
  }

  .portal-security-grid h3 {
    margin-top: 70px;
  }
}

@media (max-width: 680px) {
  

  .portal-browser {
    width: 84%;
  }

  .portal-browser-canvas {
    min-height: 298px;
    grid-template-columns: 0.3fr 1fr;
    gap: 8px;
    padding: 13px;
  }

  .portal-nav-preview {
    gap: 7px;
    padding: 12px 8px;
  }

  .portal-nav-preview i {
    height: 14px;
  }

  .portal-feature-preview {
    min-height: 100px;
    padding: 14px;
  }

  .portal-feature-preview strong {
    margin-top: 16px;
  }

  .portal-card-preview {
    gap: 5px;
  }

  .portal-card-preview article {
    min-height: 72px;
    padding: 9px 6px;
  }

  .portal-card-preview i {
    margin-bottom: 10px;
  }

  .portal-update-preview {
    right: 12px;
    bottom: 12px;
    min-width: 126px;
  }

  .portal-heading h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .portal-route,
  .portal-capability-grid,
  .portal-scope-grid {
    grid-template-columns: 1fr;
  }

  .portal-route article {
    min-height: 285px;
  }

  .portal-route small {
    margin-top: 38px;
  }

  .portal-route article:not(:last-child)::before {
    top: auto;
    right: 50%;
    bottom: -12px;
    width: 1px;
    height: 24px;
  }

  .portal-type-grid article {
    min-height: 270px;
  }

  .portal-type-grid h3 {
    margin-top: 54px;
  }

  .portal-capability-grid .portal-capability-main,
  .portal-capability-grid .portal-capability-optional {
    grid-column: auto;
  }

  .portal-capability-grid .portal-capability-main {
    min-height: 390px;
  }

  .portal-capability-grid article {
    min-height: 235px;
  }

  .portal-security-grid article,
  .portal-scope-grid article {
    min-height: 285px;
  }

  .portal-security-note {
    padding: 28px;
  }

}

@media (max-width: 440px) {
  .portal-browser {
    width: 88%;
  }

  .portal-browser-canvas {
    min-height: 280px;
    padding: 11px;
  }

  .portal-card-preview article:nth-child(3) {
    display: none;
  }

  .portal-card-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-map {
    width: 205px;
  }
}
/* Конец блока: Адаптивность */
