* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', sans-serif;
    line-height: 1;
    font-weight: 400;
    color: #555;
    overflow-x: hidden;
}

.container {
    max-width: 120rem;
    padding: 0 3.2rem;
    margin: 0 auto;
}

.grid {
    display: grid;
}

.grid--2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4-cols {
    grid-template-columns: repeat(4, 1fr);
}

.grid--center-v {
    align-items: center;
}

.grid--left-img {
    grid-template-columns: 1fr 2fr;
}

.grid--right-img {
    grid-template-columns: 2fr 1fr;
}


/***************** header

 */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FDDF86;
    box-shadow: 0 2px 20px 3px #777;
    padding: 0 4.8rem;
    position: relative;
    height: 7.2rem;
}

.header-logo {
    text-decoration: none;
    font-size: 3rem;
    color: #333;
    font-weight: 700;

}

.main-nav {
    list-style: none;
}

.main-nav-list {
    list-style: none;
    display: flex;
    align-content: center;
    gap: 4.8rem;
    height: 7.2rem;
}

.main-nav-list-item {
    height: 7.2rem;
    position: relative;
}

.main-nav-link:link,
.main-nav-link:visited {
    display: inline-block;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    font-size: 1.8rem;
    transition: all 300ms;
    padding: 2.4rem;
    height: 100%;
}

.main-nav-link:hover,
.main-nav-link:active {
    color: #738d46;
}

.main-nav-link::after{
    content: '';
    position: absolute;
    width: 0;
    height: 5px;
    left: 50%;
    bottom:0;
    background-color: #738d46;
    transition: all ease-in-out .2s;
}
.main-nav-link:hover::after{
    width: 100%;
    left: 0;
}

.main-nav-lang {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: center;
}

.language {
    width: 3rem;
    cursor: pointer;
}

.btn-mobile-nav {
    position: relative;
    display: none;
    cursor: pointer;
    background: none;
}

.icon-mobile-nav {
    height: 4.8rem;
    width: 4.8rem;
    color: #333333;
}

.no-scroll {
    overflow-y: hidden;
}

.icon-mobile-nav[name="close-outline"] {
    display: none;
}


.heading-primary,
.heading-secondary,
.heading-tertiary {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #333;
}

.heading-primary {
    font-size: 5.2rem;
    line-height: 1.05;
    margin-bottom: 3.2rem;
    text-align: right;
}

.heading-secondary {
    font-size: 4.4rem;
    line-height: 1.22;
    margin-bottom: 9.6rem;
}

.heading-tertiary {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 3.2rem;
}

