* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #0b1437;
  background: #ffffff;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
}

.site-header {
  display: grid;
  grid-template-columns: 340px 1fr 300px;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
}

.brand-logo {
  width: 320px;
  height: 118x;
  object-fit: contain;
  object-position: left center;
}

.plan-status {
  justify-self: center;
  font-size: 22px;
  color: #243052;
  white-space: nowrap;
}

.plan-status strong {
  color: #5738f2;
  margin-left: 6px;
}

.offer-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #6b4dff 0%, #4026e8 100%);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(73, 47, 232, 0.16);
}

.dashboard-head {
  margin: 24px 20px 24px;
}

.dashboard-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
}

.dashboard-head p {
  margin: 12px 0 24px;
  color: #4f5c83;
  font-size: 19px;
}

.modules {
  display: grid;
  grid-template-columns: 300px 310px 300px;
  grid-template-areas:
    "listening test speaking"
    "reading test writing"
    ". grammar .";
  gap: 16px 20px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.module-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr 24px;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
  border: 1px solid #e2e6ef;
  border-radius: 14px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(29, 39, 76, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(29, 39, 76, 0.11);
}

.module-card.listening { grid-area: listening; --accent: #00a66a; }
.module-card.reading { grid-area: reading; --accent: #eba400; }
.module-card.test { grid-area: test; --accent: #5b3df0; }
.module-card.speaking { grid-area: speaking; --accent: #ff5a1f; }
.module-card.writing { grid-area: writing; --accent: #e22f86; }
.module-card.grammar { grid-area: grammar; --accent: #5b3df0; }

.module-card.test {
  min-height: 166px;
  border-color: rgba(91, 61, 240, 0.7);
  background: #ffffff;
}

.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, white);
}

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

.module-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.module-card p {
  margin: 6px 0 0;
  color: #334166;
  font-size: 13px;
  line-height: 1.35;
}

.arrow {
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
  .icon-wrap {
    background: #f0edff;
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 220px 1fr;
  }

  .offer-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
  }

  .brand-logo {
    width: 220px;
    height: 90px;
  }

  .plan-status {
    font-size: 19px;
  }
}
