@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Oswald:wght@200..700&display=swap');
@import "fonts.css";

:root {
    --bc: #222;
    --white: #fff;
    --active: #FF3C3C;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

img {
    display: block;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--white);
}

ul {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--white);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.wrapper {
    width: 100%;
}

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

.bc-dark {
    background-color: var(--bc);
    color: var(--white);
}

.header__container {
    padding: 18px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.header__logo {
    margin-top: 2px;
    margin-left: 2px;
}

.header__logo img {
    width: 20px;
    height: 20px;
}

.header .menu {
    margin-right: 2px;
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 40.5px;
    transition: grid-template-columns 0.6s ease, gap 0.6s ease;
}

.header .header__burger .burger__line {
    display: block;
    margin-left: auto;
    margin-top: 6px;
    margin-right: 2px;
    width: 12px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.header .header__burger .burger__line:nth-child(2) {
    width: 20px;
    height: 2px;
}

.header__burger.active .burger__line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 1px);
    width: 20px;
}

.header__burger.active .burger__line:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -2px)
}

.header .menu__li {
    cursor: pointer;
    list-style: none;
}

.header .menu__li a {
    transition: color .6s ease;
}

@media (hover: hover) and (pointer: fine) {
    .header .menu__li a:hover {
        color: var(--active);
    }
}

.header .menu__li a {
    text-transform: uppercase;
    color: var(--white);
}

.header .header__burger {
    position: relative;
    display: none;
    margin-top: -4px;
}

.section__main {
    display: flex;
}

.section__main .main__container {
    padding: 60px 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    column-gap: 40px;
}

.section__main .copyright {
    padding-top: 1px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 60px;
    min-width: 60px;
}

.section__main .copyright__title, .section__main .copyright__year {
    writing-mode: tb-rl;
    transform: rotate(180deg);
}

.section__main .copyright__title {
    margin-bottom: 13px;
}

.section__main .copyright__year {
    margin-top: 13px;
}

.section__main .copyright__line {
    flex: 1;
    width: 1px;
    background: var(--white);
}

.section__main .main__right {
    display: grid;
    grid-template-columns: minmax(540px, 740px) minmax(110px, 220px) minmax(110px, 280px);
    justify-content: space-between;
    width: 100%;
    column-gap: 40px;
    margin-right: 20px;
}

.section__main .main__stats {
    padding-top: 100px;
    display: flex;
    flex-direction: row;
    column-gap: 61px;
}

.section__main .main__stats-block {
    display: flex;
    column-gap: 9px;
}

.section__main .block__numb {
    margin-bottom: 8px;
}

.section__main .main__h1 {
    margin-top: 40px;
    max-width: 740px;
    width: 100%;
    text-transform: uppercase;
    transition: font-size .3s ease;
}

.section__main .main__desc {
    margin-top: 40px;
    font-size: 1.25rem;
    line-height: 1.75rem;
    text-transform: uppercase;
}

.section__main .main__button {
    display: flex;
    flex-direction: row;
    column-gap: 9px;
    max-width: 120px;
    width: 100%;
    margin-top: 160px;
    transition: color .6s ease;
}

.section__main .main__button svg path {
    transition: stroke .6s ease;
}

@media (hover: hover) and (pointer: fine) {
    .section__main .main__button:hover {
        color: var(--active);
    }

    .section__main .main__button:hover svg path {
        stroke: var(--active);
    }
}

.section__main .main__photo {
    margin-top: 261px;
    max-width: 220px;
    width: 100%;
    height: 230px;
    background-image: url(./../assets/optimized/img-10-1200.webp);
    background-size: cover;
    background-position: 0;
    background-repeat: no-repeat;
    max-height: clamp(180px, 93vw, 220px);
}

.section__main .main__intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section__main .main__intro-image img {
    margin: 0 0 0 auto;
    max-width: 280px;
    height: 374px;
    width: 100%;
    transition: height .6s ease, width .6s ease;
    max-height: clamp(340px, 93vw, 374px);
}

