* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 20px 100px;
    font-family: "Instrument Serif", serif;
    font-size: 20px;
    line-height: 1.3;
    background: linear-gradient(90deg, hsla(186, 33%, 94%, 1) 0%, hsla(216, 41%, 79%, 1) 100%);
    background: -moz-linear-gradient(90deg, hsla(186, 33%, 94%, 1) 0%, hsla(216, 41%, 79%, 1) 100%);
    background: -webkit-linear-gradient(90deg, hsla(186, 33%, 94%, 1) 0%, hsla(216, 41%, 79%, 1) 100%);
    color: #251605;
}


.container {
    max-width: 1440px;
    margin: 0 auto;
}

li a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline wavy;
    color:#EF6351;
    transition: 0.3s;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    align-content: center;
    gap: 20px;
    list-style: none;
}

.nav-link {
  padding: 0 20px;
  line-height: 20px;
}

.section-title {
    color: #f06452;
    letter-spacing: 1.5px;
}

.headline {
    position: relative;
    top: 20px;
    font-style: italic;
    font-size: 24px;
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    column-gap: 100px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.photo img {
    width: 100%;
    height: auto;
}

.column-1 {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: space-between;
}

.column-2 {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
    align-items: stretch; 
}

.social {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: stretch;
    list-style: none;
    gap: 20px;
}

.contacts-item, .educational-item, .english-level{
    font-weight: bold;
}

li > ul {
    font-weight: normal;
}

.quote {
    padding: 10px 20px;
    border-left: 4px solid #d1cfe2;
    font-style: italic;
    background-color: #f064522c;  
}

@media (max-width: 768px) {
  .section {
    width: 100%;
  }
}