.section-main {
    background: linear-gradient(80deg, #F6FCED, #C0EB75);
    padding: 4.8rem 0 9.6rem 0;
}

.main {
    max-width: 130rem;
    margin: 0 auto;
    padding: 0 3.2rem 6.4rem 3.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 9.6rem;
}

.main-description {
    font-size: 2rem;
    line-height: 1.5;
    margin-bottom: 4.8rem;
    text-align: center;
}

.main-author {
    font-size: 1.8rem;
    line-height: 1.5;
    margin-bottom: 4.8rem;
    color: #666;
    text-align: right;
}

.img-main {
    width: 100%;
}

.btn,
.btn:link,
.btn:visited {
    display: inline-block;

    font-size: 2rem;
    font-weight: 600;
    padding: 1.6rem 3.2rem;
    text-decoration: none;
    border-radius: 9px;

    border: none;
    cursor: pointer;
    font-family: inherit;

    /* animation, it makes transition between chosen properties */
    /*transition: background-color 300ms;*/
    transition: all 300ms;
}

.btn--know-moore:link,
.btn--know-moore:visited {
    background-color: #C0EB75;
    color: #555;
}

.btn--know-moore:hover,
.btn--know-moore:active {
    background-color: #738d46;
    color: #fff;
}

.btn--questions:link,
.btn--questions:visited {
    background-color: #75C0EB;
    color: #444;
}

.btn--questions:hover,
.btn--questions:active {
    background-color: #3b6076;
    color: #fff;
}

.margin-right-sm {
    margin-right: 3.2rem !important;
}

.work-img-box {
    padding: 3.6rem;
}

.work-text-box {
    padding: 3.6rem;
}

.work-description {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.6;
}

.img-work {
    width: 100%;
    border-radius: 20px;
}

.padding-work-heading {
    margin-top: 3.6rem;
}

.section-about-me {
    background-color: #F6FCED;
}

.margin-top-sm {
    margin-top: 8rem;
}

.about-me-spacer {
    margin: 3.6rem;
    width: 93.66%;
    border-radius: 20px;
    justify-self: center;
    align-self: center;
}

.margin-bot-sm {
    margin-bottom: 9.6rem;
}

.about-me {
    display: flex;
    flex-direction: column;
    gap: 3.6rem;
}

.about-me-description {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 3.6rem;
    padding: 0 3.6rem;
}

.about-me-header {
    margin: 0 0 4.8rem 0;
    text-align: center;
}

.why-me-description {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.6;
    padding: 0 3.6rem;
}

.why-me-header {
    text-align: center;
    margin: 9.6rem 0 4.8rem 0 ;
}

.testimonials {
    position: relative;
    overflow: hidden;
    width: 300px;
}

.testInner {
    display: flex;
    position: absolute;
    width: 120rem;
}

.testimonial {
    display: flex;
    width: 300px;
    flex-direction: column;
    align-items: center;
    padding: 1.8rem 1.8rem 1.8rem 3.2rem;
    left: 0;
}

.testimonials-header {
    margin-top: 9.6rem;
    text-align: center;
}

.testimonial-text {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.6;
    padding: 2.8rem;
    background-color: #FDDF86;
    border-radius: 10px;
    font-style: italic;
}

.text-center {
    text-align: center;
}

.testimonial-img {
    width: 6rem;
    border: 5px solid #FDDF86;
    border-radius: 200px;
    margin-top: 1.2rem;
}

.testimonial-name {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.6;
    padding: 1.2rem;
}

.testimonial-arrow {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;

    border-top: 20px solid #FDDF86;
}

.testimonial-function {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.6;
}

.grid--testimonial {
    display: flex;
    justify-content: center;
}

.gallery {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 0.9rem;
    max-width: 85rem;
    justify-content: center;
    align-content: center;
    overflow: hidden;
}

.gallery-img {
    max-height: 15rem;
    overflow: hidden;
    object-fit: cover;
    text-align: center;
    display: block;
}
.gallery-img img{
    transition: all 500ms;
    max-height: 15rem;
}

.gallery-img img:hover {
    transform: scale(1.1);
}

.contact-cta {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    box-shadow: 2px 2px 20px rgba(153, 153, 153, 0.3);
    padding: 1.8rem;
    border-radius: 10px;
}

.cta-from {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.cta-from label {
    font-size: 1.8rem;
    padding-top: 1.5rem;
    font-weight: 600;
}

.cta-from input {
    font-size: 1.5rem;
    padding: 1rem;
    font-weight: 400;
    border-radius: 5px;
    border-color: #75C0EB;
}

.cta-from input:link {
    border-color: #C0EB75;
}

.cta-from textarea {
    font-size: 1.5rem;
    padding: 1rem;
    font-weight: 400;
    border-radius: 5px;
    border-color: #75C0EB;
    resize: none;
}

.contact-img {
    align-self: center;
}

.contact-img img{
    width: 100%;
    border-radius: 10px;
}

.section-contact {
    background: linear-gradient(#F6FCED, #C0EB75);
}

.contact-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 3.6rem 1.6rem;
    gap: 1.8rem;
}

.contacts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-header {
    padding-top: 9.6rem;
}

.contact-details {
    background-color: #FDDF86;
    padding: 1.8rem;
    border-radius: 10px;
    box-shadow: 2px 2px 20px rgba(153, 153, 153, 0.3);
}

.contacts p {
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
}

.contacts span {
    font-weight: 600;
}

.contacts h4 {
    font-size: 2.2rem;
    font-style: normal;
    margin: 0 0 3.6rem 0;
}

.contacts h5 {
    font-size: 1.8rem;
    font-style: normal;
    margin: 0 0 2.8rem 0;
}

.footer-site {
    background-color: #C0EB75;
    height: 6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-site p {
    font-size: 1.4rem;
    align-self: center;
}

.padding-bot-sm {
    padding-bottom: 9.6rem;
}

.padding-top-sm {
    padding-bottom: 9.6rem;
}

.sticky .header{
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 7.2rem;
    padding-top: 0;
    padding-bottom: 0;
    background-color: rgba(252, 252, 252, 0.9);
    z-index: 40;
    box-shadow: 0 1.2rem 3.2rem rgba(0,0,0, 0.03);
}

.sticky .section-main {
    margin-top: 7.2rem;
}
