:root {
    --fc-white: #FFFFFF;

    --fc-light-blue: #3D6089;
    --fc-blue: #093D64;
    --fc-dark-blue: #071A2F;
    
    --fc-light-beige: #F6F3F0;
    --fc-beige: #E4DCD2;
    --fc-dark-beige: #6C5C46;

    --fc-orange: #F2522E;
    --fc-yellow: #EAAD5A;

    --font-size-h1: 89px;
    --font-size-h2: 72px;

    /* buttons color */
}

/* noize */

:root{
    --app-height:100%
}

@media screen and (min-width:480px) {
    .page__noise {
        position:fixed;
        top:0;
        left:0;
        right:0;
        bottom:0;
        width:100%;
        height:100%;
        height:var(--app-height);
        background-image:url(https://static.tildacdn.com/tild3830-3138-4531-a133-346265356461/Mask_groups.jpg);
        background-size:170px;
        opacity:0;
        transition:opacity 0.3s ease;
        pointer-events:none;
        z-index: -1;
    }

    .page__noise--visible {
        opacity:.1;
        mix-blend-mode: normal;
    }
}

/* fonts */

@font-face {
    font-display: swap;
    font-family: "Rubik-Regular";
    src: url("../fonts/Rubik-Regular.ttf");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: "Rubik-Medium";
    src: url("../fonts/Rubik-Medium.ttf");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: "Rubik-Bold";
    src: url("../fonts/Rubik-Bold.ttf");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: "Rubik-ExtraBold";
    src: url("../fonts/Rubik-ExtraBold.ttf");
    font-weight: 800;
    font-style: normal;
}

.d-none {
    display: none;
}

.error {
    display: block;
    color: red;
}

.fw-medium {
    /* 500 */
    font-family: "Rubik-Medium"; 
}

.fw-bold {
    /* 700 */
    font-family: "Rubik-Bold"; 
}

.fw-extra-bold {
    /* 800 */
    font-family: "Rubik-ExtraBold";
}

/* buttons */

.button {
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 18px;
    border-radius: 96px;
    transition: 0.5s;
}

button:disabled {
    background-color: var(--fc-beige);
    border: 1px solid var(--fc-beige);
    cursor: default;
}




/* оранжевые кнопки */
.button-orange {
    background-color: var(--fc-orange);
    border: 1px solid var(--fc-orange);
    color: var(--fc-white);
}

.button-orange:hover {
    color: var(--fc-orange);
    background-color: var(--fc-light-beige);
}

.button-orange-transparent {
    background-color: var(--fc-light-beige);
    border: 1px solid var(--fc-orange);
    color: var(--fc-orange);
}

.button-orange-transparent:hover {
    background-color: var(--fc-orange);
    color: var(--fc-white);
}

/* синяя кнопка */
.button-blue {
    background-color: var(--fc-blue);
    border: 1px solid var(--fc-blue);
    color: var(--fc-white);
}

.button-blue:hover {
    color: var(--fc-blue);
    background-color: var(--fc-light-beige);
}

.button-blue-transparent {
    background-color: var(--fc-light-beige);
    border: 1px solid var(--fc-blue);
    color: var(--fc-blue);
}

.button-blue-transparent:hover {
    background-color: var(--fc-blue);
    color: var(--fc-white);
}

/* general */

* {
    box-sizing: border-box;
}

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

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

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

h1, h2, p {
    margin: 0;
    padding: 0;
}

body {
    color: var(--fc-blue);
    font-family: "Rubik-Regular";
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    padding: 0;
}

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

.flex-grow-1 {
    flex-grow: 1;
}

.p-relative {
    position: relative;
}

section {
    padding: 96px 0;
}

/* header */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 128px;
    padding-top: 32px;
    border-bottom: dashed 2px var(--fc-blue);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 72px;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 18px;
    line-height: 26px;
}

.header__menu li:first-child {
    position: relative;
    padding-right: 36px;
}

.header__menu li:first-child:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: url(../img/logo/photo-processing-logo.svg) no-repeat center;
    width: 24px;
    height: 21px;
}

.header-line {
    width: 2px;
    height: 26px;
    background-color: var(--fc-blue);
}

