:root {
  --lightgrey: #f3f5fa;
  --grey: #e8eaed;
  --text-color: #242424;
  --red: #ff3f00;
  --darkred: #c63404;
  --white: #ffffff;
}
body {
  font-optical-sizing: auto;
  font-style: normal;
  background-color: var(--lightgrey);
}

.h-100 {
  height: 100vh;
}
.zzp-btn-wrapper {
  display: flex;
  justify-content: flex-end;
  padding: 20px 15px 0;
}
@media only screen and (min-width: 768px) {
  .zzp-btn-wrapper {
    position: absolute;
    width: calc(100% - 60px);
  padding: 30px 30px 0;
  }
}
.zzp-btn {
  padding: 11px 20px;
  border-radius: 12px;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
  color: var(--text-color);
  background-color: var(--white);
  transition: background-color 0.3s;  
}

.zzp-btn:hover {
  background-color: var(--grey);
}

.profile-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  margin: auto;
}

@media only screen and (min-width: 768px) {
  .profile-wrapper {
    width: calc((100% / 12) * 8);
  }
}

@media only screen and (min-width: 1200px) {
  .profile-wrapper {
    width: calc((100% / 12) * 6); 
  }
}

.profile {
  color: var(--text-color);
  display: grid;
  background-color: var(--white);
  border-radius: 20px;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  font-family: "DM Sans", sans-serif;
  grid-template-areas:
    "image image"
    "top top"
    "contact contact"
    "company company"
    "codes codes"
    "numbers numbers";
  gap: 24px;
  font-size: 14px;
  line-height: calc(22 / 14);
  padding: 12px 12px 48px 24px;
} 

@media only screen and (min-width: 567px) {
  .profile {
    font-size: 16px;
    line-height: calc(25 / 16);
    gap: 32px 56px;
    padding: 12px 12px 40px 56px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "image image"
      "top top"
      "contact contact"
      "company codes"
      "numbers codes";
  }
}

.profile a {
  color: var(--text-color);
  text-decoration: none;
}

.profile-images {
  grid-area: image;
  display: flex;
  justify-content: space-between;
  gap: 10px; 
  align-items: flex-start;
}

.profile-images .profile-picture {
  width: 160px;
  height: 160px;
  display: block;
  margin: -44px 0 4px;
  border: solid 4px var(--white);
  border-radius: 16px;
  overflow: hidden;
  min-width: 160px;
  background-color: var(--lightgrey);
}

.profile-images .profile-picture .men,
.profile-images .profile-picture .women {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-images .profile-picture .men svg,
.profile-images .profile-picture .women svg{
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  opacity: .7;
}

.profile .profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-images .logo {
  width: 160px;
  border: solid var(--lightgrey) 2px;
  border-radius: 16px;
  display: flex;
  align-items: center ;
  padding: 10px;
  justify-content: center;
  aspect-ratio:  16 / 10;
}

.profile-images .logo img{
  max-width: 100px;
}

@media only screen and (min-width: 1200px) {
  .profile-images .logo {
    padding: 10px 36px;
  }
}

.profile .logo img {
  width: 100%;
  object-fit: contain;
}

.profile-top {
  grid-area: top;
}

.profile-top .name {
  font-weight: 600;
  font-size: 24px;
  line-height: calc(32 / 24);
  letter-spacing: -0.02em;
}

.profile-top .date {
  font-weight: 500;
  opacity: 0.8;
}

@media only screen and (min-width: 768px) {
  .profile-top .name {
    font-size: 28px;
  }
}

.profile-contact {
  grid-area: contact;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.profile-contact .contact{
  display: flex;
}

.profile-contact .contact a{
  background-color: var(--lightgrey);
  border-radius: 12px;
  padding: 10px 16px;
  transition: background-color 0.3s;
}

@media only screen and (min-width: 768px) {
  .profile-contact .contact a{
    padding: 11px 20px;
  }
}

.profile-contact .contact a:hover {
  background-color: var(--grey);
}

.profile-contact .contact svg{
  width: 15px;
  height: 15px;
}

.profile-contact .contact.cv a{
  background-color: var(--red);
  color: var(--white);
}

.profile-contact .contact.cv a:hover {
  background-color: var(--darkred);
}

.profile-contact .contact.cv a svg{
  width: 10px;
  height: 15px;
  margin: 0 15px;
}

@media only screen and (min-width: 768px) {
  .profile-contact .contact.cv a svg{
    height: 10px;
  }
}

.profile a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-company {
  grid-area: company;
  opacity: 0.8;
}

.profile-codes {
  grid-area: codes;
  opacity: 0.8;
}

.profile-company-numbers {
  opacity: 0.8;
  grid-area: numbers;
}

.profile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