.section__main .main__intro-desc {
    margin-left: auto;
    max-width: 220px;
    text-align: right;
}

.section__main .main__button-icon {
    width: 24px;
    height: 24px;
}

.section__about .about__photo img {
    width: 100%;
    height: auto;
    max-height: clamp(400px, 93vw, 440px);
    transition: max-height 0.6s ease;
}

.section__about .about__h2 {
    margin-top: 44px;
}

.section__about .about__desc {
    margin-top: 16px;
}

.section__about .column:nth-child(2) .about__desc {
    margin-top: 0;
    margin-bottom: 40px;
}

.section__about .column:nth-child(3) .about__desc {
    margin-top: 40px;
}

.about__container {
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40.5px;
    justify-content: space-between;
}

.section__portfolio {
    padding: 64px 0 60px;
}

.section__portfolio .portfolio__h2 {
    margin-left: 20px;
}

.section__portfolio .portfolio__desc {
    margin-top: 16px;
    margin-left: 20px;
    max-width: 360px;
}

.section__portfolio .portfolio__boxes {
    margin-top: 40px;
    display: flex;
    flex-direction: row;
    column-gap: 20px;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

@media (hover: hover) and (pointer: fine) {
    .section__portfolio .portfolio__boxes {
        overflow-x: hidden;
    }
}

.section__portfolio .gallery__img {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.section__portfolio .img-1 img {
    margin-top: 120px;
    margin-left: 0;
    width: 400px;
    height: 534px;
}

.section__portfolio .img-2 img {
    margin-top: 217px;
    width: 220px;
    height: 220px;
}

.section__portfolio .img-3 img {
    margin-top: 120px;
    width: 280px;
    height: 374px;
}

.section__portfolio .img-4 img {
    width: 400px;
    height: 534px;
}

.section__portfolio .img-5 img {
    margin-top: 120px;
    width: 280px;
    height: 374px;
}

.section__portfolio .img-6 img {
    margin-top: 217px;
    width: 220px;
    height: 220px;
}

.section__portfolio .img-7 img {
    width: 280px;
    height: 374px;
}

.section__portfolio .img-8 img {
    margin-top: 120px;
    width: 400px;
    height: 534px;
}

.section__portfolio .img-9 img {
    margin-top: 217px;
    width: 220px;
    height: 220px;
}

.section__portfolio .img-10 img {
    margin-top: 0;
    width: 280px;
    height: 374px;
}

.section__portfolio .img-11 img {
    margin-top: 120px;
    width: 280px;
    height: 374px;
}

.section__portfolio .img-12 img {
    margin-top: 0;
    width: 400px;
    height: 654px;
}

.section__price {
    padding: 64px 20px 60px;
}

.section__price .price__boxes {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    transition: .3s ease-in-out;
}

.section__price .price__box {
    cursor: pointer;
    padding: 23px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--bc);
    transition: border-color .6s ease, width .6s ease;
}

.section__price .price__box button {
    transition: background .6s ease, color .6s ease, width .6s ease;
}

@media (hover: hover) and (pointer: fine) {
    .section__price .price__box:hover {
        border: 1px solid var(--active);
    }

    .section__price .price__box:hover button {
        background: var(--active);
        color: var(--bc);
    }
}

.section__price .price__box h3 {
    text-transform: uppercase;
    font-weight: 400;
}

.section__price .price__box ul {
    margin-top: 12px;
    margin-left: 14px;
}

.section__price .price__box ul li {
    margin-bottom: 4px;
    list-style-type: square;
}

.section__price .price__box ul li span {
    margin-left: -2px;
}

.section__price .price__box h4 {
    margin-top: 12px;
}

.section__price .price__box .price__p {
    margin-top: 44px;
}

.section__price .price__box button {
    margin-top: 12px;
    padding: 18px 18px;
    background: var(--bc);
    color: var(--white);
    text-transform: uppercase;
    width: 100%;
}

.section__price .price__desc {
    margin-top: 16px;
}

.section__faq {
    padding: 64px 20px 43px;
}

.faq__container {
    display: flex;
    flex-direction: row;
    column-gap: 40px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    display: none;
}

.section__faq .faq__left {
    max-width: 680px;
    width: 100%;
}

.section__faq .faq__right {
    margin-top: 14px;
    display: flex;
    flex: 1;
    flex-direction: column;
    transition: 0.4s;
}

.section__faq .faq__desc {
    margin-top: 16px;
}

.section__faq .faq__right h3 {
    padding-right: 40px;
    cursor: pointer;
    padding-bottom: 17px;
    font-weight: 400;
    text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
    .section__faq .faq__right summary:hover {
        color: var(--active);
        transition: .6s ease;
    }

    .section__faq details summary:hover::after,
    .section__faq details[open] summary:hover::after,
    .section__faq details summary:hover::before {
        background-color: var(--active);
    }
}

.section__faq .faq__right p {
    padding-bottom: 19px;
}

.section__faq details {
    position: relative;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--white);
}