.header__social {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* main banner */

.preview__title {
    text-align: center;
    font-size: var(--font-size-h1);
    line-height: 97px;
    padding-bottom: 24px;
    text-transform: uppercase;
}

.preview__backgroung {
    background: url(../img/main-banner.png) no-repeat center;
    height: 1667px;
    background-size: cover;
}

.preview__container {
    height: inherit;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    align-items: center;
    justify-items: end;
}

.preview__top {
    grid-column: 2;
    max-width: 824px;
}

.preview__top h2 {
    font-size: 41px;
    line-height: 50px;
    padding-bottom: 55px;
}

.preview__bottom {
    grid-row: 4;
}

.preview__bottom h2 {
    font-size: 38px;
    line-height: 46px;
}

/* кнопка на главном баннере */
.preview-button {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 16px 0;
    border-radius: 237.55px;
    font-size: 50px;
    line-height: 60px;
}

.preview-button::after {
    content: '';
    background: url(../img/logo/arrow_down.svg) no-repeat center;
    width: 60px;
    height: 60px;
}

/* restoration */

.restoration__background-img {
    position: absolute;
    width: 100%;
    height: auto;
}

.restoration__container {
    display: grid;
    grid-template-columns: 4fr 2fr;
    grid-template-rows: 800px;
    gap: 32px;
}

.form-group {
    padding: 40px;
    background-color: var(--fc-light-beige);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    label {
        cursor: pointer;
        position: relative;
    }

    input {
        display: none;
    }
}

.form-group-title {
    color: var(--fc-blue);
    font-size: 32px;
    line-height: 40px;
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 48px;
}

.uploading-button {
    padding: 16px 90px;
}

.restoration-settings__item {
    display: flex;
    align-items: center;
    gap: 24px;
}

.restoration-settings__item:not(:last-child) {
    padding-bottom: 32px;
}

.restoration-setting-desc {
    font-size: 14px;
    line-height: 22px;
    color: var(--fc-dark-beige);
    background: #E4DCD2;
    padding: 8px 16px;
}

.restoration-settings-button {
    padding: 16px 82px;
}

/* switch */

.switch__wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
}

.switch__wrapper > h2 {
    font-size: 18px;
    line-height: 26px;
}

.switch {
    display: inline-block;
    position: relative;
    width: 48px;
    height: 24px;
}

.switch__input {
    height: 0;
    width: 0;
    opacity: 0;
}

.switch__slider {
    width: 48px;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-radius: 96px;
    border: 2px solid var(--fc-light-blue);
    background-color: #F6F3F0;
    -webkit-border-radius: 96px;
    -moz-border-radius: 96px;
    -ms-border-radius: 96px;
    -o-border-radius: 96px;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

.switch__slider::before {
    content: "";
    position: absolute;
    cursor: pointer;
    left: 3px;
    bottom: 2px;
    height: 16px;
    width: 16px;
    background-color: var(--fc-light-blue);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

.switch__input:focus + .switch__slider {
    box-shadow: 0 0 1px var(--fc-blue);
}

.switch__input:checked + .switch__slider {
    background-color: var(--fc-light-blue);
}

.switch__input:checked + .switch__slider::before {
    transform: translateX(22px);
    background-color: #FFFFFF;
    -webkit-transform: translateX(22px);
    -moz-transform: translateX(22px);
    -ms-transform: translateX(22px);
    -o-transform: translateX(22px);
}

.uploading-buttons__wrapper {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
    background-color: #F6F3F0;
    text-align: center;
}

.delete-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 42px;
}

.delete-button::after {
    content: '';
    background: url(../img/logo/delete-icon.svg) no-repeat center;
    width: 24px;
    height: 24px;
}

.another-photo-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 38px;
}

.another-photo-button::after {
    content: '';
    background: url(../img/logo/another-photo-icon.svg) no-repeat center;
    width: 24px;
    height: 24px;
    input {
        display: none;
    }
}






/* restoration process */

.section__title {
    font-size: var(--font-size-h2);
    line-height: 80px;
    padding: 0 0 72px 0;
    text-transform: uppercase;
    text-align: center;
}

.process__background-img img {
    width: 100%;
    height: auto;
}

.process__background-img img + img {
    margin-top: -150px;
}

.process__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.process-item {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.process-title {
    color: var(--fc-blue);
    text-transform: uppercase;
    font-size: 32px;
    line-height: 40px;
}

.process-item:nth-child(1) .process-title {
    span {
        color: var(--fc-orange);
    }
}

.process-item:nth-child(2) .process-title {
    span {
        color: var(--fc-yellow);
    }
}

.process-item:nth-child(3) .process-title {
    span {
        color: var(--fc-light-blue);
    }
}

.process-text {
    color: var(--fc-dark-blue);
    font-size: 24px;
    line-height: 32px;
}

/* advantages */

.advantages__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 96px;
}

.card-item {
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    perspective: 1000px;
}

