:root {
  --accent: #ad496b;
  --soft: #fff0f5;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-switch {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 31px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: 600 11px Arial, sans-serif;
}

.language-switch:hover {
  opacity: .82;
}

.english {
  font-family: "Alexandria", Arial, sans-serif;
  direction: ltr;
}

.english .contact-row {
  direction: ltr;
  justify-content: flex-start;
}

.english .entry time,
.english .project-list small,
.english .creative-courses time {
  text-align: left;
}

.english .strengths li {
  padding-right: 0;
  padding-left: 18px;
}

.english .strengths li::before {
  right: auto;
  left: 0;
}

body {
  background: #f9f1f4;
}

main,
.topbar {
  background: #fffdfd;
}

body {
  font-size: 16px;
}

.intro h1 {
  font-size: clamp(46px, 5.2vw, 68px);
  line-height: 1.28;
}

.intro h2 {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.75;
}

.intro-copy > p {
  font-size: 15px;
  line-height: 2;
}

.label,
.contact-row,
.actions a,
.back,
nav {
  font-size: 12px;
}

.available,
.project-head b {
  font-size: 11px;
}

footer span {
  font-size: 12px;
}

footer > a {
  font-size: 13px;
}

.info-block h3 {
  font-size: 16px;
}

.info-block dl div,
.language,
.tags span {
  font-size: 12px;
}

.section-title h2 {
  font-size: 25px;
  line-height: 1.5;
}

.entry h3,
.project-head h3 {
  font-size: 16px;
  line-height: 1.7;
}

.entry h4,
.entry p,
.project-list p,
.strengths li {
  font-size: 13px;
  line-height: 1.9;
}

.entry time,
.project-list small {
  font-size: 12px;
}

.section-title span {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.intro {
  grid-template-columns: 390px 1fr;
  margin-top: 22px;
  padding: 48px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(125deg, #f8dfe8 0%, #fff8fa 48%, #fff 100%);
}

.photo-wrap::before {
  inset: -18px 18px 18px -18px;
  border-radius: 48% 48% 12px 12px;
  background: #f6dbe4;
}

.photo-wrap img {
  height: 410px;
  border-radius: 48% 48% 12px 12px;
}

.intro h1 {
  color: #7f2947;
}

.project-list {
  grid-template-columns: 1.1fr .9fr;
}

.cv-grid {
  gap: 28px;
  padding-top: 38px;
}

.cv-grid aside {
  align-self: start;
  padding: 25px;
  border: 0;
  border-radius: 14px;
  background: #faeaf0;
}

.info-block {
  margin-bottom: 28px;
}

.info-block:last-child {
  margin-bottom: 0;
}

.cv-section {
  margin-bottom: 25px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.section-title {
  margin-bottom: 18px;
}

.entry {
  padding: 17px 0;
}

.project-list article:first-child {
  color: #fff;
  background: #9c3f60;
  border-color: #9c3f60;
}

.project-list article:first-child p,
.project-list article:first-child small {
  color: #f6dbe4;
}

.section-lead {
  margin: -15px 0 26px;
  color: var(--muted);
  font-size: 12px;
}

.design-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.design-steps article {
  padding: 20px 17px;
  border-left: 1px solid var(--line);
}

.design-steps article:last-child {
  border-left: 0;
}

.design-steps span {
  color: var(--accent);
  font-size: 11px;
}

.design-steps h3 {
  margin: 20px 0 6px;
  font-size: 14px;
}

.design-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.case-card {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 30px;
  overflow: hidden;
  padding: 28px;
  border-radius: 12px;
  background: #f8e1e9;
}

.case-copy small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.case-copy h3 {
  max-width: 500px;
  margin: 10px 0;
  font-size: 23px;
  line-height: 1.5;
}

.case-copy > p {
  color: #765c65;
  font-size: 13px;
  line-height: 1.9;
}

.case-results {
  display: flex;
  gap: 28px;
  margin-top: 25px;
}

.case-results b,
.case-results span {
  display: block;
}

.case-results b {
  color: #7f2947;
  font-size: 22px;
}

.case-results span {
  color: #8e747d;
  font-size: 11px;
}

.case-phone {
  position: relative;
  min-height: 320px;
  padding: 48px 18px 18px;
  border: 6px solid #32252a;
  border-radius: 26px;
  background: #fff;
  box-shadow: 9px 11px 0 rgba(127, 41, 71, .14);
  transform: rotate(4deg);
  direction: rtl;
}

.case-phone > span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 48px;
  height: 7px;
  border-radius: 10px;
  background: #32252a;
  transform: translateX(-50%);
}

.case-phone small,
.case-phone strong,
.case-phone > b {
  display: block;
}

.case-phone small {
  color: #8e747d;
  font-size: 11px;
}

.case-phone strong {
  margin-top: 8px;
  font-size: 25px;
}

.case-phone strong i {
  font-size: 11px;
}

.case-phone > b {
  margin-top: 10px;
  font-size: 11px;
}

.mini-chart {
  height: 90px;
  margin-top: 25px;
  border-bottom: 1px solid #eadfe3;
  background: linear-gradient(155deg, transparent 47%, #ad496b 48%, #ad496b 50%, transparent 51%);
}

.creative-courses article {
  display: grid;
  grid-template-columns: 145px 1fr 55px;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.creative-courses > article > b,
.creative-courses time {
  color: var(--accent);
  font-size: 12px;
  line-height: 1.6;
}

.creative-courses time {
  text-align: left;
}

.creative-courses h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.creative-courses p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 800px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  html {
    direction: ltr;
  }

  body {
    direction: rtl;
  }

  body > *,
  main,
  section,
  header,
  footer,
  .intro-copy,
  .photo-wrap,
  .cv-grid,
  .cv-content {
    min-width: 0;
    max-width: 100%;
  }

  main {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .topbar {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .intro {
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 12px;
    padding: 30px 22px;
  }

  .photo-wrap {
    width: min(100%, 300px);
  }

  .photo-wrap img {
    width: 100%;
    height: 365px;
  }

  .intro h1 {
    max-width: 100%;
    font-size: 39px;
    line-height: 1.4;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
  }

  .intro h2 {
    font-size: 19px;
    line-height: 1.75;
  }

  .intro-copy > p {
    font-size: 13px;
  }

  .actions {
    width: 100%;
  }

  .actions a {
    width: 100%;
  }

  .cv-grid {
    width: 100%;
    padding-bottom: 55px;
  }

  .cv-grid aside,
  .cv-section {
    width: 100%;
    min-width: 0;
    padding: 20px;
  }

  .section-title h2 {
    font-size: 21px;
  }

  .project-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .design-steps {
    grid-template-columns: 1fr 1fr;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .case-phone {
    width: 190px;
    margin: auto;
  }

  footer {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .design-steps {
    grid-template-columns: 1fr;
  }

  .design-steps article {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-results {
    gap: 16px;
  }

  .creative-courses article {
    grid-template-columns: 105px 1fr;
  }

  .creative-courses time {
    display: none;
  }
}
