:root {
  --teal: #009cb2;
  --teal-dark: #008aa0;
  --text: #55545a;
  --muted: #8a8a8f;
  --line: #e5e8eb;
  --soft: #eefbfd;
  --violet: #31248f;
  --pink: #cc58b9;
  --blue: #44c7e6;
  --shadow: 0 12px 24px rgba(0, 156, 178, 0.22);
  font-family: "Montserrat", "Aptos", "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f7f7;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

.topbar {
  min-height: 88px;
  padding: 14px 24px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f1f1;
}

.menu-button {
  width: 46px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 8px;
  align-content: center;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 4px;
  width: 38px;
  border-radius: 8px;
  background: var(--teal);
}

.identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.identity p,
.identity strong {
  display: block;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #7a7a80;
  font-weight: 500;
}

.identity strong {
  font-weight: 600;
}

.avatar {
  display: block;
  object-fit: cover;
  background: #e8edf0;
}

.avatar.small {
  width: 58px;
  height: 72px;
}

.avatar.large {
  width: 164px;
  height: 216px;
  margin: 48px auto 44px;
}

.chevron {
  width: 14px;
  height: 14px;
  border-right: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(45deg) translateY(-4px);
}

.tabs {
  height: 150px;
  background: #fafafa;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-decoration: none;
  color: #77787d;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.tab.active {
  color: var(--teal);
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--teal);
}

.tab-icon {
  width: 52px;
  height: 52px;
  display: block;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.person-icon,
.help-icon {
  border-radius: 50%;
  position: relative;
}

.person-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: absolute;
  top: 9px;
  left: 15px;
}

.person-icon::after {
  content: "";
  width: 22px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
  position: absolute;
  top: 24px;
  left: 9px;
}

.laptop-icon {
  border-radius: 2px;
  border-width: 3px 3px 7px;
  position: relative;
}

.laptop-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 50%;
  position: absolute;
  top: 9px;
  left: 11px;
}

.laptop-icon::after {
  content: "";
  width: 58px;
  height: 5px;
  border: 3px solid currentColor;
  border-top: 0;
  position: absolute;
  left: -9px;
  bottom: -13px;
}

