html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

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

p,
h1,
h2,
h3,
h4 {
    margin: 0;
}

button {
    border: none;
    font-family: inherit;
    cursor: pointer;
}

body {
    font-family: "Geologica", sans-serif;
    position: relative;
    background-color: var(--grey);
}

:root {
    --black: #1D1D1B;
    --grey: #E9E9E8;
    --green: #198F76;
    --pink: #C15191;
    --rose: #C495C4;
    --light-blue: #799FCC;
}

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

.header {
    position: sticky;
    top: 0;
    background-color: var(--grey);
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    padding: 30px 55px;
    align-items: center;
    height: 130px;
}

.header-nav {
    margin-right: 14%;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.burger div {
    background-color: var(--black);
    height: 3px;
    width: 100%;
}

.header-nav-list {
    display: flex;
    gap: 17%;
}

.header-nav-link {
    font-size: 20px;
    font-weight: 500;
    line-height: 23px;
    white-space: nowrap;
    color: var(--black);
    transition: color 0.3s ease-in-out;
}

.header-nav-link:hover {
    color: #136856;
}

.header-nav-link:active {
    color: #136856;
}

.language-form {
    position: relative;
    right: -2%;
    display: inline-flex;
    gap: 2px;
    border: 1px solid #BFBFBF;
    border-radius: 15px;
    width: 48px;
    height: 26px;
}

.language-form,
.language-label,
.language-label-radio {
    cursor: pointer;
}

.language-label {
    position: relative;
}

.language-label-text {
    position: absolute;
    top: -12px;
    left: 4px;
    font-size: 8px;
    color: #BFBFBF;
    transition: color 0.3s ease;
}

.language-label.selected .language-label-text {
    color: var(--black);
}

.language-label-radio {
    opacity: 0;
    width: 22px;
    height: 22px;
    position: relative;
    top: 1px;
}

.language-label-text::after {
    content: '';
    background-color: var(--green);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    position: absolute;
    top: 13px;
    left: -4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-label.selected .language-label-text::after {
    opacity: 1;
}

.contacts {
    display: flex;
    gap: 18px;
}

.contacts-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.contacts-item circle {
    fill: var(--green);
    transition: fill 0.3s ease-in-out;
}

.contacts-item:hover circle {
    fill: #01A582;
}

.contacts-item:active circle {
    fill: #136856;
}

.hero {
    padding: 48px 55px 100px;
    background-image: url('../img/hero-diving.png');
    background-position: right 55px bottom 130px;
    background-repeat: no-repeat;
}

.hero-container {
    width: 745px;
    padding-top: 112px;
    padding-bottom: 156px;
}

.hero-title {
    margin-bottom: 38px;
    font-size: 60px;
    font-weight: 900;
    line-height: 80px;
    text-transform: uppercase;
}

.hero-text {
    margin-bottom: 48px;
    color: var(--black);
    font-size: 20px;
    font-weight: 400;
    line-height: 23px;
    letter-spacing: 0.2px;
}

.hero-title--color-pink {
    color: var(--pink);
}

.hero-btn {
    padding: 11px 32px;
    border-radius: 30px;
    color: var(--grey);
    background-color: var(--green);
    font-size: 20px;
    font-weight: 500;
    line-height: 23px;
    transition: background-color 0.3s ease-in-out;
}

.hero-btn:hover {
    background-color: #01A582;
}

.hero-btn:active {
    background-color: #136856;
}

.about-project-container {
    padding: 30px 55px 100px;
}

.about-project-inner-container {
    display: flex;
}

.subtitle {
    font-size: 50px;
    font-weight: 900;
    line-height: 62.5px;
    text-transform: uppercase;
}

.about-project-subtitle {
    margin-bottom: 60px;
    color: var(--black);
}

.about-project-left {
    margin-right: 147px;
}

.about-project-left-card {
    max-width: 500px;
    min-height: 114px;
    padding: 27px 40px;
    border-radius: 30px;
    background-color: var(--pink);
    color: var(--grey);
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
}

.about-project-left-arrow {
    text-align: center;
    line-height: 0;
}

.about-project-right {
    max-width: 663px;
    padding-top: 20px;
}

.about-project-right-subtitle {
    margin-bottom: 23px;
    font-size: 30px;
    font-weight: 600;
    line-height: 37.5px;
    color: var(--black);
    text-transform: uppercase;
}

.about-project-right-descr {
    font-size: 20px;
    font-weight: 400;
    line-height: 23px;
}

.about-project-right-descr:not(:last-child) {
    margin-bottom: 23px;
}

.about-project-2 {
    padding-top: 15px;
    padding-bottom: 15px;
}

.about-project-2-container {
    padding: 60px 55px 100px;
    border-radius: 30px;
    background-color: var(--green);
}

.about-project-2-subtitle {
    max-width: 1050px;
    margin-bottom: 63px;
    font-size: 30px;
    font-weight: 600;
    line-height: 37.5px;
    color: var(--grey);
    text-transform: uppercase;
}

.about-project-2-inner-container {
    display: flex;
}

.about-project-2-left {
    max-width: 740px;
    margin-right: 40px;
    padding: 58px 38px;
    background-color: var(--rose);
    border-radius: 30px;
}

.about-project-2-left-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 23px;
    color: var(--black);
}

.about-project-2-left-text:not(:last-child) {
    margin-bottom: 23px;
}

.about-project-2-right-text {
    padding: 29px 39px;
    border-radius: 30px;
    background-color: var(--rose);
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    color: var(--black);
    text-align: center;
    vertical-align: middle;
}

.about-project-2-right-text:not(:last-child) {
    margin-bottom: 39px;
}

.skills-container {
    padding: 63px 55px 171px;
}

.skills-subtitle {
    color: var(--pink);
    margin-bottom: 60px;
}

.skills-list {
    display: flex;
    justify-content: center;
    gap: 34px;
}

.skills-item {
    width: 300px;
    padding-top: 129px;
    display: flex;
    flex-direction: column;
    align-content: center;
    background-repeat: no-repeat;
    background-position: top 20px left 105px;
}

.skills-item-1 {
    background-image: url('../img/diving-skills-1.svg');
}

.skills-item-2 {
    background-image: url('../img/diving-skills-2.svg');
}

.skills-item-3 {
    background-image: url('../img/diving-skills-3.svg');
}

.skills-item-4 {
    background-image: url('../img/diving-skills-4.svg');
}

.skills-list-subtitle {
    margin: 0 auto;
    margin-bottom: 17px;
    font-size: 20px;
    font-weight: 600;
    line-height: 23px;
    color: var(--black);
}

.skills-list-descr {
    font-size: 18px;
    font-weight: 400;
    line-height: 23px;
    text-align: center;
    color: var(--black);
}

.realization {
    padding-bottom: 15px;
}

.realization-container {
    padding: 60px 55px 100px;
    border-radius: 30px;
    background-color: var(--light-blue);
}

.realization-subtitle {
    color: var(--grey);
    margin-bottom: 60px;
}

.realization-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.realization-card {
    position: relative;
    width: 412px;
    height: 550px;
    background-color: var(--rose);
    border-radius: 30px;
}

.relization-name {
    position: absolute;
    top: 438px;
    left: 48px;
    font-size: 22px;
    font-weight: 600;
    line-height: 23px;
    color: var(--grey);
}

.realization-role {
    position: absolute;
    top: 478px;
    left: 48px;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
    color: var(--grey);
}

@media screen and (max-width: 1249px) {
    .burger {
        display: flex;
        position: relative;
        left: 10px;
        z-index: 20;
    }

    .line1,
    .line2,
    .line3 {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .header-nav-list {
        display: none;
    }

    .header-nav-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        z-index: 15;
        top: 20px;
        left: 0;
        width: 100%;
        gap: 30px;
        padding: 30px 10px 50px;
        background-color: var(--grey);
    }

    .header-nav-active li {
        text-align: center;
    }

    .language-form {
        right: 10px;
    }

    .footer-nav {
        display: none;
    }
}

@media screen and (max-width: 1070px) {
    .container {
        max-width: 700px;
    }

    .header-container {
        height: 100px;
        padding: 17px 0px;
    }

    .hero {
        padding: 0;
        background-position: right 0px bottom 46px;
        background-size: 100%;
    }

    .hero-container {
        width: 420px;
        padding-top: 29px;
        padding-bottom: 227px;
    }

    .hero-title {
        margin-bottom: 24px;
        font-size: 46px;
        line-height: 60px;
    }

    .hero-text {
        margin-bottom: 36px;
        font-size: 18px;
    }

    .hero-btn {
        padding: 10px 30px;
        font-size: 14px;
    }

    .about-project-container {
        padding: 0px 0px 12px;
    }

    .about-project-inner-container {
        flex-direction: column;
        gap: 50px;
    }

    .subtitle {
        font-size: 40px;
        line-height: 50px;
    }

    .about-project-subtitle {
        margin-bottom: 40px;
        padding-left: 24px;
    }

    .about-project-left {
        margin: 0 auto;
    }

    .about-project-left-card {
        min-height: 107px;
        font-size: 23px;
        line-height: 26px;
    }

    .about-project-right {
        padding-left: 30px;
    }

    .about-project-right-subtitle {
        font-size: 25px;
        line-height: 31px;
    }

    .about-project-right-descr {
        font-size: 17px;
        line-height: 22px;
    }

    .about-project-2-container {
        padding: 41px 30px 48px;
    }

    .about-project-2-subtitle {
        margin-bottom: 44px;
        font-size: 25px;
        line-height: 28px;
    }

    .about-project-2-inner-container {
        flex-direction: column;
    }

    .about-project-2-left {
        margin-right: 0;
        padding: 41px 31px;
        margin-bottom: 29px;
    }

    .about-project-2-left-text {
        font-size: 16px;
        line-height: 21px;
    }

    .about-project-2-left-text:not(:last-child) {
        margin-bottom: 21px;
    }

    .about-project-2-right-text {
        padding: 29px 33px;
        font-size: 18px;
        line-height: 24px;
    }

    .about-project-2-right-text:not(:last-child) {
        margin-bottom: 29px;
    }

    .skills-container {
        padding: 46px 24px 130px;
    }

    .skills-subtitle {
        margin-bottom: 36px;
    }
    
    .skills-list {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 600px) {
    .container {
        max-width: 345px;
    }

    .header-container {
        height: 62px;
    }

    .header-logo {
        width: 68px;
    }

    .header-nav-active {
        top: 5px;
        padding: 50px 10px;
    }

    .header-nav-link {
        font-size: 16px;
    }

    .contacts {
        gap: 5px;
    }

    .contacts-item {
        width: 30px;
        height: 30px;
    }

    .contacts-item svg {
        width: 100%;
        height: 100%;
    }

    .hero-container {
        width: 350px;
        padding-top: 29px;
        padding-bottom: 209px;
        padding-right: 42px;
    }

    .hero-title {
        margin-bottom: 24px;
        font-size: 32px;
        line-height: 45px;
    }

    .hero-text {
        margin-bottom: 29px;
        font-size: 16px;
    }

    .hero-btn {
        padding: 4px 22px;
        font-size: 14px;
    }

    .about-project-inner-container {
        gap: 0;
    }

    .subtitle {
        font-size: 28px;
        line-height: 35px;
    }

    .about-project-subtitle {
        margin-bottom: 23px;
        padding-left: 24px;
    }

    .about-project-left {
        margin-right: 0px;
    }

    .about-project-left-card {
        min-height: 99px;
        font-size: 18px;
        line-height: 22.5px;
    }

    .about-project-right {
        padding-top: 29px;
        padding-left: 0;
    }

    .about-project-right-subtitle {
        font-size: 20px;
        line-height: 24px;
    }

    .about-project-right-descr {
        font-size: 14px;
        line-height: 20px;
    }

    .about-project-2-container {
        padding: 23px 24px 26px;
    }

    .about-project-2-subtitle {
        margin-bottom: 25px;
        font-size: 20px;
        line-height: 25px;
    }

    .about-project-2-left {
        padding: 24px 23px;
        margin-bottom: 18px;
    }

    .about-project-2-left-text {
        font-size: 12px;
        line-height: 18px;
    }

    .about-project-2-left-text:not(:last-child) {
        margin-bottom: 18px;
    }

    .about-project-2-right-text {
        padding: 29px 26px;
        font-size: 14px;
        line-height: 17.5px;
    }

    .about-project-2-right-text:not(:last-child) {
        margin-bottom: 18px;
    }

    .skills-container {
        padding: 29px 24px 90px;
    }

    .skills-subtitle {
        margin-bottom: 23px;
    }

    .realization-container {
        padding: 25px 23px 50px;
    }

    .realization-subtitle {
        margin-bottom: 23px;
    }

    .realization-card {
        height: 396px;
    }

    .relization-name {
        top: 306px;
        left: 25px;
        font-size: 18px;
        line-height: 23px;
    }

    .realization-role {
        top: 333px;
        left: 25px;
        font-size: 12px;
        line-height: 23px;
    }
}