.section__faq details summary::after {
    position: absolute;
    content: "";
    width: 15.5px;
    height: 1.5px;
    background-color: var(--white);
    border-radius: 3px;
    top: 13px;
    right: 4px;
}

.section__faq details summary::before {
    position: absolute;
    content: "";
    width: 1.5px;
    height: 15.5px;
    background-color: var(--white);
    border-radius: 3px;
    top: 7px;
    right: 11px;
}

.section__faq details[open] summary::after {
    position: absolute;
    content: "";
    width: 15.5px;
    height: 1.5px;
    background-color: var(--white);
    border-radius: 3px;
    top: 12px;
    right: 4px;
}

.section__faq details[open] summary::before {
    position: absolute;
    content: none;
}

.section__faq details[open] p {
    max-height: 172px;
}

.section__contacts {
    padding: 40px 0 20px;
}

.section__contacts .contacts__box {
    margin: 20px auto 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 8px;
    max-width: 976px;
    width: 100%;
}

.section__contacts input, .modal__content .contacts__box input {
    cursor: pointer;
    width: 100%;
    padding: 18px 12px 16px;
    border: 1px solid var(--bc);
    text-transform: uppercase;
    transition: border .6s ease;
}

@media (hover: hover) and (pointer: fine) {
    .section__contacts input:hover, .modal__content .contacts__box input:hover {
        border: 1px solid var(--active);
    }
}

.section__contacts button, .modal__content .contacts__box button {
    max-width: 200px;
    width: 100%;
    padding: 18px 12px;
    background: var(--bc);
    color: var(--white);
    text-transform: uppercase;
    transition: background .6s ease, color .6s ease;
}

@media (hover: hover) and (pointer: fine) {
    .section__contacts button:hover, .modal__content .contacts__box button:hover {
        background: var(--active);
        color: var(--bc);
    }
}

.section__contacts h3, .modal__content h3 {
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
}

.footer {
    padding: 38px 0;
}

.footer__menu {
    display: grid;
    grid-template-columns: repeat(5, auto);
    justify-content: center;
    gap: 40.5px;
    transition: grid-template-columns 0.5s ease, gap 0.5s ease;
}

.footer__menu a {
    transition: color .3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .footer .menu__li:hover a {
        color: var(--active);
    }
}

.footer .menu__li a {
    text-transform: uppercase;
    color: var(--white);
}

body.lock {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(34, 34, 34, 0.6);
}

.modal__content {
    position: relative;
    background: var(--white);
    padding: 60px;
    max-width: 500px;
    width: 90%;
    z-index: 1;
    animation: fadeInUp 0.3s ease;
}

.modal__content .contacts__box {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal__content .contacts__box button {
    max-width: inherit;
}

.modal__close {
    position: absolute;
    display: block;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.modal__close .modal__line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--bc);
}

.modal__close .modal__line:first-child {
    rotate: 45deg;
    translate: 2px 2px;
}

.modal__close .modal__line:last-child {
    rotate: -45deg;
    translate: 2px 0;
}

