:root {
  --page-background: #f4f1eb;
  --panel-background: rgba(255, 255, 255, 0.78);
  --card-background: rgba(255, 255, 255, 0.88);

  --text-primary: #172033;
  --text-secondary: #687083;

  --border-color: rgba(27, 36, 55, 0.09);

  --email-color: #dd5c4d;
  --email-soft: #fbe1dc;

  --cloud-color: #417fd5;
  --cloud-soft: #dfeeff;

  --shadow: 0 24px 70px rgba(37, 43, 58, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  background: var(--page-background);
}

body {
  min-height: 100vh;
  padding: clamp(18px, 3vw, 42px);

  color: var(--text-primary);
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;

  background:
    radial-gradient(
      circle at 9% 12%,
      rgba(221, 92, 77, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 88%,
      rgba(65, 127, 213, 0.14),
      transparent 34%
    ),
    var(--page-background);
}

a {
  color: inherit;
  text-decoration: none;
}

.portal {
  width: min(1600px, 100%);
  min-height: calc(100vh - clamp(36px, 6vw, 84px));
  margin: 0 auto;

  display: grid;
  grid-template-columns:
    minmax(340px, 0.72fr)
    minmax(640px, 1.28fr);
  gap: clamp(16px, 2vw, 28px);
}

.portal-section {
  position: relative;

  min-width: 0;
  padding: clamp(24px, 3.2vw, 50px);

  display: flex;
  flex-direction: column;

  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 32px;

  background: var(--panel-background);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.portal-section::before {
  content: "";

  position: absolute;
  top: -110px;
  right: -90px;

  width: 260px;
  height: 260px;

  border-radius: 50%;
  opacity: 0.48;
  pointer-events: none;
}

.portal-section--email::before {
  background: var(--email-soft);
}

.portal-section--cloud::before {
  background: var(--cloud-soft);
}

.section-header {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  gap: 18px;
}

.section-icon {
  width: 62px;
  height: 62px;

  display: grid;
  flex: 0 0 62px;
  place-items: center;

  border-radius: 20px;

  color: #ffffff;
  font-size: 30px;
  font-weight: 800;

  box-shadow: 0 14px 30px rgba(30, 38, 54, 0.14);
}

.portal-section--email .section-icon {
  background:
    linear-gradient(
      145deg,
      #ed7968,
      var(--email-color)
    );
}

.portal-section--cloud .section-icon {
  background:
    linear-gradient(
      145deg,
      #6fa9ee,
      var(--cloud-color)
    );
}

.section-header h1,
.section-header h2 {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-header p {
  margin-top: 9px;

  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.service-list {
  position: relative;
  z-index: 1;

  margin-top: clamp(34px, 6vh, 72px);

  display: grid;
  gap: 16px;
}

.portal-section--email .service-list {
  grid-template-columns: 1fr;
}

.portal-section--cloud .service-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  min-width: 0;
  padding: clamp(17px, 2vw, 24px);

  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 16px;

  border: 1px solid var(--border-color);
  border-radius: 22px;

  background: var(--card-background);
  box-shadow: 0 12px 32px rgba(36, 42, 56, 0.06);

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.service-card:hover {
  border-color: rgba(27, 36, 55, 0.16);

  box-shadow: 0 18px 40px rgba(36, 42, 56, 0.11);
  transform: translateY(-3px);
}

.service-card:focus-visible {
  outline: 3px solid rgba(65, 127, 213, 0.28);
  outline-offset: 3px;
}

.service-mark {
  width: 62px;
  height: 62px;

  display: grid;
  place-items: center;

  border-radius: 18px;

  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.service-copy {
  min-width: 0;

  display: block;
}

.service-name {
  display: block;
  overflow: hidden;

  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 750;
  line-height: 1.25;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-domain {
  display: block;
  margin-top: 7px;
  overflow: hidden;

  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-arrow {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border-color);
  border-radius: 50%;

  color: var(--text-secondary);
  font-size: 21px;
  line-height: 1;

  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.portal-section--email .service-card:hover .service-arrow {
  color: #ffffff;
  background: var(--email-color);
  transform: translateX(3px);
}

.portal-section--cloud .service-card:hover .service-arrow {
  color: #ffffff;
  background: var(--cloud-color);
  transform: translateX(3px);
}

@media (max-width: 1180px) {
  .portal {
    grid-template-columns: 1fr;
  }

  .portal-section {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .portal-section--cloud .service-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    padding: 12px;
  }

  .portal-section {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .section-icon {
    width: 54px;
    height: 54px;

    flex-basis: 54px;

    border-radius: 17px;
    font-size: 26px;
  }

  .service-list {
    margin-top: 30px;
  }

  .service-card {
    padding: 15px;

    grid-template-columns:
      54px
      minmax(0, 1fr)
      36px;
    gap: 13px;

    border-radius: 19px;
  }
}