.help-icon::before {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.laptop-tab-icon {
  width: 58px;
}

main {
  max-width: 540px;
  margin: 0 auto;
  background: white;
}

.panel {
  display: none;
}

.panel.active-panel {
  display: block;
}

.profile-card {
  position: relative;
  padding: 1px 24px 56px;
  background: white;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.info-item {
  min-height: 142px;
  padding: 12px 6px 26px;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.info-item h2,
.address h2 {
  margin: 16px 0 0;
  color: #73737a;
  font-size: 20px;
  line-height: 1.45;
}

.info-item p {
  margin: 6px 0 0;
  font-size: 18px;
}

.round-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--teal);
  position: relative;
}

.round-icon::before {
  font-size: 26px;
  font-weight: 400;
}

.round-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.id-icon::before {
  content: "▣";
}

.cake-icon::before {
  content: "♙";
}

.mail-icon::before {
  content: "✉";
}

.phone-icon::before {
  content: "☎";
}

.pin-icon::before {
  content: "⌖";
}

.address {
  padding: 44px 0 6px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.floating-button {
  position: absolute;
  right: 40px;
  bottom: -34px;
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 58px;
  line-height: 1;
  font-weight: 300;
  box-shadow: var(--shadow);
}

.message-section,
.question-section {
  padding: 70px 24px 56px;
  text-align: center;
}

.message-section h2,
.question-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  color: #3f3f45;
}

.message-section p,
.question-section p {
  margin: 0 auto 34px;
  max-width: 430px;
  color: #77777c;
  font-size: 20px;
  line-height: 1.45;
}

.primary-button {
  display: inline-grid;
  min-width: 240px;
  min-height: 58px;
  place-items: center;
  padding: 0 22px;
  border-radius: 2px;
  background: var(--teal);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 800;
}

.action-list {
  padding: 34px 24px 42px;
  display: grid;
  gap: 54px;
}

.action-card {
  text-align: center;
}

.real-illustration {
  display: block;
  width: min(224px, 70vw);
  height: 154px;
  object-fit: contain;
  margin: 0 auto;
}

.action-card h2 {
  margin: 18px 0 18px;
  font-size: 22px;
  color: #55545a;
}

.illustration {
  width: 210px;
  height: 150px;
  margin: 0 auto;
  position: relative;
}

.illustration::before,
.illustration::after {
  content: "";
  position: absolute;
}

.desk::before,
.security::before {
  width: 150px;
  height: 12px;
  background: #6a58d3;
  left: 30px;
  bottom: 46px;
  border-radius: 10px;
  box-shadow: 0 36px 0 -4px #d98acb;
}

.desk::after,
.security::after {
  width: 48px;
  height: 82px;
  background: linear-gradient(var(--blue) 0 42%, var(--violet) 42%);
  border-radius: 28px 28px 8px 8px;
  left: 104px;
  top: 24px;
  transform: skewX(-10deg);
}

.chart::before,
.data::before {
  width: 150px;
  height: 95px;
  background:
    linear-gradient(var(--teal), var(--teal)) top / 100% 12px no-repeat,
    linear-gradient(90deg, #d8f4f7 20%, transparent 20% 28%, #d8f4f7 28% 50%, transparent 50% 58%, #d8f4f7 58%) center / 120px 48px no-repeat,
    white;
  border: 4px solid #d8f4f7;
  left: 28px;
  top: 22px;
  box-shadow: 20px 20px 0 rgba(49, 36, 143, 0.1);
}

.chart::after,
.data::after {
  width: 42px;
  height: 78px;
  background: var(--pink);
  border-radius: 24px 24px 6px 6px;
  right: 26px;
  bottom: 16px;
}

.phone::before {
  width: 70px;
  height: 116px;
  border-radius: 10px;
  background:
    linear-gradient(#6959d4 0 18px, transparent 18px),
    linear-gradient(white, white);
  border: 4px solid #d9edf2;
  left: 70px;
  top: 12px;
}

.phone::after {
  width: 48px;
  height: 74px;
  border-radius: 24px 24px 6px 6px;
  background: var(--teal);
  left: 20px;
  bottom: 18px;
  box-shadow: 128px 12px 0 -4px var(--violet);
}

.download::before {
  width: 150px;
  height: 96px;
  background:
    linear-gradient(var(--teal), var(--teal)) top / 100% 18px no-repeat,
    linear-gradient(90deg, #d8f4f7 44%, transparent 44%) center / 112px 48px no-repeat,
    white;
  left: 34px;
  top: 18px;
  border: 4px solid #d8f4f7;
}

.download::after {
  width: 52px;
  height: 82px;
  border-radius: 26px 26px 8px 8px;
  background: var(--blue);
  left: 24px;
  top: 58px;
  box-shadow: inset 0 44px 0 var(--violet);
}

.faq-hero {
  padding: 48px 24px 16px;
  text-align: center;
}

.faq-hero h1,
.question-section h2 {
  margin: 0 0 46px;
  color: var(--teal);
  font-size: 36px;
  line-height: 1.2;
}

.faq {
  width: 260px;
  height: 210px;
}

.faq::before {
  width: 180px;
  height: 120px;
  border-radius: 55% 45% 45% 55%;
  background: #e7f7fb;
  top: 22px;
  left: 42px;
}

.faq::after {
  width: 62px;
  height: 118px;
  border-radius: 32px 32px 8px 8px;
  background: linear-gradient(var(--pink) 0 50%, var(--violet) 50%);
  left: 46px;
  top: 70px;
  box-shadow: 116px 2px 0 -4px var(--violet), 132px 42px 0 -14px #45c8e6;
}

.faq-list {
  padding: 0 24px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

summary {
  list-style: none;
  cursor: pointer;
  color: #55545a;
  font-size: 18px;
  line-height: 1.45;
  position: relative;
  padding-left: 32px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  left: 4px;
  top: 5px;
  transform: rotate(45deg);
}

details[open] summary::before {
  transform: rotate(225deg);
  top: 11px;
}

details p {
  margin: 12px 0 0 32px;
  font-weight: 600;
  color: #77777c;
  line-height: 1.5;
}

footer {
  max-width: 540px;
  margin: 0 auto;
  padding: 26px 24px 34px;
  background: var(--teal);
  display: grid;
  gap: 28px;
  text-align: center;
}

footer a {
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}

@media (min-width: 760px) {
  body {
    background: #ecf1f3;
  }

  .topbar,
  .tabs,
  main,
  footer {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .topbar {
    margin-top: 24px;
  }
}

@media (max-width: 410px) {
  .identity {
    min-width: 190px;
  }

  .identity p,
  .identity strong {
    font-size: 14px;
  }

  .avatar.small {
    width: 52px;
    height: 64px;
  }

  .info-item h2,
  .address h2,
  .message-section p,
  .question-section p {
    font-size: 17px;
  }

  .faq-hero h1,
  .question-section h2 {
    font-size: 32px;
  }
}

/* My Info polish */
.profile-card {
  padding: 1px 24px 74px;
}

.avatar.large {
  width: 176px;
  height: 226px;
  margin: 48px auto 76px;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #dfe6e9;
  row-gap: 0;
}

.info-item {
  min-height: 188px;
  padding: 0 4px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.info-item:nth-child(1),
.info-item:nth-child(2) {
  border-bottom: 1px solid #dfe6e9;
}

.info-item:nth-child(3),
.info-item:nth-child(4) {
  padding-top: 56px;
}

.round-icon {
  width: 76px;
  height: 76px;
  background: #eefafd;
}

.round-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2;
}

.info-item h2,
.info-item p,
.address h2 {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  color: #6f6f75;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.info-item h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.25;
}

.info-item p {
  margin-top: 0;
  font-size: 22px;
  line-height: 1.25;
}

.info-item:nth-child(3) h2,
.info-item:nth-child(4) h2 {
  font-size: clamp(16px, 4.4vw, 21px);
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

.address {
  padding: 62px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.address h2 {
  max-width: 480px;
  margin-top: 34px;
  font-size: 24px;
  line-height: 1.55;
}

.floating-button {
  right: 44px;
  bottom: -38px;
  width: 76px;
  height: 76px;
  font-size: 62px;
}

@media (max-width: 410px) {
  .profile-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .avatar.large {
    width: 160px;
    height: 206px;
    margin-bottom: 64px;
  }

  .info-item {
    min-height: 174px;
  }

  .round-icon {
    width: 68px;
    height: 68px;
  }

  .round-icon svg {
    width: 32px;
    height: 32px;
  }

  .info-item h2 {
    font-size: 20px;
  }

  .info-item:nth-child(3) h2,
  .info-item:nth-child(4) h2 {
    font-size: clamp(12px, 3.55vw, 15px);
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
  }

  .info-item p {
    font-size: 19px;
  }

  .address h2 {
    font-size: 19px;
    line-height: 1.45;
  }
}

/* Final mobile fix: keep email and phone from breaking apart */
@media (max-width: 540px) {
  #my-info .info-grid {
    column-gap: 10px;
  }

  #my-info .info-item {
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  #my-info .info-item:nth-child(3) h2,
  #my-info .info-item:nth-child(4) h2 {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 13px !important;
    line-height: 1.25;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-align: center;
  }
}