body.lock {
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 1330px) {
    .section__price .price__boxes {
        margin-top: 40px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 1280px) {
    .section__main .main__right {
        grid-template-columns: minmax(330px, 740px) minmax(110px, 220px) minmax(110px, 280px);
    }

    .faq__container {
        flex-direction: column;
    }

    .section__faq .faq__right {
        margin-top: 58px;
    }

    .section__contacts .contacts__box {
        padding: 0 20px;
    }
}


@media screen and (max-width: 960px) {
    .section__main .main__right {
        grid-template-columns: 1fr minmax(160px, 220px);
    }

    .section__main .main__photo {
        display: none;
    }

    .section__main .main__intro-image img {
        margin: 2px 0 0 auto;
        max-width: 220px;
        width: 100%;
        height: 294px;
    }

    .section__price .price__boxes {
        padding: 0 34px;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .section__price .price__box:nth-child(2) .price__p {
        margin-top: 72px;
    }
}

@media screen and (max-width: 768px) {
    .header .menu {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .header .header__burger {
        display: block;
    }

    .header .header__nav {
        position: fixed;
        top: 58px;
        right: -100%;
        width: 100%;
        height: calc(100% - 58px);
        display: flex;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 20;
        background: var(--bc);
        padding: 237px 20px;
    }

    .header .header__nav.active {
        right: 0;
    }

    .section__main .copyright {
        padding-top: 3px;
    }

    .section__main .main__stats {
        padding-top: 103px;
    }

    .section__main .block__numb {
        margin-bottom: 7px;
    }

    .section__main .main__right {
        column-gap: 24px;
    }

    .section__main .main__h1 {
        max-width: 404px;
    }

    .about__container {
        grid-template-columns: 1fr;
    }

    .section__about .about__photo img {
        width: 100%;
        height: auto;
        max-height: clamp(440px, 95vw, 728px);
    }

    .section__about .column:nth-child(3) .about__photo img {
        display: none;
    }

    .section__about .column:nth-child(3) .about__desc {
        margin-top: -1px;
    }
}

@media screen and (max-width: 740px) {
    .section__main .copyright {
        display: none;
    }

    .section__main .main__right {
        grid-template-columns: 1fr;
        flex-direction: column;
        margin-right: 0;
    }

    .section__main .main__stats {
        padding-top: 3px;
        padding-left: 20px;
        flex-wrap: wrap;
    }

    .section__main .main__h1 {
        margin-left: 20px;
        max-width: inherit;
        width: calc(100% - 20px);
    }

    .section__main .main__desc {
        margin-left: 20px;
    }

    .section__main .main__button {
        display: none;
    }

    .section__main .main__intro-image img {
        margin: 20px 20px 0 auto;
    }

    .section__main .main__intro-desc {
        margin-top: 60px;
        margin-right: 20px;
    }

    .section__portfolio .portfolio__desc {
        margin-right: 20px;
    }

    .section__price .price__boxes {
        padding: 0 10px;
        grid-template-columns: 1fr;
    }

    .section__price .price__box .price__p {
        margin-top: 148px;
    }

    .section__price .price__box {
        max-width: inherit;
    }

    .section__price .price__box:nth-child(3) .price__p,
    .section__price .price__box:nth-child(4) .price__p {
        margin-top: 44px;
    }

    .section__faq {
        padding: 60px 20px 43px;
    }

    .faq__left h2 {
        line-height: 2.5rem;
    }

    .section__faq .faq__desc {
        margin-top: 12px;
    }

    .section__contacts .contacts__box {
        margin-top: 20px;
        flex-direction: column;
        row-gap: 8px;
    }

    .section__contacts label {
        max-width: inherit;
    }

    .section__contacts button {
        max-width: inherit;
    }

    .footer__menu {
        text-align: center;
        grid-template-columns: 1fr;
        gap: 36.5px;
    }
}

@media screen and (max-width: 380px) {
    .section__about .about__photo img {
        width: 100%;
        height: auto;
        max-height: clamp(340px, 93vw, 300px);
    }

    .modal__content {
        padding: 60px 20px;
    }
}