/* merriweather-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/merriweather-v33-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* merriweather-italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/merriweather-v33-latin_latin-ext-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* merriweather-700 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/merriweather-v33-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

html {
    font-family: "Merriweather", serif;
    font-size: 87.5%;
    line-height: 1.3;
    scroll-behavior: smooth;
}

main {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox, Safari 18.2+, Chromium 121+ */
}
body::-webkit-scrollbar { 
    display: none;  /* Older Safari and Chromium */
}

:root {
    --bg-main: #EEEEEE;
    --surface-color: #FFFFFF;
    --surface-darker-color: #16324F;
    --border-color: #16324F;
    --text-main: #13293D;
    --text-dark: #6fa1c5;
    --link: #225779;
    --accent-color: #16324F;
    --accent-lighter-color: #EEEEEE;

    /*--primary-color: #a6af84;
    --secondary-color: #3c673c;
    --accent-color: #9a8246;*/
    --corners-radius: 20px;
    --borders-size: 2px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    overflow-x: hidden;
}

a {
    color: var(--link);
    font-weight: bold;
}

.about, .contact, .main-image {
    background-color: var(--surface-color);
    border: var(--borders-size) solid var(--border-color);
    border-radius: var(--corners-radius);
}

.accordion {
    background-color: var(--surface-darker-color);
    border: var(--borders-size) solid var(--border-color);
    border-radius: var(--corners-radius);
}

.accordion-header {
    color: var(--text-dark);
    text-transform: uppercase;
}

.accordion-content {
    color: var(--accent-lighter-color);
}

.desktop-only {
    display: none;
}

.contact h4 {
    color: var(--accent-color);
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid var(--accent-color);
    margin: 0.5rem 0;
    padding: 0;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    position: fixed;
    background-color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    height: 6rem;
    width: 100%;
    box-shadow: 0 -1px 0 var(--accent-color);
    transition: transform 0.3s ease-out;
}

.header.hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in;
}

body {
    padding-top: 6rem;
}

.logo {
    -webkit-tap-highlight-color: transparent;
    height: 100%;
}

.logo:active img {
    filter: brightness(0.85);
    transition: filter 0.1s ease-in-out;
}

.logo-img {
    display: block;
    height: 100%;
    width: 100%;
}

.two-columns-stretch {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.two-columns-stretch > * {
    flex: 1 1 calc(50% - 0.5rem);
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: center;
}

.professions-container {
    margin: 2% 5%;
}

.accordion {
    max-width: 250px;
    margin-left: auto;
    margin-right: auto; 
}

.accordion-header {
    width: 100%;
    padding: 0.5rem 1.5rem;
    background: none;
    border: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    height: 3rem;
}

.accordion-header:hover {
    filter: brightness(0.8);
    transition: filter 0.1s ease-in-out;
}

.accordion-header:active {
    filter: brightness(0.5);
    transition: filter 0.1s ease-in-out;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;  
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    text-align: center;
}

.accordion.open .accordion-content {
    max-height: 200px;
    padding-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.small .accordion-header {
    font-size: 10px;
    height: 2rem;
    text-align: center;
}

.small {
    max-width: 160px;
}

.main-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image {
    width: 50%;
    display: block;
}

.about {
    padding: 1rem;
    margin: 1rem 2rem;
}

.about h1 {
    text-align: center;
}

.about p {
    text-align: left;
}

.contacts-container {
    padding: 5rem;
    padding-top: 0rem;
    padding-bottom: 2rem;
}

.contact {
    padding: 1rem 1rem 0 1rem;
    text-align: center;
}

.contact-image {
     height: 1rem;
     width: 1rem;
}

.footer {
    margin-top: 2rem;
    padding: 2rem;
    padding-bottom: 0.5rem;
    box-shadow: 0px 0px 5px;
    background-color: #EEEEEE;
    font-size: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.author {
    color: var(--text-main);
    text-decoration: underline dotted;
    font-weight: normal;
}

.about p {
    margin-bottom: 0.5rem;
}

.image-logo {
    margin: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-logo img {
    width: 75%;
    height: auto;
}

.soft-shadow, .accordion {
    box-shadow: 2px 4px 6px -1px rgba(0, 0, 0, 0.2);
}

@media (max-width: 400px) { 
    .small {
        max-width: 120px;
    }

    .small .accordion-header {
            padding: 0;
    }

    .contacts-container {
        justify-content: center;
        padding-top: 0rem;
        padding-bottom: 2rem;
    }
}

@media (max-witdh: 375px) {
    .contacts-container {
        padding: 0 1rem 2rem 1rem;
    }
}

@media (max-width: 320px) {
    .two-columns, .two-columns-stretch {
        grid-template-columns: 1fr;
    }

    .professions-container, 
    .contacts-container, 
    .about, 
    .image-logo {
        margin-left: 1rem;
        margin-right: 1rem;
        padding-left: 0;
        padding-right: 0;
    }

    .footer {
        margin-left: 1rem;
        margin-right: 1rem;
        width: calc(100% - 2rem);
    }
    .accordion {
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1024px) {
    
    .laptop-split {
        padding: 2rem 5rem;
        display: flex;
        gap: 5rem;
    }

    .laptop-split-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        flex: 1 1 66.66%;
        align-items: center;
    }

    .professions-container {
        flex: 1 1 33.33%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        align-items: center;
        padding: 0;
        margin: 1% 2.5%;
    }

    .accordion {
        max-width: none;
    }

    .accordion-header{
        height: 5rem;
    }

    .small .accordion-header {
        height: 3rem;
        width: 100%;
    }

    .small {
        width: 50%;
    }

    .image-logo {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        padding: 1rem;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-logo img {
        width: 75%;
        height: auto;
    }

    .main-image-container {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-image {
        width: 75%;
        display: block;
        height: auto;
    }

    .about {
        grid-column: span 2;
        grid-row: 2;
        margin: 0;
        padding: 2rem;
    }

    .contacts-container {
        justify-content: center;
        gap: 5rem;
    }

    .contact {
        max-width: 350px;
    }

    .desktop-only {
        display: block;
    }

    .header {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
        justify-content: center;
        height: 6rem;
    }

    .logo {
        height: 6rem;
        width: 6rem;
        justify-self: center;
    }

    .quote {
        justify-self: center;
        padding: 0 2em;
    }

    .quote p {
        font-style: italic;
        color: var(--bg-main);
    }

    .quote-left p {
        text-align: right;
    }

    .quote-right p {
        text-align: right;
    }

    .quote-author {
        font-size: 75%;
    }

    .footer {
        justify-content: center;
    }
}