.front, .back {
    cursor: pointer;
    padding: 50%;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    line-height: 40px;
    text-transform: uppercase;
    transition: 1s;
    backface-visibility: hidden;
}

.front {
    color: var(--fc-white);
}

.back {
    background-color: transparent;
    transform: rotateY(180deg);
}

.card-item:nth-child(1) .front {
    background-color: var(--fc-blue);
}

.card-item:nth-child(1) .back {
    color: var(--fc-blue);
    border: 1px solid var(--fc-blue)
}

.card-item:nth-child(2) .front {
    background-color: var(--fc-orange);
}

.card-item:nth-child(2) .back {
    color: var(--fc-orange);
    border: 1px solid var(--fc-orange)
}

.card-item:nth-child(3) .front {
    background-color: var(--fc-yellow);
}

.card-item:nth-child(3) .back {
    color: var(--fc-yellow);
    border: 1px solid var(--fc-yellow)
}

.card-item:nth-child(4) .front {
    background-color: var(--fc-light-blue);
}

.card-item:nth-child(4) .back {
    color: var(--fc-light-blue);
    border: 1px solid var(--fc-light-blue)
}

.card-item:hover .front {
    transform: rotateY(180deg);
}
  
.card-item:hover .back {
    transform: rotateY(360deg);
}

.advantages__text {
    max-width: 1256px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: repeat(4, auto);
}

.advantages-item:nth-child(1) {
    grid-row: 1;
}

.advantages-item:nth-child(2) {
    grid-row: 2;
    grid-column: 2;
}

.advantages-item:nth-child(3)  {
    grid-row: 3;
    grid-column: 3;

    .advantages-title {
        font-size: 45px;

        span {
            font-size: 89px;
        }
    }
}

.advantages-item:nth-child(4) {
    grid-row: 4;
    grid-column: 4;
}

.advantages-title {
    color: var(--fc-blue);
    font-size: 89px;
    line-height: 97px;
}

.advantages-desc {
    color: #513300;
    font-size: 24px;
    line-height: 32px;
}

/* FAQ */

.question__wrapper {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(500px, 1fr) );
    gap: 72px;
}

.question-img {
    width: 100%;
    height: auto;
}

.question-container .question p {
    color: var(--fc-blue);
    font-size: 18px;
    line-height: 26px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}

.question-container .question p.active {
    padding-top: 24px;
    max-height: 100%;
    opacity: 1;
}

.question-container .question .question-button .arrow-down {
    transition: transform 0.3s ease-in;
    -webkit-transition: transform 0.3s ease-in;
    -moz-transition: transform 0.3s ease-in;
    -ms-transition: transform 0.3s ease-in;
    -o-transition: transform 0.3s ease-in;
}

.question-container .question .question-button .arrow-down.rotate {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
}

.question {
    padding: 24px 0 48px 0;
    border-bottom: 1px solid #AA9982;
}

.question:first-child {
    border-top: 1px solid #AA9982;
}

.question-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.question-title {
    font-size: 30px;
    line-height: 38px;
    color: var(--fc-dark-blue);
    text-align: left;
}

/* footer */

footer {
    margin-bottom: 64px;
}

.footer-container {
    height: 262px;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
    padding: 24px 48px;
    background-color: var(--fc-blue);
    color: var(--fc-white);
}

.footer-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .share-links div:nth-child(1) {
        font-size: 18px;
    }

    .share-links {
        display: flex;
        flex-direction: column;
        gap: 8px;

        .share-icons {
            display: flex;
            gap: 8px;
        }
    }
}

.footer-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 15px;
}

.footer-button {
    display: inline-flex;
    font-size: 14px;
    line-height: 22px;
    padding: 12px 24px;
}

.contact-us {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 18px;
    line-height: 26px;

    .fw-extra-bold {
        font-size: 30px;
        line-height: 38px;
    }

    .share-icons {
        display: flex;
        gap: 8px;

        img {
            max-width: 40px;
            height: auto;
        }
    }
}

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 18px;
    line-height: 26px;
}



@media (max-width:1366px) {
    .preview__backgroung {
        height: 1133px;
    }

    .preview__top {
        padding: 0px 21px;
    }

    .preview__top h2 {
        font-size: 16px;
        line-height: 24px;
        padding-bottom: 39px;
    }

    .preview-button {
        font-size: 34px;
    }

    .preview__bottom {
        padding: 0px 21px;
    }

    .preview__bottom h2 {
        font-size: 16px;
        line-height: 24px;
    }

    .restoration-settings__item {
        img {
            width: 72px;
            height: auto;
        }
    }

    .front, .back {
        font-size: 22px;
        line-height: 28px;
    }
}




